13.07.2015 Views

A Note on Cubic Convolution Interpolation - Biomedical Imaging ...

A Note on Cubic Convolution Interpolation - Biomedical Imaging ...

A Note on Cubic Convolution Interpolation - Biomedical Imaging ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A <str<strong>on</strong>g>Note</str<strong>on</strong>g> <strong>on</strong> <strong>Cubic</strong> C<strong>on</strong>voluti<strong>on</strong> Interpolati<strong>on</strong>Erik Meijering and Michael UnserIEEE Transacti<strong>on</strong>s <strong>on</strong> Image Processing, accepted, December 2002Abstract—We establish a link between classical osculatory interpolati<strong>on</strong> and modern c<strong>on</strong>voluti<strong>on</strong>basedinterpolati<strong>on</strong> and use it to show that two well-known cubic c<strong>on</strong>voluti<strong>on</strong> schemes are formallyequivalent to two osculatory interpolati<strong>on</strong> schemes proposed in the actuarial literature about a centuryago. We also discuss computati<strong>on</strong>al differences and give examples of other cubic interpolati<strong>on</strong>schemes not previously studied in signal and image processing.IIntroducti<strong>on</strong>Polynomial interpolati<strong>on</strong> methods have been studied quite extensively in the signal andimage processing literature of the past three decades [7,8,14]. An example of such methodsis Lagrange central interpolati<strong>on</strong> of given, fixed degree, which is known to yield interpolantsthat are not c<strong>on</strong>tinuously differentiable [10,11]. In order to obtain smoother interpolants,as may be required for some applicati<strong>on</strong>s, several alternative interpolati<strong>on</strong> methods havebeen proposed. Popular examples of these are the so-called cubic c<strong>on</strong>voluti<strong>on</strong> interpolati<strong>on</strong>methods, of which the <strong>on</strong>es proposed by Keys [5] are the most well known.It is probably less well known that methods for obtaining smooth interpolants havebeen developed in other areas of applied mathematics since the sec<strong>on</strong>d half of the nineteenthcentury. In this brief note we establish a link between classical osculatory interpolati<strong>on</strong>and modern c<strong>on</strong>voluti<strong>on</strong>-based interpolati<strong>on</strong> and use it to show that both of Keys’cubic c<strong>on</strong>voluti<strong>on</strong> schemes are formally equivalent to particular osculatory interpolati<strong>on</strong>schemes proposed around the beginning of the twentieth century. We also discuss theircomputati<strong>on</strong>al differences and give explicit forms of the kernels that follow from othercubic osculatory interpolati<strong>on</strong> schemes.IIC<strong>on</strong>voluti<strong>on</strong>-Based Interpolati<strong>on</strong>C<strong>on</strong>voluti<strong>on</strong>-based interpolati<strong>on</strong> of uniformly sampled data implies the use of an interpolati<strong>on</strong>kernel ϕ : R → R, which determines the weights to be assigned to the samplesf k = f(kT) of an original functi<strong>on</strong> f : R → R in computing the value of the interpolant˜f at any arbitrary x ∈ R. For ease of notati<strong>on</strong>, but without loss of generality, we willuse T = 1 in the remainder of this paper. In that case, the process may be describedmathematically as˜f(x) = ∑ k∈Zf k ϕ(x − k). (1)As can readily be observed from this equati<strong>on</strong>, it is necessary that in order for ˜f to bean interpolant, the kernel ϕ must satisfy the criteria ϕ(0) = 1 and ϕ(k) =0, ∀k ≠0. Awell-known example of such a kernel is the theoretically ideal, but computati<strong>on</strong>ally very


