Next Article in Journal
Color Image Complexity versus Over-Segmentation: A Preliminary Study on the Correlation between Complexity Measures and Number of Segments
Previous Article in Journal
Semi-Automatic Tool for Vitiligo Detection and Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A New Pseudo-Spectral Method Using the Discrete Cosine Transform

Information and Communications Engineering, Tokyo Institute of Technology, Tokyo 152-8552, Japan
J. Imaging 2020, 6(4), 15; https://doi.org/10.3390/jimaging6040015
Submission received: 9 February 2020 / Revised: 18 March 2020 / Accepted: 24 March 2020 / Published: 28 March 2020

Abstract

:
The pseudo-spectral (PS) method on the basis of the Fourier transform is a numerical method for estimating derivatives. Generally, the discrete Fourier transform (DFT) is used when implementing the PS method. However, when the values on both sides of the sequences differ significantly, oscillatory approximations around both sides appear due to the periodicity resulting from the DFT. To address this problem, we propose a new PS method based on symmetric extension. We mathematically derive the proposed method using the discrete cosine transform (DCT) in the forward transform from the relation between DFT and DCT. DCT allows a sequence to function as a symmetrically extended sequence and estimates derivatives in the transformed domain. The superior performance of the proposed method is demonstrated through image interpolation. Potential applications of the proposed method are numerical simulations using the Fourier based PS method in many fields such as fluid dynamics, meteorology, and geophysics.

1. Introduction

The discrete cosine transform (DCT) and discrete sine transform (DST) have been extensively studied, and they have played a crucial role in science and engineering for decades. For example, DCT is used for standard image and video compression such as JPEG and MPEG. DST is adopted for high efficiency video coding (HEVC). DCT and DST are closely related to the discrete Fourier transform (DFT) [1,2,3]. All the relevant transforms assume the periodicity of sequences. DFT assumes circular periodicity, where the left side of a sequence is placed next to the right side, while DCT and DST assume symmetric circular periodicity, where after a sequence is extended symmetrically, circular periodicity ensues. There are four types of DCT and DST (Types 1, 2, 3, and 4) corresponding to different types of symmetry. As is well known, DCT Type 2 (DCT-2) is employed for JPEG and MPEG, and DCT Type 3 is the inverse transform of DCT-2. Some applications use several types of DCT and DST, while others just use one type [4,5].
Pseudo-spectral (PS) methods originated from [6,7] and have been studied for solutions of partial differential equations [8]. The numerical solution is obtained via a finite set of expansion functions. Generally, for periodic problems, the Fourier series is used as expansion functions, while for non-periodic problems, orthogonal polynomials (e.g., Jacobi polynomials) are used. Legendre and Chebyshev polynomials are special cases of Jacobi polynomials, in which derivatives are obtained at unequally spaced points, such as Legendre–Gauss–Lobatto points and Chebyshev–Gauss–Lobatto points (also referred to as Chebyshev points) [9,10,11]. Different expansion functions for PS methods are chosen depending on the problems of applications. The PS method using Fourier series as expansion functions is employed for estimating derivatives at equally spaced points, which is common in fluid dynamics [12,13], meteorology, and geophysics, e.g., a direct numerical simulation for a turbulent flow [14], wave prediction [15], multibody modeling of wave energy converters [16], and seismogram simulation [17]. Generally, DFT is used for the PS method, and in periodic functions, approximations by the PS method using DFT (PS-DFT) are much more accurate than those by finite difference methods [18]. Moreover, the use of the fast Fourier transform (FFT) accelerates the process. However, conversely, use of DFT/FFT is problematic due to circular periodicity. If the values on both sides of sequences differ significantly, oscillatory approximations are observed around both sides, which is already well known as the Gibbs phenomenon.
Image interpolation by Hermite polynomials is a good example to understand the accuracy of derivatives. It requires pixel intensities and their derivatives that affect the accuracy of interpolation, where there is room for the choice of methods for calculating derivatives [19,20]. The combination with PS-DFT has been shown to outperform conventional interpolation methods such as bicubic and Lanczos in terms of both accuracy and speed [21]. However, it has not hitherto touched on the adverse effects by PS-DFT.
In the present paper, we study PS methods based on symmetric extension to address the problem of the Gibbs phenomenon induced by PS-DFT in image interpolation. We are motivated by the seminal work [21] combining Hermite polynomials with PS-DFT for image interpolation. We focus on the symmetric extension of a sequence in the spatial domain, which attenuates the difference in values at both sides for suppressing the Gibbs phenomenon. The DCT can enable sequences to function as symmetrical extended sequences. We mathematically derive two types of PS methods using DCT from the relation between DFT and DCT. We evaluate the proposed methods through combining with Hermite polynomials for image interpolation. The results testify to the efficacy of the PS method based on symmetric extension. This paper thus extends earlier results available in the literature [22].
The remainder of the paper is organized as follows. In Section 2, we provide preliminaries in the form of relevant definitions. We present and derive two PS methods based on symmetric extension in Section 3. Our evaluations of image interpolation are detailed in Section 4. Finally, conclusions are put forward in Section 5.
Notations: Let Z and R be the sets of integers and real numbers, respectively. Sequences and signals in the time domain are represented as lower case letters, and their coefficients in the transformed domain are denoted as upper case letters. The operator T 1 indicates an inverse transform that assigns a sequence in the transformed domain to a corresponding sequence in the time domain. The derivatives of x ( n ) with respect to n are represented as x ( n ) . We use an asterisk to denote the complex conjugate, i.e., X ( k ) is the complex conjugate of X ( k ) .

