华南理工大学学报(自然科学版) ›› 2017, Vol. 45 ›› Issue (7): 84-89.doi: 10.3969/j.issn.1000-565X.2017.07.012
吕常魁 徐岩 罗冰心
LYU Chang-kui XU Yan LUO Bing-xin
摘要: 为提高二值图像连通区域标记( CCL) 的计算效率,提出快速游程标记( FRL) 算法,对基于游程的两次扫描算法中的传统游程连通检测算法进行了优化; 然后介绍了基于
FRL 与并查集的整体算法; 最后对 FRL 的计算效率进行了实验验证,并将整体算法与RTS 与 SAUF 两种典型的两次扫描 CCL 算法进行了比对分析. 结果表明: FRL 算法省去了行间游程不必要的后续比对,使得比对形式接近于链式,大幅度提高了游程标记的计算效率,时间复杂度由传统 RL 算法的 O( mn) 降为 O( m + n -1) ,执行时间降为与并查集运算环节同一量级; 整体算法的性能明显优于 RTS 算法,总体上略优于 SAUF 算法.
中图分类号: