- Original Article
- Open Access
- Published:

# Intensity-curvature functional based digital high pass filter of the bivariate cubic B-spline model polynomial function

*Visual Computing for Industry, Biomedicine, and Art*
**volume 2**, Article number: 9 (2019)

## Abstract

This research addresses the design of intensity-curvature functional (ICF) based digital high pass filter (HPF). ICF is calculated from bivariate cubic B-spline model polynomial function and is called ICF-based HPF. In order to calculate ICF, the model function needs to be second order differentiable and to have non-null classic-curvature calculated at the origin (0, 0) of the pixel coordinate system. The theoretical basis of this research is called intensity-curvature concept. The concept envisions to replace signal intensity with the product between signal intensity and sum of second order partial derivatives of the model function. Extrapolation of the concept in two-dimensions (2D) makes it possible to calculate the ICF of an image. Theoretical treatise is presented to demonstrate the hypothesis that ICF is HPF signal. Empirical evidence then validates the assumption and also extends the comparison between ICF-based HPF and ten different HPFs among which is traditional HPF and particle swarm optimization (PSO) based HPF. Through comparison of image space and k-space magnitude, results indicate that HPFs behave differently. Traditional HPF filtering and ICF-based filtering are superior to PSO-based filtering. Images filtered with traditional HPF are sharper than images filtered with ICF-based filter. The contribution of this research can be summarized as follows: (1) Math description of the constraints that ICF need to obey to in order to function as HPF; (2) Math of ICF-based HPF of bivariate cubic B-spline; (3) Image space comparisons between HPFs; (4) K-space magnitude comparisons between HPFs. This research provides confirmation on the math procedure to use in order to design 2D HPF from a model bivariate polynomial function.

## Introduction

Recently, we reported a methodology to design digital HPFs from three model polynomial functions. This methodology benefits from the intensity-curvature concept and is based on the calculation of the intensity-curvature functional (ICF). The ICF replaces the image intensity value with the product of the image intensity and the sum of second-order partial derivatives of the model function fitted at each pixel. We propose the ICF of the bivariate cubic B-spline model function as a HPF to extend the earlier study [1], and to reinforce the use of the intensity-curvature concept for calculating the polynomial HPF from a model polynomial function which, in the present study, is the bivariate cubic B-spline. The originality of this study is thus to hypothesize that the ICF of an image is its HPF, and to describe a mathematical model which corroborates, both theoretically and empirically, that the ICF is indeed a HPF. From the aforementioned mathematical model, it is possible to derive the equations for the input and output functions of the filter. The novel ICF-based filter is compared with the traditional HPF and the PSO-based HPF. A comparison of the image space and the k-space magnitudes indicates that the three filters behave differently. Although the data provided in this study does not allow generalization, traditional HPF filtering and ICF-based filtering are find to be superior to PSO-based filtering. Further, the images filtered with the traditional HPF are sharper than that with the ICF-based filter. The novel contributions of this study can be summarized as follows: (1) Reasoning to elucidate the mathematical conditions that the ICF needs to obey, in order to behave as a HPF; (2) Mathematical description of ICF-based HPF of the bivariate cubic B-spline; (3) Comparison between the image spaces of the three HPFs; (4) Comparison between the k-space magnitudes of the three HPFs.

This section comprises a literature review on HPF and the ICF. The originality of the approach is then discussed in terms of the implications of the mathematical model.

### Literature on ICF

HPFs are electronic devices which allow signals with a frequency higher than a particular cutoff frequency, while removing other signals with a frequency lower than the cutoff frequency. The degree of attenuation for each frequency depends on the filter design [2]. The design of digital filter algorithms can be classified into two main categories: finite impulse response (FIR) and infinite impulse response (IIR). The FIR filter design is characterized by the product of the ideal impulse response with a window function (Butterworth, Chebyshev, Kaiser, and Hamming among others) or a gradient-based optimization method [3,4,5]. In contrast, the IIR filter design is characterized by a non-zero impulse response function of an infinite time duration [3]. The FIR filters can be optimally designed by a careful selection of coefficients for the frequency response, which can be written as a trigonometric function of the frequency [6, 7]. The state-of-the-art design of optimization techniques for implementing FIR digital filters includes the evolutionary and swarm optimization approaches, such as the PSO algorithm [5, 8]. ICF-based digital HPFs have been recently realized [1], where they were tested and characterized using two-dimensional images, and were observed to be belonging to the category of HPFs based on the polynomial functions [9]. The ICF is a property of the model polynomial function which is fitted to the image data on a pixel-by-pixel basis. The essence idea of ICF is to replace the image intensity with the product of the image intensity and the sum of second-order partial derivatives of the model polynomial function fitted at each pixel. Since this concept is enforced on a pixel-by-pixel basis, the ICF is an image. The original hypothesis of the above study was that the ICF is a HPF. The rationale of the present study is to revisit the aforementioned hypothesis using a new model polynomial function and to validate it through the methodological approach used earlier [1]. The visual appearance of the ICF, which is a high pass (HP) filtered signal, was first observed while investigating the ICF of the bivariate linear model function. Since then, this investigation has been extended to other model polynomial functions such as bivariate cubic and Lagrange polynomials [1]. In this study, we extend the methodological approach used for the design of a digital HPF to the bivariate cubic B-spline model function. As will be discussed in section 2, the ICF and pixel intensity are set as the output and input functions of the filter, respectively. To evaluate the novel ICF-based HPF, its k-space is compared with that of the traditional HPF and the PSO-based HPF.

