How to compute the convex hull of a binary shape? A real-time algorithm to compute the convex hull of a binary shape

被引:5
作者
Fabrizio, Jonathan [1 ]
机构
[1] EPITA, LRE, 14-16 Rue Voltaire, F-94276 Le Kremlin Bicetre, France
关键词
Convex hull; Binary shape; Real-time; POINTS;
D O I
10.1007/s11554-023-01359-8
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
In this article, we present an algorithm to compute the convex hull of a binary shape. Efficient algorithms to compute the convex hull of a set of points had been proposed long time ago. For a binary shape, the common practice is to rely on one of them: to compute the convex hull of binary shape, all pixels of the shape are first listed, and then the convex hull is computed on this list of points. The computed convex hull is finally rasterized to provide the final result [as, for example, in the famous scikit-image library (scikit-image: Image processing in python. https://scikit-image.org)]. To compute the convex hull of an arbitrary set of points, the points of the list that lie on the outline of the convex hull must be selected (to simplify, we call these points "extrema"). To find them, for an arbitrary set of points, it is necessary to browse all the points but not in the particular case of a binary shape. In this specific situation, the extrema necessarily belong to the inner boundary of the shape. It is a waste of time to browse all the pixels as it is possible to discard most of them when we search for these extrema. Based on this analysis, we propose a new method to compute the convex hull dedicated to binary shapes. This method browses as few pixels as possible to select a small subset of boundary pixels. Then it deduces the convex hull only from this subset. As the size of the subset is very small, the convex hull is computed in real time. We compare it with the commonly used methods and common functions from libraries to prove that our approach is faster. This comparison shows that, for a very small shape, the difference is acceptable, but when the area of the shape grows, this difference becomes significant. This leads us to conclude that substituting current functions to compute convex hull of binary shapes with our algorithm in frequently used libraries would lead to a great improvement.
引用
收藏
页数:12
相关论文
共 38 条
[11]  
cgal, The Computational Geometry Algorithms Library
[12]  
Chan Timothy M., 2005, Symposium on Computational Geometry, P180
[13]   Optimal output-sensitive convex hull algorithms in two and three dimensions [J].
Chan, TM .
DISCRETE & COMPUTATIONAL GEOMETRY, 1996, 16 (04) :361-368
[14]  
Eddy W. F., 1977, ACM Transactions on Mathematical Software, V3, P398, DOI 10.1145/355759.355766
[15]  
Fabrizio J., 2009, CIT MOD ROADS TRAFF
[16]   TextCatcher: a method to detect curved and challenging text in natural scenes [J].
Fabrizio, Jonathan ;
Robert-Seidowsky, Myriam ;
Dubuisson, Severine ;
Calarasanu, Stefania ;
Boissel, Raphael .
INTERNATIONAL JOURNAL ON DOCUMENT ANALYSIS AND RECOGNITION, 2016, 19 (02) :99-117
[17]  
Fabrizio J, 2014, IEEE IMAGE PROC, P2585, DOI 10.1109/ICIP.2014.7025523
[18]   gHull: A GPU Algorithm for 3D Convex Hull [J].
Gao, Mingcen ;
Thanh-Tung Cao ;
Nanjappa, Ashwin ;
Tan, Tiow-Seng ;
Huang, Zhiyong .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 2013, 40 (01)
[19]  
Gao Mingcen., 2013, P ACM SIGGRAPH S INT, P45, DOI DOI 10.1145/2448196.2448203
[20]   Fast data reduction by space partitioning via convex hull and MBR computation [J].
Giorginis, Thomas ;
Ougiaroglou, Stefanos ;
Evangelidis, Georgios ;
Dervos, Dimitris A. .
PATTERN RECOGNITION, 2022, 126