Evaluate Defect Clusters
Use this tool to evaluate the density in clusters. The defects must be available in form of regions. Thus, you first have to detect the desired defect with a previous tool such as Detect Stain. For this tool easyTouch is available. Select the cluster with the lowest density of all clusters, that are not acceptable, to set the threshold for evaluating defect clusters. All clusters that are at least as dense as the selected cluster will now be highlighted. Adapt the parameters "Inspection Radius", the "Tolerated Number" or the "Tolerated Area" to adapt the selection to your requirements.
Parameters
Basic Parameters
Image:
This parameter represents the image in which the defect clusters should be evaluated.
Defect Candidates:
This parameter contains the regions of the defect candidates to be evaluated. They must be available as a result from a previous tool, e.g., Detect Stain. Therefore, you have to connect the regions to be evaluated to this tool manually.
Inspection Radius:
This parameter defines the radius of the area in which the defect clusters are evaluated. It is defined in pixels and set to 200 px by default. You can change its value at the corresponding connector.
Tolerated Number:
This parameter defines the number of defects that are tolerated within the specified "Inspection Radius" and thus in the defect cluster. It is set to 10 by default. When a defect cluster is selected for evaluation the "Tolerated Number" is instantly determined and adopted. However, you may change its value manually at the corresponding connector.
Tolerated Area:
This parameter defines the area of the defects that is tolerated within the specified "Inspection Radius". It is defined in pixels and set to 100 px by default. When a defect cluster is selected for evaluation the "Tolerated Area" is instantly determined and adopted. However, you may change its value manually at the corresponding connector.
Additional Parameters
ROI:
This parameter defines the region of interest (ROI) for processing. Image parts outside of the union of the ROI and "Processing Region" are not processed. In addition, if either of them is empty, the image part inside of the other one is processed. In case both of them are empty, the whole image is processed.
By default the ROI is defined as an empty ROI. If you want to use a non-empty ROI for the processing, you either have to connect the parameter to an appropriate ROI result of a previous tool or you have to draw new ROIs into the image using the available ROI buttons.
Alignment Data:
This parameter represents the alignment data that are used to align the ROI. By default no alignment data are connected and thus no effect is visible. If you want to use specific alignment data, you have to connect the parameter to an appropriate result of a previous tool such as Determine Alignment with Matching, Determine Alignment with Straight Border, Align Image, or Rotate Image.
Processing Region:
This parameter defines the region for processing. Image parts outside of the union of the ROI and "Processing Region" are not processed. In addition, if either of them is empty, the image part inside of the other one is processed. In case both of them are empty, the whole image is processed.
By default, "Processing Region" is defined as empty region. To specify a "Processing Region", you have to connect the parameter to an appropriate region result of a previous tool to make sure that a region is transmitted to this tool.
Results
Basic Results
Defects:
This result represents the region of all defects that have been selected during the evaluation.
Number of Defects:
This result contains the number of defects that have been selected during the evaluation. The result is returned as an integer number.
Area of Defects:
This result contains the area of all defects in pixels that have been selected during the evaluation. It is returned a real number.
Tool State:
"Tool State" returns information about the state of the tool and thus can be used for error handling. For more information, see Tool State Result
Additional Results
Processing Time:
This result returns the duration of the most recent execution of the tool in milliseconds. The result is provided as additional result. Therefore, it is hidden by default but it can be displayed via the button beside the tool results. For more information see the section Processing Time in the tool reference overview.
Application Examples
This tool is used in the following MERLIC Vision App examples:
- count_defect_clusters.mvapp