### Novelty of the approach used to design the digital HPF

The main issue addressed in this study is the calculation of the digital HPF from a model polynomial function. This section presents the contribution of our approach for solving it. Customarily, HPF is mathematically defined in terms of image gradients. However, fitting a model polynomial function to an image on a pixel-by-pixel basis is not sufficient because of the prevalence of the numerical value of the image intensity over the numerical value of the gradients. Therefore, the design of the HPF is envisioned here as a resampling problem that entails: (1) modeling the image intensity with a measure that embeds both image intensity and gradients and (2) allowing numerical predominance of image intensity or gradients. To this end, the first task is to devise the measure. This measure is a ratio of two conditions, non-resampling and re-sampling, and is known as the ICF [1]. As discussed in the next section, the ICF is a valid measure because it incorporates image intensity and gradients in the same function due to which it can determine the prevalence of the gradients on the image intensity under some conditions. The academic nature of this work necessitates development of a theoretical background necessary to support the empirical evidence. Therefore, the development of a theoretical framework is the second main task of the proposed approach. The fact that ICF is a HPF [1] can be demonstrated if ICF satisfies the following two constraints: (1) the output term of the transfer function (TF) of the filter is the ICF [see eq. (12)] and (2) both the input and output functions of the filter can be designed from the mathematical expression of the ICF [see eqs. (15) and (16)]. In the next section, it is proved that the model polynomial function considered here satisfies the above constraints. Both of the aforementioned constraints are consequential to the definition of the TF of the HPF. Though the theoretical framework employed in this study was used earlier [1], the unique model polynomial function (the bivariate cubic B-spline) considered here can be used to design a novel HPF. Another novel contribution of this study is the table of the comparison between the numerical value of the gradients and the numerical value of the image intensity (Table 1).

## Theory

### ICF of bivariate cubic B-spline model function

Let us consider the bivariate cubic B-spline model function as defined in eq. (1). This function benefits from 1. *The property of second-order differentiability in its domain of definition (the pixel)* and 2. *The non-null classic-curvature of the model function calculated at the origin (0, 0) of the pixel coordinate system* [10]. It uses the pixel intensity value f(0, 0) and eight neighboring pixel intensity values: f (1/2, 1/2), f (− 1/2, − 1/2), f (2/3, 2/3), f (− 2/3, − 2/3), f (− 1, − 1), f (1, 1), f (3/2, 3/2) and f (− 3/2, − 3/2).

where:

The first order partial derivatives of h_{4}(x) with respect to the x and y variables are given in eq. (4):

The second order partial derivatives of h_{4}(x) are given in eq. (5):

Let the intensity-curvature term before interpolation be defined as:

From eq. (5), it follows that:

Therefore:

Let the intensity-curvature term after interpolation be defined as:

From eq. (5) it follows that:

The ICF of h_{4}(x, y) is defined as:

### Input function x[n] and output function y[n] of ICF-based HPF

The TF(x, y) of the ICF-based HPF calculated from the bivariate cubic B-spline is given in eq. (12):

It implies that:

Therefore the input function x[n] and the output function y[n] of the ICF-based HPF are:

The procedure outlined in eqs. (12) through (16) is described in Fig. 1, where:

### Characterization of ICF of bivariate cubic B-spline model polynomial function (H42D)

The behavior of the ICF is highly dependent on the predominance of gradients on the pixel intensity values. Thus, an immediate comparison between the ICF and the image gradients along the X and Y directions indicates that the similarities between the ICF and the HPF may be attributed to the finite differences (gradients) that appear in the formulae of ICF and HPF [11]. However, further investigations show that there exists a case where the two intensity curvature terms (ICTs) appear similar to the departing image (Fig. 2). This happens when the image intensity f(0, 0) prevails (both in the numerator and denominator) over the gradient-like components in the ICF formula.

In order to characterize the ICF as a HPF, mathematical formalism is needed so to categorize the ICF as the output function of the equation that defines the transfer function TF of the filter. This mathematical formalism needs to break the ICF formula in components and to analyze each component separately. The mathematical form of the ICF of the bivariate cubic B-spline model polynomial function (H42D) is:

In general, as can be deduced from the ratio of eqs. (8) and (10), the ICF can be reduced to the following representation:

where it is posited that:

