JPH0277983A - Graphic tracking system - Google Patents

Graphic tracking system

Info

Publication number
JPH0277983A
JPH0277983A JP23095288A JP23095288A JPH0277983A JP H0277983 A JPH0277983 A JP H0277983A JP 23095288 A JP23095288 A JP 23095288A JP 23095288 A JP23095288 A JP 23095288A JP H0277983 A JPH0277983 A JP H0277983A
Authority
JP
Japan
Prior art keywords
tracking
graphic
tracing
image
binary image
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.)
Pending
Application number
JP23095288A
Other languages
Japanese (ja)
Inventor
Nobuyoshi Enomoto
暢芳 榎本
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP23095288A priority Critical patent/JPH0277983A/en
Publication of JPH0277983A publication Critical patent/JPH0277983A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To improve the processing speed of a graphic tracking system by tracking a graphic by using a table in which data having simple data structures and fixed lengths are two-dimensionally arranged. CONSTITUTION:A binary image input section 1 gives an inputted binary image to a graphic tracking section 2 after processing the image into thinning lines. The section 2 makes a tracking process on the graphic part of the image following the information shown in a table 3 for tracking graphic having a two- dimensionally arranged structure while the section 2 prepares the table 3 against the binary thinning line graphic image and tracked graphic information is stored in a tracking information storing section 4. The graphic information is displayed in a display terminal 5 until a request is made from a user. When the tracking request of the next candidate is received in such state, the tracking process is performed on the graphic part having another connecting relation.

Description

【発明の詳細な説明】[Detailed description of the invention]

