The aim of this paper is to develop a local positivity preserving scheme when the data amassed from different sources is positioned at sparse points. The proposed algorithm first triangulates the irregular data using Delauny triangulation method, therewith interpolates each boundary and radial curve of the triangle by C¹ rational trigonometric cubic function. Half of the parameters in the description of the interpolant are constrained to keep up the positive shape of data while the remaining half are set free for users' requirement. Orthogonality of trigonometric function assures much smoother surface as compared to polynomial functions. The proposed scheme can be of great use in areas of surface reconstruction and deformation, signal processing, CAD/CAM design, solving differential equations, and image restoration.
The aim of this paper is to develop a local positivity preserving scheme when the data amassed from different sources is positioned at sparse points. The proposed algorithm first triangulates the irregular data using Delauny triangulation method, therewith interpolates each boundary and radial curve of the triangle by C¹ rational trigonometric cubic function. Half of the parameters in the description of the interpolant are constrained to keep up the positive shape of data while the remaining half are set free for users' requirement. Orthogonality of trigonometric function assures much smoother surface as compared to polynomial functions. The proposed scheme can be of great use in areas of surface reconstruction and deformation, signal processing, CAD/CAM design, solving differential equations, and image restoration.
Data measured or amassed from many engineering and scientific fields, is often positioned at sparse points. For example, meteorological measurements at different weather stations [1], density measurements on different positions within the human body, heart potential measurements at random points in the diagnosis of various ailments of heart [2], 3D photography, aeronautical engineering and industrial design, structural graph networks [3], graph entropy [4], [5], [6]. A visual model is often required to get a clear understanding of underlying phe- nomena as colossal amount of data is difficult to analyse or communicate a message in raw form. Further, a meticulous visual representation obligates the interpolating function to affirm intrinsic attributes of data like positivity, monotonicity and convexity. Although, tensor product provides a robust medium for fitting surface to rectilinear data sites, it can not be used to fit a surface over sparse data points. This paper addresses the problem of retaining positivity over scattered data points.Several approaches have been proposed in literature to address the problem of positivity preserving interpolating surfaces. Amidor [7] surveyed method to interpolate scattered data necessitating from electronic imaging system. The author mainly examined radial basis function method, tetrahedral interpolation, cubic triangular interpolation, triangle based blending interpolation, inverse distance method and neutral neighbourhood. The difference between scattered data interpolation and scattered data fitting was also demonstrated in the survey. Cubic and quintic Hermite interpolants were used for preserving monotonicity, positivity and convexity of discrete data by [8]. Piah, Goodman, Unsworth [9] first triangulated the data points by Delaunay triangulation and constructed the interpolating surface consisting of “cubic Bezier triangular patches”. Positivity of data was achieved by imposing sufficient conditions on Bezier ordinates in each triangular patch. The proposed scheme was local and C
1 continous. Hussain and Hussain [10] arranged the scattered data over a triangular grid to preserve the positivity and monotonicity. The authors used a cubic interpolant with one parameter to interpolate the boundary of each triangular patch while linear interpolant was used in Nielson side vertex method to obtain radial curves. Final surface patch was obtained by convex combination of interpolants. Positivity and monotonicity was retained by deriving data dependent constraints on free parameters. C
1 Quadratic splines and Powell-Sabin splines were used as interpolating function to tackle the problem of range restricted univariate and bivariate scattered data by Hermann et. al. [11]. The authors obtained a system of inequalities for the gradients and positivity was accomplished by deriving sufficient conditions on this system. A C
1 local rational cubic Bernstein Bezier interpolatory scheme was proposed by Hussain and Hussain [12] to retain positivity of scattered data. In each triangular patch, inner and boundary Bezier ordinates were confined for positivity. If in any triangular grid, Bezier ordinates failed to attain positive shape of data, then these were varied by the weights described in formation of rational cubic Bernstein Bezier interpolant. Sarfraz et. al. [1] established a local C
1 approach to keep up the positivity of scattered data positioned over a triangular domain. They employed C
1 rational cubic function with four parameters in Nielson side vertex technique to formulate the interpolating surface. Two of the four parameters were constrained for positivity.Although several approaches have been proposed to retain the positivity of data, little attention has been paid towards the use of trigonometric basis function. This paper develops a positivity preserving scheme for scatter data by taking C
1 rational trigonometric function [13] into account. Delaunay triangulation method has been used to place scatter data as vertices of triangle. Nielson side vertex method [14] has been employed in each triangle to construct triangular patches. The C
1 rational trigonometric cubic function [13] with four parameter has been used for the interpolation along boundary and radial curve of the triangle. Positivity is attained by deriving data dependent condition on half of the parameters in the description of C
1 rational trigonometric cubic function [13].The remainder of the paper is formulated as: Section 2 reviews the ratonal trigonometric cubic function [13]. Nielson side vertex method [14] to formulate triangular patches is detailed in Section 3. Positivity preserving algorithm is developed and explained in Section 4. Section 5 demonstrates the developed algorithm and presents graphical results. Section 5 summarizes this research and draws conclusion.
2. Rational Trigonometric Cubic Function
Let {(x
, y
), i = 0,1,2, …, n−1} be the given set of data points defined over the interval [a, b] where a = x
0 < x
1 < x
2 < … < x
= b. A piecewise rational trigonometric cubic function is defined over each subinterval I
= [x
, x
] as
where
The rational trigonometric cubic function (Eq 1) satisfy the following properties:
d
and d
are derivative at the endpoints of the interval I
= [x
, x
]. α
, β
, γ
and δ
are the free parameters. The following result has been proved in [13].Theorem 2.1
The C
1
piecewise rational trigonometric cubic function preserve the positivity of positive data if in each subinterval I
3. Nielson Side Vertex Method
Consider a triangle △V
1
V
2
V
3 with vertices V
1, V
2, V
3 having edges e
1, e
2, e
3 and u, v, w be the barycentric coordinates such that any point V on the triangle can be written as:
whereThe interpolant defined by Nielson [14] to generate surface over each triangular patch is defined as the following convex combination:
where represent line segments joining vertices to points on the opposite boundary. Eq (4) interpolates data at the vertices as well as first order derivatives at the boundary. Since the barycentric coordinates at the vertices of triangle is simultaneously zero, the interpolant Eq (4) takes the following values:
where Q
, i = 1,2,3 are the ordinate values at the vertices V
, i = 1,2,3 of triangle.
4. Positive Scatter Data Interpolation
This section details the derivation of sufficient conditions for C
1 triangular patches to be positive. Let the given positive scattered data set arranged over a triangular domain be {(x
, y
, F
), i = 1,2, …, n}. The resulting surface S(x, y) described as
is positive if
4.1 Domain Triangulation
Triangulation of data is performed by Delaunay triangulation method such that data F
, fall on vertices {V
= (x
, y
), i = 1,2,3, …, n} of the triangles.
4.2 Estimation of Derivatives
Partial derivatives at the vertices V
, i = 1,2,3 of each triangle are calculated by derivative estimation scheme suggested by Goodman et. al. [15]
4.3 C
1 Positive triangular patch
Let V
1
V
2
V
3 be the given triangle with edges e
, i = 1,2,3 opposite to the vertices V
, i = 1,2,3 respectively and S
, i = 1,2,3 be the points on the edges opposite to vertices V
, i = 1,2,3. The radial curve Q
1 connecting vertex V
1 to the points S
1 on the opposite edges e
1 is defined as (Fig 1):
where
such that
R
1 and R
2 are the directional derivatives at V
1 and S
1 (Fig 2) defined as
and F(S
1) is the boundary curve along the edge e
1 evaluated from the following expression
where
such that
d
3 and d
4 are the directional derivatives along at V
2 and V
3 (Fig 3)
From Eq 7, Q
1 > 0 if
Now, Q
1 > 0 if
From Theorem 2.1, F(S
1) > 0 if
Now, Q
1 > 0 if
Likewise, radial curve Q
2 connecting vertex V
2 to the points S
2 on the opposite edges e
2 is defined as
where
such that
R
3 and R
4 are the directional derivatives at V
2 and S
2
and F(S
2) is the boundary curve along the edge e
2 to be evaluated from the following expression
where
d
5 and d
6 are the directional derivatives along at V
1 and V
3
From Eq 10, Q
2 > 0 if
Now, Q
2 > 0 if
From Theorem 2.1, F(S
2) > 0 if
Now, Q
2 > 0 if
and the radial curve Q
3 connecting vertex V
3 to the point S
3 on the opposite edge e
3 is defined as
where
where R
5 and R
6 are the directional derivatives at V
3 and S
3 defined as
and F(S
3) is the boundary curve along the edge e
3 to be evaluated from the following expression
where
d
1 and d
2 are the directional derivatives along at V
1 and V
2
From Eq 14, Q
3 > 0 if
Now, Q
3 > 0 if
From Theorem 2.1, F(S
3) > 0 if
Now, Q
3 > 0 if
The above discussion leads to the following result:
Fig 1
Radial curve Q
1: connecting vertex V
1 to the point S
1.
Fig 2
Directional derivatives along
.
Fig 3
Directional derivatives along .
Theorem 4.1
The C
Eq (4)
is positive if the following conditions are attained.
The above constraints can be rearranged as
5. Numerical Examples
This section illustrates the positivity preserving scheme for scattered data devised in Section 4.3.Example 5.1
Positive scattered data is taken in
Table 1. Fig 4
represents corresponding delaunay triangulations. The data is interpolated first by
Eq (4)
for arbitrary values of free parameters, α
1 = 4.1, α
2 = 3;α
3 = 2.5, α
4 = 1.6, α
5 = 2.7, α
6 = 2.8, β
1 = 3.8, β
2 = 2.4, β
3 = 4.2, β
4 = 2.5, β
5 = 1.5, β
6 = 4, γ
1 = 1, γ
2 = 6, γ
3 = 1, γ
4 = 2, γ
5 = 2, γ
6 = 3, δ
1 = 1, δ
2 = 3, δ
3 = 3, δ
4 = 1, δ
5 = 2, δ
6 = 1. The resulting surface is displayed in
Fig 5. It is clear from
Fig 5
that the inherent shape feature of positivity of data could no be held in visual model. This detriment is removed in Figs 6, 7 and 8
by implementing positivity preserving conditions summarized in Theorem 4.1. It is worth mentioning here that parameters
α
and
δ
for
i = 1,2, …,6 are left free to refine the shape according to user’s requirement. The effect of free parameters are shown in Figs 6, 7 and 8. Figs 6 and 7
are constructed against the parameter choice
α
1 = 12, α
2 = 0.4, α
3 = 13, α
4 = 0.22, α
5 = 12, α
6 = 0.33, δ
1 = 13, δ
2 = 0.3, δ
3 = 14, δ
4 = 0.3, δ
5 = 15, δ
6 = 12 and α
1 = 0.1, α
2 = 1.0, α
3 = 0.5, α
4 = 1.6, α
5 = 0.7, α
6 = 0.8, δ
1 = 0.8, δ
2 = 0.4, δ
3 = 1.2, δ
4 = 1.5, δ
5 = 1.5, δ
6 = 1.0 respectively, which lacks smoothness. A smooth visibly pleasant representation is obtained in
Fig 8
by setting
α
1 = 1.0, α
2 = 1.0, α
3 = 0.5, α
4 = 0.6, α
5 = 0.7, α
6 = 0.8, δ
1 = 0.8, δ
2 = 0.4, δ
3 = 1.2, δ
4 = 0.5, δ
5 = 1.0, δ
6 = 1.0
Table 1
A Positive scattered data set I.
x
y
F
0
0
0.7487
0
0.125
0.5779
0
0.25
0.4668
0
0.375
0.4042
0
0.625
0.4042
0
0.75
0.4668
0
0.875
0.5779
0
1
0.7487
0.125
0
0.5779
0.125
0.125
0.4248
0.125
0.5
0.251
0.125
0.625
0.2691
0.125
0.75
0.3252
0.125
1
0.5779
0.25
0
0.4668
0.25
0.125
0.3252
0.25
0.25
0.2331
0.25
0.375
0.1813
0.25
0.5
0.1645
0.25
0.875
0.3252
0.375
0.125
0.2691
0.375
0.25
0.1813
0.375
0.625
0.1317
0.375
0.75
0.1813
0.375
0.875
0.2691
0.375
1
0.4042
0.5
0
0.384
0.5
0.375
0.1157
0.5
0.625
0.1157
0.5
0.75
0.1645
0.5
0.875
0.251
0.5
1
0.384
0.625
0
0.4042
0.625
0.125
0.2691
0.625
0.375
0.1317
0.625
0.5
0.1157
0.625
0.625
0.1317
0.75
0
0.4668
0.75
0.125
0.3252
0.75
0.375
0.1813
0.75
0.75
0.2331
0.75
0.875
0.3252
x
y
z
0.875
0
0.5779
0.875
0.125
0.4248
0.875
0.375
0.2691
0.875
0.625
0.2691
0.875
0.75
0.3252
0.875
0.875
0.4248
0.875
1
0.5779
1
0
0.7487
1
0.125
0.5779
1
0.25
0.4668
1
0.375
0.4042
1
0.5
0.384
1
0.625
0.4042
1
0.75
0.4668
1
0.875
0.5779
1
1
0.7487
0.75
1
0.4668
Fig 4
Delaunay triangulation of positive data in Table 1.
Fig 5
Rational cubic trigonometric surface of the positive data in Table 1.
Fig 6
Positive surface generated from Theorem 4.1 of the positive data in Table 1.
Fig 7
Positive surface generated from Theorem 4.1 of the positive data in Table 1.
Fig 8
Positive surface generated from Theorem 4.1 of the positive data in Table 1.
Example 5.2
A Positive scattered data set is displayed in
Table 2. Delauny triangulation is illustrated in
Fig 9
and the corresponding surface in
Fig 10
is obtained by interpolating the data for arbitrary values of free parameters,
α
1 = 4.1, α
2 = 3;α
3 = 2.0, α
4 = 1.5, α
5 = 2.7, α
6 = 2.5, β
1 = 3.5, β
2 = 2.3, β
3 = 3.2, β
4 = 2.2, β
5 = 1.0, β
6 = 4.5, γ
1 = 1.4, γ
2 = 5.5, γ
3 = 1.5, γ
4 = 2.2, γ
5 = 1.5, γ
1 = 2.5, δ
1 = 0.5, δ
2 = 3.1, δ
3 = 3.5, δ
4 = 0.4, δ
5 = 2, δ
6 = 1.2, in description of
Eq (4). It is evident from
Fig 10
that the positivity of data could not be conserved in visual model. This impediment is removed in Figs 11, 12
and
Fig 13
by implementing positivity preserving constraints on parameters
β
, γ
for
i = 1,2, …,6, summarized in Theorem 4.1. Here, it is noteworthy that parameters
α
and
δ
for
i = 1,2, …,6 are set free to refine the shape as required by the user. The effect of free parameters are shown in Figs 11, 12 and 13. Figs 11
and
12
are constructed against the parameter choice
α
1 = 2.0, α
2 = 0.1, α
3 = 0.5, α
4 = 0.5, α
5 = 1.0, α
6 = 0.63, δ
1 = 1.0, δ
2 = 0.33, δ
3 = 0.5, δ
4 = 0.4, δ
5 = 1.0, δ
6 = 0.3 and
α
1 = 2.2, α
2 = 1.1, α
3 = 2.5, α
4 = 1.5, α
5 = 1.0, α
6 = 1.0, δ
1 = 1.0, δ
2 = 1.0, δ
3 = 1.5, δ
4 = 1.4, δ
5 = 1.0, δ
6 = 0.3 respectively, which lacks smoothness. A smooth visibly pleasant representation is obtained in
Fig 13
by setting
α
1 = 2.0, α
2 = 0.4, α
3 = 0.5, α
4 = 0.5, α
5 = 1.0, α
6 = 0.63, δ
1 = 0.3, δ
2 = 0.33, δ
3 = 0.5, δ
4 = 0.3, δ
5 = 0.5, δ
6 = 0.2.
Table 2
A Positive scattered data set II.
x
y
F
0
0
0.4486
0
0.125
0.3616
0
0.25
0.4692
0
0.375
0.6827
0
0.5
0.786
0
0.625
0.836
0
0.75
0.8765
0
0.875
0.9125
0
1
0.9447
0.125
0
0.3369
0.125
0.125
0.0001
0.125
0.375
0.6256
0.125
0.625
0.8621
0.125
0.875
0.9334
0.125
1
0.9634
0.25
0
0.4529
0.25
0.125
0.1767
0.25
0.25
0.3217
0.25
0.375
0.7005
0.25
0.5
0.8555
0.25
0.625
0.9327
0.25
0.75
0.9775
0.25
0.875
0.9686
0.25
1
0.9926
0.375
0
0.696
0.375
0.375
0.8363
0.375
0.625
1.2176
0.375
0.875
1.028
0.375
1
1.0284
0.5
0
0.8329
0.5
0.125
0.8315
0.5
0.25
0.821
0.5
0.375
0.8498
0.5
0.5
0.925
0.5
0.625
1.0925
0.5
0.75
1.1688
0.5
0.875
1.0568
0.5
1
1.0662
0.625
0
0.9049
0.625
0.125
0.8376
0.625
0.375
0.7163
0.625
0.5
0.8608
0.625
0.75
1.0671
0.625
0.875
1.0883
0.625
1
1.1023
0.75
0
0.9639
0.75
0.125
0.8326
0.75
0.25
0.6283
0.75
0.375
0.5976
0.75
0.5
0.8075
0.75
0.625
1.0136
0.75
0.75
1.0989
0.75
0.875
1.1231
0.75
1
1.134
0.875
0
1.0355
0.875
0.125
0.922
0.875
0.25
0.7477
0.875
0.375
0.7193
0.875
0.5
0.893
0.875
0.625
1.0638
0.875
0.75
1.1335
0.875
0.875
1.152
0.875
1
1.1597
1
0
1.1074
1
0.125
1.0598
1
0.25
0.9848
1
0.375
0.9745
1
0.5
1.054
1
0.625
1.1319
1
0.75
1.1646
1
0.875
1.1744
1
1
1.1791
Fig 9
Delaunay triangulation of positive data in Table 2.
Fig 10
Rational cubic trigonometric surface of the positive data.
Fig 11
Positive surface generated from Theorem 4.1.
Fig 12
Positive surface generated from Theorem 4.1.
Fig 13
Positive surface generated from Theorem 4.1.
Conclusion
In this study, positivity preserving algorithm for scattered data arranged over a triangular domain, is established. The rational trigonometric cubic function [13] with four free parameters is used for the interpolation along each boundary and radial curve. Nielson side vertex has been applied to construct the interpolating surface. Constraints on half of the parameters are obtained to guarantee the positive shape of data while half are set free for users modification. The proposed algorithm, surpasses many prevailing approaches in literature. In [10], authors utilized a cubic function with one free parameter to retain the positive shape of data. Positive surface was obtained by drawing data dependent constraints on this free parameter, and, hence the scheme did not offer refinement in the shape. The scheme suggested in this paper does not suffer this detriment. The developed algorithm is local and can be applied to data with or without derivatives. Moreover, shape preserving algorithms play an instrumental role in many areas of visualization such as geometric modelling, robot trajectories, evolution game theory, prisoner’s dilemma game [16], [17], [18], meshless method and inverse kinemaics etc.