Help me with my iteration in gui ? for number number of dots detected every snapshot

1 view (last 30 days)
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);
  4 Comments
Jan
Jan on 3 Feb 2013
@michael Longard: Obviously something is going wrong. One of your question is closed, and some others, who have been able to understand the contents of your question, calssify your questions as duplicate threads.

Sign in to comment.

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!