eyes compact Create a one color plane image.

Creates an image with a single plane of information from an image with multiple planes of information.

Inlets & Arguments:
#
Name
Arg
Description
1
image
n/a
Eyes Image, standard operator messages see: eyes messages
2
number of input layers
n
Number of planes to combin into one. Messages below determine which planes are used in the operation.
3
type
t
Type of combining of layers to perform:
0 = largest value in the n planes
1 = average of the n planes
2 = sum of the pixel intensities in the n planes.

Outlets:
#
Name Description
1
Compacted image Image with only one plane of information.

Messages:

source index source
Determines which source image plane is used in the operation.

shift index shift
Determines how far the given source plane is shifted in intensity values when incorporated into the destination plane.
destination #= (source & mask) >> shift

mask index mask
Determines a mask that is used when transferring the source plane to the destination plane.

Example:

See Also:
eyes, color, regions, extract,pack,unpack