2. Preliminaries

First, we provide the definitions of the relevant transforms and their relations. Then, we briefly describe the PS method using DFT.

2.1. Definitions of DFT, DCT-1, and DCT-2

Let x ( n ) , n Z be a sequence of length N. The forward and inverse discrete Fourier transforms are defined as:
X ( k ) = n = 0 N 1 x ( n ) W N n k
and:
x ( n ) = 1 N k = 0 N 1 X ( k ) W N n k
respectively, where W N = exp ( j 2 π / N ) and j = 1 .
DCT Type 1 (DCT-1) is defined [23] as:
X C 1 ( k ) = 2 n = 0 N 1 α ( n ) x ( n ) cos π k n N 1
where:
α ( n ) = 1 / 2 , n = 0 , N 1 1 , otherwise .
DCT Type 2 (DCT-2) is defined as:
X C 2 ( k ) = 2 N β ( k ) n = 0 N 1 x ( n ) cos π k ( n + 1 / 2 ) N
where:
β ( k ) = 1 / 2 , k = 0 1 , otherwise .
Note that the inverse DCT-1 corresponds to DCT-1 and that the inverse DCT-2 corresponds to DCT Type 3.

2.2. Relation between DFT and DCT

The DCT coefficients of an original sequence correspond to the DFT coefficients of the sequence to which the original sequence is extended symmetrically. Let x ( n ) be the original sequence of length N. Figure 1 shows an original sequence and the sequence extended symmetrically depending on the type of DCT. The difference between DCT-1 and DCT-2 is where the axis of symmetry lies. Specifically, the axis of symmetry of DCT-1 lies directly between the samples of a sequence, while that of DCT-2 lies at a half-sample between the samples.
The symmetrically extended sequence, x ^ 1 ( n ) , for DCT-1 from x ( n ) , as shown in Figure 1a, is given as:
x ^ 1 ( n ) = x ( n ) n = 0 , 1 , , N 1 x ( 2 N 2 n ) n = N , N + 1 , , 2 N 3 .
The relation between DFT coefficients and DCT-1 coefficients is expressed for k = 0 , 1 , , N 1 as:
X ^ 1 ( k ) = X C 1 ( k )
where X ^ 1 ( k ) is the DFT coefficients of x ^ 1 ( n ) and X C 1 ( k ) is the DCT-1 coefficients of x ( n ) .
The symmetrically extended sequence, x ^ 2 ( n ) , for DCT-2, as shown in Figure 1b, is given from x ( n ) as:
x ^ 2 ( n ) = x ( n ) n = 0 , 1 , , N 1 x ( 2 N n 1 ) n = N , N + 1 , , 2 N 1 .
The relation between DFT coefficients and DCT-2 coefficients is expressed for k = 0 , 1 , , N 1 as:
X ^ 2 ( k ) = 2 N 1 α ( k ) X C 2 ( k ) W 2 N k / 2
where X ^ 2 ( k ) is the DFT coefficients of x ^ 2 ( n ) and X C 2 ( k ) is the DCT-2 coefficients of x ( n ) .
Thus, DCTs can enable sequences to behave as symmetrically extended sequences without the manual extension of symmetry.

2.3. PS Method Using the DFT

