SoErosionSquareColorProcessing2d engine More...
#include <ImageViz/Engines/MathematicalMorphology/ErosionAndDilation/SoErosionSquareColorProcessing2d.h>
Public Types | |
enum | CriterionPlane { LUMINANCE = 0, SATURATION = 1 } |
Public Member Functions | |
SoErosionSquareColorProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inColorImage |
SoSFInt32 | elementSize |
SoSFEnum | criterionPlane |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outColorImage |
The SoErosionSquareColorProcessing2d engine performs an erosion on a true-color image.
For an introduction, see:
This engine performs an erosion on a true-color image, composed of 3 channels: red, green and blue. The minimum in the neighborhood is either computed on the Luminance or the Saturation of pixels, and the center is set to the pixel which gives the minimum Luminance or Saturation. With this method, no new color is created.
SoDilationSquareColorProcessing2d.
inColorImage | NULL |
elementSize | 3 |
criterionPlane | LUMINANCE |
SoErosionSquareColorProcessing2d::SoErosionSquareColorProcessing2d | ( | ) |
Constructor.
The plane to compute criterion.
Use enum CriterionPlane. Default is LUMINANCE
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.
The input color image.
Default value is NULL. Supported types include: color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoErosionSquareColorProcessing2d::outColorImage |
The output color image.
Default value is NULL. Supported types include: grayscale binary label color image.