Why does my application's memory usage steadily increase when using the Image Acquisition Toolbox 1.5 (R14) to log images to disk?
Show older comments
I have created a videoinput object using the Image Acquisition Toolbox's VIDEOINPUT function. I then created an AVI-file object using the AVIFILE function, and specified that the videoinput object log data to disk using this avi file. For example:
my_log = 'my_datalog.avi';
aviobj = avifile(my_log);
vid = videoinput('winvideo')
vid.FramesPerTrigger = inf;
vid.LoggingMode = 'disk';
vid.DiskLogger = aviobj;
start(vid)
Since I am logging data to disk and not to memory, I do not expect that my application will run out of memory. However, after a period of time, I receive the following error:
Unable to allocate memory for an incoming image frame. Use help imaqmem to modify the frame memory limit.
Additionally, I can see my memory usage increase when periodically calling the IMAQMEM function.
Accepted Answer
More Answers (0)
Categories
Find more on Image Data Acquisition in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!