The gradient-like appearance of the ICF is thus determined by the numerical prevalence of the terms that are function of the convolutions (ζ (α_{2}, α_{3}), γ (α_{2}, α_{3}) and λ (α_{2}, α_{3})). Otherwise, when f(0, 0) prevails, the ICF appears similar to a magnetic resonance image (MRI).

In eq. (31), we assume that ζ (α_{2}, α_{3}) < < f(0, 0) and γ (α_{2}, α_{3}) < < f(0, 0) and λ (α_{2}, α_{3}) < < f(0, 0). In this case, the prevalent term in the numerator and denominator is the image intensity f(0, 0) (this case is illustrated in Fig. 2). On the contrary, if we assume that ζ (α_{2}, α_{3}) > > f(0, 0) and γ (α_{2}, α_{3}) > > f(0, 0) and λ (α_{2}, α_{3}) > > f(0, 0), the prevalent terms are ζ (α_{2}, α_{3}) and γ (α_{2}, α_{3}) and the ICF image appears as a HPF. Table 1 indicates that all the remaining cases can be reduced to either of the two listed above.

To summarize, when f(0, 0) is the prevailing term, the ICF reflects the predominant influence of the pixel intensity value f(0, 0). On the contrary, when α_{2} and α_{3} are both larger than f(0, 0), the ICF behaves as a HPF because of the gradient-like components α_{2} and α_{3}.

In essence, the characterization of the ICF as a HPF acknowledges that when the convolutions of pixel intensity values in the defining equation of the ICF are tuned as the finite differences operating as gradients, they (the convolutions) create the HP filtering effect. This happens under the condition that the convolutions are prevalent on the image intensity value. To break the ICF formula into components (as illustrated in eq. (31)) and to build the table, may be extended to other model polynomial functions in order to investigate the effect of gradient-like components and image intensity on the appearance of the ICF image.

### Ethics approval and consent

The MRI scans were conducted with the sole purpose of this study and not for clinical purpose. The study participants were anonymized. Informed consent to participate in the study was obtained from the participants, and this consent allows to publish the MRI images while protecting the privacy of the participants.

## Results

### Comparison between ICF and traditional HP filtering and PSO filtering approaches

The data set consisted of ten theoretical images and two MRIs. This section illustrates, for the selected cases, the results of filtering with the ICF, the traditional HPF, and the PSO. For the remaining cases, the three filters performed in a similar manner. For each of the three filters, the TF and the k-space magnitude of the filtered images is shown in Figs. 3, 4 and 5, respectively. Moreover, to reinforce the difference between the three filters, we show the k-space magnitude images of the filtered images, the difference calculated between the filtered images, and the difference calculated between the k-space images.

It is noteworthy from Figs. 3 and 4 that the ICF images are well behaved, however, the HPF images are sharper than the ICF images. The difference between the HPF and ICF images is of particular significance, and it is remarkably visible in the k-space magnitude [compare Figs. 3(d), (d1), (d2) with Figs. 4(c), (c1), (c2), respectively].

The images presented in Figs. 3, 4, and 5 show the superiority of the traditional HPF and the ICF-based filter over the PSO-based filter, and this is noticeable if we compare the filtered images in Fig. 4(a), (a1), and (a2) with that in Figs. 5(a), (a1), and (a2), respectively. There exist similarities between the k-space magnitude of the HPF filtered images and that of the PSO filtered images (compare Fig. 4(c), (c1), and (c2) with Fig. 5(c), (c1), and 5(c2), respectively).

The images displayed in Fig. 6 are a clear and straightforward presentation of the existing differences between the filters discussed in this paper. These images show the difference between the image space and k-space.

### Comparison of proposed approach with similar existing methods

Figure 7 shows a comparison across ICF-based HPFs and the traditional HPF. The model functions and the characterization of the B32D ICF-based HPF and the G42D ICF-based HPF are reported elsewhere [1]. Through the comparison of the k-space magnitude of the HP filtered images, Fig. 7 clearly shows that these filters are not similar, and their difference can be attributed to the mathematical form of the departing polynomial from which the ICF is obtained.

Figures 7, 8, and 9 show a comparative study between imaging modalities involving the ICF of several model functions as k-space filters. The MRIs are compared with ICFs, and the ICFs are used as k-space filters through the signal processing technique, known as the inverse Fourier transformation [12]. Figure 8 provides two important aspects of this study. The first aspect is the reproducibility of the HPF behavior of the ICF for six model polynomial functions (including the bivariate cubic B-spline which is the model used in this paper). The other aspect is to verify that the inverse Fourier transformation technique facilitates MRI signal reconstruction. The signal reconstruction highlights the vessels of the human brain. Figure 8 also presents the comparison of ICFs with traditional HPF and PSO-based HPF. Figure 9 shows the difference between the k-space of each imaging modality. Through the histogram plots of the k-space images, Fig. 10 provides a quantitative outlook of the difference between the filtering techniques.

