Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Color Spaces » BayerToRgb
BayerToRgb
Converts a Bayer-encoded color image into RGB color space.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::BayerToRgb ( const avl::Image& inMonoImage, avl::BayerType::Type inBayerType, avl::Image& outRgbImage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inMonoImage | const Image& | |||
inBayerType | BayerType::Type | |||
outRgbImage | Image& |
Requirements
For input inMonoImage only pixel formats are supported: 1xuint8, 1xint8, 1xuint16, 1xint16, 1xint32, 1xreal.
Read more about pixel formats in Image documentation.
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Errors
Error type | Description |
---|---|
DomainError | Not a 1-channel image at input of BayerToRgb. |
DomainError | Not supported bayer type value in BayerToRgb. |