eyes threshold Creates a binary image.

Sets each image pixel to one of two values by comparing its intensity to a threshold. Thresholding is determined by an operator that specifies how the intensities are compared. Possible operators are: Greator, LessThan, Inside, Outside, Equal, and Not Equal.

Inlets & Arguments:
#
Name
Arg
Description
1
image
n/a
Eyes Image, standard operator messages see: eyes messages
2
threshold
t
Threshold for Greator, LessThan, Equal, and Not Equal operators.
Greator: pixel > t,
LessThan: Pixel< t
Equal: Pixel == t
Not Equal: Pixel != t
3
threshold2
t2
Extra Threshold value for Inside and Outside operators.
Inside: t < pixel < t2
Outside: pixel < t and t2 < pixel
4
low value
lo
Value to assign to pixels outside of threshold range.
5
high value
hi
Value to assign to pixels within threshold range.
6
Operator
op
Cycle mode (default = 0 (left to right))
0 = Greator
1 = LessThan
2 = Inside
3 = Outside
4 = Equal
5 = Not Equal

Outlets:
#
Name Description
1
thresholded image Resulting binary image
2
number of active pixels Number of pixels that are within threshold in the image. See results out for information on format.

Messages:

Standard messages
Accepts all messages sent to the eyes object. See eyes messages.

Argument messages
Accepts all inlet arguments as messages: t, t2, lo, hi, and op.

Example:

See Also:
>, <, <=, >=, <>, ><, !=, =