Preallocate array to store images from camera

조회 수: 3 (최근 30일)
THAI CAM LINH HOANG
THAI CAM LINH HOANG 2021년 6월 22일
댓글: Samuel Katongole 2021년 6월 22일
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
THAI CAM LINH HOANG
THAI CAM LINH HOANG 2021년 6월 22일
Thank you!
Samuel Katongole
Samuel Katongole 2021년 6월 22일
Try preallocating the array as an empty array. It may help.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by