Figures 8 and 9 show the filtered signals and their k-space magnitudes, respectively. Figure 10 shows the results of statistical analysis performed on the filtered images [see (a)] and the k-space magnitude images [see (b)]. The histogram was calculated for each image, and the corresponding value of the mean and standard deviation were also computed. The plots in Fig. 10 show cumulative lines. Each line represents an image and connects the value f(x, μ, σ) of the normal distribution obtained from each of the ‘x’ histogram values. For instance, the histogram value ‘x’ provides the value f(x, μ, σ), which is the integral of the normal distribution from -∞ to ‘x’, expressed as \( \mathrm{f}\left(\mathrm{x},\upmu, \sigma \right)=\left(\frac{1}{\sqrt{2\uppi \sigma }}\right){e}^{-\left[{\left(\mathrm{x}-\upmu \right)}^2/\left(2{\upsigma}^2\right)\right]} \). The graphs shown in Figs. 10(a) and (b) are thus cumulative normal distribution values. The plots of f(x, μ, σ) confirm that the filtered signals (Fig. 8) are Gaussian distributed, whereas the k-space signals (Fig. 9) are not.

Figure 11 shows the comparison between HP filtered signals with the aim of validating PSO-based filtering technique. Indeed, the visual appearance of the PSO-based filtered image is quite similar to the classic filtered signals obtained with Bessel, Butterworth and Chebyshev HPFs. This paper offers a comparison between PSO filtering and ten different HPF methods: traditional HPF, B32D, G42D, H32D, H42D (bivariate cubic B-Spline), LGR2D, SRE2D, Bessel, Butterworth, and Chebyshev HPFs.

## Discussion

### Applications of digital filters literature

The literature on digital filters is extensive. This section provides a compendium of studies corresponding to two most important themes. One theme is related to the effort of the scientific community towards the design of digital filters, with an emphasis on the hardware implementation. The other theme reports on the application of digital filters in academic research and industry settings. Table 2 provides a list of authors who have contributed to this topic. Study of electroencephalography (EEG) traces was motivated by the identification of interictal high frequency oscillations (HFOs). This research raised a methodological issue which comes into play when HFOs are filtered because they embed sharp transient frequency components, which result in the so-called confounding false ripples of EEG signal [13] while being filtered. Thus, the identification and quantification of false ripples was pivotal for the correct analysis of broadband activity of various frequency bands. It is also important to determine a strategy that can be used to reduce the influence of the false ripples on the analysis of the EEG signals. Therefore, this study demonstrated that the false ripple occurs during band-pass filtering of the EEG signal, and the false ripple consists of a signal whose frequency is close to the impulse response of the filter, and which appears as a transient signal similar to a short duration oscillation [13]. Another report on application of digital filters in human technology [14] demonstrated the benefits of filtering out the raw surface empirical mode decomposition (sEMD) signal while estimating the muscle forces in the human body. This study found a novel use of the HPFs that can remove up to 90% - 99% of the sEMD signal power, and this can improve the force estimates of the specific muscles in the body. Another technological application of high-pass electrical mobility filter (HP-EMF) [15], which is related to the size of nanoparticles in the gaseous media, was also reported. The HP-EMFs have shown a potential to serve as a viable technology for diverse applications ranging from the synthesis of nanomaterials to monitoring atmospheric nanoparticles. An industrial application of HPFs, i.e., a methodology for the production of metamaterials, was reported in ref. [16]. The metamaterial explored in this study consisted of engineered subwavelength microstructures, and it exhibited ‘plasmonic’ response to the electromagnetic waves in the terahertz (THz) range. This property caused the metamaterial to behave as a HPF. The purpose of the study was to demonstrate the efficiency of the THz plasmonic HPF which consists of high-aspect-ratio micron-sized wire arrays that are fabricated by micro-stereo-lithography. This study provided a method to tune the plasma frequency by adjusting the geometric parameters of the metamaterial [16]. In the context of infrared focal-plane array (IRFPA) technology, the significance of the research reported in ref. [17] was to explore the analysis of temporal HPFs. A new non-uniformity correction method called bilateral filter based temporal high-pass filter (BFTH) was proposed. The main properties of the HPF developed in this study were convergence speed and ghosting artifacts. Through comparison between algorithmic performances, the study demonstrated that the BFTH has the fastest speed of convergence and the most stable error. A study aimed towards designing and implementing computationally efficient two-dimensional FIR digital filters was reported in ref. [18]. The design procedure was based on frequency domain analysis because the Fourier domain favors the analysis of the interpolated impulse response. This study demonstrated that, as compared to an equivalent conventional FIR filter, interpolated finite impulse response (IFIR) filters require only 1/L_{th} of the adders and multipliers, while offering 1/L_{th} noise level and 1/√L_{th} coefficient sensitivity. The IFIR filter comprised of two components (called FIR sections): one generated the sparse set of impulse response values, and the other executed interpolation. The eigenfilter approach was discussed in ref. [19] as a new method for designing linear-phase FIR filters. This method minimized the quadratic cost function of the error (defined in the passband and stopband of the filter) by calculating the difference between the actual amplitude response and the desired response of the filter. It was possible to obtain the equation defining a linear system from the defining equation of the cost function. The eigenvectors, which are the parameters of the filter, could then be calculated from the definite matrix defining the linear system.