[発明の目的] (産業上の利用分野) 本発明はイメージ処理において、入力2値イメージ中の
希望する図形部分を簡易に、且つ高速に追跡指定するこ
とのできる図形追跡方式に関する。 (従来の技術) 近時、種々のイメージ処理装置が開発されている。この
イメージ処理装置におけるイメージ処理の1つに、原稿
等から求められた入力2値イメージ中の特定の(所望と
する)図形部分を編集処理の対象として指定する処理が
ある。このような図形部分の指定は、従来−船釣には図
形部分を構成する線要素の分岐点(ノード)の全てをマ
ウスやタブレット等の座標入力装置を用いて直接指示入
力したり、或いは座標入力装置を用いて図形部分の輪郭
(線要素;セグメント)を順になぞることにより行なわ
れている。 然し乍ら、イメージ上の図形部分は、−船釣には多くの
線要素の集りで表現され、多くの線分岐を持つことが殆
んどである。この為、分岐点の全てを直接指示入力して
、図形部分を指定する作業が非常に煩わしく、また輪郭
をなぞって線要素の全てを指示入力し、図形部分を直接
指定することも非常に煩わしい。特に2値イメージが複
雑な場合には、その作業が非常に困難であり、入力ミス
の原因ともなる。 そこで図形の線分岐に応じたツリー構造の図形追跡テー
ブルを構築し、このツリー構造の図形追跡テーブルに示
される複数の分岐セグメント間のつながり関係を示すポ
インタに従って図形要素を自動追跡することが考えられ
ている。 ところがツリー構造の図形追跡テーブルは、その線分岐
に応じた可変長の動的なデータ構造となる。この為、図
形追跡用テーブルのツリー構造に従って線要素を追跡し
ていくに際して行詰まりが生じた場合、そのデータ構造
が複雑な為に再帰的呼出しやガーベージコレクションが
頻繁に生じることがある。この為、ツリー構造のテーブ
ルに基づく図形の自動追跡には、多大な処理時間を必要
とする等の問題があった。 (発明が解決しようとする課題) このようにイメージ上の図形部分を追跡するべく、線要
素に応じた動的なツリー構造の図形追跡用テーブルを用
いた従来の図形追跡にあっては、再帰的呼出しやガーベ
ージコレクションにより、その追跡に多大な時間が掛る
と云う問題があった。 本発明はこのような事情を考慮してなされたもので、そ
の目的とするところは、簡易な制御手順の下で効率の良
い図形追跡を可能とする実用性の高い図形追跡方式を提
供することにある。 [発明の構成] (課題を解決するための手段) 本発明に係る図形追跡方式は、線分岐に応じて図形を追
跡する為の図形追跡用テーブルとして、線分岐に応じた
動的なツリー構造に変えて、図形追跡の分岐点に至るま
での図形要素の追跡順序系列を、その追跡要素数に従っ
て2次元配列した固定長のテーブル、例えば入力2値イ
メージを細線化した細線図形イメージ上の特徴点および
特徴点間の線分のそれぞれについて、行方向に追跡の深
さを示すポインタを取り、列方向には各ポインタに対応
して追跡分岐点に至るまで追跡履歴と追跡要素数をそれ
ぞれ格納した2次元配列構成のテーブルを用いるように
したことを特徴とするものである。 またこの図形追跡用テーブルに対しては、追跡分岐点に
おいて追跡優先度の低い追跡要素から順に格納しておき
、追跡の深さを上記テーブルの行を示すポインタにより
管理するようにしたことを特徴とするものである。 (作用) 本発明によれば、動的な可変長のツリー構造のテーブル
を用いることなく、単純なデータ構造の固定長の2次元
配列によるテーブルを用いて図形追跡を行なうので、再
帰的呼出しやガーベージコレクションの発生を抑え、ガ
ーベージコレクションによる追跡処理時間の増大の問題
を効果的に解消することができる。しかも図形追跡用テ
ーブルには分岐点における追跡優先順位の低い追跡要素
から順に格納されているので、図形追跡のバックトラッ
クが必要な場合には、上記2次元配列構造のテーブルの
行方向のポインタを増減するだけで上記バックトラック
に対処することができる。 この結果、その追跡制御手順を単純化し、処理速度の高
速化を図ることが可能となる。 (実施例) 以下、図面を参照して本発明に係る図形追跡方式の一実
施例につき説明する。 第1図は実施例方式を適用して構成される図形追跡装置
の要部概略構成図で、lは2値イメージ入力部である。 この2値イメージ入力部lはイメージセンサ等により原
稿情報をイメージ入力し、その入力イメージを2値化し
て図形処理に供するものである。この際、2値イメージ
入力部1は入力2値イメージを細線化処理し、イメージ
中の線分を細線化してその細線図形イメージを図形追跡
部2に与える。 図形追跡部2は上述した細線図形イメージ、例えば第2
図に示すような2値細線図形イメージに対し、第3図(
a) (b)に示すような2次元配列構造の図形追跡用
テーブル3を作成しながら、そのテーブル3に示される
情報に従ってイメージ中の図形部分を追跡処理する。 この図形追跡部2で追跡された図形情報が追跡情報格納
部4に格納され、デイスプレィ端末5にて上記入力2値
イメージ上の図形追跡した部分を表示し、ユーザからの
要求入力を待つ。この状態で次候補の追跡要求を受けた
場合には、他の接続関係を持つ図形部分について追跡処
理を行なうことになる。 ここでは第2図に示すようなループ図形、特に円図形に
近い図形を追跡するものとすると、先ずこの線図形イメ
ージに対して予め前処理を施し、図形を構成するセグメ
ント(線要素)とノード(接続点)とをそれぞれ定義し
、これらの接続関係を示すテーブルを作成する。つまり
注目セグメントにどのノードが接続されるか、また注目
ノードに対してどのセグメントが接続されているがを求
める。この前処理は、従来より種々提唱されて、いる手
法を用いて行なわれる。 そしてこれらのセグメントとノードについて、第3図(
a)(b)に示すような図形追跡用テーブル3を作成し
ながら図形追跡を実行する。 この図形追跡用テーブル3は、第3図(a)に示すよう
なセグメンに着目して図形追跡を行なう為の2次元配列
構造の追跡セグメント登録用テーブル(5g5rch)
と、第3図(b)に示すようなノードに着目して図形追
跡を行なう為の2次元配列構造の追跡ノード追跡用テー
ブル(ndsreh)とからなる。 これらの各テーブル(5g5rch、 ndsrch)
は、図形追跡の分岐点に至るまでの追跡の深さをポイン
タ(stgptr)で示し、その深さ方向のセグメント
またはノードの追跡履歴を上記ポインタに従って順に格
納して2次元的に構成される。しかしてその追跡の深さ
をrawで示すと、上記各追跡テーブルは 5g5rch (stgptr、 raw )ndsr
ch (stgptr、 raw )なる2次元配列構
造のテーブルで示される。尚、上記各テーブル(sgs
rch、 ndsrch)の1行目には追跡要素数が記
録されるようになっており、また追跡セグメント登録用
テーブル(5g5rch)の2行目は、例えば四辺形の
辺を持つ図形を追跡する際の辺の数を登録する為の領域
としてリザーブされる。 しかして前記追跡セグメント登録用テーブル(5g5r
eh)からは、例えばポインタ(stgptr)が[4
]で示される図形追跡の列では、その追跡セグメント数
が[3]であり、図形のセグメントが[1−2−6]の
順序で追跡され、追跡分岐点に至ることが示される。ま
たことのとき、追跡ノード登録用テーブル(ndsrc
h)からは、その追跡ノード数が[4コであり、図形の
ノードが[d−ha→b−+ 6 ]の順序で追跡され
て追跡分岐点に至ることが示される。 このようなテーブル(5g5rch、 ndsrch)
を上記ポインタ(stgptr)による管理の下で作成
しながら、その図形追跡が行なわれる。 この図形追跡のアルゴリズムを第4図に示す処理フロー
に従って説明する。
[Object of the Invention] (Industrial Application Field) The present invention relates to a graphic tracking method in image processing that allows a desired graphic part in an input binary image to be easily and quickly tracked and specified. (Prior Art) Recently, various image processing devices have been developed. One of the image processes performed by this image processing apparatus is a process of designating a specific (desired) graphic part in an input binary image obtained from a document or the like as a target of editing processing. Conventionally, in boat fishing, designation of such a figure part is done by directly inputting all the branch points (nodes) of the line elements that make up the figure part using a coordinate input device such as a mouse or tablet, or by inputting the coordinates directly. This is done by sequentially tracing the contours (line elements; segments) of a graphic part using an input device. However, the graphic part on the image is represented by a collection of many line elements in boat fishing, and almost always has many line branches. For this reason, it is very troublesome to input all the branch points directly and specify the figure parts, and it is also very troublesome to trace the outline and input all the line elements and directly specify the figure parts. . Particularly when the binary image is complex, this task is extremely difficult and may cause input errors. Therefore, it is possible to construct a tree-structured figure tracking table according to the line branching of figures, and automatically trace figure elements according to pointers that indicate connections between multiple branch segments shown in this tree-structured figure tracking table. ing. However, the tree-structured figure tracking table has a dynamic data structure of variable length depending on the line branches. Therefore, if a dead end occurs when tracing line elements according to the tree structure of the figure tracing table, recursive calls and garbage collection may occur frequently because the data structure is complex. For this reason, automatic tracking of figures based on a tree-structured table has problems such as requiring a large amount of processing time. (Problem to be Solved by the Invention) In order to trace a figure part on an image in this way, in conventional figure tracking using a dynamic tree-structured figure tracing table according to line elements, recursive There was a problem in that it took a lot of time to track the target due to target calls and garbage collection. The present invention has been made in consideration of these circumstances, and its purpose is to provide a highly practical figure tracking method that enables efficient figure tracking under a simple control procedure. It is in. [Structure of the Invention] (Means for Solving the Problems) The figure tracing method according to the present invention uses a dynamic tree structure according to line branches as a figure tracing table for tracing figures according to line branches. Instead, a fixed-length table in which the tracing order series of graphical elements up to the branching point of graphical tracing is arranged two-dimensionally according to the number of traced elements, for example, a feature on a thin-line graphic image obtained by thinning an input binary image. For each point and line segment between feature points, a pointer indicating the tracking depth is taken in the row direction, and the tracking history and number of tracking elements are stored in the column direction corresponding to each pointer up to the tracking branch point. The present invention is characterized in that a table having a two-dimensional array configuration is used. In addition, this figure tracking table is characterized in that the tracking elements are stored in descending order of tracking priority at the tracking branch point, and the tracking depth is managed by a pointer indicating the row of the table. That is. (Operation) According to the present invention, figure tracing is performed using a fixed-length two-dimensional array table of a simple data structure without using a dynamic variable-length tree-structured table. It is possible to suppress the occurrence of garbage collection and effectively solve the problem of increased tracking processing time due to garbage collection. Furthermore, since the trace elements at the branch point are stored in the order of tracing priority from lowest to highest in the figure tracking table, when backtracking of figure tracing is necessary, the pointer in the row direction of the two-dimensional array structure table is used. You can deal with the above-mentioned backtracking simply by increasing or decreasing it. As a result, it becomes possible to simplify the tracking control procedure and increase the processing speed. (Embodiment) An embodiment of the figure tracking method according to the present invention will be described below with reference to the drawings. FIG. 1 is a schematic diagram of the main parts of a figure tracking device constructed by applying the embodiment method, and l is a binary image input section. This binary image input section 1 inputs document information as an image using an image sensor or the like, converts the input image into a binary image, and subjects it to graphical processing. At this time, the binary image input section 1 performs line thinning processing on the input binary image, thins the line segments in the image, and provides the thin line figure image to the figure tracking section 2 . The figure tracking unit 2 generates the above-mentioned thin line figure image, for example, the second
Figure 3 (
a) While creating a figure tracking table 3 having a two-dimensional array structure as shown in (b), trace the figure portion in the image according to the information shown in the table 3. The graphic information tracked by the graphic tracking unit 2 is stored in the tracking information storage unit 4, and the display terminal 5 displays the traced part of the graphic on the input binary image and waits for a request input from the user. If a tracking request for the next candidate is received in this state, tracking processing will be performed on graphic parts having other connection relationships. Here, if we are to trace a loop figure as shown in Figure 2, especially a figure close to a circular figure, we will first perform preprocessing on this line figure image and identify the segments (line elements) and nodes that make up the figure. (connection points) and create a table showing their connection relationships. In other words, it determines which nodes are connected to the target segment and which segments are connected to the target node. This preprocessing is performed using various methods that have been proposed in the past. And for these segments and nodes, Figure 3 (
a) Execute figure tracking while creating figure tracking table 3 as shown in (b). This figure tracking table 3 is a tracking segment registration table (5g5rch) with a two-dimensional array structure for tracking figures by focusing on segments as shown in FIG. 3(a).
and a tracking node tracking table (ndsreh) having a two-dimensional array structure for performing figure tracking focusing on nodes as shown in FIG. 3(b). Each of these tables (5g5rch, ndsrch)
is constructed two-dimensionally by indicating the depth of tracing up to a branching point of figure tracing with a pointer (stgptr), and storing the tracing history of segments or nodes in the depth direction in order according to the pointer. Therefore, if the tracking depth is expressed as raw, then each of the above tracking tables is 5g5rch (stgptr, raw)ndsr
It is shown as a table with a two-dimensional array structure called ch (stgptr, raw). In addition, each of the above tables (sgs
The number of tracked elements is recorded in the first line of the tracking segment registration table (5g5rch), and the second line of the tracking segment registration table (5g5rch) is used when tracking a figure with quadrilateral sides, for example. Reserved as an area for registering the number of sides. However, the tracking segment registration table (5g5r
For example, the pointer (stgptr) is [4
In the figure tracing column indicated by ], the number of traced segments is [3], indicating that the graphic segments are traced in the order of [1-2-6] and reach a tracing branch point. On another occasion, the tracking node registration table (ndsrc
h) shows that the number of traced nodes is [4], and the nodes of the figure are traced in the order of [d-ha→b-+6] to reach the trace branch point. Tables like this (5g5rch, ndsrch)
The figure is traced while being created under the control of the pointer (stgptr). This figure tracking algorithm will be explained according to the processing flow shown in FIG.

【処理1】 先ず入力2値イメージに対して予め所定の前処理を施し
、セグメントとノードとの接続関係を示すセグメントテ
ーブル(sgtbl)とノードテーブル(ndtbl 
)をそれぞれ作成する(ステップa)。
[Processing 1] First, a predetermined preprocessing is performed on the input binary image, and a segment table (sgtbl) and a node table (ndtbl) indicating connection relationships between segments and nodes are created.
) respectively (step a).

【処理2】 次に従来の図形追跡と同様にして、追跡開始のセグメン
ト、追跡開始ノードおよび追跡終了ノードとをそれぞれ
入力し、図形追跡の為の初期設定を行なう(ステップb
)。この初期設定は、登録セグメント数を[1]、登録
ノード数を[2]。 追跡ステージを示すポインタ(stgptr)を[0]
にセットすることにより行なわれる。そして第3図(a
)に示す追跡セグメント登録用テーブル(5g5rch
)に追跡開始セグメントを格納し、追跡ノード登録用テ
ーブル(ndsrch)には追跡開始ノードと追跡終了
ノードとを格納する(ステップC)。この第2図に示す
図形の例では、追跡セグメント登録用テーブル(5g5
rch)にはセグメント[1]を格納し、追跡ノード登
録用テーブル(ndsrch)には終了ノード[d]、
開始ノード[alを格納する。
[Process 2] Next, in the same way as conventional figure tracking, the tracing start segment, the tracing start node, and the tracing end node are respectively input, and initial settings for figure tracking are performed (step b).
). This initial setting sets the number of registered segments to [1] and the number of registered nodes to [2]. Set the pointer (stgptr) indicating the tracking stage to [0]
This is done by setting . And Figure 3 (a
) shown in the tracking segment registration table (5g5rch
), and the tracking start node and the tracking end node are stored in the tracking node registration table (ndsrch) (step C). In the example of the figure shown in FIG. 2, the tracking segment registration table (5g5
rch) stores the segment [1], and the tracking node registration table (ndsrch) stores the end node [d],
Store start node [al.

【処理3] 次に追跡ノード登録用テーブル(ndsrch)から、
その追跡要素列の最終要素、つまり現在までに追跡し終
わった最後のノード(但し、stgptr−0の場合に
は追跡開始ノード)を求め、このノードに接続し得るセ
グメントを前述したノードテーブル(ndtbl )を
参照して求め、更にその数をCsgn)として求める(
ステップd)。この場合、ノードに接続可能なセグメン
トの条件(接続可能条件)を満たすものを求めることは
云うまでもない。具体的には、ノードテーブル(ndt
bl )に登録されているセグメントの内、現在のセグ
メントとの接続点での曲率が連続しているセグメントを
接続可能条件を満たすセグメントとして求める。 この接続条件判断は、例えば2値イメージ上で各々のセ
グメントについて求めたチエインコードからその曲率を
算出し、その曲率の差が成る閾値以下のものを連続セグ
メントとして抽出する等して行なわれる。 【処理4】 次に現在の図形追跡の履歴(最終セグメント列。 最終ノード列)に対して、その要素数をそれぞれインク
リメントしくステップe)、それらの内容を次の列にs
gn列分コピーする(ステップf)。 つまり第3図に示すテーブルの1列目においては、その
最終ノードが[al として求められる。そしてこの最
終ノードに接続可能なセグメントがノードテーブル(n
dtbl )から第2図に示すセグメント[2] [3
]として2個求められるので、sgnを[2]とし、セ
グメント数およびノード数をそれぞれインクリメントし
て[2]  [3] とする。 そしてそのそれぞれをsgn  (−2)で示される列
に複写する。そしてテーブル管理用のポインタをstg
ptr  4−9t4−9t  +  sgnとする(
ステップg)。
[Process 3] Next, from the tracking node registration table (ndsrch),
The final element of the trace element string, that is, the last node that has been traced up to now (however, in the case of stgptr-0, the trace start node) is found, and the segment that can be connected to this node is found in the node table (ndtbl) described above. ), and then calculate the number as Csgn) (
Step d). In this case, it goes without saying that a segment that satisfies the conditions for a segment that can be connected to a node (connectivity conditions) is sought. Specifically, the node table (ndt
Among the segments registered in bl), a segment that has a continuous curvature at the connection point with the current segment is determined as a segment that satisfies the connectability condition. This connection condition determination is performed, for example, by calculating the curvature of each segment from the chain code obtained for each segment on the binary image, and extracting segments whose curvature difference is less than or equal to a threshold value as continuous segments. [Process 4] Next, increment the number of elements for the current figure tracking history (final segment column, final node column) in step e), and transfer their contents to the next column.
Copy gn columns (step f). That is, in the first column of the table shown in FIG. 3, the final node is determined as [al. And the segments that can be connected to this final node are in the node table (n
dtbl) to the segments shown in Figure 2 [2] [3
], so sgn is set to [2], and the number of segments and the number of nodes are each incremented to [2] [3]. Then, each of them is copied to the column indicated by sgn (-2). And stg the pointer for table management
ptr 4-9t4-9t + sgn (
Step g).

【処理5】 次にndsrch配列の最終要素、即ち現在までに追跡
し終わった最後のノード(但し、stgptrが[0]
の場合には検索開始ノード)に接続し得るセグメントを
前記ノードテーブル(ndtbl )を参照して求め、
sgs rch配列の最終要素に追加する(ステップh
)またこの際、前記セグメントテーブル(sgtbl 
)を参照し、追加したセグメントに接続するノードのう
ち、現在のノードではない側のノードをndsrch配
列の最後に追加する(ステップi)。 この場合、接続可能なセグメントが複数個存在するとき
(sgn≧2)、接続優先度の低いものから先に上記5
g5rch配列の最終要素に追加する。尚、ndsrc
h配列へのノードの追加もこれに従う。 具体的には、例えばノード[alに接続可能なセグメン
トとして[2]  [3]の2つが求められるが、所定
の接続優先度に従って優先度の低いセグメント[3]の
追加を行なう。その後、接続可能な別のセグメントが残
されていることから、次に追跡セグメント[2]の追加
を行なう(ステップm) 尚、接続優先度としては、例えばこの実施例で示される
円(ループ)図形の場合には、隣接セグメント間の曲率
の差の絶対値が所定の閾値より小さいものであって、且
つその曲率が大きいもの程、接続優先度が高い等として
与えられる。
[Process 5] Next, the final element of the ndsrch array, that is, the last node that has been tracked so far (however, stgptr is [0]
In this case, find a segment that can be connected to the search start node) by referring to the node table (ndtbl),
Add to the final element of the sgs rch array (step h
) At this time, the segment table (sgtbl
), and among the nodes connected to the added segment, the node that is not the current node is added to the end of the ndsrch array (step i). In this case, when there are multiple connectable segments (sgn≧2), the one with the lowest connection priority is first connected using the above five segments.
Add to the final element of the g5rch array. Furthermore, ndsrc
Adding nodes to the h array also follows this. Specifically, for example, two segments [2] and [3] that can be connected to the node [al] are required, but a segment [3] with a lower priority is added according to a predetermined connection priority. After that, since another segment that can be connected remains, a tracking segment [2] is added next (step m).As the connection priority, for example, the circle (loop) shown in this example is used. In the case of a figure, the absolute value of the difference in curvature between adjacent segments is smaller than a predetermined threshold value, and the larger the curvature, the higher the connection priority is given.

【処理6】 以上の処理によって、接続可能条件を満たしながらその
図形追跡が最終ノードに達した場合、これを追跡終了と
判定する(ステップj)。そして追跡セグメント登録用
テーブル(5g5reh)の最終列の全ての要素を表示
し、その追跡状況をユーザに提示出力する(ステップk
)。この状態で、ユーザからの指示入力を待つことにな
る。
[Processing 6] Through the above processing, when the figure tracing reaches the final node while satisfying the connectable condition, this is determined to be the end of tracing (step j). Then, all elements in the last column of the tracking segment registration table (5g5reh) are displayed, and the tracking status is presented and output to the user (step k
). In this state, the system waits for an instruction input from the user.

【処理7】 これに対して追跡したノードが最終ノードが達していな
い場合や、ユーザが図形追跡に対する次候補を要求した
場合には(ステップn)、前記ポインタ(stgptr
)が示す追跡セグメント数を記憶しておく。そして前記
ポインタ(stgptr)をデクリメントしくステップ
0)、その位置での追跡セグメント数と比較する(ステ
ップp)。つまりテーブルにおける5g5rch (s
tgptr、  O)とsgsrch(stgptr 
−1、O)との値を比較する(ステップp)。 このとき、その値が等しい場合には、前述した
[Process 7] On the other hand, if the tracked node has not reached the final node, or if the user requests the next candidate for figure tracking (step n), the pointer (stgptr
) indicates the number of tracking segments. Then, the pointer (stgptr) is decremented (step 0) and compared with the number of tracking segments at that position (step p). In other words, 5g5rch (s
tgptr, O) and sgsrch(stgptr
−1, O) (step p). At this time, if the values are equal, then

【処理3
】に戻ってステップdからの処理を繰返し実行する。こ
の場合のセグメントは、上述した追跡セグメントの追跡
セグメント登録用テーブル(5g5rch)への登録手
順から明らかなように、追跡の深さとしてはポインタの
デクリメント前と同じであり、その接続の優先順位は1
つだけ低いものとなる。 これに対して5g5reh (stgptr、  0 
)とsgsrch(stgptr −1、O)との値が
異なる場合には、前記ポインタ(sgptr )を更に
デクリメントしくステップq)、前述した
[Processing 3
] and repeats the process from step d. In this case, the segment has the same tracking depth as before decrementing the pointer, and its connection priority is 1
It will be one lower. On the other hand, 5g5reh (stgptr, 0
) and sgsrch (stgptr -1, O) are different, the pointer (sgptr) is further decremented (step q), as described above.

