Machine Vision Camera SDK (C) Developer Guide
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
fBayerGammaValue
[IN] Gamma value, range: [0.1, 4.0]
Return Value
Return MV_OK on success, and return Error Code on failure.
Remarks
After setting Gamma value by calling this API, you can call MV_CC_ConvertPixelType or
MV_CC_SaveImageEx2 to convert Bayer format to RGB24/BGR24/RGBA32/BGRA32.
4.5.6 MV_CC_SetBayerGammaParam
Set gamma parameters of Bayer pattern.
API Definition
int __stdcall MV_CC_SetBayerGammaParam(
void
*handle,
MV_CC_GAMMA_PARAM
*pstGammaParam
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
pstGammaParam
[IN] Gamma parameters structure. See MV_CC_GAMMA_PARAM for details.
Return Value
Return MV_OK for success, and return Error Code for failure.
Remarks
The configured gamma parameters take effect when you call API MV_CC_ConvertPixelType or
MV_CC_SaveImageEx2 to convert the format of Bayer8/10/12/16 into RGB24/48, RGBA32/64,
BGR24/48, or BGRA32/64.
103
    "