[BACK]
Computers, Materials & Continua
DOI:10.32604/cmc.2021.016006
images
Article

Scattered Data Interpolation Using Cubic Trigonometric Bézier Triangular Patch

Ishak Hashim1, Nur Nabilah Che Draman2, Samsul Ariffin Abdul Karim3,*, Wee Ping Yeo4 and Dumitru Baleanu5,6,7

1Department of Mathematical Sciences, Faculty of Science and Technology, Universiti Kebangsaan Malaysia, UKM, Bangi, 43600, Selangor Darul Ehsan, Malaysia
2Department of Fundamental and Applied Sciences, Universiti Teknologi PETRONAS, Seri Iskandar, 32610, Perak Darul Ridzuan, Malaysia
3Department of Fundamental and Applied Sciences and Centre for Systems Engineering (CSE), Institute of Autonoumous System Universiti Teknologi PETRONAS, Seri Iskandar, 32610, Perak Darul Ridzuan, Malaysia
4Faculty of Science, Universiti Brunei Darussalam, Bandar Seri Begawan, BE1410, Brunei Darussalam
5Department of Mathematics, Cankaya University, Ankara, Turkey
6Institute of Space Sciences, Magurele-Bucharest, Romania
7Department of Medical Research, China Medical University Hospital, China Medical University, Taichung, Taiwan
*Corresponding Author: Samsul Ariffin Abdul Karim. Email: samsul_ariffin@utp.edu.my
Received: 18 December 2020; Accepted: 18 January 2021

Abstract: This paper discusses scattered data interpolation using cubic trigonometric Bézier triangular patches with C1 continuity everywhere. We derive the C1 condition on each adjacent triangle. On each triangular patch, we employ convex combination method between three local schemes. The final interpolant with the rational corrected scheme is suitable for regular and irregular scattered data sets. We tested the proposed scheme with 36,65, and 100 data points for some well-known test functions. The scheme is also applied to interpolate the data for the electric potential. We compared the performance between our proposed method and existing scattered data interpolation schemes such as Powell–Sabin (PS) and Clough–Tocher (CT) by measuring the maximum error, root mean square error (RMSE) and coefficient of determination (R2). From the results obtained, our proposed method is competent with cubic Bézier, cubic Ball, PS and CT triangles splitting schemes to interpolate scattered data surface. This is very significant since PS and CT requires that each triangle be splitting into several micro triangles.

Keywords: Cubic trigonometric; Bézier triangular patches; C1sufficient condition; scattered data interpolation

1  Introduction

This paper investigates scattered data interpolation using trigonometric Bézier triangular patch that has been proposed by Zhu et al. [1]. Scattered data interpolation is about the construction of a smooth surface for non-uniform set of data. It can be prescribed by a given a set of scattered data V={(xi,yi),i=1,,n}R2 over a polygon domain and a corresponding set of real numbers {Zi}i=1n. Besides that, scattered data interpolation is very vital in many areas such as engineering fields, predicting rainfall and other data that needed to be measured or generated at irregular positions.

In a previous study, Saaban et al. [2] performed scattered data interpolation by using minimized sum of squares of principal curvatures. In additions, this scheme also uses geometric continuity which is G1 continuity between adjacent triangular patches to reconstruct surfaces. They applied the proposed scheme to some functions and to some real data such as soil erosion.

Butt et al. [3] proposed a scheme which exhibits the shape preserving properties by positivity, monotonicity and convexity 2D data by inserting more knots in the interval. The positivity of regular data arranged over a rectangular grid was discussed. Hussain et al. [4] proposed C1 continuity scattered data interpolation by preserving the positivity property. This scheme is modified by adding weights to the functions if the Bézier ordinates do not satisfy the derived positivity conditions.

Han [5] proposed cubic trigonometric polynomial curves with shape parameter where the order of continuity is dependent upon the knot vector (uniform or non-uniform) and the value of shape parameters. This scheme shows that the proposed scheme is closer to the control polygon than the corresponding B-spline curves. Besides that, the degree of the cubic trigonometric polynomial curves can be reduced to quadratic trigonometric polynomial curves which represent the ellipse.

Butt [6] preserved the shape of positive data by deriving sufficient conditions for the first partial derivatives and twist values by using a piecewise bi-cubic interpolant. Lamberti et al. [7] also proposed a method for the construction of C2 interpolating function. This scheme preserved the shape of curve via tension parameters. The calculation for approximation order and numerical examples is shown.

