© 2013 Thorlabs GmbH168
DCx Cameras
RGB_COLOR_MODEL_SRGB_D50: 0x0001
RGB_COLOR_MODEL_SRGB_D65: 0x0002
RGB_COLOR_MODEL_CIE_RGB_E: 0x0004
RGB_COLOR_MODEL_ECI_RGB_D50: 0x0008
RGB_COLOR_MODEL_ADOBE_RGB_D65: 0x0010
IS_AWB_CMD_SET_RGB_COLOR_MODEL
Sets the color space for the auto white balance (Example 5 )
RGB_COLOR_MODEL_SRGB_D50: 0x0001
RGB_COLOR_MODEL_SRGB_D65: 0x0002
RGB_COLOR_MODEL_CIE_RGB_E: 0x0004
RGB_COLOR_MODEL_ECI_RGB_D50: 0x0008
RGB_COLOR_MODEL_ADOBE_RGB_D65: 0x0010
Pointer to a function parameter, whose function depends on nCommand.
Size (in bytes) of the memory area to which pParam refers.
Return values
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_SetAutoParameter()
Example 1
UINT nSupportedTypes = 0;
INT nRet = is_AutoParameter(m_hCam,
IS_AWB_CMD_GET_SUPPORTED_TYPES,
(void*)&nSupportedTypes,
sizeof(nSupportedTypes)
);
if (nRet == IS_SUCCESS)
{
if ((nSupportedTypes & IS_AWB_COLOR_TEMPERATURE) != 0)
{
// AWB type "Color Temperature" is supported
}
if ((nSupportedTypes & IS_AWB_GREYWORLD) != 0)
{
// AWB type "Greyworld" is supported
}
}
Example 2
UINT nType = 0;
// Read current type
INT nRet = is_AutoParameter(m_hCam, IS_AWB_CMD_GET_TYPE, (void*)&nType, sizeof(nType));
// Write new type
nType = IS_AWB_GREYWORLD;
nRet = is_AutoParameter(m_hCam, IS_AWB_CMD_SET_TYPE, (void*)&nType, sizeof(nType));
Example 3
// Is AWB enabled?
UINT nEnable;
INT nRet = is_AutoParameter(m_hCam, IS_AWB_CMD_GET_ENABLE, (void*)&nEnable, sizeof(nEnable));
// Enable AWB (once)
nEnable = IS_AUTOPARAMETER_ENABLE_RUNONCE;
nRet = is_AutoParameter(m_hCam, IS_AWB_CMD_SET_ENABLE, (void*)&nEnable, sizeof(nEnable));
169
303