eyes >< Creates a binary image.

Sets each image pixel to one of two values by comparing its intensity to two thresholds. Values outside of the two thresholds are set to the high value, and pixel values inside or equal to the thresholds are set to the low value.

Inlets & Arguments:
#
Name
Arg
Description
1
image
n/a
Eyes Image, standard operator messages see: eyes messages
2
low threshold
t
Low threshold:
If pixel < t or t2 < pixel then pixel = high value,
else pixel = low value.
3
high threshold
t2
High Threshold.
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.

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, and hi.

Example:

See threshold.

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