Floater [8,9] proposed another shape preserving property which is the convexity where [8] shows derivation of sufficient conditions convexity of tensor-product Bézier surfaces. The conditions focused on C1 tensor product B-spline surfaces. Unfortunately, the sufficient conditions in the form of inequalities which involved control points. Floater also defined convexity and rational convexity preservation of systems of functions. It is proven that the total positivity and rational convexity preservation are equivalent. Ali et al. [10] have constructed a new cubic Timmer triangular patch and applied it for scattered data interpolation. Based on the numerical results, their proposed scheme is better than the existing schemes in term of higher R2 and smaller SMSE and maximum error, however, their scheme took longer computational time to generate the results. Meanwhile Draman et al. [11] have constructed scattered data interpolation scheme by using rational quartic spline with three parameters. Karim et al. [12] have constructed new cubic Bézier-Like triangular patches with three parameters for scattered data interpolation. From numerical results, their proposed scheme is better than Radial basis functions (RBFs) scheme such as thin plate spline, gaussian etc.

The aim of this paper is to apply scattered data interpolation with trigonometric function which is cubic trigonometric Bézier. To our knowledge, this is the first study that applies trigonometric Bézier triangular for scattered data interpolation. We summarize the main advantages of the proposed scheme as follows:

a) The proposed scattered data interpolation uses cubic trigonometric Bézier with three parameters meanwhile Ali et al. [10], Draman et al. [11] and Karim et al. [12] have used different types of rational interpolants.

b) Our scheme only needs to triangulate the data one time. Meanwhile, Powell–Sabin (PS) and Clough–Tocher (CT) schemes needed to split the macro triangles into several micro triangles for each triangle. This will increase computation time to construct the final interpolating surface.

This paper is organized as follows: Section 2 discusses trigonometric Bézier triangular patches with three shape parameters. Section 3 states the properties of cubic trigonometric Bézier. Section 4 discusses the scattered data interpolation. Section 5 presents the numerical results including comparison with existing schemes. Conclusion and future work are given in Section 6.

2  Trigonometric Bézier Triangular Patch with Three Shape Parameters

Trigonometric Bézier triangular patches is constructed by Zhu et al. [1]. The trigonometric Bézier triangular patches are defined as follows:

Definition 1. Let α,β,γ[2,+), given control points PijkR3 (i,j,kN,i+j+k=3), and a domain triangle D={(u,v,w)u+v+w=π/2,u0,v0,w0} in which (u,v,w) are barycentric coordinates of the points in D. We call

R(u,v,w)=i+j+k=3Ti,j,k3(u,v,w;α,β,γ)Pi,j,k(u,v,w)D(1)

the trigonometric Bézier-Like patch over triangular domain with three exponential shape parameters α,β,γ.

Noted that, Ti,j,k is the basis function that stated in Definition 2

Definition 2. Let α,β,γ[2,+) for D={(u,v,w)u+v+w=π/2,u0,v0,w0} the following ten functions are defined as trigonometric Bézier Triangular patches.

T3,0,03(u,v,w;α,β,γ)=(1+cosu)αT0,3,03(u,v,w;α,β,γ)=(1+cosv)βT0,0,33(u,v,w;α,β,γ)=(1+cosw)γT2,1,03(u,v,w;α,β,γ)=coswsinv(1cosu)[1+cosu(1cosu)α1cosu]T2,0,13(u,v,w;α,β,γ)=cosvsinw(1cosu)[1+cosu(1cosu)α1cosu]T1,2,03(u,v,w;α,β,γ)=coswsinu(1cosv)[1+cosv(1cosv)β1cosv]T0,2,13(u,v,w;α,β,γ)=cosusinw(1cosv)[1+cosv(1cosv)β1cosv]

T1,0,23(u,v,w;α,β,γ)=cosvsinu(1cosw)[1+cosw(1cosw)γ1cosw](2)

T0,1,23(u,v,w;α,β,γ)=cosusinv(1cosw)[1+cosw(1cosw)γ1cosw]T1,1,13(u,v,w;α,β,γ)=2sinusinvsinw

Properties of Cubic Trigonometric Bézier Triangular Patches

From the definition of the basis function of trigonometric triangular patches, the list below is important properties of the basis [1].

a) Affine invariance and convex hull. The basis function have the properties of partition of unity and nonnegativity, so its simply corresponding that cubic trigonometric Bézier has

b) Geometric property at the corner points. Direct computation such as R(π/2,v,w)=P3,0,0R(u,π/2,w)=P0,3,0R(u,v,π/2)=P3,0,0 corner.

c) Corner points tangent plane.

d) Boundary property.

e) Shape adjustable property.

3  Scattered Data Interpolation

