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 | |
|---|---|---|---|---|---|
![]() |
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 | |
![]() |
inMeasure | MagnitudeMeasure | MagnitudeMeasure.Hypot | Defines how the gradient magnitude is computed | |
![]() |
inScale | int | 1 - 16 | 1 | Scales the resulting gradient magnitudes |
![]() |
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.


