© 2016 Thorlabs Scientific Imaging132
DCx Camera Functional Description and SDK Manual
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));
Example 4
UINT nSupportedRGBColorModels = 0;
nRet = is_AutoParameter(m_hCam,
IS_AWB_CMD_GET_SUPPORTED_RGB_COLOR_MODELS,
(void*)&nSupportedRGBColorModels,
sizeof(nSupportedRGBColorModels)
);
if (nRet == IS_SUCCESS)
{
if ((nSupportedRGBColorModels & RGB_COLOR_MODEL_SRGB_D50) != 0)
{
// Color model SRGB D50 is supported. See uc480.h for color model defines
}
}
Example 5
UINT nRGBColorModel = 0;
INT nRet = is_AutoParameter(m_hCam,
IS_AWB_CMD_GET_RGB_COLOR_MODEL,
(void*)&nRGBColorModel,
sizeof(nRGBColorModel)
);
nRGBColorModel = RGB_COLOR_MODEL_CIE_RGB_E;
nRet = is_AutoParameter(m_hCam,
IS_AWB_CMD_SET_RGB_COLOR_MODEL,
(void*)&nRGBColorModel,
sizeof(nRGBColorModel)
);