![]() |
![]() |
![]() |
![]() |
IPthreshold
Synopsis
threshold ip_Image against low/high values
Input Port
Parameters
Output Port
Description
IPthreshold thresholds an ip_Image against lower and upper values, producing a bi-valued (logical) byte ip_Image as a result. A logical ip_Image is one in which all values are either 0 or 255.
If the values of Low Value and High Value are equal, values below the limit are set to 0 and values that are greater than or equal to the limit are set to MAXBYTE. (MAXBYTE is defined as 255.)
If the values of Low Value and High Value are different, values that are less than or equal to the low limit are set to 0; values that are greater than or equal to the high limit are also set to 0, and values within the high and low limits are set to MAXBYTE (255).
Input
The input is a reference to an ip_Image. The ip_Image must be of type byte because the dst image must be of type byte.
Parameters
Output Port
The output is a new single band ip_Image of type ipBYTE. Its xsize and ysize equal that of the input ip_Image. Its values are all either 0 or 255.
Example
Libraries.Examples.Image_Processing.IPthreshold
File
See also
![]() |
![]() |
![]() |
![]() |