i am getting my frame memory limit in exponential....how to change it..because it is not allocating memory to any frame
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
my code is: vid=videoinput('winvideo',2,'RGB24_352x288'); set(vid, 'FramesPerTrigger', Inf); set(vid, 'ReturnedColorspace', 'rgb') vid.FrameGrabInterval = 1; start(vid) while(vid.FramesAcquired<=50) data = getsnapshot(vid); diff_im = imsubtract(data(:,:,1), rgb2gray(data)); diff_im = medfilt2(diff_im, [3 3]); diff_im = im2bw(diff_im,0.17); diff_im = bwareaopen(diff_im,300); bw = bwlabel(diff_im, 8); %is not allocating memory to any frame% end imaqmem imaqmem('FrameMemoryLimit') ans =
1.0000e+009
0 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!