SoMorphologicalGradientProcessing engine More...
#include <ImageViz/Engines/EdgeDetection/Gradient/SoMorphologicalGradientProcessing.h>
Public Types | |
enum | GradientMode { INTERNAL = 0, EXTERNAL = 1 } |
enum | PrecisionMode { FASTER = 0, PRECISE = 1 } |
Public Member Functions | |
SoMorphologicalGradientProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFImageDataAdapter | inImage |
SoSFEnum | gradientMode |
SoSFEnum | precisionMode |
SoSFInt32 | elementSize |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
The SoMorphologicalGradientProcessing engine emphasizes the edges of the objects using morphological operations.
For an introduction, see:
This engine emphasizes the edges of the objects using morphological operations. Two modes allow to enhance edges inside (Internal) or outside (External) of particles.
Figure 1 | Figure 2 | Figure 3 |
This engine uses SoErosionDiskProcessing2d or SoDilationDiskProcessing2d in 2D case and SoErosionBallProcessing3d or SoDilationBallProcessing3d in 3D case. Two additional parameters are also provided : Precision of the computation (Faster or Precise) and half-kernel size for morphological operation.
SoGradientOperatorProcessing2d, SoRadialGradientCenteredProcessing2d.
computeMode | MODE_AUTO |
inImage | NULL |
gradientMode | INTERNAL |
precisionMode | FASTER |
elementSize | 3 |
SoMorphologicalGradientProcessing::SoMorphologicalGradientProcessing | ( | ) |
Constructor.
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
The half size of the structuring element.
A structuring element always has an odd side length (3x3, 5x5, etc) which is defined by 2 * elementSize + 1. Default value is 3.
Select the computation mode for morphological gradient.
Use enum GradientMode. Default is INTERNAL
The input image.
Default value is NULL. Supported types include: grayscale binary label color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoMorphologicalGradientProcessing::outImage |
The output image.
Default value is NULL. Supported types include: grayscale binary label color image.
Select the precision for computation method.
Use enum PrecisionMode. Default is FASTER