You are here: Start » AVL.NET » Function Reference » Image » Image Enhancement » AVL.SharpenImage

AVL.SharpenImage

Enhances contrast of an image so that it appears sharper.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SharpenImage
(
	AvlNet.Image inImage,
	float inContrastFactor,
	AvlNet.KernelShape inKernel,
	int inRadiusX,
	int? inRadiusY,
	AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inContrastFactorfloat<0.0f, INF>1.0fValue representing the strength of the contrast enhancement. Default value: 1.0f.
inKernelAvlNet.KernelShapeKernel shape.
inRadiusXint<0, INF>1Nearly half of the kernel's width (2*R+1). Default value: 1.
inRadiusYint?<0, INF>Nearly half of the kernel's height (2*R+1), or same as inRadiusX. Default value: atl::NIL.
outImageAvlNet.ImageOutput image.

Description

This filter increases the contrast of the image by multiplying by inContrastFactor the difference between a pixel value and its corresponding pixel value in the smoothed input image:

\[ \begin{aligned} outImage[i,j] &= inImage[i,j] + inContrastFactor \times (inImage[i,j] - smoothedImage[i,j]) \\ \end{aligned} \]

Examples

SharpenImage run on example image with inContrastFactor = 2.

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.

Hardware acceleration settings may be manipulated with Settings class.

Function Overrides

See also