Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Contour curvature (vision assistant vs labview)

Solved!
Go to solution

Hi,

 

In Vision Assistant, if I use "Contour Analysis" and click on "Computer Curvature", there is a table below that show x,y position as well as curvature value.

When I'm in LabVIEW, there is only an array out of the Compute Curvature Fonction... There is no relation with the x,y position of the curve.

 

How can I match x,y of the curve with the curvature value?

 

Thank you,

Patrick

0 Kudos
Message 1 of 4
(4,267 Views)
array of point is
x1,y1.x2,y2,.......xn.yn
0 Kudos
Message 2 of 4
(4,263 Views)
I don't think the array out of this fonction is what you mentioned, the array is the curvature value. Can't say the unit.
0 Kudos
Message 3 of 4
(4,257 Views)
Solution
Accepted by topic author paubine

If you generate the code from Vision Assistant, you'll see that a few VIs are called to compute the curvature:

- IMAQ Extract Contour, which extracts the contour from your object. That VI returns the contour points you're asking for.

- IMAQ Overlay Contour is used to overlay the contour on the image.

- Finally, IMAQ Compute Curvature is used to compute the curvature at each point of the contour.

The Curvature Profile array returned by this VI has the same number of points as the Contour Points array returned by IMAQ Extract Contour.

The indices of these 2 arrays match.

 

Hope this helps.

 

Christophe

Message 4 of 4
(4,202 Views)