© 2013 Thorlabs GmbH
4 Programming (SDK)
189
Contents of the BUFFER_CONVERSION_PARAMS structure
Pointer to the raw Bayer buffer which was created with the
is_AllocImageMem() function.
Pointer to the target buffer with the converted data which was
created with the is_AllocImageMem() function.
Color mode of the target image; see is_SetColorMode() for
the possible modes
Conversion mode of the target image; see
is_SetColorConverter() for the possible modes
Sets the gamma correction, see is_SetGamma()
Sets the edge enhancement, see is_EdgeEnhancement()
Sets the color correction, see is_SetColorCorrection()
Sets the color saturation (saturation U), see is_SetSaturation
()
Sets the color saturation (saturation V),see is_SetSaturation()
Return value
The image memory has an inappropriate size to store
the image in the desired format.
One of the submitted parameters is outside the valid
range or is not supported for this sensor or is not
available in this mode.
The camera model used here does not support this
function or setting.
Function executed successfully
Related functions
is_SetColorMode()
is_SetBayerConversion()
Example
BUFFER_CONVERSION_PARAMS conversionParams;
conversionParams.nDestPixelFormat = IS_CM_BGRA8_PACKED;
conversionParams.nDestPixelConverter = IS_CONV_MODE_SOFTWARE_3X3;
conversionParams.nDestColorCorrectionMode = IS_CCOR_DISABLE;
conversionParams.nDestGamma = 100;
conversionParams.nDestSaturationU = 100;
conversionParams.nDestSaturationV = 100;
conversionParams.nDestEdgeEnhancement = 0;
conversionParams.pSourceBuffer = pSourceBuffer;
conversionParams.pDestBuffer = pDestBuffer;
INT nRet = is_Convert(m_hCam,
IS_CONVERT_CMD_APPLY_PARAMS_AND_CONVERT_BUFFER,
(void*)&conversionParams,
sizeof(conversionParams)
);
157
157
319
315
332
206
317
342
342
319
420