GradientImage_Mask


Computes a gradient image with a Sobel or Prewitt operator.

Syntax

C++
Python
 
def GradientImage_Mask(
	inImage: Image,
	outGradientImage: Image,
	/,
	*,
	inRoi: Region | None = None,
	inOperator: GradientMaskOperator = GradientMaskOperator.Sobel,
	inScale: int = 1,
	diagGradientDirections: Image | None = None
)
-> None

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inRoi Region | None None Range of outGradientImage pixels to be computed
Input value inOperator GradientMaskOperator GradientMaskOperator.Sobel Defines how the gradient is computed
Input value inScale int 1 - 16 1 Scales the resulting gradients
Output value outGradientImage Image Gradients of the image
Diagnostic input diagGradientDirections Image | None None Gradient directions presented in a human readable format

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.