The PS method using DFT (PS-DFT) is a numerical method for estimating the derivatives of sequences. The underlying theory behind PS-DFT is the time derivative properties of the Fourier transform.
We assume x ( n ) are samples of a differentiable continuous-time signal, x a ( t ) , t R at time n T s , i.e., x ( n ) = x a ( n T s ) where T s represents a sampling period that satisfies the Nyquist sampling theorem. When the time axis is normalized by a factor of T s , the samples of the derivative of x a ( t ) with respect to t are written as:
t x a ( n T s ) = n x ( n )
where 1 = n / t from t = n T s and T s = 1 .
From (2), the derivative, x ( n ) , of x ( n ) with respect to n is expressed as:
x ( n ) = n x ( n ) = 1 N k = 0 N 1 j 2 π k N X ( k ) W N n k .
Observe that the DFT coefficient, X ( k ) , of x ( n ) is given in (12) as:
X ( k ) = j 2 π k N X ( k ) .
Note that the coefficients X ( k ) require complex conjugate symmetry so that x ( n ) are real numbers.
Therefore, we can obtain the derivatives by the inverse DFT from the coefficients multiplying the DFT coefficients of the original sequence by the factors with respect to k. The steps involved in implementing PS-DFT are summarized as follows.
  • N-point DFT is applied to the sequence of length N to obtain X ( k ) according to (1).
  • X ( k ) is multiplied by j 2 π k / N to obtain X ( k ) according to (13).
  • The inverse DFT is applied to X ( k ) according to (2).

3. PS Method Based on Symmetric Extension

Here, we derive two PS methods depending on the type of symmetry extension, considering the PS-DFT of symmetrically extended sequences. We assume that the symmetrically extended sequence is the samples that satisfy the Nyquist sampling theorem of a differentiable continuous-time signal where the time axis is normalized.

3.1. Derivation of PS-DCT1

Let us consider the derivative, x ^ 1 ( n ) , of the symmetrically extended sequence, x ^ 1 ( n ) , for DCT-1 in (7).
From (2), x ^ 1 ( n ) is given as:
x ^ 1 ( n ) = n x ^ 1 ( n ) = n 1 2 M k = 0 2 M 1 X ^ 1 ( k ) W 2 M n k
where M = N 1 . With the symmetry properties of DFT, it is developed as:
x ^ 1 ( n ) = 1 2 M n k = 0 M 1 X ^ 1 ( k ) W 2 M n k + k = M 2 M 1 X ^ 1 ( k ) W 2 M n k
= 1 2 M n k = 1 M 1 X ^ 1 ( k ) W 2 M n k + k = 1 M 1 X ^ 1 ( k ) W 2 M n k
= 1 2 M k = 1 M 1 j 2 π k 2 M X ^ 1 ( k ) W 2 M n k k = 1 M 1 j 2 π k 2 M X ^ 1 ( k ) W 2 M n k
From (8), replacing X ^ 1 ( k ) by X C 1 ( k ) , we have:
x ^ 1 ( n ) = 1 2 M k = 1 M 1 j π k M X C 1 ( k ) ( W 2 M n k W 2 M n k )
= 1 M k = 1 M 1 π k M X C 1 ( k ) sin π n k M .
Therefore, we define the PS method using DCT-1 in the forward transform as PS-DCT1 together with the inverse transform, T P S - D C T 1 1 , given by:
x ^ 1 ( n ) = T P S - D C T 1 1 X C 1 ( k ) = 1 N 1 k = 1 N 2 X C 1 ( k ) sin π n k N 1
where:
X C 1 ( k ) = π k N 1 X C 1 ( k ) .
Note that T P S - D C T 1 1 corresponds to a sign inverted DST Type 1 (DST-1).

3.2. Derivation of PS-DCT2

In a similar manner, PS-DCT2 is derived. From the definition in (2), the derivative, x ^ 2 ( n ) , of the symmetrically extended sequence, x ^ 2 ( n ) , for DCT-2 in (9) is expressed with the DFT coefficients, X ^ 2 ( n ) , of x ^ 2 ( n ) as:
x ^ 2 ( n ) = n x ^ 2 ( n ) = n 1 2 N k = 0 2 N 1 X ^ 2 ( k ) W 2 N n k
which is developed with the symmetry properties of DFT as:
x ^ 2 ( n ) = 1 2 N n k = 0 N 1 X ^ 2 ( k ) W 2 N n k + k = N 2 N 1 X ^ 2 ( k ) W 2 N n k
= 1 2 N n k = 0 N 1 X ^ 2 ( k ) W 2 N n k + k = 0 N 1 X ^ 2 ( k ) W 2 N n k
= 1 2 N k = 0 N 1 j π k N X ^ 2 ( k ) W 2 N n k k = 0 N 1 j π k N X ^ 2 ( k ) W 2 N n k
From (10), we have:
x ^ 2 ( n ) = 1 2 N k = 0 N 1 j π k N X C 2 ( k ) W 2 N k 2 W 2 N k n j π k N X C 2 ( k ) W 2 N k 2 W 2 N k n
= 2 N k = 0 N 1 π k N X C 2 ( k ) sin π k ( n + 1 / 2 ) N .
Therefore, we define the PS method using DCT-2 in the forward transform as PS-DCT2 together with the inverse transform, T P S - D C T 2 1 , given by:
x ^ 2 ( n ) = T P S - D C T 2 1 X C 2 ( k ) = 2 N k = 0 N 1 X C 2 ( k ) sin π k ( n + 1 / 2 ) N
where:
X C 2 ( k ) = π k N X C 2 ( k ) .
Note that T P S - D C T 2 1 corresponds to a sign inverted DST Type 2 (DST-2).

