THORLABS DCU223x Operation Manual And Sdk page 166

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

Advertisement

DCx Cameras
Sample 1 for AOI
// Sets the position and size of the image by using an object of the IS_RECT type.
IS_RECT rectAOI;
rectAOI.s32X
= 100;
rectAOI.s32Y
= 100;
rectAOI.s32Width
= 200;
rectAOI.s32Height = 100;
INT nRet = is_AOI( hCam, IS_AOI_IMAGE_SET_AOI, (void*)&rectAOI, sizeof(rectAOI));
Sample 2 for AOI
// Returns the AOI position and size by using an object of the IS_RECT type.
IS_RECT rectAOI;
INT nRet = is_AOI(hCam, IS_AOI_IMAGE_GET_AOI, (void*)&rectAOI, sizeof(rectAOI));
if
(nRet == IS_SUCCESS)
{
INT x
= rectAOI.s32X;
INT y
= rectAOI.s32Y;
INT width
= rectAOI.s32Width;
INT height = rectAOI.s32Height;
}
Sample 3 for AOI
// Returns an UINT object indicating whether IS_AOI_IMAGE_POS_ABSOLUTE is set for the X position.
UINT nAbsPos = 0;
INT nRet = is_AOI(hCam, IS_AOI_IMAGE_GET_POS_X_ABS, (void*)&nAbsPos , sizeof(nAbsPos ));
if
(nRet == IS_SUCCESS)
{
if
(nAbsPos == IS_AOI_IMAGE_POS_ABSOLUTE)
{
// set
}
else if
(nAbsPos == 0)
{
// not set
}
}
Examples for setting absolute AOI positions in memory
x = 100
y = 100
x = 100 | IS_AOI_IMAGE_POS_ABSOLUTE
y = 100
164
AOI without absolute memory positioning
© 2013 Thorlabs GmbH

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dcu224xDcc1240xDcc1545mDcc1645c

Table of Contents