SoRescaleIntensityProcessing engine More...
#include <ImageViz/Engines/ImageFiltering/GrayscaleTransforms/SoRescaleIntensityProcessing.h>
Public Types | |
enum | RangeMode { MIN_MAX = 0, OTHER = 1 } |
Public Member Functions | |
SoRescaleIntensityProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFImageDataAdapter | inImage |
SoSFEnum | rangeMode |
SoSFVec2f | intensityRangeInput |
SoSFVec2f | intensityRangeOutput |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
The SoRescaleIntensityProcessing engine performs a linear scaling of the gray level values of an image.
This engine performs a linear scaling of the gray level values of an image to a user-specified interval. It may be applied to images with a gray level range other than [0, 255], and for short or floating point images. In Figure , the input gray levels of interest are in the user-specified interval [a, b], and the output range is the interval [c, d].
The normalize transformation
The input image is I, and the output image is O. Let [a, b] be the input range and [c, d] the output range, then:
SoMatchContrastProcessing, SoBackgroundImageProcessing2d, SoMathematicalFunctionProcessing.
computeMode | MODE_AUTO |
inImage | NULL |
rangeMode | MIN_MAX |
intensityRangeInput | 0.0f 255.0f |
intensityRangeOutput | 0.0f 255.0f |
SoRescaleIntensityProcessing::SoRescaleIntensityProcessing | ( | ) |
Constructor.
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
The input image.
Default value is NULL. Supported types include: grayscale binary label color image.
The input intensity range.
Default value is SbVec2f(0.0f,255.0f).
The output intensity range.
Default value is SbVec2f(0.0f,255.0f).
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRescaleIntensityProcessing::outImage |
The output image.
Default value is NULL. Supported types include: grayscale binary label color image.
Select the input intensity range mode.
Use enum RangeMode. Default is MIN_MAX