Preallocate array to store images from camera

4 views (last 30 days)
I'm controlling a camera to take images in a while loop that ends when I hit a UI button. That means I don't know how many frames I will take when I turn the camera on. I want to save the images into a cell array, but how can I preallocate the array if I don't know the size? Would saving individual frames as a .jpeg into a folder be faster?
  3 Comments
Samuel Katongole
Samuel Katongole on 22 Jun 2021
Try preallocating the array as an empty array. It may help.

Sign in to comment.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!