PP-2A <str<strong>on</strong>g>Note</str<strong>on</strong>g> <strong>on</strong> <strong>Cubic</strong> C<strong>on</strong>voluti<strong>on</strong> Interpolati<strong>on</strong>unattractive sinc functi<strong>on</strong>. Other examples are the computati<strong>on</strong>ally very attractive, buttheoretically far from ideal nearest-neighbor and linear interpolati<strong>on</strong> kernel.A c<strong>on</strong>siderably better trade-off between computati<strong>on</strong>al cost and accuracy is providedby the family of cubic c<strong>on</strong>voluti<strong>on</strong> kernels, an example of which was used first in 1973by Rifman [9]. These kernels c<strong>on</strong>sist of piecewise third-degree polynomials and are <strong>on</strong>cec<strong>on</strong>tinuously differentiable. Of special interest are the kernels proposed in 1981 by Keys [5],since they generally yield more accurate results than other kernels of the family. Thefirst has an approximati<strong>on</strong> order of L = 3, which implies that the resulting interpolantc<strong>on</strong>verges to the original functi<strong>on</strong> as fast as the third power of the intersample distance.It also implies that the kernel is capable of reproducing polynomials up to sec<strong>on</strong>d degree.This so-called third-order cubic c<strong>on</strong>voluti<strong>on</strong> kernel—in computer graphics also known asthe Catmull-Rom spline [1]—is defined as⎧ 3⎪⎨ 2 |x|3 − 5 2 |x|2 +1 if 0 |x| 1,ϕ CC3 (x) = − 1 2⎪⎩|x|3 + 5 2 |x|2 − 4|x| +2 if 1 |x| 2,(2)0 if 2 |x|.By extending the support of the kernel, while keeping the highest degree of the polynomialpieces to n = 3, Keys [5] also obtained a cubic c<strong>on</strong>voluti<strong>on</strong> kernel with order ofapproximati<strong>on</strong> L = 4. This so-called fourth-order cubic c<strong>on</strong>voluti<strong>on</strong> kernel is defined as⎧⎪⎨ϕ CC4 (x) =⎪⎩43 |x|3 − 7 3 |x|2 +1 if 0 |x| 1,− 712 |x|3 +3|x| 2 − 5912 |x| + 5 2if 1 |x| 2,112 |x|3 − 2 3 |x|2 + 7 4 |x|− 3 2if 2 |x| 3,0 if 3 |x|.(3)IIIOsculatory Interpolati<strong>on</strong>Osculatory interpolati<strong>on</strong> has been described as that form of interpolati<strong>on</strong> in which <strong>on</strong>eemploys in a sequence of interpolati<strong>on</strong> intervals a corresp<strong>on</strong>ding sequence of interpolati<strong>on</strong>curves forming a composite curve which, together with a specified number of its derivatives,is c<strong>on</strong>tinuous throughout the range of interpolati<strong>on</strong> [2]. Such interpolati<strong>on</strong> schemes havebeen developed since the sec<strong>on</strong>d half of the nineteenth century, primarily in the actuarialliterature, and an overview of many of them was given as early as 1944 by Greville [2].A c<strong>on</strong>venient form in which to express osculatory interpolati<strong>on</strong> formulae is the socalledEverett form, since it involves <strong>on</strong>ly the even-order central differences of the twogiven samples determining the interval in which to interpolate:˜f(x) = ˜f(k + ξ) =F (ξ,δ)f k+1 + F (1 − ξ,δ)f k , (4)with k = ⌊x⌋, 0 ξ 1, and F (x, δ) = ∑ i maxi=0 F i(x)δ 2i for some i max ,wheretheF iare suitably chosen polynomial functi<strong>on</strong>s in x such that the resulting interpolant satisfiesprespecified criteria c<strong>on</strong>cerning its order of approximati<strong>on</strong> and smoothness in terms ofc<strong>on</strong>tinuous differentiability. Here, the pth-order central difference δ p of any functi<strong>on</strong> g isdefined as δ p g(x) =δ p−1 g(x + 1 2 ) − δp−1 g(x − 1 2 ), with δg(x) =g(x + 1 2 ) − g(x − 1 2 ).An example of an osculatory interpolati<strong>on</strong> formula is the <strong>on</strong>e described by Karup [4]in 1899 and independently by King [6] in 1907, which is obtained from (4) by taking [2,13]F (x, δ) =F KK (x, δ) =x + 1 2 x2 (x − 1)δ 2 . (5)


