You are here: Start » AVL.NET » AVL.ImageAverage Method

AVL.ImageAverage Method

Computes the average of the image pixel values.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ImageAverage(
	AvlNet.Image inImage,
	AvlNet.Region inRoi,
	out AvlNet.Pixel outAverageColor,
	out float outAverageValue
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.RegionRange of pixels to be processed. Default value: atl::NIL, or null.
outAverageColorAvlNet.Pixel
outAverageValuefloat

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

Error type Description
DomainError Empty region of interest on input in ImageAverage.

See also