SharpenImage
Enhances contrast of an image so that it appears sharper.
Applications:Use this filter only to improve human perception, not to preprocess an image for analysis.
Syntax
C++
Python
def SharpenImage( inImage: Image, inContrastFactor: float, outImage: Image, /, *, inKernel: KernelShape = KernelShape.Box, inRadiusX: int = 1, inRadiusY: int | None = None ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inContrastFactor | float | 0.0 - ![]() |
Value representing the strength of the contrast enhancement | |
![]() |
inKernel | KernelShape | KernelShape.Box | Kernel shape | |
![]() |
inRadiusX | int | 0 - ![]() |
1 | Nearly half of the kernel's width (2*R+1) |
![]() |
inRadiusY | int | None | 0 - ![]() |
None | Nearly half of the kernel's height (2*R+1), or same as inRadiusX |
![]() |
outImage | Image | Output image |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
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.



