Back to Aurora Vision Library website

You are here: Start » Function Reference » Image » Image Color Spaces » Rgb888ToRgb565

Rgb888ToRgb565


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Converts a RGB888 image into a RGB565 one.

Applications: Compression of pixel depth from 3 to 2 bytes.

Syntax

C++
C#
 
void avl::Rgb888ToRgb565
(
	const avl::Image& inRgb888Image,
	avl::Image& outRgb565Image
)

Parameters

Name Type Default Description
Input value inRgb888Image const Image&
Output value outRgb565Image Image&

Requirements

For input inRgb888Image only pixel formats are supported: 3⨯uint8.

Read more about pixel formats in Image documentation.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

Error type Description
DomainError Not a 3-channel and 8-bit image in Rgb888ToRgb565.
DomainError Not supported inRgb888Image pixel format in Rgb888ToRgb565. Supported formats: 3xUInt8.