Next Article in Journal
Radar-Based Fall Detection Using Micro-Doppler Signatures: A Comparative Analysis of YOLO Architectures
Next Article in Special Issue
Extended Field of View and Resolution Enhancement in Lensless Digital Holography
Previous Article in Journal
Functional Nanomaterials and Nanocomposites for High-Performance Printed Biosensors
Previous Article in Special Issue
Hierarchical YOLO-SAM: A Scalable Pipeline for Automated Segmentation and Morphometric Tracking of Coral Recruits in Time-Series Microscopy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Automatic Tuning of Gaussian Filter for Image Vignetting Correction

1
Department of Data Science and Engineering, Silesian University of Technology, Akademicka 16 Str., 44-100 Gliwice, Poland
2
Biotechnology Center, Silesian University of Technology, Bolesława Krzywoustego 8 Str., 44-100 Gliwice, Poland
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(9), 2648; https://doi.org/10.3390/s26092648
Submission received: 19 March 2026 / Revised: 16 April 2026 / Accepted: 17 April 2026 / Published: 24 April 2026
(This article belongs to the Special Issue Digital Image Processing and Sensing Technologies—Second Edition)

Abstract

Image vignetting is a common optical artefact characterised by a gradual reduction in brightness towards the edges of an image. It degrades image quality and compromises radiometric accuracy, affecting a wide range of imaging applications. When vignetting cannot be avoided during acquisition, a computational correction is required. Existing methods often rely on Gaussian filtering of a flat-field image; however, selecting the appropriate filter parameters—particularly the standard deviation—remains challenging and is largely subjective. To address this issue, this paper presents the Gaussian filter with auto-tuned sigma (GFATS) method. This method leverages an optimisation framework to automatically tune filter parameters. This is achieved by aligning the filtered output with a specified polynomial model of the vignetting profile near the optical centre of the captured flat-field image. The tuned filter is then applied to the same image to derive the vignetting correction matrix. The proposed method was evaluated against established model-based correction methods across different lens–camera systems using objective quantitative measures. The results demonstrate that GFATS provides a more accurate vignetting estimation and improves the brightness uniformity of corrected images compared to existing approaches. It also effectively mitigates the overfitting issue inherent to standard low-pass filtering or smoothing methods. Notably, a single consistent parameter set was found to provide a reliable and stable performance across all tested lens–camera systems, demonstrating the method’s versatility and strong practical applicability.

1. Introduction

Image vignetting is a common optical artefact, characterised by a decrease in brightness from the centre to the periphery of an image as a function of distance. This phenomenon can be particularly detrimental to applications requiring accurate radiometric or quantitative analyses. Such applications include, e.g., astronomy [1,2], microscopy [3,4], remote sensing [5,6,7], multi- and hyperspectral imaging [4,8,9,10], and 3D mapping [11]. Vignetting also degrades computational imaging tasks such as high-dynamic-range (HDR) imaging [12], panoramic image creation [13,14] and mosaic reconstruction [15,16], as well as data-driven analyses performed using neural networks [17,18,19]. On the other hand, vignetting can be used for tasks like image authentication [20].
During image acquisition, vignetting can be reduced by selecting a smaller aperture, employing a longer focal length, or removing any superfluous filters. However, these approaches are not always feasible, and the complete elimination of vignetting is generally impossible. Therefore, a computationally based vignetting correction stage is, in practice, routinely performed as part of the image preprocessing pipeline. Historically, numerous different approaches to vignetting correction have been developed. These methods differ in terms of the type and volume of data required, their precision, and their specific operational requirements.
More recently, methods based on deep neural networks, notably generative adversarial networks (GANs), have advanced significantly. These techniques are primarily used to correct vignetting in acquired images when a dedicated reference image cannot be obtained, either due to a lack of access to the original imaging system or an unknown set of acquisition parameters [19,21,22,23]. Such approaches are also utilised when the system parameters are not constant during the image acquisition process [24,25]. However, the application of these methods typically results in a relatively imprecise vignetting correction, which limits their use in applications requiring the analysis of radiometric data retrieved from a scene—a common scenario in fields such as remote sensing.
A more traditional and widely adopted approach involves the determination of a vignetting model. This can be achieved through a priori knowledge of the optical system or by estimating vignetting parameters from a dedicated test image. For instance, various physics-based models have been developed to describe the processes occurring within the lens–camera system, accounting for different types of vignetting, such as natural vignetting [26,27] and optical vignetting [28]. While these models accurately describe the dependence of brightness on the distance from the image centre, they require detailed knowledge of the physical parameters of the lens and camera—information that is typically difficult for vision system users to obtain.
Most practical vignetting correction methods require acquiring a high-quality reference image, obtained either from uniform illumination falling onto the camera or from a scene with uniform luminance [26]. Such a reference image is used to approximate the vignetting function of the lens–camera system, which describes the influence of vignetting on the captured image. These methods are referred to in the literature as flat-field methods, and the corresponding reference image is termed a flat-field image. In the approximation process, parametric models are used (e.g., [29,30,31,32,33,34]), primarily polynomial ones, several examples of which are presented in Section 3. In some cases, the model requires assuming the coordinates of the pixel representing the image centre [35,36,37]. The coordinates of this point can be determined using additional methods [38,39], which complicates the process of estimating the vignetting function. Despite their advantages, polynomial-based vignetting estimation methods have well-recognised limitations, which become particularly apparent in imaging systems exhibiting irregular vignetting patterns. Consequently, relatively large vignetting correction errors often emerge, especially near the image edges, where the polynomial model may fail to capture complex local variations.
A common strategy for bypassing these limitations involves estimating vignetting from a flat-field image I f smoothed with a 2D low-pass Gaussian filter [8,40,41,42,43]. The results of this approach critically depend on the filter parameters, which, in discrete space, are the standard deviation σ and the kernel size a of the discrete filter G . The individual weights within the kernel matrix are determined as follows:
G ( h , l ) = 1 2 π σ 2 e h 2 + l 2 2 σ 2 ,
where h , l Z , and a 1 2 h , l a 1 2 , and a is an odd integer. Although parameter selection is crucial, the existing literature related to vignetting correction addresses it only briefly, generally emphasising the need for a trade-off between reproducing the vignetting profile and avoiding overfitting to noise [8].
Although methods for the automated selection of Gaussian filter parameters are extensively discussed in signal and digital image processing research, such solutions are not typically applied to flat-field-based vignetting correction. This discrepancy arises from the fact that the filtration objectives and signal properties considered in general processing tasks differ from those of flat-field images encountered in vignetting correction. As a result, methods from other domains often produce estimates that lack sufficient generalisation. Such filters fail to capture the actual vignetting profile accurately.
To the best of the authors’ knowledge, the only study addressing automatic Gaussian filter parameter selection specifically for the vignetting correction problem is the work by Cao et al. [44]. They proposed a criterion for selecting the optimal σ value based on the mean and standard deviation of the flat-field image I f before and after filtering. Although Cao et al. reported satisfactory results for near-infrared imagery, our experiments demonstrate that their criteria fail when applied to visible-light cameras. Crucially, our experiment revealed that, for the tested datasets, the proposed criterion is never satisfied. Consequently, it is impossible to determine the Gaussian filter parameters using the proposed method, which effectively precludes its practical application. Therefore, this method is not analysed further in this paper. The detailed experimental results justifying this decision are presented in Appendix A. These findings further imply that, for visible-light cameras, there is currently no dedicated method in the literature for automated Gaussian filter parameter selection for vignetting correction. This lack of a reliable solution prompted the development of the framework proposed here.
In this paper, a novel vignetting estimation method called the Gaussian filter with auto-tuned sigma (GFATS) is proposed. In this approach, the trade-off between accurately reproducing the vignetting profile and suppressing image noise is addressed through an optimisation framework. The parameter-tuning problem is solved by identifying filter parameters that produce Gaussian filtering results resembling those obtained using a specified polynomial model M for the central region of the I f image (i.e., the region near the image’s optical centre). Because M is fitted over a relatively small central image region—where vignetting varies the least—this model is usually a very accurate approximation of the image-vignetting profile in this region. Furthermore, due to the properties of polynomial approximation based on mean squared error minimisation, M serves as a maximum likelihood estimator for vignetting in the central image region. The employment of M as a reference for Gaussian filtering enables the transfer of certain statistical properties to the target vignetting estimator obtained via the GFATS method. Specifically, GFATS introduces a hybrid approach where a polynomial model acts as a stable reference to tune a Gaussian filter. This prevents the estimation errors at image edges typical of global polynomials while retaining their strong generalisation properties without a tendency towards overfitting.
The article is organised as follows. Section 2 describes the GFATS method in detail. Section 3 presents the experiment conducted on real data to evaluate the GFATS method in comparison to existing vignetting estimation methods. The resulting data and discussion are provided in Section 4, while Section 5 concludes the paper.

2. Presentation of the GFATS Method

2.1. General Assumptions and Preliminaries

