We first investigate the ability of EGF to enhance meaningful details during smoothing in both 1D and 2D cases, and then compare the performances of the EGF and GIF. In this paper,
n is set to be 3, so
is a 4D space. As discussed in
Section 2.2,
is the impulse function, and therefore
is just the input image.
is the DC pass filter, so
is a constant valued image.
is set to be a high-pass filter, specifically using
, the
order difference of the Gaussian
f with a variance of 0.75;
as a low-pass Gaussian filter,
.
3.1. 1D case
Figure 3 shows the comparison of EGF and GIF on a 1D signal. The
row is the input which has salt & pepper noise (
green square) and Gaussian white noise (
yellow square) added to the left and right, respectively. The
and
rows are the filtering results of EGF and GIF, respectively. GIF can achieve denoising while preserving dominant edges (
row). However, the details of these edges are suppressed to a certain extent. In contrast, the proposed EGF not only preserves these edges, but also enhances the details (
red boxes). For Gaussian noise, both GIF and EGF achieve acceptable suppression, but the GIF has not suppressed them out thoroughly. In this case, if the regularization parameter of GIF is increased, the noise could be better suppressed, but at the same time, it will cause more damage to the edge. There is a similar result for salt & pepper noise. EGF is capable of suppressing both types of noise well, while keeping meaningful details to be enhanced. This advantage is achieved by using online noise level estimates and adaptive multi-spectrum bands integration.
3.2. 2D case
Figure 4 shows the filtering results of EGF on
Lenna image. To investigate the ability of denoisng and details enhancement of EGF, frequency domain analysis is performed by comparing before and after spectral of three image patches. The
enhancement spectrum is defined as
where
is the Fourier amplitude of the input. And
suppression spectrum is defined in a similar way.
Patches in red and blue boxes have meaningful details that are expected to be enhanced during filtering for higher contrast. After EGF filtering, the details such as Lenna’s hair and eyes, as well as the brim of the hat, are sharpened and appear more clearly. From the analysis of the enhancement spectrum, One can find that the mid-range frequencies and some high-frequencies of these two image patches, corresponding to meaningful details, have been significantly enhanced.
Patch in green box is flat and has some degree of noise (see its log spectrum). After EGF filtering, the low-frequencies is enhanced (see its enhancement spectrum), while some mid-high frequencies are suppressed. In spatial domain, it indicates that the region has been further smoothed.
3.3. Comparison of EGF with GIF
Figure 5 shows the results of EGF and GIF on the input, with two zoomed patches of higher magnification placed under each result for comparison of details. To depict the filtering process of EGF, four weight maps, corresponding to
,...,
, are attached to
col., namely
F,
H,
L, and
D, respectively. Since we set
larger than that of other coefficients, EGF will suppress
most, the coefficient of
, thereby forcing
,...,
to play a greater role in reconstructing the input.
contains more informative details, while
and
contain less noise. The edges of the image are mainly reconstructed by high-frequencies (
) and low-frequencies (
), whereas the flat area mainly by DC components (
). Since a high-pass filter is included as a basis in
, EGF is capable to actively enhance the meaningful details, which is the main difference from traditional edge preserving filters. The risk that the enhancement of the high-frequencies may amplify the noise do exists in EGF, and the problem is alleviated through adding a regular term of online noise level evaluation.
GIF is a special case of the proposed EGF (n = 1) . The local combined filter of GIF is optimized within a 2D functional
, where the two bases are all-pass and DC pass, respectively. GIF seeks for a tradeoff locally between the input and a constant valued image (
in
Figure 6 are alwanys zero(blank)). Results illustrate GIF is capable to maintain the significant edges in smoothing, but fails at actively enhancing them and keep tiny details from being blurred.
Due to the introduction of regular terms for online noise level estimation, EGF is able to dynamically balance smoothing and detail enhancement according to noise conditions. In the first and the second rows of the
Figure 6, different degrees of additive white Gaussian noise were added to the lower right part of each image. EGF(ours) can achieve adaptive noise suppression and detail enhancement. Observing their four weight maps, the noisy area of the image is mainly reconstructed by the energy of the low-frequency part (
), and the information of the high-frequency part (
H) is almost abandoned. The results suggest that EGF adaptively integrates the energy of different frequency bands according to the noise level. For GIF, however, the intensity of smoothing is determined by the
variance of the current patch. If the area, corrupted by noise, has larger variance, it will not be sufficiently smoothed. In this case, if we increase the regularization coefficient
to force smooth heavily, more details of the image will be blurred along with noise (see last column of
Figure 6). Tests were also conducted on heavy noisy images (see part B of
Figure 6). It can be found that EGF keeps more details from being smoothed in filtering.
In imaging environments with low illumination, darker areas in the scene often exhibit stronger noise, which is due to the low signal-to-noise ratio in low illumination regions (as shown in the input image in
Figure 7, where darker areas are contaminated by stronger noise). In other words, in low-light scenes, if there is significant variation in brightness across different areas, the spatial distribution of noise intensity in the resulting image also varies. Therefore, it is necessary to design appropriate algorithms to mitigate noise while minimizing disruption to texture regions. Such algorithms can be implemented in post-processing image enhancement software or in the Image Signal Processor (ISP) chip within the camera. However, denoising spatially non-uniform noisy images is a challenging task. For the GIF algorithm, the only adjustable parameter is
. As shown in the figure, we attempted to gradually adjust
from
to
. However, we found that the GIF algorithm cannot achieve a good balance between denoising and preserving weak textures. In other words, when a stronger noise suppression is desired, it inevitably results in severe disruption (filtering out) of weak texture areas in the image. This is primarily due to the GIF algorithm’s reliance solely on variance to evaluate local image information. Since noise areas and texture areas may have similar variances, noise needs to be filtered out while weak textures need to be preserved. In contrast, our proposed EGF algorithm introduces local noise estimation and benefits from the filtering framework presented in this paper, thereby demonstrating a certain capability to differentiate between noise and texture areas and to adaptively process these areas separately.
Next, we further conducted quantitative analysis. For the aforementioned images, we considered extracting noise patches and text patches from the images and conducted a comparative quantitative analysis. We computed the Average Gradient Response (AGR) for these two patches before and after filtering by considering the average gradient response level. We used the Laplacian operator to convolve the aforementioned two areas and calculated the mean value of the convolution response amplitude to represent the average gradient response level. As shown in
Table 1, the AGR of the noise area and the text area in the original input image are
and
, respectively, indicating a high noise level in the noise area. Filtering using the GIF algorithm shows that as
increases, the noise level in the noise area can be reduced from
to
. However, as
increases, the text area is also significantly suppressed, with suppression rates exceeding
and reaching as high as
. Moreover, regardless of the choice of
we cannot achieve good noise suppression while preserving texture areas from severe disruption. In contrast, our proposed EGF algorithm can achieve a noise suppression of
while causing only
suppression in the texture area.