FindCircleDefects

Converts each pixel within an annular (ring-like) region in an input image to black or white based on a user-set threshold, with white indicating non-circular or non-radial features. Define and position the annulus over the image, and choose whether the function calculates pixel gradient in either a circular or radial direction. Values equal to or exceeding the threshold level are displayed as white pixels in the black-and-white output image.

FindCircleDefects Example

In this example, the synthetic circular (left) and radial (right) objects shown below are used to demonstrate the functionality of the FindCircleDefect. Both objects are medium-grey in color and feature thick, dark inner and outer borders.

  1. Insert the function into the In-Sight Spreadsheet spreadsheet.

  2. Define the annulus by double-clicking on Annulus in the property sheet, which disappears to reveal the red annulus overlaid on the image.

  3. Move or resize the annulus using the cursor.

  4. Click the OK button on the Job Edit toolbar to confirm the selection and return to the property sheet. (The selection can also be confirmed by pressing the Enter key or by double-clicking within the annulus.) The example shows images of the objects with their annuli.

  5. Select a defect type (non-circular or non-radial).

  6. Choose ON or OFF for the deviation tolerance.

  7. Accept the default settings of the other parameters and click OK in the property sheet to complete the configuration for this example and apply the function to the input image.

Below are black-and-white output images of the circular object, with the function set to detect non-circular defects, the Accept Thresh parameter at the default value of 30 and the deviation tolerance at OFF (left) and ON (right). Notice how much stricter the OFF setting (left) is, marking pixels in the outer edge of the circular object as possible defects, even though they appear to be part of the smooth circular curve.

  

Below is a black-and-white output image of the same circular object with the function now set to detect non-radialdefects. The function marks the inner and outer edges of the outer border as possible radial defects.

Below are black-and-white output images of the radial object, with the function set to detect non-radialdefects, the Accept Thresh parameter at 70 and the deviation tolerance at OFF (left) and ON (right). Again, notice how much stricter the OFF setting (left) is, marking the outer edges of the radial features as possible defects.

 

Below is a black-and-white output image of the same radial object with the tool now set to detect non-circular defects. The function marks all radial features within the annulus as possible circular defects.

In a real-world application, you would next reference another tool to the output image, so that a decision could be made regarding the results.