Chapter
4
Reference Manual
IVC-2D
78
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Filter
Binarize
This tool creates a binary image based on the image in Source Bank. All pixels inside the
ROI that have gray scale values between a lower and an upper threshold are set to a ‘high’
value. All other pixels are set to a ‘low’ value. Return values are the total number of pixels
in the ROI that are in range (within the threshold bounds) and the number of pixels that are
out of range (outside the threshold bounds). The resulting binary image is written to the
image bank pointed out by the Destination Bank parameter.
This tool is suitable as a pre-processing step to further image processing.
It is recommended to use the interactive setup to customize the parameters. Double-click
on the
Setup
button to open the interactive setup window. For more information on the
interactive setup, see Binarize Setupon page
Input Parameters
01 = Source bank
Image bank containing the image to binarize.
02 = ROI definition step
Step number where the ROI to use was created.
03 = Gray low
Lower threshold for gray value.
04 = Gray high
Upper threshold for gray value.
05 = Destination bank
Image bank in which to display the binarized image.
06 = Threshold mode
Available options are:
Manual
Set the upper and lower thresholds yourself.
Automatic
Automatically sets the thresholds. Pixels within the
range become white, and the pixels outside the
range become black.
Automatic inverted
Automatically sets the thresholds, but with inverted
colors compared to the
Automatic
mode.
07 = Output level
Defines which gray value to use for pixels within the
specified range. Allowed values are
0-255
, where
0-
243
represent gray values and
244-255
represent
display colors.
Returned Values
01 = Pixels in range
Total number of found pixels between the lower and
the upper threshold.
02 = Pixel out of range
Total number of found pixels outside the lower and the
upper threshold.
03 = Low Threshold
Low threshold value
04 = High Threshold
High threshold value