SoRadialGradientCenteredProcessing2d engine  
More...
#include <ImageViz/Engines/EdgeDetection/Gradient/SoRadialGradientCenteredProcessing2d.h>
  
 Public Types | |
| enum | ProjectionMode {  GRADIENT_NORMAL = 0, GRADIENT_NORMAL_TANGENTIAL = 1 }  | 
Public Member Functions | |
| SoRadialGradientCenteredProcessing2d () | |
Public Attributes | |
| SoSFImageDataAdapter | inGradientXImage | 
| SoSFImageDataAdapter | inGradientYImage | 
| SoSFVec2i32 | projectionCenter | 
| SoSFEnum | projectionMode | 
| SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * >  | outNormalImage | 
| SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * >  | outTangentImage | 
  SoRadialGradientCenteredProcessing2d engine 
The SoRadialGradientCenteredProcessing2d 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 SoRadialGradientCenteredProcessing2d performs a projected gradient computing the directional vector from a single given center. For all pixel 
 in the image, 
 is the center.
 
 |  
 | 
It is a common way to get the recursive gradient in X and Y directions for input image 
 and 
, 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, SoRadialGradientContourProcessing2d, SoRadialGradientLabelProcessing2d.
| inGradientXImage | NULL | 
| inGradientYImage | NULL | 
| projectionCenter | 0 0 | 
| 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.  | 
| SoRadialGradientCenteredProcessing2d::SoRadialGradientCenteredProcessing2d | ( | ) | 
Constructor.
The input X-gradient image.
Default value is NULL. Supported types include: grayscale color image.
The input Y-gradient image.
Default value is NULL. Supported types include: grayscale color image.
| SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRadialGradientCenteredProcessing2d::outNormalImage | 
The output normal gradient image.
Default value is NULL. Supported types include: grayscale binary label color image.
| SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRadialGradientCenteredProcessing2d::outTangentImage | 
The output tangent gradient image.
Default value is NULL. Supported types include: grayscale binary label color image.
The center of projection coordinates.
Default value is SbVec2i32(0,0).
Select the output images mode.
Use enum ProjectionMode. Default is GRADIENT_NORMAL