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

9 vues (au cours des 30 derniers jours)
William Thielicke
William Thielicke le 10 Août 2022
Commenté : William Thielicke le 12 Août 2022
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 commentaires
William Thielicke
William Thielicke le 12 Août 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....)

Connectez-vous pour commenter.

Réponses (0)





Community Treasure Hunt

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

Start Hunting!

Translated by