The input data for the GFATS method is a flat-field image I f [45]. It is preferable that the I f image has undergone dark noise correction [46,47]. The camera response function (CRF) should be linear or linearised [48,49,50]. In the case of colour images, a vignetting correction typically involves applying a single vignetting estimate, derived from the luminance channel, to all R, G, and B channels [31,35,51,52]. However, for high-precision tasks where an exact radiometric correction is pivotal, the correction can be performed independently for each colour channel [53,54]. Such independent treatment is also necessary for embedded or low-cost imaging systems, where vignetting levels often vary significantly across spectral channels [11,55]. In such cases, treating all channels jointly based on luminance would introduce non-uniform colour casts.

2.2. Algorithm

The GFATS method consists of three major steps, namely:
  • STEP 1: Estimation of M — estimating the assumed polynomial model M for the central region N C of the I f image;
  • STEP 2: Searching for σ — tuning the σ parameter based on M ;
  • STEP 3: Calculation of V ^ — computing the final vignetting estimate V ^ .
The flowchart of the proposed algorithm is presented in Figure 1, illustrating the variant that employs an exhaustive search for the σ parameter.
This approach leverages 2D polynomial approximation—a well-established technique in vignetting correction—to provide a good generalisation of the vignetting profile (model M ) within the central region N C of the image I f . In STEP 2, this model serves as a reference for determining the optimal σ and the resulting Gaussian filter G ( σ ) . The filter is tuned through an optimisation process to replicate the profile of the polynomial model M . Subsequently, in STEP 3, the G ( σ ) filter is applied to the entire image to compute the final vignetting estimate V ^ . By incorporating this reference, the Gaussian filter G ( σ ) inherits the strong generalisation properties of the polynomial model M . However, as the Gaussian filter operates locally, it maintains significantly greater flexibility than global polynomial models, which is particularly important in the peripheral regions of I f . Consequently, the GFATS method effectively combines the primary advantages of both approaches, resulting in a reliable estimator that possesses a strong generalisation ability and resistance to overfitting.
STEP 1
Estimation of   M
To estimate the polynomial model M of degree s (the first parameter of the GFATS method) for the central region N C of I f , the coordinates ( i C , j C ) of the optical centre C of I f must be established. This is achieved by searching for the coordinates of the pixel p ( i , j ) I f where the second-degree 2D polynomial approximation of the image I f reaches its maximum.
The neighborhood N C ( r ) around centre C is defined by all pixels p ( i , j ) I f within a Euclidean distance D ( C , p ) r from C. Given the variable resolution M × N of the image I f , it is practical to express the radius r as a function of the resolution through the parameter α :
r = min r 1 , 2 , ( r : | N C ( r ) | α M N ) ,
where | N C ( r ) | denotes the cardinality of the set N C ( r ) , representing the area of the region; r is the radius of region N C used to calculate M ; and α ( 0 , 1 ) is the desired fraction of the total pixels in I f to be included in the estimation. The coefficient α is the second and final parameter of the GFATS method. Finally, the model M is estimated for p ( i , j ) N C using a 2D polynomial approximation of degree s.
STEP 2
Searching for   σ
As mentioned earlier, the discrete realisation of the Gaussian filter is defined by two parameters, σ and a. Because of the nature of the Gaussian filter, there is a practical limit of the a value above which the filtration results for filters with the same σ and different values of a are virtually the same. The commonly used formula for calculating the a value is as follows:
a = 2 · 3 σ + 1 ,
where · is the ceil function. By applying Equation (3), the task of tuning two separate parameters is reduced to a single-parameter optimisation of σ . From now on, let G ( σ ) denote a Gaussian filter with a standard deviation σ and the filter mask size a , which is calculated according to (3).
According to the GFATS method, the optimal σ value is defined by the following condition:
σ = arg min σ σ Δ ( I G ( σ ) , M ) ,
where σ is the set of all tested σ values, and I G ( σ ) = I f G ( σ ) denotes the result of the convolution of the image I f with the Gaussian filter G ( σ ) . The term
Δ ( I G ( σ ) , M ) = 1 | N C | p ( i , j ) N C I G ( σ ) ( i , j ) M ( i , j ) 2
represents the mean squared error (MSE) between the model M and the filtered image I G ( σ ) for a given σ .
STEP 3
Calculation of   V ^
The vignetting estimate V ^ is calculated as follows:
V ^ ( i , j ) = I G ( σ ) ( i , j ) max I G ( σ ) ,
where I G ( σ ) = I f G ( σ ) . The vignetting estimate matrix V ^ is the result of the GFATS method.
The matrix V ^ can be directly used for the vignetting correction of acquired images I using the following formula:
I ^ ( i , j ) = I ( i , j ) I DN ( i , j ) V ^ ( i , j ) ,
where I ^ is the image with corrected vignetting and I DN is the dark image acquired under the same exposure conditions (i.e., exposure time, sensor’s sensitivity) as used during the acquisition of the I image. However, when the image I DN has not been acquired, the simpler version of (7), that is,
I ^ ( i , j ) = I ( i , j ) V ^ ( i , j )
can be used.

2.3. Implementation Details

To ensure the numerical stability of determining model M , and given the possibility of relatively large values occurring in the x and y coordinates, it is advisable to perform the approximation using normalised coordinates rather than the original values. Considering the nature of the input data, an appropriate solution is to apply min-max normalisation to the range of [ 1 , 1 ] according to the formulae:
x norm = 2 x ( x max + x min ) x max x min , y norm = 2 y ( y max + y min ) y max y min ,
where:
  • x , y are the original pixel coordinates of the input images;
  • x norm , y norm are the resulting normalised coordinate values;
  • x min , y min and x max , y max are, respectively, the minimum and maximum values of the original set of coordinates.
Applying Gaussian filtering in the spatial domain presents difficulties with boundary effects, especially given the high-intensity gradients at image edges. Due to the large kernel sizes required, frequency-domain implementation via a fast Fourier transform (FFT) is preferred to ensure numerical stability and prevent boundary artefacts.
The optimisation of the parameter σ (STEP 2) can be approached in several ways. While an exhaustive search over a predefined set of values σ is the simplest to implement, it is computationally expensive due to the repeated convolutions required. A more efficient alternative is the use of derivative-free optimisation (DFO) techniques, such as the Nelder–Mead method, which significantly reduces the number of required iterations, thereby decreasing the overall computational time of the algorithm.

3. Experimental Comparison of Vignetting Estimation Methods

3.1. General Assumptions

The aim of this experiment was to compare, using real-world data, the GFATS vignetting estimation method with three model-based methods known from the literature:
  • The deformable radial polynomial (DRP) model [34];
  • The polynomial 2D approximation (P2D) model [29,31];
  • The smooth non-iterative local polynomial (SNILP) model [32].
In terms of the estimation quality, these methods differ primarily in their ability to fit the analysed I f images. The DRP model is the least flexible, as it enforces axial symmetry on the resulting vignetting estimate V ^ , allowing for only limited deformation. The P2D model offers greater flexibility than the DRP. Finally, the SNILP model provides an even better fit to the I f image than its P2D counterpart.
As mentioned in Section 1, the comparison does not include the method proposed by Cao et al. [44]. This omission is a result of experimental evidence (see Appendix A) confirming the unsuitability of this method for determining the σ parameter for cameras operating in the visible light spectrum, which were used in this experiment.
As the primary objective of the experiment was to compare the intrinsic properties of the vignetting estimation methods—rather than to achieve exact radiometric correction for specific lens–camera systems—the evaluation was conducted solely using luminance data. This approach remained consistent with the methodology outlined in Section 2.1. A detailed description of the experimental conditions is provided in the following subsections.

3.2. Experimental Conditions

3.2.1. The Lens–Camera Systems

The images necessary to conduct the experiment were acquired with three different lens–camera systems, representing three currently widely used types of imaging systems, i.e., webcams and embedded-system cameras (WCam), systems used in machine vision and industrial applications (ICam), and digital photographic cameras (DCam). The major parameters of the used systems are presented in Table 1.

3.2.2. Laboratory Set-Up

Image acquisition was performed in a darkroom (Figure 2a), ensuring that random light sources did not influence the experimental results. A flat-field surface (flat scene) was created using a uniformly backlit, milky poly(methyl methacrylate) (PMMA, “plexiglass”) panel, measuring 50   cm × 100   cm and 3   mm in thickness. A NEC SpectraView Reference 301 graphic monitor, displaying a white screen with a brightness of 300 cd / m 2 , served as the light source. During acquisition, the plexiglass panel was carefully positioned parallel to the monitor screen, with a constant distance of approximately 12 cm maintained throughout the acquisition process.
To ensure that the lens–camera system was parallel to the monitor, each system was centred relative to the screen. Its position and orientation were precisely adjusted until the geometric distortions in the captured calibration image (see Figure 2b) were perfectly symmetrical. The calibration pattern was displayed on the monitor used for panel illumination, while the acquired images were monitored in real time on a second display. During this alignment process, the plexiglass panel was removed to ensure unobstructed positioning.

