# Advanced Settings by Tool

In addition to general advanced settings, the following advanced settings are available for each tool in the Inspect app step:

Advanced settings for Find Pattern:

When you enable advanced settings in the Find Pattern tool, the Timeout setting becomes available under the Search Space setting group. The Timeout setting defines the maximum allowed time in milliseconds for the tool to execute.

The Granularity toggle also becomes available. By default, Granularity is set to Auto. If you set it to Manual, the Coarse Granularity and Fine Granularity settings become available.

Coarse Granularity defines the expected size of large features for finding an approximate pattern match quickly. Fine Granularity defines the expected size of small features for finding a detailed pattern match accurately.

Additionally, tool property linking becomes available for settings where the link icon appears. For more information on tool property linking, see Tool Property Linking.

Advanced settings for Brightness, Contrast, and Pixel Count:

When you enable advanced settings in the Brightness, Contrast, or Pixel Count tools, the Histogram A histogram is a graphical representation of the distribution of pixel intensity values. A histogram refers to an array of pixels - how many and their individual greyscale values - within a region of interest (ROI). tab appears, displaying a histogram of the property count per pixel value as determined by the tool.

Additionally, tool property linking becomes available for settings where the link icon appears. For more information on tool property linking, see Tool Property Linking.

Advanced Settings for Count Edges:

When you enable advanced settings in the Count Edges tool, the following additional settings become available:

Advanced Setting | Description
--- | ---
Normalize Score | Enable or disable the normalization of scores by the greyscale histogram of the region. Enabled by default. If enabled, the tool normalizes the raw edge scores by the maximum contrast found within the region. If disabled, low contrast edges score lower than high contrast edges.
Angle Range | Define the range of acceptable deviation from the angle of the trained edge.

Additionally, tool property linking becomes available for settings where the link icon appears. For more information on tool property linking, see Tool Property Linking.

At the bottom of the advanced settings, the Edge Profile chart shows how the greyscale values change in the Region of Interest (ROI) of the image. The chart has peaks and valleys, which represent major edge transitions. The Contrast setting determines the minimum score for the peaks and the valleys. Scores that have a lower absolute value than the Contrast setting do not appear on the chart.

- Score axis:

  - Peaks are positive scores that mean that an edge transitions from dark to light.

  - Valleys are negative scores that mean that an edge transitions from light to dark.

  - A score of 0 means that the tool did not detect an edge.

- The Offset axis shows where the tool detects edges within the ROI.

  - Value 0 represents the start of the ROI.

  - The right-hand value is the maximum width (in pixels) of the ROI.

  - The highest point of a peak or the lowest point of a valley marks the location of the edge within the ROI.

Advanced Settings for Find Edge:

When you enable advanced settings in the Find Edge tool, the following additional edge finding settings become available:

Advanced Setting | Description
--- | ---
Find By | Define the method of edge finding: best score - Specifies that the edge with the highest score receives the highest consideration. first edge - Specifies that the first edge detected receives the highest consideration. last edge - Specifies that the last edge detected receives the highest consideration.
Normalize Score | Enable or disable the normalization of scores by the greyscale histogram of the region. Enabled by default. If enabled, the tool normalizes the raw edge scores by the maximum contrast found within the region. If disabled, low contrast edges score lower than high contrast edges.
Angle Range | Define the range of acceptable deviation from the angle of the trained edge.
Edge Width | Define the pixel distance over which an edge transition takes place.

Additionally, tool property linking becomes available for settings where the link icon appears. For more information on tool property linking, see Tool Property Linking.

Advanced Settings for Find Circle:

When you enable advanced settings in the Find Circle tool, the following additional edge finding settings become available:

Advanced Setting | Description
--- | ---
Find By | Define the method of edge finding: best score - Specifies that the edge with the highest score receives the highest consideration. first edge - Specifies that the first edge detected receives the highest consideration. last edge - Specifies that the last edge detected receives the highest consideration.
Normalize Score | Enable or disable the normalization of scores by the greyscale histogram of the region. Enabled by default. If enabled, the tool normalizes the raw edge scores by the maximum contrast found within the region. If disabled, low contrast edges score lower than high contrast edges.
Edge Width | Define the pixel distance over which an edge transition takes place.

Additionally, tool property linking becomes available for settings where the link icon appears. For more information on tool property linking, see Tool Property Linking.

Advanced Settings for Detect Pattern and Count Patterns:

When you enable advanced settings in the Find Pattern or Count Patterns tool, the Timeout setting becomes available under the Search Space setting group. The Timeout setting defines the maximum allowed time in milliseconds for the tool to execute.

Additionally, tool property linking becomes available for settings where the link icon appears. For more information on tool property linking, see Tool Property Linking.

Advanced Settings for Classify and Image Filter:

When you enable advanced settings in the Classify or Image Filter tools, the general advanced settings and tool property linking become available. For more information on general advanced settings, see General Advanced Settings. For more information on tool property linking, see Tool Property Linking.

Advanced Settings for Measure Distance:

When you enable advanced settings in the Measure Distance tool, the Measurement setting group becomes available:

Advanced Setting | Description
--- | ---
Input Line 0 | Select the first edge for the distance measurement operation from the list of configured edge tool properties. By default, Input Line 0 is the first edge you selected when adding the Measure Distance tool.
Input Line 1 | Select the second edge for the distance measurement operation from the list of configured edge tool properties. By default, this is the second edge you selected when adding the Measure Distance tool.
Measurement Type | Select the type of measurement you want the tool to perform: Mid-Point to Line - measure the distance from the midpoint of the first edge to the closest point of the second edge Mid-Point to Mid-Point - measure the distance from the midpoint of the first edge to the midpoint of the second edge

Additionally, tool property linking becomes available for settings where the link icon appears. For more information on tool property linking, see Tool Property Linking.

Advanced Settings for Measure Angle:

When you enable advanced settings in the Measure Angle tool, the Measurement setting group becomes available:

Advanced Setting | Description
--- | ---
Input Line 0 | Select the first edge for the distance measurement operation from the list of configured edge tool properties. By default, Input Line 0 is the first edge you selected when adding the Measure Angle tool.
Input Line 1 | Select the second edge for the distance measurement operation from the list of configured edge tool properties. By default, this is the second edge you selected when adding the Measure Angle tool.

Additionally, tool property linking becomes available for settings where the link icon appears. For more information on tool property linking, see Tool Property Linking.

Advanced Settings for Count Blobs Tool:

When you enable advanced settings in the Count Blobs tool, additional options become available in the Blobs setting group:

The Fill Holes toggle enables or disables hole filling. Disabling Fill Holes also disables the Boundary Blobs toggle.

The Background Color dropdown allows you to define the color of the background.

The Histogram tab displays a histogram of the property count per pixel value as determined by the tool.

Additionally, tool property linking becomes available for settings where the link icon appears. For more information on tool property linking, see Tool Property Linking.

Advanced Settings for Math Tool:

When you enable advanced settings in the Math tool, the general advanced settings become available. For more information on general advanced settings, see General Advanced Settings.