SightLine Applications Command, Control, and Script API  v3.3
List of all members
SLANucParameters_t Struct Reference

Description

Set Non Uniformity Correction (NUC) and Dead Pixel Removal (DPR) parameters.

typedef struct {
u8 cameraIndex;
u8 nucShow;
u8 nucRunMode;
u8 numFrames;
u16 minDeadGain;
u16 maxDeadGain;
u16 minDeadVal;
u16 maxDeadVal;
s32 minDeadOff;
s32 maxDeadOff;
u32 maxStdDevDead;
s32 maxNumDead;
u8 deadReplace;
u8 numReplace;
u8 deadFilter;
s16 deadFilterThresh;

Works with 16-bit or 14-bit gray scale capability. The maximum image size for NUC and DPR is limited to:

Adding Frames

Adds the number of frames to the NUC calculation. Frames continue to be added until the calibration method { 1Pt NUC, 2PT NUC, Shutter Flattening } is run.

1 Point Correction

Frames can be added using the Add Frames nucMode, or can be added when command is called by setting numFrames > 0. When using numFrames with 1Pt Calibration any frames in queue will be ignored (see Clear Frames).

2 Point Correction

When using nucRunMode = Calculate 2 point correction, numFrames must be set to 0 . Frames must be added first using the Add Frames nucMode.

Shutter Flatten

Frames can be added using the Add Frames nucMode, or can be added when command is called by setting numFrames > 0.

Message ID 0x35

Byte Offset Name Description
4cameraIndexCamera Index (ingored for 1500, only 1 digital camera)
5nucShowDisplay mode
Value Description
0 Show uncorrected captured video
1 Apply both NUC and DPR to video
2 Apply only NUC to video
3 Apply only DPR to video
4 Display Gain Calculations in the form of an image
5 Show Offset Calculations in the form of an image
6 Show Dead Pixels in the form of an image
6nucRunModeCalc NUC, Calc DPR, Add Frames
Value Description
0 Do Nothing
1 Add Frames
2 Clear Frames that have already been added
3 Reset Gain Calculations
4 Reset Offset Calculations
5 Reset Dead Pixel Calculation
6 Reset all calculations (Gain, Offset, and Dead Pixel)
7 Calculate 1 point correction
8 Calculate 2 point correction
9 Calculate Dead Pixels and Replacement Pixels
10 Calculate only Replacement Pixels for DPR
11 Use an Automatic Detection algorithm for Dead Pixels in the current frame
12 Run Shutter Flattening mode.
7numFramesNumber of Frames to add to the NUC calculation (0 to 255)
NOTE: When not used set to 0
8-9minDeadGainMinimum Gain limit for DPR (0% to 999%)
NOTE: Only Used in Calculate Dead Pixel Mode (nucRunMode=9), otherwise set to 0
10-11maxDeadGainMaximum Gain limit for DPR (0% to 999%)
NOTE: Only Used in Calculate Dead Pixel Mode (nucRunMode=9), otherwise set to 0
12-13minDeadValMinimum input pixel value limit for DPR (0 to 65535)
NOTE: Only Used in Calculate Dead Pixel Mode (nucRunMode=9), otherwise set to 0
14-15maxDeadValMaximum input pixel value limit for DPR (0 to 65535)
NOTE: Only Used in Calculate Dead Pixel Mode (nucRunMode=9), otherwise set to 0
16-19minDeadOffMinimum Offset limit for DPR (-999999 to 999999)
NOTE: Only Used in Calculate Dead Pixel Mode(nucRunMode=9), otherwise set to 0
20-23maxDeadOffMaximum Offset limit for DPR (-999999 to 999999)
NOTE: Only Used in Calculate Dead Pixel Mode (nucRunMode=9), otherwise set to 0
24-27maxStdDevDeadMaximum Standard Deviation allowed in Dead Pixel Replacement
NOTE: Only Used in Calculate Dead Pixel Mode (nucRunMode=9), otherwise set to 0
28-31maxNumDeadMaximum number of dead pixels allowed
NOTE: Only Used in Calculate Dead Pixel Mode (nucRunMode=9), otherwise set to 0
32deadReplaceType of dead pixel replacement
Value Description
0 Replace dead pixels with their nearest neighbor (default)
1 Replace dead pixels with the average of the numReplace nearest neighboring pixels
2 Replace dead pixels with the median of the numReplace nearest neighboring pixels
33numReplaceNumber of neighboring pixels to use for average and median dead pixel replacement
1 to 8, default 5
34deadFilterType of dead pixel filtering
Value Description
0 None (default)
1 MinMax - Replace pixels more than threshold above max or threshold below min of 3x3 neighbors.
2 NearFar - Replace pixels that are min/max of a 3x3 if near is more than a threshold above far.
255 Ignore this parameter and deadFilterThresh.
35-36deadFilterThreshThreshold used in dead pixel filtering. 0 to 255. Default 64.