SoThresholdingProcessing Class Reference

ImageViz SoThresholdingProcessing engine More...

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

Inheritance diagram for SoThresholdingProcessing:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

 SoThresholdingProcessing ()

Public Attributes

SoSFEnum computeMode
SoSFImageDataAdapter inImage
SoSFVec2f thresholdLevel
< SoSFImageDataAdapter,
SoImageDataAdapter * > 

Detailed Description

ImageViz SoThresholdingProcessing engine

The SoThresholdingProcessing engine transforms a grayscale image into a binary image.

For an introduction, see section Binarization.

The SoThresholdingProcessing engine thresholds a grey level image. In the output binary image, all pixels with an initial grey level value lying between the two bounds are set to 1, all the other pixels are set to 0.

The SoThresholdingProcessing engine produces a binary image between two levels $\lambda_1$ and $\lambda_2$. Threshold with 2 bounds is the default, but a threshold with a single bound may be achieved by setting $\lambda_1$ or $\lambda_2$ to the values 0 or 255, respectively. The definition is:

\[O(n,m)=\begin{Bmatrix} 1 & \mbox {if & \lambda_1 \leq I(n,m) \leq \lambda_2} \\ 0 & \mbox{if & I(n,m)<\lambda_1 or I(n,m)>\lambda_2} \end{matrix}\]


Thresholding a grayscale image


SoAutoThresholdingProcessing, SoColorThresholdingProcessing.


Library references: threshold

See related examples:

InteractiveThresholding, OverlayDisplay, ThresholdingSegmentation, PoreAnalysis, StandardWorkflow, WorkflowWithRoi

Constructor & Destructor Documentation

SoThresholdingProcessing::SoThresholdingProcessing (  ) 


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 output binary image.

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

The low and high threshold levels.

Default value is SbVec2f(128.0f,255.0f).

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

Open Inventor Toolkit reference manual, generated on 15 May 2022
Copyright © Thermo Fisher Scientific All rights reserved.