JPH01303581A - Border line tracking device for digital image - Google Patents

Border line tracking device for digital image

Info

Publication number
JPH01303581A
JPH01303581A JP63134149A JP13414988A JPH01303581A JP H01303581 A JPH01303581 A JP H01303581A JP 63134149 A JP63134149 A JP 63134149A JP 13414988 A JP13414988 A JP 13414988A JP H01303581 A JPH01303581 A JP H01303581A
Authority
JP
Japan
Prior art keywords
pixel
picture element
value
memory
boundary line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP63134149A
Other languages
Japanese (ja)
Other versions
JP2600804B2 (en
Inventor
Naoki Sano
直樹 佐野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP63134149A priority Critical patent/JP2600804B2/en
Publication of JPH01303581A publication Critical patent/JPH01303581A/en
Application granted granted Critical
Publication of JP2600804B2 publication Critical patent/JP2600804B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To extract a graphic form border line efficiently by generating a picture element state value that an aimed picture element has from the coordinate values of the aimed picture element on the border line and two picture elements which are before and behind the aimed picture element on the border line, detecting a tracking start candidate picture element previously, and marking only the picture element. CONSTITUTION:The aimed picture element is denoted as P, the picture element before it as P-, and the picture element behind it as P+. In this case, the direction CH1 from P- to P and the direction CH2 from P to PL are represented with Freeman chain codes (0-7). Then the picture element state value (0, 1) that the aimed picture element P has is determined in a table (a) according to the combination of the directions CH1 and CH2 and processing corresponding to this picture element state value is carried out. When the picture element state value is 1, a picture element value '1' is written at a corresponding position on a work memory and when the picture element value is '1', a tracking end picture element is decided and a next tracking start candidate picture element is searched for; when the picture element value is '0', an untracked picture element is decided and the border line begins to be tracked from this picture element. Consequently, the border line of a graphic form can be extracted efficiently.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、ディジタル図形処理装置における、ディジタ
ル画像の境界線追跡装置の改善に関するものである。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to an improvement of a digital image boundary tracing device in a digital graphic processing device.

〈従来の技術〉 ディジタル画像における図形の境界線の抽出は画像処理
の基本的手法であり、図形認識、データ圧縮等の応用分
野において重要である。このため、簡単なハードウェア
構成で高速に処理できる境界線の抽出方法が望まれてい
る。
<Prior Art> Extraction of figure boundaries in digital images is a basic method of image processing, and is important in applied fields such as figure recognition and data compression. Therefore, there is a need for a boundary line extraction method that can be processed at high speed with a simple hardware configuration.

従来の境界縁抽出の代表的な方法として、例えば、Ro
senfeld4::よる境界画素追跡(B orde
rPixel  Following;Rosenfe
ld(長尾、他訳)。
As a typical method of conventional boundary edge extraction, for example, Ro
Senfeld4::Border pixel tracking (B orde
rPixel Following;Rosenfe
ld (translated by Nagao and others).

“ディジタル画像処理”近代科学社、 1978に記載
)が知られている。
"Digital Image Processing" Kindai Kagakusha, 1978) is known.

この方法は、適当な境界画素から出発して一定の順序で
隣接する境界画素を辿って一巡したとき、1本の境界線
の抽出を終了する方式である。従って、画像全体に含ま
れる全境界線をもれなく抽出するためには、追跡が完全
に終了した境界画素には“マーク°°を付加することが
必要とされる。
This method starts from a suitable boundary pixel, traces adjacent boundary pixels in a fixed order, and finishes extracting one boundary line when it completes one round. Therefore, in order to extract all boundary lines included in the entire image without exception, it is necessary to add a "mark °°" to the boundary pixels for which tracking has been completely completed.

特に、マーク付けに関しては、第7図(a)。In particular, regarding marking, see FIG. 7(a).

(b)に示した穴の開いた図形の境界線追跡抽出にみら
れるように、全く同じく第7図(a))または大部分が
同じ(第7図(b))境界画素を外側境界線または内側
境界線の画素として2度追跡する場合が生じるため、単
純にマーク1個を用いて追跡終了画素と未追跡画素を区
別することはできず、異なる値を有するマーク2個を用
いてそれぞれを区別する必要がある。
As can be seen in the boundary line tracing extraction of the figure with a hole shown in (b), the boundary pixels that are exactly the same (Fig. 7 (a)) or mostly the same (Fig. 7 (b)) are placed on the outer boundary line. Alternatively, there may be cases where the pixel is tracked twice as a pixel on the inner boundary line, so it is not possible to simply use one mark to distinguish between a pixel that has finished tracking and a pixel that has not been tracked. It is necessary to distinguish between

