SoRegionalExtremaProcessing engine More...
#include <ImageViz/Engines/MathematicalMorphology/GeodesicTransformations/SoRegionalExtremaProcessing.h>
Public Types | |
enum | RegionalOperator { MINIMA = 0, MAXIMA = 1 } |
Public Member Functions | |
SoRegionalExtremaProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFEnum | neighborhood3d |
SoSFEnum | regionalOperator |
SoSFImageDataAdapter | inImage |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outBinaryImage |
The SoRegionalExtremaProcessing engine computes the regional or relative fast maxima and minima in a grayscale image, , and displays the result in a binary image, . This algorithm is based on [1] and uses a recursive method combined with a geodesic propagation. To avoid getting too many regions in the output image, input should first be smoothed with a low-pass filter or with the dual numerical reconstruction algorithm.
Case Minima
This case of use computes the regional or relative minima in a grayscale image and creates a binary image containing these minima.
A regional minimum is a set of connected pixels such that:
Figure 1: Examples of regional minima in 1D.
Case Maxima
This engine computes the regional or relative maxima in a grayscale image and creates a binary image containing these maxima.
A regional maximum is a set of connected pixels such that:
Figure 2: Examples of regional maxima in 1 and 2D.
[1] B. Laÿ. "Recursive Algorithms in Mathematical Morphology." In Acta Stereologica. Vol. 6/III, pp 691-696, Caen, France, Sept. 1987. 7th International Congress For Stereology.
SoGrayscaleResconstructionProcessing.
computeMode | MODE_AUTO |
neighborhood3d | CONNECTIVITY_26 |
regionalOperator | MAXIMA |
inImage | NULL |
SoRegionalExtremaProcessing::SoRegionalExtremaProcessing | ( | ) |
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.
In 3D configuration (see computeMode), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels.
Use enum Neighborhood3d. Default is CONNECTIVITY_26.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRegionalExtremaProcessing::outBinaryImage |
The output binary image.
Default value is NULL. Supported types include: binary image.
Select the operator.
Use enum RegionalOperator. Default is MAXIMA