Machine Vision

取消
顯示結果 
搜尋替代 
您的意思是: 

Contour curvature (vision assistant vs labview)

已解決!
前往解決方案

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 積分
1 條訊息(共 4 條)
4,604 檢視
array of point is
x1,y1.x2,y2,.......xn.yn
0 積分
2 條訊息(共 4 條)
4,600 檢視
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 積分
3 條訊息(共 4 條)
4,594 檢視
解決方案
接受者 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

4 條訊息(共 4 條)
4,539 檢視