1 Introduction

The research area, concerning to the restoration of digital images, corrupted with different types of periodic/quasi-periodic noise patterns has immense significance in various imaging fields [33, 42] since 1940 and was first introduced in [15].

Periodic/quasi-periodic noises may arise from thermal/electrical/electromechanical interferences [11] during image acquisition/transmission and also from electronic interferences like electronic circuitry of the modern digital camera like Charge Coupled Device (CCD) or Complementary Metal Oxide Semiconductor (CMOS) sensors etc. Periodic noises are generally categorized [5] as global, local and striping. Striping pattern [7] may generally occur due to the sensitivity mismatch of the detectors in a multi-imaging system. Another type of periodic noise pattern, known as Moiré [30], may often be generated from the entity itself with some periodic patterns having small-scale details near the resolution limit of any digital sensor. Faulty resolution of any scanner, scanning procedure of an electro-optical scanner and an imaging system placed on vibrating holders (aircraft, helicopters, etc) or any moving platforms may also likely to cause this phenomenon [40]. These kinds of noises are most commonly visible in various real-time imagery applications such as medical [19, 23], microscopic [12], remote sensing [6, 20, 31], television [32], planetary mission [29], halftone, raster scanline, canvas contamination in painting artwork [8] etc.

Periodic noises are often represented by the unintended and the spurious repetitive patterns, covering the entire image in the spatial domain. Conversely, these are by nature well-localized in the corresponding Fourier domain image spectrum. To remove periodic noise [26] structures from corrupted images efficiently, though the spatial domain filtering techniques confront several troubles (blurred outputs/artifacts, etc.) due to its spatial dependency all over the image, there are many spatial filters in the literature [17, 18]. On the contrary, noisy spectral components can easily be notified by the Fourier domain based operations as periodic noises confer spiky-peaks/star-shaped peak areas [14] in the corresponding image spectrum, thereby providing superior restoration of the highly corrupted images.

A fundamental frequency and its corresponding harmonics [34] are responsible to create a periodic noise pattern. Ideally, one single-frequency periodic noise can usually cause two sharp spiky-peaks in the image spectrum with almost zero-bandwidth. The presence of several fundamental frequencies, forming such quasi-periodic [13] patterns which is especially visible in most of the non-synthetic dataset. At this point, it is worth mentioning that according to the Gonzalez and Woods [14] also, the existence of numerous star-like zones in any corrupted image spectrum designates the occurrence of more than one sinusoidal pattern i.e. a specific noise structure gets constructed due to the multiple fundamental frequencies. Sharp truncation of any periodic pattern by an image periphery may usually generate different shaped noisy peak areas along with some non-zero bandwidth in the corresponding corrupted image spectrum, depending on the orientation of that repeating pattern.

2 State-of-the-art approaches and their comparative study

Earlier filtering approaches in the spectral domain incorporate some suitable band-selective filters like band-reject, notch-reject, etc. [25] for de-noising images, contaminated by periodic noise patterns. Appropriate determination of noise affected zones centred on their fundamental peaks is quite tricky in these filters. The Procedure for detecting periodic noise frequencies is resolved to some extent in the spectral domain MFSD1 [1], MFSD2 [2] and WGNF [3].

In Mean Filter in Spectral Domain (MFSD1) [1] method, a ratio of the considered spectral components to the local masked mean value within a sliding and binary window is analyzed with respect to a prefixed threshold value to check whether that spectral component is noisy/non-noisy. In case of Median Filter in Spectral Domain (MFSD2) [2] approach, a noisy component gets detected if the ratio of the spectral component under concern to the local masked median within a scanning local window exceeds a hand-tuned threshold value. Both MFSD1 and MFSD2 fail to achieve good restoration if the bandwidth of any periodic noise increases. Early selection of two hand-tuned parameters such as threshold and filtering window size by trial and error is cumbersome in these methods. Though computational complexity is comparatively higher, MFSD2 is able to achieve a little bit better performances than MFSD1 especially in case of quasi-periodic noise structures.

A semi-automatic process for periodic denoising was proposed by Hudhud and Turner [16]. Immediately, after the detection of noisy peaks, square/elliptical shaped Region of Interest (ROI) was determined. Then, those were filtered out using a weighted median filter. Though the time complexity is slightly improved there by using ROI, still this filter suffers from the similar problem as in the paper [2]. The Spike estimation process is not clearly described by them as well as ROI determination is not at all automatic.

In the paper [3], an efficient semi-adaptive method, i.e. Windowed Gaussian Notch Filter (WGNF) for periodic/quasi-periodic noise detection and filtration was demonstrated. In this approach, noisy peaks were detected using a similar process as in the paper [2] and then filtered out by a modified version of the ideal Gaussian notch-reject filter [14]. Due to the usage of fixed window size and prefixed coefficients of this filter, this procedure is also not capable of producing good restoration with upto the mark.

A pioneering semi-automatic software solution [22] in the spectral domain was suggested for attenuating noisy peaks from dual energy images (such as X-ray mammography) using two regions cross-shaped top-hat filters like Interpolation Notch-Reject Filter (INRF), Brickwall Notch-Reject Filter (BNRF) and Gaussian Notch-Reject Filter (GNRF). The authors used such fixed thresholding approach which may perform satisfactorily for a few special cases only. Central 4 ∗ 4 fixed region was protected by them for restoring authentic image information even for such natural images which have more dispersed central region.

