Back to Aurora Vision Library website

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

BayerToRgb


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Converts a Bayer-encoded color image into RGB color space.

Applications: Use this filter only if the conversion functionality is not provided by the camera (check appropriate pixel types).

Syntax

C++
C#
 
void avl::BayerToRgb
(
	const avl::Image& inMonoImage,
	avl::DebayeringMethod::Type inDebayeringMethod,
	avl::BayerType::Type inBayerType,
	avl::Image& outRgbImage
)

Parameters

Name Type Default Description
Input value inMonoImage const Image&
Input value inDebayeringMethod DebayeringMethod::Type
Input value inBayerType BayerType::Type
Output value outRgbImage Image&

Requirements

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

Read more about pixel formats in Image documentation.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

This operation is optimized for SSSE3 technology for pixels of types: UINT8(for inDebayeringMethod=Bilinear).

This operation is optimized for NEON technology for pixels of types: UINT8(for inDebayeringMethod=Bilinear).

Errors

List of possible exceptions:

Error type Description
DomainError Not a 1-channel image at input of BayerToRgb.
DomainError Unsupported inBayerAlgorithm in BayerToRgb.
DomainError Not supported inMonoImage pixel format in BayerToRgb. Supported formats: 1xUInt8, 1xInt8, 1xUInt16, 1xInt16, 1xInt32, 1xReal.