A recent review paper [7] presented an overview of methodological approaches for designing hardware efficient finite duration impulse response (FIR) filters. A design method for FIR digital filters, which has gained considerable attention recently, is the multiplier-less filter. This filter is hardware efficient, and is designed with the optimization (minimization) of the multiplier-less operations. It was reported that the hardware efficiency of the multiplier-less filters could be achieved on the basis of various indices which indicate the number of hardware components, such as power-of-two-terms, number of adders, number of multiplier and structural adders, number of flip-flops, and zero-valued filter coefficients [7]. The theoretical and the implementation aspects of FIR and IIR variable digital filters (VDFs) was reported in ref. [20]. These filters exhibited frequency characteristics which could be controlled continuously by tuning some parameters such as the poles and the zeros of the digital filter. Two main highlights of this work were as follows: (1) Computational simplicity of the filter design which only required the calculation of the singular value decomposition of a Hankel matrix. (2) Through the aforementioned calculation, the IIR based VDF was guaranteed to be stable and the frequency response was conserved. The algorithm reported in ref. [21] focused on the design of FIR filters with powers-of-two coefficients (the 2PFIR filter). The algorithm comprised of two methods. The first method maintained the existing relationships between the coefficients of the conventional FIR and the 2PFIR filters. This method was called proportional relation-preserve (PRP) method. The second method consisted of an application of the simple symmetric-sharpening (SSS) approach. The SSS method used the PRP method as sub-filter and preserved the transition width. Further, it improved the approximation error of the PRP method. Using the PRP and SSS methods, the feasibility of designing a 2PFIR filter of length (N) greater than 200 was demonstrated.

The research work reported in ref. [5] focused on a linear phase infinite-impulse response filter, which was designed through the nature inspired population-based global optimization algorithm known as Cuckoo Search (CS) [22]. The main aspect of the study was that the controlling parameter, which quantitatively determined the ripple (and thus the amount of energy) in the desired frequency bands (both stop and pass), was experimentally set in such a way that the best performance of the filter could be obtained. The current relevance of the study can be attributed to the fact that it presented a comparative evaluation of three nature inspired optimization methods for FIR filter design, which are (1) the Cuckoo search (CS) [22], (2) the PSO [23], and (3) the artificial bee colony (ABC) [24].

### Recent literature

Recent efforts in designing a digital FIR filter can be classified into two groups. The first one utilizes L_{1}-norm based optimization techniques for designing the filter, and the second uses evolutionary approaches which mimic the organizational behavior of living beings, such as the well-known PSO algorithm. The essence of the L_{1}-norm based digital filter design is the formulation of the cost function, the determination of a suitable algorithm for its minimization, and the acquisition of the filter equation coefficients [25]. A recent research [26] uses genetic algorithms to solve the optimization problem of the L_{1}-norm based filter design, and compares the filter with a wide array of competing techniques such as the PSO [3, 4, 8] and conventional methods such as the least-squares approach [27], the Kaiser window method [28], and the Parks McClellan algorithm [29].

One of the most compelling and state-of-the-art techniques in current digital filter design is the PSO approach. This method is essentially an optimization algorithm, and therefore it suffers from the drawback of obtaining the most suitable cost function, the most suitable parameters to optimize, and the most suitable optimization rule. As with every adaptive search, the performance of this optimization algorithm is also affected by the initially chosen parameter values, and can be stuck in a local minimum of the cost function (in such a case, the optimization does not progress). Various solutions have been proposed in the literature to promote PSO approach as the state-of-the-art technique [30,31,32,33], and these have inspired our implementation of the PSO as a simple, quick, and effective approach. Our approach depends on: (1) a least square function as the cost function of the algorithm, (2) the delta rule as the optimization algorithm and (3) cardinal parameters that were chosen on the basis of experience (particle’s position, particle’s best position, swarm’s best known position and particle’s velocity, as explained in Wikipedia).

In our implementation of the PSO approach, the HPF equation is developed to mimic the calculation of the particle’s velocity, which is consistent with the approach used in ref. [34]. At each iteration of the optimization algorithm, the particle’s position is updated with the sum of its current value and the value of the particle’s velocity. The initialization of the PSO optimization algorithm provides the starting values of the cardinal parameters mentioned earlier [35]. The initialization heuristics set the starting values as random numbers, whose sum is the value of the image intensity. One limitation of our implementation is premature convergence [36]. We have chosen to implement the algorithm reported in Wikipedia due to its inter-application robustness [37]. This means that the algorithm is suitable to be re-engineered with little modification so that it can be applied for optimization problems other than the calculation of HP filtered signal. The flow chart of the procedure is given in Fig. 12. Figure 13 shows the results of the optimization process for one case study.

