LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ- finding multiple centroids

Solved!
Go to solution

Hi,

I'm trying to find centroid of two circular objects in an intensity graph. My data type is floating point in 64x64 pixels.   Recently I have found a VI from other discussion that discussed the same thing. I make a minor changes and try to obtain the centroid location (x,y). The VI is almost achieve to what I'm looking: it can identify the objects  and its centroids. I just wondering if the VI should be able to display the centroid of each objects but it did not happened. What is missing here? If someone can guide me to achieve this I would be grateful.  I need to know the location (x,y)  of each  centroids. Here is the attached image of the VI.

 

Thank you.

 

Download All
0 Kudos
Message 1 of 3
(3,415 Views)

I didn't even bother looking at the "attached image of the VI".  Please attach the VI itself -- we cannot execute or modify an image.  It would also be helpful to attach an example of an image whose centroid(s) you are trying to find.  Also, please respond to my comment on your earlier post.

 

Bob Schor

0 Kudos
Message 2 of 3
(3,403 Views)
Solution
Accepted by topic author Ledang

Hi all,

 

I finally found the solution! I used the IMAQ local threshold and IMAQ find circle to get number of circirls detected and its (x,y) locations.  I also used the array to cluster to get the array data.Smiley Happy

 

Ledang

0 Kudos
Message 3 of 3
(3,277 Views)