You are here: Start » AVL.NET » AVL.AverageChannels(AvlNet.Image, AvlNet.Region, AvlNet.Image)

AVL.AverageChannels(AvlNet.Image, AvlNet.Region, AvlNet.Image)

Creates a monochromatic image by averaging the input image channels.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void AverageChannels(
	AvlNet.Image inImage,
	AvlNet.Region inRoi,
	out AvlNet.Image outImage
)

Parameters

inImage
Type: AvlNet.Image
Input image
inRoi
Type: AvlNet.Region
Range of pixels to be processed, or null.
outImage
Type: AvlNet.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.

Hardware acceleration settings may be manipulated with Settings class.

See also