public class SoRadialGradientLabelProcessing2d extends SoImageVizEngine
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 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
See also:
SoGradientOperatorProcessing2d
, SoRadialGradientCenteredProcessing2d
, SoRadialGradientContourProcessing2d
.
File format/default:
RadialGradientLabelProcessing2d {
inGradientXImage | NULL |
inGradientYImage | NULL |
inMarkerImage | NULL |
projectionMode | GRADIENT_NORMAL |
Library references: pgradient_label2d
Modifier and Type | Class and Description |
---|---|
static class |
SoRadialGradientLabelProcessing2d.ProjectionModes |
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
GRADIENT_NORMAL
Deprecated.
|
static int |
GRADIENT_NORMAL_TANGENTIAL
Deprecated.
|
SoSFImageDataAdapter |
inGradientXImage
The input X-gradient image.
|
SoSFImageDataAdapter |
inGradientYImage
The input Y-gradient image.
|
SoSFImageDataAdapter |
inMarkerImage
The input marker image.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outNormalImage
The output normal gradient image.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outTangentImage
The output tangent gradient image.
|
SoSFEnum<SoRadialGradientLabelProcessing2d.ProjectionModes> |
projectionMode
Select the output images mode.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRadialGradientLabelProcessing2d()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int GRADIENT_NORMAL
SoRadialGradientLabelProcessing2d.ProjectionModes.GRADIENT_NORMAL
instead.@Deprecated public static final int GRADIENT_NORMAL_TANGENTIAL
SoRadialGradientLabelProcessing2d.ProjectionModes.GRADIENT_NORMAL_TANGENTIAL
instead.public final SoSFImageDataAdapter inGradientXImage
public final SoSFImageDataAdapter inGradientYImage
public final SoSFImageDataAdapter inMarkerImage
public final SoSFEnum<SoRadialGradientLabelProcessing2d.ProjectionModes> projectionMode
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outNormalImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outTangentImage
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com