Back to Aurora Vision Library Lite website

You are here: Start » Image » Image Conversions » AverageChannels_251

AverageChannels_251


Header: AVL.h
Namespace: avl

Creates a monochromatic image by averaging the input image channels.

Applications: Conversion to mono which is more consistent with human perception (our eyes are more sensitive to green).

Syntax

void avl::AverageChannels_251
(
	const avl::Image& inImage,
	atl::Optional<const avl::Region&> inRoi,
	avl::Image& outImage
)

Parameters

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

Requirements

For input inImage only pixel formats are supported: 3⨯uint8, 3⨯int8.

Read more about pixel formats in Image documentation.

Hardware Acceleration

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

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

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

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

Error type Description
DomainError Region exceeds an input image in AverageChannels_251.
DomainError Not supported inImage pixel format in AverageChannels_251. Supported formats: 3xUInt8, 3xInt8.