| Literature DB >> 32734555 |
Andrea Bodonyi1,2, Roland Kunkli3.
Abstract
In this paper, we propose an efficient computational method for converting local coordinates to world coordinates using specially structured coordinate data. The problem in question is the computation of world coordinates of an object throughout a motion, assuming that we only know the changing coordinates of some fixed surrounding reference points in the local coordinate system of the object. The proposed method is based on barycentric coordinates; by taking the aforementioned static positions as the vertices of a polyhedron, we can specify the coordinates of the object in each step with the help of barycentric coordinates. This approach can significantly help us to achieve more accurate results than by using other possible methods. In the paper, we describe the problem and barycentric coordinate-based solution in detail. We then compare the barycentric method with a technique based on transformation matrices, which we also tested for solving our problem. We also present various diagrams that demonstrate the efficiency of our proposed approach in terms of precision and performance.Entities:
Keywords: Barycentric coordinates; Conversion; Coordinate systems; Location; Transformation
Year: 2020 PMID: 32734555 PMCID: PMC7392958 DOI: 10.1186/s42492-020-00052-y
Source DB: PubMed Journal: Vis Comput Ind Biomed Art ISSN: 2524-4442
Fig. 1Barycentric coordinates of point p inside the tetrahedron abcd. In the figure, r = (1 – 0.4)a + 0.4b, q = (1 – 0.5)r + 0.5c, and p = (1 – 0.6q) + 0.6d. Using the computation method proposed below to obtain t, u, v, and w barycentric coordinates of p, we get that p = 0.12a + 0.08b + 0.2c + 0.6d
Fig. 2Precision measurements. The blue line marks the precision of the approach based on barycentric coordinates, while the red line marks the precision of the method using matrix transformations. Each measurement differs in the type of movement: a seldom-changing constant direction, b spiral movement, c constant direction with randomly generated rotations, and d randomly generated rotations and translation vectors
Performance measurements of the barycentric approach and matrix method
| Step count | Barycentric approach | Matrix method |
|---|---|---|
| 10000 | 14.5 ms | 20.7 ms |
| 100000 | 54.9 ms | 85.9 ms |
| 200000 | 101.4 ms | 343.5 ms |