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 | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inRoi | Region | None | None | Range of output pixels to be computed | |
![]() |
inOperator | GradientMaskOperator | GradientMaskOperator.Sobel | Defines how the gradient is computed | |
![]() |
inEdgeThreshold | float | 0.01 - ![]() |
10.0 | Minimum edge magnitude (other pixels will be set to 0) |
![]() |
inAngleRange | AngleRange | Range of output angles | ||
![]() |
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.