【処理3】に
戻ってステップdからの処理を繰返し実行する。つまり
このことはポインタ(sgptr )を1回デクリメン
トした状態では、ノードに分岐が見出だされなかったこ
とを示しており、従ってポインタ(sgptr )を更
にデクリメントすることにより、別の分岐を探し出すこ
とを意味してい・る。 具体的には第3図に示すテーブルにおいてポインタ(s
gptr )が[6]で示される7列目で1回目の図形
追跡が終了しているはずである。しかしこの状態で「次
候補」の要求が指示入力されると、ポインタ(sgpt
r )をデクリメントし、その列内でのセグメント数(
sgn)の比較が行なわれる。 しかしてこの場合、そのセグメント数が[4]と[5]
となり、その値が異なっていることから更に上記ポイン
タ(sgptr )をデクリメントする。 しかしここでもそのセグメント数が[4]と[3コとで
異なっていることから、再び上記ポインタ(sgptr
 )をデクリメントする。するとこの状態でセグメント
数が[3]と[3]とになり一致するので、このときの
ポインタ(sgptr )が示すセグメント列[1→2
−6]、ノード列[d−a−+b4e]に続くセグメン
トから、その図形追跡を再開することになる。 かくしてこのような2次元配列構造の図形追跡用テーブ
ル3を用いた2値図形イメージに対する図形追跡によれ
ば、ポインタ(stgptr)を用いたテーブル管理だ
けによって追跡分岐点に至るまでの図形追跡要素の履歴
をそれぞれ効果的に、且つ整然と整理した状態で管理す
ることができる。そして図形追跡の行き詰まりが生じた
場合には、上記ポインタ(stgptr)の制御により
、速やかに最新の追跡分岐点に戻って図形追跡を再開す
ることが可能となる。この結果、従来のツリー構造で表
現されたテーブルを用いる場合のように、再帰呼出しや
ガーベージコレクションにより、その処理に多大な時間
を要する等の問題を効果的に回避することが可能となり
、バックトラックの頻度を少なくして高速な図形追跡処
理を実現し得る。 またこのような固定長の2次元配列構造のテーブルを用
いるので、可変長なツリー構造のテーブルを実現する場
合と異なり、必要メモリ容量を少なくすることが可能と
なる等の効果も奏せられる。 尚、本発明は上述した実施例に限定されるものではない
。例えばループ図形以外の図形追跡にも同様に適用する
ことが可能である。この場合には、図形の接続条件等が
その追跡対象図形の性質に応じて変わることは勿論のこ
とである。要するに本発明は図形追跡用のテーブルとし
て従来のツリー構造のテープに代えて2次元配列構造の
テーブルを用いるようにしたものであり、その要旨を逸
脱しない範囲で種々変形して実施することができる。 [発明の効果] 以上説明したように本発明によれば、2値イメージにお
ける図形追跡を非常に簡単な制御手順の下で、高速に行
なうことができ、図形追跡処理の簡易化を図り得る等の
実用上多大なる効果が奏せられる。
Returning to [Processing 3], the processing from step d is repeated. In other words, this shows that no branch was found at the node when the pointer (sgptr) was decremented once, so by further decrementing the pointer (sgptr), another branch could be found. It means ・ru. Specifically, in the table shown in Figure 3, the pointer (s
gptr) should have finished at the 7th column indicated by [6], where the first figure tracing should have been completed. However, if a request for the "next candidate" is inputted in this state, the pointer (sgpt
r ) and the number of segments in that column (
sgn). However, in this case, the number of segments is [4] and [5]
Since the values are different, the pointer (sgptr) is further decremented. However, since the number of segments is different between [4] and [3], the above pointer (sgptr
) is decremented. Then, in this state, the number of segments becomes [3] and [3] and match, so the segment string [1→2] indicated by the pointer (sgptr) at this time
-6], the figure tracing is restarted from the segment following the node sequence [d-a-+b4e]. Thus, according to figure tracing for a binary figure image using the figure tracking table 3 having such a two-dimensional array structure, figure tracing elements up to a tracing branch point can be tracked only by table management using pointers (stgptr). Each history can be effectively and neatly managed. If a dead end occurs in figure tracing, control of the pointer (stgptr) makes it possible to quickly return to the latest tracing branch point and restart figure tracing. As a result, it is possible to effectively avoid problems such as recursive calls and garbage collection that require a large amount of time to process, which is the case when using tables expressed in a conventional tree structure. It is possible to realize high-speed figure tracking processing by reducing the frequency of . Furthermore, since such a fixed-length two-dimensional array structure table is used, unlike the case where a variable-length tree structure table is used, it is possible to reduce the required memory capacity. Note that the present invention is not limited to the embodiments described above. For example, the present invention can be similarly applied to tracking figures other than loop figures. In this case, it goes without saying that the connection conditions of the figures and the like change depending on the properties of the figure to be tracked. In short, the present invention uses a two-dimensional array structure table instead of the conventional tree structure tape as a figure tracking table, and can be implemented with various modifications without departing from the gist thereof. . [Effects of the Invention] As explained above, according to the present invention, figure tracking in a binary image can be performed at high speed under a very simple control procedure, and figure tracking processing can be simplified. A great practical effect can be achieved.