3.3. Implementing PS-DCT1/PS-DCT2

The steps involved in implementing PS-DCT1/PS-DCT2 are summarized as follows.
  • DCT-1/DCT-2 is applied to a sequence of length N to obtain X C 1 ( k ) / X C 2 ( k ) according to (3)/(5).
  • X C 1 ( k ) / X C 2 ( k ) is multiplied by a factor, π k / ( N 1 ) or π k / N , to obtain X C 1 ( k ) / X C 2 ( k ) according to (21)/(29).
  • T P S - D C T 1 1 / T P S - D C T 2 1 is applied to X C 1 ( k ) / X C 2 ( k ) according to (20)/(28).

3.4. Extension to Second and Higher Derivatives

The second and higher derivatives are obtained by differentiating the first derivative repeatedly. For example, from (28), the second derivatives based on the symmetric extension for DCT-2 are given as:
n x ^ 2 ( n ) = 2 N k = 0 N 1 X C 2 ( k ) cos π k ( n + 1 / 2 ) N
where:
X C 2 ( k ) = π k N 2 X C 2 ( k ) .

4. Application to Image Interpolation

We focus on whole-image interpolation for applications such as image registration and motion correction, rather than interpolation for a small portion of an image. We evaluate the proposed methods combined with Hermite polynomials for image interpolation in terms of accuracy and speed. Interpolation by Hermite polynomials is referred to as Hermite interpolation.

4.1. Hermite Interpolation

Let y i and y i be the nodal value and the nodal derivative at t i Z , ( i = 0 , 1 , , I ), respectively. The Hermite polynomial f ( t ) , t R , of degree 2 I + 1 , is given [19] by:
f ( t ) = i = 0 I y i a i ( t ) + i = 0 I y i b i ( t )
where:
a i ( t ) = 1 ( t t i ) p i ( t i ) p i ( t i ) p i ( t ) p i ( t i ) , b i ( t ) = ( t t i ) p i ( t ) p i ( t i ) ,
p i ( t ) = ( t t 0 ) 2 ( t t 1 ) 2 ( t t i 1 ) 2 ( t t i + 1 ) 2 ( t t I ) 2 .
when I = 1 (degree=3), f ( t ) in (32) requires two nodal values and two nodal derivatives nearest the location t for estimating the value at t, which is referred to as cubic Hermite interpolation (CHI).

4.2. Methods and Environment

We performed geometrical transformation by interpolation to evaluate the proposed methods. The derivatives required for CHI are obtained by PS-DCT1, PS-DCT2, PS-DFT, first-order forward difference (1-FD), second-order central finite difference (2-CLFD), fourth-order central finite difference (4-CLFD), and fourth-order compact finite difference (4-CTFD) [24]. In addition to these results, we provide results according to the cubic natural spline (CNS) to facilitate comparison with other interpolation methods.
We used a total of 12 grayscale images of size 256 × 256 in standard image data base (SIDBA) [25]. The resulting images are evaluated by the signal-to-noise ratio (SNR) given as:
S N R = 10 l o g 10 n g ( n ) 2 / n ( r ( n ) g ( n ) ) 2
where g ( n ) and r ( n ) represent the ground truth sample and the final resulting sample, respectively. All algorithms were implemented in MATLAB and run on a macOS system with a 2.3 GHz Intel Core i5 and 8 GB memory.

4.3. Image Translation

The image was shifted by 0.05 pixels in the horizontal direction in each step. The output of the previous step was used for the input. After 20 steps, the image was shifted by one pixel.
Figure 2 shows a portion on the leftmost side of the final output after successive image translation of the image “Barbara”. The results from PS-DFT suffered severe artifacts compared to those from the other methods. Figure 3 shows the absolute errors of the final output, where black corresponds to zero error, values greater than 20 are white, and values between zero and 20 are intermediate shades of gray. It can be clearly discerned that there is less error associated with PS-DCT1 and PS-DCT2 compared to the other methods. The errors resulting from PS-DCT1, PS-DCT2, and PS-DFT are concentrated on the both sides of the image. Table 1 summarizes the SNRs between the final output and the image shifted by one pixel (ground truth). The highest SNR for each image is in bold. It can be observed that the SNRs of the results from PS-DCT1 and PS-DCT2 were greater than the SNRs of PS-DFT. Accordingly, it was discerned that symmetric extension in the PS method was effective. On average, CNS yielded the highest SNR. However, in several images, PS-DCT2 was better than CNS.
Next, we changed the evaluation area. Figure 4 shows the SNRs for each image when the evaluated area was narrowed by m columns on each side of the image. It can be seen that the SNRs of PS-DCT1, PS-DCT2, and PS-DFT increased significantly when m = 1 and then continued to increase slowly for m > 1 , while the SNRs of the other methods slightly increased when m = 1 , then plateaued for m > 1 . The results imply that there are large adverse effects by PS-DCT1 and PS-DCT2 within one column on both sides of the results. That is, we can obtain superior results by excluding only one pixel at each side. Table 2 summarizes the SNRs of the final output when m = 1 . Compared to Table 1, the SNRs increased across all methods. Notably, the SNRs of PS-DCT1, PS-DCT2, and PS-DFT increased significantly. PS-DCT2 performed best, except with respect to the image “LAX”.

