ColorXform

DESCRIPTION

Creates a gray-scale image from an RGB image. The intensity is the linear combination of the R, G, and B channels scaled by the transform scalars. Before output, the intensity is scaled to [0...255].

Can be used to replace the LatFunction module in the color-xform sample map.

INPUTS

Port: First In
Type: Lattice
Constraints: 2-D.
3-vector.
The image data to be transformed.

WIDGETS

Port: R transform
Type: Dial
The scaling factor applied to the red component.

Port: G transform
Type: Dial
The scaling factor applied to the green component.

Port: B transform
Type: Dial
The scaling factor applied to the blue component.

Port: Debug?
Type: Radio Box
Menu Item: Normal
Menu Item: Debug
To turn debugging on (default off).

OUTPUTS

Port: First Out
Type: Lattice
Constraints: 2-D.
1-vector.
byte.
uniform.
The gray-scale transformed image.

PROBLEMS

SEE ALSO

LatFunction
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996