〈発明が解決しようとする課題〉 しかしながら、境界線抽出の際に異なる値を有するマー
ク2個を用いることは、原画像が通常の1ビツト/1画
素の容量を有する原画像メモリに予め格納されている場
合に、原画像メモリと大きさは同じ、で通常のメモリと
は構成が異なる2ビツト/1画素の特別なメモリをワー
ク・メモリとして設けることになり、その分ハードウェ
ア構成が複雑となるため好ましくない。
<Problems to be Solved by the Invention> However, using two marks with different values when extracting a boundary line means that the original image is stored in advance in an original image memory having a capacity of normal 1 bit/1 pixel. In this case, a special memory of 2 bits/1 pixel, which is the same size as the original image memory but has a different configuration from normal memory, is provided as a work memory, which makes the hardware configuration more complicated. This is not desirable.

本発明は以上のような問題を解決するためになされたも
のであり、原画像メモリと同じ大きさ、同じ構成のワー
ク・メモリを用い、1個のマークのみで図形の境界線を
効率よく抽出できる装置を得ることを目的とする。
The present invention was made to solve the above problems, and uses a work memory with the same size and configuration as the original image memory, and efficiently extracts the boundary line of a figure using only one mark. The purpose is to obtain a device that can.

く課題を解決するための手段〉 本発明は、新たな境界追跡開始候補画素を検出した場合
にワーク・メモリ上の画素値を参照してこの候補画素が
未追跡画素か追跡終了画素かの判別を行うことを特徴と
するものであり、その構成は次の通りである。
Means for Solving the Problems> The present invention, when a new boundary tracking start candidate pixel is detected, refers to the pixel value in the work memory to determine whether this candidate pixel is an untracked pixel or a tracking end pixel. It is characterized by performing the following, and its configuration is as follows.

即ち、本発明は、ディジタル画像を格納する原画像メモ
リ及びこの原画像メモリと同じ容量を有し作業用メモリ
として用いられるワーク・メモリからなる画像メモリと
、前記原画像メモリ上の境界画素の座標値を順次入力し
て現在の注目画素の座標値とその前後の画素の座標値か
らこの注目画素の画素状態値を生成する画素状態値生成
部と、画素状!r!S値が予め定めた値に一致した場合
にこの注目画素に対応する前記ワーク・メモリ上の位置
に画素値「1」を書き込み新たな追跡開始候補画素を検
出した際に前記ワーク・メモリ上の対応した位置の画素
値を読み出してこの画素を追跡終了画素か未追跡終了画
素かの判別を行うコントローラとからなるディジタル画
像の境界線追跡装置である。
That is, the present invention provides an image memory consisting of an original image memory that stores a digital image, a work memory that has the same capacity as the original image memory and is used as a working memory, and coordinates of boundary pixels on the original image memory. A pixel state value generation unit that sequentially inputs values and generates a pixel state value of the current pixel of interest from the coordinate values of the current pixel of interest and the coordinate values of the pixels before and after it; r! When the S value matches a predetermined value, a pixel value "1" is written to the position on the work memory corresponding to this pixel of interest, and when a new tracking start candidate pixel is detected, This is a digital image boundary tracking device comprising a controller that reads out a pixel value at a corresponding position and determines whether the pixel is a tracked pixel or an untracked pixel.

〈作用〉 本発明によるディジタル画像の境界線追跡装置の動作原
理を次に説明する。
<Operation> The principle of operation of the digital image boundary line tracking device according to the present invention will be described below.

