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

BayerToRgb
Header: | FIL.h |
---|---|
Namespace: | fil |
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
void fil::BayerToRgb ( const fil::Image& inMonoImage, fil::DebayeringMethod::Type inDebayeringMethod, fil::BayerType::Type inBayerType, fil::Image& outRgbImage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inMonoImage | const Image& | ||
![]() |
inDebayeringMethod | DebayeringMethod::Type | ||
![]() |
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.
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. |