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
Input value inImage Image Input image
Input value inContrastFactor float 0.0 - Value representing the strength of the contrast enhancement
Input value inKernel KernelShape KernelShape.Box Kernel shape
Input value inRadiusX int 0 - 1 Nearly half of the kernel's width (2*R+1)
Input value inRadiusY int | None 0 - None Nearly half of the kernel's height (2*R+1), or same as inRadiusX
Output value 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.