PseudocolorImg

DESCRIPTION

This module takes a lattice with one data variable and generates a lattice with RGB and Alpha stored in the data section. The colormap is used as a lookup table for these colors. The output is a byte lattice. Input values in the range [0.0-1.0] are scaled to the range [0-255], primarily for use with DisplayImg.

INPUTS

Port: Img In
Type: Lattice
Constraints: 1-vector.
Input lattice.

Port: colormap
Type: Lattice
Constraints: 1-D.
4-vector.
float.
The colormap to be used for interpolating colors at the lattice values.

WIDGETS

Port: Scale by Alpha
Type: Option Menu
Menu Item: No Alpha Scaling
Menu Item: Scale by Alpha
When set to "No Alpha Scaling", the output RGBA values are the same as the colormap input values. When set to "Scale by Alpha", the output RGB values are scaled by the Alpha value, and the Alpha value is set to 255. This makes Alpha-blending effects visible in DisplayImg.

OUTPUTS

Port: Img Out
Type: Lattice
Constraints: 4-vector.
byte.
The RGBA output lattice.

PROBLEMS

SEE ALSO


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