Abstract
New rational cubic Ball interpolation with one parameter is proposed for shape preserving interpolation such as positivity, monotonicity, and convexity preservations and constrained data lie on the same side of the given straight line. To produce shape preserving interpolant, the data dependent sufficient condition is derived on the parameter. The rational bicubic Ball function is constructed by using tensor product approach and it will be used for application in image upscaling. Numerical and graphical results are presented by using Mathematica and MATLAB including comparison with some existing scheme.
1. Introduction
Shape preserving interpolation and approximation is important in many sciences and engineering applications. Common strategy in shape preserving interpolation is the construction of rational or nonrational interpolant that satisfies some shape preserving criteria. When the interpolant satisfies the conditions, then the resulting interpolating curve or approximating curve preserves the shape of the given data. For instance, if the given data is positive, then the interpolating curve is positive on the whole interval. There is many good research in this area. For instance, Abbas et al. [1] discussed the application of rational cubic spline for image interpolation based on genetic algorithm (GA). Abbas et al. [2] use similar idea as in [1] but they replace the rational cubic spline with rational cubic Ball interpolation.
Majeed et al. [3] discussed the craniofacial reconstruction by using rational cubic Ball with cubic denominator without any free parameters. They utilized the original Ball function from Ball [4]. The main difference between their scheme and the proposed scheme in this study is that we construct rational cubic Ball spline with quadratic denominator with one parameter. Thus the computation time will be less compared with the work of Majeed et al. [3] (Table 7). Besides that, there are different types of rational cubic Ball interpolant. For instance, Karim [5, 6] uses different form from what we proposed in this study. The main contributions of this study can be summarized as follos:(i)The proposed scheme does not require the modification of the first derivative if shape preserving is violated as shown in the work of Brodlie and Butt [7].(ii)The proposed scheme is guaranteed to produce positive and convex curves for positive and convex data sets while the scheme by Hussain et al. [8, 9] might be producing nonpositivity interpolating curve on some interval.(iii)The proposed scheme requires less computation time compared to the bicubic spline interpolation for image upscaling.
This paper is organized as follows. After the Introduction to the subject matter, Methodology will be discussed in Section 2. This includes the construction of the new rational cubic Ball interpolation and the derivation of the sufficient condition of the rational cubic Ball for constrained data interpolation, monotonicity, and convexity preservation, respectively. Numerical and graphical results are given in Section 3. Section 4 is devoted for application of rational bicubic Ball function for image interpolation. Conclusions are given in the final section.
2. Methodology
This section discusses the construction of new rational cubic Ball (cubic/quadratic) with one parameter.
2.1. Rational Cubic Ball Spline Interpolant
Given the data and first derivative , with , let , and ; thus . On each subinterval , , the new rational cubic Ball interpolant with shape parameter is defined by whereThe rational cubic Ball interpolant in (1) is continuity at the knots , . Mathematically this can be rewritten as where denotes the first-order derivative with respect to at the knot . From conditions (3), by simple derivation using (1), the unknown variables, , , are given asIt can be verified that, at , and similarly at , .
2.2. Derivative Estimation
There are many methods to estimate the first derivative , , for instance, the geometric mean method (GMM), harmonic mean method (HMM), and arithmetic mean method (AMM). The common method is arithmetic mean method (AMM) (Karim [5, 6]). In this study we adopted AMM since it is simple to use and suitable for all types of data set. The derivation is given as follows [5, 6].
2.2.1. Arithmetic Mean Method
The values of are given as The derivative value of and is given asThe first derivative value , is estimates from (5), (6), and (6). For data point , the first derivative value, , , and shape parameter , the rational cubic Ball, , defined by (1) can be constructed.
2.2.2. Shape Control Analysis
Obviously when , the proposed rational cubic Ball interpolant is reduced to cubic Ball polynomial asThe piecewise rational cubic Ball defined by (1) can also be rewritten as When , the rational cubic interpolant reduces to a straight line on the subinterval , To avoid the denominator in (1) becoming zero, we restrict the parameter as for .
Shape control analysis can further be elucidated by using a graphical approach. To see the effect of the shape control, by varying the value of shape parameter , , the data given in Table 1 is used.
2.3. Numerical Example 1: Shape Control Analysis
Figure 1 shows the shape control analysis. For Figure 1(a) the value for shape parameter , are 0.1 (black), 10 (dashed), and 100 (gray). The higher the value of the parameter is, , the more loose the interpolating curve tends to be. Meanwhile for Figure 1(b) the values for shape parameter are (black), cubic polynomial Ball, that is, from (8), and (dashed). Equation (10) is verified by Figure 1(b), that is, the rational interpolant converging to a straight line when , is a larger positive number.

