Shifted Linear Interpolation Filter

Similar documents
EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

Point Lattices in Computer Graphics and Visualization how signal processing may help computer graphics

Operators to calculate the derivative of digital signals

Implementation of Lifting-Based Two Dimensional Discrete Wavelet Transform on FPGA Using Pipeline Architecture

Adaptive osculatory rational interpolation for image processing

International ejournals

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

A New Approach For Regularized Image Interpolation

CONTENT ADAPTIVE SCREEN IMAGE SCALING

Bézier Splines. B-Splines. B-Splines. CS 475 / CS 675 Computer Graphics. Lecture 14 : Modelling Curves 3 B-Splines. n i t i 1 t n i. J n,i.

On an approach for cubic Bézier interpolation

Performance Evaluation of Fusion of Infrared and Visible Images

A Modified Spline Interpolation Method for Function Reconstruction from Its Zero-Crossings

CS 475 / CS Computer Graphics. Modelling Curves 3 - B-Splines

Interpolation by Spline Functions

Key words: B- Spline filters, filter banks, sub band coding, Pre processing, Image Averaging IJSER

Polynomials tend to oscillate (wiggle) a lot, even when our true function does not.

INVARIANT CORNER DETECTION USING STEERABLE FILTERS AND HARRIS ALGORITHM

Cubic spline interpolation

Digital Image Processing. Image Enhancement in the Frequency Domain

FRESH - An algorithm for resolution enhancement of piecewise smooth signals and images

Parameterization of triangular meshes

Interpolation with complex B-splines

1. Discovering Important Nodes through Graph Entropy The Case of Enron Database

TWO DIMENSIONAL DATA MODELING AND CHEBYSHEV APPROXIMATION OF SPLINE

Design of Low-Delay FIR Half-Band Filters with Arbitrary Flatness and Its Application to Filter Banks

Research Article Regressive Structures for Computation of DST-II and Its Inverse

Adaptive Quantization for Video Compression in Frequency Domain

CS 450 Numerical Analysis. Chapter 7: Interpolation

Sampling 50 Years After Shannon

Computational Aspects of MRI

A Cumulative Averaging Method for Piecewise Polynomial Approximation to Discrete Data

3. Lifting Scheme of Wavelet Transform

International Journal of Modern Trends in Engineering and Research e-issn No.: , Date: 2-4 July, 2015

A new fractal algorithm to model discrete sequences

ISSN (Online), Volume 1, Special Issue 2(ICITET 15), March 2015 International Journal of Innovative Trends and Emerging Technologies

A Kernel Representation for Exponential Splines with Global Tension

Coupling of surface roughness to the performance of computer-generated holograms

Alpha-Rooting Method of Grayscale Image Enhancement in The Quaternion Frequency Domain

Anu Kalidas Muralidharan Pillai and Håkan Johansson

The theory and design of a class of perfect reconstruction modified DFT filter banks with IIR filters

99 International Journal of Engineering, Science and Mathematics

Central Slice Theorem

February 2017 (1/20) 2 Piecewise Polynomial Interpolation 2.2 (Natural) Cubic Splines. MA378/531 Numerical Analysis II ( NA2 )

Image Resolution Improvement By Using DWT & SWT Transform

Interpolation and Splines

Tracking of Non-Rigid Object in Complex Wavelet Domain

Efficient Method for Half-Pixel Block Motion Estimation Using Block Differentials

DURING the past decade, there has been an increasing

Image zooming using directional cubic convolution interpolation

CS321 Introduction To Numerical Methods

THE SINC-APPROXIMATING KERNELS OF. Erik H. W. Meijering, Wiro J. Niessen, Max A. Viergever

FITTING PIECEWISE LINEAR FUNCTIONS USING PARTICLE SWARM OPTIMIZATION

A STOCHASTIC MINIMUM-NORM APPROACH TO IMAGE AND TEXTURE INTERPOLATION

Constrained modification of the cubic trigonometric Bézier curve with two shape parameters

Positivity Preserving Interpolation of Positive Data by Rational Quadratic Trigonometric Spline

Deficient Quartic Spline Interpolation

Convolution Product. Change of wave shape as a result of passing through a linear filter

