Error bounds for a convexity-preserving interpolation and its limit function

Error bounds for a convexity-preserving interpolation and its limit function

Journal of Computational and Applied Mathematics 211 (2008) 36 – 44 www.elsevier.com/locate/cam Error bounds for a convexity-preserving interpolation...

162KB Sizes 0 Downloads 92 Views

Journal of Computational and Applied Mathematics 211 (2008) 36 – 44 www.elsevier.com/locate/cam

Error bounds for a convexity-preserving interpolation and its limit function夡 S. Amata , K. Dadourianb , R. Donatc , J. Liandratd , J.C. Trilloe,∗ a Departamento de Matemática Aplicada y Estadística, Universidad Politécnica de Cartagena, Spain b Ecole Généraliste d’Ingénieurs de Marseille (EGIM), Laboratoire d’Analyse Topologie et Probabilites, France c Departamento de Matemática Aplicada, Universidad de Valencia, Spain d Ecole Généraliste d’Ingénieurs de Marseille (EGIM), Laboratoire d’Analyse Topologie et Probabilites, France e Departamento de Matemática Aplicada y Estadística, Universidad Politécnica de Cartagena, Spain

Received 31 July 2006; received in revised form 1 November 2006

Abstract Error bounds between a nonlinear interpolation and the limit function of its associated subdivision scheme are estimated. The bounds can be evaluated without recursive subdivision. We show that this interpolation is convexity preserving, as its associated subdivision scheme. Finally, some numerical experiments are presented. © 2006 Elsevier B.V. All rights reserved. MSC: 41A05; 41A10; 65D05; 65D17 Keywords: Nonlinear subdivision schemes; Error bounds; Convexity preserving

1. Introduction Subdivision schemes are useful tools for the design of curves and surfaces. Recently, various attempts to improve the classical linear schemes have led to nonlinear algorithms. In [1] in the context of image compression, a new nonlinear multiresolution algorithm, based on a nonlinear interpolation called PPH (piecewise polynomial harmonic), has been presented. It has been analyzed in terms of convergence and stability of an associated subdivision scheme following an approach for data-dependent algorithms introduced in [4]. Edge resolution, robustness with regard to texture or noise, accuracy and compression rate have been investigated. The numerical tests confirm the adaption to the presence of singularities of the PPH reconstruction. The stability of the PPH multiresolution algorithm was studied in [2]. Independently, the PPH subdivision scheme was also introduced in [5,6] in the framework of convexity-preserving subdivision schemes. In [6], the PPH subdivision scheme is mentioned as an example of interpolatory subdivision scheme converging, for any initial sequence, towards a limit function that is piecewise convex (concave) and continuously differentiable. 夡

Research supported in part by the Spanish Grants MTM2004-07114 and 00675/PI/04.

∗ Corresponding author.

E-mail addresses: [email protected] (S. Amat), [email protected] (K. Dadourian), [email protected] (R. Donat), [email protected] (J. Liandrat), [email protected] (J.C. Trillo). 0377-0427/$ - see front matter © 2006 Elsevier B.V. All rights reserved. doi:10.1016/j.cam.2006.11.003

S. Amat et al. / Journal of Computational and Applied Mathematics 211 (2008) 36 – 44

37

