IPindex.gif Previous-2.gif Next-3.gif

IPthreshold


Synopsis

threshold ip_Image against low/high values

Input Ports

&in_image

ip_Image

&in_roi

ip_Roi

 

Parameters

Low Value

(float)

low threshold bound

High Value

(float)

high threshold bound

Invert

UItoggle

set to invert the result

 

Output Ports

dst

ip_Image_Out

TmpField

IPfld

obj

output renderable object

 

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 Ports

&in_image
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.
&in_roi
The input is a reference to an optional ip_Roi. The data must be of type byte.

Parameters

Low Value
Float slider. The low limit threshold value. The range is 0 to 255. The default is 0.
High Value
Float slider. The high limit threshold value. The range is 0 to 255. The default is 255.
Invert
If TRUE the results as described above are reversed.

Output Ports

dst
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.
TmpField
This output is the ip_Image converted back into an AVS/Express field.
obj
This is a renderable version of the output image.

Example

Libraries.Examples.Image_Processing.IPthreshold

File

v/ip.v

See also

Not applicable.

 



IPindex.gif Previous-2.gif Next-3.gif