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
Constraints: 4-vector
Constraints: float

The colormap to be used for interpolating colors at the lattice values.

WIDGETS

Port: Scale by Alpha
Type: Check Box

When this parameter is turned off, the output RGBA values are the same as the colormap input values. When it is turned on, 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
Constraints: byte

The RGBA output lattice.

KNOWN PROBLEMS

SEE ALSO


[Documentation Home]