SoGradientOperatorProcessing2d Class Reference
[Gradient]

ImageViz SoGradientOperatorProcessing2d engine provides different algorithms to extract the edges of a 2D image. More...

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

Inheritance diagram for SoGradientOperatorProcessing2d:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  GradientOperator {
  CANNY_DERICHE = 0,
  SHEN_CASTAN = 1,
  CANNY = 3,
  GAUSSIAN = 4,
  SOBEL = 5,
  PREWITT = 6
}
enum  GradientMode {
  AMPLITUDE_MAX_OF_MAGS = 0,
  AMPLITUDE_EUCLIDEAN = 1,
  AMPLITUDE_AND_ORIENTATION = 2,
  X_AND_Y_GRADIENTS = 3
}

Public Member Functions

 SoGradientOperatorProcessing2d ()

Public Attributes

SoSFImageDataAdapter inImage
SoSFEnum gradientOperator
SoSFEnum gradientMode
SoSFFloat standardDeviation
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outGradientXImage
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outGradientYImage
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outAmplitudeImage
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outOrientationImage

Detailed Description

ImageViz SoGradientOperatorProcessing2d engine provides different algorithms to extract the edges of a 2D image.

For an introduction, see:

The SoGradientOperatorProcessing2d engine provides different algorithms to extract the edges of an image.

Note: You may normalize the filtered image, i.e. divide the output gray levels by the sum of absolute values of the kernel coefficients. If not, be aware that overflow may occur.

\[f(x,y)=\frac{p^2}{4}\cdot e^{(-p(|x|+|y|))}\]

The highest $p$ is, the more edges we get. For color images it calculates the maximum of intensity or the euclidian mean.

SEE ALSO

SoRadialGradientCenteredProcessing2d, SoMorphologicalGradientProcessing.

FILE FORMAT/DEFAULT


Library references: gradient

See related examples:

BatchProcessing


Member Enumeration Documentation

Enumerator:
AMPLITUDE_MAX_OF_MAGS 

This option computes the gradient maximal amplitude.

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 degrees).

Both outAmplitudeImage and outOrientationImage outputs are set using this mode.

X_AND_Y_GRADIENTS 

This option computes gradient in X and Y directions.

Both outGradientXImage and outGradientYImage outputs are set using this mode.

Enumerator:
CANNY_DERICHE 

The gradient is computed using the Canny-Deriche algorithm.

Supported gradient output modes : AMPLITUDE_MAX_OF_MAGS, AMPLITUDE_EUCLIDEAN, AMPLITUDE_AND_ORIENTATION and X_AND_Y_GRADIENTS.

SHEN_CASTAN 

The gradient is computed using the Shen and Castan algorithm.

Supported gradient output modes : AMPLITUDE_MAX_OF_MAGS.

CANNY 

The gradient is computed using the Canny algorithm.

Supported gradient output modes : AMPLITUDE_MAX_OF_MAGS and AMPLITUDE_EUCLIDEAN.

GAUSSIAN 

The gradient is computed using the Gaussian algorithm.

Supported gradient output modes : AMPLITUDE_MAX_OF_MAGS, AMPLITUDE_EUCLIDEAN, AMPLITUDE_AND_ORIENTATION and X_AND_Y_GRADIENTS.

SOBEL 

The gradient is computed using the Sobel algorithm.

Supported gradient output modes : AMPLITUDE_MAX_OF_MAGS, AMPLITUDE_EUCLIDEAN, AMPLITUDE_AND_ORIENTATION and X_AND_Y_GRADIENTS.

PREWITT 

The gradient is computed using the Prewitt algorithm.

Supported gradient output modes : AMPLITUDE_MAX_OF_MAGS, AMPLITUDE_EUCLIDEAN, AMPLITUDE_AND_ORIENTATION and X_AND_Y_GRADIENTS.


Constructor & Destructor Documentation

SoGradientOperatorProcessing2d::SoGradientOperatorProcessing2d (  ) 

Constructor.


Member Data Documentation

Select an output mode.

Use enum GradientMode. Default is AMPLITUDE_MAX_OF_MAGS

Select the gradient operator.

Use enum GradientOperator. Default is CANNY_DERICHE

The input image.

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

The output gradient amplitude image.

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

The output X-gradient image.

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

The output Y-gradient image.

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

The output gradient orientation image.

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

The standard deviation.

Default value is 60.0f.


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/