GEV_STATUS ConvertBayerToRGB

( int convAlgorithm, UINT32 h, UINT32 w, UINT32 inFormat, void *inImage, UINT32 outFormat, void *outImage);

Description

Converts a Bayer image to an RGB image. Supported conversions are:

·         8-bit Bayer to 8-bit RGB

·         16-bit Bayer to 10/12/14/16-bit RGB

·         16-bit Bayer to 8-bit RGB (typically for display purposes)

Parameters

convAlgorithm

Conversion algorithm. Currently, only BAYER_CONVERSION_2X2 is supported.

h

Height, in pixels, of Bayer image to convert.

w

Width, in pixels, of Bayer image to convert.

inFormat

Bayer format of image to convert. Refer to

outFormat

Output image RGB format

*outImage

Pointer to memory to hold output RGB image

Return Value

Possible return values include:

GEVLIB_ERROR_PARAMETER_INVALID: Unsupported input format or algorithm.

 

 

Related Topics

Appendix B: Helper Functions