SoRadialGradientLabelProcessing2d engine More...
#include <ImageViz/Engines/EdgeDetection/Gradient/SoRadialGradientLabelProcessing2d.h>
Public Types | |
enum | ProjectionMode { GRADIENT_NORMAL = 0, GRADIENT_NORMAL_TANGENTIAL = 1 } |
Public Member Functions | |
SoRadialGradientLabelProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inGradientXImage |
SoSFImageDataAdapter | inGradientYImage |
SoSFImageDataAdapter | inMarkerImage |
SoSFEnum | projectionMode |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outNormalImage |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outTangentImage |
The SoRadialGradientLabelProcessing2d 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 SoRadialGradientLabelProcessing2d engine performs a projected gradient computing the directional vector from all centers of the objects in the image label. For a pixel in the image, the center taken into account is the center of the closest object label.
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, SoRadialGradientContourProcessing2d.
inGradientXImage | NULL |
inGradientYImage | NULL |
inMarkerImage | NULL |
projectionMode | GRADIENT_NORMAL |
GRADIENT_NORMAL |
The engine computes the normal gradient. Only the outNormalImage output is set using this mode. |
GRADIENT_NORMAL_TANGENTIAL |
The engine computes the normal and tangential gradients. Both outNormalImage and outTangentImage outputs are set using this mode. |
SoRadialGradientLabelProcessing2d::SoRadialGradientLabelProcessing2d | ( | ) |
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: label color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRadialGradientLabelProcessing2d::outNormalImage |
The output normal gradient image.
Default value is NULL. Supported types include: grayscale binary label color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRadialGradientLabelProcessing2d::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