eyes extract Extract a portion of intensity ranges from a color plane.

Creates an image with a single plane of information by extracting a portion of a source plane's information.

Inlets & Arguments:
#
Name
Arg
Description
1
image
n/a
Eyes Image, standard operator messages see: eyes messages
2
source
s
Source plane number: 0 = blue, 1 = green, 2 = red.
3
mask
m
Mask to use when copying:
0x000000ff = blue.
0x0000ff00 = green
0x00ff0000 = red.
4
shift
f,sh
Shift the source after applying the mask when copying.
Result = (source & mask) >> shift

Outlets:
#
Name Description
1
Extracted image An image with one plane of information from a portion of a source plane.

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, compact, pack, unpack