DIPlib Documentation - ©1995-2014 Quantitative Imaging Group, Delft University of Technology.

GradientMagnitude

Derivative filter

SYNOPSIS

#include "dip_derivatives.h"

dip_Error dip_GradientMagnitude ( in, out, boundary, ps, sigmas, tc, flavour )

DATA TYPES

Depends on the underlying implementation, but expect:

binary, integer, float

FUNCTION

Computes the gradient magnitude of an image using the Derivative function.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput
dip_ImageoutOutput
dip_BoundaryArrayboundaryBoundary conditions
dip_BooleanArrayps (0)Dimensions to process
dip_FloatArraysigmasSigma of the Gaussian
dip_floattcGaussian truncation, see GlobalGaussianTruncationGet
dip_DerivativeFlavourflavourDerivative flavour

The enumerator flavour parameter is one of:

NameDescription
DIP_DF_DEFAULTDefault derivative flavour (==DIP_DF_FIRGAUSS)
DIP_DF_FIRGAUSSGaussian family, FIR implementation, Gauss
DIP_DF_IIRGAUSSGaussian family, IIR implementation, GaussIIR
DIP_DF_FTGAUSSGaussian family, FT implementation, GaussFT
DIP_DF_FINITEDIFFFinite difference implementation, FiniteDifferenceEx

SEE ALSO

See section 9.5, "Derivative-based operations", in Fundamentals of Image Processing.

Derivative, GradientDirection2D, Laplace, Dgg, LaplacePlusDgg, LaplaceMinDgg