IV Establishing the LinkPP-3Similar to third-order cubic c<strong>on</strong>voluti<strong>on</strong>, it yields a c<strong>on</strong>tinuously differentiable third-degreepiecewise polynomial interpolant and is capable of reproducing polynomials up to sec<strong>on</strong>ddegree. A sec<strong>on</strong>d example is the formula proposed by Henders<strong>on</strong> [3] in 1906, which isobtained from (4) by taking [2]F (x, δ) =F H (x, δ) =x + 1 6 x(x2 − 1)δ 2 − 112 x2 (x − 1)δ 4 . (6)Similar to fourth-order cubic c<strong>on</strong>voluti<strong>on</strong>, this scheme yields a c<strong>on</strong>tinuously differentiablethird-degree piecewise polynomial interpolant and is capable of reproducing polynomialsup to third degree.IVEstablishing the LinkIn his 1946 landmark paper [12] <strong>on</strong> the approximati<strong>on</strong> of equidistant data by analytic functi<strong>on</strong>s,in which he introduced the special type of osculatory interpolati<strong>on</strong> known as splineinterpolati<strong>on</strong>, Schoenberg also studied previously given classical interpolati<strong>on</strong> schemes andpointed out that these interpolati<strong>on</strong> schemes too may be written in the form (1), wherethe hidden kernel h reveals itself as the resp<strong>on</strong>se to the discrete impulse functi<strong>on</strong> definedby f 0 =1andf k =0, ∀k ≠ 0. Using this approach, he obtained the Lagrange centralinterpolati<strong>on</strong> kernels and also the kernel involved in an osculatory interpolati<strong>on</strong> schemedue to Jenkins [2, 12].By proceeding in a similar fashi<strong>on</strong>, we may obtain a general expressi<strong>on</strong> for the hiddenkernels of osculatory interpolati<strong>on</strong> schemes. To this end we use the expansi<strong>on</strong>δ 2i f k =∑2im=0( ) 2i(−1) m f k−m+i , (7)mwhich holds for all i 0 integer. Substituting this expansi<strong>on</strong> into (4) and using the generalexpressi<strong>on</strong> for F (x, δ), we obtain˜f(x) = ˜f(k + ξ) =i∑max∑2ii=0 m=0( ) 2i(−1) m[ ]F i (ξ)f k−m+i+1 + F i (1 − ξ)f k−m+i . (8)mSubstituting ξ = x − k = β 1 (1 − x + k) and1− ξ =1− x + k = β 1 (x − k), where β 1 (x) isthe linear interpolati<strong>on</strong> kernel, or first-degree B-spline [8, 12, 14], and using the facts thatβ 1 (−x) =β 1 (x), ∀x ∈ R, β 1 (x) =0, ∀|x| 1, and F i (0) = 0, ∀i, we find that the twoterms between square brackets in (8) may be combined to ∑ l∈Z F i(β 1 (x−k −l) ) f k−m+i+l ,so that we obtain the following expressi<strong>on</strong> for the impulse resp<strong>on</strong>se, i.e., thekernel:ϕ(x) =i∑max∑2ii=0 m=0( ) 2i(−1) m (F i β 1 (x − m + i) ) . (9)mBy taking i max =1,F 0 (x) =x, andF 1 (x) = 1 2 x2 (x − 1), it now easily follows from (9)that the kernel involved in the Karup-King type of osculatory interpolati<strong>on</strong> is precisely (2).Similarly, taking i max =2,F 0 (x) =x, F 1 (x) = 1 6 x(x2 − 1), and F 2 (x) =− 112 x2 (x − 1), wefind that the kernel involved in Henders<strong>on</strong>’s type of osculatory interpolati<strong>on</strong> is precisely (3).


