THORLABS DCU223x Operation Manual And Sdk page 170

Cdd and cmos cameras
Hide thumbs Also See for DCU223x:
Table of Contents

Advertisement

DCx Cameras
hCam
IS_AWB_CMD_SET_RGB_COLOR_MODEL
pParam
cbSizeOfParam
Return values
IS_INVALID_PARAMETER
IS_NO_SUCCESS
IS_NOT_SUPPORTED
IS_SUCCESS
Related functions
is_SetAutoParameter()
Example 1
UINT nSupportedTypes = 0;
INT nRet = is_AutoParameter(m_hCam,
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));
168
Camera handle
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
Sets the color space for the auto white balance
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.
One of the submitted parameters is outside the valid range or is not supported
for this sensor or is not available in this mode.
General error message
The camera model used here does not support this function or setting.
Function executed successfully
303
IS_AWB_CMD_GET_SUPPORTED_TYPES,
(void*)&nSupportedTypes,
sizeof(nSupportedTypes)
);
(Example 5
© 2013 Thorlabs GmbH
)
169

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dcu224xDcc1240xDcc1545mDcc1645c

Table of Contents