|
I'm counting number of dots in every snapshot of the camera in the GUI.. if 2nd snapshot takes how do I transfer the present result to the previous result using iteration or any method? anyone can suggest?
B = im2bw(imfilter(G, fspecial('gaussian', sigma*3, sigma), 'replicate'), thres);
Bl = bwlabel(B);
Neggs = max(Bl(:))
[B1, presentdots] = bwlabel(B);
% Now that we have presentdots, put up info into a label on the GUI.
presentLabel = sprintf('%d', presentdots);
set(handles.pres, 'String', presentLabel);
|