The difference between the present and the earlier [1] study is that the ICF-based HPF is designed from the bivariate cubic B-spline here, whereas in ref. [1], the filters were designed from other model polynomial functions. Further, the evaluation method implemented is different, as the ICF-based HPF reported here is compared to the PSO-based HPF. Moreover, we have compared the k-space of three HPFs (ICF-based, traditional HPF, and PSO-based) to ascertain that the filtered images are significantly different.

### Contribution

Since its inception, the ICF has been used to study human brain tumors which are imaged with MRI [38] and human brain vasculature which is also imaged with MRI [39], and to mathematically characterize the input and output functions of the ICF-based filters using three different model polynomial functions [1]. The appearance of the ICF image as HPF signal demands an explanation. To this end, the main contribution of this study is the mathematical characterization of the ICF as an alternative HPF.

Moreover, this study provides two essential results. The first one is the reasoning that yields the understanding of the ICF formula. It is observed that the ICF embodies two main components: the image intensity and the gradients. The ICF can thus behave according to the prevalence of one component over the other. The prevalence is obtained when: (1) the numerical value of the image intensity is larger than that of the gradients and in such a case the ICF appears as a departing image; or (2) vice-versa and in such case the ICF appears as HP filtered signal.

The second contribution is the comparison of the ICF-based filter with the traditional HPF and the PSO-based HPF. The comparison is carried out in both image space and k-space, and it indicates that the three filters behave differently. Although data provided in this paper does not allow generalization, traditional HPF filtering and ICF-based filtering are found to be superior to PSO-based filtering. Further, the images filtered with the traditional HPF are found to be sharper than that with the ICF-based filter.

## Conclusion

In order to provide a mathematical formulation for the characterization of the HPF, the theory section of this paper presents the steps undertaken and the benefits obtained from an earlier research [1]. The first step is to include the ICF into the expression of the TF of the filter as the output function [see ΔE(x, y) in eq. (12)]. The second step consists of including the image pixel intensity as the input function of the TF of the filter [see f(0, 0) in eq. (12)]. The solution of this equation in x[n] (filter input) and y[n] (filter output) is outlined in the mathematical procedure, which starts from eq. (13) and ends at eqs. (15) and (16) for x[n] and y[n], respectively. This mathematical formalism allows the ICF to be classified as a HPF. The validity of the formalism, and thus the practical evidence of the fact that the ICF is an alternative HPF, is shown in Figs. 7 and 8. In conclusion, this paper provides a robust mathematical procedure to design a 2D HPF from a model polynomial function.

## Availability of data and materials

The datasets used and analyzed during the current study are available from the corresponding author on reasonable request.

## References

- 1.
Ciulla C, Rechkoska Shikoska U, Veljanovski D, Risteski FA (2018) Intensity-curvature functional-based digital high-pass filters. Int J Imaging Syst Technol 28(1):54–63. https://doi.org/10.1002/ima.22256

- 2.
Saramäki T (1993) Finite impulse response filter design. In: Mitra SK Kaiser JF (ed) handbook for digital signal processing, New York

- 3.
Mondal S, Vasundhara RK, Mandal D, Ghoshal SP (2011) Linear phase high pass FIR filter design using improved particle swarm optimization. WASET, 2011, 60: 1621–1627

- 4.
Mandal S, Ghoshal SP, Kar R, Mandal D (2012) Design of optimal linear phase FIR high pass filter using craziness based particle swarm optimization technique. Journal of King Saud University - Computer and Information Sciences 24(1):83–92. https://doi.org/10.1016/j.jksuci.2011.10.007

- 5.
Sharma I, Kuldeep B, Kumar A, Singh VK (2016) Performance of swarm based optimization techniques for designing digital FIR filter: a comparative study. JESTECH 19(3):1564–1572. https://doi.org/10.1016/j.jestch.2016.05.013

- 6.
Lim YC, Parker SR, Constantinides AG (1982) Finite word length FIR filter design using integer programming over a discrete coefficient space. IEEE Trans Acoust Speech Signal Process 30(4):661–664. https://doi.org/10.1109/TASSP.1982.1163925

- 7.
Chandra A, Chattopadhyay S (2016) Design of hardware efficient FIR filter: a review of the state-of-the-art approaches. JESTECH 19(1):212–226. https://doi.org/10.1016/j.jestch.2015.06.006

- 8.
Eberhart R, Kennedy J (1995) A new optimizer using particle swarm theory. In: the sixth international symposium on micro machine and human science. IEEE, Nagoya, 4-6 October 1995.

