Threshold Activity
The Threshold activity processes images to adjust their noise levels. It enables users to either increase or decrease noise by applying various thresholding methods. This activity is crucial for image preprocessing, enhancing image quality, or preparing images for further analysis.
| Field | Description | Requirement |
|---|---|---|
| Input image | The full path, file name, and extension of the image file to be processed. | Required |
| Output image | The full path, file name, and extension for the processed output image. | Required |
| Threshold type | Specifies the method used for increasing or decreasing noise in images. | Optional |
| Minimum value | Defines the minimum value within the threshold coefficient range. | Optional |
| Maximum value | Defines the maximum value within the threshold coefficient range. | Optional |
Action Types & Examples
Thresh_Binary
- Format: string
- Example Result:
"Thresh_Binary" - Description: Pixels exceeding the threshold value are set to white, while others are set to black.
Thresh_Binary_Inv
- Format: string
- Example Result:
"Thresh_Binary_Inv" - Description: Pixels exceeding the threshold value are set to black, while others are set to white.
Thresh_Trunc
- Format: string
- Example Result:
"Thresh_Trunc" - Description: Pixels exceeding the threshold value are set to this threshold value, while higher pixel values are preserved.
Thresh_Tozero
- Format: string
- Example Result:
"Thresh_Tozero" - Description: Pixels exceeding the threshold value are preserved, while others are set to zero.
Thresh_Tozero_Inv
- Format: string
- Example Result:
"Thresh_Tozero_Inv" - Description: Pixels exceeding the threshold value are set to zero, while others are preserved.
Thresh_Otsu
- Format: string
- Example Result:
"Thresh_Otsu" - Description: Determines an optimal threshold value using histogram analysis to achieve the best separation of object pixel density.
Implementation Examples
Field Setup - Input image: C:\Robusta\robusta.jpg - Output image: C:\Robusta\grayscale.jpg - Threshold type: Thresh_Binary - Minimum value: 50 - Maximum value: 255
Execution Parameters
Technical Notes
The
Minimum valueandMaximum valueparameters define the range for thresholding operations. The default value forMinimum valueis50, and forMaximum valueis255. These values significantly impact the outcome of the noise reduction or enhancement process.