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: 

Explanation of "Max Pixel Radius" in "Find Concentric Edge2"?

I'm trying to improve how this function is operating and in the Edge Fit Options cluster I saw "Max Pixel Radius". My question is, what does it do?

 

(Using LV2015, so apologies if the rest of you have moved on to newer functions.)

0 Kudos
Message 1 of 3
(1,083 Views)

The Max Pixel Radius is used during the edge fitting. It's essentially an outlier rejection setting. It defines the radius tolerance within which a point is assumed to be part of the fitted line. If a point is more than the Max Pixel Radius away from the fitted line, it's rejected. 

 

The function Find Concentric Edge doesn't show which points are being used as part of the edge fit, but you can recreate Fit Concentric Edge using IMAQ Concentric Rake and IMAQ Fit Line.

 

The image below shows the output of Find Concentric Edge on the left, and Concentric Rake + Fit Line on the right. In the image on the right, dots that are green are points that were used in the line fit, and dots that are red were rejected. 

Concentric.PNG

 

Increasing Max Pixel Radius increases the tolerance of the outlier rejection, allowing more points to be used in the edge fit. Increase it too much, and outliers may start to negatively affect the quality of the line fit.

0 Kudos
Message 2 of 3
(1,010 Views)

Great explanation! I really appreciate you taking the time to post this.

0 Kudos
Message 3 of 3
(1,003 Views)