Class SoRadialGradientContourProcessing2d
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.imageviz.engines.SoImageVizEngine
-
- com.openinventor.imageviz.engines.edgedetection.gradient.SoRadialGradientContourProcessing2d
-
- All Implemented Interfaces:
SafeDisposable
public class SoRadialGradientContourProcessing2d extends SoImageVizEngine
SoRadialGradientContourProcessing2d
engine. TheSoRadialGradientContourProcessing2d
engine performs a projected gradient computing the directional vector.For an introduction, see:
- section Edge Detection
- section Images Filters
- Introduction to Gradient
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
SoRadialGradientContourProcessing2d
engine performs a projected gradient computing the directional vector from the contour of objects. For a pixel in the image, the center taken into account is the closest pixel contour of the closest object.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
,SoRadialGradientLabelProcessing2d File format/default: RadialGradientContourProcessing2d { inGradientXImage NULL inGradientYImage NULL inMarkerImage NULL projectionMode GRADIENT_NORMAL } Library references: pgradient_contour2d
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoRadialGradientContourProcessing2d.ProjectionModes
-
Nested classes/interfaces inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description 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<SoRadialGradientContourProcessing2d.ProjectionModes>
projectionMode
Select the output images mode.-
Fields inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
onBegin, onEnd, onProgress
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoRadialGradientContourProcessing2d()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
inGradientXImage
public final SoSFImageDataAdapter inGradientXImage
The input X-gradient image. Default value is NULL. Supported types include: grayscale binary label image.
-
inGradientYImage
public final SoSFImageDataAdapter inGradientYImage
The input Y-gradient image. Default value is NULL. Supported types include: grayscale binary label image.
-
inMarkerImage
public final SoSFImageDataAdapter inMarkerImage
The input marker image. Default value is NULL. Supported types include: binary color image.
-
projectionMode
public final SoSFEnum<SoRadialGradientContourProcessing2d.ProjectionModes> projectionMode
Select the output images mode. . Default is GRADIENT_NORMAL
-
outNormalImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outNormalImage
The output normal gradient image. Default value is NULL. Supported types include: grayscale binary label color image.
-
outTangentImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outTangentImage
The output tangent gradient image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-