Open Access iconOpen Access

ARTICLE

crossmark

A Novel Contour Tracing Algorithm for Object Shape Reconstruction Using Parametric Curves

Nihat Arslan1, Kali Gurkahraman2,*

1 Defence Technology Programme, Sivas University of Science and Technology, Sivas, 58070, Turkey
2 Department of Computer Engineering, Sivas Cumhuriyet University, Sivas, 58140, Turkey

* Corresponding Author: Kali Gurkahraman. Email: email

Computers, Materials & Continua 2023, 75(1), 331-350. https://doi.org/10.32604/cmc.2023.035087

Abstract

Parametric curves such as Bézier and B-splines, originally developed for the design of automobile bodies, are now also used in image processing and computer vision. For example, reconstructing an object shape in an image, including different translations, scales, and orientations, can be performed using these parametric curves. For this, Bézier and B-spline curves can be generated using a point set that belongs to the outer boundary of the object. The resulting object shape can be used in computer vision fields, such as searching and segmentation methods and training machine learning algorithms. The prerequisite for reconstructing the shape with parametric curves is to obtain sequentially the points in the point set. In this study, a novel algorithm has been developed that sequentially obtains the pixel locations constituting the outer boundary of the object. The proposed algorithm, unlike the methods in the literature, is implemented using a filter containing weights and an outer circle surrounding the object. In a binary format image, the starting point of the tracing is determined using the outer circle, and the next tracing movement and the pixel to be labeled as the boundary point is found by the filter weights. Then, control points that define the curve shape are selected by reducing the number of sequential points. Thus, the Bézier and B-spline curve equations describing the shape are obtained using these points. In addition, different translations, scales, and rotations of the object shape are easily provided by changing the positions of the control points. It has also been shown that the missing part of the object can be completed thanks to the parametric curves.

Keywords


Cite This Article

N. Arslan and K. Gurkahraman, "A novel contour tracing algorithm for object shape reconstruction using parametric curves," Computers, Materials & Continua, vol. 75, no.1, pp. 331–350, 2023.



cc 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.
  • 961

    View

  • 385

    Download

  • 1

    Like

Share Link