Skip to main content
. 2018 Dec 2;18(12):4225. doi: 10.3390/s18124225
Algorithm 2: Description of the relative calibration of the LJ1-01 nighttime sensor
Input: dark current calibration results Ci, i = 1, 2, 3, … N
Input: dark current correction reference C¯
Input: daytime low-gain calibration data DNi,jorg, j = 1, 2, 3, … M
Input: model relationship between low- and high-gain DNs of LJ1-01 in HDR mode, P1[DNlow,DNhigh], P2[DNlow¯,DNhigh¯]
Output: relative calibration coefficients ai,low and bi,low for low-gain images and relative correction model for high-gain images P3[DNhigh¯,DNhigh]
for each j = 1 to M do
for each i = 1 to N do
Correct the dark current:
DNi,j=DNi,jorgCi+C¯
end for
end for
Compute the average values of all detectors for the uniform daytime calibration data (j = 1):
DN¯=iNDNi,1
for each i = 1 to N do
Compute the response difference coefficient gi:
gi=DN¯DNi,1
end for
Compute the average value of the interest zone (9 × 9) of each frame: DN¯j
Compute the reference detector relative calibration coefficients: aref and bref
DN¯j=arefDNref,j+bref
for each i = 1 to N do
Compute the relative calibration coefficients of the other detectors for low-gain images:
ai,low=gigrefaref
bi,low=bref
end for
Based on the P1[DNlow,DNhigh], P2[DNlow¯,DNhigh¯], and the correction model of the low-gain images:
P1[DNlow,DNhigh]: DNhigh=B0+B1DNlow+B2DNlow2++BnDNlown
P2[DNlow¯,DNhigh¯]: DNhigh¯=B0+B1DNlow¯+B2DNlow¯2++BnDNlow¯n
DNlow¯=ai,lowDNi,low+bi,low
When the polynomial is of order n = 2, the relative correction model for high-gain images P3[DNhigh¯,DNhigh] is:
DNhigh¯=(B1±4B2B0+B12+4B2DNhigh)2alow24B2      (2B2blowalow+B1alow)(B1±4B2B0+B12+4B2DNhigh)2B2+B2blow2+B1blow+B0
return ai,low, bi,low, and P3[DNhigh¯,DNhigh].