3.2.3. Image Acquisition and Processing

The vignetting estimation methods were evaluated using flat-field images captured by each camera. For every device, a set of images I f k was acquired under identical conditions. The exposure parameters for the Logitech (WCam) and Basler (ICam) cameras were selected automatically. In contrast, the parameters for the Canon camera (DCam) were adjusted manually to ensure the absence of overexposed pixels. Images from the WCam and ICam were acquired directly to a computer using dedicated software (see Section 3.2.6). In the case of the DCam, the images were recorded directly onto an SD card using the camera’s internal storage.
To mitigate the influence of random noise, the images were first averaged. Specifically, the number of averaged frames was set to K = 10 for the DCam, K = 25 for the ICam, and K = 100 for the WCam. The averaging process is defined as:
I ¯ = 1 K k = 1 K I f k .
Following this, dark noise correction was applied to the images from the WCam and DCam by subtracting their respective averaged dark frames.
Additionally, for both of these cameras, outlier removal was applied to the averaged images I ¯ to mitigate artefacts caused by sensor defects. For this purpose, a locally applied Tukey’s criterion was employed, specifically tuned to eliminate “far out” values. The identified pixels were then replaced with the median value of their immediate neighbourhood.
By design, the ICam averaged image I ¯ is monochrome, and thus directly represents the luminance of the image, allowing for the direct assignment I f : = I ¯ . For WCam and DCam, the final greyscale image I f , which also corresponds to the luminance channel, is computed as follows:
I f = 0.299 I ¯ R + 0.587 I ¯ G + 0.114 I ¯ B ,
where I ¯ R , I ¯ G , and I ¯ B denote the red, green, and blue channels of I ¯ , respectively.
Table 2 summarises selected parameters characterising the I f images obtained for the investigated object–camera systems. From the perspective of vignetting correction, the most relevant parameters are those describing:
  • The overall vignetting level υ , which is roughly estimated using the following formula:
    υ = max I f min I f max I f ;
  • The non-radiality level of the vignetting η , which is calculated according to η [34].
For the tested images, υ ranged from approximately 0.1 (WCam) to over 0.33 (DCam). Similarly, the η values varied from η 1 (DCam), indicating nearly ideal radial vignetting, to η 1.3 (ICam), which exhibited strong non-radial vignetting along the horizontal axis.
The obtained I f images also differed significantly in their noise levels. Regarding the two disparity metrics used for the I f noise evaluation—the standard deviation (STD) and interquartile range (IQR)—a more than 4-fold difference was observed between the WCam and DCam, while a more than 3.5-fold difference was noted between the ICam and DCam. This diversity in image properties enhances the reliability of the comparison, as it facilitates the validation of methods across a broad spectrum of image characteristics.
Table 2. The main parameters of the I V images used in the experiment.
Table 2. The main parameters of the I V images used in the experiment.
ParameterLens–Camera Set
WCAM ICAM DCAM
Image resolution 1920 × 1080 1280 × 960 5184 × 3456
C i C 8776172580
j C 5394821903
υ 0.11060.16170.3041
η 1.19441.28091.0193
STD I f 3.33293.825213.5503
IQR I f 5.01105.560020.6000

3.2.4. Performance Evaluation of Vignetting Estimation Methods

To evaluate the quality of the vignetting estimation V ^ , two dispersion measures were used: the standard deviation (STD) and the interquartile range (IQR). Both measures were computed on the corrected images I ^ f , defined by:
I ^ f = I f V ^ .
Lower values of the STD and IQR indicate a more effective vignetting correction.
Whilst the STD reflects the overall dispersion of pixel values, the IQR is robust to outliers, as it remains unaffected by values beyond the Q 1 and Q 3 thresholds. In vignetting correction—where significant errors frequently occur in peripheral regions—the IQR provides a more reliable evaluation by focusing on the central region of the corrected image I ^ f , which is typically of the greatest practical importance.
Additionally, the coefficient of determination R 2 [ 0 , 1 ] was computed. Values of R2 closer to 1 indicate that the estimated vignetting V ^ better accounts for the variability present in the original image I f .

3.2.5. Parameter Selection for the Evaluated Methods

A common parameter across all the compared methods was the degree s of the polynomials used for estimation. For all the evaluated methods, s { 2 , 3 , , 12 } was adopted. In addition to s, the GFATS method requires an α parameter; for comparison purposes, its performance was evaluated across six different values: 0.01, 0.025, 0.05, 0.1, 0.25, and 0.5.
Regarding the DRP method [34], a version was employed in which the estimation of the optical centre coordinates C was integrated into the vignetting estimation process; consequently, no additional parameters were required.
In the experiment, an implementation of the GFATS method was used in which an exhaustive search was employed instead of a derivative-free optimisation method (as suggested in Section 2.3). This approach was chosen due to the investigative nature of this comparison and the need to analyse the behaviour of the Δ ( I G ( σ ) , M ) function across the entire range of tested σ values. The set σ of analysed values was defined as:
σ σ = { 0.5 , 1 , 1.5 , , 100 } .

3.2.6. Software Environment

All calculations related to image processing and the performance comparison were conducted using dedicated scripts developed in MATLAB R2024a (Update 3), utilising the image processing, image acquisition, and optimisation toolboxes. Gaussian filtering was performed using the imgaussfilt function.
The MATLAB environment was also employed to develop the software for image acquisition using WCam and for displaying the calibration patterns required for camera alignment. For ICam, image acquisition was performed using the Basler Pylon 8.02 software.

4. Results and Discussion

4.1. Results

The quantitative evaluation of the compared methods, based on the STD, IQR, and R2 measures, is summarised in Table 3, Table 4, and Table 5 for WCam, ICam, and DCam, respectively. Additionally, Table 6, Table 7 and Table 8 provide the σ values determined using the GFATS method for the tested lens–camera systems across the examined range of the α parameter.
To visualise and compare the performance of the tested methods, Figure 3 presents the contour plots of the I f and V ^ images for a representative set of parameters: s = 6 for the model-based methods, and s = 6 and α = 0.1 for the GFATS method. This type of plot allows for an easy assessment of how closely the analysed estimation methods adapt to the geometry of the input I f image.
Furthermore, Figure 4 displays the 3D plots of the obtained I ^ f images, providing a spatial perspective on the correction quality. For a fair and consistent comparison, the same color scale and Z-axis range were applied to all the results for each individual lens–camera system, presented here in columns. This visualisation approach is particularly useful for identifying any residual non-uniformities or local artefacts that might remain after the correction process. Using this approach, a perfect correction is represented by a perfectly flat surface with uniform coloration across the entire sensor area. Any remaining curvature or significant value fluctuations, visible as color variations, directly highlight the estimation errors of the respective methods. Comparing the magnitude of these fluctuations and the uniformity of colouration enables a direct evaluation of the estimation effectiveness. This approach facilitates a quick and intuitive performance assessment of each imaging system.

4.2. Discussion

4.2.1. Estimation Performance and Flexibility

The obtained results indicate that, for each of the tested systems, the GFATS method provides more accurate vignetting estimation results than the compared model-based methods for the same polynomial order s. This high estimation quality is maintained largely independently of the chosen α parameter for a fixed value of s. Only for the ICam system, with α 0.15 and s 10 , does the SNILP method provide slightly better results than the GFATS method.
The evaluation of the estimation results using the STD, IQR, and R2 metrics, combined with a comparison of the contours of V ^ and I f (Figure 3), demonstrates that the GFATS method generally offers a greater flexibility in fitting V ^ to the I f image compared to model-based approaches. Based on these results, the tested vignetting estimation methods can be ranked by their flexibility, ranging from the least flexible DRP, through P2D and SNILP, to the most flexible GFATS. This flexibility progression is particularly evident when comparing the shapes of the isolines (Figure 3). Progressing from DRP through P2D and SNILP to the GFATS method, the isolines align increasingly closely with those plotted for the corresponding I f images.
These findings suggest that GFATS serves as a bridge between model-based methods—whose fit is globally constrained by the chosen model and assumptions—and vignetting estimation via Gaussian filtering or other smoothing-based approaches. While the latter can produce results nearly identical to the input image if an inappropriate parameter is selected, they often fail to provide a sufficient generalising function, leading to the preservation of unwanted local noise or artefacts. In the GFATS method, the search for an optimal σ to replicate the assumed model M as closely as possible ensures that the estimator maintains its required generalisation properties. Simultaneously, because the Gaussian filter—initialised with the σ determined through this tuning process—is applied locally, a relatively high degree of estimation flexibility is preserved.
This observation indicates that the GFATS method is particularly well-suited for vignetting correction in systems where the vignetting profile is irregular or characterised by abrupt changes.

4.2.2. Robustness to Overfitting

