GradientMagnitudeImage


Measures the strength of gradient at each pixel location.

Syntax

C++
Python
 
def GradientMagnitudeImage(
	inImage: Image,
	outValueImage: Image,
	/,
	*,
	inRoi: Region | None = None,
	inOperator: GradientMaskOperator = GradientMaskOperator.Sobel,
	inMeasure: MagnitudeMeasure = MagnitudeMeasure.Hypot,
	inScale: int = 1
)
-> None

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inRoi Region | None None Range of output pixels to be computed
Input value inOperator GradientMaskOperator GradientMaskOperator.Sobel Defines how the gradient is computed
Input value inMeasure MagnitudeMeasure MagnitudeMeasure.Hypot Defines how the gradient magnitude is computed
Input value inScale int 1 - 16 1 Scales the resulting gradient magnitudes
Output value outValueImage Image Gradient magnitudes of the image

Hardware Acceleration

This operation is optimized for SSSE3 technology for pixels of type: UINT8.

This operation is optimized for AVX2 technology for pixels of type: UINT8.

This operation is optimized for NEON technology for pixels of type: UINT8.

This operation supports automatic parallelization for multicore and multiprocessor systems.