Image acquisition toolbox: Predict how many imgs can be buffered in RAM?

1 view (last 30 days)
Hello,
I am looking for a way to predict how many frames (approx.) I can capture to the RAM of my computer using the image processing toolbox. I would prefer this over logging to HD.
Is that somehow possible by knowing the size of a frame and knowing the free memory (how...?) Thank you!!
Error event occurred at 14:17:15 for video input object: Mono8-gentl-1.
Unable to allocate memory for an incoming image frame due to insufficient free physical memory.
  2 Comments
William Thielicke
William Thielicke on 12 Aug 2022
Oh well, maybe this works?
%before the acqusition:
initialAvailableMemory = bla.MemAvailableAllArrays - bla.MemUsedMATLAB
%during acquisition:
remainingMemory = initialAvailableMemory - bla.MemUsedMATLAB
if remainingMemory < X
stop image acquisition %(but how....)
end

Sign in to comment.

Answers (0)

Tags

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!