The application of model M influences more than just the generalising properties of the GFATS method; it also effectively mitigates the risk of overfitting. This property is best illustrated by the plots of the Δ ( I G ( σ ) , M ) values (Equation (5)) as a function of σ (Figure 5) for various sets of parameters α and s.
As can be observed, all the curves possessed a well-defined, single global minimum. The value of σ at which this extremum occurs for each curve determines the optimal value σ for the given set of α and s. This mechanism arises from the relationship between the reference model M and the results of using a Gaussian filter on region N C with parameter σ . When σ < σ , the filtering result overfits to local noise fluctuations in image I f compared to the more stable model M , leading to a higher Δ ( I G ( σ ) , M ) value than in the case of using σ . Conversely, when σ > σ , the filter excessively smooths the image, representing the vignetting profile less accurately than the reference model M , which again results in an increased value of Δ ( I G ( σ ) , M ) . Consequently, the minimum of the objective function effectively identifies the balance where the filter best replicates the reliable characteristics of vignetting in the N C region of I f as provided by M .
It is important to note that, in every case, this extremum consistently occurs for σ values significantly larger than the minimum value in the considered set σ (in the experimental case, min ( σ ) = 0.5 ). Such behaviour differs markedly from systems prone to overfitting, where values at or near the lower bound of the considered range would typically be selected as optimal. The absence of this effect in the GFATS method confirms that the proposed approach does not exhibit such a tendency. The absence of overfitting is further evidenced by the increase in σ with α . This indicates that the GFATS method correctly scales its smoothing—and thus, its generalisation ability—to the size of the central region N C of the image I f utilised for the calculation of model M .

4.2.3. Parameter Selection

The obtained STD and IQR values indicate that the performance of the GFATS method depends on the selection of the α and s parameters. However, this dependency varies across individual lens–camera systems. For each system, this variability can be evaluated using the maximum relative deviation, defined as:
D ( MES ) = d ( MES ) min ( MES ) · 100 % ,
where MES denotes the set of all analysed values for a given measure MES, and
d ( MES ) = max ( MES ) min ( MES )
is the maximum absolute deviation of measure MES. Table 9 and Table 10 present the spread values for the STD and IQR measures, respectively.
For instance, considering the spread of the STD measure across the entire analysed range of α and s, the D ( STD ) values for the GFATS method range from approximately 3.5 % for the ICam system and about 10 % for DCam, to over 32 % for WCam. It should be noted, however, that when using the P2D and SNILP methods, the D ( STD ) variability is significantly higher—ranging from approximately three to over four times higher than in the case of the GFATS method. While D ( STD ) is a relative measure, the GFATS method also demonstrates a superior stability in terms of the absolute difference d ( STD ) . In the worst-case scenario (the DCam system), this absolute difference for GFATS is less than 0.07 , whereas for the P2D and SNILP methods, these differences are over three times larger.
In contrast to the previously discussed methods, the DRP method exhibits a much lower relative variation D ( STD ) than GFATS. This effect results from the DRP model’s limited fitting capabilities, which stem from its reliance on a radial vignetting function. While this constraint is somewhat relaxed in the DRP method by allowing for certain deformations, its influence remains significant. Such constraints prevent the model from capturing complex changes in the vignetting profile; consequently, its low variability is indicative of an inability to adapt to the data rather than evidence of estimation stability. Nevertheless, the DRP model remains capable of capturing the primary trend, providing a simplified representation of the overall vignetting structure.
An analysis similar to that carried out for the STD measure can be performed for the IQR measure (Table 10). In both cases, the results lead to the same conclusion: for the GFATS method—unlike the P2D and SNILP methods—the influence of the method’s parameters on the quality of the estimation results is relatively limited.
This finding relates to a key aspect of the practical application of estimation methods: the selection of their parameters. From this perspective, the results obtained highlight a significant advantage of the GFATS method, as it can be utilised without the need to adjust its configuration for each individual lens–camera system. While this method formally requires two parameters, s and α , the conducted analysis demonstrates that the settings s { 6 , 7 , 8 } and α { 0.05 , 0.1 , 0.15 } were sufficiently universal across all the tested cases. Within these ranges, the configuration s = 6 and α = 0.1 consistently provides high-quality results and can be recommended as a standard default. Consequently, the availability of such stable settings eliminates the need for manual adjustment, enabling the GFATS method to operate as a fully automated solution without further user intervention.

5. Conclusions

In this paper, the GFATS method for vignetting estimation was introduced. The proposed approach combines the structural reliability of polynomial models with the local adaptability of Gaussian filtering. Through testing across various lens–camera systems, it was demonstrated that GFATS consistently outperforms current state-of-the-art methods, such as DRP, P2D, and SNILP. The primary advantage of this method lies in its ability to fit irregular vignetting profiles accurately without overfitting. This balance is achieved by tuning the σ parameter of the Gaussian filter to an assumed polynomial model M estimated from the central region of the analysed image.
Furthermore, it was found that the GFATS method maintains a high parameter stability. This allows for the definition of a recommended set of parameters (i.e., α and s) which, based on experimental results, deliver highly accurate results across different hardware—surpassing the compared model-based methods—without the requirement for manual recalibration. Due to its robustness and fitting flexibility, GFATS serves as a practical, quasi-automated solution for image vignetting correction, particularly for systems characterised by irregular vignetting profiles.
Future research will focus on evaluating the GFATS method across a broader range of imaging systems—such as UAV-mounted sensors, embedded imaging systems, and tilt-shift lenses—to further validate its generalisability and assess the universality of the proposed default parameter set. Since the proposed approach is a non-parametric estimation method, the resulting vignetting estimate V ^ is represented as a matrix with the same dimensions as the analysed input image I f . Minimising the memory footprint of calibration data is essential for practical applications. Subsequent efforts will therefore investigate techniques to reduce the data volume of the vignetting estimate while maintaining a high correction quality.

Author Contributions

Conceptualisation, A.B.; methodology, A.B.; software, A.B.; validation, A.B. and H.P.; formal analysis, A.B.; investigation, A.B.; resources, A.B.; data curation, A.B.; writing—original draft preparation, A.B.; writing—review and editing, A.B. and H.P.; visualisation, A.B.; supervision, H.P. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Polish Ministry of Science and Higher Education through internal grant 02/070/BK_26/0077 at the Silesian University of Technology, Gliwice, Poland.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data from this study and the MATLAB code for vignetting estimation are available from the authors upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
CRFCamera response function
DFODerivative-free optimization technique
DRPDeformable radial polynomial vignetting model
FFTFast Fourier transform
GANGenerative adversarial network
GFATSGaussian filter with auto-tuned sigma vignetting estimation method
GFWHGaussian filter with harmony method
HDRHigh-dynamic-range imaging
IQRInterquartile range
MSEMean squared error
P2DPolynomial 2D vignetting model
PMMAPoly(methyl methacrylate)
SNILPSmooth non-iterative local polynomial vignetting model
STDStandard deviation

Appendix A. Analysis of the Gaussian Filter with Harmony Method Proposed by Cao et al.

Appendix A.1. Method Overview

As mentioned in Section 1, the σ value selection procedure employed in the Gaussian filter with harmony (GFWH) method proposed by Cao et al. in [44] is based on a comparison of the standard deviation STD I G ( σ ) and the mean value I ¯ G ( σ ) of the filtered image I G ( σ ) with the corresponding STD ( I f ) and I ¯ f values of the input image I f . The image I G ( σ ) is obtained by applying the filter G ( σ ) to I f . According to the authors (Equation (6) in [44]), the optimal σ value, denoted as σ , must satisfy the following condition:
σ = arg min σ STD I G ( σ ) STD I f > 0.99 I ¯ G ( σ ) I ¯ f > 0.99 .
An analysis of Figures 7, 11, and 15 in [44], which illustrate the dependence of the I ¯ G ( σ ) and STD I G ( σ ) measures on σ , revealed that these curves increase monotonically. Furthermore, these plots exhibit two distinct regions: an initial phase of rapid growth followed by a second region characterised by asymptotic behaviour. An examination of the GFWH method’s flowchart (Figure 10 in [44]), the condition in (A1), and the shape of the I ¯ G ( σ ) and STD I G ( σ ) curves revealed that this behaviour is a necessary condition for the method’s successful application.

Appendix A.2. Experimental Validation

To evaluate the applicability of the criterion defined in (A1), the effect of Gaussian filtering on simulated vignetting images was investigated. To ensure consistency with the data used in [44], simulated images I f were generated at a resolution of 1280 × 960 pixels, with the optical centre (corresponding to the minimum vignetting intensity) located at coordinates C = ( i C , j C ) = ( 664 , 545 ) . Vignetting was simulated using a non-radial version of the natural vignetting model (cos4 law) as described in [32]. In this model, the degree of non-radiality is represented by the parameter η (see Section 3.2.3 or [34]); for this simulation, η = 1.1 was adopted.
Vignetting simulations were performed for three distinct lens focal lengths: 35 mm, 50 mm, and 100 mm. To obtain the I f images, the simulated vignetting V ( 0 , 1 ) was contaminated with mixed noise and rescaled to a range of 0–47,000, consistent with the pixel values reported by Cao et al. This process is defined as follows:
V noise ( i , j ) = N ( 1 , σ ) · V ( i , j ) + N ( 0 , σ + ) ,
I f = L m a x · V noise max ( V noise ) ,
where N ( μ N , σ N ) denotes a random value from a normal distribution with mean μ N and standard deviation σ N . In the simulation, L m a x = 47 , 000 , while σ + = 0.05 and σ = 0.025 were used for the additive and multiplicative noise components, respectively.
The simulation results are presented in the top row of Figure A1, while the middle row illustrates the standard deviation STD I G ( σ ) and the mean I ¯ G ( σ ) of the filtering results I G ( σ ) for σ { 0.5 , 1 , , 20 } .
A comparison of these results with the plots in Figures 7, 11, and 15 in [44] revealed a significant discrepancy. Specifically, both the STD I G ( σ ) and I ¯ G ( σ ) measures decrease monotonically as the value of σ increases. This fundamental change in the relationship between these measures and the parameter σ renders the application of criterion (A1) ineffective. Consequently, in the cases investigated here, applying this criterion simply returns the smallest considered σ value, leading to evident overfitting of the estimate to the noisy data.
Furthermore, comparing the STD I G ( σ ) and I ¯ G ( σ ) with the parameters of the input image I f (bottom row of Figure A1) revealed that the first part of the condition in (A1), i.e., STD I G ( σ ) / STD ( I f ) > 0.99 , is not satisfied for any of the considered σ values. Conversely, the second part of the condition, i.e., I ¯ G ( σ ) / I ¯ f > 0.99 , is satisfied for every σ value under consideration. A clear contradiction therefore exists between both parts of the condition, rendering the method impossible to apply to the tested cases.
Figure A1. Comparison of the influence of the σ parameter on the selection criteria proposed in [44] for simulated I f images. Top row: simulated I f images for three different focal lengths f. Middle row: plots of the standard deviation STD ( I G ( σ ) ) and the mean value I ¯ G ( σ ) for varying σ values. Bottom row: plots of STD I G ( σ ) / STD ( I f ) and I ¯ G ( σ ) / I ¯ f as a function of the σ parameter.
Figure A1. Comparison of the influence of the σ parameter on the selection criteria proposed in [44] for simulated I f images. Top row: simulated I f images for three different focal lengths f. Middle row: plots of the standard deviation STD ( I G ( σ ) ) and the mean value I ¯ G ( σ ) for varying σ values. Bottom row: plots of STD I G ( σ ) / STD ( I f ) and I ¯ G ( σ ) / I ¯ f as a function of the σ parameter.
Sensors 26 02648 g0a1

Appendix A.3. Remarks on the Applicability of the GFWH Method

The simulation results demonstrate that the GFWH method for σ selection proposed by Cao et al. is unsuitable for the data investigated in this study, as the statistical measures do not satisfy the criterion in Equation (A1). Consequently, this method was not utilised in our primary research. The exact causes of the discrepancy between our findings and those of Cao et al. have yet to be determined.

