GradientDirAndPresenceImage


Computes an image of gradient directions mapped to the range from 1 to 255. Zero means "no edge".

Applications:For highly optimized analysis of gradient directions.

Syntax

C++
C#
Python
 
def GradientDirAndPresenceImage(
	inImage: Image,
	inAngleRange: AngleRange,
	outDirectionsImage: Image,
	/,
	*,
	inRoi: Region | None = None,
	inOperator: GradientMaskOperator = GradientMaskOperator.Sobel,
	inEdgeThreshold: float = 10.0
)
-> 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 inEdgeThreshold float 0.01 - 10.0 Minimum edge magnitude (other pixels will be set to 0)
Input value inAngleRange AngleRange Range of output angles
Output value outDirectionsImage Image

Hardware Acceleration

This operation is optimized for SSE41 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.