SoOpeningSquareColorProcessing2d engine More...
#include <ImageViz/Engines/MathematicalMorphology/OpeningAndClosing/SoOpeningSquareColorProcessing2d.h>
Public Types | |
enum | CriterionPlane { LUMINANCE = 0, SATURATION = 1 } |
Public Member Functions | |
SoOpeningSquareColorProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inColorImage |
SoSFInt32 | elementSize |
SoSFEnum | criterionPlane |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outColorImage |
The SoOpeningSquareColorProcessing2d engine performs an opening on a true-color image.
For an introduction, see:
This engine performs an opening on a true-color image composed of 3 channels: red, green and blue. The optimum 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 maximum Luminance or Saturation. With this method, no new color is created.
SoClosingSquareColorProcessing2d.
inColorImage | NULL |
elementSize | 3 |
criterionPlane | LUMINANCE |
SoOpeningSquareColorProcessing2d::SoOpeningSquareColorProcessing2d | ( | ) |
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: grayscale binary label color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoOpeningSquareColorProcessing2d::outColorImage |
The output color image.
Default value is NULL. Supported types include: grayscale binary label color image.