[go: up one dir, main page]

JPS63118989A - graphic display device - Google Patents

graphic display device

Info

Publication number
JPS63118989A
JPS63118989A JP61266002A JP26600286A JPS63118989A JP S63118989 A JPS63118989 A JP S63118989A JP 61266002 A JP61266002 A JP 61266002A JP 26600286 A JP26600286 A JP 26600286A JP S63118989 A JPS63118989 A JP S63118989A
Authority
JP
Japan
Prior art keywords
filling
point
boundary
display device
graphic display
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
JP61266002A
Other languages
Japanese (ja)
Inventor
Yuriko Yoshimura
吉村 由利子
Kiyoshi Maenobu
前信 潔
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP61266002A priority Critical patent/JPS63118989A/en
Publication of JPS63118989A publication Critical patent/JPS63118989A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、画像メモリに書き込まれた閉領域の塗り潰し
を行う図形表示装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a graphic display device that fills in closed areas written in an image memory.

従来の技術 従来の図形表示装置としては、例えば特開昭60−24
5085号公報、特開昭60−132271号公報に示
されている。
2. Description of the Related Art Conventional graphic display devices include, for example, Japanese Patent Application Laid-open No. 60-24
No. 5085 and Japanese Unexamined Patent Publication No. 132271/1983.

第6図あるいは第8図は、従来の図形表示装置の構成図
を示すものである。
FIG. 6 or FIG. 8 shows a configuration diagram of a conventional graphic display device.

第1の従来例として第6図を説明すると、101は画像
メモリ、1o2は画像メモリ上の閉領域の境界を追跡す
る境界追跡手段、103は境界追跡手段によって検出さ
れた閉領域境界座標データすべてを格納する境界データ
格納メモリ、104は境界データから塗り潰し領域を判
定する塗り潰し領域判定手段、106は画像メモ1J1
01に対して塗り潰しを行う塗り潰し手段である。
Referring to FIG. 6 as a first conventional example, 101 is an image memory, 1o2 is a boundary tracking means for tracking the boundary of a closed area on the image memory, and 103 is all closed area boundary coordinate data detected by the boundary tracking means. 104 is a filled area determining means for determining a filled area from the boundary data; 106 is an image memo 1J1;
This is a filling means for filling out 01.

以上のように構成された従来の図形表示装置においては
、例えば第7図のような凹多角形ムBODEを塗り潰す
場合、まず画像メモl7101上の閉領域ABODEの
境界を、境界追跡手段102によって追跡し、得られた
境界データを境界データ格納メモIJ103に格納する
In the conventional graphic display device configured as described above, when filling out the concave polygon BODE as shown in FIG. The obtained boundary data is stored in the boundary data storage memo IJ103.

次に境界データ格納メモ17103上の頂点データから
最下点(Y座標値の最も小さな点二C)を塗り潰し領域
判定手段104によって選び出し。
Next, the lowest point (point 2C with the smallest Y coordinate value) is selected from the vertex data on the boundary data storage memo 17103 by the filled area determining means 104.

最下点の左側の線分CBとCDの両線分間について、次
の最下点Eまで塗り潰し領域判定手段104で塗り潰し
領域を求め、塗り潰し手段106で前記塗り潰し領域を
塗り潰していく(第7図a)。。
For both line segments CB and CD on the left side of the lowest point, the filled area determination means 104 determines the filled area up to the next lowest point E, and the filled area is filled in by the filling means 106 (FIG. 7). a). .

Cの次の最下点Kまで塗り潰しが完了すると、CB、C
D両線分間とED、ICCD両線分間ついて、Eの次の
最下点りまで前記と同様に塗り潰しを行う(第7図b)
。次にEム、B人両線分間について、前記と同様に塗り
潰しを行い(第7図C)、最上点ムまでくれば塗り潰し
は完了する。
When the filling is completed to the lowest point K next to C, CB, C
Fill in the space between both lines D and both lines ED and ICCD in the same manner as above until the lowest point next to E (Figure 7b).
. Next, the line segments for both persons E and B are filled in in the same manner as described above (FIG. 7C), and the filling is completed when the highest point M is reached.

次に第2の従来例である第8図を説明する。第8図の2
01は第6図の101に、202は102に、204は
104に、205は105に各々対応する。206は境
界追跡手段202によって求められた頂点データを格納
する頂点データ格納メモリである。
Next, FIG. 8, which is a second conventional example, will be explained. Figure 8 2
01 corresponds to 101, 202 to 102, 204 to 104, and 205 to 105 in FIG. 6, respectively. 206 is a vertex data storage memory that stores the vertex data obtained by the boundary tracking means 202.

