Back to Aurora Vision Library website

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

XyzToRgb


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Converts color space from XYZ to Red-Green-Blue.

Applications: XYZ color space is designed for human perception - not recommended for machine vision.

Syntax

C++
C#
 
void avl::XyzToRgb
(
	const avl::Image& inXyzImage,
	avl::Image& outRgbImage
)

Parameters

Name Type Default Description
Input value inXyzImage const Image&
Output value outRgbImage Image&

Requirements

For input inXyzImage only pixel formats are supported: 3⨯uint8, 3⨯int8, 3⨯uint16, 3⨯int16, 3⨯int32, 3⨯real.

Read more about pixel formats in Image documentation.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

This operation supports processing on OpenCL compatible device (when pixel type is uint8).

Errors

List of possible exceptions:

Error type Description
DomainError Not a 3-channel image in XyzToRgb.
DomainError Not supported inXyzImage pixel format in XyzToRgb. Supported formats: 3xUInt8, 3xInt8, 3xUInt16, 3xInt16, 3xInt32, 3xReal.