Purpose

The module RampLUT generates an RGB and alpha ramp lookup table (LUT) object.

The LUT can be used with the ApplyLUT module or within 2D/3D viewers (in conjunction with SoMLLUT). The two ramps for RGB and alpha channels can be parametrized independently.

Usage

Select parameters for the RGB Ramp and the Alpha Ramp. For both ramps, specifiy Center and Width, as well as Start and End color or alpha value.

Connect the outLUT output field to a SoMLLUT module to use the LUT in a 2D/3D viewer, or to an ApplyLUT module to apply the LUT to an ML image.

Details

See LUT Functions for general information about ML lookup tables.

Windows

Default Panel

../../../Modules/ML/MLLUTTools/mhelp/Images/Screenshots/RampLUT._default.png

Output Fields

outLUT

name: outLUT, type: MLBase

Parameter Fields

Field Index

Center (center): Double Width (alphaWidth): Double
Center (alphaCenter): Double  
End (endColor): Color  
End (alphaEnd): Double  
Relative: Bool  
Start (startColor): Color  
Start (alphaStart): Double  
Width (width): Double  

Visible Fields

Relative

name: relative, type: Bool, default: TRUE

If checked, the generated LUT is relative, i.e. the index value interval [0..1] is rescaled to the true image value range before applying the LUT. If the LUT is absolute, on the other hand, the image values are used as index values directly, without rescaling.

Center (center)

name: center, type: Double, default: 0.5

Sets the center index value of the ramp, either as an absolute image value or relative to [0..1].

Width (width)

name: width, type: Double, default: 1

Sets the width value of the ramp, either as an absolute image value range or relative to [0..1].

Start (startColor)

name: startColor, type: Color, default: 0 0 0

Sets the color used for index values below the start of the ramp (i.e. index <= center-width/2).

End (endColor)

name: endColor, type: Color, default: 1 1 1

Sets the color used for index values above the end of the ramp (i.e. index >= center+width/2).

Center (alphaCenter)

name: alphaCenter, type: Double, default: 0.5

Sets the center index value of the ramp, either as an absolute image value or relative to [0..1].

Width (alphaWidth)

name: alphaWidth, type: Double, default: 1

Sets the width value of the ramp, either as an absolute image value range or relative to [0..1].

Start (alphaStart)

name: alphaStart, type: Double, default: 0, minimum: 0, maximum: 1

Sets the alpha value used for index values below the start of the ramp (i.e. index <= center-width/2).

End (alphaEnd)

name: alphaEnd, type: Double, default: 1, minimum: 0, maximum: 1

Sets the alpha value used for index values above the end of the ramp (i.e. index >= center+width/2).