Window

MLModule

genre

LUT

author

MeVis Medical Solutions AG

package

MeVisLab/Standard

dll

MLMiscModules

definition

MLMiscModules.def

see also

Scale, RampLUT, LinearLUT, ApplyLUT

keywords

level, center, width, transfer, lut

Purpose

The module Window transforms the gray values of an image that are ranging in a certain interval.

Details

A LUT is defined for the input image values in the following way depending on a window center and a window width:

  • values smaller than (windowCenter - windowWidth/2) are mapped to imageMin

  • values greater than (windowCenter + windowWidth/2) are mapped to imageMax

  • values inside the interval from (windowCenter - windowWidth/2) to (windowCenter + windowWidth/2) are mapped to imageMin + (imageMax - imageMin) / windowWidth * (value - (windowCenter - windowWidth/2))

Values outside the interval are either set to the image maximum or the image minimum, and values inside are mapped to the entire range between the image maximum and the image minimum.

Input Fields

input0

name: input0, type: Image

Output Fields

output0

name: output0, type: Image

Parameter Fields

Visible Fields

Center

name: windowCenter, type: Double, default: 2047, minimum: :field:`imageMin`, maximum: :field:`imageMax`

Sets the center of the interval.

Width

name: windowWidth, type: Double, default: 4095, minimum: 1, maximum: 4096

Sets the width of the interval.

Hidden Fields

imageMin

name: imageMin, type: Double, persistent: no

Shows the minimum voxel value of the input image.

imageMax

name: imageMax, type: Double, persistent: no

Shows the maximum voxel value of the input image.