References

  1. Zhang, D.; Yang, Q.Y.; Chen, T. Vignetting correction for a single star-sky observation image. Appl. Opt. 2019, 58, 4337–4344. [Google Scholar] [CrossRef]
  2. Rosario, A.C.; Dubbeldam, C.M.; Sharples, R.; Bourgenot, C.; Diaz, R.; Stephens, A.W. The HR image slicer for GNIRS at Gemini North: Optical design and performance. In Proceedings of the Ground-based and Airborne Instrumentation for Astronomy IX; Evans, C.J., Bryant, J.J., Motohara, K., Eds.; International Society for Optics and Photonics, SPIE: Bellingham, WA, USA, 2022; Volume 12184, p. 121840L. [Google Scholar] [CrossRef]
  3. Mignard-Debise, L.; Ihrke, I. A Vignetting Model for Light Field Cameras with an Application to Light Field Microscopy. IEEE Trans. Comput. Imaging 2019, 5, 585–595. [Google Scholar] [CrossRef]
  4. Wang, Y.; Gu, Y.; Li, X. A Novel Low Rank Smooth Flat-Field Correction Algorithm for Hyperspectral Microscopy Imaging. IEEE Trans. Med. Imaging 2022, 41, 3862–3872. [Google Scholar] [CrossRef]
  5. Kelcey, J.; Lucieer, A. Sensor Correction of a 6-Band Multispectral Imaging Sensor for UAV Remote Sensing. Remote Sens. 2012, 4, 1462–1493. [Google Scholar] [CrossRef]
  6. Bedrich, K.; Bokalič, M.; Bliss, M.; Topič, M.; Betts, T.R.; Gottschalg, R. Electroluminescence Imaging of PV Devices: Advanced Vignetting Calibration. IEEE J. Photovoltaics 2018, 8, 1297–1304. [Google Scholar] [CrossRef]
  7. Minařík, R.; Langhammer, J.; Hanuš, J. Radiometric and Atmospheric Corrections of Multispectral μMCA Camera for UAV Spectroscopy. Remote Sens. 2019, 11, 2428. [Google Scholar] [CrossRef]
  8. Kokka, A.; Pulli, T.; Honkavaara, E.; Markelin, L.; Kärhä, P.; Ikonen, E. Flat-field calibration method for hyperspectral frame cameras. Metrologia 2019, 56, 055001. [Google Scholar] [CrossRef]
  9. Cao, H.; Gu, X.; Wei, X.; Yu, T.; Zhang, H. Lookup Table Approach for Radiometric Calibration of Miniaturized Multispectral Camera Mounted on an Unmanned Aerial Vehicle. Remote Sens. 2020, 12, 4012. [Google Scholar] [CrossRef]
  10. Zhou, X.; Liu, C.; Xue, Y.; Akbar, A.; Jia, S.; Zhou, Y.; Zeng, D. Radiometric calibration of a large-array commodity CMOS multispectral camera for UAV-borne remote sensing. Int. J. Appl. Earth Obs. Geoinf. 2022, 112, 102968. [Google Scholar] [CrossRef]
  11. Alexandrov, S.V.; Prankl, J.; Zillich, M.; Vincze, M. Calibration and correction of vignetting effects with an application to 3D mapping. In Proceedings of the 2016 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Daejeon, Republic of Korea, 9–14 October 2016; Volume 4, pp. 4217–4223. [Google Scholar] [CrossRef]
  12. Wagdy, A.; Garcia-Hansen, V.; Isoardi, G.; Pham, K. A Parametric Method for Remapping and Calibrating Fisheye Images for Glare Analysis. Buildings 2019, 9, 219. [Google Scholar] [CrossRef]
  13. Elmquist, A.; Negrut, D. Modeling Cameras for Autonomous Vehicle and Robot Simulation: An Overview. IEEE Sens. J. 2021, 21, 25547–25560. [Google Scholar] [CrossRef]
  14. Kinzig, C.; Feng, G.; Granero, M.; Stiller, C. Real-time vignetting compensation and exposure correction for panoramic images by optimizing irradiance consistency. TM-Tech. Mess. 2023, 90, 435–444. [Google Scholar] [CrossRef]
  15. Peng, T.; Thorn, K.; Schroeder, T.; Wang, L.; Theis, F.J.; Marr, C.; Navab, N. A BaSiC tool for background and shading correction of optical microscopy images. Nat. Commun. 2017, 8, 14836. [Google Scholar] [CrossRef]
  16. Piccinini, F.; Bevilacqua, A. Colour Vignetting Correction for Microscopy Image Mosaics Used for Quantitative Analyses. BioMed Res. Int. 2018. [Google Scholar] [CrossRef]
  17. Saad, K.; Schneider, S.A. Camera Vignetting Model and its Effects on Deep Neural Networks for Object Detection. In Proceedings of the 2019 IEEE International Conference on Connected Vehicles and Expo (ICCVE), Graz, Austria, 4–8 November 2019; pp. 1–5. [Google Scholar] [CrossRef]
  18. Tian, B.; Juefei-Xu, F.; Guo, Q.; Xie, X.; Li, X.; Liu, Y. AVA: Adversarial Vignetting Attack against Visual Recognition. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21, Montreal, QC, Canada, 19–27 August 2021; pp. 1046–1053. [Google Scholar] [CrossRef]
  19. Luo, S.; Chen, X.; Chen, W.; Li, Z.; Wang, S.; Pun, C.M. Devignet: High-Resolution Vignetting Removal via a Dual Aggregated Fusion Transformer with Adaptive Channel Expansion. Proc. AAAI Conf. Artif. Intell. 2024, 38, 4000–4008. [Google Scholar] [CrossRef]
  20. Lyu, S. Estimating Vignetting Function from a Single Image for Image Authentication. In Proceedings of the MM&Sec’10, 12th ACM workshop on Multimedia and Security, Rome, Italy, 9–10 September 2010; Association for Computing Machinery: New York, NY, USA, 2010; pp. 3–12. [Google Scholar] [CrossRef]
  21. Li, H.; Peers, P. CRF-net: Single image radiometric calibration using CNNs. In CVMP ’17: Proceedings of the 14th European Conference on Visual Media Production (CVMP 2017); Association for Computing Machinery: New York, NY, USA, 2017; pp. 1–9. [Google Scholar] [CrossRef]
  22. Wang, J.; Ma, T.; Jin, L.; Zhu, Y.; Yu, J.; Chen, F.; Fu, S.; Xu, Y. Prior Visual-Guided Self-Supervised Learning Enables Color Vignetting Correction for High-Throughput Microscopic Imaging. IEEE J. Biomed. Health Inform. 2025, 29, 2669–2682. [Google Scholar] [CrossRef]
  23. Wu, J.; Li, S.; Chen, Y.; Wu, S.; Yi, F.; Luo, S.; Shao, C.; Lei, T. VHCFormer: Vignetting Removal Based on Hybrid Channel Transformer. In Proceedings of the 2025 11th International Conference on Control, Automation and Robotics (ICCAR), Kyoto, Japan, 18–20 April 2025; pp. 452–457. [Google Scholar] [CrossRef]
  24. Wang, S.; Liu, X.; Li, Y.; Sun, X.; Li, Q.; She, Y.; Xu, Y.; Huang, X.; Lin, R.; Kang, D.; et al. A deep learning-based stripe self-correction method for stitched microscopic images. Nat. Commun. 2023, 14, 5393. [Google Scholar] [CrossRef]
  25. Wang, Y.; Yang, F.; Pan, X.; Wang, H.; Xu, X.; Pan, Y.; Yang, K.; Ma, G.; Hao, Z.; Liu, H.; et al. Improving uneven exposure using color characteristics as a priori information in endoscopic images. Biomed. Signal Process. Control 2026, 112, 108825. [Google Scholar] [CrossRef]
  26. Kang, S.B.; Weiss, R. Can We Calibrate a Camera Using an Image of a Flat, Textureless Lambertian Surface? In Proceedings of the Computer Vision — ECCV 2000; Vernon, D., Ed.; Springer: Berlin/Heidelberg, Germany, 2000; pp. 640–653. [Google Scholar]
  27. Aggarwal, M.; Hua, H.; Ahuja, N. On cosine-fourth and vignetting effects in real lenses. In Proceedings of the Eighth IEEE International Conference on Computer Vision, ICCV 2001, Vancouver, BC, Canada, 7–14 July 2001; Volume 1, pp. 472–479. [Google Scholar] [CrossRef]
  28. Asada, N.; Amano, A.; Baba, M. Photometric Calibration of Zoom Lens Systems. In Proceedings of the 13th International Conference on Pattern Recognition, Vienna, Austria, 25–29 August 1996; Volume 1, pp. 186–190. [Google Scholar] [CrossRef]
  29. Sawchuk, A.A. Real-Time Correction of Intensity Nonlinearities in Imaging Systems. IEEE Trans. Comput. 1977, C-26, 34–39. [Google Scholar] [CrossRef]
  30. He, K.; Tang, P.F.; Liang, R. Vignetting Image Correction Based on Gaussian Quadrics Fitting. In Proceedings of the 2009 Fifth International Conference on Natural Computation, Tianjian, China, 14–16 August 2009; Volume 5, pp. 158–161. [Google Scholar] [CrossRef]
  31. Goldman, D.B. Vignette and exposure calibration and compensation. IEEE Trans. Pattern Anal. Mach. Intell. 2010, 32, 2276–2288. [Google Scholar] [CrossRef]
  32. Bal, A.; Palus, H. A Smooth Non-Iterative Local Polynomial (SNILP) Model of Image Vignetting. Sensors 2021, 21, 7086. [Google Scholar] [CrossRef]
  33. Kim, H.T.; Lee, D.Y.; Choi, D.; Kang, J.; Lee, D.W. Vignetting Dimensional Geometric Models and a Downhill Simplex Search. Curr. Opt. Photon. 2022, 6, 161–170. [Google Scholar]
  34. Bal, A.; Palus, H. Image Vignetting Correction Using a Deformable Radial Polynomial Model. Sensors 2023, 23, 1157. [Google Scholar] [CrossRef]
  35. Zheng, Y.; Lin, S.; Kambhamettu, C.; Yu, J.; Kang, S.B. Single-Image Vignetting Correction. IEEE Trans. Pattern Anal. Mach. Intell. 2009, 31, 2243–2256. [Google Scholar] [CrossRef]
  36. Jiang, J.; Zheng, H.; Ji, X.; Cheng, T.; Tian, Y.; Zhu, Y.; Cao, W.; Ehsani, R.; Yao, X. Analysis and Evaluation of the Image Preprocessing Process of a Six-Band Multispectral Camera Mounted on an Unmanned Aerial Vehicle for Winter Wheat Monitoring. Sensors 2019, 19, 747. [Google Scholar] [CrossRef]
  37. Yu, B.; Ying, J.; Luo, L.; Cao, S.Y.; Bao, X.; Shen, H.L. Vignetting Correction Using an Optical Model and Constant Chromaticity Prior. IEEE Trans. Comput. Imaging 2023, 9, 1071–1083. [Google Scholar] [CrossRef]
  38. Lenz, R.; Tsai, R. Techniques for Calibration of the Scale Factor and Image Center for High Accuracy 3-D Machine Vision Metrology. IEEE Trans. Pattern Anal. Mach. Intell. 1988, 10, 713–720. [Google Scholar] [CrossRef]
  39. Willson, R.G.; Shafer, S.A. What is the Center of the Image? J. Opt. Soc. Am. A 1994, 11, 2946–2955. [Google Scholar] [CrossRef]
  40. Leong, F.J.W.M.; Brady, M.; McGee, J.O. Correction of Uneven Illumination (Vignetting) in Digital Microscopy Images. J. Clin. Pathol. 2003, 56, 619–621. [Google Scholar] [CrossRef]
  41. Khan, M.B.; Nisar, H.; Choon, A.N.; Lo, P.K. A Vignetting Correction Algorithm for Bright-Field Microscopic Images of Activated Sludge. In Proceedings of the 2016 International Conference on Digital Image Computing: Techniques and Applications (DICTA), Gold Coast, QLD, Australia, 30 November–2 December 2016; pp. 1–4. [Google Scholar] [CrossRef]
  42. Gonzalez, R.C.; Woods, R.E. Digital Image Processing; Global Edition; Pearson: London, UK, 2018; p. 1019. [Google Scholar]
  43. Wang, Y.; Bai, X.; Liu, S.; Deng, Y.; Zhang, Z.; Sun, Y. Flat-fielding of Full-disk Solar Images with a Gaussian-type Diffuser. Sol. Phys. 2019, 294, 127. [Google Scholar] [CrossRef]
  44. Cao, H.; Gu, X.; Zhang, M.; Zhang, H.; Chen, X. Vignetting Correction Based on a Two-Dimensional Gaussian Filter with Harmony for Area Array Sensors. IEEE Trans. Comput. Imaging 2022, 8, 576–584. [Google Scholar] [CrossRef]
  45. Howell, S.B. Handbook of CCD Astronomy, 2nd ed.; Cambridge Observing Handbooks for Research Astronomers; Cambridge University Press: Cambridge, UK, 2006. [Google Scholar]
  46. Janesick, J.R.; Elliott, T.; Collins, S.; Blouke, M.M.; Freeman, J. Scientific Charge-Coupled Devices. Opt. Eng. 1987, 26, 268692. [Google Scholar] [CrossRef]
  47. Janesick, J.R. Scientific Charge-Coupled Devices; Global Edition; SPIE Press: Bellingham, WA, USA, 2001; p. 924. [Google Scholar]
  48. Debevec, P.E.; Malik, J. Recovering High Dynamic Range Radiance Maps from Photographs. In Proceedings of the SIGGRAPH’97, 24th Annual Conference on Computer Graphics and Interactive Techniques, Los Angeles, CA, USA, 3–8 August 1997; pp. 369–378. [Google Scholar] [CrossRef]
  49. Barnard, K.; Funt, B. Camera Characterization for Color Research. Color Res. Appl. 2002, 27, 152–163. [Google Scholar] [CrossRef]
  50. Grossberg, M.; Nayar, S. Modeling the Space of Camera Response Functions. IEEE Trans. Pattern Anal. Mach. Intell. 2004, 26, 1272–1282. [Google Scholar] [CrossRef] [PubMed]
  51. Goldman, D.B.; Chen, J.H. Vignette and Exposure Calibration and Compensation. In Proceedings of the The 10th IEEE International Conference on Computer Vision, Beijing, China, 17–21 October 2005; pp. 899–906. [Google Scholar]
  52. Kim, S.J.; Pollefeys, M. Robust Radiometric Calibration and Vignetting Correction. IEEE Trans. Pattern Anal. Mach. Intell. 2008, 30, 562–576. [Google Scholar] [CrossRef] [PubMed]
  53. Lebourgeois, V.; Bégué, A.; Labbé, S.; Mallavan, B.; Prévot, L.; Roux, B. Can Commercial Digital Cameras Be Used as Multispectral Sensors? A Crop Monitoring Test. Sensors 2008, 8, 7300–7322. [Google Scholar] [CrossRef]
  54. Olsen, D.; Dou, C.; Zhang, X.; Hu, L.; Kim, H.; Hildum, E. Radiometric Calibration for AgCam. Remote Sens. 2010, 2, 464–477. [Google Scholar] [CrossRef]
  55. Bowman, R.W.; Vodenicharski, B.; Collins, J.T.; Stirling, J. Flat-Field and Colour Correction for the Raspberry Pi Camera Module. J. Open Hardw. 2020, 4, 1–9. [Google Scholar] [CrossRef]
