You are here: Start » AVL.NET » Function Reference » Image » Image Local Transforms » AVL.GradientImage

AVL.GradientImage

Computes a gradient image with smoothing operator of any size. The output pixels are signed.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void GradientImage
(
	AvlNet.Image inImage,
	NullableRef<AvlNet.Region> inRoi,
	AvlNet.GradientOperator inOperator,
	float inStdDevX,
	float? inStdDevY,
	AvlNet.Image outGradientImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.NullableRef<AvlNet.Region>Range of outGradientImage pixels to be computed. Default value: atl::NIL.
inOperatorAvlNet.GradientOperatorDefines how the gradient is computed.
inStdDevXfloat<0.0f, INF>2.0fHorizontal smoothing standard deviation. Default value: 2.0f.
inStdDevYfloat?<0.0f, INF>Vertical smoothing standard deviation. Default value: atl::NIL.
outGradientImageAvlNet.ImageGradients of the image.

Remarks

Please note that about a half of the pixels will be negative and in the preview windows they will be displayed as black.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

List of possible exceptions:

Error type Description
DomainError Region exceeds an input image in GradientImage.

Function Overrides

See also