SoRadialGradientCenteredProcessing2d Class Reference
[Gradient]

ImageViz SoRadialGradientCenteredProcessing2d engine More...

#include <ImageViz/Engines/EdgeDetection/Gradient/SoRadialGradientCenteredProcessing2d.h>

Inheritance diagram for SoRadialGradientCenteredProcessing2d:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

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

Detailed Description

ImageViz 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 $x$ and knowing the gradient $Gx$ and $Gy$, the projected gradient of an image $I(x)$ is defined along the unitary vector $U(u,v)$, as :

\[G_p=Gx\times u + Gy\times v, ~with~ U(u,v)=\frac{\overrightarrow{x-p} }{\left \| x-p \right \|}\]

The SoRadialGradientCenteredProcessing2d performs a projected gradient computing the directional vector from a single given center. For all pixel $x$ in the image, $p$ is the center.

SoRadialGradient_image01.png
SoRadialGradient_image02.png

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

SEE ALSO

SoGradientOperatorProcessing2d, SoRadialGradientContourProcessing2d, SoRadialGradientLabelProcessing2d.

FILE FORMAT/DEFAULT


Library references: pgradient_centered2d


Member Enumeration Documentation

Enumerator:
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.


Constructor & Destructor Documentation

SoRadialGradientCenteredProcessing2d::SoRadialGradientCenteredProcessing2d (  ) 

Constructor.


Member Data Documentation

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.

The output normal gradient image.

Default value is NULL. Supported types include: grayscale binary label color image.

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


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/