![]() |
![]() |
---|---|
USB 2.0 GigE |
USB 2.0 GigE |
Syntax
INT is_SetBadPixelCorrectionTable (HIDS hCam, INT nMode, WORD* pList)
Description
This function is obsolete and should not be used anymore. We recommend to use the is_HotPixel() function instead. |
is_SetBadPixelCorrectionTable() can be used to set the table containing the hot pixel positions which will be used by the user-defined hot pixel correction function. You can enable hot pixel correction by calling is_SetBadPixelCorrection(). Each value in the table consists of a 2-byte WORD data type. The first value indicates the number of pixel coordinates in the table, the coordinates are listed subsequently (first X, then Y).
A table with 3 hot pixels must be structured as follows:
3 |
X1 |
Y1 |
X2 |
Y2 |
X3 |
Y3 |
Input parameters
hCam |
Camera handle |
pList |
Pointer to the starting address of the hot pixel table |
Return values
IS_SUCCESS |
Function executed successfully |
IS_NO_SUCCESS |
General error message |
When used with IS_GET_LIST_SIZE |
Number of coordinates in the list If the list contains no coordinates, the return value is -1. |
Related functions
•is_LoadBadPixelCorrectionTable()
•is_SaveBadPixelCorrectionTable()
Example
WORD *pList = NULL;
// Number of coordinates in the list
INT nCount = is_SetBadPixelCorrectionTable (hCam, IS_GET_LIST_SIZE, NULL);
if (nCount > 0)
{
// Allocate memory for the entire list
pList = new WORD[1 + 2 * nCount];
// Read out list
is_SetBadPixelCorrectionTable (hCam, IS_GET_BADPIXEL_LIST, pList);
// Release the list again
delete [] pList;
}
else
{
// No hot pixel list programmed
}