A suitable notch-pass filter like Adaptive Optimum Notch Filter (AONF) [27] was applied to the input corrupted image spectrum to extract the knowledge of corresponding repetitive pattern in the spatial domain.

Gaussian Star Restoration Filter (GaSF) for periodic/quasi-periodic denoising from digital images was presented in the paper [21]. Two orthogonal and elliptical Gaussian filtering profiles for each noisy peak were utilized by the authors to design a star-shaped filter. For designing this GaSF, usage of three kinds of hand-tuned threshold values and a few estimated parameters may lead to a bad restoration.

In VSNR [12], at first, a new class of random process, approximating many real-life stationary noises of numerous fields were proposed. Then the image was restored from the contaminated one using a Bayesian method by interpreting this restoration technique as a convex optimization problem which was solved numerically. The authors decomposed the noise for certain advantages, but fail to handle the random Gaussian part of it. This restoration process is a time consuming iterative procedure, applicable only for the certain types of stripe noises which usually obey one specific hypothesis.

In the paper [28], a novel Adaptive Gaussian Notch Filter (AGNF) was launched as the scheme of reducing the impact of periodic noises efficiently. As compared to the rest other existing methods, AGNF does not require any tuning and parameter adjustments. The procedure for detecting LFR is not optimum and fit for every scenario in case of AGNF [28]. Also, it uses a fixed Gaussian filtering profile irrespective of the filtering window size.

The authors [6] presented a process of de-striping of the multispectral remote sensing images. They preserved spectral and spatial consistency of images by categorizing the stripes and then removed the same by utilizing 3D total variation. They used the Split-Bregman iteration for fast optimization of the de-striping model. They assumed that the image feature gradient must be lesser than the stripe gradient. If it fails then there is a chance of losing the edge information of the original image. As this technique is based on the optimization, the iterative process demands more execution time.

Sur, Grediac [36] established an automated approach of removing quasi-periodic noise structures from natural images. At first, a robust regression analysis was employed by fitting the power-law to the input corrupted image power spectrum to get a flavour of expected noise-free natural image power spectrum. The expected power spectrum was then compared with the average power spectrum obtained from the set of regularly distributed patches to localize noisy peaks. Finally, they applied an automated notch-reject filter to detect the method noise which was eventually eradicated from the corrupted image in the spatial domain.

In the paper [35], the concept of Number of False Alarm (NFA) was exploited over the uniform concentric rings to detect spurious noisy peaks. Minimum of power spectrum was utilized to perform the same. It takes a large amount of execution time due to NFA calculation. Both the works [35, 36] experience the fixed patch size problem, thus may not give the best result for every image-noise combinations. As both of them follow a non-adaptive LFR detection procedure, their performance for low-frequency noise removal is not at all acceptable.

The authors of the work Laplacian based Frequency Domain Filter (LFDF) [38] divided the entire algorithm into two major stages: noisy component detection and correction. At first, noisy regions were highlighted by convolving the corrupted image spectrum with the Laplacian directional mask. Then, noisy peaks were found out by comparing each spectral component with a non-adaptive threshold value which was a function of Euclidian distance from the DC element. Finally, those noisy components were recursively restored using the average of minimum and median values of nearest possible uncorrupted components.

Windowed Adaptive Switching Minimum Filter (WASMF) [39] is a slightly modified version of LFDF [38]. They detected noisy peaks using such a thresholding approach which differs from LFDF but still depends on the Euclidean distance from DC element. Once a peak had been identified, the associated noisy areas were then recognized by comparing with another threshold value which was dependent on local neighbourhood statistics. In the noise attenuation phase, detected noisy frequencies were recursively replaced by the minimum value of uncorrupted frequencies within a local neighbourhood. LFDF and WASMF used such fixed thresholding approach which is not a function of the corrupted image itself. So, these procedures cannot perform optimally for a large span of image-noise combinations. In both LFDF and WASMF, time consumption is more than the notch filtering one due to the recursive filtering procedure.

A recent technique of periodic/quasi-periodic noise fading i.e. Adaptive Threshold based Frequency Domain Filter (ATFF) is well described in the paper [37]. As a pre-processing step, they used Laplacian transform as described in [38] to make the corrupted image spectrum more prominent, thereby suggesting an adaptive threshold based noise identification process. Hence, corrupted frequencies were attenuated using the minimum filter as in [39]. Their peak detection method becomes uncertain unless the multiplicative parameter, used during thresholding, gets optimized.