Curves and Surfaces. Shireen Elhabian and Aly A. Farag University of Louisville

4.1 QUANTIZATION NOISE

Image Compression for Mobile Devices using Prediction and Direct Coding Approach

Reduced Frame Quantization in Video Coding

Rational Bezier Curves

VHDL Implementation of Multiplierless, High Performance DWT Filter Bank

Software Testing. 1. Testing is the process of demonstrating that errors are not present.

Adaptive Waveform Inversion: Theory Mike Warner*, Imperial College London, and Lluís Guasch, Sub Salt Solutions Limited

Video 11.1 Vijay Kumar. Property of University of Pennsylvania, Vijay Kumar

Image Processing (2) Point Operations and Local Spatial Operations

ECE 600, Dr. Farag, Summer 09

Construction of fractional spline wavelet bases

Computer Graphics / Animation

MA 323 Geometric Modelling Course Notes: Day 21 Three Dimensional Bezier Curves, Projections and Rational Bezier Curves

Lacunary Interpolation Using Quartic B-Spline

Neural Networks Based Time-Delay Estimation using DCT Coefficients

Shashank Kumar. Index Terms Complex DWT, Denoising, Double Density DWT, Dual Tree DWT Introduction

Revisit of the Ramp Filter

Comparing different interpolation methods on two-dimensional test functions

Edges, interpolation, templates. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

A C 2 Four-Point Subdivision Scheme with Fourth Order Accuracy and its Extensions

Error-control vs classical multiresolution algorithms for image compression

Knowledge Discovery and Data Mining

Sections 3-6 have been substantially modified to make the paper more comprehensible. Several figures have been re-plotted and figure captions changed.

Comparative Study of Dual-Tree Complex Wavelet Transform and Double Density Complex Wavelet Transform for Image Denoising Using Wavelet-Domain

08 - Designing Approximating Curves

ANALYSIS OF SPIHT ALGORITHM FOR SATELLITE IMAGE COMPRESSION

Digital Image Processing. Lecture 6

Simulation and Analysis of Interpolation Techniques for Image and Video Transcoding

2 Computation with Floating-Point Numbers

AM205: lecture 2. 1 These have been shifted to MD 323 for the rest of the semester.

Defense Technical Information Center Compilation Part Notice ADP012041

Robustness of Non-Exact Multi-Channel Equalization in Reverberant Environments

SIGNAL DECOMPOSITION METHODS FOR REDUCING DRAWBACKS OF THE DWT

JPEG compression of monochrome 2D-barcode images using DCT coefficient distributions

Dyadic Interpolation Schemes

D. Richard Brown III Associate Professor Worcester Polytechnic Institute Electrical and Computer Engineering Department

Design of 2-D DWT VLSI Architecture for Image Processing

Image Sampling and Quantisation

Reconstructing Images of Bar Codes for Construction Site Object Recognition 1

Lossy Compression of Scientific Data with Wavelet Transforms

Implementing Biquad IIR filters with the ASN Filter Designer and the ARM CMSIS DSP software framework

Transcription:

Journal of Signal and Information Processing, 200,, 44-49 doi:0.4236/jsip.200.005 Published Online November 200 (http://www.scirp.org/journal/jsip) Shifted Linear Interpolation Filter H. Olkkonen, J. T. Olkkonen 2 Department of Physics and Mathematics, University of Eastern Finland, Kuopio, Finland, 2 VTT Technical Research Centre of Finland, VTT, Finland Email: hannu.olkkonen@uef.fi, juuso.olkkonen@vtt.fi Received September 2 st, 200; revised November 8 th, 200; accepted November 5 th, 200. ABSTRACT Linear interpolation has been adapted in many signal and image processing applications due to its simple implementation and low computational cost. In standard linear interpolation the kernel is the second order B-spline β2 t. In this work we show that the interpolation error can be remarkably diminished by using the time-shifted B-spline β2 t-δ as an interpolation kernel. We verify by experimental tests that the optimal shift is Δ= 0.25. In VLSI and microprocessor circuits the shifted linear interpolation (SLI) algorithm can be effectively implemented by the z-transform filter. The interpolation error of the SLI filter is comparable to the more elaborate higher order cubic convolution interpolation. Keywords: Linear Interpolation, Cubic Convolution, B-splines, VLSI. Introduction Linear interpolation plays an important role in modern signal and image processing applications due to its simple implementation and low computational cost. Plonka [,2] has extensively studied the effect of the shifted interpolation nodes on the approximation error in the B- spline interpolation. According to the theoretical analysis the shift 0 yields the minimal error norm. Blu et al. [3] applied the same idea to the piecewise-linear interpolation. On the contrary, they observed that interpolation error diminishes if the sampling knots are shifted by a fixed amount. Through the theoretical considerations Blu et al. [3] determined the optimal shift of the knots is close to /5 of the distance between the knots. In this work we consider a modification of the linear interpolation. In standard linear interpolation the kernel is the second order B-spline 2 () t. Instead of shifting the sampling knots we introduce the shifted linear interpolation (SLI), where the B-spline kernel has been time-shifted by a fraction of the sampling period. We describe the z-transform SLI filter for efficient implementation of the shifted B-spline kernel 2 ( t ) especially for VLSI and microprocessor circuits. 2. Theoretical Considerations 2.. B-Spline Signal Processing This work was supported by the National Technology Agency of Finland (TEKES). xt is B-spline approximation of the continuous signal based on the summation [4] xt ck p t k () k where ck are the scale coefficients. The B-spline p t is constructed by convolving an indicator function t by itself p t t t t p times where 0t () t 0 elsewhere (3) The linear interpolation is obtained in the case p 2 xt ck2 t k (4) where k (2) 2 t is the triangle function Figure defined as t for 0 t<t 2 () t 2t for t 2 0 elsewhere 2.2. Shifted Linear Interpolation Let us consider the approximation of the continuous-time signal xt by a summation of the shifted B-spline 2 t xt c, k2 tk (6) k (5)

Shifted Linear Interpolation Filter 45 Figure. The shifted B-spline 2 t. where c, k, 0, is the scale sequence for the time-shifted kernel. In the sequel we call (6) the shifted linear interpolation (SLI). Usually the data points are known in discrete time intervals t nt n 0,, 2,. In the z-transform domain we obtain Zxn X zc, zz2 t (7) C, z z The SLI filter is now obtained from (6) as Z xn dc, z ddz By inserting the scale sequence C, z finally have (8) from (7) we d d z Z xn d X z z SLI d where SLI d,, z 2.3. Inverse SLI Filter,, zx z denotes the SLI filter. In some applications it is required that the original signal has to be reconstructed from the delayed one. In the general case the SLI filter (9) has no stable inverse since the roots of the nominator may lie outside the unit circle. For 0.25 the roots are inside the unit circle in the range 0 d 0.25. The inverse SLI filter can be realized by the inverse filtering procedure described in Appendix I. 3. Experimental 3.. Experimental Verification of the SLI Algorithm We tested experimentally the quality of the SLI filter for a variety of synthetic signals with varying frequency components. The interpolation error was defined as the absolute difference between the analytically calculated and interpolated signal: et xt xint t. The timeshift of the interpolation kernel was altered in the range 0. The interpolation error was strongly related to the time-shift. Irrespective of the type of the signal the minimum interpolation error was obtained in every case at 0.25. Figure 2 shows an example of the interpolation error versus for signal sin 0. t, when d 0.5. The worst case is the linear interpolation (9) Figure 2. Interpolation error of function sin0. nin the case d=0.5 for piecewise-linear interpolation 0 SLI filter from Δ = 0.2 to Δ = 0.25. Δ = and for

46 Shifted Linear Interpolation Filter Figure 3. The magnitude and phase responses of the SLI filter for 0.,,0.5 d= =0.25 Δ. 0. Then the interpolation error diminishes from 0.2 to 0.25. At bigger values the interpolation error starts to increase. The magnitude and phase response of the SLI filter is given in Figure 3 for 0.25 and d 0.,,0.5. Magnitude response of the SLI filter decreases at higher frequency values, albeit in the case d 0.5 the magnitude is constant in the whole frequency range. The phase shift is linear in the frequency range 0. For d 0.5 and 0.25 the magnitude response of the SLI filter turns to high-pass and tends to intensify the noise occurring in high frequency range. As a practical solution the interpolated signal can be time-reversed and d can be inserted instead of d in the SLI algorithm. 3.2. Half Delay Filter An interesting application of the SLI is the half delay filter, which delays the signal half of the sampling period and interpolates the intermediate points between the evenly spaced knots. For 0.25 and d 0.5 we have 3z SLI 0.5, 0.25, z (0) 3 z which is an all-pass filter having the unity magnitude response. The interpolation error of the half delayed filter () is especially low Figure 2. Figure 4 shows the phase response and the phase error compared with the ideal phase response. 3.3. Comparison with the Cubic Convolution Interpolation The absolute interpolation error using the cubic convolution method [5] and the SLI-algorithm for signals xn sin n and xn sin 2n are given in Figsures 5 and 6 for d = 0.5 and 0.25. At the cubic convolution interpolation performs slightly better, but at 2 the quality of the SLI algorithm equals the cubic convolution. 4. Discussion The linear interpolation has been used in many microprocessor and VLSI applications due to its simple and fast implementation. The new approaches based on higher degree B-spline interpolation kernels [6-8] suffer from computational complexity and usually require the timereversed inverse filtering procedure, which is not possible to implement in real-time. In this work we examined the shifted linear interpolation, which outperforms the standard linear interpolation Figure 2. The SLI algorithm can be implemented via the z-transform filter (9) with integer coefficients. The interpolation error of the SLI filter is comparable to the more elaborate cubic convolution interpolation Figures 5,6, which is a standard image and signal processing tool. The computational complexity of the

Shifted Linear Interpolation Filter 47 Figure 4. Comparison of the phase responses of the piecewise-linear interpolation and the SLI filter(d = 0.5, Δ = 0.25 ). Figure 5. The absolute interpolation error yielded by the SLI algorithm (d = 0.5, Δ = 0.25 ) and the cubic convolution interpolation for the sinusoidal signal xn=sinn. cubic convolution method is significantly higher compared with the SLI algorithm. The interpolation function used as a kernel in the SLI algorithm correspond the B-spline order p = 2 Figure. The B-spline 2 t has the z-transform z. Figure 6. The absolute interpolation error yielded by the SLI algorithm (d = 0.5, Δ = 0.25 ) and the cubic convolution interpolation for the sinusoidal signal xn=sin2n. Probably the main reason for the effectiveness of the SLI comes from the two term z-transform, which allows the solution of the scale coefficient sequence C, zin (7). This leads to the definition of the SLI filter (9). As a sur-

48 Shifted Linear Interpolation Filter prising experimental observation of the SLI algorithm is the strong dependence of the interpolation error on the time shift. Our comparisons using a variety of functions with different waveforms and frequency content showed that every time the interpolation error attains its minimum at 0.25. Previously Plonka [,2] has studied the B-spline interpolation with shifted nodes. In the theoretical analysis the shift parameter 0 yielded the minimal error norm. Blu et al. [3] conducted theoretically the piecewise-linear interpolation error versus the shift in the measurement knots. Their analysis predicted the optimal choice 0.2. Blu et al. [3] used a pre-filter to shift the measurement knots and then the standard piecewise linear interpolation for computation of the interpolated signal. An advantage in this procedure is that the prefiltered signal can be directly implemented by any existing linear interpolation hardware, while the implementation of the SLI filter needs a new hardware design. An essential observation in this work is that the SLI filter has low-pass frequency response characteristics only in the range 0 d 0.5. For d 0.5 the frequency response of the SLI filter turns to high-pass and intensifies the noise occurring in high frequency range. The noise interference for d 0.5 can be avoided by time reversing the interpolated signal. Then d can be inserted instead of d in the SLI algorithm. A shortcoming in the SLI algorithm is the phase error occurring in the high frequency range compared with the linear interpolation. Fortunately, in most of the signal processing applications the signal is band limited and the high frequency band 2 contains only some noise components. An interesting observation is that for d 0.5 and 0.25 the half delay SLI algorithm reduces to the simple all-pass filter (0), which has the unity magnitude response and the phase response is close to the ideal phase response in the range 0. If the signal bandwidth is limited to this range the SLI algorithm yields interpolation precision and accuracy, which is comparable to the more elaborate interpolation methods. The interpolation of intermediate points between the uniformly distributed knots is probably the most frequently used operation is image and signal processing. The half delay filters are also important tools in construction of shift invariant wavelet transform [9]. The half delay SLI filter (0) can be readily applied to replace the more elaborate half delay filters based on the Thiran filters [0]. For 0d 0.25and 0.25 the SLI filter has a stable inverse. If the original data points have to be reconstructed from the interpolated ones, the inverse SLI filter for higher values of d can be realized by using the inverse filtering procedure (Appendix I). 5. Conclusions In signal and image processing applications linear interpolation has been frequently used due to its simple implementation and low computational cost. In standard linear interpolation the kernel is the second order B-spline 2 t. We show in this work that the interpolation error can be remarkably reduced by adapting the time-shifted B-spline 2 t as an interpolation kernel. By experimental tests we verify that the optimal shift is 0.25. The shifted linear interpolation (SLI) algorithm can be effectively implemented by the z-transform filter in VLSI and microprocessor applications. The interpolation error of the SLI filter is comparable to the more elaborate cubic convolution interpolation. The future research goal is to extend the time-shifted interpolation kernel to higher order B-splines. Appendix I. Implementation of the inverse fil- ter SLI d,, z for 0.25 and d 0.25. By denoting the interpolated signal by Y z Z x n d SLI d,, z is the inverse filter z X z SLI d,, z ddz Yz The inverse filter SLI d,, z () is not stable which is not stable for 0.25 and d 0.25, since the root in the denominator is outside the unit circle. However, the inverse filter can be implemented by the following inverse filtering procedure. First we replace z by z - X z z d,, SLI d z Y z d z (2) The inverse filter SLI d,, z is stable for 0.25 d. The X z and Y z and 0.25 are the z-transforms of the time reversed signal xn n and the interpolated signal yn n. The following Matlab program ISLI.m demonstrates the computation procedure. function x = ISLI(y,d,delta) y = y(end:-:); x = filter([delta -delta],[delta+d -delta-d],y); x = x(end:-:); REFERENCES [] G. Plonka, Periodic Spline Interpolation with Shifted Nodes, Journal of Approximation Theory, Vol. 76, No., 994, pp. -20. [2] G. Plonka, Optimal Shift Parameters for Periodic Spline Interpolation, Numerical Algorithms, Vol. 6, No. 2, 994,

Shifted Linear Interpolation Filter 49 pp. 297-36. [3] I. J. Schoenberg, Contribution to the Problem of Approximation of Equidistant Data by Analytic Functions, Quarterly of Applied Mathematics, Vol. 4, No., 946, pp. 45-99, 2-4. [4] T. Blu, P. Thevenaz and M. Unser, Linear interpolation revitalized, IEEE Trans. Image Process. Vol. 3, No. 5, pp. 70-79, May 2004. [5] R. G. Kay, Cubic Convolution Interpolation for Digital Image Processing, IEEE Transactions on Acoustics, Speech, Signal Processing, Vol. 29, No. 6, December 98, pp. 53-60. [6] P. Thevenaz, T. Blu and M. Unser, Interpolation Revisited, IEEE Transactions on Medical Imaging, Vol. 9, No. 7, July 2000, pp. 739-758. [7] J. T. Olkkonen and H. Olkkonen, Fractional Delay Filter Based on B-Spline Transform, IEEE Signal Processing Letters, Vol. 4, No. 2, February 2007, pp. 97-00. [8] J. T. Olkkonen and H. Olkkonen, Fractional Time-Shift B-Spline Filter, IEEE Signal Processing Letters, Vol. 4, No. 0, October 2007, pp. 688-69. [9] H. Olkkonen and J. T. Olkkonen, Half Delay B-Spline Filter for Construction of Shift Invariant Wavelet Transform, IEEE Transactions on Circuits and Systems II, Vol. 54, No. 7, July 2007, pp. 6-65. [0] I. W. Selesnick, The Design of Approximate Hilbert Transform Pairs of Wavelet Bases, IEEE Transactions on Signal Processing, Vol. 50, No. 5, May 2002, pp. 44-52.