eyes unpack Unpack color planes into individual images.

Creates a set of images from the intensity planes of an image. Each intensity/color plane becomes a separate image.

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
Image 1 Image 1 with only one plane of information. image[destination] = (source[index] & mask) >> shift
2
Image 2 Image 2 with only one plane of information.
...
Images 3 through 11 Outlets 3 through 11 are destination images 3 through 11.
12
Image 12 Image 12 with only one plane of information.

Messages:

source destination source
Determines which source image plane is copied to which destination image.

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

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

Example:

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