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 条
[1]   FAST CONVEX HULL ALGORITHM [J].
AKL, SG ;
TOUSSAINT, GT .
INFORMATION PROCESSING LETTERS, 1978, 7 (05) :219-222
[2]   A Preprocessing Technique for Fast Convex Hull Computation [J].
Alshamrani, Reham ;
Alshehri, Fatimah ;
Kurdi, Heba .
11TH INTERNATIONAL CONFERENCE ON AMBIENT SYSTEMS, NETWORKS AND TECHNOLOGIES (ANT) / THE 3RD INTERNATIONAL CONFERENCE ON EMERGING DATA AND INDUSTRY 4.0 (EDI40) / AFFILIATED WORKSHOPS, 2020, 170 :317-324
[3]   ANOTHER EFFICIENT ALGORITHM FOR CONVEX HULLS IN 2 DIMENSIONS [J].
ANDREW, AM .
INFORMATION PROCESSING LETTERS, 1979, 9 (05) :216-219
[4]  
[Anonymous], About us
[5]  
[Anonymous], About us
[6]   DEEPHULL: FAST CONVEX HULL APPROXIMATION IN HIGH DIMENSIONS [J].
Balestriero, Randall ;
Wang, Zichao ;
Baraniuk, Richard G. .
2022 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP), 2022, :3888-3892
[7]   The Quickhull algorithm for convex hulls [J].
Barber, CB ;
Dobkin, DP ;
Huhdanpaa, H .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 1996, 22 (04) :469-483
[8]  
Brodal GS, 2002, ANN IEEE SYMP FOUND, P617, DOI 10.1109/SFCS.2002.1181985
[9]   CONVEX HULL OF A FINITE SET OF POINTS IN 2 DIMENSIONS [J].
BYKAT, A .
INFORMATION PROCESSING LETTERS, 1978, 7 (06) :296-298
[10]   Face Recognition Based on Videos by Using Convex Hulls [J].
Cevikalp, Hakan ;
Yavuz, Hasan Serhan ;
Triggs, Bill .
IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, 2020, 30 (12) :4481-4495