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: 

Trend Edge Stain Detection ?

How does one apply this algorithm ? Kindly Guide.

0 Kudos
Message 1 of 2
(4,559 Views)

Hello,

 

if your edge has a linear model, you can simply detect the edge points, fit a line to the points (in a least square sense) and calculate the distances (perpendicular) from edge points to the fitted line model. See the simplified attached example (saved for Labview 2013). You can set a threshold for maximum distance.

 

If your model is not linear, it is more difficult to find the distances as you would probably need to use some iterative optimization algorithm.

 

Hope this helps.

 

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 2
(4,550 Views)