User`s guide
FUNCTIONS
SDK SECTION 11
Page 142
GetMostRecentColorImage16
unsigned int WINAPI GetMostRecentColorImage16 (unsigned long size, int algorithm, WORD* red,
WORD* green, WORD* blue)
Description For colour sensors only.
Color version of the
GetMostRecentImage16 function. The CCD is sensitive to Cyan,
Yellow, Magenta and Green (CYMG). The Red, Green and Blue (RGB) are calculated
and Data is stored in 3 planes/images, one for each basic color.
Parameters
unsigned long size: total number of pixels.
int algorithm: algorithm used to extract the RGB from the original CYMG CCD.
0: basic algorithm combining Cyan, Yellow and Magenta.
1: algorithm combining Cyan, Yellow, Magenta and Green.
WORD* red: pointer to red data storage allocated by the user.
WORD* green: pointer to red data storage allocated by the user.
WORD* blue: pointer to red data storage allocated by the user.
Return
unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ERROR_ACK
DRV_P1INVALID
DRV_P2INVALID
DRV_P3INVALID
DRV_P4INVALID
DRV_P5INVALID
DRV_NO_NEW_DATA
Image RGB has been copied into arrays.
System not initialized.
Unable to communicate with card.
Arrays size is incorrect.
Invalid algorithm.
Invalid red pointer (i.e. NULL)..
Invalid green pointer (i.e. NULL)..
Invalid bluepointer (i.e. NULL)..
There is no new data yet.
See also
GetMostRecentImage16, DemosaicImage, WhiteBalance.