予め、作業用メモリであるワーク・メモリを全てクリア
(画素tii ’OJを書き込む)する。
In advance, the work memory, which is a working memory, is all cleared (pixel tii 'OJ is written).

原画像メモリ上の1つの境界線を追跡し、その都度境界
線上の連続する各画素の座標値に対して、注目画素をP
、その前の画素をP−1その後の画素をP十とする時、
P−→Pの方向CHIとP→P+の方向CH2を第3図
に示すフリーマンのチエイン符号(0〜7)で表わす。
One boundary line on the original image memory is traced, and the pixel of interest is set as P for the coordinate values of each consecutive pixel on the boundary line each time.
, when the previous pixel is P-1 and the subsequent pixel is P0,
The P-→P direction CHI and the P→P+ direction CH2 are represented by Freeman chain codes (0 to 7) shown in FIG.

方向CHIと方向CH2の組み合わせから第4図(a)
の表によって注目画素Pの有する画素状態値(0,1)
を決定し、この画素状態値に対応した処理を行う。
Figure 4 (a) from the combination of direction CHI and direction CH2
According to the table, the pixel state value (0, 1) of the pixel of interest P is
is determined, and processing corresponding to this pixel state value is performed.

画素状態値0の時は、ワーク・メモリに対して何もしな
い。
When the pixel status value is 0, nothing is done to the work memory.

画素状態値1の時は、注目画素が画素値「0」から「1
」への変化画素を表わし、追跡開始候補画素であるため
、ワーク・メモリ上の対応する位置に画素値「1」 (
マーク)を書き込む。
When the pixel status value is 1, the pixel of interest changes from pixel value "0" to "1".
”, and since it is a tracking start candidate pixel, the pixel value “1” (
mark).

新たな追跡開始候補画素を検出した場合、その候補画素
に対応するワーク・メモリ上の座標値の画素値(マーク
)を調べ、画素値「1」 (マーク有り)の時は追跡終
了画素と判定して次の追跡開始候補画素の探索を行い、
画素値「0」 (マークなし)の時は未追跡画素として
この画素より境界線追跡を開始する。
When a new tracking start candidate pixel is detected, the pixel value (mark) of the coordinate value on the work memory corresponding to that candidate pixel is checked, and if the pixel value is "1" (marked), it is determined that it is the tracking end pixel. and searches for the next tracking start candidate pixel.
When the pixel value is "0" (no mark), boundary line tracking is started from this pixel as an untracked pixel.

〈実施例〉 第1図に本発明を実施したディジタル画像の境界線追跡
装置の構成ブロック図を表わす。
<Embodiment> FIG. 1 shows a block diagram of the configuration of a digital image boundary line tracking device embodying the present invention.

1は画像メモリであり、原画像メモリ11とワーク・メ
モリ12よりなる。原画像メモリ11は例えばイメージ
・スキャナ等の画像入力装置より読み込まれたディジタ
ル画像を格納するためのメモリであり、ワーク・メモリ
12は境界線追跡操作の際に追跡終了画素と未追跡画素
を区別するためのマークが設定される作業用メモリであ
る。両方のメモリとも1ビツト/1画素の容量を有する
通常の画素メモリである。尚、原画像メモリ11におい
て、画素(art、+を図形部分、画素fM r OJ
を背景部分とする。
Reference numeral 1 denotes an image memory, which consists of an original image memory 11 and a work memory 12. The original image memory 11 is a memory for storing a digital image read from an image input device such as an image scanner, and the work memory 12 distinguishes between tracked pixels and untracked pixels during a boundary line tracking operation. This is a working memory in which marks are set for Both memories are normal pixel memories with a capacity of 1 bit/pixel. In the original image memory 11, pixel (art, + is a figure part, pixel fM r OJ
is the background part.

2は境界線抽出結果、即ち境界画素の座標リストを格納
するバッファ・メモリである。
Reference numeral 2 denotes a buffer memory that stores the boundary line extraction results, that is, a coordinate list of boundary pixels.

3は原画像メモリ11上の画素の座標値を順次入力して
現在の注目画素の座標値とその前後の画素の座標値から
現在の画素の状態値を生成する画素状態値生成部である
Reference numeral 3 denotes a pixel state value generation unit which sequentially inputs the coordinate values of pixels on the original image memory 11 and generates a current state value of the pixel from the coordinate values of the current pixel of interest and the coordinate values of the pixels before and after it.

4は全体の制御及び境界線追跡の処理手順を実行するコ
ントローラである。コントローラ4は、原画像メモリ1
1に対して処理対象となる画素とその周辺の画素にリー
ド・アクセスし追跡すべき境界画素の座標値を順次決定
してバッファ・メ゛モリ2に書き込み、画素状態値生成
部3へ原画像メモリ11上の座標値を送信し、画素状態
値生成部3で算出された画素状態値に応じてワーク・メ
モリ12にマーク付けを行い(画素値「11を書き込む
)、またワーク・メモリ12上のマークを参照して追跡
終了画素と未追跡画素との区別を行う。
4 is a controller that executes overall control and boundary line tracing processing procedures. The controller 4 stores the original image memory 1
1, reads and accesses the pixel to be processed and its surrounding pixels, sequentially determines the coordinate values of the boundary pixels to be tracked, writes them to the buffer memory 2, and transfers the original image to the pixel state value generation unit 3. The coordinate values on the memory 11 are sent, the work memory 12 is marked according to the pixel state value calculated by the pixel state value generation unit 3 (the pixel value "11" is written), and the coordinate values on the work memory 12 are marked. Pixels that have finished tracking and pixels that have not been tracked are distinguished by referring to the mark.

第2図に画素状態値生成部3のI=ul路ブロック図を
表わす。
FIG. 2 shows a block diagram of the I=ul path of the pixel state value generation section 3.

コントローラ4からの画素座標値(X、Y)は、同期ク
ロックc Lによりj1!4次レジスタ31P+)に取
り込まれ、その内容はレジスタ32(P)、レジスタ3
3(P−)へと転送される。第1の符号生成部34は現
在の画素Pの座標値と1つ前の画素P−の座標値とから
決定される方向CHI(3ビツト)か生成され、第2の
符号生成部35は現在の画素Pの座標値と1つ後の画素
P十の座FIA&1とから決定される方向CH2(3ビ
ツト)か生成される。ROM36は、方向C111(R
A 1 ;3ビツト’)、CH2(RA2 ; 3ビツ
ト)の6ビツト・アドレスA5.・・・、AOに従って
、第4図(a>に対応して第4図(b)に示すような6
4通りの画素状態値Y+0,1)が予め定められている
The pixel coordinate values (X, Y) from the controller 4 are taken into the j1! quaternary register 31P+) by the synchronization clock cL, and the contents are stored in the register 32 (P) and register 3.
Transferred to 3(P-). The first code generation unit 34 generates the direction CHI (3 bits) determined from the coordinate values of the current pixel P and the coordinate values of the previous pixel P−, and the second code generation unit 35 generates A direction CH2 (3 bits) determined from the coordinate values of pixel P and the next pixel P, FIA&1, is generated. The ROM 36 has a direction C111 (R
A 1 ; 3 bits'), CH2 (RA2; 3 bits) 6-bit address A5. ..., according to AO, 6 as shown in FIG. 4(b) corresponding to FIG. 4(a>)
Four pixel state values Y+0, 1) are predetermined.

さて、以上のように構成された本発明装置の動作を第5
図のフローチャートによって説明する。
Now, the operation of the device of the present invention configured as described above will be explained in the fifth section.
This will be explained using the flowchart shown in the figure.

尚、この説明で対象とするディジタル画像の例を第8図
に示し、本発明装置によって操作される原画像メモリ1
1とワーク・メモリ12の状態を第6図に示す、第6図
(a)−(1)がら(g)〜(1)は原画像メモリ11
上の変化を表わし、第6図<a>−(2)から(g)−
(2)はワーク・メモリ12上の変化を表わす。
FIG. 8 shows an example of the digital image that is the subject of this explanation, and shows the original image memory 1 operated by the apparatus of the present invention.
6 shows the states of the original image memory 11 and the work memory 12.
The above changes are shown in Figure 6<a>-(2) to (g)-
(2) represents a change in the work memory 12.

(イ)°コントローラ4は、ワーク・メモリ12を全て
クリア(画素値roJを書き込む)する。
(a) The controller 4 completely clears the work memory 12 (writes the pixel value roJ).

(ロ)コントローラ4は、原画像メモリ11を左上より
ラスク走査し、水平走査線方向の画素を調べ、最も左の
位置にある画素値r1.の画素または画素値r□、から
画素値「1」への変化画素の有無を調べる。
(b) The controller 4 scans the original image memory 11 from the upper left, examines the pixels in the horizontal scanning line direction, and selects the pixel value r1 located at the leftmost position. The presence or absence of a pixel or a pixel whose pixel value changes from pixel value r□ to pixel value "1" is checked.

(ハ)該当画素がある場合(第6図(a)−(1)にお
ける画素A)、該当画素に対応するワーク・メモリ12
上の座標位置く第6図(a)−(2)の画素位置AO)
の画素値を調べる。
(c) If there is a corresponding pixel (pixel A in FIG. 6(a)-(1)), the work memory 12 corresponding to the corresponding pixel
The upper coordinate position is the pixel position AO in Figure 6 (a)-(2))
Check the pixel value of.