(a) With (black), (dashed), and (gray)

(b) With (black) and (dashed)
2.4. Application in Shape Preserving Interpolation
In this Section, we discuss the application of the proposed rational cubic Ball function for shape preserving interpolation. The data under consideration are positive, monotone, convex, and on the same side as the constraint line.
2.5. Positivity Preserving
In this study, the given data is strictly positive to avoid dividing by zero such thatThe main objective is to find the value of shape parameter , that will ensure that rational interpolant defined by (1) is positive to produce the positive interpolating curve on the whole given domain. Since, for all , , the denominator , therefore, the positivity of the rational cubic interpolant in (1) depends on the cubic polynomial , ; that is, . Schmidt and Hess [11] have developed the result for the positivity of , as whereNotation , indicates the first derivative of with respect to at and (i.e., at and , resp.). Note that and , respectively [11].
The following theorem gives the sufficient conditions for the positivity of the rational cubic Ball interpolant. It is data dependent and has one free parameter to alter the final positive interpolating curves.
Theorem 1. For a strictly positive data defined in (11), the rational cubic Ball interpolant on is positive if, in each subinterval , , if the following sufficient conditions are satisfied:
Proof. The sufficient condition of the positivity is derived from condition (13) as follows: Both conditions can be further simplified as follows:The sufficient condition the positivity of the rational cubic Ball defined by (1) can be obtained by combining conditions (17) and (18) into one condition given as follows: For the purpose of computer implementation, the above condition can be rewritten as follows: such that satisfies .
Algorithm for computer implementation is as follows.
Algorithm 2.
Input. Data points, first derivative, and parameter .
Output. Positive interpolating curve.
Step 1. Input data points .
Step 2. For (i)calculate the first derivative values by using (8), (9), and (10).Step 3. For (i)calculate the parameter values, by using the sufficient condition given in (20);(ii)repeat by choosing different value of ; that is, .Step 4. For (i)construct the positive interpolating curve with continuity.
2.6. Constrained Data Interpolation
This section discusses the construction of the sufficient condition for constrained data interpolation for data that lies on the same side as the given constraint line. There are three types for constraint line such as above straight line, below straight line, and in between two lines. In this paper, we will only study the constrained interpolation for the data lie above arbitrary constraint line. The problem statement can be read as follows.
Given data set which lies above the straight line, that is, , such that by rewriting the arbitrary straight line in parametric form, then, (21) is equal to with , and , , respectively.
Equation (22) can be further simplified to or equivalently whereBy simple derivation we obtainwith The interpolating curve lies above the given straight line if because for all , . The necessary conditions are and , respectively. Thus the sufficient condition for the interpolating curve to lie above the given straight line can be derived from and :Inequalities (28) provide the following: For , conditions in (29) and (30) can be combined to form the following sufficient condition:The above result is stated in Theorem 3 below.
Theorem 3. The rational cubic Ball interpolant lies above the given straight line , if in subinterval , , the parameter satisfy the conditionwhere a positive value satisfies the inequality .
2.7. Monotonicity Preserving
There are two cases for strictly monotonic preserving interpolation.
Case 1 (if ). If , that is, some data are collinear or comonotone, then the rational cubic Ball interpolant defined by (1) is constant on the subinterval , . This can be achieved by setting the first derivative , such that .
Case 2 (if ). For this case, we have the following theorem.
Theorem 4. The rational cubic Ball interpolation defined in (1) preserves the monotonic increasing data on each subinterval , if the parameter satisfies the following condition:
Proof. Shape preserving interpolation for strictly monotonic data can be stated as follows.
For monotonic increasing data with and satisfying , we want to construct the monotonic interpolating curve by using the rational cubic Ball defined by (1). The rational cubic Ball will produce the monotonic increasing interpolating curve if and only if the first derivative at the knot , satisfies The first derivative is equal to with The following are the necessary conditions to obtain monotonicity increasing interpolant: The sufficient condition for the monotonicity of the rational cubic Ball can be derived from (34). The first derivative if and only if , Clearly and . The remaining inequalities , give us The sufficient condition for monotonicity of the rational cubic Ball interpolant is derived as follows.
From (38), we obtainSimilarly (39) and (40) lead to the inequalities (42):Combining conditions (41), (42), and (43) gives the sufficient condition for the monotonicity preserving of the rational cubic Ball interpolation. This completes the proof for Theorem 4.
Condition in (44) can be rewritten aswith .
2.8. Convexity Preserving
We assume that a strictly convex data set is given with such that , and We want to produce the convex interpolating curve on each subinterval , by using rational cubic Ball defined by (1). The function is convex if . After some simplification, the second derivative of the rational cubic Ball is given as withIn order to derive the sufficient condition for convexity preserving, there are two cases that need to be considered.
Case 1. If the convex data satisfy and , then the rational cubic Ball interpolant will produce a linear segment on the subinterval , such that
Case 2. If the convex data satisfy (46), then the necessary condition for convexity is and . Thus if and only if and . Both conditions provide the following inequalities:Simplifying conditions (50) lead toThese two conditions give the sufficient condition for the convexity of the rational cubic Ball interpolant
The result is summarized as Theorem 1 below.
Theorem 1. The rational cubic Ball defined by (1) preserves the convexity of the data if the parameter satisfies the following condition:with .
3. Results and Discussion
This section is devoted to the numerical results for the constrained data interpolation subject to constraint line above straight line, monotonicity preservation and convexity preservation.
3.1. Numerical Example 2
The positive data sets from Hussain et al. [8] are listed in Table 2.
For this example, Figure 2(a) shows the cubic Ball polynomial with , . Meanwhile Figures 2(b) and 2(c) show the positive interpolating curve after applying the result from Theorem 1 with , , varying as indicated in both Figures 2(b) and 2(c).

(a)

(b)

(c)
3.2. Numerical Example 3
The data in Table 3 lie above the straight line .
Figure 3(a) shows that the cubic Ball cannot produce the interpolating curve that lies above the given straight line. Applying Theorem 3, we obtain the interpolating curve that lies above a straight line with for Figure 3(b) and for Figure 3(c).

(a)

(b)

(c)
3.3. Numerical Example 4
Table 4 shows the monotone data taken from Akima [10].
Figure 4(a) shows the cubic Ball cannot preserve the monotonicity of the data set. This flaw has been recovered nicely by using condition (45), Figure 4(b) with and Figure 4(c) with . Clearly the resulting monotonic interpolating curve is visually pleasing.

(a)

(b)

(c)
3.4. Numerical Example 5
Table 5 shows the convex data from Brodlie and Butt [7]
Figure 5(a) shows the cubic Ball cannot produce the convex interpolating curve. Condition (52) guarantees to produce convex interpolating curve on the whole interval. This can be verified by plotting the second derivative graph for Figures 5(a) and 5(b), respectively. From Figure 6(a) the second derivative for cubic Ball polynomial is a straight line and has some negative value which contradicts with the sufficient condition given in (49) and (54). Figure 6(b) shows that the proposed rational cubic Ball interpolant produces the convex interpolating curve since its second derivative is greater than zero.