This paper presents a fully automated frequency domain denoising algorithm for digital images, impaired by a wide range of periodic/quasi-periodic noise patterns by alleviating the inadequacy of other existing frequency domain algorithms. It is capable of discriminating noisy frequencies from the non-noisy ones effectively since it has the unique ability to separately identify the noisy fundamental peak and its surrounding noisy affected areas. Novelty of our proposed Gabor-based ANRF algorithm is bestowed at our level best utilising some well-known mathematical theories or our own innovated procedures in each of its several distinct steps (Fig. 1). To start with, our algorithm preserves entire LFR, containing smooth image information, precisely by representing the whole image spectrum as multiple populations where each population consists of several spectral components. Here, squared spectral difference of each spectral component of every population with respect to the median of the considered population is utilised for LFR conservation. Thereafter, detecting the effective noisy spectral zone easily, remaining image spectrum gets highlighted more prominently by using Gabor transform which is the maiden usage so far. Though the idea of highlighting the whole image spectrum is acquired from some of the latest existing works [37,38,39], their implementation approach differs from us to a great extent. To perform the same, the works of [37,38,39] used inherently inflexible Laplacian kernel as a pre-processing step before LFR preservation whereas a more flexible Gabor profile is employed in our case after LFR preservation. Unlike our work, the complexity of those works is greatly increased as the contrast enhancement step is executed before preserving LFR contents. In accordance with this step, the parameters involved in their subsequent steps must be adjusted vigorously if there is a requirement of modifying Laplacian kernel of [37,38,39] to highlight the spectrum for certain image noise combinations which may introduce extensive calculations. In our case, after using a well-customised Gabor profile to make it more suitable for varying image-noise combinations, an adaptively calculated novel threshold surface using an exponential function is exploited to get the noisy bitmap. At last, a novel automated notch-reject filter is proposed by us with an automated control of filtering profile in accordance with the largest radial span of differently shaped noise spectrum profiles to attenuate the effective noisy peak areas.

Fig. 1
figure 1

Propostion of Gabor-based ANRF Algorithm. Pictorial representation of the stages of our proposed algorithm: a Standard image Lena, synthetically contaminated by combined noise (N1 + N2 + N3) as in Eq. 27 with A = 0.7; b Corrupted image spectrum; c 3D plot of expected model of noise-free natural image; d LFR mask with widened radius and angle; e Contrast enhanced spectrum using Gabor Transform; f LFR Masked Gabor Transformed Spectrum; g 3D plot of Threshold Surface; h Noisy Bitmap; i Restored image spectrum; j Restored image

Fig. 2
figure 2

a Spectrum of real image Clown; b Close-up view of Noise Frequency in 3rd quadrant; c Noise Spectrum Profile; d Proposed ANRF profile; e 2D Characteristics curve of our proposed ANRF profile for different values of Χ

3 Proposition of Gabor-based ANRF algorithm

To start with, IM of size R ∗ C is considered here as the origin shifted Fourier transformed spectral domain representation of an image, corrupted with various kinds of periodic/quasi-periodic noise patterns. It is noteworthy to mention that the position of any pixel/spectral component of an image matrix can usually be represented by several conventions as given below.

  1. 1.

    In the Cartesian method, (x, y) or (u, v) represents the corresponding row and column position in the spatial/spectral domain respectively.

  2. 2.

    In Polar method, (r, θ) represents the radius from the DC element and the angular displacement from the positive horizontal axis that passes through DC and

  3. 3.

    In single indexing method, i indicates the positional representation of an element in any image matrix while row/column traversing.

One of the abovementioned specific methods for such representations can easily be transferred to other by some simple numerical analysis. Hence, these representations are utilized in this article for making our mathematical expressions more convenient.

3.1 Entire LFR preservation using mask formation

At this juncture, Power Spectrum of Corrupted Image (PIM) is regarded as a set of concentric rings, centered on the DC value of IM. Naturally, each of the rings corresponds to a population/collection of the power of spectral components of any corrupted image. So, as a whole PIM can be considered as a combination of several populations i.e. PL where each population (plj, where j is the positional index of PL) contains the power of the spectral components, known as sample. In this sub-section, our main motto is to preserve LFR appropriately in an automated way by applying a rough thresholding to detect the outliers. Outliers of each population are detected using a rough threshold value (τ) by finding the squared spectral difference between each sample of the jth no. population and the median of that corresponding population. As LFR span cannot usually be exceeded by half of the Maximum Possible Radius (MR), the total number of population must be limited by this.