(ニ)ワーク・メモリ12上で画素値「0」の場合、こ
の画素(A)を未追跡画素(マークなし)と判定し、原
画像メモリ11上で該当画素<A)の周囲8画素の値を
調べる。
(d) If the pixel value is "0" on the work memory 12, this pixel (A) is determined to be an untracked pixel (no mark), and the 8 pixels surrounding the corresponding pixel <A) on the original image memory 11 are Examine the value.

(ポ)原画像メモリ12上の周囲8画素の画素値が全て
「0」の場合は該当画素は孤立画素であり、その座m値
をバッファ・メモリ2に記憶する。
(Po) If the pixel values of the surrounding eight pixels on the original image memory 12 are all "0", the corresponding pixel is an isolated pixel, and its locus m value is stored in the buffer memory 2.

(へ)該当画素の周囲8画素に画素値「1」のものがあ
れば、該当画素(A)を追跡開始画素としてその座標・
値をバッファ・メモリ2に記憶する。
(F) If there is a pixel value "1" in the 8 pixels surrounding the corresponding pixel, the corresponding pixel (A) is set as the tracking start pixel and its coordinates are
Store the value in buffer memory 2.

(ト)該当画素(A)を追跡開始画素として1つの境界
線を追跡し、その追跡画素の座標値を順次バッファ・メ
モリ2に記憶すると同時に、この座標値を順次画素状態
値生成部3に与える。
(g) One boundary line is traced with the corresponding pixel (A) as the tracing start pixel, and the coordinate values of the traced pixel are sequentially stored in the buffer memory 2, and at the same time, these coordinate values are sequentially sent to the pixel state value generation unit 3. give.

