SoLocalAdaptiveThresholdProcessing Class Reference
[Binarization]

ImageViz SoLocalAdaptiveThresholdProcessing engine More...

#include <ImageViz/Engines/ImageSegmentation/Binarization/SoLocalAdaptiveThresholdProcessing.h>

Inheritance diagram for SoLocalAdaptiveThresholdProcessing:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  ComparisonCriterion {
  GREATER_OR_EQUAL = 0,
  LESS_OR_EQUAL = 1
}
enum  ThresholdMode {
  MULTIPLICATIVE = 0,
  ADDITIVE = 1
}

Public Member Functions

 SoLocalAdaptiveThresholdProcessing ()

Public Attributes

SoSFEnum computeMode
SoSFVec3i32 kernelSize
SoSFImageDataAdapter inImage
SoSFFloat threshold
SoSFEnum comparisonCriterion
SoSFEnum thresholdMode
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outBinaryImage

Detailed Description

ImageViz SoLocalAdaptiveThresholdProcessing engine

The SoLocalAdaptiveThresholdProcessing engine performs a binarization of a grayscale image based on the mean intensity of a sliding window centered around each voxel.

Each voxel value $V$ is compared to the mean intensity $\bar{I}$ of its local window. The corresponding voxel in the binary output depends on the threshold value, mode, and comparison criterion.

In additive mode with comparison criterion set to GREATER_OR_EQUAL, the output is set to 1 if $ V \geq Threshold + \bar{I}$.

In multiplicative mode with comparison criterion set to GREATER_OR_EQUAL, the output is set to 1 if $V \geq Threshold * \bar{I}$.

For example to select voxels lower than 90% of their local mean, set threshold field to 0.9, comparisonCriterion field to LESS_OR_EQUAL and thresholdMode field to MULTIPLICATIVE.

SEE ALSO

: SoAdaptiveThresholdingProcessing, SoAutoThresholdingProcessing.

FILE FORMAT/DEFAULT


Library references: local_adaptive_threshold2d local_adaptive_threshold3d


Member Enumeration Documentation

Enumerator:
GREATER_OR_EQUAL 

All voxels whose value is greater than or equal to the local threshold value, are set to 1 otherwise they are set to 0.

LESS_OR_EQUAL 

All voxels whose value is less than or equal to the local threshold value, are set to 1 otherwise they are set to 0.

Enumerator:
MULTIPLICATIVE 

The local threshold is equal to $\bar{I}(x) * threshold$, where value is an input parameter and $\bar{I}(x)$ is the mean of a window centered on x.

ADDITIVE 

The local threshold is equal to $\bar{I}(x) + threshold$, where value is an input parameter and $\bar{I}(x)$ is the mean of a window centered on x.


Constructor & Destructor Documentation

SoLocalAdaptiveThresholdProcessing::SoLocalAdaptiveThresholdProcessing (  ) 

Constructor.


Member Data Documentation

Select the comparison test to perform between image and value.

Use enum ComparisonCriterion. Default is GREATER_OR_EQUAL

Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.

Default is MODE_AUTO

Input image.

The type of image can be integer or float Default value is NULL. Supported types include: grayscale image.

The kernel size in each direction for computing the mean intensity.

Default value is SbVec3i32(30,30,30)

The output binary image.

Default value is NULL. Supported types include: binary image.

Enter a floating value Default value is 1.0f.

Local threshold mode Use enum ThresholdMode.

Default is MULTIPLICATIVE


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/