SoApplyMorphologicalLutProcessing2d engine allows to apply a morphological look up table on a 2D image. More...
#include <ImageViz/Engines/MathematicalMorphology/HitOrMissAndSkeleton/SoApplyMorphologicalLutProcessing2d.h>
Classes | |
class | SbApplyMorphLutDetail |
Results details of morphological Lut processing. More... | |
Public Types | |
enum | MatchingAction { SET_ZERO = 0, SET_ONE = 1, SET_CHANGE = 2, SET_UNCHANGE = 3 } |
Public Member Functions | |
SoApplyMorphologicalLutProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inBinaryImage |
SoSFMorphoLut2D | morphologicalLut |
SoSFEnum | matchingFlag |
SoSFEnum | noMatchingFlag |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outBinaryImage |
SoImageVizEngineAnalysisOutput < SbApplyMorphLutDetail > | outModifiedVoxels |
For an introduction, see section Morphological LUT.
The SoApplyMorphologicalLutProcessing2d engine applies the selected morphological lookup table (LUT) on the input image.
Before launching this engine, the morphological LUT has to be built using the SoMorphoLut2D::insertKernel method of the morphologicalLut field.
The "Apply a 2D-morphological LUT on an image" demo shows how to implement morphological thinning, thickening and hit-or-miss operations thanks to the SoApplyMorphologicalLutProcessing2d engine.
inBinaryImage | NULL |
morphologicalLut | 0 |
SoApplyMorphologicalLutProcessing2d::SoApplyMorphologicalLutProcessing2d | ( | ) |
Constructor.
The input binary image.
Default value is NULL. Supported types include: binary color image.
The value set when the condition is verified.
Use enum MatchingAction. Default is SET_ONE
The input morphological LUT array.
Default value is 0.
The value set when the condition is not verified.
Use enum MatchingAction. Default is SET_ZERO
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoApplyMorphologicalLutProcessing2d::outBinaryImage |
The output binary image.
Default value is NULL. Supported types include: grayscale binary label color image.
SoImageVizEngineAnalysisOutput<SbApplyMorphLutDetail> SoApplyMorphologicalLutProcessing2d::outModifiedVoxels |
The number of modified voxels.
Default value is NULL.