画素状態値生成部3は、境界線上の注目画素とこの境界
線上の前後2画素の各座標値から注目画素の有する画素
状態値(0または1)を順次生成し、コントローラ4に
送る。
The pixel state value generation unit 3 sequentially generates a pixel state value (0 or 1) of the pixel of interest from the coordinate values of the pixel of interest on the boundary line and the two pixels before and after the boundary line, and sends the pixel state value (0 or 1) to the controller 4.

(チ)画素状態値が1の場合は、注目画素Pに対応する
ワーク・メモリ12上の座標位置に画素値「】」を書き
込む(マークを付加する)。
(H) If the pixel status value is 1, write the pixel value "]" at the coordinate position on the work memory 12 corresponding to the pixel P of interest (add a mark).

(ワ)画素状態値が0の場合は、ワーク・メモリ12に
対してアクセスしない。
(W) If the pixel status value is 0, no access is made to the work memory 12.

例えば第6図(b)−(1)において、Plを注目画素
、Pl−をその前の画素、P1+をその次の画素とする
とき、第4図(a)より方向CH1=4.CH2=5で
あり、ROM36に対するアドレスは#25となり、第
4図(b)に従って注目画素Pの画素状態値は1と算出
される。そして、第6図(b)−(2)に示すように、
ワーク・メモリ12上の対応する位y!、P10に画素
値「1」(区)を書き込む。
For example, in FIG. 6(b)-(1), when Pl is the pixel of interest, Pl- is the previous pixel, and P1+ is the next pixel, from FIG. 4(a), direction CH1=4. CH2=5, the address for the ROM 36 is #25, and the pixel state value of the pixel P of interest is calculated as 1 according to FIG. 4(b). Then, as shown in FIG. 6(b)-(2),
Corresponding location y in work memory 12! , writes the pixel value "1" (ward) to P10.

また、第6図(b)−(1)において、P2を注目画素
とすると、同様の操作でその画素状態値はOとなり、ワ
ーク・メモリ12に対してアクセスを行わない(第6図
(b)−(2))。
In addition, in FIG. 6(b)-(1), if P2 is the pixel of interest, the pixel state value becomes O by the same operation, and no access is made to the work memory 12 (FIG. 6(b) )-(2)).