以上のように構成された従来の図形表示装置においては
1例えば第9図の順序で行う。まず頂点データ格納メモ
リ206上の頂点データより、塗り潰し領域判定手段2
04によって画像メモリ201上の所望塗り潰し領域F
GHIを規定する(第9図1!L)。続いて境界追跡手
段202で境界ムBを追跡しながら、塗り潰し領域FG
I(Iの右端位置IHまでの領域について、塗り潰し手
段206で塗り潰しを行う。前記塗り潰しにおいては既
ドツトデータと塗り潰しパターンデータとの排他的論理
和がとられる(第9図b)。次に境界CDについて前記
と同様の塗り潰し処理を行う(第9図C〕。DR,IC
人についても同様に塗り潰し処理を行うと(第9図d 
、 e )、第9図fの最終結果が得られる。なお、ど
の境界から塗り潰しを始めても同一の結果が得られる。
In the conventional graphic display device configured as described above, processing is performed in the order shown in FIG. 9, for example. First, from the vertex data on the vertex data storage memory 206, the filled area determining means 2
04, the desired filled area F on the image memory 201
Define GHI (Figure 9 1!L). Next, while tracking the boundary B by the boundary tracking means 202, the filled area FG is
The area up to the right end position IH of I (I) is filled by the filling means 206. In the filling, the exclusive OR of the existing dot data and the filling pattern data is calculated (FIG. 9b). Next, the boundary is Perform the same filling process as above for the CD (Figure 9C).DR, IC
If we perform the same filling process for people (Fig. 9d)
, e), the final result in Fig. 9f is obtained. Note that the same result can be obtained no matter which boundary you start filling.

発明が解決しようとする問題点 しかしながら第6図のような構成では、閉領域の境界座
標データすべてを格納するための境界データ格納メモリ
103を必要とするため、ハード量が膨大になるという
問題点を有していた。
Problems to be Solved by the Invention However, the configuration shown in FIG. 6 requires a boundary data storage memory 103 to store all the boundary coordinate data of the closed area, resulting in an enormous amount of hardware. It had

また、第8図のような構成では、第6図に比べてハード
量は少なくなるが、閉領域の境界ムBODEから所望塗
り潰し領域FGHIの右端IHまでの閉領域外の領域に
ついても塗り潰しを行うため、オーバーフローが生じ、
さらに、塗り潰し手段205においては、既ドツトデー
タと塗り潰しパターンデータとの排他的論理和をとるこ
とで塗り潰しを行うため、画像メモリの塗り潰し範囲内
に既に何らかの情報が書き込まれている場合は、その部
分の既書き込み情報が影響して、期待した結果が得られ
ないという問題点を有していた。
In addition, in the configuration shown in FIG. 8, the amount of hardware is smaller than in FIG. 6, but the area outside the closed area from the boundary BODE of the closed area to the right end IH of the desired filling area FGHI is also filled. Therefore, an overflow occurs,
Furthermore, since the filling means 205 performs filling by calculating the exclusive OR of the existing dot data and the filling pattern data, if some information has already been written within the filling range of the image memory, that part The problem is that the expected results cannot be obtained due to the influence of previously written information.

本発明はかかる点に鑑み、境界データすべてを格納する
メモリを必要としない最小のハード量で、指定された閉
領域内だけに対して、かつ排他的論理和以外の演算でも
塗り潰しを行うことを可能にする図形表示装置を提供す
ることを目的とする。
In view of this, the present invention is capable of filling only within a specified closed area with a minimum amount of hardware that does not require memory to store all boundary data, and with operations other than exclusive OR. The object of the present invention is to provide a graphic display device that enables the following.

問題点を解決するための手段 本発明は、画像メモリ上の閉領域の境界を追跡する境界
追跡手段と、前記境界追跡手段によって検出された或る
一点と前記境界上の点の前の点及び次の点の隣接する三
点の位置関係から前記境界上の点が塗り潰し開始点とな
るか否かを判定する塗り潰し判定手段と、前記塗り潰し
判定手段によって塗り潰し開始点と判定された点に対応
する塗り潰し終了点を検出する塗り潰し終了点検出手段
と、前記塗り潰し開始点と塗り潰し終了点の間に塗り潰
しデータを描く塗り潰し手段を備えた図形表示装置であ
る。
Means for Solving the Problems The present invention provides a boundary tracing means for tracing the boundary of a closed area on an image memory, a certain point detected by the boundary tracing means, a point before the point on the boundary, and a point detected by the boundary tracing means. a filling determination means for determining whether or not a point on the boundary is a filling start point based on the positional relationship of three adjacent points of the next point; and a point corresponding to the point determined to be a filling start point by the filling determining means. This graphic display device includes a filling end point detection means for detecting a filling end point, and a filling means for drawing filling data between the filling start point and the filling end point.

作用 本発明は前記した構成により、境界上の隣接する三点の
位置関係のみから塗り潰しを行うか否かの判定を行う塗
り潰し判定手段と、塗り潰し終了点検出手段を持つこと
によって、境界データすべてを格納するメモIJ ’t
−必要としない最小のハード量で、指定された閉領域内
だけに対して、かつ、排他的論理和以外の演算でも塗り
潰しを行うことを可能にする。
Effect of the Invention The present invention has the above-described configuration, and has a filling determination means for determining whether or not to perform filling only based on the positional relationship between three adjacent points on the boundary, and a filling end point detecting means, so that all boundary data can be processed. Memo IJ't to store
- It is possible to perform filling only within a specified closed area and with operations other than exclusive OR with the minimum amount of hardware that is not required.

実施例 第1図は本発明の実施例における図形表示装置の構成図
を示すものである。第1図において、1は第6図の10
1に、2は102に、5は106に各々対応する。7は
閉領域の境界上の或る一点と前記境界上の点の前の点及
び次の点の隣接する三点の位置関係から前記境界上の点
が塗り潰し開始点となるか否かを判定する塗り潰し判定
手段であり、8は塗り潰し判定手段7によって塗り潰し
開始点と判定された点に対応する塗り潰し終了点全検出
する塗り潰し終了点検出手段である。
Embodiment FIG. 1 shows a configuration diagram of a graphic display device in an embodiment of the present invention. In Figure 1, 1 is 10 in Figure 6.
1, 2 corresponds to 102, and 5 corresponds to 106, respectively. 7 determines whether or not a point on the boundary becomes the filling start point based on the positional relationship between a certain point on the boundary of the closed area and three adjacent points: the point before and the next point on the boundary. Reference numeral 8 denotes a filling end point detecting means for detecting all filling end points corresponding to the point determined as a filling start point by the filling determining means 7.

以上のように構成された本実施例の図形表示装置につい
て、以下その動作を説明する。第5図は塗り潰し処理の
フローを示す図である。第5図においてSは出発点、G
は塗り潰し開始点か否かを判定すべき点、FはGの前の
点、HはGの次の点、G′はGに対応する塗り潰し終了
点を示す。GFはFのGに対する位置関係、GHはHの
Gに対する位置関係6o〜7の数字で表したものである
The operation of the graphic display device of this embodiment configured as described above will be described below. FIG. 5 is a diagram showing the flow of filling processing. In Figure 5, S is the starting point, G
indicates the point at which it is to be determined whether it is the filling start point, F indicates the point before G, H indicates the next point after G, and G' indicates the filling end point corresponding to G. GF is the positional relationship of F with respect to G, and GH is the positional relationship of H with respect to G expressed by numbers 6o to 7.

前記0〜7の数字は第4図の0〜7に対応した位置関係
を示し、第4図0〜7は第3図の座標位置に各々対応す
る。まず、画像メモリ1の閉領域の境界上の一点を開始
点Sとする。Sの座標値をFの座標値とし、境界追跡手
段2によって境界の左まわり内側トレースで次の点を捜
しGとする。前記と同様にしてGの次の点Hを求める。
The numbers 0 to 7 indicate the positional relationships corresponding to 0 to 7 in FIG. 4, and 0 to 7 in FIG. 4 correspond to the coordinate positions in FIG. 3, respectively. First, a point on the boundary of a closed area of the image memory 1 is defined as a starting point S. The coordinate values of S are set as the coordinate values of F, and the next point is searched for by the boundary tracing means 2 on the leftward inner side of the boundary and is designated as G. Find the next point H of G in the same way as above.

このようにして求められた三点の位置関係が、 1≦GH≦(GF−1)      ・・・・・・(1
)の不等式を満たしているなら、塗り潰し判定手段7に
おいてGは塗り潰し開始点であると判定され、塗り潰し
終了点検出手段8によって、Gに対応する塗り潰し終了
点G”z検出した後、G−G’間の塗り潰しを塗り潰し
手段6によって行うOF+G、Hの位置関係が前記(1
)の不等式を満たさなければ何も行わない。次に、現G
、Hの座標値を各各F、Gに代入し、FがSと一致する
まで前記と同様にGの次の点Hを求め、判定を行うこと
を繰り返す。以上述べた方法で例えば第2図の凹多角形
ムBCDICの塗り潰しを行うと、人を出発点とじムB
間、Be間は塗り潰し金行い(第2図&。
The positional relationship of the three points found in this way is 1≦GH≦(GF-1) ・・・・・・(1
), the filling determination means 7 determines that G is the filling start point, and the filling end point detecting means 8 detects the filling end point G"z corresponding to G, and then G-G The positional relationship between OF+G and H, where the filling in between ' is done by the filling means 6, is as described above (1
) does nothing unless the inequality is satisfied. Next, the current G
, H are substituted into each of F and G, and the next point H after G is determined in the same manner as described above until F and S are matched, and the determination is repeated. If, for example, the concave polygon BCDIC in Fig. 2 is filled in using the method described above, the person will be drawn from the starting point BCDIC.
The spaces between Be and Be are filled in with gold (Fig. 2 &.

b)、CD間は何もせず(第2図C)、DIC間で再び
塗り潰しを行い(第2図d)、Eム間では何も行わずに
、塗り潰しを完了する(第2図θ)という手順になる。
b), do nothing between CDs (C in Figure 2), fill in again between DICs (D in Figure 2), and complete the filling without doing anything in between E (θ in Figure 2). This is the procedure.

