SoGradientMagnitudeProcessing2d engine
More...
#include <ImageViz/Engines/EdgeDetection/Gradient/SoGradientMagnitudeProcessing2d.h>
Public Types | |
| enum | GradientMode { AMPLITUDE_MAX_OF_MAGS = 0, AMPLITUDE_EUCLIDEAN = 1, AMPLITUDE_AND_ORIENTATION = 2 } |
Public Member Functions | |
| SoGradientMagnitudeProcessing2d () | |
Public Attributes | |
| SoSFImageDataAdapter | inGradientXImage |
| SoSFImageDataAdapter | inGradientYImage |
| SoSFEnum | gradientMode |
| SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outAmplitudeImage |
| SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outOrientationImage |
SoGradientMagnitudeProcessing2d engine
For an introduction to gradient operations, see section Introduction to Gradient.
The SoGradientMagnitudeProcessing2d engine computes the gradient amplitude and orientation from gradient images along X and Y axis. The results depend on the selected gradient mode.
See also: SoGradientOperatorProcessing2d, SoGradientMagnitudeProcessing3d.
| inGradientXImage | NULL |
| inGradientYImage | NULL |
| gradientMode | AMPLITUDE_MAX_OF_MAGS |
| AMPLITUDE_MAX_OF_MAGS |
This option computes the gradient amplitude as the maximum of magnitudes. Only the outAmplitudeImage output is set using this mode. |
| AMPLITUDE_EUCLIDEAN |
This option computes the gradient euclidean amplitude. Only the outAmplitudeImage output is set using this mode. |
| AMPLITUDE_AND_ORIENTATION |
This option computes euclidean amplitude and the orientation (between -128° and +128°). Both outAmplitudeImage and outOrientationImage outputs are set using this mode. |
| SoGradientMagnitudeProcessing2d::SoGradientMagnitudeProcessing2d | ( | ) |
Constructor.
Select an output mode.
Use enum GradientMode. Default is AMPLITUDE_MAX_OF_MAGS
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*> SoGradientMagnitudeProcessing2d::outAmplitudeImage |
The output gradient amplitude image.
Default value is NULL. Supported types include: grayscale binary label color image.
| SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoGradientMagnitudeProcessing2d::outOrientationImage |
The output gradient orientation image.
Default value is NULL. Supported types include: grayscale binary label color image.