计算机辅助设计与图形学学报
計算機輔助設計與圖形學學報
계산궤보조설계여도형학학보
JOURNAL OF COMPUTER-AIDED DESIGN & COMPUTER GRAPHICS
2015年
1期
128-135,156
,共9页
牛连强%彭敏%孙忠礼%张刚
牛連彊%彭敏%孫忠禮%張剛
우련강%팽민%손충례%장강
连通域%标号传播%标记算法%标号等价%游程标记%并查集
連通域%標號傳播%標記算法%標號等價%遊程標記%併查集
련통역%표호전파%표기산법%표호등개%유정표기%병사집
connected components%label propagating%labeling algorithm%label equivalent%run length encoding%union-find
为了实现对图像的快速连通域标记,提出一种基于传播游程集合标号的二值图像连通域标记算法。该算法仅对每个由一系列相邻行中的连通游程所构成的游程集合(称为向下连通分支)而非游程分配临时标号,利用一个位置映射表一次性建立向下连通分支中所有游程与其共同临时标号之间的位置关联,将所有向下连通分支的标号构成一个规模很小的具有树形结构的等价信息表;再使等价信息直接在部分路径中传播,并通过最后一次标号表扫描将所有临时标号转换为代表标号。实验结果表明,文中算法原理和实现简单,且由于具有处理的等价信息量小、对向下连通分支内的游程标记操作少,以及在连通分支合并时无需计算最小标号等特点,使其速度快于现有算法。
為瞭實現對圖像的快速連通域標記,提齣一種基于傳播遊程集閤標號的二值圖像連通域標記算法。該算法僅對每箇由一繫列相鄰行中的連通遊程所構成的遊程集閤(稱為嚮下連通分支)而非遊程分配臨時標號,利用一箇位置映射錶一次性建立嚮下連通分支中所有遊程與其共同臨時標號之間的位置關聯,將所有嚮下連通分支的標號構成一箇規模很小的具有樹形結構的等價信息錶;再使等價信息直接在部分路徑中傳播,併通過最後一次標號錶掃描將所有臨時標號轉換為代錶標號。實驗結果錶明,文中算法原理和實現簡單,且由于具有處理的等價信息量小、對嚮下連通分支內的遊程標記操作少,以及在連通分支閤併時無需計算最小標號等特點,使其速度快于現有算法。
위료실현대도상적쾌속련통역표기,제출일충기우전파유정집합표호적이치도상련통역표기산법。해산법부대매개유일계렬상린행중적련통유정소구성적유정집합(칭위향하련통분지)이비유정분배림시표호,이용일개위치영사표일차성건립향하련통분지중소유유정여기공동림시표호지간적위치관련,장소유향하련통분지적표호구성일개규모흔소적구유수형결구적등개신식표;재사등개신식직접재부분로경중전파,병통과최후일차표호표소묘장소유림시표호전환위대표표호。실험결과표명,문중산법원리화실현간단,차유우구유처리적등개신식량소、대향하련통분지내적유정표기조작소,이급재련통분지합병시무수계산최소표호등특점,사기속도쾌우현유산법。
To label connected components in an image fast, this paper presents a very efficient algorithm for labeling connected components in a binary image based on propagating labels of run sets. This algorithm as-signs provisional labels only to run sets which are composed of a series of runs connected to each other in adjacent scan rows rather than to each run. This kind of run set is called downward connected branch or DCB for short. A location map table is established at one time to store the location relations between all runs in DCBs, and all label nodes of DCBs are organized in a tree with small size. This enables us to propagate equivalence information in a partial path. Finally, the map table is scanned once to replace all provisional labels with representative labels. The result demonstrates that the speed of the algorithm is faster than ex-isted ones as less equivalence information needs to be processed, fewer operations needs to label runs in DCBs, and the minimum label needs not to be calculated while combining two DCBs. Further more, the al-gorithm is very simple.