Please enable JavaScript to view this site.

uEye .NET Manual 4.97

The Hotpixel class provides methods for the configuration of the sensor hot pixel correction. The correction is performed by the software. The hot pixel list is stored in the camera's non-volatile camera memory. Some sensor models can also correct hot pixels directly in the sensor. More information for the hot pixel correction can be found in the uEye manual.

hint_info

This function is currently not supported by the following camera models:

UI-1007XS

hint_info

This correction will not work with subsampling or with binning factors greater than 2.

The following class and methods exist:

AdaptiveCorrection

Camera

Factory

Software

Methods

Method

Description

DisableSensorCorrection

Disables hot pixel correction.

EnableSensorCorrection

Enables hot pixel correction.

GetCorrectionMode

Returns the currently set hot pixel correction mode.

GetMergedList

Returns the number of hot pixels in a merged list.

GetSupportedCorrectionMode

Returns the supported hot pixel correction modes.

SetEnableSensorCorrection

Enables/disables the sensor's own hot pixel correction function.

Example 1

// Enable/disable hot pixel correction
hCam.Hotpixel.DisableSensorCorrection();
hCam.Hotpixel.Camera.SetEnable(false);
hCam.Hotpixel.Software.SetEnable(false);
 
hCam.Hotpixel.Camera.SetEnable(true);
hCam.Hotpixel.Software.SetEnable(true);
hCam.Hotpixel.EnableSensorCorrection();

Example 2

// Read out current mode
uEye.Defines.HotpixelCorrectionMode nMode = 0;
hCam.Hotpixel.GetCorrectionMode(out nMode);
 
// Query supported modes
uEye.Defines.HotpixelCorrectionMode nSupportedMode = 0;
hCam.Hotpixel.GetSupportedCorrectionMode(out nSupportedMode);

Example 3

// Query user-defined hot pixel list
bool bExists = false;
uEye.Defines.Status ret = hCam.Hotpixel.Software.GetListExists(out bExists);
if (ret == uEye.Defines.Status.SUCCESS)
{
short[] list;
hCam.Hotpixel.Software.GetList(out list);
 
// Change a value and save the list.
// The number of the hot pixel has to be specified in list[0]
list[0] = 100;
hCam.Hotpixel.Software.SetList(list);
}

Example 4

// Save user-defined list to file
String filepath = "c:\\userhotpixel.txt";
hCam.Hotpixel.Software.SaveList(filepath);
Example 5
// Load user-defined list from file
String filepath = "c:\\userhotpixel.txt";
hCam.Hotpixel.Software.LoadList(filepath);
 
// Save user-defined list to the non-volatile camera memory
int nNumber = 0;
uEye.Defines.Status nRet = hCam.Hotpixel.Camera.GetListMaxNumber(out nNumber);
 
if (ret == uEye.Defines.Status.SUCCESS)
{
// Write the maximum number of hot pixels to the non-volatile camera memory
short[] list = new short[nNumber];
list[0] = (short)nNumber;
for (short i = 0; i < nNumber; i++)
{
  list[1 + 2 * i] = x_value;
  list[2 + 2 * i] = y_value;
}
 
hCam.Hotpixel.Camera.SetList(list);
 
// Delete user-defined list
hCam.Hotpixel.Camera.ClearList();
}

Example 6

// Return combined list
short[] list;
uEye.Defines.Status nRet = hCam.Hotpixel.GetMergedList(out list);