SoRadialGradientLabelProcessing2d Class Reference
[Gradient]

ImageViz SoRadialGradientLabelProcessing2d engine More...

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

Inheritance diagram for SoRadialGradientLabelProcessing2d:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

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

Detailed Description

ImageViz SoRadialGradientLabelProcessing2d engine

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 $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 SoRadialGradientLabelProcessing2d engine performs a projected gradient computing the directional vector from all centers of the objects in the image label. For a pixel $x$ in the image, the center $p$ taken into account is the center of the closest object label.

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, SoRadialGradientCenteredProcessing2d, SoRadialGradientContourProcessing2d.

FILE FORMAT/DEFAULT


Library references: pgradient_label2d


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

SoRadialGradientLabelProcessing2d::SoRadialGradientLabelProcessing2d (  ) 

Constructor.


Member Data Documentation

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.

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.

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/