In practice, we start with an initial set of control points and we refine it using the subdivision schemes. After several steps we obtain a new set of points. The question is how this new polygon approximates the limiting curve [3,7–9]. This question appears in many applications as rendering, intersection testing and design. Usually, we consider the piecewise linear interpolation to the polygon and estimate its difference with the limit function of the subdivision scheme. Since the PPH reconstruction gives us better numerical results than linear interpolations, we propose to approximate the curve using the piecewise PPH interpolation associated with the final polygon obtained using the PPH subdivision scheme. Therefore, we are interested in getting error bounds estimations for the approximation of the limit function of the PPH subdivision scheme using the PPH interpolation of the data at a given stage of the subdivision process. The estimations we obtain depend only on the infinity norm of the differences of the initial control points. As we said before, the PPH subdivision scheme preserves convexity properties of the initial control points. This raises the question whether the same is true for PPH interpolation. We show that the answer is affirmative. We present some numerical tests that confirm the obtained theoretical results. The paper is organized as follows: In Section 2, we briefly review the PPH interpolation. The two main results about the error bounds and the convexity properties appear in Section 3. Finally, we present some numerical results in Section 4. 2. The nonlinear PPH interpolation and its associated subdivision scheme The PPH interpolation is, as it is explained in the sequel, a piecewise polynomial interpolation of degree 3 adapted to the presence of discontinuities. Let us consider the set of points fj −1 , fj , fj +1 , fj +2 corresponding to values at points xj −1 , xj , xj +1 , xj +2 of a regular grid X and let us describe the prediction of the value fˆ2j +1 at the mid-point (xj + xj +1 )/2 = xj +1/2 . Classically, fˆ2j +1 is defined as the value at xj +1/2 of a polynomial P˜j and therefore we focus on the definition of P˜j . Introducing the divided differences Df j = (fj +1 − 2fj + fj −1 )/2h2 , it is shown in [1] that when |Df j | |Df j +1 |, P˜j is the polynomial of degree 3 defined by  P˜j (xl ) = fl for j − 1 l j + 1, (1) P˜j (xj +2 ) = f˜j +2 , with f˜j +2 = fj +1 + fj − fj −1 + 4H (Df j , Df j +1 )h2 , where H, the harmonic mean function, is defined by (x, y) ∈ R2  → H (x, y) :=

xy (sgn(xy) + 1), x+y

(2)

where sgn(x) = 1 if x 0 and sgn(x) = −1 if x < 0. When |Df j | > |Df j +1 | the corresponding rearrangements are done in fj −1 instead. It is easy to check [1] that, for symmetry reasons, in both cases P˜j (xj +1/2 ) =

fj + fj +1 1 − H (Df j , Df j +1 )h2 . 2 4

(3)

It is interesting to compare this expression with the equivalent one obtained from the centered Lagrange interpolatory polynomial Pj (x) Pj (xj +1/2 ) =

fj + fj +1 1 Df j + Df j +1 2 h . − 2 2 4

(4)

Comparing (3) to (4) we note that the net effect is the replacement of the arithmetic mean of Df j and Df j +1 by the ‘modified’ harmonic mean H (Df j , Df j +1 ). The arithmetic mean and the harmonic mean of two values are very close for values of the same magnitude, but the harmonic mean is always bounded in absolute value by twice the absolute

38

S. Amat et al. / Journal of Computational and Applied Mathematics 211 (2008) 36 – 44

value of the smallest of the two numbers. This property is the key to the behavior of the PPH reconstruction close to isolated singularities. Reformulation: Note that the coefficients of the Lagrange interpolatory polynomial Pj (x) = a0 + a1 (x − xj +1/2 ) + a2 (x − xj +1/2 )2 + a3 (x − xj +1/2 )3 , satisfying Pj (xi ) = fi ,

i = j − 1, . . . , j + 2,

can be computed solving the linear system of equations ⎛ ⎞ ⎛ ⎞ ⎞ ⎛ ⎞ ⎛ fj −1 a0 a0 fj −1 ⎜ ⎟ fj ⎜ a1 ⎟ ⎜ a1 ⎟ ⎜ fj ⎟ ⎟ −1 ⎜ ⎟, ⎝ ⎠ = A⎝ ⎠ or ⎝ ⎠ = AT h ⎜ f j +1 a2 a2 fj +1 ⎝ Df + Df ⎠ j j +1 fj +2 a3 a3 2 where A−1 is the linear operator given by



⎞ ⎛ −3h −3h 3 −3h 2 ⎟ ⎜1 2 2 2 ⎜

2

3 ⎟ ⎟ ⎜ −h −h ⎟ ⎜ 1 −h ⎟ ⎜ ⎟ ⎜ 2 2 2 −1 A =⎜ 3 ⎟ 2 ⎟ ⎜ h h h ⎟ ⎜1 ⎟ ⎜ 2 2 2 ⎟ ⎜



2 3 ⎠ ⎝ 3h 3h 3h 1 2 2 2 and ⎛

1 ⎜ 0 Th = ⎜ ⎝ 0 1 (4h2 )

