BayerToRGBImage

RGB conversion filter

int BayerToRGBImage(
        const BYTE      *srcImage,
        const int       sizeX,
        const int       sizeY,
        const int       x1,
        const int       y1,
        const int       x2,
        const int       y2,
        const int       arrayType,
        const int       maskSize,
        IMAGE           *destImage
)

Parameters
*srcImage
Input image data address
sizeX
Image X size
sizeY
Image Y size
x1, y1
Area upper left coordinate
x2, y2
Area lower right coordinate
arrayType
Bayer array type
0: BG
maskSize
Mask size
0: 3 x 3
*destImage
Output image data structure address

Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion

Description
Converts the input Bayer image to a RGB full color image.
The entire screen is converted without specifying any regions.

Notes