Gets and sets local threshold data.
OCR session on which the node operates.
To create a session, use the Create OCR Session node.
Thresholding method that the node sets when get/set? is True. This value is ignored if get/set? is False.
The following values are valid:
Name | Description |
---|---|
Background Correction | Performs background correction to eliminate non-uniform lighting effects and then performs thresholding using the interclass variance thresholding algorithm. |
Parameters that the node sets if get/set? is True. The value of this cluster is ignored if get/set? is False.
Type of objects to look for.
The following values are valid:
Name | Value | Description |
---|---|---|
Bright Objects | 0 |
Looks for objects in the image represented by pixels with values greater than the value computed by the threshold method. |
Dark Objects | 1 |
Looks for objects in the image represented by pixels with values less than the value computed by the threshold method. |
Cluster specifying the size of the window the node uses when calculating a local threshold.
The window should be sized as large as possible, but small enough that each window contains pixels with consistent levels of contrast. The node will produce inconsistent results for windows that contain uniform pixel values. A typical window should be about the size of the object you want to segment in the image.
Size of the window in the x dimension.
The size must be at least 3 and cannot be larger than the width of image in.
Size of the window in the y dimension.
The size must be at least 3 and cannot be larger than the height of image in.
Input that specifies the k constant used in the Niblack local thresholding algorithm, which determines the weight applied to the variance calculation.
Valid k constants range from 0 to 1. The lower the deviation factor, the closer the pixel value must be to the mean value selected as part of a particle. Setting the Niblack deviation factor in to 0 increases the performance of the node, as the pixel variance is not calculated.
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
OCR session on which this node operates.
Current value of the thresholding mode.
Threshold parameters that the node set.
k constant used in the Niblack local thresholding algorithm.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application