PP-4A <str<strong>on</strong>g>Note</str<strong>on</strong>g> <strong>on</strong> <strong>Cubic</strong> C<strong>on</strong>voluti<strong>on</strong> Interpolati<strong>on</strong>VDiscussi<strong>on</strong>From our analysis in the previous secti<strong>on</strong> it follows that Karup-King osculatory interpolati<strong>on</strong>is formally equivalent to Keys third-order cubic c<strong>on</strong>voluti<strong>on</strong> interpolati<strong>on</strong>. Sincethe third-order cubic c<strong>on</strong>voluti<strong>on</strong> kernel defined by Keys is a special case of an infinitelylarge family of cubic interpolati<strong>on</strong> kernels having the same properties in terms of approximati<strong>on</strong>order and regularity, this is a rather surprising result. The same can be saidabout the equivalence of Henders<strong>on</strong> osculatory interpolati<strong>on</strong> and Keys fourth-order cubicc<strong>on</strong>voluti<strong>on</strong> interpolati<strong>on</strong>.Notwithstanding their formal equivalence, however, it will be clear that the schemesare rather different from a computati<strong>on</strong>al perspective. Comparis<strong>on</strong> of (1) and (2) versus(4) and (5), for example, shows that for a single interpolati<strong>on</strong>, Keys’ third-order cubicc<strong>on</strong>voluti<strong>on</strong> scheme requires the evaluati<strong>on</strong> of four cubic polynomials, compared to twocubic and two linear polynomials in the case of Karup-King osculatory interpolati<strong>on</strong>.Working out the details, it follows that for a separable interpolati<strong>on</strong> operati<strong>on</strong> the formerscheme requires a minimum of 23 floating-point operati<strong>on</strong>s (flops) per pixel per dimensi<strong>on</strong>,whereas the latter requires <strong>on</strong>ly 13. In the more complex case of Keys’ fourth-order cubicc<strong>on</strong>voluti<strong>on</strong> scheme and Henders<strong>on</strong>’s osculatory interpolati<strong>on</strong> scheme it follows that thenumber of flops is 37 for the former versus 30 for the latter. In the more general case ofn<strong>on</strong>separable operati<strong>on</strong>s, the gain can be made even higher if the central difference valuesare precomputed. This, however, requires more computer memory. It appears thereforethat the osculatory equivalents of c<strong>on</strong>voluti<strong>on</strong>-based interpolati<strong>on</strong> schemes allow for fasterthough more memory demanding algorithms.Furthermore we note that the schemes of Karup-King and Henders<strong>on</strong> are but two examplesof the numerous osculatory interpolati<strong>on</strong> schemes discussed by Greville [2]. Althougha full-fledged study of these schemes is outside the scope of the present corresp<strong>on</strong>dence, itmay be worthwhile to give explicit forms and properties of other interesting cubic interpolati<strong>on</strong>kernels that follow from them. To the best of our knowledge, these kernels havenot been investigated before in the signal and image processing literature.As a first example we menti<strong>on</strong> the scheme—apparently also due to Henders<strong>on</strong>—givenby F 0 (x) =x and F 1 (x) =−6F 2 (x) = 1 6 x(x2 − 1). Applying (9) we find that its kernel is⎧⎪⎨ϕ(x) =⎪⎩79 |x|3 − 3 2 |x|2 − 518|x| +1 if 0 |x| 1,− 1136 |x|3 + 7 4 |x|2 − 28 9 |x| + 5 3if 1 |x| 2,136 |x|3 − 1 4 |x|2 + 1318 |x|− 2 3if 2 |x| 3,0 if 3 |x|.This kernel shares the property with the Keys-Henders<strong>on</strong> fourth-order kernel (3) that itssupport is [−3, 3] and its order of approximati<strong>on</strong> L = 4. Its regularity, however, is <strong>on</strong>lyC 0 , similar to the cubic Lagrange central interpolati<strong>on</strong> kernel [10, 11].A sec<strong>on</strong>d scheme menti<strong>on</strong>ed by Greville is given by F 0 (x) =x, F 1 (x) =x(x − 1) ( (2α +12 )x − α) ,andF 2 (x) = 1 2 αx2 (x − 1). Because of its free parameter, α, it c<strong>on</strong>stitutes awhole family of cubic interpolati<strong>on</strong> kernels, the general form of which follows from (9) as⎧(α + 3 2 )|x|3 − (α + 5 2 )|x|2 +1 if 0 |x| 1,⎪⎨ 12ϕ(x) =(α − 1)|x|3 − (3α − 5 2 )|x|2 +( 11 2α − 4)|x|−(3α − 2) if 1 |x| 2,− 1 2⎪⎩α|x|3 +4α|x| 2 − 21 2α|x| +9α if 2 |x| 3,0 if 3 |x|.(11)(10)


