Preallocate array to store images from camera

4 visualizaciones (últimos 30 días)
THAI CAM LINH HOANG
THAI CAM LINH HOANG el 22 de Jun. de 2021
Comentada: Samuel Katongole el 22 de Jun. de 2021
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 comentarios
THAI CAM LINH HOANG
THAI CAM LINH HOANG el 22 de Jun. de 2021
Thank you!
Samuel Katongole
Samuel Katongole el 22 de Jun. de 2021
Try preallocating the array as an empty array. It may help.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by