From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

set coordinate system

I need set coordinate system labview programme exampmples. Please somebody help me

0 Kudos
Message 1 of 9
(5,425 Views)

Hello,

 

please be a little bit more clear about your problem:

 

- what is your goal?

- what have you tried so far?

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 2 of 9
(5,424 Views)

I found centroid of binary image. with respect to centroid want to find centers of circle in the gray scale image.

0 Kudos
Message 3 of 9
(5,419 Views)

Hello,

 

an example image would be good... Are the grayscale and binary image the same? Or is the position of the centroid always the same, and only the positions of the circles are shifed? Are the circles already detected?

 

If I understand correctly, just use the (u,v) coordinate of the centroid as the origin. You can simply calculate the distance between the centroid and the circle centers (subtraction of the horizontal/vertical coordinates).

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 4 of 9
(5,415 Views)

In that two images i need find circle centre and mask them. But the images are tilted.  

0 Kudos
Message 5 of 9
(5,407 Views)

Hello,

 

again, please post the images, since this would consideraby help finding a solution. You can create the sample images using an image editor, if you don't want to post the original images. It is hard to understand your problem in words. And picture is worth a 1000 of them. 🙂

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 6 of 9
(5,403 Views)

Due to internet slow I didn't send images. Today I will try

Download All
0 Kudos
Message 7 of 9
(5,394 Views)

Hello,

 

your images have a good contrast, so you can try using pyramid based pattern matching. I have tried this in the Vision Assistant and get good correlation scores (> 800) for all holes with the match time of ~50 ms and ~150 ms (with rotation enabled).

After you detect the position of the circles, you can perform additional processing in order to refine the accuracy. Or just threshold the area of the match and find the center.

 

It would also make your detection more accurate if you place the camera perpendicular to the inspection area and additionally calibrate for perspective distortion.

 

Also, check some Vision processing examples that can be found under the Help->Find examples in Labview.

 

You could also

 

Additionally, your images have only two circular holes, so another possible (roboust) way to detect them is the Hough circle transform. Vision does not have such library, but it is possible to implement this as a dynamic link library (using OpenCV for example: https://decibel.ni.com/content/blogs/kl3m3n/2014/05/08/detect-hough-circles-in-labview-using-opencv)...

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 8 of 9
(5,386 Views)

Sorry, wrong topic...

0 Kudos
Message 9 of 9
(5,370 Views)