VI C<strong>on</strong>clusi<strong>on</strong>sPP-5Analyzing (11) we observe that the family includes both Keys’ third-order kernel (2) andhis fourth-order kernel (3), respectively corresp<strong>on</strong>ding to α =0andα = − 1 6. For anyα ∈ R, the resulting kernel has at least regularity C 1 and approximati<strong>on</strong> order L =3.Finally we menti<strong>on</strong> the even more general, two-parameter scheme given by F 0 (x) =x,F 1 (x) = x(x − 1) ( (2α + 1 2 )x − α) , F 2 (x) = x ( ( 1 2 α +2β)x2 − ( 1 2 α +3β)x + β) , andF 3 (x) = 1 2 βx2 (x−1). The general form of the family of kernels following from this scheme is⎧(α − 5 2 β + 3 2 )|x|3 − (α − 5 2 β + 5 2 )|x|2 +1 if 0 |x| 1,1⎪⎨ 2 (α − β − 1)|x|3 − (3α − 9 2 β − 5 2 )|x|2 +( 11 2α − 10β − 4)|x|−(3α − 6β − 2) if 1 |x| 2,ϕ(x) = − 1 2 (α − 3β)|x|3 +(4α − 25 2 β)|x|2 − ( 21 2α − 34β)|x| +(9α − 30β) if 2 |x| 3,− 1 2⎪⎩β|x|3 + 11 2 β|x|2 − 20β|x| +24β if 3 |x| 4,0 if 4 |x|.(12)Similar to the previously menti<strong>on</strong>ed kernel, (11), which corresp<strong>on</strong>ds to the special caseβ = 0, this kernel has at least regularity C 1 and approximati<strong>on</strong> order L =3.VIC<strong>on</strong>clusi<strong>on</strong>sIn this corresp<strong>on</strong>dence we have derived a general expressi<strong>on</strong> for the kernels implicitly involvedin classical osculatory interpolati<strong>on</strong> schemes. Using this formula we have shownthat the still popular cubic c<strong>on</strong>voluti<strong>on</strong> kernels described by Keys [5] twenty years agoare precisely the kernels involved in the osculatory interpolati<strong>on</strong> schemes proposed byKarup and King [4, 6] and Henders<strong>on</strong> [3] around 1900. We have also discussed theircomputati<strong>on</strong>al differences, from which we c<strong>on</strong>clude that the osculatory versi<strong>on</strong>s are computati<strong>on</strong>allycheaper, but require additi<strong>on</strong>al memory. Finally we have given the explicitforms and properties of other cubic c<strong>on</strong>voluti<strong>on</strong> interpolati<strong>on</strong> kernels implicitly used inthe actuarial literature for a l<strong>on</strong>g time now, but which to the best of our knowledge havenot been investigated before in the c<strong>on</strong>text of signal and image processing. Further studywill be required to reveal the suitability of these kernels and the optimal values of theirfree parameters for specific applicati<strong>on</strong>s.AcknowledgmentsThe work described in this paper was supported in part by the Netherlands Organizati<strong>on</strong>for Scientific Research (NWO). The original versi<strong>on</strong> of the paper was written whilethe first author was with the <strong>Biomedical</strong> <strong>Imaging</strong> Group (BIG) of the Swiss Federal Instituteof Technology in Lausanne (EPFL), Switzerland, and the revisi<strong>on</strong> was completedwhile he was with the <strong>Biomedical</strong> <strong>Imaging</strong> Group Rotterdam (BIGR) of the ErasmusMC—University Medical Center Rotterdam, the Netherlands. The authors are gratefulto Dr. Erik Jan Dubbink (Josephine Nefkens Institute, Erasmus University Rotterdam,the Netherlands) and Mr. Steven Gheyselinck (Bibliothèque Centrale, École PolytechniqueFédérale de Lausanne, Switzerland) for providing them with copies of references [4] and [3],respectively. They would also like to thank the sec<strong>on</strong>dly assigned Associate Editor andreviewers for their c<strong>on</strong>tributi<strong>on</strong>s in bringing the review of this paper, as historical as thepaper’s subject matter, to a happy ending.