In this section, we will discuss the constrution of a smooth surface for given a set of scattered data V=(xi,yi,zi),i=1,2,,N with corresponding a set of real numbers zi=F(xi,yi),i=1,2,,N. We wish to reconstruct a surface which has C1 continuity everywhere. Throughout this section, we have adopted the main ideas from [1115].

Local scheme

This scheme comprises of the convex combination of three local schemes P1,P2 and P3 and is defined as

R(u,v,w)=vwP1+uwP2+uvP3vw+uw+uv,u+v+w=1(3)

R(u,v,w)=u2v2P1+v2w2P2+u2w2P3u2v2+v2w2+u2w2,u+v+w=1(4)

or

where the local scheme P1,P2,P3 is derived and replaces the inner ordinates in the proposed method as show in Fig. 1.

For inner ordinates, we have employed the cubic precision that was proposed by Foley et al. [15] while Goodman et al. [14] methods are used to calculate the boundary ordinates for each triangle. The vertices V1,V2 and V3 with barycentric coordinates (1, 0, 0), (0, 1, 0) and (0, 0, 1) respectively meanwhile e1,e2 and e3 are direction vectors which are (0, −1, 1), (1, 0, 1) and (−1, 1, 0) respectively.

images

Figure 1: Directional derivatives

Let the directional derivatives along e3 and e2 at V1 be

δRδe2(V1)=(δxδvδxδu)Fx(V1)+(δyδvδyδu)Fy(V1)=(x1x3)Fx(V1)+(x1x3)Fy(V1)(5)

δRδe3(V1)=(δxδvδxδu)Fx(V1)+(δyδvδyδu)Fy(V1)=(x2x1)Fx(V1)+(x2x1)Fy(V1)(6)

Then, applying directional derivative into (3), yields

δRδe2(V1)=(2+α)(P300P201)(7)

δRδe3(V1)=(2+α)(P210P300)(8)

From (5) until (8), we get

P201=P3001(2+α)[(x1x3)Fx(V1)+(y1y3)Fy(V1)](9)

P210=P300+1(2+α)[(x2x1)Fx(V1)+(y2y1)Fy(V1)](10)

Other directional derivatives along e1,e3 at V2 and e1,e2 at V3 are given as follows:

P120=1(2+β)[(x2x1)Fx(V2)+(y2y1)Fy(V2)]P030P021=1(2+β)[(x3x2)Fx(V2)+(y2y1)Fy(V2)]+P030P012=1(2+γ)[(x3x2)Fx(V3)+(y3y2)Fy(V3)]+P003P102=1(2+γ)[(x1x3)Fx(V3)+(y1y2)Fy(V3)]+P003

Now, we need to calculate the inner ordinates for each triangle. In order to calculate inner ordinates b111k,k=1,2,3, we have adopted Foley et al. [15] to achieve cubic precision. Since the proposed scheme is cubic degree, then cubic precision will produce surface up to degree three [15].

The inner ordinate b1111 is given as [11]

b1111 =12r(s+t)(c201+c210r2(b210+b201)s2(b030+b021))+t2(b012+b003)2st(b021+b012)rsb1202rtb102.

Meanwhile, inner ordinate c1111 is given by [6]

c1111 =12u(v+w)(b201+b210u2(c210+c201)v2(c030+c021))+w2(c012+c003)2vw(c021+c012)uvc1202uwc102.

The remaining inner ordinates are obtained by symmetry [11].

Now, we establish the algorithm that can be used for surface reconstruction using the proposed scheme.

images

4  Results and Discussion

In this subsection, we discuss the performance of our proposed method by measuring 36,65 and 100 data points. Besides that, we also compare the maximum error, root mean square error (RMSE) and coefficient determination (R2). All numerical simulations are done by using MATLAB version 2019 installed on Intel® CORE™ i5-2410M CPU@2.30 GHz. Four tested functions are chosen by sampling the points to 36, 65 and 100.

•   Franke’s exponential function.

H(x,y)=H1(x,y)+H2(x,y)

where

H1(x,y)=0.75e((9x2)2+(9y2)24)+0.75e((9x+1)249+9y+110)H2(x,y)=0.5e((9x7)2+(9y3)24)0.20e((9x4)2+(9y7)2)

•   Saddle function

P(x,y)=1.25+cos(4.5y)6+6(3x1)2

•   Cliff function

R(x,y)=tanh(9y9x)+19

images

Figure 2: Delaunay triangulations. (a) Delaunay triangulation: 36 data points. (b) Delaunay triangulation: 65 data points. (c) Delaunay triangulation: 100 data points