0 1 0 −1 (4h2 )

0 0 1 −1 (4h2 )

0 ⎞ 0 ⎟ 0 ⎟ ⎠ 1 (4h2 )



and

1 ⎜ 0 −1 Th = ⎝ 0 −1

0 1 0 1

0 0 1 1

⎞ 0 0 ⎟ ⎠. 0 4h2

In the case |Df j | |Df j +1 | , the PPH interpolatory polynomial P˜j (x) = a˜ 0 + a˜ 1 (x − xj +1/2 ) + a˜ 2 (x − xj +1/2 )2 + a˜ 3 (x − xj +1/2 )3 is defined by ⎛

⎞ ⎛ ⎞ a˜ 0 fj −1 fj ⎜ a˜ 1 ⎟ ⎟ −1 ⎜ ⎝ ⎠ = AT h ⎝ ⎠. a˜ 2 fj +1 a˜ 3 H (Df j , Df j +1 ) For more details on a full description of the original PPH scheme see [1]. In a natural way, we can obtain a subdivision scheme associated with any interpolatory reconstruction R. The refinement by subdivision of a sequence at level k is carried out as follows: k+1 k+1 f2j +1 = (Rk f k )(x2j +1 ), k Sf = (5) k+1 k+1 f2j = (Rk f k )(x2j ) = fjk .

S. Amat et al. / Journal of Computational and Applied Mathematics 211 (2008) 36 – 44

39

Because of the interpolation property, only the odd components of the refined sequence have to be computed. For the PPH reconstruction operator described above, this can be written as follows: ⎧ fj +1 + fj 1 D(f ) D(f ) ⎨ − D(f ) j+D(f j)+1 j j +1 k 2 4 (Sf )2j +1 = f ⎩ j +1 + fj 2

if D(f )j D(f )j +1 > 0,

(6)

else,

with k k D(f )i = fi+1 − 2fik + fi−1 .

(7)

3. Error bounds and convexity properties In [1], we have obtained the convergence of the PPH subdivision scheme. Since the PPH reconstruction gives us better numerical results than linear interpolations, we propose to approximate the limiting curve using the piecewise PPH interpolation associated with the final polygon obtained using the PPH subdivision scheme. The numerical performance is related to the following properties of the PPH reconstruction operator [1]: (1) By construction, the data used for the interpolation remain centered. (2) If f is a polynomial of degree less than or equal to 2, Df j = Df j +1 =

Df j + Df j +1 2

= H (Df j , Df j +1 ),

therefore the proposed scheme reproduces polynomials of degree 2. (3) If f ∈ C 4 and Df j Df j +1 > 0, using a Taylor expansion we get 2

Df j Df j +1 Df j + Df j +1

Df j + Df j +1 2

=

=

f  (xj +1/2 ) + O(h2 ), 2

f  (xj +1/2 ) + O(h2 ). 2

Therefore, in smooth regions, the difference between the arithmetic mean and the harmonic mean is O(h2 ). Using the reformulation in Section 2 we get that ai − a˜ i = O(h4−i ) for i = 0, 1, 2, 3; hence the proposed reconstruction remains fourth-order accurate in smooth regions. (4) When Df j Df j +1 0, P˜ (xj +1/2 ) = (fj +1 + fj )/2. In this case, the accuracy of the reconstruction is limited to second order even in smooth regions. (5) If there is a discontinuity in [xj +1 , xj +2 ] the Gibbs phenomenon of linear reconstruction does not appear. In addition, the order of accuracy of the reconstruction in [xj , xj +1 ] remains O(h2 ) in this case. We are interested in getting the estimations for the approximation error with respect to the limit function of the PPH subdivision scheme, using the PPH interpolation on the data at one particular stage of the subdivision process. The estimations we present depend only on the infinity norm of the differences of the initial control points. The following result, which we will need in the proof of the proposition, is proven in [1]: Lemma 1. Associated with the PPH nonlinear reconstruction, there exists a nonlinear subdivision scheme S1 for the differences that satisfies S1 k l∞ (Z)  21 k l∞ (Z) where kj := fjk+1 − fjk .