PP-6A <str<strong>on</strong>g>Note</str<strong>on</strong>g> <strong>on</strong> <strong>Cubic</strong> C<strong>on</strong>voluti<strong>on</strong> Interpolati<strong>on</strong>References[1] E. Catmull & R. Rom, “A Class of Local Interpolating Splines”, in Computer Aided GeometricDesign, R. E. Barnhill & R. F. Riesenfeld (eds.), Academic Press, New York, NY, 1974,pp. 317–326.[2] T. N. E. Greville, “The General Theory of Osculatory Interpolati<strong>on</strong>”, Transacti<strong>on</strong>s of theActuarial Society of America, vol. 45, 1944, pp. 202–265.[3] R. Henders<strong>on</strong>, “A Practical Interpolati<strong>on</strong> Formula. With a Theoretical Introducti<strong>on</strong>”, Transacti<strong>on</strong>sof the Actuarial Society of America, vol. 9, no. 35, 1906, pp. 211–224.[4] J. Karup, “Über eine Neue Mechanische Ausgleichungsmethode”, in Transacti<strong>on</strong>s of theSec<strong>on</strong>d Internati<strong>on</strong>al Actuarial C<strong>on</strong>gress, G. King (ed.), Charles and Edwin Layt<strong>on</strong>, L<strong>on</strong>d<strong>on</strong>,1899, pp. 31–77. Translati<strong>on</strong>: “On a New Mechanical Method of Graduati<strong>on</strong>”, pp. 78–109.[5] R. G. Keys, “<strong>Cubic</strong> C<strong>on</strong>voluti<strong>on</strong> Interpolati<strong>on</strong> for Digital Image Processing”, IEEE Transacti<strong>on</strong>s<strong>on</strong> Acoustics, Speech, and Signal Processing, vol. 29, no. 6, 1981, pp. 1153–1160.[6] G. King, “<str<strong>on</strong>g>Note</str<strong>on</strong>g>s <strong>on</strong> Summati<strong>on</strong> Formulas of Graduati<strong>on</strong>, with Certain New Formulas forC<strong>on</strong>siderati<strong>on</strong>”, Journal of the Institute of Actuaries, vol. 41, 1907, pp. 530–565.[7] T. M. Lehmann, C. Gönner, K. Spitzer, “Survey: Interpolati<strong>on</strong> Methods in Medical ImageProcessing”, IEEE Transacti<strong>on</strong>s <strong>on</strong> Medical <strong>Imaging</strong>, vol. 18, no. 11, 1999, pp. 1049–1075.[8] E. H. W. Meijering, W. J. Niessen, M. A. Viergever, “Quantitative Evaluati<strong>on</strong> of C<strong>on</strong>voluti<strong>on</strong>-Based Methods for Medical Image Interpolati<strong>on</strong>”, Medical Image Analysis, vol. 5, no. 2, 2001,pp. 111–126.[9] S. S. Rifman, “Digital Rectificati<strong>on</strong> of ERTS Multispectral Imagery”, in Proceedings of theSymposium <strong>on</strong> Significant Results Obtained from the Earth Resources Technology Satellite-1,vol. 1, secti<strong>on</strong> B, NASA SP-327, 1973, pp. 1131–1142.[10] R. W. Schafer & L. R. Rabiner, “A Digital Signal Processing Approach to Interpolati<strong>on</strong>”,Proceedings of the IEEE, vol. 61, no. 6, 1973, pp. 692–702.[11] A. Schaum, “Theory and Design of Local Interpolators”, CVGIP: Graphical Models andImage Processing, vol. 55, no. 6, 1993, pp. 464–481.[12] I. J. Schoenberg, “C<strong>on</strong>tributi<strong>on</strong>s to the Problem of Approximati<strong>on</strong> of Equidistant Data byAnalytic Functi<strong>on</strong>s”, Quarterly of Applied Mathematics, vol. 4, no. 1 & 2, 1946, pp. 45–99 &112–141.[13] E. S. W. Shiu, “A Survey of Graduati<strong>on</strong> Theory”, in Actuarial Mathematics, H.H.Panjer(ed.), vol. 35 of Proceedings of Symposia in Applied Mathematics, American MathematicalSociety, Providence, RI, 1986, pp. 67–84.[14] P. Thévenaz, T. Blu, M. Unser, “Interpolati<strong>on</strong> Revisited”, IEEE Transacti<strong>on</strong>s <strong>on</strong> Medical<strong>Imaging</strong>, vol. 19, no. 7, 2000, pp. 739–758.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!