Back to FabImage Library website
You are here: Start » Function Reference » Image Color Spaces » BayerToRgb

BayerToRgb
Header: | FIL.h |
---|---|
Namespace: | fil |
Converts a Bayer-encoded color image into RGB color space.
Syntax
C++
C#
void fil::BayerToRgb ( const fil::Image& inMonoImage, fil::BayerType::Type inBayerType, fil::Image& outRgbImage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inMonoImage | const Image& | ||
![]() |
inBayerType | BayerType::Type | ||
![]() |
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.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not a 1-channel image at input of BayerToRgb. |
DomainError | Not supported bayer type value in BayerToRgb. |
DomainError | Not supported inMonoImage pixel format in BayerToRgb. |