Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image Conversions » AverageChannels

AverageChannels


Creates a monochromatic image by averaging the input image channels.

Syntax

C++
C#
 
void avl::AverageChannels
(
	const avl::Image& inImage,
	atl::Optional<const avl::Region&> inRoi,
	avl::Image& outImage
)

Parameters

Name Type Default Description
inImage const Image& Input image
inRoi Optional<const Region&> NIL Range of pixels to be processed
outImage Image& Output image

Description

The operation computes the monochromatic average of inImage color channels. Average being computed at each pixel is a standard arithmetic mean.

Examples

AverageChannels run on example image.

Hardware Acceleration

This operation is optimized for SSE2 technology for pixels of type: 3xUINT8.

This operation supports automatic parallelization for multicore and multiprocessor systems.

See Also