以上のように本実施例によれば、閉領域の境界上の或る
一点と前記境界上の前の点及び次の点の隣接する三点の
位置関係から前記境界上の点が塗り潰し開始点となるか
否かを判定する塗り潰し判定手段と、塗り潰し開始点と
判定された点に対応する塗り潰し終了点を検出する塗り
潰し終了点検出手段を設けることにより、境界データす
べてを格納するメモリを必要としない最小のハード量で
閉領域の塗り潰し?実現することができ、また第2図の
ように指定された閉領域に対してのみ、唯−度だけ塗り
潰しを行うので無駄なく効率的に処理でき、排他的論理
和以外の演算を用いた塗り潰しも容易に行うことが可能
となる。
As described above, according to this embodiment, a point on the boundary becomes the filling start point based on the positional relationship between a certain point on the boundary of the closed area, the previous point on the boundary, and the next point on the boundary. By providing a filling determination means for determining whether or not , and a filling end point detecting means for detecting a filling end point corresponding to a point determined to be a filling start point, it is possible to eliminate the need for a memory to store all boundary data. Not filling closed areas with minimum hard amount? In addition, as shown in Figure 2, only the specified closed area is filled in once, so processing is efficient without waste, and filling using operations other than exclusive OR is possible. can also be easily performed.