【図面の簡単な説明】[Brief explanation of the drawing]

図は本発明の一実施例に係る図形追跡方式を示すもので
、第1図は実施例方式を適用した図形追跡システムのハ
ードウェア構成図、第2図は追跡対象とする2値図形イ
メージの例を示す図、第3図は図形追跡用テーブルの構
成例を示す図、第4図は図形追跡処理の制御手順を示す
図である。 l・・・2値イメージ入力部、2・・・図形追跡部、3
・・・図形追跡用テーブル、4・・・追跡情報格納部、
5・・・デイスプレィ端末。 出願人代理人 弁理士 鈴江武彦 多、′S 1 口 第 2[!1
The figure shows a figure tracking system according to an embodiment of the present invention. Figure 1 is a hardware configuration diagram of a figure tracking system to which the embodiment method is applied, and Figure 2 shows a binary figure image to be tracked. FIG. 3 is a diagram showing an example of the configuration of a figure tracking table, and FIG. 4 is a diagram showing a control procedure for figure tracking processing. l...Binary image input section, 2...Graphic tracking section, 3
... figure tracking table, 4... tracking information storage section,
5...Display terminal. Applicant's agent Patent attorney Takehikota Suzue, 'S 1 Part 2 [! 1

Claims (2)

【特許請求の範囲】[Claims] (1)入力2値イメージに基づいて図形追跡用テーブル
を作成しながら、この図形追跡用テーブルを用いて上記
入力2値イメージが示す図形部分を追跡するに際し、 前記図形追跡用テーブルとして、図形追跡の分岐点に至
るまでの図形要素の追跡順序系列を、その追跡要素数に
従って2次元配列した固定長のテーブルを用いることを
特徴とする図形追跡方式。
(1) While creating a figure tracking table based on the input binary image, when tracing the figure part indicated by the input binary image using this figure tracking table, the figure tracking table is used as the figure tracking table. A figure tracing method characterized by using a fixed-length table in which a tracing order series of graphic elements up to a branch point is two-dimensionally arranged according to the number of traced elements.
(2)入力2値イメージに基づいて図形追跡用テーブル
を作成しながら、この図形追跡用テーブルを用いて上記
入力2値イメージが示す図形部分を追跡するに際し、 上記入力2値イメージを細線化した細線図形イメージ上
の特徴点および特徴点間の線分についての追跡順序系列
を、それぞれその追跡要素数に従って2次元配列した固
定長の2つのテーブルを前記図形追跡用テーブルとし、
追跡分岐点において複数の追跡要素が存在する場合には
、図形に応じた追跡優先順位に従い、優先順位の低い追
跡順序系列から順にテーブルに格納して前記図形追跡用
テーブルを作成していくことを特徴とする図形追跡方式
(2) While creating a figure tracking table based on the input binary image, when tracing the figure part indicated by the input binary image using this figure tracking table, the input binary image was thinned. The figure tracking tables are two fixed-length tables in which tracking order series for feature points and line segments between feature points on a thin line figure image are two-dimensionally arranged according to the number of tracked elements, respectively;
When a plurality of tracking elements exist at a tracking branch point, the figure tracking table is created by storing them in the table in descending order of priority according to the tracking priority according to the figure. Characteristic figure tracking method.
JP23095288A 1988-09-14 1988-09-14 Graphic tracking system Pending JPH0277983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23095288A JPH0277983A (en) 1988-09-14 1988-09-14 Graphic tracking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23095288A JPH0277983A (en) 1988-09-14 1988-09-14 Graphic tracking system

Publications (1)

Publication Number Publication Date
JPH0277983A true JPH0277983A (en) 1990-03-19

Family

ID=16915891

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23095288A Pending JPH0277983A (en) 1988-09-14 1988-09-14 Graphic tracking system

Country Status (1)

Country Link
JP (1) JPH0277983A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000064901A1 (en) * 1999-04-27 2000-11-02 Nippon Kayaku Kabushiki Kaisha Phthalocyanine compounds, water-base ink compositions and colored products

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000064901A1 (en) * 1999-04-27 2000-11-02 Nippon Kayaku Kabushiki Kaisha Phthalocyanine compounds, water-base ink compositions and colored products

Similar Documents

Publication Publication Date Title
WO2021104056A1 (en) Automatic tumor segmentation system and method, and electronic device
CN111158365A (en) Path planning method and device, robot and storage medium
CN112712546A (en) Target tracking method based on twin neural network
CN111323037A (en) Voronoi path planning algorithm for novel framework extraction of mobile robot
CN111553466B (en) Information processing method, device and equipment
CN105447190A (en) Image retrieval method, device and server based on convolutional neural network
JPH0277983A (en) Graphic tracking system
CN111104568B (en) Deep searching method and device for enterprise equity relationship, computer equipment and storage medium
CN110728168B (en) Part recognition method, device, equipment and storage medium
JPH06119448A (en) Image processing method
JPH064600A (en) Method and device for image retrieval
Fakih et al. Piecewise reconstruction of 3d euler spirals from planar polygonal curves
JPH01126717A (en) Linear graphic input device
CN117809025B (en) Attention network-based target tracking method, device, equipment and storage medium
CN117011619A (en) Coronary artery branch identification method and device for XRA (X-ray diffraction) image
CN116977432A (en) Object 6D pose estimation method and system based on key point positioning network
JP2804347B2 (en) Image thinning method
CN117172289A (en) Tensor segmentation method and device and electronic equipment
JPH01156880A (en) Template matching method using template of pixel structure
CN116340713A (en) Calculation method and system for determining position of line segment by digital twinning
JP2549493B2 (en) Graphic processing device
CN118570458A (en) Service robot indoor scene semantic segmentation method, device, equipment and storage medium
CN114373191A (en) Hand condyle positioning method and device
CN115619850A (en) Method, system, device and readable storage medium for extracting center line of blood vessel
CN118210934A (en) Uncertain graph data frequent pattern mining method based on same-edge and same-point pattern