•   Gentle function

F(x,y)=exp((8116)((x0.5)2+(y0.5)2))3

Fig. 2 shows Delaunay Triangulation of 36, 65 and 100 data points with domain of [0,1]×[0,1]. Fig. 3 until Fig. 4 shows surface interpolation for 36 and 65 data points.

images

Figure 3: Surface interpolation for 36 data points. (a) H(x,y) (b) P(x,y) (c) R(x,y) (d) F(x,y)

images

Figure 4: Surface interpolation for 65 data points. (a) H(x,y) (b) P(x,y) (c) R(x,y) (d) F(x,y)

Tabs. 13 shows numerical result for error measurement for 36, 65 and 100 data points.

Tabs. 13 show numerical results for 36, 65 and 100 data points. We can see in Tabs. 13, the proposed scheme is on par with two established schemes i.e., Goodman et al. [14] and Karim et al. [16].

Now, we compare the performance between the proposed scattered data interpolation scheme against two well-known scattered data interpolation methods i.e., C1 Cubic Clough–Tocher (CT) and C1 quadratic Powell–Sabin (PS) schemes (Schumaker [1718]). Tabs. 4 and 5 summarize all results. Overall, the proposed scheme is also on par with PS and CT schemes. However, in term of RMSE, both PS and CT are better than the proposed scheme. This is understandable since, both PS and CT have refining the macro triangles into many macro triangles. This will reduce the interpolation error but at a cost, CPU time will be increased. All schemes are equivalent good in term of R2. Figs. 5, 6 show the PS and CT splitting schemes. PS schemes tend to produce not smooth surfaces around the corner compared with the proposed scattered data interpolation scheme.

images

Table 1: Error measurement for 36 data points

images

Our final example in this study is to apply the proposed scheme to visualize real scattered data obtained from Ali et al. [19] and Gilat [20]. The electric potential V around a charged particle is given by:

V=14πε0qr

where ε0=8.8541878×1012CNm2 is the permittivity constant, r is the distance from the particle in meters and q is the magnitude of the charge in Coulombs. The electric potential at a point due to two particles is given as

V=14πεo(q1r1+q2r2)

where q1,q2,r1 and r2 are the charges of the particles and the distance form the points to the corresponding particles, respectively. Two particles with a charge is q1=2×1010C and q1=3×1010C. Noted that r1=(x+0.25)2+y2 and r2=(x0.25)2+y2.

Fig. 7 shows the Delaunay triangulation for electric potential, and Fig. 8 shows surface interpolant using the proposed scheme.

Table 2: Error measurement for 65 data points

images

Table 3: Error measurement for 100 data points

images

Table 4: Errors using PS and CT schemes

images

Table 5: R2 values for PS and CT

images

images

Figure 5: Powell–Sabin split

images

Figure 6: Clough–Tocher split

images

Figure 7: Delaunay triangulation

images

Figure 8: Surface interpolation

5  Conclusion

This paper discusses scattered data interpolation by using cubic trigonometric Bézier triangular patches initiated by Zhu et al. [1]. Sufficient condition for C1 continuity on each adjacent triangle is developed by using cubic precision method. An efficient algorithm is presented. We test the proposed scheme by using four well-known tested functions. We compare the performance against some established schemes such as Goodman et al. [14], Karim et al. [16] and Powell–Sabin (PS) and Clough–Tocher (CT) split schemes. From error analysis, we found that the proposed scheme is on par and for all data sets, we achieve higher R2 values. Finally, we test the proposed scheme to interpolate real scattered data set. For future research, we can apply the proposed scheme for shape preserving interpolation such as positivity and convexity. The proposed scheme also can be applied for constrained surface modeling above, below or between two planes as discussed in Karim et al. [21].

Funding Statement: This research was fully supported by Universiti Teknologi PETRONAS (UTP) and Ministry of Education, Malaysia through research grant FRGS/ 1/2018/STG06/UTP/03/1/015 MA0-020 (New rational quartic spline interpolation for image refinement) and UTP through a research grant YUTP: 0153AA-H24 (Spline Triangulation for Spatial Interpolation of Geophysical Data).

Conflicts of Interest: The authors declare that they have no conflicts of interest to report regarding the present study.