∀f k ∈ l∞ (Z),

40

S. Amat et al. / Journal of Computational and Applied Mathematics 211 (2008) 36 – 44

Proposition 1. Let {Rk } be the sequence of nonlinear PPH reconstruction operators and S ∞ (f 0 ) the limit function of the PPH interpolatory subdivision scheme associated with the initial control points f 0 . Then, for all k S ∞ (f 0 ) − Rk (f k )L∞ (R) 

11 0 l∞ (Z) , 2k−1

(8)

where kj = fjk+1 − fjk . k+1 k+1 , x2j +1 ] (the case Proof. Let f k ∈ l∞ (Z) and x ∈ R. Let j be such that x ∈ [xjk , xjk+1 ], and assume that x ∈ [x2j k+1 k+1 x ∈ [x2j +1 , x2j +2 ] is similar).

k+1 We shall also assume that we are in the case |Df kj | > |Df kj +1 | and |Df k+1 2j | > |Df 2j +1 |. The other three possible cases give rise to the same bound, and the process to get it is completely analogous to the following. k+1 k+1 Since x ∈ [x2j , x2j +1 ] ⊂ [xjk , xjk+1 ], using (1), we can write k+1 k+1 k+1 k+1 Rk+1 (f k+1 )(x) = A−1 (x)f˜2j −1 + A0 (x)f2j + A1 (x)f2j +1 + A2 (x)f2j +2 ,

Rk (f k )(x) = B−1 (x)f˜jk−1 + B0 (x)fjk + B1 (x)fjk+1 + B2 (x)fjk+2 , k+1 )/ hk+1 ) and Bm (x) = Lm ((x − xjk )/ hk ). Here Lm (x), m = −1, 0, 1, 2, are the Lagrange with Am (x) = Lm ((x − x2j k+1 basis for the 4-point centered interpolatory stencil.1 Since (x − x2j )/ hk+1 ∈ [0, 1] and (x − xjk )/ hk ∈ [0, 1], then

|Am (x)| < 1,

|Bm (x)| < 1.

(9)

From now on, we drop the explicit dependence on x for the sake of clarity and write simply Am and Bm when referring to these quantities. Since f k+1 = Sf k and S is interpolatory we have k+1 k ˜k |Rk+1 (f k+1 )(x) − Rk (f k )(x)| = |A−1 f˜2j −1 − B−1 fj −1 + (A0 − B0 )fj k+1 k k + A1 f2j +1 + (A2 − B1 )fj +1 − B2 fj +2 |

with ⎧ fk + fk j −1 j ⎪ ⎪ − ⎨ 2 k+1 f2j −1 = k k ⎪ ⎪ ⎩ fj −1 + fj , 2 ⎧ fk + fk j +1 j ⎪ ⎪ − ⎨ 2 k+1 f2j +1 = k k ⎪ ⎪ ⎩ fj −1 + fj . 2

k k k k 1 (j −1 − j −2 )(j − j −1 ) 4 kj − kj −2

k k k k 1 (j − j −1 )(j +1 − j ) 4 kj +1 − kj −1

Taking into account the properties of the harmonic mean   k k k k   (  j −1 − j −2 )(j − j −1 )   2k l∞ (Z) ,    kj − kj −2 1 L (y) = 2 m l=−1,l =m ((y − l)/(m − l)).

or

or

(10)

S. Amat et al. / Journal of Computational and Applied Mathematics 211 (2008) 36 – 44

41

k+1 and similarly for the corresponding term in f2j +1 , and that

|fjk−1 − f˜jk−1 | 2k l∞ (Z) ,

(11)

k+1 k+1 ˜k+1 |f2j l∞ (Z) k l∞ (Z) . −1 − f2j −1 | 2

(12)

We obtain  |Rk+1 (f

k+1

k

)(x) − Rk (f )(x)||A−1 +

fjk−1 + fjk 2

 − B−1 fjk−1 

(A0 − B0 )fjk

+ A1

fjk+1 + fjk



2

+ (A2 − B1 )fjk+1 − B2 fjk+2 |

+ 4k l∞ (Z) .

The first term on the right-hand side can be rewritten as  



  A−1 A1 k k k k k k   − B + A − B + − f ) + B (f − f ) (f (f − f ) + A − B −1 0 0 2 j +1 −1 −1 j −1 j j j +1 j +2  .  2 2 Then, using (9) |Rk+1 (f k+1 )(x) − Rk (f k )(x)|11k l∞ (Z) ,

(13)

and the same is true for the other cases. Finally, |S∞ (f )(x) − Rk (f k )(x)|



|Rl+1 (f l+1 )(x) − Rl (f l )(x)|

l k

11



l k 0

l l∞ (Z)

11 l∞ (Z)

 1 l l k

2

k−1 1 = 11 0 l∞ (Z) . 2



It is proven in [6] that the PPH subdivision scheme preserves the convexity properties of the initial control points. In turn, it is straightforward to prove that Rk (f k ) is a piecewise convex function if the initial data are convex. This is a consequence of the following proposition. Proposition 2. If Df j > 0 and Df j +1 > 0, then P˜j (x) > 0 ∀x ∈ [xj −1/2 , xj +3/2 ]. Proof. Let us suppose without loss of generality that Df j Df j +1 . From the expression of the PPH polynomial P˜j (x) = a˜ 0 + a˜ 1 (x − xj +1/2 ) + a˜ 2 (x − xj +1/2 )2 + a˜ 3 (x − xj +1/2 )3 ,

(14)

we get that P˜j (x) = 2a˜ 2 + 6a˜ 3 (x − xj +1/2 ),

(15)

42

S. Amat et al. / Journal of Computational and Applied Mathematics 211 (2008) 36 – 44

where, due to the reformulation, a˜ 2 and a˜ 3 are given by ⎛

⎞ ⎛ ⎞ a˜ 0 fj −1 fj ⎜ a˜ 1 ⎟ ⎟ −1 ⎜ ⎝ ⎠ = AT h ⎝ ⎠, a˜ 2 fj +1 a˜ 3 H (Df j , Df j +1 ) where the matrices A and Th−1 are ⎛ −1 ⎜ 16 ⎜ 1 ⎜ ⎜ 24h A=⎜ ⎜ 1 ⎜ ⎜ 4h2 ⎝ −1 (6h3 )

9 16 −9 8h −1 4h2 1 (2h3 )

9 16 9 8h −1 4h2 −1 (2h3 )

−1 ⎞ 16 ⎟ −1 ⎟ ⎟ 24h ⎟ ⎟ 1 ⎟ ⎟ 4h2 ⎟ 1 ⎠ (6h3 )



and

1 ⎜ 0 −1 Th = ⎝ 0 −1

0 1 0 1

0 0 1 1

⎞ 0 0 ⎟ ⎠. 0 2 4h

Thus, 1 1 1 fj −1 − 2 fj − 2 fj +1 2 4h 4h 4h 1 + (−fj −1 + fj + fj +1 + 4h2 H (Df j , Df j +1 )) 4h2 = H (Df j , Df j +1 )

a˜ 2 =

and 1 1 −1 fj −1 + 3 fj − 3 fj +1 3 2h 2h 6h 1 + (−fj −1 + fj + fj +1 + 4h2 H (Df j , Df j +1 )) 6h3 1 = (−2Df j + 2H (Df j , Df j +1 )). 3h

a˜ 3 =

So, we get that P˜j (x) = 2(H (Df j , Df j +1 ) +

(x − xj +1/2 ) (−2Df j + 2H (Df j , Df j +1 ))). h

(16)

We define G(x) := (h + 2(x − xj +1/2 ))

Df j +1 Df j + Df j +1

− (x − xj +1/2 ).

(17)

Proving that P˜j (x) > 0 ∀x ∈ [xj −1/2 , xj +3/2 ] is equivalent to proving that G(x) > 0 ∀x ∈ [xj −1/2 , xj +3/2 ], since Df j > 0. Now we distinguish two cases: (a) If Df j = Df j +1 , then G(x) = h/2 > 0 ∀x ∈ [xj −1/2 , xj +3/2 ]. (b) If Df j < Df j +1 , then we proceed as follows. From (17) we get G (x) =

2Df j +1 Df j + Df j +1

− 1,

(18)

S. Amat et al. / Journal of Computational and Applied Mathematics 211 (2008) 36 – 44

1

1

0.8

0.8

0.6

0.6

0.4

0.4

0.2

0.2

0

0

-0.2

-0.2

-0.4

-0.4

-0.6

-0.6

-0.8

-0.8

-1

-1 0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

0

0.1

0.2

0.3

0.4

0.5

43

0.6

0.7

0.8

0.9

1

Fig. 1. Function f (x)=sin x, left: polygonal approximation to the limit function, right: approximation to the limit function using PPH interpolation.

1.05

1.05

1

0.95

1

0.9

0.95

0.85

0.9

0.8

0.85

0.04

0.06

0.08

0.1

0.12

0.14

0.16

0.1

0.05

0.15

Fig. 2. Function f (x) = sin x, convex region close to x = 0.5, left: polygonal approximation to the limit function, right: approximation to the limit function using PPH interpolation.

which satisfy that G (x) > 0 ∀x ∈ [xj −1/2 , xj +3/2 ], since Df j < Df j +1 . Now, evaluating in xj −1/2 we have Df j +1 G(xj −1/2 ) = (h + 2(xj −1/2 − xj +1/2 )) − (xj −1/2 − xj +1/2 ) Df j + Df j +1   Df j +1 =h 1− > 0. Df j + Df j +1 Thus, we get also in this case G(x) > 0 ∀x ∈ [xj −1/2 , xj +3/2 ].



44

S. Amat et al. / Journal of Computational and Applied Mathematics 211 (2008) 36 – 44

4. A numerical test The aim of this section is to show the numerical performance of the PPH interpolation when used to get an approximation to the limit function of the corresponding subdivision scheme at a certain level of resolution. In order to show the differences between using the PPH interpolation as an approximation to the limiting function instead of the usual piecewise linear approximation, we consider the function f : [0, 1] → R given by f (x) = sin 4x. We start the subdivision process on a discrete mesh with nine equally spaced points and the corresponding values of f (x) on this mesh. We apply two levels of subdivision to get a new denser set of control points. From this step we either consider straight lines between the control points, building a polygonal approximation to the limit function of the subdivision scheme, or build the approximation to the limit function using the PPH interpolation between the control points. We show the results in Fig. 1. In Fig. 2 we observe the smoother behavior of the PPH interpolation, without losing the convexity properties of the initial data. References [1] S. Amat, R. Donat, J. Liandrat, J.C. Trillo, Analysis of a new nonlinear subdivision scheme. Applications in image processing, Found. Comput. Math. 6 (2) (2006) 193–226. [2] S. Amat, J. Liandrat, On the stability of PPH nonlinear multiresolution, Appl. Comput. Harmon. Anal. 18 (2) (2005) 198–206. [3] F. Chen, Estimating subdivision depths for rational curves and surfaces, ACM Trans. Graph. 11 (2) (1992) 140–151. [4] A. Cohen, N. Dyn, B. Matei, Quasilinear subdivision schemes with applications to ENO interpolation, Appl. Comput. Harm. Anal. 15 (2003) 89 –116. [5] M.S. Floater, C.A. Micchelli, Nonlinear stationary subdivision, in: N.K. Govil, N. Mohapatra, Z. Nashed, A. Sharma, J. Szabados (Eds.), Approximation Theory: In Memory of A.K. Varna, 1998, pp. 209–224. [6] F. Kuijt, R. van Damme, Convexity preserving interpolatory subdivision schemes, Constr. Approx. 14 (1998) 609–630. [7] D. Lutterkort, J. Peters, Tight linear envelopes for splines, Numer. Math. 89 (2001) 735–748. [8] G. Mustafa, F. Chen, J. Deng, Estimating error bounds for binary subdivision curves/surfaces, J. Comput. Appl. Math. 193 (2006) 596–613. [9] D. Nairn, J. Peters, D. Lutterkort, Sharp quantitative bounds on the distance between a polynomial piece and its Bézier control polygon, Comput. Aided Geom. Design. 16 (1999) 613–631.