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 | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inRoi | Region | None | None | Range of outGradientImage pixels to be computed | |
![]() |
inOperator | GradientMaskOperator | GradientMaskOperator.Sobel | Defines how the gradient is computed | |
![]() |
inScale | int | 1 - 16 | 1 | Scales the resulting gradients |
![]() |
outGradientImage | Image | Gradients of the image | ||
![]() |
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.