$$ OUTLIER=\underset{j=1}{\overset{M_{\raisebox{1ex}{$R$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}}{\cup }}{\left(r,\theta \right)}^j, if{\left[{pl}_{r,\theta}^j- Median\left({pl}^j\right)\right]}^2>{\tau}^j $$
(1)

Where, \( {\tau}^j=\frac{\left[ Mean\left({pl}^j\right)+ Median\left({pl}^j\right)\right]}{2} \), plj ∈ PL and (r, θ)j represents the collection of positions of samples within the jth no. population. The procedure for finding Outlier Bitmap (ΟΒ) is mathematically outlined in the following:

$$ OB=\left\{\begin{array}{ll}1,\forall \left(r,\theta \right)\in & OUTLIER\\ {}0,& otherwise\end{array}\right. $$
(2)

LFR Mask (Ϻ) can then be accurately formed with the help of ΟΒ to keep LFR intact.

$$ \mathrm{M}=\left\{\begin{array}{ll}1,&\ if\ {o\beta}_{r,\theta }=1\\ {}0,& otherwise\end{array}\right. $$
(3)

Where, οβr, θ ∈ ΟΒ

After formation of M, we update M by relaxing the mask a little bit around each and every outlier on bitmap as there may be any noisy affected region which would be detected precisely on the later part of the algorithm. Hence, radius and angle widening are incorporated to perform the same as mathematically explained in Eq. (4a) and Eq. (4b) respectively.

$$ M=\left\{1, if\;{o\beta}_{r1,\theta }=1\&\left[r1<r\ OR\ r1<r+5\right]\right\} $$
(4a)
$$ \mathrm{M}=\left\{1, if{o\beta}_{r,\theta 1}=1\&\left[\theta -{5}^{{}^{\circ}}<\theta 1<\theta +{5}^{{}^{\circ}}\right]\right\} $$
(4b)

Where, r1 and θ1 are temporary variables, indicating values of r and θ.

3.2 Adaptive thresholding using exponential surface

Suitable and proper thresholding is the most requisite process of detecting noisy fundamental peaks along with their surrounding noise affected zones. Before applying an adaptive thresholding procedure, at first, Gabor transform [9, 10] is applied to IM to make the spectrum more prominent which in return leads to a contrast-enhanced version of IM, thereby making noisy peaks along with their surrounding zones more distinguishable and clearly visible. Now, it gets much easier to apply threshold surface to identify those noisy peaks along with their noise affected zones. Gabor-Transformed Image Spectrum \( \left(\dot{\mathcal{G}}\mathcal{S}\right) \) is found out by convolving \( \dot{G} \) with IM as outlined in Eq. (5).

$$ \dot{G}\mathcal{S}=\dot{G}\otimes IM $$
(5)

Where, \( \dot{G} \) is a Gaussian function modulated by sinusoid, together termed as Gabor

$$ {\dot{G}}_{\left(u,v\right)}=\frac{1}{2{\pi \sigma}^2}\mathit{\exp}\left(-\frac{{u_{\phi}}^2+\gamma {v_{\phi}}^2}{2{\sigma}^2}\right)\ast \mathit{\cos}\left(\frac{2\pi {u}_{\phi }}{\lambda }+\varphi \right) $$
(6)

uϕ = u cos ϕ + v sin ϕ and vϕ =  − u sin ϕ + v cos ϕ

σ, λ, ϕ, γ and φ refer to the standard deviation of \( \dot{G} \), wavelength of the sinusoids, orientation of the normal to the parallel stripes of \( \dot{G} \), spatial aspect ratio and phase offset respectively. In our case, controlling parameters of \( \dot{G} \) are selected as: \( \sigma =1,\lambda =5,\phi =\frac{\pi }{2},\gamma =0.5,\varphi =0 \). As most of those chosen values are conventionally standard assumption, a standard \( \dot{G} \) is then obtained. Moreover, all the values of those parameters bear some logical suitability criteria for our case. Any \( \dot{G} \) having σ = 1 is a general assumption as it can cover the whole image quite satisfactorily for a wide range of image sizes. The value of ϕ denotes the angle between horizontal and vertical axes of \( \dot{G} \). As the images are usually planar and we need to apply any \( \dot{G} \) in a way such that its effect will fall upon the whole images homogeneously, so the value of ϕ is appropriate enough to take as π/2. Here, the value of the parameter φ is taken as 0 to make the peak of any \( \dot{G} \) perfectly aligned with the spectral position of the DC value of the image so as to produce the best result. As any \( \dot{G} \) is usually composed of an exponential function along with a sinusoid, we can say that the nature of \( \dot{G} \) is similar to exponentially decreasing sinusoidal ripples. Whenever the wavelength of the sinusoid increases, it creates fewer amounts of ripples with low frequency. To get the high contrast enhancement, we would like to have such \( \dot{G} \) which contains high-frequency ripples. So, lower value of λ is generally desirable for achieving the high contrast enhancement of an image. Our algorithm is run for a wide range (1 − 20) of λ for various synthetic/non-synthetically corrupted images. Within this range of λ, the quality of restored images will be good enough in terms of both statistical and visual, thereby achieving best results amongst others. In our case, λ is set at 1 as the smallest suitable value of that wide range of λ. Now, Normalized LFR Masked Gabor Transformed Spectrum (N) is established as given in the following:

$$ N=\frac{M\circ \dot{G}\mathcal{S}}{\mathit{\operatorname{Max}}\ \left(M\circ \dot{G}\mathcal{S}\right)} $$
(7)

Where, the operator ∘ belongs to Hadamard product operation. Now, for finding out noisy bitmaps, an appropriate Threshold Surface (Ŧ) has to be created to act upon any IM which is generally random in nature. So, the centre of such surface should be perfectly aligned with the position of the DC value of any IM. In Eq. (8), a generalized exponential surface is considered as Ŧ, containing two parameters Α and Ѕ for controlling Amplitude and Slope of such exponential function based on which Ŧ is created. Amongst many other non-linear functions, the exponential function is preferred in our case as it is always handy because by controlling Α and Ѕ suitably, we can easily approximate many random data sets.

(8)

In our case, Α is signified by the maximum amplitude of N which usually falls after MR/2 upto image boundary as noisy components generally reside after LFR.

$$ A=\mathit{\operatorname{Max}}\left\{{\nu}_{r,\theta}\right\}\ where,r>\left({M}_R/2\right)+1\ and\ {\nu}_{r,\theta}\in N $$
(9)

In Eq. (9), r represents the radial outward distance from the position of DC element and θ denotes angle with respect to the positive horizontal axis that passes through DC. For detecting the value of Ѕ, here N is considered as the combination of closely spaced Radial Vectors (Η), containing varying amplitudes of spectral coefficients, i.e. the distributions of different amplitudes. It is mathematically expressed as:

$$ {H}_{\theta }=\underset{r=1}{\overset{M_R}{\cup }}{\eta}_{r,\theta } $$
(10)

Where, 0° ≤ θ ≤ 180° and ηr, θ ∈ Η

Here, for determining the appropriate value of Ѕ for Ŧ, two ultimate Ηs i.e. ΗSMax and ΗSMin are chosen among all Η s based on the maximum and the minimum values of the Standard Deviation (Std). ΗSMax indicates such a particular Η which has the maximum amplitude variation i.e. higher possibility of having noisy frequencies. For ΗSMin, the scenario is exactly opposite.

(11a)
(11b)

In Eq. (11a) and (11b), θ1 indicates temporary variable, indicating the values of θ. Now, the random amplitude distributions of ΗSMax and ΗSMin are made approximately fit with a suitable exponential function by varying the values of Ѕ of that function. Two extreme values of Ѕ i.e. ЅMax and ЅMin are subsequently calculated so that their corresponding exponential functions can pass through the halfway of the maximum amplitude span of the distributions of ΗSMax and ΗSMin.

$$ {\mathrm{S}}_{Max}=\left[\mathit{\operatorname{Min}}\left\{S, if{\sum}_i{\eta}_{SMaxi}-A\ast \mathit{\exp}\left(\raisebox{1ex}{$-S\ast i$}\!\left/ \!\raisebox{-1ex}{${M}_R$}\right.\right)>0\right\}\right]/2 $$
(12a)
$$ {\mathrm{S}}_{Min}=\left[\mathit{\operatorname{Min}}\left\{S, if{\sum}_i{\eta}_{SMini}-A\ast \mathit{\exp}\left(\raisebox{1ex}{$-S\ast i$}\!\left/ \!\raisebox{-1ex}{${M}_R$}\right.\right)>0\right\}\right]/2 $$
(12b)

Where, i is the positional index of the corresponding sets like ΗSMax and ΗSMin. Hence, ηSMaxi ∈ ΗSMax and ηSMini ∈ ΗSMin. In Eq. (12a) and (12b), after several experimental observations, the range of S is sufficient enough to take as 1 ≤ S ≤ 10. ЅMax corresponds to that exponential function which approximates the distribution of ΗSMax having higher possibility of containing noisy peaks. Hence, if we select ЅMax solely as the value of Ѕ for thresholding surface, then all noisy components may not be detected. That’s why, ЅMin and average of ЅMax and ЅMin are used as two possible appropriate values of Ѕ i.e. Ѕ1 and Ѕ2 for finding two suitable threshold surfaces i.e. and .

$$ \mathrm{S} 1={\mathrm{S}}_{Min}\ and\ \mathrm{S} 2=\left\lfloor \frac{{\mathrm{S}}_{Max}+{\mathrm{S}}_{Min}}{2}\right\rfloor $$
(13)

At this juncture, in accordance with Ѕ1 and Ѕ2, the generalized as expressed in Eq. (8) is then customized into and as delineated below:

(14a)
(14b)

In Eq. (14a) and Eq. (14b), variable i denotes the distance of each spectral components’ position with respect to the DC value’s position of IM.

3.3 Noisy bitmap generation

After applying and to input IM, two Noisy Bitmaps (Ɓ1 and Ɓ2) are subsequently obtained which mainly comprise of noisy fundamental peaks surrounded by their effective noisy spectral zones.

$$ \mathrm{B}1=\left\{\begin{array}{ll}1,&\ if\ {\eta}_i\ge T{1}_i\\ {}0,& otherwise\end{array}\right. $$
(15a)
$$ \mathrm{B}2=\left\{\begin{array}{ll}1,&\ if\ {\eta}_i\ge T{2}_i\\ {}0,& otherwise\end{array}\right. $$
(15b)

Where, i ∈ {1, (R ∗ C)} ⊂ +

Now, all the closed contours are detected which actually refer to the different shapes of various noisy spectral zones of the corresponding Ɓ1 and Ɓ2 respectively. After that, positions of all the spectral components, bounded by each closed contour are stored in Contour Map () sequentially. Thereby, positions of the fundamental peaks of all the noisy contours correspond to Ɓ1 and Ɓ2 are detected, known as Fundamental Peak Positions (Ƥ1 and Ƥ2) respectively.

(16a)
(16b)

In Eq. (16a) and Eq. (16b), imj, imk ∈ IM and j, k are the positional indexes of the corresponding set IM. Now, we have to determine the Final Contour Map () and the Final Set of Fundamental Peak Positions (ƑƁ) corresponds to the Final Noisy Bitmap (ƑƁ) which is much more suitable for a specific image-noise combination. This is highly dependent on the number of noisy peaks detected in Ƥ1 and Ƥ2 respectively. So, the difference between Cardinality (Card) of two sets i.e. Ƥ1 and Ƥ2 is exploited to do the same.

$$ Diff=\left[ Card\left(\mathrm{P}1\right)- Card\left(\mathrm{P}2\right)\right] $$
(17)

After that, for choosing FƁ, the value of Diff is compared with a suitable function of the difference between Ѕ1 and Ѕ2.

$$ {Diff}_{lim}=C1\ast \left(\mathrm{S}2-\mathrm{S}1\right)+1 $$
(18)

Where, C1 = 1.5 is considered typically after the experimental analysis. The decision about the appropriate bitmap is taken as follows,

(19)

It is conferred from the above Eq. (19) that if there is a small difference between Ѕ2 and Ѕ1 along with the large values of Diff then we will take that bitmap as appropriate which is corresponding to a larger value of Ѕ and vice-versa.

3.4 Automated notch filtration on effective noisy spectral zone

The final and most important step of any denoising algorithm is the filtering of any effective noisy spectral zones centred on their fundamental peaks. Here, an Automated Notch-Reject Filter (ANRF) is introduced with an adaptive control of filtering profile (Fig. 2) in accordance with the different shapes of the noise spectrum profiles. This phenomenon makes it superior to most of the existing works where filtering profile is fixed in nature [3, 28]. For managing filtering profile in accordance with an effective noisy spectral zone, the slope of attenuation i.e. nothing but the profile of any filtering surface has to be directly dependent on the maximum radial span of that zone. Hence, a linear relationship of Profile Controlling Parameter (Χ) of our filtering surface is made with the Largest Radial Distance (Ω) of the ith closed contour of centred on the corresponding fundamental peak.

(20)

Where,

Typically, C2 = 5 is regarded as the best-chosen value after various experimental observations and represents the Euclidean distance in the spectral domain. From Eq. (20), it can be inferred that a high value of Χ is required to efficiently filter out any noisy spectral zone with large radial span and the scenario is exactly opposite for small radial span. Hence, the characteristics of our proposed filtering profile adapt the slope of attenuation of our filtering surface in accordance with the radial span of any noise spectrum profile.

Generally, the maximum possible span of any noisy spectral zone can be limited by the half of its Nearest Peak Distance () i.e. minimum of any considered peak from its nearest peak/DC component. Here, half of the đi (where ) as the maximum Filtering Profile Window (Wi ∗ Wi) is considered to give freedom to the χi (where χi ∈ Χ) for controlling the effective filtering profile’s roll-off with respect to the span of the noise spectrum profile, referring to the ith noisy peak. Hence, Wi ∗ Wi can cover up the whole noisy spectral zone even in the case of its maximum possible span i.e. . It is indispensible to efficiently restore the uncorrupted spectral components as much as possible by using appropriate value of χi for effectively rolling off the filtering profile in relation to the span of the noise spectrum profile, thereby avoiding the chances of unwanted filtering. As the values of i varies from 1 to the cardinality of the set , each corresponding values of is stored in a set . The formation of the set is mathematically expressed as:

(21)

Where, the single argument in specifies the distance of the considered noisy peak from the DC component. Finally, our proposed ANRF of size Wi ∗ Wi, used for image restoration is given by,

(22)

Where, Wi= and χi ∈ Χ

The whole procedure of our proposed ANRF denoising method is recapitulated in a nutshell for making it more realizable using Algorithm 1 as demonstrated below:

figure w

4 Experimental results and discussion

This section explicitly illustrates that our proposed algorithm can restore digital images adequately, impaired by various synthetic as well as non-synthetic periodic noise patterns. To assess the quality of restored images, our proposed Gabor-based ANRF algorithm is compared with other state-of-the-art approaches like MFSD1 [1], MFSD2 [2], SMF [17], WGNF [3], BNRF [22], INRF [22], AONF [27], VSNR [12], GaSF [21], AGNF [28], ASSTV [6], Sur, Grediac [36], A-contrario [35], LFDF [38], WASMF [39], ATFF [37]. These algorithms are executed using Matlab 10.0 software in Intel(R) Core(TM) i5-3210 M CPU @ 2.50 GHz processor. A few user-controlled parameters should be primarily adjusted by the experimental study to acquire the proper results for MFSD1, MFSD2 and WGNF. Thus, best-preferred common threshold value of 10 and a window size of 9 ∗ 9 for different image-noise combinations are considered in this article. Normalizing Divider used in MFSD1 is selected as 50. m ∗ n (corrected area) are both fixed at 7 for WGNF. Parameters of Gaussian surface, i.e. A and B are fixed to 1.0 and 0.1 for WGNF and 1.0 and 0.01 for AGNF. The threshold value is considered as 25,000 for BNRF and INRF. Fixed patch size is set at best-chosen value 64 or 128 for implementing Sur, Grediac [36] and A-contrario [35] algorithms.

4.1 Performance measurement attributes

The quantitative performance metrics like Peak Signal-to-Noise Ratio (PSNR), Structural Similarity (SSIM), Edge Accuracy (εa), Edge Precision (εp) and Time Complexity (TC) in seconds are exploited in this article to assess the performance of our proposed algorithm.

4.1.1 Peak Signal-to-Noise Ratio (PSNR)

It [4] is the ratio of the maximum signal power to the power of noise that distorts the original signal. PSNR of the Denoised Image \( \left(\widehat{z}\right) \) from the Original Image (z) is defined by,

(23)

4.1.2 Structural similarity (SSIM)

It is a well-matched performance metric for comparing the quality of a restored image visually and its mathematical expression are clearly outlined in [41].

(24)

Where, mz and \( {m}_{\widehat{z}} \)refer to the mean brightness and σz and \( {\sigma}_{\widehat{z}} \) denotes the Standard Deviation (Std) [24] of z and \( \widehat{z} \) respectively. \( SSIM\left(z,\widehat{z}\right)=1 \), if and only if \( z=\widehat{z} \). More the value of SSIM approaches nearer to unity, betterment of de-noised image quality is.

4.1.3 Edge accuracy (εa) and Edge precision (εp)

The quality of a restored image can effectively be judged by the edge count, as most of the periodic noises introduce some undesired edges to the uncorrupted images. εa and εp are the two such parameters which measure the similarity between the Restored Edge-Map (εr) and the Original Edge Map (εo). Here, canny edge detection is used for finding the edge map.

$$ \varepsilon a=\frac{\sum_{x=1}^M{\sum}_{y=1}^N\ \left[\ \left({T}_{\varepsilon}\right)+\left({T}_{n\varepsilon}\right)\right]}{M\ast N} and\ \varepsilon p=\frac{\sum_{x=1}^M{\sum}_{y=1}^N\ \left[\ \left({T}_{\varepsilon}\right)\right]}{\sum_{x=1}^M{\sum}_{y=1}^N\ \left[\ \left({T}_{\varepsilon}\right)+\left({F}_{\varepsilon}\right)\right]} $$
(25)

Where, True Edge (Tε), True Non_Edge (T) and Flase Edge Points (Fε) are given by,

4.2 Synthetic dataset

Likewise, other algorithms [1,2,3, 16, 21, 22, 27, 28, 35,36,37,38,39] in the literature, 10 nos. of standard noise-free natural images (Child, Woman, Lake, Lena, Cameraman, Barbara, Boats, House, Mandrill, Pepper, etc.) of size 256 ∗ 256, instigated by different periodic/quasi-periodic synthetic sinusoidal noisy patterns are experimentally analysed in our article. Amongst them, Lena, Woman, Pepper, and Barbara are presented here. In Table 1, low and high-frequency periodic noise structures with Noise Strength (A) are considered as the noise source as in Eq. (26a) and (26b):

$$ {N}_L\left(x,y\right)={A}^{\ast }\ \left[\mathit{\sin}\left(\frac{x}{3}+\frac{y}{5}\right)\right] $$
(26a)
$$ {N}_H\left(x,y\right)={A}^{\ast }\ \left[\mathit{\sin}\left(x+y\right)\right] $$
(26b)
Table 1 Performance comparisons amongst different restoration filtering algorithms for a standard noise-free image Woman, impaired by single-frequency periodic noise patterns in terms of PSNR, SSIM, εa and TC

Table 1 explicitly exemplifies that our proposed Gabor-based ANRF algorithm outperforms all other existing algorithms for a sample image Woman of size (256 ∗ 256) with proficient TC for impulsive-diagonal, NL and NH periodic noise patterns in terms of PSNR, SSIM and εa in a fully adaptive way.

The suppression of multi-frequency periodic noises from images, generated by sinusoidal functions is a challenging problem in comparison to any single-frequency periodic noise pattern where usually almost all compared restoration algorithms can perform well. Therefore, in this article, five artificially generated multi-frequency periodic/quasi-periodic noise models (N1, N2, N3, N4, N5) are considered for testing the restoration capability of different algorithms.

$$ {N}_1\left(x,y\right)=A\ast \left[\mathit{\sin}\left(2x+2y\right)+\mathit{\sin}\left(0.5x+0.5y\right)+\mathit{\sin}(3x)+\mathit{\sin}(4y)\right] $$
(27a)
$$ {N}_2\left(x,y\right)=A\ast \left[3.25\ \mathit{\sin}(x)+8.65\ \mathit{\sin}(y)\right] $$
(27b)
$$ {N}_3\left(x,y\right)=A\ast \left[\mathit{\sin}(8y)+\mathit{\sin}(8x)+\mathit{\sin}\left(5.25x+5.25y\right)+\mathit{\sin}\left(x+5.25y\right)\right] $$
(27c)
$$ {N}_4\left(x,y\right)=A\ast \left[\mathit{\sin}\left(0.5x-0.5y\right)+\mathit{\sin}\left(1.5x-1.5y\right)+\mathit{\sin}\left(2.5x-2.5y\right)\right] $$
(27d)
$$ {N}_5\left(x,y\right)=A\ast \left[\mathit{\sin}\left(1.1x+1.1y\right)+\mathit{\sin}(1.5x)+\mathit{\sin}(1.5y)+\mathit{\sin}\left(1.1x-1.1y\right)\right] $$
(27e)

Tables 2 and 3 and Fig. 3 clearly illustrate that our proposed Gabor-based ANRF algorithm is always able to attain higher performances both quantitative and qualitatively than other competing algorithms while restoring digital images for various synthetically generated quasi-periodic noise structures with considerable TC.

Table 2 Performance comparison amongst different restoration filtering algorithms in terms of PSNR, SSIM, εp and TC (in sec) for a standard noise-free image Pepper, impaired by various quasi-periodic noise patterns
Table 3 Performance comparison amongst different restoration filtering algorithms in terms of PSNR, SSIM, εp and TC (in sec) for a sample image Barbara, impaired by various quasi-periodic noise patterns
Fig. 3
figure 3

a Standard noise-free image Barbara, contaminated by combined noise N1 + N2 + N3with A = 0.7; de-noised images with b WGNF; c AGNF; d Sur, Grediac; e A-contrario; f WASMF; g ATFF; h ANRF

In Fig. 4a, it is graphically depicted that our proposed Gabor-based ANRF algorithm outshines all other existing algorithms for 16 numbers of synthetically corrupted images in terms of SSIM. For our algorithm, SSIM always approaches towards unity. From Fig. 4b, it is clear that the performance of our proposed algorithm is the best among other existing algorithms in terms of PSNR for a sample image Pepper with varying noise amplitudes (A = 0.1 to 1).

Fig. 4
figure 4

Performance comparisons of 16 different images, contaminated by N4 with A = 0.9 w. r. t. a SSIM; Plot of b PSNR versus varying noise amplitudes (A) for N2 as in Eq. (27b)

4.3 Non-synthetic dataset in real-time imaging applications

A series of non-synthetic dataset from a wide range of realistic scenarios are now presented as an example to demonstrate the restoration capability of our proposed approach. As the original image is not within the reach, the quantitative performance evaluation cannot be computed for non-synthetic dataset. 25 numbers of non-synthetically corrupted images from various fields are examined by us as a benchmark. Here, a few of them are presented from Figs. 5, 6 and 7, thereby proving that our algorithm outperforms other most recent state-of-the-art algorithms for a few non-synthetically corrupted images like Man, Television and Clown in realistic situations.

Fig. 5
figure 5

a Non-synthetically corrupted image Man; de-noised images with b WGNF; c GaSF; d AGNF; e A-contrario; f WASMF; g ANRF

Fig. 6
figure 6

a Close-up view of non-synthetically corrupted image Television; de-noised images with b WGNF; c Sur, Grediac; d WASMF; e ATFF; f ANRF

Fig. 7
figure 7

a Non-synthetically corrupted image Clown; de-noised images with b WGNF; c GaSF; d AGNF; e Sur, Grediac; f WASMF; g ANRF

The visual inspection of Figs. 8, 9, 10 and 11 establishes the superiority of our proposed Gabor-based ANRF algorithm as it produces better-restored images in comparison to recent similar kind of algorithms for various non-synthetically corrupted images taken from the astronomical mission (orbiter/landing) image gallery, conducted by American space agency (NASA: National Aeronautics and Space Administration).

Fig. 8
figure 8

a Close-up view of astronomical mission image Lunar Orbiter 2, impaired by non-synthetic periodic noise pattern; de-noised images with b WGNF; c AONF; d Sur, Grediac; e LFDF; f ANRF

Fig. 9
figure 9

a Close-up view of astronomical mission image Vicking Orbiter, impaired by non-synthetic vertical periodic striping noise pattern; de-noised images with b AGNF; c Sur, Grediac; d ASSTV; e WASMF; f ANRF

Fig. 10
figure 10

a Close-up view of astronomical mission image Lunar Orbiter 4, impaired by non-synthetic horizontal striping noise pattern; de-noised images with b VSNR; c AGNF; d ASSTV; e A-Contrario; f ANRF

Fig. 11
figure 11

a Close-up view of non-synthetically corrupted image Apollo, impaired by periodic noise pattern; restored images with b A-contrario; c LFDF; d WASMF; e ATFF; f ANRF

Quasi-periodic structures can also be generated through a certain specific types of reprographic methods such as halftone printing (generates a continuous toned gradient-like imagery through the use of varying dots either in size/in space) and visible raster scan line in Cathode Ray Tube (CRT) monitors. Here, the performance of our Gabor-based ANRF algorithm for a few non-synthetically corrupted images (Figs. 12, 13 and 14), produced by any reprographic technique is evaluated with few other competent algorithms

Fig. 12
figure 12

a Close-up view of naturally corrupted halftone image Lady-Man, de-noised images with b WGNF; c AGNF; d Sur, Grediac; e LFDF; f ANRF

Fig. 13
figure 13

a Close-up view of naturally corrupted halftone image Halftone-eye, de-noised images with b WGNF; c AONF; d Sur, Grediac; e LFDF; f ANRF

Fig. 14
figure 14

a Close-up view of Scanline image, impaired by non-synthetic periodic noise pattern; de-noised images with b AONF; c A-Contrario; d WASMF; e ATFF; f ANRF

.

Applicability of our algorithm is also investigated for removing canvas contamination in digital images of painting artwork (Fig. 15) where periodic plane of the support weave can be regarded as noise.

Fig. 15
figure 15

Non-synthetically corrupted images: close-up view of a Rockwell - Carry On - 002; b Rockwell - Our Heritage - 002; Outputs using our proposed ANRF approach c de-noised Rockwell - Carry On - 002 image; d de-noised Rockwell - Our Heritage - 002 image

Figure 16 depicts the qualitative performance of the restored images using our proposed algorithm for two natural images, corrupted with a special kind of non-synthetic periodic pattern i.e. Moiré in case of realistic circumstances.

Fig. 16
figure 16

Real images, contaminated by non-synthetic moiré pattern: a Moiré 1; b Moiré 2; Outputs using our ANRF algorithm c de-noised image of Moiré 1; d de-noised image of Moiré 2

5 Conclusion

An ingenious spectral domain de-noising algorithm for periodically corrupted images of various real-time imagery systems has been demonstrated in this paper. A few initial steps of our proposed algorithm illustrate the preservation mechanism of the most informative LFR region followed by the contrast enhancement of LFR preserved image spectrum by using Gabor transform to highlight all the noisy regions outstandingly. Then, those noisy regions are properly detected using our proposed adaptive exponential thresholding procedure. After that, those noisy components are filtered out using our proposed adaptive notch-reject filter with an automated control of filtering profile in accordance with the radial span of different kinds of noise spectrum profiles. Experimental results for both synthetic and non-synthetically corrupted images proved that our proposed Gabor-based ANRF algorithm outperforms other popular exiting algorithms both qualitatively and quantitatively. The time consumption of our algorithm is also found to be effective while comparing with the literature.