04-14-2016 08:11 PM
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
Solved! Go to Solution.
04-14-2016 08:23 PM
04-14-2016 09:18 PM
04-18-2016 04:53 PM
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