SoRescaleIntensityProcessing Class Reference
[Grayscale Transforms]

ImageViz SoRescaleIntensityProcessing engine More...

#include <ImageViz/Engines/ImageFiltering/GrayscaleTransforms/SoRescaleIntensityProcessing.h>

Inheritance diagram for SoRescaleIntensityProcessing:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

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

Detailed Description

ImageViz SoRescaleIntensityProcessing engine

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].

SoRescaleIntensityProcessing_image01.png

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:

\[\begin{array}{ll} O(n,m)=c & ~\mbox{if $I(n,m) \leq a$}\\ O(n,m)=\left(\frac{d-c}{b-a}\right)(I(n,m)-a)+c & ~\mbox{if $a < I(n,m) \leq b$}\\ O(n,m)=d & ~\mbox{if $I(n,m) > b$}\end{array}\]

SEE ALSO

SoMatchContrastProcessing, SoBackgroundImageProcessing2d, SoMathematicalFunctionProcessing.

FILE FORMAT/DEFAULT


Library references: normalize


Member Enumeration Documentation

Enumerator:
MIN_MAX 

With this option the histogram is computed between the minimum and the maximum of the image.

OTHER 

With this option the histogram is computed between user-defined bounds [a,b].


Constructor & Destructor Documentation

SoRescaleIntensityProcessing::SoRescaleIntensityProcessing (  ) 

Constructor.


Member Data Documentation

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).

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


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/