4.4. Image Rotation

The image was rotated by 24 degrees in each step. The output of the previous step was used for the input. After 15 steps, the image was fully rotated. We made each output image the same size as the input, cropping and zero-padding the rotated image to fit. As a result, the part with pixel intensities other than zero of the final output became circular.
Figure 5 shows a portion near the circumference of the final output after successive rotation of the image “Lenna”. The results from PS-DCT1, PS-DCT2, and PS-DFT were clearer than those from the other methods, but there were minor artifacts in the homogeneous area of the results. Figure 6 shows the absolute errors of the final output. Again, black denotes zero error; values greater than 20 are white; and values between zero and 20 are intermediate shades of gray. There was less error associated with PS-DCT1, PS-DCT2, and PS-DFT compared to the other methods.
Table 3 summarizes the SNRs of the final output when the evaluation area was narrowed by one pixel of the inner the circle, where the highest SNR for each image is in bold. It can be seen that PS-DCT2 yielded the best SNRs of all the methods. However, compared to Table 2, there were no significant differences among PS-DCT1, PS-DCT2, and PS-DFT. One reason for this was that the rotated image for the next input in successive rotation was zero-padded so that the image should be square, which attenuated the Gibbs phenomenon. Another reason was that errors were not concentrated in one place, due to rotation.

4.5. Computational Complexity

PS-DCT1 requires an N-point DCT-1 and an N-point DST-1 for the forward and inverse transforms, respectively, and N multiplications for the derivatives in the transformed domain. Likewise, PS-DCT2 needs an N-point DCT-2, an N-point DST-2, and N multiplications. PS-DFT requires an N-point DFT, an N-point inverse DFT, and N multiplications. Table 4 summarizes the arithmetic operations of PS-DCT1, PS-DCT2, and PS-DFT for a sequence of length N. The operations of PS-DCT1 and PS-DCT2 were based on Wang’s algorithm [26]. The operations of PS-DFT were based on the FFT [27], which were converted to operations in real numbers in which one multiplication of complex numbers was converted to three multiplications and three additions according to Nakayama’s method [28] and one addition of complex numbers was converted to two additions. Figure 7 shows the comparison of the arithmetic operations based on Table 4.
We measured the execution time for image interpolation. All algorithms were executed on a macOS system with a 2.3GHz Intel Core i5 and 8GB memory. A total of 12 images of size 256 × 256 were used. Table 5 summarizes the mean execution time for successive image translation and successive image rotation. The proposed methods ran slightly more slowly than PS-DFT, but the execution time was acceptable. Together with the above qualities, the results testified to the efficacy of the proposed methods.

5. Conclusions

We proposed PS methods based on symmetric extension to attenuate the oscillatory approximation that occurs with DFT. Using DCT, derivatives can be estimated in the transformed domain with sequences behaving as symmetrically extended sequences without a manual extension of symmetry. We derived two PS methods, PS-DCT1 and PS-DCT2, from the relation between DFT and DCT. Through image interpolation by Hermite polynomials, we showed that the proposed methods outperform PS-DFT. DCT can be calculated in real numbers rather than in the complex numbers that are required for DFT. Moreover, DCT has fast algorithms, as well as DFT. Therefore, the proposed methods are advantageous in terms of accuracy and validity compared to PS-DFT.
The potential applications of the proposed method are numerical simulations/modeling using the Fourier based PS method to solve several equations in many fields such as fluid dynamics, meteorology, and geophysics. Furthermore, the proposed method may be applicable to numerical methods where the Fourier based PS method has not been used before, such as those relevant to sensor networks and radar imaging [29,30,31]. The future work of this paper will study potential applications with numerical analysis.

Funding

This research received no external funding.

Conflicts of Interest

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