Figure 1. Flow chart of the GFATS algorithm with the exhaustive search procedure for determining the optimal σ parameter in STEP 2.
Figure 1. Flow chart of the GFATS algorithm with the exhaustive search procedure for determining the optimal σ parameter in STEP 2.
Sensors 26 02648 g001
Figure 2. General view of the darkroom where the experiment was carried out (a) and the laboratory setups used for camera positioning (b). The lighting in the laboratory was switched on only for the purpose of taking the photographs shown.
Figure 2. General view of the darkroom where the experiment was carried out (a) and the laboratory setups used for camera positioning (b). The lighting in the laboratory was switched on only for the purpose of taking the photographs shown.
Sensors 26 02648 g002
Figure 3. Vignetting estimation results V ^ (rows 2–5) for s = 6 (all tested methods) and α = 0.1 (GFATS) compared against the original I f images (top row), with each column representing results for an individual lens–camera system.
Figure 3. Vignetting estimation results V ^ (rows 2–5) for s = 6 (all tested methods) and α = 0.1 (GFATS) compared against the original I f images (top row), with each column representing results for an individual lens–camera system.
Sensors 26 02648 g003
Figure 4. Comparison of vignetting correction results I ^ f for the tested vignetting estimation methods at s = 6 (DRP, P2D, SNILP, GFATS) and α = 0.1 (GFATS) across the tested lens–camera systems. For ease of comparison, the results for each system are arranged in columns using a consistent Z-axis range and colour scale (provided for each system in the bottom row).
Figure 4. Comparison of vignetting correction results I ^ f for the tested vignetting estimation methods at s = 6 (DRP, P2D, SNILP, GFATS) and α = 0.1 (GFATS) across the tested lens–camera systems. For ease of comparison, the results for each system are arranged in columns using a consistent Z-axis range and colour scale (provided for each system in the bottom row).
Sensors 26 02648 g004
Figure 5. Profiles of the Δ ( I G ( σ ) , M ) function (Equation (5)) versus σ for polynomial model M of degree s = 2 , 6 , and 12 (top to bottom rows, respectively) across the evaluated lens–camera systems (columns).
Figure 5. Profiles of the Δ ( I G ( σ ) , M ) function (Equation (5)) versus σ for polynomial model M of degree s = 2 , 6 , and 12 (top to bottom rows, respectively) across the evaluated lens–camera systems (columns).
Sensors 26 02648 g005
Table 1. The major parameters of the lens–camera systems used in the experiment.
Table 1. The major parameters of the lens–camera systems used in the experiment.
ParameterLens–Camera Set
WCAMICAMDCAM
CameraLogitech C920 (Logitech, Lausanne, Switzerland)Basler acA1300-30gm (Basler AG, Ahrensburg, Germany)Canon EOS 650D (Canon Inc., Tokyo, Japan)
LensOmron 3Z4S-LE SV-0814H (Omron Corporation, Kyoto, Japan)Sigma 12–24 mm
1:4.5–5.6 DG HSM (Sigma Corporation, Kawasaki, Japan)
Sensor resolution 1920 × 1080 1280 × 960 5184 × 3456
Sensor typecolourmonochromecolour
Focal lengthunknown12 mm12 mm
Aperture f / 1.4 f / 4.5
Table 3. Comparison of quality measures for vignetting estimation results of the WCam system.
Table 3. Comparison of quality measures for vignetting estimation results of the WCam system.
Estimation MethodPolynomial Order s
23456789101112
STD I ^ f DRP0.38130.37610.37610.37340.36980.36980.37000.37020.36970.36960.3693
P2D0.36660.26950.21660.20550.18880.18770.18460.18370.17920.37740.1921
SNILP0.32340.24710.20370.19100.18440.18210.17780.17570.17430.17010.1653
GFATS α 0.010.15080.14790.14580.14390.14190.13630.13630.13200.13010.12790.1253
0.0250.15400.15180.14900.14630.14580.14460.14390.14260.14110.13850.1375
0.050.15770.15560.15400.15180.14940.14850.14790.14630.14630.14520.1446
0.10.16350.16020.15810.15690.15520.15080.14940.14900.14790.14740.1463
0.150.16220.16180.16060.15930.15810.15690.15520.15130.14990.14990.1490
0.250.16430.16390.16140.16100.16060.16020.15890.15850.15690.15440.1535
0.50.16520.16560.16100.15980.16060.16020.15930.15890.15850.15770.1577
IQR I ^ f DRP0.43900.43130.43110.42280.41970.42000.42020.42060.41950.41970.4184
P2D0.44970.33540.28010.26580.24690.24480.24060.23940.23230.55290.2441
SNILP0.42790.31420.26920.25150.24070.23680.23090.22760.22500.21940.2153
GFATS α 0.010.19310.18980.18720.18510.18270.17580.17580.17040.16800.16520.1619
0.0250.19650.19410.19100.18790.18720.18590.18510.18360.18170.17850.1772
0.050.20080.19850.19650.19410.19150.19040.18980.18790.18790.18660.1859
0.10.20750.20380.20130.19990.19800.19310.19150.19100.18980.18920.1879
0.150.20610.20560.20420.20280.20130.19990.19800.19360.19200.19200.1910
0.250.20840.20800.20510.20470.20420.20380.20230.20180.19990.19700.1961
0.50.20940.20990.20470.20330.20420.20380.20280.20230.20180.20080.2008
R 2 I ^ f DRP0.98800.98830.98830.98860.98870.98870.98870.98870.98870.98870.9887
P2D0.98880.99400.99610.99650.99700.99700.99710.99720.99730.98810.9969
SNILP0.99120.99490.99650.99690.99710.99720.99730.99740.99750.99760.9977
GFATS α 0.010.99810.99820.99820.99830.99830.99840.99840.99850.99860.99860.9987
0.0250.99800.99810.99810.99820.99820.99820.99830.99830.99830.99840.9984
0.050.99790.99800.99800.99810.99810.99810.99820.99820.99820.99820.9982
0.10.99770.99780.99790.99790.99800.99810.99810.99810.99820.99820.9982
0.150.99780.99780.99780.99780.99790.99790.99800.99810.99810.99810.9981
0.250.99770.99770.99780.99780.99780.99780.99790.99790.99790.99800.9980
0.50.99770.99760.99780.99780.99780.99780.99780.99790.99790.99790.9979
Note: The colour scale represents the ranking of the vignetting estimation methods, determined independently for each quality measure and each specified value of s. Sensors 26 02648 i001
Table 4. Comparison of quality measures for vignetting estimation results of the ICam system.
Table 4. Comparison of quality measures for vignetting estimation results of the ICam system.
Estimation MethodPolynomial Order s
23456789101112
STD I ^ f DRP0.96720.96700.96510.96440.96350.96360.96440.96300.96300.96360.9638
P2D1.05141.02500.95240.95030.92530.92360.92080.91720.91480.91390.9147
SNILP1.00910.98180.93840.93680.92220.92000.91830.91540.91430.91290.9125
GFATS α 0.010.91230.91110.91110.91110.90990.90950.90850.90800.90730.90730.9065
0.0250.91260.91190.91150.91150.91110.91110.91110.91080.91030.90990.9095
0.050.91550.91410.91340.91260.91230.91230.91190.91190.91150.91150.9111
0.10.91990.91790.91440.91370.91340.91340.91300.91260.91260.91260.9123
0.150.92330.92230.91690.91520.91440.91410.91370.91370.91370.91340.9130
0.250.92700.92510.91920.91890.91650.91550.91480.91410.91410.91410.9137
0.50.93800.93600.92700.92700.92060.91820.91760.91760.91720.91720.9162
IQR I ^ f DRP1.30381.30341.30121.30011.29911.29921.30021.29831.29841.29871.2989
P2D1.40651.37291.27921.27561.24621.24541.24041.23551.23291.23161.2322
SNILP1.35821.32221.26281.25981.24111.23901.23641.23371.23181.22961.2297
GFATS α 0.011.22891.22761.22761.22761.22641.22591.22481.22401.22311.22311.2221
0.0251.22921.22861.22821.22821.22761.22761.22761.22721.22681.22641.2259
0.051.23301.23111.23011.22921.22891.22891.22861.22861.22821.22821.2276
0.11.23761.23571.23171.23061.23011.23011.22971.22921.22921.22921.2289
0.151.24141.24031.23461.23261.23171.23111.23061.23061.23061.23011.2297
0.251.24551.24321.23721.23671.23421.23301.23221.23111.23111.23111.2306
0.51.25691.25451.24551.24551.23831.23611.23531.23531.23501.23501.2339
R 2 I ^ f DRP0.94290.94290.94300.94300.94300.94300.94300.94300.94300.94300.9430
P2D0.93040.93380.94350.94380.94700.94720.94760.94800.94840.94850.9484
SNILP0.93610.93940.94540.94550.94750.94780.94800.94840.94850.94860.9487
GFATS α 0.010.94880.94900.94900.94900.94910.94920.94930.94940.94940.94940.9495
0.0250.94880.94890.94890.94890.94900.94900.94900.94900.94910.94910.9492
0.050.94850.94860.94870.94880.94880.94880.94890.94890.94890.94890.9490
0.10.94800.94820.94860.94870.94870.94870.94880.94880.94880.94880.9488
0.150.94750.94770.94830.94850.94860.94860.94870.94870.94870.94870.9488
0.250.94710.94730.94800.94810.94840.94850.94860.94860.94860.94860.9487
0.50.94560.94590.94710.94710.94790.94820.94820.94820.94830.94830.9484
Note: The colour scale represents the ranking of the vignetting estimation methods, determined independently for each quality measure and each specified value of s. Sensors 26 02648 i001
Table 5. Comparison of quality measures for vignetting estimation results of the DCam system.
Table 5. Comparison of quality measures for vignetting estimation results of the DCam system.
Estimation MethodPolynomial Order s
23456789101112
STD I ^ f DRP0.96320.95050.95050.94180.94070.94130.94040.93980.93960.94020.9392
P2D0.96230.92650.82310.81140.77420.76890.73150.72620.76540.71360.7314
SNILP0.90420.88340.79250.78870.73540.73130.71660.71020.70300.70060.6968
GFATS α 0.010.68380.68340.68220.67970.67770.67660.67400.67310.67140.67020.6695
0.0250.68560.68250.68220.68160.68040.68010.67970.67880.67840.67730.6758
0.050.69040.68750.68530.68400.68280.68280.68250.68160.68100.68070.6804
0.10.69440.69400.69180.68840.68710.68620.68530.68530.68470.68470.6844
0.150.69720.69560.69370.69250.69110.68910.68780.68710.68650.68620.6859
0.250.69800.69800.69400.69330.69250.69180.69110.68970.68880.68810.6871
0.50.73650.73510.72550.71750.70240.69680.69080.68810.68530.68530.6850
IQR I ^ f DRP1.20591.16601.16841.15491.15241.15361.15391.15301.15391.15461.1535
P2D1.21401.12361.06751.05360.97100.96520.91160.89940.94030.88200.9015
SNILP1.11431.08161.01221.00910.92470.91590.88770.87750.86780.86490.8594
GFATS α 0.010.84130.84100.83980.83710.83480.83360.83090.82980.82800.82670.8260
0.0250.84320.84010.83980.83910.83780.83740.83710.83600.83560.83440.8328
0.050.84800.84510.84290.84160.84040.84040.84010.83910.83850.83820.8378
0.10.85180.85140.84940.84600.84480.84380.84290.84290.84230.84230.8420
0.150.85420.85280.85110.85000.84870.84670.84540.84480.84410.84380.8435
0.250.85500.85500.85140.85070.85000.84940.84870.84730.84640.84580.8448
0.50.88370.88280.87630.87050.85870.85390.84840.84580.84290.84290.8426
R 2 I ^ f DRP0.99600.99620.99620.99620.99620.99620.99620.99620.99620.99620.9962
P2D0.99600.99630.99700.99710.99740.99750.99770.99770.99750.99780.9977
SNILP0.99650.99670.99730.99730.99770.99770.99780.99780.99790.99790.9979
GFATS α 0.010.99800.99800.99800.99800.99800.99800.99800.99810.99810.99810.9981
0.0250.99800.99800.99800.99800.99800.99800.99800.99800.99800.99800.9980
0.050.99800.99800.99800.99800.99800.99800.99800.99800.99800.99800.9980
0.10.99790.99790.99790.99800.99800.99800.99800.99800.99800.99800.9980
0.150.99790.99790.99790.99790.99790.99800.99800.99800.99800.99800.9980
0.250.99790.99790.99790.99790.99790.99790.99790.99800.99800.99800.9980
0.50.99770.99770.99770.99780.99790.99790.99790.99800.99800.99800.9980
Note: The colour scale represents the ranking of the vignetting estimation methods, determined independently for each quality measure and each specified value of s. Sensors 26 02648 i001
Table 6. The values of σ obtained using the GFATS method for WCam.
Table 6. The values of σ obtained using the GFATS method for WCam.
α Polynomial Order s
23456789101112
0.0120171513.512997.576.56
0.02523.5211815.5151413.512.511.5109.5
0.052825.523.52118.517.51715.515.514.514
0.1353128.527252018.5181716.515.5
0.1533.53331.53028.5272520.5191918
0.253635.532.53231.53129.529272423
0.53737.53230.531.5313029.5292828
Table 7. The values of σ obtained using the GFATS method for ICam.
Table 7. The values of σ obtained using the GFATS method for ICam.
α Polynomial Order s
23456789101112
0.01119.59.59.587.56.565.55.55
0.02511.510.510109.59.59.598.587.5
0.0515.513.512.511.5111110.510.510109.5
0.12219141312.512.51211.511.511.511
0.152725.517.5151413.513131312.512
0.253229.52120.51715.514.513.513.513.513
0.5444232322319.518.518.5181816.5
Table 8. The values of σ obtained using the GFATS method for DCam.
Table 8. The values of σ obtained using the GFATS method for DCam.
α Polynomial Order s
23456789101112
0.0137.53735312826.523.522.5212019.5
0.02540.535.535343231.53129.52927.525.5
0.054843.54038363635.5343332.532
0.153.55350454341.54040393938.5
0.15575552.551494644434241.541
0.25585853525150494745.544.543
0.592918477.56356.548.544.5404039.5
Table 9. Comparison of the spread of STD values.
Table 9. Comparison of the spread of STD values.
SystemEstimation Method min ( STD ) max ( STD ) d ( STD ) D ( STD ) [%] d ( STD ) d GFATS ( STD ) D ( STD ) D GFATS ( STD )
WCamDRP0.36930.38130.01203.250.300.10
P2D0.17920.37740.1983110.664.923.44
SNILP0.16530.32340.158195.643.922.97
GFATS0.12530.16560.040332.151.001.00
ICamDRP0.96300.96720.00420.440.130.13
P2D0.91391.05140.137415.044.374.33
SNILP0.91251.00910.096610.593.073.05
GFATS0.90650.93800.03153.471.001.00
DCamDRP0.93920.96320.02412.560.360.26
P2D0.71360.96230.248634.843.713.48
SNILP0.69680.90420.207429.773.102.97
GFATS0.66950.73650.067010.011.001.00
Table 10. Comparison of the spread of IQR values.
Table 10. Comparison of the spread of IQR values.
SystemEstimation Method min ( IQR ) max ( IQR ) d ( IQR ) D ( IQR ) [%] d ( IQR ) d GFATS ( IQR ) D ( IQR ) D GFATS ( IQR )
WCamDRP0.41840.43900.02054.910.430.17
P2D0.23230.55290.3206137.986.674.65
SNILP0.21530.42790.212698.764.433.33
GFATS0.16190.20990.048029.671.001.00
ICamDRP1.29831.30380.00550.420.160.15
P2D1.23161.40650.175014.215.034.99
SNILP1.22961.35820.128710.463.703.67
GFATS1.22211.25690.03482.851.001.00
DCamDRP1.15241.20590.05354.640.930.66
P2D0.88201.21400.332037.645.755.39
SNILP0.85941.11430.254929.664.424.24
GFATS0.82600.88370.05776.991.001.00
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bal, A.; Palus, H. Automatic Tuning of Gaussian Filter for Image Vignetting Correction. Sensors 2026, 26, 2648. https://doi.org/10.3390/s26092648

AMA Style

Bal A, Palus H. Automatic Tuning of Gaussian Filter for Image Vignetting Correction. Sensors. 2026; 26(9):2648. https://doi.org/10.3390/s26092648

Chicago/Turabian Style

Bal, Artur, and Henryk Palus. 2026. "Automatic Tuning of Gaussian Filter for Image Vignetting Correction" Sensors 26, no. 9: 2648. https://doi.org/10.3390/s26092648

APA Style

Bal, A., & Palus, H. (2026). Automatic Tuning of Gaussian Filter for Image Vignetting Correction. Sensors, 26(9), 2648. https://doi.org/10.3390/s26092648

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop