Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

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

From: michael Longard

Date: 3 Feb, 2013 19:10:08

Message: 1 of 1

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);

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us