Skip to main content
. 2018 Dec 2;18(12):4225. doi: 10.3390/s18124225
Algorithm 1: Description of the dark current calibration of the LJ1-01 nighttime sensor
Input:DNi,jorg from dark current calibration data includes the low- and high-gain images, i = 1, 2, 3, … N, j = 1, 2, 3, … M
Output: the dark current calibration results Ci and C¯
for each j = 1 to M do
Compute the average value of each frame of data:
Meanj=iNDNi,jorg
end for
Eliminate the gross error and compute the valid DNi,j:
DNi,j=DNi,jorg,|DNi,jorgMeanj<5|
for each i = 1 to N do
Compute the dark current value of each detector:
Ci=1MjMDNi,j
end for
Compute the dark current correction reference:
C¯=iNCi
Use the calibration results Ci and C¯ to correct the DNi of each single frame:
DNc,i=DNiCi+C¯
returnCi, C¯.