This experiment was conducted at an ambient temperature of 20 °C. The detector operating temperature was precisely stabilized at 20 °C using the TEC cooling system. To ensure uniform irradiance incidence, both the 15 sets of calibration data and the 8 sets of validation data were acquired through an integrating sphere. The obtained calibration and validation data basically cover the output dynamic range of the detector. During image acquisition, the detector integration time was set to 1 ms, and the required data were obtained by adjusting the lens aperture (f-number) and the irradiance conditions of the integrating sphere.
4.1. Performance Verification of the Improved Quadratic Polynomial Correction
By performing least squares fitting on the calibration data collected under multiple groups of different irradiance levels, 640 × 512 sets of correction parameters are obtained, with a total storage size of 1280 KB. After the improvement, the storage size of the correction parameters is comparable to that of conventional two-point correction parameters. Based on the maximum and minimum values of the c parameter, a bit-width of 11 bits is allocated to c. The remaining 20 bits are dynamically allocated to the a
N and b parameters according to the correction performance. The correction effects under different bit-width allocations are shown in
Figure 6.
The average NU of the validation data under different irradiance levels before correction was 2.8945%. As shown in
Figure 6, when the bit-width of the a
N parameter is 9 bits and the bit-width of the b parameter is 11 bits, the overall correction performance is optimal, achieving an average NU of 0.4818 ± 0.0020% on the validation dataset after correction. As can be seen from
Figure 7, compared with the theoretical performance curve of quadratic polynomial correction, the improved quadratic polynomial correction achieves performance on the validation data that is very close to the theoretical performance of quadratic polynomial correction. Theoretically, the average NU after quadratic polynomial correction is 0.4728 ± 0.0017%. Although the average NU of the improved method is 0.0090% higher, the paired t-test shows that the difference is statistically significant (
p = 0.0144). Both methods exhibit extremely small standard deviations, indicating high stability and repeatability of the correction results. These results verify that the dynamic bit-width allocation and quantization strategy effectively balance hardware constraints and correction accuracy, achieving robust nonlinear compensation.
Error analysis is performed on the quantized a
N, b, and c parameters. The errors in a
N and b parameters mainly arise from the quantization error introduced during the conversion from floating-point to fixed-point representation [
23]; the error in the c parameter primarily results from discarding the fractional part after rounding. The histograms of the errors for a
N, b, and c parameters are shown in
Figure 8.
As shown in
Figure 8a, the absolute relative errors of the quantized a
N parameters for the vast majority of pixels are less than 6%. A small number of pixels exhibit absolute relative errors reaching 100%, which occurs because the a parameters of these pixels are very close to 0, making it impossible to represent a
N using fixed-point notation with the limited bit-width. In this experiment, the bit-width for quantizing a
N is 9 bits and N is 16, so the minimum representable resolution is 2
−24. The effective bit-width for the pixel is 14 bits with the quantized DN value ranging from 0 to 16,383. Under different irradiance levels, when a is 2
−24, the contribution of ax
2 to the pixel DN value is approximately in the range [0, 0.0976%]. For the pixels in this experiment where the absolute relative error of a
N reaches 100%, their a parameters are smaller than 2
−24, resulting in the contribution of the ax
2 term being less than [0, 0.0976%], which has only a limited impact on the overall correction accuracy. As can be seen from
Table 3, when the quantization bit-widths of the b and c parameters remain unchanged, the absolute relative error introduced by quantization gradually increases as the bit-width of a
N decreases, resulting in a continuous decline in correction performance. Although the quadratic term ax
2 accounts for only a small proportion in the pixel DN value, excessive loss of quantization precision still exerts a significant impact on the overall correction performance of the algorithm.
As can be seen from
Table 4, when the quantization bit-widths of the a
N, b, and c parameters remain unchanged, the absolute relative error introduced by quantization gradually increases as the magnification factor N decreases, resulting in a continuous decline in correction performance. When the magnification factor is reduced to 8, the quantization error reaches as high as 99.99%, at which point parameter a becomes almost ineffective. Combined with the results in
Table 3, it can be seen that introducing the magnification factor effectively reduces the bit-width requirement for parameter a and significantly improves bit-width utilization under limited bit-width conditions.
From
Figure 8b, it can be observed that the absolute relative errors of the quantized b parameters for most pixels are less than 0.06%, indicating high quantization precision. During the correction process, since the b parameter values are close to 1, the term bx occupies a very large proportion of the corrected pixel DN value. Combined with
Figure 6, it is evident that, within a certain range, increasing the quantization bit-width of the b parameter to improve quantization precision can significantly enhance the correction performance. Therefore, the quantization precision of the b parameter has a substantial influence on the overall correction performance. In practical applications, the bit-width allocation priority for the b parameter should be higher than that for a
N and c parameters. As can be seen from
Table 5, when the quantization bit-widths of the a
N and c parameters remain unchanged, the absolute relative error introduced by quantization gradually increases as the bit-width of the b parameter decreases, resulting in a continuous decline in correction performance. Since the linear term bx occupies a large proportion in the pixel DN value, when the quantization bit-width of b is reduced to 5 bits, the absolute relative error is only 2.44%, yet the corrected non-uniformity results show that the b parameter becomes almost ineffective at this point. Therefore, the quantization precision of the b parameter has a significant influence on the overall correction performance.
Since the c parameter is quantized using a signed integer representation with the fractional part rounded to the nearest integer, the resulting error is very small. As shown in
Figure 8c, all quantization errors for the c parameter are less than or equal to 0.5, and this level of error has a negligible impact on correction accuracy.
Although the limitation of parameter quantization bit-width increases the quantization error of the parameters, the correction performance of the proposed method is still superior to that of two-point correction and multi-point correction. As shown in
Table 6, a quantitative comparison is conducted among the raw image (Raw) and six different non-uniformity correction methods, including conventional two-point correction, two-point two-segment correction, two-point four-segment correction, two-point six-segment correction, two-point eight-segment correction, and the improved quadratic polynomial correction method proposed in this paper (Ours). The results show that as the number of segments increases, both the NU and ρ of the two-point multi-segment correction methods improve gradually. Among them, the two-point eight-segment correction achieves relatively good performance, with an NU of 0.4891% and a ρ of 1.05%. However, the improved quadratic polynomial correction method proposed in this paper further improves both NU and ρ, reducing them to 0.4818% and 0.98%, respectively, outperforming the two-point eight-segment correction.
Compared with conventional two-point and multi-segment correction methods, the main advantages of the improved quadratic polynomial correction lie in the following aspects: the traditional two-point multi-segment methods are essentially based on piecewise linear correction and approximate the real response curve by increasing the number of segments. Although they can effectively reduce non-uniformity, they tend to produce step errors at segment boundaries, and a larger number of parameters increases hardware resource consumption and parameter readout time. In contrast, the improved quadratic polynomial correction proposed in this paper introduces a quadratic polynomial model and applies targeted optimization to the model parameters, enabling a smoother and more accurate fitting of the detector’s nonlinear response curve. This not only effectively suppresses fixed pattern noise but also avoids the step errors commonly seen in piecewise linear methods, thereby improving the overall smoothness and visual quality of the corrected image. The experimental results fully verify the superiority of the proposed method over conventional two-point and multi-point correction approaches.
The THPF algorithm is one of the widely used scene-based non-uniformity correction methods.
Figure 9a,b show the image results after THPF processing. The images contain a moving hand and a ruler fixed on the wall. The red-marked region exhibits the typical “ghosting artifact” phenomenon commonly seen in scene-based non-uniformity correction methods. This artifact mainly arises from the lag in algorithm convergence, causing the texture information of the stationary ruler in the background to be erroneously superimposed onto the moving hand. This phenomenon is particularly evident in scenes where the target is moving while the background remains relatively static.
Figure 9c,d present the image results after applying the improved quadratic polynomial correction method. It can be observed that the processed images are significantly smoother overall, with no obvious grid-like patterns.
As shown in
Table 7, although the NU and ρ of the image are improved to some extent after THPF processing, the presence of ghosting artifacts leads to a noticeable subjective degradation in overall image quality. Although the ghosting phenomenon has been effectively suppressed to a certain degree with the continuous development and iteration of related algorithms [
24], the increased algorithm complexity also significantly raises the demand for computational resources, thereby imposing higher requirements on the hardware platform. Some methods even rely on high-performance computing devices such as Graphics Processing Unit (GPU) to achieve real-time processing [
25].
4.2. Implementation of High-Frame-Rate Real-Time Non-Uniformity Correction Based on an FPGA
Test results show that the processing time of the FPGA for one frame of a 640 × 512 image is approximately 1.24 ms, and the measured maximum output frame rate reaches 800 FPS.
From
Figure 10a, it can be observed that the surface of the 3D image is extremely rough, which is a manifestation of non-uniformity; the prominent “spikes” correspond to blind pixels in the image.
Figure 10b shows the result after applying the improved quadratic polynomial correction implemented on the FPGA. It is clearly evident that the DN values of each pixel become nearly identical after correction, the image surface becomes smooth, blind pixels are effectively compensated, and the protruding “spikes” are eliminated. As can be seen from
Table 8, after enabling correction, both the non-uniformity and roughness of the image are significantly reduced.
Verification of the high-frame-rate image processing capability was conducted. A freely falling small ball was used as the target, and the falling process was captured. The imaging effect after image processing is shown in
Figure 11. The figure clearly illustrates the process of the small ball in free fall. According to the free-fall distance calculation equation:
The capture frame rate is 800 FPS. Based on the frame interval, the time is determined to be 0.23875 s, with a falling distance of 0.28 m. Using these values, the gravitational acceleration g is calculated to be approximately 9.82 m/s2. After correction, the image shows no noticeable grid-like patterns, appears smooth overall, and blind pixels have been effectively compensated. This fully demonstrates the system’s capability for real-time non-uniformity correction at high frame rates.