References

  1. Rao, K.R.; Yip, P. Discrete Cosine Transform; Academic Press. Inc.: Boston, MA, USA, 1990. [Google Scholar]
  2. Martucci, S.A. Symmetric convolution and the discrete sine and cosine transforms. IEEE Trans. Signal Process. 1994, 42, 1038–1051. [Google Scholar] [CrossRef]
  3. Reeves, R.; Kubik, K. Shift, scaling and derivative properties for the discrete cosine transform. Signal Process. 2006, 86, 1597–1603. [Google Scholar] [CrossRef] [Green Version]
  4. Long, B.; Reinhard, E. Real-time fluid simulation using discrete sine/cosine transforms. IEEE Trans. Pattern Anal. Mach. Intell. 2001, 23, 643–660. [Google Scholar]
  5. Bhat, P.; Curless, B.; Cohen, M.; Zitnick, C.L. Fourier analysis of the 2D screened poisson equation for gradient domain problems. In European Conference on Computer Vision; ECCV Part II LNCS; Springer: Berlin/Heidelberg, Germany, 2008; Volume 5303, pp. 114–128. [Google Scholar]
  6. Kreiss, H.-O.; Oliger, J. Comparison of accurate methods for the integration of hyperbolic equations. Tellus 1972, 24, 199–215. [Google Scholar] [CrossRef] [Green Version]
  7. Orzag, S.A. Comparison of pseudospectral and spectral approximation. Appl. Math. 1972, L1, 253–259. [Google Scholar] [CrossRef]
  8. Fornberg, F. A Practical Guide to Pseudospectral Methods; Cambridge University Press: Cambridge, UK, 1998. [Google Scholar]
  9. Elnagar, G.N.; Kazemi, M.A.; Razzaghi, M. The pseudospectral Legendre method for discretizing optimal control problems. IEEE Trans. Autom. Control 1995, 40, 1793–1796. [Google Scholar] [CrossRef]
  10. Fahroo, F.; Ross, I.M. Costate estimation by a Legendre pseudospectral method. J. Guidance Control Dyn. 2001, 24, 270–277. [Google Scholar] [CrossRef]
  11. Elnagar, G.N.; Kazemi, M.A. Pseudospectral Chebyshev optimal control of constrained nonlinear dynamical systems. Comput. Optim. Appl. 1998, 11, 195–217. [Google Scholar] [CrossRef]
  12. Roache, P.J. A pseudo-spectral FFT technique for non-periodic problems. J. Comput. Phys. 1978, 27, 204–220. [Google Scholar] [CrossRef]
  13. Canuto, C.; Hussaini, M.Y.; Quarteroni, A.; Zang, T.A. Spectral Methods in Fluid Dynamics; Springer: New York, NY, USA, 1988. [Google Scholar]
  14. Takata, M.; Yamamoto, Y.; Shouno, H.; Kunugi, T.; Joe, K. Parallelization and evaluation of a direct numerical simulation for a turbulent flow using pseudo spectral method. IPSJ J. 2003, 44, 45–54. (In Japanese) [Google Scholar]
  15. Yoon, S.; Kim, J.; Choi, W. An explicit data assimilation scheme for a nonlinear wave prediction model based on a pseudo-spectral method. IEEE J. Ocean. Eng. 2016, 41, 112–122. [Google Scholar]
  16. Paparella, F.; Bacelli, G.; Paulmemo, A.; Mouring, S.E.; Ringwood, J.V. Multibody modelling of wave energy converters using pseudo-spectral methods with application to a three-body hinge-barge device. IEEE Trans. Sustain. Energy 2016, 7, 966–974. [Google Scholar] [CrossRef] [Green Version]
  17. Das, S.; Chen, X.; Hobson, M.P. Fast GPU-based seismogram simulation from microseismic events in marine environments using heterogeneous velocity models. IEEE Trans. Comput. Imaging 2017, 3, 316–329. [Google Scholar] [CrossRef] [Green Version]
  18. Smith, G.D. Numerical Solution of Partial Derivative Equations: Finite Difference Methods; Oxford University Press: Oxford, UK, 1986. [Google Scholar]
  19. Szegö, G. Orthogonal Polynomials; American Mathematical Society: Providence, RI, USA, 1939. [Google Scholar]
  20. Seta, R.; Okubo, K.; Tagawa, N. Digital image interpolation method using higher-order Hermite interpolating polynomials with compact finite-difference. In Proceedings of the 2009 APSIPA Annual Summit and Conference, Sapporo, Japan, 4–7 October 2009. [Google Scholar]
  21. Takamiya, K.; Okubo, K.; Tagawa, N. High accuracy image interpolation method combining higher-order Hermite interpolation with pseudo spectral method. IEICE Trans. Commun. 2012, J95-Bo.2, 355–365. (In Japanese) [Google Scholar]
  22. Ito, I. Pseudo spectrum method based on symmetric extension. In Proceedings of the 7th European Workshop on Visual Information Processing, Tampere, Finland, 26–28 Novober 2018; p. 29. [Google Scholar]
  23. Oppenheim, A.V.; Schafer, R.W.; Buck, J.R. Discrete-Time Signal Processing; Prentice Hall: New Jersey, NJ, USA, 1999. [Google Scholar]
  24. Lele, S.K. Compact finite difference schemes with spectral-like resolution. J. Comput. Phys. 1992, 103, 16–42. [Google Scholar] [CrossRef]
  25. Standard Image Data BAse. Available online: http://www.ess.ic.kanagawa-it.ac.jp/app_images_j.html (accessed on 27 March 2020).
  26. Wang, Z. Fast algorithms for the discrete W transform and for the discrete Fourier transform. IEEE Trans. Accoust. Speech Signal Process. 1984, 32, 803–816. [Google Scholar] [CrossRef]
  27. Nussbaumer, H.J. Fast Fourier Transform and Convolution Algorithms; Springer: Berlin, Germany, 1982. [Google Scholar]
  28. Nakayama, K. A new discrete Fourier transform algorithm using butterfly structure fast convolution. IEEE Trans. Acoust. Speech Signal Process. 1985, ASSP-33, 1197–1208. [Google Scholar] [CrossRef]
  29. Rossi, P.S.; Ciuonzo, D.; Ekman, T.; Dong, H. Energy detection for MIMO decision fusion in underwater sensor networks. IEEE Sens. J. 2014, 15, 1630–1640. [Google Scholar] [CrossRef]
  30. Devaney, A.J.; Marengo, E.A.; Gruber, F.K. Time-reversal-based imaging and inverse scattering of multiply scattering point targets. J. Acoust. Soc. Am. 2005, 118, 3129–3138. [Google Scholar] [CrossRef] [Green Version]
  31. Ciuonzo, D. On time-reversal imaging by statistical testing. IEEE Signal Process. Lett. 2017, 24, 1024–1028. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Original sequence and symmetrically extended sequence.
