SoRadialGradientContourProcessing2d engine More...
#include <ImageViz/Engines/EdgeDetection/Gradient/SoRadialGradientContourProcessing2d.h>
Public Types | |
enum | ProjectionMode { GRADIENT_NORMAL = 0, GRADIENT_NORMAL_TANGENTIAL = 1 } |
Public Member Functions | |
SoRadialGradientContourProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inGradientXImage |
SoSFImageDataAdapter | inGradientYImage |
SoSFImageDataAdapter | inMarkerImage |
SoSFEnum | projectionMode |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outNormalImage |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outTangentImage |
The SoRadialGradientContourProcessing2d engine performs a projected gradient computing the directional vector.
For an introduction, see:
In the continuous 2-D case, for a given pixel and knowing the gradient and , the projected gradient of an image is defined along the unitary vector , as :
The SoRadialGradientContourProcessing2d engine performs a projected gradient computing the directional vector from the contour of objects. For a pixel in the image, the center taken into account is the closest pixel contour of the closest object.
It is a common way to get the recursive gradient in X and Y directions for input image Gx and Gy, using a spread of 60.
The projected resulting gradient image is the Normal Gradient. Simultaneously, the tangential gradient could be computed with the option GRADIENT_NORMAL_TANGENTIAL of ProjectionMode
SoGradientOperatorProcessing2d, SoRadialGradientCenteredProcessing2d, SoRadialGradientLabelProcessing2d.
inGradientXImage | NULL |
inGradientYImage | NULL |
inMarkerImage | NULL |
projectionMode | GRADIENT_NORMAL |
GRADIENT_NORMAL |
The engine computes the normal gradient.
|
GRADIENT_NORMAL_TANGENTIAL |
The engine computes the normal and tangential gradients.
|
SoRadialGradientContourProcessing2d::SoRadialGradientContourProcessing2d | ( | ) |
Constructor.
The input X-gradient image.
Default value is NULL. Supported types include: grayscale binary label image.
The input Y-gradient image.
Default value is NULL. Supported types include: grayscale binary label image.
The input marker image.
Default value is NULL. Supported types include: binary color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRadialGradientContourProcessing2d::outNormalImage |
The output normal gradient image.
Default value is NULL. Supported types include: grayscale binary label color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRadialGradientContourProcessing2d::outTangentImage |
The output tangent gradient image.
Default value is NULL. Supported types include: grayscale binary label color image.
Select the output images mode.
Use enum ProjectionMode. Default is GRADIENT_NORMAL