なお、本実施例において第6図では、境界トレースを左
まわり内側トレースとしたが、右まわり内側トレースと
してもかまわない。但し、右まわりの場合、第2図の塗
り潰し方向も右まわり(AEDCHの順)となり、第4
図では0を基準として、左まわりの順に1〜7までの数
字が割り当てられなければならない。
In this embodiment, in FIG. 6, the boundary trace is a counterclockwise inner trace, but it may also be a clockwise inner trace. However, in the case of clockwise rotation, the filling direction in Figure 2 will also be clockwise (in the order of AEDCH), and the fourth
In the figure, numbers 1 to 7 must be assigned in order counterclockwise with 0 as the reference.

発明の詳細 な説明したように、本発明によれば、境界データすべて
を格納するメモリを必要としない最小のハード量で閉領
域の塗り潰しを実現することができ%また、指定された
閉領域に対してのみ、唯−度だけ塗り潰しを行うので無
駄なく効率的に処理でき、排他的論理和演算だけでなく
他の演算を用いた塗り潰しも可能となるため、その実用
的効果は大きい。
As described in detail, according to the present invention, it is possible to realize filling of a closed area with a minimum amount of hardware without requiring memory to store all boundary data. Since filling is performed only once for each object, it can be processed efficiently without waste, and it is possible to perform filling using not only the exclusive OR operation but also other operations, which has a great practical effect.

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

