Class SoRescaleIntensityProcessing
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.imageviz.engines.SoImageVizEngine
-
- com.openinventor.imageviz.engines.imagefiltering.grayscaletransforms.SoRescaleIntensityProcessing
-
- All Implemented Interfaces:
SafeDisposable
public class SoRescaleIntensityProcessing extends SoImageVizEngine
SoRescaleIntensityProcessing
engine. TheSoRescaleIntensityProcessing
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 input image is I, and the output image is O. Let [a, b] be the input range and [c, d] the output range, then:
- See Also:
SoMatchContrastProcessing
,SoBackgroundImageProcessing2d
,SoMathematicalFunctionProcessing File format/default: RescaleIntensityProcessing { computeMode MODE_AUTO inImage NULL outputType SAME_AS_INPUT rangeMode MIN_MAX intensityRangeInput 0.0f 255.0f intensityRangeOutput 0.0f 255.0f } Library references: RescaleIntensity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoRescaleIntensityProcessing.OutputTypes
static class
SoRescaleIntensityProcessing.RangeModes
-
Nested classes/interfaces inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFEnum<SoImageVizEngine.ComputeModes>
computeMode
Select the compute Mode (2D or 3D or AUTO) .SoSFImageDataAdapter
inImage
The input image.SoSFVec2f
intensityRangeInput
The input intensity range.SoSFVec2f
intensityRangeOutput
The output intensity range.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>
outImage
The output image.SoSFEnum<SoRescaleIntensityProcessing.OutputTypes>
outputType
Type of the output image.SoSFEnum<SoRescaleIntensityProcessing.RangeModes>
rangeMode
Select the input intensity range mode.-
Fields inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
onBegin, onEnd, onProgress
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoRescaleIntensityProcessing()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
computeMode
public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
Select the compute Mode (2D or 3D or AUTO) . Default is MODE_AUTO
-
inImage
public final SoSFImageDataAdapter inImage
The input image. Default value is NULL. Supported types include: grayscale binary label color image.
-
outputType
public final SoSFEnum<SoRescaleIntensityProcessing.OutputTypes> outputType
Type of the output image. . Default is SAME_AS_INPUT
-
rangeMode
public final SoSFEnum<SoRescaleIntensityProcessing.RangeModes> rangeMode
Select the input intensity range mode. . Default is MIN_MAX
-
intensityRangeInput
public final SoSFVec2f intensityRangeInput
The input intensity range. Default value isSbVec2f
(0.0f,255.0f).
-
intensityRangeOutput
public final SoSFVec2f intensityRangeOutput
The output intensity range. Default value isSbVec2f
(0.0f,255.0f).
-
outImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
The output image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-