(ヌ)処理手順(ト)、  (チ) (または(す))
を繰り返し、1つの境界線の抽出、ワーク・メモリ12
上でのマーク付け(画素値「1」を書き込む)を行う。
(n) Processing procedure (g), (ch) (or (su))
Repeat, extract one boundary line, work memory 12
Perform the above marking (write the pixel value "1").

第6図(b)−(1)は境界線#1の追跡の様子を表わ
し、第6図(b)−(2)は境界線#1に対するマーク
付は結果(記号(図)は画素値「1」を表わす)を表わ
す。
Figure 6(b)-(1) shows the state of tracking of boundary line #1, and Figure 6(b)-(2) shows the marked result for boundary line #1 (symbols (figures) are pixel values. represents "1").

(ル)全走査線についての処理が終了していない場合は
、手順c口)に戻る。
(l) If processing for all scanning lines has not been completed, return to step c).

次に、コントローラ4は新たな境界線を追跡するため、
第6図(c)−<1)に示すように、画素Aの右隣の画
素Bからラスク操作を再開し、最も左にある画素値「1
」の画素または画素値「0」から画素値「l」の変化画
素であり、かつワーク・メモリ12上の画素値「0」 
(第6図(C)=(2)上の画素CO:マークなし)で
ある画素Cを検出する。
Next, the controller 4 tracks the new boundary line by
As shown in FIG. 6(c)-<1), the rask operation is restarted from pixel B to the right of pixel A, and the leftmost pixel value is "1".
” or a pixel that changes from pixel value “0” to pixel value “l” and has pixel value “0” on work memory 12
(Pixel CO on FIG. 6(C)=(2): No mark) is detected.

画素Cを追跡開始画素として境界線#2の追跡操作の様
子を第6図(d)−(1)に表わし、第6図(d)−(
2)に境界線#2追跡時のマーク付は結果を表わす。
The state of the tracking operation for boundary line #2 with pixel C as the tracking start pixel is shown in Fig. 6(d)-(1), and Fig. 6(d)-(
In 2), the mark at the time of tracking boundary line #2 indicates the result.

次に、画素Cの右隣の画素りからラスク操作を再開して
追跡開始候補画素Eを検出しく第6図(、e)−(1)
)、ワーク・メモリ12上の対応する位置EOにマーク
なしく第6図(e)−(2))を確認してこの点Eを追
跡開始画素として境界線追跡操作を行う。
Next, the rask operation is restarted from the pixel to the right of pixel C to detect the tracking start candidate pixel E. Figure 6 (,e)-(1)
), it is confirmed that there is no mark at the corresponding position EO on the work memory 12 (FIG. 6(e)-(2)), and the boundary line tracing operation is performed using this point E as the tracing start pixel.

画素Eを追跡開始画素として境界線#3の追跡操作の様
子を第6図(f)−(1)に表わし、第6図(f)−(
2)に境界線#3追跡時のマーク付は結果を表わす。
The state of the tracking operation for boundary line #3 with pixel E as the tracking start pixel is shown in Fig. 6(f)-(1).
In 2), the mark at the time of tracking boundary line #3 indicates the result.

更に、第6図(g)−(1)に示すように、画素Eの右
隣の画素Fからラスク操作を再開し、孤立画素G(第6
図(g)−(2)でGOの画素値「O」)を検出して全
操作を終了する。
Furthermore, as shown in FIG. 6(g)-(1), the rask operation is restarted from the pixel F to the right of the pixel E, and the isolated pixel G (sixth
In Figure (g)-(2), the GO pixel value "O") is detected and all operations are completed.

以上の手順によって、第8図に示されるディジタル画像
より、第9図に示すような外till境界線#l〈実線
矢印)と、内側境界線#2. #3 (点線矢印)と孤
立画素Gが抽出される。
Through the above procedure, from the digital image shown in FIG. 8, the outer till boundary line #l (solid arrow) and the inner boundary line #2 as shown in FIG. 9 are created. #3 (dotted arrow) and isolated pixel G are extracted.