- 9.
Jing ZQ (1987) A new method for digital all-pass filter design. IEEE Trans Acoust Speech Signal Process 35(11):1557–1564. https://doi.org/10.1109/TASSP.1987.1165067

- 10.
Ciulla C, Risteski FA, Veljanovski D, Rechkoska US, Adomako E, Yahaya F (2015) A compilation on the contribution of the classic-curvature and the intensity-curvature functional to the study of healthy and pathological MRI of the human brain. IJAPR 2(3): 213–234. DOI: https://doi.org/10.1504/IJAPR.2015.073852

- 11.
Ciulla C, Rechkoska US, Risteski FA, Veljanovski D (2018) The use of the intensity-curvature functional as k-space filter: Applications in magnetic resonance imaging of the human brain. In: The 1st international conference of applied computer technologies, University of Information Science and Technology “St. Paul the Apostle”, Ohrid, 21–23 June 2018.

- 12.
Ciulla C (2019) Intensity-curvature functional-based filtering in image space and k-space: applications in magnetic resonance imaging of the human brain. High Frequency 2(1):48–60. https://doi.org/10.1002/hf2.10031

- 13.
Bénar CG, Chauvière L, Bartolomei F, Wendling F (2010) Pitfalls of high-pass filtering for detecting epileptic oscillations: a technical note on "false" ripples. Clin Neurophysiol 121(3):301–310. https://doi.org/10.1016/j.clinph.2009.10.019

- 14.
Potvin JR, Brown SHM (2004) Less is more: high pass filtering, to remove up to 99% of the surface EMG signal power, improves EMG-based biceps brachii muscle force estimates. J Electromyogr Kines 14(3):389–399. https://doi.org/10.1016/j.jelekin.2003.10.005

- 15.
Surawski NC, Bezantakos S, Barmpounis K, Dallaston MC, Schmidt-Ott A, Biskos G (2017) A tunable high-pass filter for simple and inexpensive size-segregation of sub-10-nm nanoparticles. Sci Rep 7:45678. https://doi.org/10.1038/srep45678

- 16.
Wu DM, Fang N, Sun C, Zhang X, Padilla WJ, Basov DN et al (2003) Terahertz plasmonic high pass filter. Appl Phys Lett 83(1):201–203. https://doi.org/10.1063/1.1591083

- 17.
Zuo C, Chen Q, Gu G, Qian WX (2011) New temporal high-pass filter nonuniformity correction based on bilateral filter. Opt Rev 18(2):197–202. https://doi.org/10.1007/s10043-011-0042-y

- 18.
Neuvo Y, Dong CY, Mitra SK (1984) Interpolated finite impulse response filters. IEEE Trans Acoust , Speech, Signal Process 32(3):563–570. https://doi.org/10.1109/TASSP.1984.1164348

- 19.
Vaidyanathan P, Nguyen T (1987) Eigenfilters: a new approach to least-squares FIR filter design and applications including Nyquist filters. IEEE Trans Circuits Syst 34(1):11–23. https://doi.org/10.1109/TCS.1987.1086033

- 20.
Pun CKS, Chan SC, Yeung KS, Ho KL (2002) On the design and implementation of FIR and IIR digital filters with variable frequency characteristics. IEEE Trans Circuits Syst II 49(11):689–703. https://doi.org/10.1109/TCSII.2002.807574

- 21.
Zhao Q, Tadokoro Y (1988) A simple design of FIR filters with powers-of-two coefficients. IEEE Trans Circuits Syst 35(5):566–570. https://doi.org/10.1109/31.1785

- 22.
Yang XS, Deb S (2010) Engineering optimisation by cuckoo search. Int J Math Mod Numer Optim 1(4):330–343. https://doi.org/10.1504/IJMMNO.2010.035430

- 23.
Ababneh JI, Bataineh MH (2008) Linear phase FIR filter design using particle swarm optimization and genetic algorithms. Digital Signal Processing 18(4):657–668. https://doi.org/10.1016/j.dsp.2007.05.011

- 24.
Vural RA, Yildirim T, Kadioglu T, Basargan A (2012) Performance evaluation of evolutionary algorithms for optimal filter design. IEEE Trans Evol Computat 16(1):135–147. https://doi.org/10.1109/TEVC.2011.2112664

- 25.
Aggarwal A, Rawat TK, Kumar M, Upadhyay DK (2015) Optimal design of FIR high pass filter based on L1 error approximation using real coded genetic algorithm. JESTECH 18(4):594–602. https://doi.org/10.1016/j.jestch.2015.04.004

- 26.
Aggarwal A, Rawat TK, Kumar M, Upadhyay DK (2018) Design of optimal band-stop FIR filter usingL1-norm based RCGA. Ain Shams Engineering Journal 9(2):277–289.

- 27.
Yu WS, Fong IK, Chang KC (1992) An L1 approximation based method for synthesizing FIR filters. IEEE Trans Circuits Syst II 39(8):578–581. https://doi.org/10.1109/82.168951

- 28.
Kaiser J, Schafer R (1980) On the use of the I0-sinh window for spectrum analysis. IEEE Trans Acoust Speech Signal Process 28(1):105–107. https://doi.org/10.1109/TASSP.1980.1163349

- 29.
McClellan J, Parks TW, Rabiner LR (1973) A computer program for designing optimum FIR linear phase digital filters. IEEE Trans Audio Electroacoust 21(6):506–526. https://doi.org/10.1109/TAU.1973.1162525

- 30.
Fang W, Sun J, Xu WB (2010) A new mutated quantum-behaved particle swarm optimizer for digital IIR filter design. EURASIP J Adv Signal Process 2009(1):367465. https://doi.org/10.1155/2009/367465

- 31.
Vasundhara, Mandal D, Ghoshal SP, Kar R (2013) Digital FIR filter design using hybrid random particle swarm optimization with differential evolution. Int J Comput Int Sys 6(5):911–927.

- 32.
Chang WD (2015) Phase response design of recursive all-pass digital filters using a modified PSO algorithm. Comput Intel Neurosc 2015:8. https://doi.org/10.1155/2015/638068

- 33.
Hu K, Song A, Xia M, Fan Z, Chen X, Zhang R et al (2015) An image filter based on Shearlet transformation and particle swarm optimization algorithm. Math Probl Eng 2015. https://doi.org/10.1155/2015/414561

- 34.
Chopard B, Tomassini M (2018) Particle swarm optimization. In: an introduction to metaheuristics for optimization. In: Natural computing series. Springer, Cham, pp 97–102. https://doi.org/10.1007/978-3-319-93073-2_6

- 35.
Li X, Ma S (2017) Multiobjective discrete artificial bee colony algorithm for multiobjective permutation flow shop scheduling problem with sequence dependent setup times. IEEE Trans Eng Manag 64(2):149–165. https://doi.org/10.1109/TEM.2016.2645790

- 36.
Li X, Zhang S, Wong K-C (2018) Nature-inspired multiobjective epistasis elucidation from genome-wide association studies. IEEE/ACM Trans Comput Biol and Bioinf, 2018.

- 37.
Wang D, Tan D, Liu L (2018) Particle swarm optimization algorithm: an overview. Soft Comput 22(2):387–408. https://doi.org/10.1007/s00500-016-2474-6

- 38.
Ciulla C, Veljanovski D, Rechkoska Shikoska U, Risteski FA (2015) Intensity-curvature measurement approaches for the diagnosis of magnetic resonance imaging brain tumors. J Adv Res 6(6):1045–1069. https://doi.org/10.1016/j.jare.2015.01.001

- 39.
Ciulla C, Rechkoska Shikoska U, Veljanovski D, Risteski FA (2018) Intensity-curvature highlight of human brain magnetic resonance imaging vasculature. IJMIC 29(3): 233–243. DOI: https://doi.org/10.1504/IJMIC.2018.091242

## Acknowledgements

The authors express sincere gratitude to Dr. Dimitar Veljanovski and Dr. Filip A. Risteski because of the availability of the MR images and also to Professor Ustijana Rechkoska Shikoska for the help provided to coordinate the human resources. Dr. Dimitar Veljanovski and Dr. Filip A. Risteski are affiliated with the Department of Radiology, General Hospital 8-mi Septemvri, Boulevard 8th September, Skopje, 1000, Republic of North Macedonia. Professor Ustijana Rechkoska Shikoska is affiliated with the University of Information Science and Technology (UIST), Partizanska BB, Ohrid, 6000, Republic of North Macedonia. The authors also express gratitude to Benjamin Darkwa Nimo whom, at the time of writing this paper, was a student at UIST and whom contributed to the math reported in the theory section. The authors are grateful to the Editor Dr. Xiuxia Song for the treasured suggestions aimed to improve the presentation style of the manuscript. Many thanks also to the anonymous typesetters. This research was developed across the years 2017 through 2019 when the authors were affiliated with UIST.

## Funding

The authors had no sources of funding for the research reported in this paper.

## Author information

### Affiliations

### Contributions

CC is the provider of the technology (computer programs) used for data collection. GA performed the data collection and analysis as relevant to the data obtained from three of the HPFs compared by this research. Also, GA was helped to write the mathematics of the ICF-based HPF and part of the literature review. CC wrote the paper.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare that they have no competing interests.

## Additional information

### Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

### Cite this article

Ciulla, C., Agyapong, G. Intensity-curvature functional based digital high pass filter of the bivariate cubic B-spline model polynomial function.
*Vis. Comput. Ind. Biomed. Art* **2, **9 (2019). https://doi.org/10.1186/s42492-019-0017-6

Received:

Accepted:

Published:

### Keywords

- Intensity-curvature functional
- High pass filter
- B-spline
- Particle swarm optimization
- K-space