Figure 1. Original sequence and symmetrically extended sequence.
Jimaging 06 00015 g001
Figure 2. A portion on the leftmost side of the final output after successive image translation of the image “Barbara”. PS, pseudo-spectral; FD, forward difference; CLFD, central finite difference; CTFD, compact finite difference.
Figure 2. A portion on the leftmost side of the final output after successive image translation of the image “Barbara”. PS, pseudo-spectral; FD, forward difference; CLFD, central finite difference; CTFD, compact finite difference.
Jimaging 06 00015 g002
Figure 3. The absolute errors of the final output after successive image translation of the image “Barbara”. CNS, cubic natural spline.
Figure 3. The absolute errors of the final output after successive image translation of the image “Barbara”. CNS, cubic natural spline.
Jimaging 06 00015 g003
Figure 4. SNRs of the final output when excluding m columns on both sides of the image.
Figure 4. SNRs of the final output when excluding m columns on both sides of the image.
Jimaging 06 00015 g004
Figure 5. A portion near the circumference of the final output after successive rotation of the image “Lenna”.
Figure 5. A portion near the circumference of the final output after successive rotation of the image “Lenna”.
Jimaging 06 00015 g005
Figure 6. The absolute errors of the final output after successive rotation of the image “Lenna”.
Figure 6. The absolute errors of the final output after successive rotation of the image “Lenna”.
Jimaging 06 00015 g006
Figure 7. Comparison of the arithmetic operations based on Table 4.
Figure 7. Comparison of the arithmetic operations based on Table 4.
Jimaging 06 00015 g007
Table 1. SNRs (dB) of the final output after successive image translation.
Table 1. SNRs (dB) of the final output after successive image translation.
InterpolationCHICNS
DerivativePS-DCT1PS-DCT2PS-DFT1-FD2-CLFD4-CLFD4-CTFD
airplane22.8727.0021.4023.9925.4025.1427.0530.77
Barbara26.0528.3619.9518.1818.2120.5423.7424.68
boat25.2927.9120.2923.4924.2124.7327.0029.82
bridge25.2527.0821.1719.6318.3419.4521.0421.35
building24.4326.8621.4123.4625.5525.3627.5032.70
cameraman25.6827.4620.3121.2021.2622.3024.2225.40
girl25.1427.2022.3523.7124.9424.9726.7929.81
LAX23.4522.5521.0115.2413.6114.6916.2016.41
Lenna25.3127.5621.7423.1924.7125.1527.3530.84
lighthouse25.0328.1921.2822.3622.5023.3725.2826.63
text25.7228.4921.4522.5223.9525.0127.1929.50
woman20.0126.6925.7323.0824.0824.1926.2929.31
average24.5227.1121.5121.6722.2322.9124.9727.27
Table 2. SNRs (dB) of the final output after successive image translation ( m = 1 ) .
Table 2. SNRs (dB) of the final output after successive image translation ( m = 1 ) .
InterpolationCHICNS
DerivativePS-DCT1PS-DCT2PS-DFT1-FD2-CLFD4-CLFD4-CTFD
airplane27.4644.2434.2827.1627.7429.5731.8631.98
Barbara37.5842.8929.9318.6218.4321.2424.8424.86
boat35.1846.0231.2125.5625.5127.5830.4830.56
bridge28.4932.4228.7620.0418.5219.8221.4421.44
building39.7744.9233.9926.4528.2831.0934.5434.85
cameraman36.9538.0130.4722.2021.8023.5825.5825.60
girl38.4342.4535.1326.2726.7528.5230.5730.66
LAX28.6028.1927.7215.5213.7314.9416.4616.46
Lenna40.3044.7333.6025.2726.3128.8031.6731.79
lighthouse30.8439.1631.4823.5923.1724.8826.8726.90
text33.5842.6331.8823.7924.9527.4230.0130.08
woman22.3041.1142.6225.7425.8327.6130.1530.24
average33.2940.5732.5923.3523.4225.4227.8727.95
Table 3. SNRs (dB) of the final output after successive image rotation.
Table 3. SNRs (dB) of the final output after successive image rotation.
InterpolationCHICNS
DerivativePS-DCT1PS-DCT2PS-DFT1-FD2-CLFD4-CLFD4-CTFD
airplane30.1531.6630.8525.5425.5127.1628.6924.83
Barbara27.1427.8227.4118.8018.6520.5522.8619.16
boat31.4233.5532.3726.7126.6928.3030.0725.60
bridge22.3622.5822.4618.2118.1419.0720.0118.33
building30.0231.8630.6824.6724.6426.7328.5824.14
cameraman26.8327.5227.1421.2921.2522.7624.1621.42
girl29.2730.3429.4324.7924.7726.4127.7724.60
LAX18.4218.4918.4614.4714.4215.2016.0214.73
Lenna30.3031.7930.9024.9124.8826.7028.4924.50
lighthouse24.5524.9524.7219.6019.5320.6521.7219.68
text25.8626.4926.0320.3420.2621.8323.2320.40
woman30.9332.2831.4426.4626.4627.9929.4325.90
average27.2728.2827.6622.1522.1023.6125.0921.94
Table 4. Arithmetic operations for PS-DCT1, PS-DCT2, and PS-DFT in real numbers.
Table 4. Arithmetic operations for PS-DCT1, PS-DCT2, and PS-DFT in real numbers.
MethodMultiplicationsAdditions
PS-DCT1 N 2 ( 3 log 2 N 10 ) + 4 log 2 N + 6 + N 7 2 N ( log 2 N 2 ) + 4 log 2 N + 6
PS-DCT2 2 N ( 3 4 log 2 N 1 ) + 6 + N N ( 7 2 log 2 N 4 ) + 6
PS-DFT 3 ( N log 2 N + N ) 4 N log 2 N + 3 ( N log 2 N + N )
Table 5. Mean execution time (s) for successive image translation and successive image rotation. CHI, cubic Hermite interpolation.
Table 5. Mean execution time (s) for successive image translation and successive image rotation. CHI, cubic Hermite interpolation.
MethodTranslationRotation
CHI-PS-DCT10.0580.436
CHI-PS-DCT20.0520.417
CHI-PS-DFT0.0370.391
CHI-1-FD0.0190.357
CHI-2-CLFD0.0210.362
CHI-4-CLFD0.0240.372
CHI-4-CTFD1.4553.207
CNS3.39992.866

Share and Cite

MDPI and ACS Style

Ito, I. A New Pseudo-Spectral Method Using the Discrete Cosine Transform. J. Imaging 2020, 6, 15. https://doi.org/10.3390/jimaging6040015

AMA Style

Ito I. A New Pseudo-Spectral Method Using the Discrete Cosine Transform. Journal of Imaging. 2020; 6(4):15. https://doi.org/10.3390/jimaging6040015

Chicago/Turabian Style

Ito, Izumi. 2020. "A New Pseudo-Spectral Method Using the Discrete Cosine Transform" Journal of Imaging 6, no. 4: 15. https://doi.org/10.3390/jimaging6040015

APA Style

Ito, I. (2020). A New Pseudo-Spectral Method Using the Discrete Cosine Transform. Journal of Imaging, 6(4), 15. https://doi.org/10.3390/jimaging6040015

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

Article Metrics

Back to TopTop