A fast labeling algorithm of connected components applicable for hardware implementation is proposed for feature extraction and selection that are commonly used in pattern recognition
computer vision and image processing. First
row scanning is performed to determine consecutive foreground pixels in the same row
i.e.
runs
and to record the start and end coordinates of the runs. Then
the run labels and the equivalent run pairs are merged
and temporary values are assigned to these labeled runs according to the connection conditions. Finally
runs of the last row is scanned to determine whether the run of the last row is really over by detecting the corresponding flag bit if it is really finished
and the information of finished region is output
otherwise the next row is scanned. Experiments using different binary images and comparisons with the performance of existing algorithms show that the proposed algorithm has obvious advantages in speed and resource requirements. The average frame rate of image processing speed reaches up to 20 frames/s
and the algorithm requires about 3.45 Mbit on-chip memory resource for an image with a resolution of 2 048×1 536 pixels
which is only 21.9% and 7.6% of the requirements of the block based decision table algorithm and the He algorithm
respectively.
关键词
Keywords
references
HUGO H, FREDRIK K, VIKTOR O. Implementation of a labeling algorithm based on contour tracing with feature extraction [C]∥Proceedings of IEEE International Symposium on Circuits and Systems. Piscataway, NJ, USA: IEEE, 2007: 1101-1104.
AYMAN A, RAMI Q, STAN I, et al. One scan connected component labeling technique [C]∥Proceedings of 2007 IEEE International Conference on Signal Processing and Communications. Piscataway, NJ, USA: IEEE, 2007: 1283-1286.
WANG Kai, SHI Longzhao. Design and implementation of fast connected region marking algorithm based on FPGA [J]. Computer Engineering and Applications, 2016, 52(18): 192-198.
ROSENFELD A. Sequential operations in digital picture processing [J]. Journal of the ACM, 1966, 13(4): 471-494.
CHANG Fu, CHEN Chunjin, LU Chijin. A linear-time component-labeling algorithm using contour tracing technique [J]. Computer Vision and Image Understanding, 2004, 93(2): 741-745.
HE Lifeng, CHAO Yuyan, SUZUKI K. A run-based two-scan labeling algorithm [J]. IEEE Transactions on Image Processing, 2008, 17(5): 749-756.
HE Lifeng, CHAO Yuyan, SUZUKI K, et al. Linear-time two-scan labeling algorithm [C]∥Proceedings of the IEEE International Conference on Image Processing. Piscataway, NJ, USA: IEEE, 2007: 241-244.
HE Lifeng, CHAO Yuyan, SUZUKI K, et al. Fast connected-component labeling [J]. Pattern Recognition, 2009, 42(9): 1977-1987.
COSTANTINO G, DANIELE B, RITA C. Optimized block-based connected components labeling with decision trees [J]. IEEE Transactions on Image Processing, 2010, 19(6): 1596-1609.
KOFI A, ANDREW H, PATRICK D, et al. A run-length based connected component algorithm for FPGA implementation [C]∥Proceedings of the International Conference on Field-Programmable Technology. Piscataway, NJ, USA: IEEE, 2008: 177-184.
JOHNSTON CT, BAILEY DG. FPGA implementation of a single pass connected components algorithm [C]∥Proceedings of the IEEE International Symposium on Electronic Design, Test and Applications. Piscataway, NJ, USA: IEEE, 2008: 228-231.
LIU Guansong, LÜ Jiawen. A new fast algorithm for binary image marking [J]. Computer Engineering and Applications, 2002, 38(4): 57-59.
DIEGO J C, SANTIAGO R, CAVALCANTI G, et al. Efficient 2×2 block-based connected components labeling algorithms [C]∥Proceedings of the IEEE International Conference on Image Processing. Piscataway, NJ, USA: IEEE, 2015: 4818-4822.
CHEN Baisheng. A new algorithm for binary connected components labeling [J]. Computer Engineering and Applications, 2006, 42(25): 46-47.
SUZUKI K, HORIBA I, SUGIE N. Linear-time connected-component labeling based on sequential local operations [J]. Computer Vision and Image Understanding, 2003, 89(1): 1-2.
WANG J Z, LI J, WIEDERHOLD G. Semantics-sensitive integrated matching for picture libraries [J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2001, 23(9): 947-963.
SUTHEEBANJARD P, PREMCHAISWADI W. Efficient scan mask techniques for connected components labeling algorithm [J]. Eurasip Journal on Image and Video Processing, 2011(1):1-20.