第1図は本発明における一実施例の図形表示装置の構成
図、第2図は本発明によって塗り潰しを行った場合の一
例の経過図、第4図は隣接する二点の位置関係図、第3
図は第4図の位置関係各々に対する座標値金示した図、
第5図は本発明における一実施例のフロー図、第6図、
第8図は従来の図形表示装置の構成図、第7図は第6図
の従来例で塗り潰しを行った場合の一例の経過図、第9
図は第8図の従来例で塗り潰しを行った場合の−例の経
過図である。 1.101.201−−−・−・画像メモリ、2,10
2゜202・・・・・・境界追跡手段、103・・・・
・・境界データ格納メモ17.104 、204・・・
・・・塗り潰し領域判定手段、5,105,205・・
・・・・塗り潰し手段、206・・・・・・頂点データ
格納メモリ、7・・・・・・塗り潰し判定手段、8・・
・・・・塗り潰し終了点検出手段。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 第2図 (d)    (e) 第3図 (χ、V+Q (7/、ブー1) 第4図 第5図 第6図 /θ4 第7図 (α)(b)(O) 第8図 叫 第9図
FIG. 1 is a configuration diagram of a graphic display device according to an embodiment of the present invention, FIG. 2 is a progress diagram of an example of filling in according to the present invention, FIG. 4 is a diagram of the positional relationship between two adjacent points, and FIG. 3
The diagram shows the coordinate values for each positional relationship in Figure 4,
FIG. 5 is a flow diagram of an embodiment of the present invention, FIG.
FIG. 8 is a block diagram of a conventional graphic display device, FIG. 7 is a progress diagram of an example of filling in the conventional example of FIG. 6, and FIG.
The figure is a progress chart of an example in which filling is performed in the conventional example of FIG. 1.101.201 --- Image memory, 2,10
2゜202... Boundary tracking means, 103...
... Boundary data storage memo 17.104, 204...
...Filled area determination means, 5,105,205...
...Filling means, 206... Vertex data storage memory, 7... Filling determination means, 8...
...Filling end point detection means. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure 2 (d) (e) Figure 3 (χ, V+Q (7/, Boo 1) Figure 4 Figure 5 Figure 6/θ4 Figure 7 (α) (b) (O) Figure 8 Shout Figure 9

Claims (1)

【特許請求の範囲】[Claims] 画像メモリ上の閉領域の境界を追跡する境界追跡手段と
、前記境界追跡手段によって検出された或る一点と前記
境界上の点の前の点及び次の点の隣接する三点の位置関
係から前記境界上の点が塗り潰し開始点となるか否かを
判定する塗り潰し判定手段と、前記塗り潰し判定手段に
よって塗り潰し開始点と判定された点に対応する塗り潰
し終了点を検出する塗り潰し終了点検出手段と、前記塗
り潰し開始点と塗り潰し終了点の間に塗り潰しデータを
描く塗り潰し手段を備えたことを特徴とする図形表示装
置。
A boundary tracking means for tracking the boundary of a closed area on an image memory, and a positional relationship between a certain point detected by the boundary tracking means and three adjacent points, the previous point and the next point on the boundary. Filling determining means for determining whether a point on the boundary is a filling starting point; Filling end point detecting means for detecting a filling end point corresponding to a point determined as a filling starting point by the filling determining means; A graphic display device comprising: a filling means for drawing filling data between the filling start point and the filling end point.
JP61266002A 1986-11-07 1986-11-07 graphic display device Pending JPS63118989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61266002A JPS63118989A (en) 1986-11-07 1986-11-07 graphic display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61266002A JPS63118989A (en) 1986-11-07 1986-11-07 graphic display device

Publications (1)

Publication Number Publication Date
JPS63118989A true JPS63118989A (en) 1988-05-23

Family

ID=17425000

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61266002A Pending JPS63118989A (en) 1986-11-07 1986-11-07 graphic display device

Country Status (1)

Country Link
JP (1) JPS63118989A (en)

Similar Documents

Publication Publication Date Title
JPH03256485A (en) Motion vector detecting circuit
CN109871800A (en) A kind of estimation method of human posture, device and storage medium
US5920324A (en) Character pattern producing apparatus capable of producing character pattern having connected character elements
JPS63118989A (en) graphic display device
JPH0561980A (en) Line drawing device
JP2000105813A (en) Image connection system and recording medium storing image connection program
CN117956235A (en) Video processing method, device, electronic device and storage medium
JPH03280120A (en) Guidance system utilizing operation history
JPS61194571A (en) Graphic recognition mode
CN113989703B (en) Media resource labeling method, device, equipment and storage medium
JP2003281548A (en) Video editing method and program
JPS61161576A (en) Picture signal processor
JP2852044B2 (en) Symbol recognition device
JPH07334611A (en) How to display unrecognized characters
JP3487420B2 (en) SIMD parallel computing device
JPS628226A (en) File key search method
JP3657725B2 (en) Line figure image processing method
JPH03116285A (en) Graphic producing device
JPS59178580A (en) Calculating system of center fix point of pattern
JP2776347B2 (en) Drawing device for printer
JPS63142769A (en) Image matching device
CN114299143A (en) Method and device for marking coordinate points in image
JPH0291690A (en) Enlargement/reduction display system
JPS62175881A (en) Processing method for image data
JPH06168074A (en) Common ionput/output device