このように、境界線追跡開始画素を探索する際に、ラス
ク操作によって得られた境界線追跡候補画素のワーク・
メモリ上のマークを調べ、マークなしの時のみ境界線追
跡動作を開始するので、原画像メモリと同じ大きさ、同
じ構成のワーク・メモリを用い、1個のマークのみで図
形の境界線を効率よく抽出することができる。
In this way, when searching for a boundary line tracing start pixel, the work area of the boundary line tracing candidate pixel obtained by the rask operation is
The mark on the memory is checked and the boundary line tracing operation is started only when there is no mark, so the boundary line of the figure can be efficiently traced using only one mark, using a work memory with the same size and configuration as the original image memory. Can be extracted well.

〈発明の効果〉 本発明のディジタル画像の境界線追跡装置は、原画像メ
モリ上の1つの境界線を追跡するとともに境界線上の注
目画素と境界線上の前後2画素の各座標値から注目画素
の有する画素状態値を生成し、これによって追跡開始候
補画素(画素fli ro」から[1」への変化画素)
を事前に検出し、その画素にのみマーク付けを行ってい
るため、外側境界線と内側境界線に重なりを含むような
図形の場合にもマーク1つ、すなわち原画像メモリと大
きさ及び構成が同じワーク・メモリを設けるだけで図形
境界線を効率よく抽出することができる。
<Effects of the Invention> The digital image boundary tracing device of the present invention traces one boundary line on the original image memory, and calculates the target pixel from the coordinate values of the target pixel on the boundary line and the two pixels before and after the boundary line. The tracking start candidate pixel (pixel that changes from pixel "fli ro" to [1]) is generated by this.
is detected in advance and marked only at that pixel, so even if the shape includes an overlap between the outer and inner boundaries, only one mark, that is, the size and configuration of the original image memory, can be used. Figure boundaries can be efficiently extracted simply by providing the same work memory.

【図面の簡単な説明】 第1図は本発明のディジタル画像の境界線追跡装置の構
成ブロック図、第2図は本発明装置の画素状態値生成部
の詳しい回路図、第3図はフリーマンのチエイン符号を
表わす図、第4図(a)。 (b)は注目画素の座標値とその前後の画素の座標値か
ら決定される画素状態値を表わす表、第5図は本発明装
置の動作を表わすフローチャート、第6図(a)−(1
)、・・・、第6図(g)−(2>は本発明装置の境界
線追跡動作中の原画像メモリ及びワーク・メモリの様子
を表わす図、第7図(a)、(b)は外側境界線と内側
境界線が全く同じまたは大部分が同じディジタル画像を
表わす図、第8図は本発明装置が対象とするディジタル
画像を表わす図、第9図は第8図のディジタル画像より
得られる境界線を表わす図である。 l・・・画像メモリ、11・・・原画像メモリ、12・
・・ワーク・メモリ、2・・・バッファ・メモリ、3・
・・画素状態値生成部、 31.32.33・・・レジスタ、 34・・・第1の符号生成部、 35・・・第2の符号生成部、36・・・ROM、4・
・・コントローラ。 代理人 弁理士  小 沢 信 助 77  図 第2図 (bン−(1) (C)−(1) 図     ((1)−(2) (b) −(2) (C) −(2) (d>イ、)  喜2 (f”4− (1) ;図 td)−(2) 第8図 第9図 ↓°番
[BRIEF DESCRIPTION OF THE DRAWINGS] Fig. 1 is a block diagram of the configuration of the digital image boundary line tracking device of the present invention, Fig. 2 is a detailed circuit diagram of the pixel state value generation section of the device of the present invention, and Fig. 3 is the Freeman's A diagram representing a chain code, FIG. 4(a). (b) is a table showing the coordinate value of the pixel of interest and the pixel state value determined from the coordinate values of the pixels before and after it, FIG. 5 is a flowchart showing the operation of the device of the present invention, and FIGS. 6(a)-(1)
),..., Fig. 6(g)-(2> is a diagram showing the state of the original image memory and work memory during the boundary line tracing operation of the device of the present invention, Fig. 7(a), (b) is a diagram showing a digital image in which the outer boundary line and the inner boundary line are exactly the same or mostly the same, FIG. 8 is a diagram showing a digital image targeted by the device of the present invention, and FIG. It is a diagram showing the obtained boundary line.l...Image memory, 11...Original image memory, 12.
...Work memory, 2...Buffer memory, 3.
... Pixel state value generation unit, 31.32.33...Register, 34...First code generation unit, 35...Second code generation unit, 36...ROM, 4.
··controller. Agent Patent Attorney Shinsuke Ozawa 77 Figure 2 (b-(1) (C)-(1) Figure ((1)-(2) (b)-(2) (C)-(2) (d>I,) Ki2 (f”4- (1); Figure td)-(2) Figure 8 Figure 9 ↓° No.

Claims (1)

【特許請求の範囲】[Claims] (1)ディジタル画像を格納する原画像メモリ及びこの
原画像メモリと同じ容量を有し作業用メモリとして用い
られるワーク・メモリからなる画像メモリと、前記原画
像メモリ上の境界画素の座標値を順次入力して現在の注
目画素の座標値とその前後の画素の座標値からこの注目
画素の画素状態値を生成する画素状態値生成部と、画素
状態値が予め定めた値に一致した場合にこの注目画素に
対応する前記ワーク・メモリ上の位置に画素値「1」を
書き込み新たな追跡開始候補画素を検出した際に前記ワ
ーク・メモリ上の対応した位置の画素値を読み出してこ
の画素を追跡終了画素か未追跡終了画素かの判別を行う
コントローラとからなるディジタル画像の境界線追跡装
置。
(1) An image memory consisting of an original image memory that stores a digital image, a work memory that has the same capacity as the original image memory and is used as a working memory, and coordinate values of boundary pixels on the original image memory are sequentially stored. A pixel state value generation unit that generates a pixel state value of the pixel of interest from the input coordinate values of the current pixel of interest and the coordinate values of the pixels before and after it; A pixel value "1" is written at a position on the work memory corresponding to the pixel of interest. When a new tracking start candidate pixel is detected, the pixel value at the corresponding position on the work memory is read out and this pixel is tracked. A digital image boundary line tracing device comprising a controller that determines whether a pixel is an end pixel or an untracked end pixel.
JP63134149A 1988-05-31 1988-05-31 Digital image boundary line tracking method Expired - Lifetime JP2600804B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63134149A JP2600804B2 (en) 1988-05-31 1988-05-31 Digital image boundary line tracking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63134149A JP2600804B2 (en) 1988-05-31 1988-05-31 Digital image boundary line tracking method

Publications (2)

Publication Number Publication Date
JPH01303581A true JPH01303581A (en) 1989-12-07
JP2600804B2 JP2600804B2 (en) 1997-04-16

Family

ID=15121614

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63134149A Expired - Lifetime JP2600804B2 (en) 1988-05-31 1988-05-31 Digital image boundary line tracking method

Country Status (1)

Country Link
JP (1) JP2600804B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508988A (en) * 2021-01-14 2021-03-16 西安中科星图空间数据技术有限公司 Method and device for accurately extracting mosaic lines of remote sensing images

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508988A (en) * 2021-01-14 2021-03-16 西安中科星图空间数据技术有限公司 Method and device for accurately extracting mosaic lines of remote sensing images

Also Published As

Publication number Publication date
JP2600804B2 (en) 1997-04-16

Similar Documents

Publication Publication Date Title
KR100762670B1 (en) Method and device for generating disparity map from stereo image and stereo matching method and device therefor
JP2541539B2 (en) Graphic processing device
JPH1139469A (en) Face image processor
JPH01303581A (en) Border line tracking device for digital image
JP2735197B2 (en) Graphic input device
JPH04255080A (en) Image input device
JPH1049688A (en) Method for partial erasing method and partial detection method for picture data
JPS62166479A (en) Recognizing method for visiting card
JPH0223904B2 (en)
JPH06243255A (en) Position detecting method/device
JPH053631B2 (en)
JP3679619B2 (en) Image contour extraction method, apparatus, and recording medium
JP4550767B2 (en) Image detection method and image detection apparatus
JPH01128171A (en) Image processor
JPS5927374A (en) Boundary line tracking circuit
JPH01243188A (en) Contour detector
JPH01231091A (en) Image editing method
JP2606176B2 (en) Graphic processing unit
JP2838556B2 (en) Image processing device
JP2009080776A (en) Image processing method and image processor
JP2001351110A (en) Method and device for dividing shape contour, and storage medium with shape contour dividing program stored thereon
JPH01112469A (en) Polygonal line approximate system for linear graphic
JPS5846476A (en) Detecting circuit for black area peak
JPH04120678A (en) Area dividing method
JPH02263272A (en) Document picture processor