Please wait a minute...
Computational Visual Media  2020, Vol. 6 Issue (4): 417-430    doi: 10.1007/s41095-020-0186-4
Research Article     
Computing knots by quadratic and cubic polynomial curves
Fan Zhang1,2,(✉)(),Jinjiang Li1,2(),Peiqiang Liu1,2(),Hui Fan1,2()
1 School of Computer Science and Technology, Shandong Technology and Business University, Yantai 264005, China
2 Co-Innovation Center of Shandong Colleges andUniversities: Future Intelligent Computing, Yantai 264005, China
Download: PDF (657 KB)      HTML  
Export: BibTeX | EndNote (RIS)      

Abstract  

A new method is presented to determine parameter values (knot) for data points for curve and surface generation. With four adjacent data points, a quadratic polynomial curve can be determined uniquely if the four points form a convex polygon. When the four data points do not form a convex polygon, a cubic polynomial curve with one degree of freedom is used to interpolate the four points, so that the interpolant has better shape, approximating the polygon formed by the four data points. The degree of freedom is determined by minimizing the cubic coefficient of the cubic polynomial curve. The advantages of the new method are, firstly, the knots computed have quadratic polynomial precision, i.e., if the data points are sampled from a quadratic polynomial curve, and the knots are used to construct a quadratic polynomial, it reproduces the original quadratic curve. Secondly, the new method is affine invariant, which is significant, as most parameterization methods do not have this property. Thirdly, it computes knots using a local method. Experiments show that curves constructed using knots computed by the new method have better interpolation precision than for existing methods.



Key wordsknot      interpolation      polynomial curve      affine invariant     
Received: 30 March 2020      Published: 30 November 2020
Fund:  National Natural Science Foundation of China(Grant Nos. 61602277 and 61772319);Natural Science Foundation of Shandong Province(Grant Nos. ZR2016FQ12 and ZR2018BF009);Key Research and Development Program of Yantai City(Grant No. 2017ZH065);CERNET Innovation Project(Grant No. NGII20161204);Science and Technology Innovation Program for Distributed Young Talents of Shandong Province Higher Education Institutions(Grant No. 2019KJN042)
Corresponding Authors: Fan Zhang     E-mail: zhangfan51@sina.com;lijinjiang@gmail.com;liupq@126.com;fanlinw@263.net
About author: Fan Zhang received his B.S. and Ph.D. degrees in computer science from Shandong University in 2009 and 2015, respectively. From 2012 to 2014, he visited the Department of Computer Science, University of Kentucky, USA, as a joint-training Ph.D. student. He is currently an associate professor with the School of Computer Science and Technology, Shandong Business and Technology University. His research interests include image processing, computer vision, computer graphics, and CAGD.|Jinjiang Li received his B.S. and M.S. degrees in computer science from Taiyuan University of Technology, China, in 2001 and 2004, respectively, and his Ph.D. degree in computer science from Shandong University, Jinan, China, in 2010. From 2004 to 2006, he was an assistant research fellow with the Institute of Computer Science and Technology, Peking University. From 2012 to 2014, he was a post-doctoral fellow with Tsinghua University, Beijing. He is currently a professor with the School of Computer Science and Technology, Shandong Technology and Business University. His research interests include image processing, computer graphics, computer vision, and machine learning.|Peiqiang Liu received his Ph.D. degree in computer software and theory from Shandong University in 2013. He is currently a professor at Shandong Technology and Business University. His research interests include algorithms and complexity theory, and computational biology.|Hui Fan received his B.S. degree in computer science from Shandong University in 1984 and his Ph.D. degree in computer science from Taiyuan University of Technology in 2007. From 1984 to 2001, he was a professor at the Computer Department of Taiyuan University of Technology. He is currently a professor at Shandong Technology and Business University. His research interests include computer aided geometric design, computer graphics, information visualization, virtual reality, and image processing.
Cite this article:

Fan Zhang,Jinjiang Li,Peiqiang Liu,Hui Fan. Computing knots by quadratic and cubic polynomial curves. Computational Visual Media, 2020, 6(4): 417-430.

URL:

http://cvm.tsinghuajournals.com/10.1007/s41095-020-0186-4     OR     http://cvm.tsinghuajournals.com/Y2020/V6/I4/417

Fig. 1 Five data points after transformation.
23).
">
Fig. 2 Plot of Eq. (23).
sil, sic, and sir.
">
Fig. 3 Positions of sil, sic, and sir.
F2?(k,t).
">
Fig. 4 Plots of F2?(k,t).
E1?(k,t)NewM0M1M2M3M4M5M6
K=01.33e-31.64e-31.02e-35.95e-31.03e-21.11e-31.76e-28.96e-3
K=11.37e-31.78e-32.18e-37.67e-31.24e-21.24e-32.09e-21.09e-2
K=21.71e-32.04e-33.49e-39.14e-31.40e-21.75e-32.36e-21.23e-2
K=32.09e-32.39e-35.59e-31.03e-21.51e-22.24e-32.58e-21.32e-2
K=42.46e-32.70e-37.99e-31.14e-21.57e-22.71e-32.77e-21.36e-2
K=52.79e-32.96e-31.07e-21.27e-21.58e-23.19e-32.93e-21.37e-2
K=63.10e-33.19e-31.35e-21.42e-21.60e-23.63e-33.06e-21.50e-2
K=73.38e-33.39e-31.73e-21.55e-21.76e-24.03e-33.17e-21.66e-2
K=83.64e-33.58e-32.20e-21.66e-21.91e-24.41e-33.26e-21.82e-2
K=93.88e-33.75e-32.71e-21.76e-22.04e-24.75e-33.34e-21.97e-2
K=104.10e-33.93e-33.23e-21.84e-22.17e-25.08e-33.40e-22.10e-2
K=114.30e-34.22e-33.76e-21.91e-22.28e-25.38e-33.45e-22.21e-2
K=124.58e-34.71e-34.30e-21.97e-22.38e-25.66e-33.50e-22.30e-2
K=134.97e-35.51e-34.83e-22.02e-22.46e-25.93e-33.54e-22.39e-2
Table 1 Maximum errors of E1?(k,t) for λ=0.15
E2?(k,t)NewM0M1M2M3M4M5M6
K=12.23e-54.18e-57.87e-52.24e-48.09e-42.15e-51.26e-47.60e-4
K=24.58e-55.49e-51.01e-42.76e-48.83e-44.64e-51.57e-48.32e-4
K=37.15e-57.69e-51.24e-43.31e-49.53e-47.37e-51.78e-49.01e-4
K=49.99e-51.03e-41.63e-43.88e-41.02e-31.06e-41.90e-49.64e-4
K=51.33e-41.33e-42.06e-44.45e-41.07e-31.51e-42.30e-41.02e-3
K=61.31e-41.67e-42.47e-44.99e-41.12e-31.85e-42.66e-41.06e-3
K=71.82e-42.05e-42.83e-45.49e-41.14e-31.93e-42.97e-41.09e-3
K=82.09e-42.45e-43.76e-45.90e-41.15e-32.49e-43.24e-41.10e-3
K=93.34e-42.86e-44.92e-46.58e-41.12e-35.03e-43.46e-41.07e-3
K=103.16e-43.33e-46.39e-47.23e-41.04e-34.18e-43.97e-41.01e-3
K=113.49e-43.97e-49.32e-47.76e-49.93e-45.09e-44.70e-49.73e-4
K=124.44e-44.50e-41.35e-38.06e-41.03e-35.78e-45.54e-41.02e-3
K=133.84e-46.19e-41.88e-37.97e-41.04e-35.42e-46.48e-41.04e-3
K=144.99e-48.43e-42.50e-37.23e-49.85e-48.13e-47.48e-49.79e-4
Table 2 Maximum errors of E2?(k,t) for λ=0.15
Fig. 5 Error curves for six methods.
F1?(t)NewM0M1M2M3M4M5M6
λ=0.054.28e-51.56e-44.15e-42.87e-43.87e-45.29e-52.80e-45.46e-4
λ=0.104.51e-51.64e-44.25e-44.52e-46.09e-45.68e-53.08e-41.03e-3
λ=0.154.82e-51.73e-44.32e-46.19e-49.59e-46.05e-53.39e-41.58e-3
λ=0.205.75e-51.82e-44.36e-48.46e-41.36e-36.38e-53.71e-42.17e-3
λ=0.257.27e-51.90e-44.37e-41.13e-31.82e-36.68e-54.09e-42.83e-3
Table 3 Maximum errors of F1?(t)
[1]   Ahlberg, J. H.; Nilson, E.; Walsh, J. L. The Theory of Splines and Their Applications. Academic Press, 1967.
[2]   Boor, C. D. A Practical Guide to Splines. Springer-Verlag New York, 1978.
[3]   Brodlie, K. W. A review of methods for curve and function drawing. In: Mathematical Methods in Computer Graphics and Design. London: Academic Press, 33-37, 1980.
[4]   Faux, I. D.; Pratt, M. J. Computational Geometry for Design and Manufacture. Halsted Press, 1979.
[5]   Su, B. Q.; Liu, D. Y. Computational Geometry: Curve and Surface Modeling. Academic Press, 1989.
[6]   Li, W. S.; Xu, S. H.; Zheng, J. M.; Zhao, G. Target curvature driven fairing algorithm for planar cubic B-spline curves. Computer Aided Geometric Design Vol. 21, No. 5, 499-513, 2004.
[7]   Lü, W. Curves with chord length parameterization. Computer Aided Geometric Design Vol. 26, No. 3, 342-350, 2009.
[8]   Farin, G. Curves and Surfaces for Computer Aided Geometric Design: A Practical Guide. Academic Press, 1988.
[9]   Lee, E. T. Y. Choosing nodes in parametric curve interpolation. Computer-Aided Design Vol. 21, No. 6, 363-370, 1989.
[10]   Jeong, S. Y.; Choi, Y. J.; Park, P. Parametric interpolation using sampled data. Computer-Aided Design Vol. 38, No. 1, 39-47, 2006.
[11]   Yuksel, C.; Schaefer, S.; Keyser, J. Parameterization and applications of Catmull-Rom curves. Computer-Aided Design Vol. 43, No. 7, 747-755, 2011.
[12]   Fang, J. J.; Hung, C. L. An improved parameterization method for B-spline curve and surface interpolation. Computer-Aided Design Vol. 45, No. 6, 1005-1028, 2013.
[13]   Lim, C. G. A universal parametrization in B-spline curve and surface interpolation. Computer Aided Geometric Design Vol. 16, No. 5, 407-422, 1999.
[14]   Zhang, C. M.; Cheng, F. H. F.; Miura, K. T. A method for determining knots in parametric curve interpolation. Computer Aided Geometric Design Vol. 15, No. 4, 399-416, 1998.
[15]   Zhang, C. M.; Wang, W. P.; Wang, J. Y.; Li, X. M. Local computation of curve interpolation knots with quadratic precision. Computer-Aided Design Vol. 45, No. 4, 853-859, 2013.
[16]   Hartley, P. J.; Judd, C. J. Parametrization and shape of B-spline curves for CAD. Computer-Aided Design Vol. 12, No. 5, 235-238, 1980.
[17]   Marin, S. P. An approach to data parametrization in parametric cubic spline interpolation problems. Journal of Approximation Theory Vol. 41, No. 1, 64-86, 1984.
[18]   Li, X. M.; Zhang, F.; Chen, G. N.; Zhang, C. M. Formula for computing knots with minimum stress and stretching energies. Science China Information Sciences Vol. 61, No. 5, Article No. 052104, 2017.
[19]   Lin, F. M.; Shen, L. Y.; Yuan, C. M.; Mi, Z. P. Certified space curve fitting and trajectory planning for CNC machining with cubic B-splines. Computer-Aided Design Vol. 106, 13-29, 2019.
[20]   Yang, Z. Y.; Shen, L. Y.; Yuan, C. M.; Gao, X. S. Curve fitting and optimal interpolation for CNC machining under confined error using quadratic B-splines. Computer-Aided Design Vol. 66, 62-72, 2015.
[21]   Floater, M. S.; Reimers, M. Meshless parameterization and surface reconstruction. Computer Aided Geometric Design Vol. 18, No. 2, 77-92, 2001.
[22]   Gotsman, C.; Gu, X. F.; Sheffer, A. Fundamentals of spherical parameterization for 3D meshes. In: Proceedings of the ACM SIGGRAPH 2003 Papers, 358-363, 2003.
[23]   Gu, X. F.; Yau, S. T. Global conformal surface parameterization. In: Proceedings of the Eurographics/ACM SIGGRAPH Symposium on Geometry Processing, 127-137, 2003.
[24]   Xie, H.; Qin, H. A novel optimization approach to the effective computation of NURBS knots. International Journal of Shape Modeling Vol. 7, No. 2, 199-227, 2001.
[25]   Farin, G. Rational quadratic circles are parametrized by chord length. Computer Aided Geometric Design Vol. 23, No. 9, 722-724, 2006.
[26]   Bastl, B.; Jüttler, B.; Lávi?ka, M.; Schicho, J.; ?ír, Z. Spherical quadratic Bézier triangles with chord length parameterization and tripolar coordinates in space. Computer Aided Geometric Design Vol. 28, No. 2, 127-134, 2011.
[27]   Bastl, B.; Jüttler, B.; Lávi?ka, M.; ?ír, Z. Curves and surfaces with rational chord length parameterization. Computer Aided Geometric Design Vol. 29, No. 5, 231-241, 2012.
[28]   Tsuchie, S.; Okamoto, K. High-quality quadratic curve fitting for scanned data of styling design. Computer-Aided Design Vol. 71, 39-50, 2016.
[29]   Han, X. L. A class of general quartic spline curves with shape parameters. Computer Aided Geometric Design Vol. 28, No. 3, 151-163, 2011.
[30]   Bashir, U.; Abbas, M.; Ali, J. M. The G2 and C2 rational quadratic trigonometric Bézier curve with two shape parameters with applications. Applied Mathematics and Computation Vol. 219, No. 20, 10183-10197, 2013.
[31]   Antonelli, M.; Beccari, C. V.; Casciola, G. High quality local interpolation by composite parametric surfaces. Computer Aided Geometric Design Vol. 46, 103-124, 2016.
[1] Takahiro Sato, Christopher Batty, Takeo Igarashi, and Ryoichi Ando. Spatially adaptive long-term semi-Lagrangian method for accurate velocity advection[J]. Computational Visual Media, 2018, 04(03): 223-230.
[2] Shao-Ping Lu,Guillaume Dauphin,Gauthier Lafruit,Adrian Munteanu. Color retargeting: Interactive time-varying color image composition from time-lapse sequences[J]. Computational Visual Media, 2015, 1(4): 321-330.