Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image Pixel Statistics » ImageAverage

ImageAverage


Computes the average of the image pixel values.

Syntax

C++
C#
 
void avl::ImageAverage
(
	const avl::Image& inImage,
	atl::Optional<const avl::Region&> inRoi,
	avl::Pixel& outAverageColor,
	atl::Optional<float&> outAverageValue = atl::NIL
)

Parameters

Name Type Default Description
inImage const Image& Input image
inRoi Optional<const Region&> NIL Range of pixels to be processed
outAverageColor Pixel&
outAverageValue Optional<float&> NIL

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

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