THORLABS DCU223x Operation Manual And Sdk page 265

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

Advertisement

Example 4
// Save user-defined list to file
char
File1[100];
ZeroMemory(File1, sizeof(File1));
strcpy(File1, "c:\\test.txt");
nRet = is_HotPixel(hCam, IS_HOTPIXEL_LOAD_SOFTWARE_USER_LIST, (void*)File1, 0);
nRet = is_HotPixel(hCam, IS_HOTPIXEL_SAVE_SOFTWARE_USER_LIST, (void*)File1, 0);
// Unicode
wchar_t
File2[100];
ZeroMemory(File2, sizeof(File2));
wcscpy(File2, L"c:\\test.txt");
nRet = is_HotPixel(hCam, IS_HOTPIXEL_LOAD_SOFTWARE_USER_LIST_UNICODE, (void*)File2, 0);
nRet = is_HotPixel(hCam, IS_HOTPIXEL_SAVE_SOFTWARE_USER_LIST_UNICODE, (void*)File2, 0);
Example 5
// Save user-defined list to the camera EEPROM
INT nNumber = 0;
INT nRet = is_HotPixel(hCam, IS_HOTPIXEL_GET_CAMERA_USER_LIST_MAX_NUMBER,
if
(nRet == IS_SUCCESS)
{
// Write the maximum number of hot pixels to EEPROM
WORD *pList =
new
pList[0] = nNumber;
for (int
i = 0; i < nNumber; i++)
{
pList[1 + 2 * i] = x_value;
pList[2 + 2 * i] = y_value;
}
nRet = is_HotPixel(hCam, IS_HOTPIXEL_SET_CAMERA_USER_LIST,
delete
[] pList;
// Delete user-defined EEPROM list
nRet = is_HotPixel(hCam, IS_HOTPIXEL_DELETE_CAMERA_USER_LIST, NULL, NULL);
}
Example 6
// Return combined list
INT nNumber = 0;
INT nRet = is_HotPixel(hCam, IS_HOTPIXEL_GET_MERGED_CAMERA_LIST_NUMBER,
if
(nRet == IS_SUCCESS)
{
// Allocate sufficient memory. Each hot pixel needs two WORDS
// memory space.
// Additional memory space of one WORD per hot pixel is required for numbering.
WORD *pList =
new
nRet = is_HotPixel(hCam, IS_HOTPIXEL_GET_MERGED_CAMERA_LIST,
// Delete unneeded list
delete
[] pList;
}
© 2013 Thorlabs GmbH
(void*)&nNumber , sizeof(nNumber));
WORD[1 + 2 * nNumber];
(void*)pList, (1 + 2 * nNumber) * sizeof(WORD));
(void*)&nNumber , sizeof(nNumber));
WORD[1 + 2 * nNumber];
(void*)pList, (1 + 2 * nNumber) * sizeof(WORD));
4 Programming (SDK)
263

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dcu224xDcc1240xDcc1545mDcc1645c

Table of Contents