Abstract
Progressive iterative approximation (PIA) technique is an efficient and intuitive method for data fitting. In CAGD modeling, if the given data points are taken as initial control points, PIA process generates a series of shaping curves by adjusting the control points iteratively, while the limit curve interpolates the data points. Such format was used successfully for Shepard-type curves. The aim of the paper is to construct simple variants of the PIA method for Shepard-type curves producing novel curves modeling data points, so the designer can choose among several pencils of shapes outlining original control polygon. Matrix formulations, convergence results, error estimates, algorithmic formulations, critical comparisons, and numerical tests are shown. An application to a progressive modeling format by truncated wavelet transform is also presented, improving in some sense analogous process by truncated Fourier transform. By playing on two shapes handles—the number of base wavelet transform functions and the iteration level of PIA algorithm—several new contours modeling the given control points are constructed.
1. Introduction
Shepard-type operators are rational, positive operators widely used in classical approximation theory and in scattered data interpolation problems (see, e.g., [1,2,3,4,5,6,7]). In particular, they achieve approximation results not possible by polynomials and relative pointwise and uniform direct and converse results and simultaneous approximation statements can be found, for example, in [5,6,7,8]. In [9], a modification of Shepard-type operators according to Gupta variants (based on a double summation depending on a positive parameter ) was introduced and studied. Its asymptotic behavior approaching piecewise constants made it suitable for applications to compression of piecewise images but not to CAGD. Recently, in [1], Shepard-type operators have been studied to construct Shepard-type curves useful in CAGD. Such curves overcome some of the original Shepard operator’s drawbacks and have some advantages with respect to the Bézier case. A progressive iterative approximation (PIA in short) technique for Shepard-type curves and its weighted generalization (WPIA in short) were also developed in [1]. Just by adjusting the control points iteratively, PIA process presents an intuitive and straightforward way to fit data points. It generates a curve sequence with finer and finer precision and the limit of the sequence interpolates the data points. An extension to surfaces case was also investigated in [1]. Such procedure is faster than analogous PIA technique for Bézier, B-Splines, and NURBS curves (see e.g. [10,11]). Applications of PIA techniques to image super-resolution, video data compression, online handwritten synthesis, implicit curve reconstruction, fairing curve generation, local modeling, offset of planar curves, conversion of rational curves into nonrational curves, and least squares fitting are also studied [12,13,14,15,16,17,18,19,20].
In [1,21], generalizations of PIA technique at a quicker convergence rate, but at a higher computational cost, were introduced; however, they are not always interesting from the modeling point of view: indeed, the designer’s purpose is to draw a pencil of curves shaping the given control polygon, so a too fast sequence of curves is not always useful.
Hence, it is interesting to construct alternative PIA techniques for Shepard-type curves, at suitable convergence rate and computational cost.
The aim of this paper is to give a positive answer to this problem, introducing variants of PIA process with such properties. In Section 2, a preliminary critical revisitation of PIA technique is presented, pointing out matrix formulation and properties, error expressions, computational aspects, and interesting cases. Such analysis is extended in Section 3 to four variants of PIA process based on simple iterative procedures approximating inverse of collocation matrix for Shepard-type operators at same computational cost as original PIA method; matrix formulations, convergence results, algorithmic considerations, error estimates, particular cases, and critical comparisons are shown. By acting on iteration level, like shape handle, the designer can choose among novel intermediate silhouettes between original Shepard-type curve and global interpolating Shepard-type curve at proper speed.
In Section 4 by truncated wavelet transform and PIA technique, we construct a procedure to generate Shepard-type curves useful in CAGD modeling that enhances shaping capabilities of the analogous format by truncated Fourier transform considered in [2]. We consider the number of base wavelet transform functions and the processing degree of PIA format as shape tools to draw novel curves going from Shepard-type curve to interpolating Shepard-type curve.
To prove the main results, we used the eigenstructure of Shepard-type operators, new numerical approximations of the inverse of collocation matrix and truncation wavelet transform.
Theoretical results are confirmed by numerical tests in Section 5.
2. PIA Format for Shepard-Type Curves
First, we examine the PIA technique by introducing Shepard-type curves [1]. Let with
where , , , , , and even.
If , , , is the given control vector, we define a parametric Shepard-type curve as
Such curves have properties that are interesting in CAGD (see, e.g., [1]): is a rational curve that preserves points. It lies in the convex hull of the control polygon defined by P. It satisfies the pseudolocal control property—i.e., all base functions , reach their maximum near to 1 for or equivalently each point deeply affects the silhouette of the curve close to
In addition, Shepard-type curves have the property of symmetry, i.e., with The presence of at the denominators in (1) makes a curve near-interpolating the control points, overcoming the flat spots drawback affecting the original Shepard operator (corresponding to case).
In [1], a PIA technique for Shepard-type curves was introduced and studied. Starting with an initial Shepard-type curve, PIA process constructs a sequence of fitting curves by adjusting the control points iteratively. The limiting curve is the global Shepard-type curve interpolating the data set, defined by
with
In details, given the control vector and the basis , , defined by (1), we generate the initial curve
with , . Then, we calculate the remaining curves of the sequence , for , as follows
with
and the adjusting vectors given by
Then, the iterative process can be written in matrix form as follows:
with B, the collocation matrix of basis, i.e.,
We remark that B is a positive, centrosymmetric, stochastic, diagonally dominant matrix (see [1,21]). Since B is strictly diagonally dominant, it is invertible. Since B is stochastic, we deduce that the eigenvalues of B are positive and less or equal 1, hence the spectral radius of matrix , i.e., is less than 1. Moreover, from the strict positivity of entries of stochastic matrix B, it follows that , with , the row eigenvector associated with eigenvalue 1, which is unique.
We say that curves defined by (3) satisfy the PIA property, iff , .
Theorem 1.
Since , curves satisfy the PIA property, i.e.,
The following relations are useful in implementing above process
Putting
it results
Moreover,
Proof.
Remark 1.
We remark that at each step, a matrix multiplication is required. Moreover, we observe that the above PIA process can be interpreted in terms of classical Richardson method for systems of linear equations (see [1]).
Interesting cases are
Note that the PIA process is based on well-known approximation for
since
We observe that in the one-dimensional case, we find back an iterative procedure to approximate , i.e., to solve nonlinear equation by a chord method, namely
The first three iterations are
In [1,21], faster converging modifications of the above technique were introduced (at higher computational cost), so that the data points are reached in a few iterations. This result is not always interesting in CAGD modeling; indeed, from one hand, the designer’s purpose is to construct intermediate shapes outlining given control polygon; from the other hand, the original PIA process is already fast enough (cfr. [1]). Hence, it is useful to construct variants of PIA format at a suitable convergence rate and computational cost.
3. Some Variants of PIA Technique
In this section, we introduce some variants of the PIA technique.
3.1. Variant 1
Consider the following PIA-type process
Theorem 2.
From , curves defined by (10) satisfy the PIA property, that is
For implementing, we use
Putting
one gets
and
Remark 2.
At each step, we compute a matrix multiplication.
The first three iterations are
In the one-dimensional case, we get the following iterative procedure converging to , ,
For example,
3.2. Variant 2
Construct the following PIA-type process
Theorem 3.
Since , the curves defined by (15) satisfy the PIA property, that is
We implement the above process by the following relations
Putting
one gets
and
Proof.
We recall that if
□
Remark 3.
At each step, a matrix multiplication is required.
In particular,
In the one dimensional case, one obtains the following iterative procedure converging to , ,
Iterations at first, second, and third steps are given by
3.3. Variant 3
Introduce the following variant of PIA process
Theorem 4.
Since the curves defined by (19) satisfy the PIA property, that is
The following relations are useful in implementing the above format
Putting
we have
and
Proof.
By simple computations
we deduce (20).
From , it results
Therefore, from (21)
So
and
Hence, the statement follows. □
Remark 4.
At each iteration, a matrix computation is needed.
From Stirling approximation of binomial
we deduce
which vanishes slower than (cfr. (7)), hence from (22) and (23) goes to 0 slower than . Comparing (22) and (23) with (13), it follows that for interesting cases in applications, is smaller than , but asymptotically is bigger, hence for is faster than , but asymptotically is slower. Consequently, for variant 3 gives intermediate curves between PIA and variant 1 process. Comparing (22) and (23) with (18), vanishes asymptotically slower than
As particular cases, we find
In the one-dimensional case, we have the following iterative procedure converging to , ,
For example,
3.4. Variant 4
Letting define the following variant of PIA process,
Theorem 5.
Since the curves defined by (24) satisfy the PIA property, that is,
We implement the above process with the following relations
Putting
we have
and
Proof.
We recall the binomial theorem
from which we deduce if
In particular, if and , we find back (9) and (14), respectively, which underlie PIA and variant 1 processes, respectively.
Therefore, from (26)
So,
and
and the theorem is proved. □
Remark 5.
At each step, a matrix multiplication is needed.
In the limiting cases and , we find back PIA process and variant 1 method (cfr. (6) and (10), respectively; see also (28)). Hence, parameter q can be considered as a further shape handle, bringing variant 4 from PIA process to variant 1; so, by playing on iteration level m and parameter q, the designer has at his disposal new intermediate curves gradually outlining the given control polygon.
From binomial theorem (see [22] for applications of calculus in approximation theory)
with
following the proof of Theorem 5, we can construct an analogous variant, generalizing PIA process and variant 2. We omit details.
Particular cases are
In the one-dimensional case, we find the following iterative procedure converging to , ,
The first three iterations are
4. A PIA-Type Technique via Truncated Wavelet Transform
In [2], a method to construct new Shepard-type curves with good shaping behaviour was introduced by PIA algorithm and truncated DFT. The number of base Fourier functions and the iteration level of PIA algorithm handle modeling the outline of Shepard-type curve, getting as a limit case the Shepard-type interpolating curve given by (2). The truncation procedure was made in analogy with truncation occurring in some statistical contexts involving Fourier transform.
Here, we extend such technique to wavelet transform. As a representation of a function, we consider an orthonormal basis of functions obtained from dilations and translations of compactly supported and periodic scaling () and wavelet () functions:
where
and is a reference level.
As a well-known method (e.g., [23]), wavelet transform has excellent properties from the approximation point of view for wide classes of functions. In addition, it turns to have a sparse representation, in the sense that its coefficients quickly drop to 0. Therefore, a limited set of coefficients could be sufficient to accurately represent the function to be approximated. Further, orthogonality of the transform makes it very easy to compute inverse transforms. Finally, availability of a multiresolution algorithm for discrete data allows one to compute the discrete wavelet transform very quickly with a computational cost of operations. In this case of discrete data, the discrete wavelet wransform, of a set of dyadic data z of length n can be expressed as , with W being the wavelet matrix of order n.
Therefore, the idea is to compute the wavelet transform of the discrete points and, before inverse transforming them, to threshold them with a decreasing threshold, retaining only coefficients higher than the threshold (in absolute value). Depending on the values of the threshold, a family of curves is obtained approximating the data.
We sketch the procedure. From the global interpolating Shepard-type curve Formula (2) and by (5)
or equivalently
From (2) and (29), putting
with W the wavelet transform matrix giving back the wavelet coefficients . Now let us retain only the highest k, , wavelet coefficients (in absolute value). This corresponds to select only k bases of the transform corresponding to the selected wavelet coefficients. Equivalently, in matrix notation we can consider truncated wavelet matrices that include only rows corresponding to the retained wavelet coefficients. Analogously to the FT format introduced in [2], such truncation procedure was inspired by some statistical problems involving wavelets.
Then, we introduce the truncated interpolation curve of Shepard-type:
From (30) it follows that, when , and we deduce (2). Therefore, when gradually in (30) we get different curves going closer and closer to the interpolating Shepard-type curve.
From (30) and above PIA format, we deduce a technique constructing a pencil of curves of Shepard-type outlining the given data points. We summarize the process. In (30), matrix V is replaced by
with m being the iteration level of PIA procedure. From (9) because of fast convergence, with a few iterations can get close to V.
5. Implementation and Examples
Here, we examine some tests to show the effectiveness of our algorithms.
5.1. Example 1
Consider a helix of radius 5 given by (see, e.g., [1])
A sequence of 19 control points , , is sampled from the helix as
We construct PIA curves given by (6) based on above 19 initial control points (32) with , (see (1)). In Figure 1 one can see the PIA Shepard-type curves at the initial step and after 1, 2 and 3 iterations. From Figure 1 we deduce that the curve sequence defined by PIA format converges fast to the interpolating Shepard-type curve, as expected from Theorem 1 in Section 2.
Figure 1.
PIA curves at iteration levels 0, 1, 2 and 3 for the Example 1.
5.2. Example 2
We examine the above helix example for variants of PIA process. First construct curves defined by format (10). Figure 2 shows the corresponding curves at the initial step and after 1, 2 and 3 iterations. As the iteration level increases, the modeling power of technique (10) is evident. The curves approach the given control points at a slower convergence rate than Example 1, as remarked in Section 3.1.
Figure 2.
Variant 1 curves at iteration levels 0, 1, 2 and 3 for the Example 2.
5.3. Example 3
We compare the same helix example for variant 2 of PIA process (15). In Figure 3 corresponding curves at the initial step and after 1, 2, and 3 iterations are presented. When we proceed with the iterations, the shaping behaviour of format (15) is pointing out. The intermediate curves model the helix more slowly than Examples 1 and 2, as observed in Section 3.2.
Figure 3.
Variant 2 curves at iteration levels 0, 1, 2 and 3 for the Example 3.
5.4. Example 4
Consider curves defined by technique (19) for above helix test. In Figure 4 one can see the corresponding curves at the initial step and after 1, 2 and 3 iterations and one can choose among several shapes modeling the given control polygon. As remarked in Section 3.3, here approximating curves represent an alternative to previous formats.
Figure 4.
Variant 3 curves at iteration levels 0, 1, 2 and 3 for the Example 4.
5.5. Example 5
We study the same helix example for variant 4 of PIA process (24). Figure 5 shows the corresponding curves for and respectively. From Figure 5 we can see the shaping capability of variant 4: indeed, if and , we find back the curves obtained by the first two iterations of PIA and variant 1 algorithms (see Section 3.4), respectively, while the choices give intermediate curves approximating the helix.
Figure 5.
Variant 4 curves at iteration level 1 for for the Example 5.
5.6. Example 6
Consider Archimedes spiral given by
We extract from the spiral a sample of 16 () control points as
They form the control polygon in Figure 6 in black color. We consider the curves obtained by PIA-type technique via truncated wavelet transform of Section 4. To this purpose a Symmlet basis was used with 10 vanishing moments and reference level . Moreover we consider one PIA iteration () in (31), with and . Starting from the above control points, Figure 6 shows the fit by curves defined by the above format retaining from 7 to all the 16 wavelet coefficients. A comparison with the analogous curves obtained by FT on the same example in [2] shows the enhanced capability of PIA-type technique via truncated wavelet transform to construct a higher number of different shaping curves.
Figure 6.
PIA-type curves via truncated wavelet transform with one PIA iteration and a number of retained wavelet coefficients ranging from 7 to 16 for the Archimedes spiral.
6. Conclusions
In this paper four variants of Progressive Iterative Approximation method for Shepard-type curves introduced in [1] are developed, whose limit is the Shepard-type curve interpolating the data points. Such variants are based on simple iterative procedures approximating inverse of collocation matrix of Shepard-type operators. They draw novel intermediate pencils of curves between original Shepard-type curve and global interpolating Shepard-type curves, at the same computational cost as original PIA process. So the designer has at his disposal several choices to model given control polygon. Critical analysis of such algorithms, matrix formulations, convergence results, error estimates, particular cases, comparisons and numerical examples are discussed. A CAGD modeling technique for Shepard-type curves by truncated wavelet transform and PIA algorithm is also developed at higher performance than analogous truncated Fourier transform format.
The high degree of Shepard-type operator represents a drawback and modification of Shepard-type operator at a lower degree will be the subject of further work.
Author Contributions
Conceptualization, B.D.V.; methodology, B.D.V. and U.A.; software, U.A.; investigation, B.D.V.; writing—original draft preparation, B.D.V.; writing—review and editing, U.A. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Conflicts of Interest
The authors declare no conflict of interest.
Notation
The following notation is used in this manuscript:
| Transposed vector | |
| Parametric curve relative to control vector with variable t | |
| Variant 1 applied to X | |
| Variant 2 applied to X | |
| Variant 3 applied to X | |
| Variant 4 applied to X | |
| iff with C positive constant independent of a and b | |
| truncation applied to W |
References
- Amato, U.; Della Vecchia, B. Modelling by Shepard-type curves and surfaces. J. Comput. Math. Appl. 2016, 20, 611–634. [Google Scholar]
- Amato, U.; Della Vecchia, B. Rational Approximation on Exponential Meshes. Symmetry 2020, 12, 1999. [Google Scholar] [CrossRef] [Scilit]
- Allasia, G. A class of interpolator positive linear operators: Theoretical and computational aspects. In Approximation Theory, Wavelets and Applications; NATO ASI Series C; Singh, S.P., Ed.; Kluwer: Dordrecht, The Netherlands, 1995; Volume 454, pp. 1–36. [Google Scholar]
- Anjyo, K.; Lewis, J.P.; Pighin, F. Scattered Data Interpolation for Computer Graphics. In ACM SIGGRAPH 2014 Courses; Association for Computing Machinery: New York, NY, USA, 2014. [Google Scholar]
- Della Vecchia, B. Direct and converse results by rational operators. Constr. Approx. 1996, 12, 271. [Google Scholar] [CrossRef] [Scilit]
- Della Vecchia, B.; Mastroianni, G. Pointwise simultaneous approximation by rational operators. J. Approx. Theory 1991, 65, 140–150. [Google Scholar] [CrossRef] [Scilit]
- Szabados, J. On a problem of R. Devore. Acta Math. Acad. Sci. Hung. 1976, 27, 219–223. [Google Scholar] [CrossRef] [Scilit]
- Vértesi, P. Saturation of the shepard operator. Acta Math. Hung. 1996, 72, 307–317. [Google Scholar] [CrossRef] [Scilit]
- Amato, U.; Della Vecchia, B. On Shepard–Gupta-type operators. J. Inequ. Appl. 2018, 2018, 232. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Carnicer, J.M.; Delgado, J.; Peña, J.M. On the Progressive Iteration Approximation Property and Alternative Iterations. Comput. Aided Geom. Des. 2011, 28, 523–526. [Google Scholar] [CrossRef] [Scilit]
- Lin, H.W.; Bao, H.J.; Wang, G.J. Totally Positive Bases and Progressive Iteration Approximation. Comput. Math. Appl. 2005, 50, 575–586. [Google Scholar] [CrossRef] [Scilit]
- Bezine, H.; Alimi, A.M. Handwriting perceptual classification and synthesis using discriminate HMMs and progressive iterative approximation. Neural Comput. Appl. 2020, 32, 16549–16570. [Google Scholar] [CrossRef] [Scilit]
- Chantakamo, A.; Dejdumrong, N. The Analysis of PIA Algorithm Efficiency in Converting Rational Bézier Curves into Corresponding Non-rational Curves. In Proceedings of the 2014 11th International Conference on Computer Graphics, Imaging and Visualization, Singapore, 6–8 August 2014; pp. 52–56. [Google Scholar]
- Ebadi, M.; Ebrahimi, A. Video Data Compression by Progressive Iterative Approximation. Int. J. Interact. Multimed. Artif. Intell. 2021, 6, 189–195. [Google Scholar] [CrossRef] [Scilit]
- Hamza, Y.F.; Lin, H.; Li, Z. Implicit progressive-iterative approximation for curve and surface reconstruction. Comput. Aided Geom. Des. 2020, 77, 101817. [Google Scholar] [CrossRef] [Scilit]
- Lin, H. Local Progressive-Iterative Approximation Format for Blending Curves and Patches. Comput. Aided Geom. Des. 2010, 27, 322–339. [Google Scholar] [CrossRef] [Scilit]
- Lin, H.; Zhao, Y. Variational Progressive-Iterative Approximation for Fairing Curve and Surface Generation. In Proceedings of the 2011 12th International Conference on Computer-Aided Design and Computer Graphics, Jinan, China, 15–17 September 2011; IEEE Computer Society: Los Alamitos, CA, USA, 2011; pp. 258–261. [Google Scholar]
- Wang, H. On extended progressive and iterative approximation for least squares fitting. Vis. Comput. 2021, 1–12. [Google Scholar] [CrossRef] [Scilit]
- Zhang, L.; Wang, H.; Li, Y.; Tan, J. A progressive iterative approximation method in offset approximation. J. Comput. Aided Des. Comput. Graph. 2014, 26, 1646–1653. [Google Scholar]
- Zhang, Y.; Wang, P.; Bao, F.; Yao, X.; Zhang, C.; Lin, H. A Single-Image Super-Resolution Method Based on Progressive-Iterative Approximation. IEEE Trans. Multimed. 2020, 22, 1407–1422. [Google Scholar] [CrossRef] [Scilit]
- Amato, U.; Della Vecchia, B. Weighting Shepard-type operators. Comput. Appl. Math. 2017, 36, 885–902. [Google Scholar] [CrossRef] [Scilit]
- Aral, A.; Gupta, V.; Agarwal, R.P. Applications of q-Calculus in Operator Theory; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
- Mallat, S. A Wavelet Tour of Signal Processing. The Sparse Way, 3rd ed.; Academic Press: Burlington, MA, USA, 2008. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).