References

 1.  Y. Zhu and X. Han, “New trigonometric basis possessing exponential shape parameters,” Journal of Computational Mathematics, vol. 33, no. 6, pp. 642–684, 2015. [Google Scholar]

 2.  A. Saaban, A. R. M. Piah, A. A. Majid and L. H. T. Chang, “G1scattered data interpolation with minimized sum of squares of principal curvatures,” in Int. Conf. on Computer Graphics, Imaging and Visualization, Beijing, China, pp. 385–390, 2005. [Google Scholar]

 3.  S. Butt and K. W. Brodlie, “Preserving positivity using piecewise cubic interpolation,” Computers & Graphics, vol. 17, no. 1, pp. 55–64, 1993. [Google Scholar]

 4.  M. Z. Hussain and M. Hussain, “C1 positivity preserving scattered data interpolation using rational Bernstein–Bézier triangular patch,” Journal of Applied Mathematics and Computing, vol. 35, no. 1–2, pp. 281–293, 2011. [Google Scholar]

 5.  X. Han, “Cubic trigonometric polynomial curves with a shape parameter,” Computer Aided Geometric Design, vol. 21, no. 6, pp. 535–548, 2004. [Google Scholar]

 6.  S. Butt, “Shape preserving curves and surfaces for Computer Graphics,” Ph.D. Thesis. School of Computer Studies, The University of Leeds, UK, 1991. [Google Scholar]

 7.  P. Lamberti and C. Manni, “Shape-preserving C2 functional interpolation via parametric cubics,” Numerical Algorithms, vol. 28, no. 1–4, pp. 229–254, 2001. [Google Scholar]

 8.  M. S. Floater, “A weak condition for the convexity of tensor-product Bézier and B-spline surfaces,” Advances in Computational Mathematics, vol. 2, no. 1, pp. 67–80, 1994. [Google Scholar]

 9.  M. S. Floater, “Total positivity and convexity preservation,” Journal of Approximation Theory, vol. 96, no. 1, pp. 46–66, 1999. [Google Scholar]

10. F. A. M. Ali, S. A. A. Karim, A. Saaban, M. K. Hasan, A. Ghaffar et al., “Construction of cubic Timmer triangular patches and its application in scattered data interpolation,” Mathematics, vol. 8, no. 2, pp. 159, 2020. [Google Scholar]

11. C. N. N. Draman, S. A. A. Karim and I. Hashim, “Scattered data interpolation using rational quartic triangular patches with three parameters,” IEEE Access, vol. 8, pp. 44239–44262, 2020. [Google Scholar]

12. S. A. A. Karim, A. Saaban, V. Skala, A. Ghaffar, K. S. Nisar et al., “Construction of new cubic Bézier-like triangular patches with application in scattered data interpolation,” Advances in Difference Equations, vol. 2020, Article no. 151, 2020. [Google Scholar]

13. S. A. A. Karim, A. Saaban, M. K. Hasan, J. Sulaiman and I. Hashim, “Interpolation using cubic Bèzier triangular patches,” International Journal on Advanced Science, Engineering and Information Technology, vol. 8, no. 4–2, pp. 1746–1752, 2018. [Google Scholar]

14. T. N. T. Goodman and H. B. A. Said, “C1 triangular interpolant suitable for scattered data interpolation,” Communications in Applied Numerical Methods, vol. 7, no. 6, pp. 479–485, 1991. [Google Scholar]

15. T. A. Foley and K. Opitz, “Hybrid cubic Bézier triangle patches,” in Mathematical Methods in Computer Aided Geometric Design II. Cambridge, Massachusetts, United States: Academic Press, pp. 275–286, 1992. [Google Scholar]

16. S. A. B. A. Karim and A. Saaban, “Visualization terrain data using cubic ball triangular patches,” in MATEC Web of Conferences, vol. 225, pp. 06023, 2018. [Google Scholar]

17. L. L. Schumaker, Spline Functions: Computational Methods. Philadelphia, USA: SIAM, 2015. [Google Scholar]

18. M. J. Lai and L. L. Schumaker, Spline Functions on Triangulations. Cambridge: Cambridge University Press, 2007. [Google Scholar]

19. F. A. M. Ali, S. A. A. Karim, S. C. Dass, V. Skala, M. K. Hasan et al., “Efficient visualization of scattered energy distribution data by using cubic trimmer triangular patches,” in Energy Efficiency in Mobility Systems. Singapore: Springer, pp. 145–180, 2020. [Google Scholar]

20. A. Gilat, MATLAB : An Introduction with Applications, 4th ed., USA: John Wiley & Sons, 2013. [Google Scholar]

21. S. A. A. Karim, A. Saaban and V. Skala, “Range-restricted surface interpolation using rational bi-cubic spline functions with 12 parameters,” IEEE Access, vol. 7, pp. 104992– 105007, 2019. [Google Scholar]

images This work is licensed under a Creative Commons Attribution 4.0 International License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.