From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Chord Length

Solved!
Go to solution

Hi all,

 

I intend to measure Chord Length and Arc Length in a gray scale image. Kindly advise.

0 Kudos
Message 1 of 4
(3,650 Views)

I am sorry without seeing proper image of what you are looking its difficult to advise first.

-And there are many measurements you can get in Particle measurements for binary image so you might need to convert gray scale to binary.

-You can check the list of measurements here: http://zone.ni.com/reference/en-XX/help/372916T-01/nivisionconcepts/particle_measurements/ and the VI here https://zone.ni.com/reference/en-XX/help/370281AA-01/imaqvision/imaq_particle_analysis/

Thanks
uday
0 Kudos
Message 2 of 4
(3,620 Views)

chord_length.JPG

Thank you for the measurements link.

 

This would be the image for which i intend to measure an arbitrary chord length. We may lose info in binary image as we will need to apply threshold hence particle analysis would not be first preference.

0 Kudos
Message 3 of 4
(3,602 Views)
Solution
Accepted by topic author BodkinArrow

You need to find for inner circle or outer circle?

Math Part:

For Calculating Chord length you need to find radius and angle subtended at the center by the chord or perpendicular distance from the chord to the circle center: Once you have those parameters you can calculate the chord length by using formulas:

Source: http://www.mathopenref.com/chord.html

Similarly you can get for Arc length : http://www.mathopenref.com/arclength.html

Image Processing Part:

-I think you can get the radius of the inner or outer circle based on your requirement using IMAQ detect shapes.

https://zone.ni.com/reference/en-XX/help/370281M-01/imaqvision/imaq_detect_shapes/

 

Thanks
uday
Message 4 of 4
(3,596 Views)