(a)

(b)

(c)

(a) Cubic Ball

(b) The proposed scheme
3.5. Application in Image Processing
An application of the proposed rational cubic Ball interpolation in image processing is discussed in this section. Firstly the univariate spline given in (1) is extended to the bivariate cases by using tensor product approach. The rational bicubic function over each rectangular patch , ; is defined as follows: where wherewhere and are partial derivatives on and directions, respectively. Meanwhile is mixed partial derivatives (twists) at the interior points [12]. All can be estimated by using the method discussed in [12].
We apply the rational bicubic Ball function to image interpolation application. The main spotlight here is the image upscaling. Given the original image 256 × 256, then we can upscale the image with factor two or four and so on. To achieve this, we employ the following algorithm.
Algorithm 3.
Input. Image by pixel and parameter values and .
Output. Upscaling image, computation time, and PSNR value.
Step 1. Let , , represent input pixel indexes and (0–255) be their corresponding grayscale intensity. Our aim is to find the function; that is, which interpolate the given input pixels.
Step 2. Construct rectangular mesh for given input pixels using our rational bicubic Ball surface defined by (55).
Step 3. Let arbitrary input pixel be ; be arbitrary output pixel; be scaling factor at pixel ( or ).Output Image. by pixels will be obtained by the following transformation:Step 4. Identify the rectangles with the missing grayscale intensity values.
The original pixels and their intensity values of input image are at vertex of rectangular mesh.
Step 5. Estimate the derivative at each vertex of rectangular (input pixels) by method discussed in [12].
Step 6. Estimate missing grayscale intensity value in Step 4 by using the proposed rational cubic Ball scheme defined in (55).
Step 7. Display the result and compare the performance of proposed method against nearest neighbor, bilinear interpolation, and bicubic spline interpolation by using peak signal to noise ratio (PSNR).
We test the proposed rational bicubic Ball functions for image upscaling by using five different images shown in Figure 7. We compare the performance with nearest neighbor and bilinear and bicubic spline interpolation. Table 6 summarized the results including the value of PSNR. The value of PSNR will reflect the quality of image that is the larger PSNR value the higher quality of images [13]. It is measured in decibels (dB).

Peak signal to noise ratio (PSNR) is defined as where is mean square error given as with and defined as in Step 2 in Algorithm 3.
From all PSNR value, we conclude that the proposed scheme is at par with the standard scheme for image interpolation, that is, bicubic spline. In fact, for some images, the proposed scheme gives higher PSNR compared with bicubic spline interpolation. To obtain the result we use parameter value as . Finally, for all tested images, the proposed rational bicubic Ball surface gives less computation time comparing with bicubic spline interpolation. Computation time is calculated based on CPU time to generate the upscaling images with factor 4.
4. Conclusion
This study has proposed new rational bicubic Ball function with one parameter. This rational cubic has been used for shape preserving interpolation, that is, positivity, monotonicity, convexity, and constrained data interpolation. The univariate rational cubic Ball is extended to the bivariate cases. The rational bicubic Ball function is used for image upscaling problem in image processing. From all results, we conclude that the proposed scheme is at par with standard scheme, that is, bicubic spline interpolation. Further works can be explored such as to determine the optimum value of the parameters and for image processing application. This can be achieved by using genetic algorithm (GA) or neural network (NN) algorithm such as in Hussain et al. [14]. Furthermore, we intend to apply the proposed scheme for image resizing and image zooming in medical imaging. The proposed rational cubic Ball can also is extended to continuous interpolating curve in line with the work of Karim and Kong [15].
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Authors’ Contributions
Both authors give equal contribution throughout the preparation of the paper.
Acknowledgments
This research is fully supported by Universiti Teknologi PETRONAS (UTP) through a research Grant YUTP: 0153AA-H24 (Spline Triangulation for Spatial Interpolation of Geophysical Data). Special thanks are due to staffs at Research Management Centre (RMC), UTP.