Back to Aurora Vision Library website

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

RgbToYuv


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Converts color space from Red-Green-Blue into YUV.

Syntax

C++
C#
 
void avl::RgbToYuv
(
	const avl::Image& inRgbImage,
	avl::Image& outYuvImage
)

Parameters

Name Type Default Description
Input value inRgbImage const Image&
Output value outYuvImage Image&

Requirements

For input inRgbImage 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 RgbToYuv.
DomainError Not supported inRgbImage pixel format in RgbToYuv. Supported formats: 3xUInt8.