JPS6017569A - Method and device for painting out of closed area - Google Patents

Method and device for painting out of closed area

Info

Publication number
JPS6017569A
JPS6017569A JP58125823A JP12582383A JPS6017569A JP S6017569 A JPS6017569 A JP S6017569A JP 58125823 A JP58125823 A JP 58125823A JP 12582383 A JP12582383 A JP 12582383A JP S6017569 A JPS6017569 A JP S6017569A
Authority
JP
Japan
Prior art keywords
pixels
pixel
filled
closed area
filling
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
JP58125823A
Other languages
Japanese (ja)
Inventor
Masahiro Ito
正博 伊藤
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 Hokushin 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 Hokushin Electric Corp filed Critical Yokogawa Hokushin Electric Corp
Priority to JP58125823A priority Critical patent/JPS6017569A/en
Publication of JPS6017569A publication Critical patent/JPS6017569A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Generation (AREA)

Abstract

PURPOSE:To allow painting out without increasing memory capacity by housing only a relative location between advancing pixels as data permitting the tracing back of a reverse sequence when painting out is deadlocked, while painting out the pixels. CONSTITUTION:A host computer 1 defines the close area within an image memory 4, and designates an arbitrary point within the close area in a painting out circuit 2. The painting out circuit 2 starts from this designated point, selects the pixels required to be painted out adjacent to the circuit 2 according to the required search direction sequence, and causes a relative location storage memory 3 to store this selected move direction to the pixels. In case of selecting the following pixels required to be painted out, and in case where all the adjacent pixels can not be selected, the pixels required to be painted out are searched while tracing the move direction data stored in the relative location storage memory 3 in a stored order.

Description

【発明の詳細な説明】 り発明の属する技術分野) 本発明は、CR−1’ (Cathode Ray −
1ubc )表示装置−トに写1ノ出され1.テ閉領域
を効率的(、−シ裏り)ぶ4ことがC′きる方法、及び
(二の、7j法に直接使用4る装置に関づるbのである
DETAILED DESCRIPTION OF THE INVENTION [Technical field to which the invention pertains] The present invention relates to CR-1' (Cathode Ray-
1ubc) The image is displayed on the display device and 1. (b) relates to a method for efficiently converting closed regions, and (b) relates to a device that can be used directly in the 7j method.

1従来技術の説明1 成る領域を線分で囲み、その内部を一定の色に着色4る
よ)なことは、」ンピ1−タダラフイックスの分野など
今日C゛は広く使用され−くいる技術の一つである。従
って、多くの手段が既に案出されているが、効率的面で
これらの技術をとらえでみた場合まだまだ不満足な点が
ある。
1 Explanation of the Prior Art 1 Surrounding an area with line segments and coloring the inside with a certain color 4) is widely used today, such as in the field of computer graphics. It is one of the techniques. Therefore, although many methods have already been devised, these techniques still leave unsatisfactory points in terms of efficiency.

例え(よ、従来のラスタスニ1川・ン型CRi表示装置
において行なわれている閉領域の塗りつぶし方法の一例
を第1図を用いて以下に説明φる。
For example, an example of a method of filling in a closed area carried out in a conventional RastaSni type CRi display device will be described below with reference to FIG.

第1図において、閉領域が黒丸で表示l)たaなる値の
ビクセル(pixel )で・与えられ、この内部を1
)なる(直で塗りつぶすものとりる。
In Figure 1, the closed region is indicated by a black circle, which is given by pixels with a value of a, and the inside of this region is represented by a black circle.
) Naru (Take what you want to fill in directly.

閉領域内の(+息の一点(x 、 V )が与えられる
と、以下のアルゴリズムにより塗りつぶ()が行なわれ
る。
When a point (x, V) of (+breath) in a closed region is given, filling () is performed using the following algorithm.

111’ (川(!(1lM’! reす1011 f
ill (X 、V 全 5.b−)egin :f read pixel (x 、y ) ≠ao
r rCad pixel (x 、V ) r−bt
hen Ite(1in write pix(!l (x 、y 、b )1’
0g1on fill(x +l 、V S a 、1
1 )rc+gion fill(x−1、V 、a 
、b )region fill(x 、y−+−1、
a 、b )1’e(lioll ft1l(X 、 
V−1、a 、b )nd 以−にのアルゴリズl\は、第2図に承りように、1つ
のビクセルに隣接づる1−トノ「右の4方向のビクセル
についてaまたは1)のデータが格納されでいるか否か
を確認4る作業を行なっ−Cいるものぐある。でして、
この作業を開領域内のり′べてのビクセルについて行な
うわ(ブー(・あるが、上記のアルゴリズムはりブルー
チンの中に、更にそのリーブルーチンをサブルーチンど
して読み出す所謂再帰的なものである。従って、スタッ
クのレベルは最大の場合、開領域内の全ビクセル数に達
することがあり1qるので、実用土の点で問題があった
111' (River (! (1lM'! resu1011 f
ill (X, V all 5.b-)egin: f read pixel (x, y) ≠ao
r rCad pixel (x, V) r-bt
hen Ite(1in write pix(!l (x , y , b ) 1'
0g1on fill(x +l , V S a , 1
1) rc+gion fill (x-1, V, a
, b) region fill (x, y-+-1,
a,b)1'e(lioll ft1l(X,
V-1, a, b) nd As shown in Fig. 2, the following algorithm is based on the following algorithm: Check whether it is stored or not.
This process is performed for all pixels in the open area (but the above algorithm is a so-called recursive one in which the leave routine is read out as a subroutine within the leave routine. Therefore, In the maximum case, the stack level can reach 1q, which is the total number of pixels in the open area, which poses a problem in terms of practical use.

1本発明の目的] 本発明は、このような欠点を解決したもの(゛あり、そ
の目的は単純なアルゴリズムを用いて、スタックのオー
バフローを防き゛、フイク[1プログラムにより閉領域
の塗りつぶしを行な゛うことができる閉領域の塗りつぶ
し方法および装置を提供することにある。
1. Purpose of the present invention] The present invention solves these drawbacks (1) The purpose of the present invention is to prevent stack overflow by using a simple algorithm, An object of the present invention is to provide a method and apparatus for filling in a closed area.

U本発明のR要] 本発明に係る開領域の塗りつぶし方法の概授は、塗りつ
ぶすべき閉領域を定義する1−程と、この閉領域内の成
る点から出発し、これに隣接りる塗りつぶすべぎビクセ
ルを所定の探索方向順序にしたがって選び出す丁−程と
、この選び出したビクセルへの移動方向を選び出した順
に記憶しCおく T稈と、成るビクセルから次の塗りつ
ぶリベきビクセルを選択する場合に、イの隣接するビク
セルが全て選択できないどき、前条シ工程で記憶しであ
る移動方向のデータを順に遡りながら塗りつぶすべさピ
クl?ルを探索する−「稈と、を備え1.X閉領域の塗
りつぶしプjγ人て゛ある。
U Summary of the present invention] The outline of the method for filling in an open area according to the present invention is as follows: 1. Defining a closed area to be filled in Select the starting pixels according to a predetermined search direction order, and store the moving direction to the selected pixels in the selected order. Select the next filling pixel from the pixels consisting of the T culm. In this case, if you cannot select all the adjacent pixels of pixel A, you should go back and fill in the data in the moving direction that was memorized in the previous step. Search for a file - ``1.

[実施例に、Jζる説明1 以下図面を用いて、本発明を1柵に説明り−る。[In the example, explanation 1 The present invention will be explained below with reference to the drawings.

第3図は、1つのビクはルを中心として、これに隣接づ
−る1下1.し右の4方向の探索順序を示した図Cある
。例えば、まず■1=0の方向を探索づるがこの方向が
所定のルールにより探索ぐさない場合にはm−1の方向
を探索(J、この方向もルールにより探索できにTい場
合には川・−2,33の方向の順序で探索4るど言う口
とを表わしている。第4図は、本発明に係る装置の構成
例を示した図(・ある、、第5図は、本発明tキ7係る
方法i15 J:びv;、置の動作を示した図である。
In Figure 3, one Bikku Le is in the center, and adjacent to it are 1 Lower 1. There is a diagram C showing the search order in the four directions on the right. For example, first search the direction of・The order of the directions of −2 and 33 represents the search 4 loops. FIG. 4 is a diagram showing an example of the configuration of the device according to the present invention. FIG. 7 is a diagram showing the operation of method i15 J: and v; according to the invention.

第(3図は、相対位置記憶メ七りの動作を説明するため
の図である。第7図は、本発明に係るh法J3よび装置
の全体の動作ノ(」−を示した図である。
Figure 3 is a diagram for explaining the operation of the relative position storage mechanism. Figure 7 is a diagram showing the overall operation of the h-method J3 and the device according to the present invention. be.

)1、ず、第4図においC1′1はホス1へ」ンピ1−
−−−タ(゛あり、装置全体の動作をT1ント[−1−
ルするものである。2は塗りつ、5(シ回路ひ8iす、
実際(Jはマイク[−1プ【1グー)ノ)によるバート
ウll′により構成され(いる。33は相対位動記憶メ
■“す(′Jうり本発明(’ If’&り入れICもの
である1、4は画像ヌ[すC・あり、c’; i< r
上に表示する1tiii像i−夕を格納するためのもの
1゛ある。なお、第4図【Jおい′Cは、この画像メモ
リ4の内容を表示するC 8丁などを省略し2I描いた
。これらの記載が4i:りても、本発明の理解に支障が
無いからである。
) 1, zu, In Figure 4, C1'1 goes to Hos 1.
--- Data (゛), the operation of the entire device can be controlled by
It is something to be done. 2 is painted, 5 (circuit line 8i,
In fact, it is composed of a bartow by a microphone (J is a microphone [-1). 33 is a relative position memory system ('If' 1 and 4 are image nu[suC, c';i< r
There is one for storing the 1tiii image shown above. It should be noted that FIG. 4 [JOi'C] is drawn 2I by omitting C8, etc., which display the contents of this image memory 4. This is because even if these descriptions are 4i:, there is no problem in understanding the present invention.

以上のような装置においで、第5図に示す閉領域を例に
どり、これを塗りつぶす動作を以下に説明リ−る。
Using the closed area shown in FIG. 5 as an example in the apparatus described above, the operation of filling the closed area will be explained below.

(イ) ホストコンビコータ1は、例えば画像メモリ4
内に黒丸で示す値aのピクセル(・閉領域を定義し、ま
た塗りつぶし回路2に閉領域内の任意の点(x 、 y
 )を指定する。
(b) The host combination coater 1 has, for example, an image memory 4
A pixel with value a indicated by a black circle inside (-defines a closed region, and also fills the filling circuit 2 with an arbitrary point within the closed region (x, y
).

く口) 塗りつぶし回路2は次のような動作r閉領域内
の各ビクセルを塗りつぶTl’ 。
The filling circuit 2 fills each pixel within the closed area Tl' as follows.

■ ホストコンビコータ1から指定された閉領域内の点
(x 、 y )は第5図の位@′cあったとする。そ
こC,塗りつぶし回路2は、まず第3図に承りIII 
=・0の方向に隣接りるビクセルの1゛−タを画像メし
り4から読み出Iノイの内容を調べる。この場合、隣接
するビクセルf1の内容(よ値a 、、Slは1)(゛
はないため、画像メ七り4にA3 TJるビクセル[、
の位置に相当りるアト1ノスヘ11口1)を書き込む、
(2) Assume that the point (x, y) in the closed area designated by the host combi coater 1 is at the position @'c as shown in FIG. There, the filling circuit 2 is first shown in Figure 3.
The digits of adjacent pixels in the direction of =.0 are read out from the image frame 4 and the contents of I noise are examined. In this case, the contents of the adjacent pixel f1 (value a, , Sl is 1) (because there is no ゛, the pixel A3 TJ [,
Write Ato 1 No. 11 Kuchi 1) corresponding to the position of
.

そしC更に、相対位置記憶メモリ33の所定のノ′ドレ
スへは移動り向を示J−データを?!さ込む。即ち、こ
の場合は、m−〇の方向なので” 0 ”を古き込む。
Furthermore, J-data indicating the direction of movement is sent to a predetermined node address in the relative position storage memory 33. ! Insert. That is, in this case, since the direction is m-0, "0" is inserted.

なお、探索の移動り向が第3図の例では4方向’P す
るl・:め、4つの移動方向を記憶ザるために相対位動
記憶メモリ3は2ピツ1への信号を記憶でさるものCあ
る必要がある。この動作が終ると次の隣接4るビクセル
の内容を調へる動作に移る。
In addition, in the example of FIG. 3, the search movement direction is 4 directions 'P', so the relative position memory 3 can store the signal to 2 pins 1 in order to memorize the 4 movement directions. There must be a monkey C. When this operation is completed, the operation moves on to examining the contents of the next four adjacent pixels.

■ ビクセル[+に進んだ状態ぐ次の隣接づるビクセル
の内容を調べる場合は、(りの時と同様にm=0の方向
から調べる。従っC、ビクセルf2の内容が調べられ、
この場合ピクセルf2の内容は1直a又+tb’rはな
いため、画像メ七り4のビクしル[2に値1)を書き込
み、相対位置記憶メモリ3については、■におけるデー
タの格納されているアドレスを1インクリメン1−シた
り7ドレスヘ″0”′のデータを閃き込む。王の後、次
の隣接づるピクセルの内容を調べる。
■ When checking the contents of the next adjacent pixel after proceeding to the pixel [+, check from the direction of m = 0 as in the case of (). Therefore, the contents of C and pixel f2 are checked,
In this case, the content of pixel f2 is not 1 direct a or +tb'r, so the image memory 4's pixel [2 has a value of 1] is written, and the relative position memory 3 stores the data in ■. The data of "0"' is flashed to 7 addresses by one increment. After the king, examine the contents of the next adjacent pixel.

■ このような動作を繰り返゛えし−C,第5図に示づ
ようにビクセル[I〜[6までfia I)が占き込ま
れ塗り・つぶされる。次に、ビクセルf6からm=0の
方向を調べるとそのビクセルの値はaであるので、次に
、第3図のようにm =1の方向を調べることになるが
、この方向も、今、(直11を書き込んC・来たビクセ
ルC゛あるからもう塗りつぶしの対象にならく(い。し
たがって次の調査対象の方向は第3図に承りようにm 
=2の方向C′ある。この方向は、まだ塗りつぶされて
いないので(す、■C説明したような動作でビクセル1
□と[0に11bが書き込まれる。
② By repeating this operation, as shown in FIG. 5, the pixels [I to [fia I up to 6] are filled in and painted/filled. Next, when we check the direction of m = 0 from pixel f6, the value of that pixel is a, so next we will check the direction of m = 1 as shown in Figure 3, but this direction is also now , (Write straight 11 C, came pixel C) Since it is there, it will no longer be the target of filling in (No. Therefore, the direction of the next survey target is M as shown in Figure 3.
=2 directions C'. Since this direction has not been filled in yet,
11b is written to □ and [0.

■ ビクセル[8から次に塗りつぶされるビクセルは方
向m−0、が値aぐあるためrn =1の1j向にある
ビクセル[9が塗りつぶしの対象になる。
(2) The next vixel to be filled starting from pixel [8 has a value a in the direction m-0, so the vixel [9] in the 1j direction with rn = 1 becomes the object to be filled.

以下、第5図に示すように、m −1の方向のビクセル
91〜g5までが塗りつぶされる。
Thereafter, as shown in FIG. 5, the pixels 91 to g5 in the m-1 direction are filled in.

ピク[ルg50次に塗りつぶされるビクセルはm=Q、
1.2の方向が全部(ifi a又は()であるため、
m =3の方向のビクセルg6が塗りつぶしの対やどな
る。
Pixel g50 The next pixel to be filled is m=Q,
1.2 directions are all (ifi a or (), so
The vixel g6 in the direction m = 3 becomes a filled pair.

■ ビクセルg6の次に塗りつふされるピクセルは、m
=0の方向がまだ値a又(3口)Cないため、ビクセル
g7〜Q9L’rが塗り′つぶされる。ピクセルg9の
次に塗りつぶずビクはルを探索(るには、以下の動作に
よる。
■ The pixel to be filled next to pixel g6 is m
Since the direction of =0 does not yet have the value a or (3 units) C, the pixels g7 to Q9L'r are filled out. To search for an unfilled area next to pixel g9, use the following operation.

■ ビク(ごルg9ではm−0,1,2,3の全ての方
向が値a又は1〕である。この場合、相対位1ff(記
憶メモリ〔3に記憶され−Cいるアドレスごとの方位デ
ータ(…−0,1.2.3)を順に遡るように動作する
。即ち、相対位置記憶メモリ3には、いまよ′C塗りつ
ぶされてきた各ビクセル[1〜f9〜QI−・g9の方
位データが選択された順に記憶され−Cいる。これを第
6図(1)に示′1oここで相対位置記憶メモリーVを
1アドレス遡るとピクセルg日で゛あるが、このビクセ
ル9日に対する4つの方向の値も全てa又は1)て゛あ
るので、更に1ステッゾ遡つロイク1=ルリ、のと(−
ろ5来る。ピクセル9□も同様に一41j向が全C偵a
又は1)であるためピクt!ルリ6まで遡る。x、−1
t’l ’jj相対位置記憶メ(す3」−Cアドレスを
遡る場合は、前のj7ドレスに記憶さ↑1ていた内容は
順に消去される。即ち、ここでは、第6図に示’J’(
ls〜06までの移動方向は消去される。
■ Biku (in G9, all directions of m-0, 1, 2, and 3 have the value a or 1). In this case, the relative position 1ff (the direction for each address stored in the storage memory [3) It operates to trace back the data (...-0, 1.2.3) in order.In other words, the relative position memory 3 is filled with each pixel [1 to f9 to QI-, g9]. The orientation data is stored in the order in which it was selected.This is shown in Figure 6 (1).Here, if we go back one address in the relative position storage memory V, we find pixel g day. All the values in the four directions are either a or 1), so we go back one step further and find that Loic 1 = Ruri, and (-
Ro5 is coming. Similarly, pixel 9□ is all C reconnaissance a in the 141j direction.
Or because it is 1) Pict! It goes back to Ruri 6. x, -1
When going back to the t'l 'jj relative position memory me(su3'-C address), the contents stored in the previous j7 address are erased in sequence. That is, here, as shown in FIG. J'(
The movement directions from ls to 06 are deleted.

■ ピクセル96の位置まで戻るとrn−1の方向にあ
るビクセルh1は、まだ塗りつぶされていないので、こ
のピクはルh 、が塗りつぶしの対象とされる。なお、
この場合、相対位置記憶メモリ3には、第6図(11)
に示ザように、g6の移動方向がメモリされていたアド
レスにこのビクセルh 、の移動方向(m・・1)が新
たに格納される。
(2) Returning to the position of pixel 96, the pixel h1 located in the direction rn-1 has not yet been filled in, so this pixel h is targeted for filling. In addition,
In this case, the relative position memory 3 stores the information shown in FIG. 6 (11).
As shown in the figure, the moving direction (m...1) of this pixel h is newly stored at the address where the moving direction of g6 was stored.

■ 以上、同様な動作を繰り返えして第5図に示すよう
にピクセルh 2ヘーh 6までが塗りつぶされる。そ
して、ビクセルh6の次のピクセルの選択はその周囲が
全て(直a又はbであり、前記(ツたと同様な動作によ
り第6図に示した相対位冒記憶メモリ3のアドレスを遡
る。その結果、第5図の矢印の経路に【〕たが−1)て
順に戻りビクセル117のどころ(S]来る。
(2) By repeating the same operations as above, pixels h2 to h6 are filled in as shown in FIG. Then, to select the next pixel of pixel h6, all the surrounding pixels are (directly a or b), and the address of the relative position storage memory 3 shown in FIG. , return in order to the path of the arrow in FIG.

■ 以ト、前述と同様4に動作によりビクし・ル11L
3、b 、 、i 、を経て、その後、出発点のビクし
ル(x 、 y )に戻る。なお、いままでの動作は、
第5図に示り゛如く、−44通過した経路を戻るように
動作し−(いるのC′、ピクセル(×、y)に戻った時
員においては、相対位置記憶メ(す3の中は、全てクリ
アされた状態で塗りつぶし動作が終了する。即ち、相対
位置記憶メLりのj′ドレスが最初に戻ったら全(塗り
つぶしが完了したことを意味す゛る。
■ From then on, as mentioned above, 11L is activated by the operation in step 4.
3, b, , i, and then returns to the starting point, vicicle (x, y). In addition, the operation so far is as follows.
As shown in FIG. The filling operation ends with all of the addresses cleared. In other words, when the j' address of the relative position memory L returns to the initial position, it means that all (filling) is completed.

17図は、今、述べて来た動作の〕11−ぐあり、この
”ノ(−1−の再説明は省略づる。’J 83、第7図
において、11は相対位置記憶メモリのアト1ノス値で
ある。
Figure 17 shows the operation just described, ``11-'', and the re-explanation of ``-1-'' will be omitted. It is a nos value.

以」が本発明に係るノテ法および装置の動作コ2明ぐあ
るが、前述の説明にJ5いで、各ピクセルから次のピク
セルを調査488合に第3図のような順序で行なうと述
べたが、これに限定するわ(〕でなく、その順序は、任
意に変更しても本発明は成立づる。
The operation of the method and device according to the present invention is described in detail below. In the above explanation, J5 states that the investigation is carried out from each pixel to the next pixel in the order shown in Figure 3. However, the present invention is not limited to this (), and the present invention can be realized even if the order is changed arbitrarily.

また、以上で・は、探索方向をJ−下ノr右の4方向ど
して説明したが、これに限定づるものではなく、例えば
1−下左右の4方向の他にその中間の方位をもとって、
8方向としても本発明は成立する。なお、この場合は、
相対位置記憶メ王り3は3ビツトの信号を記憶Cきるも
のCあることが要求される。
Also, in the above, the search direction has been explained as four directions: J - Down, Nor, Right, but it is not limited to this. Take it,
The present invention is also applicable to eight directions. In this case,
The relative position storage system 3 is required to be capable of storing 3-bit signals.

1本発明の効采] 以上述べたように、本発明によればビクはルを塗りつぶ
しく行き、行き止ったら道順を逆にたどれるデータとし
−C1進むピクセル間の相対位置のみを格納ツるように
しているの0、いたずらにメI−りの容量をふやすこと
なく塗りつぶしを実(1することができる。
1. Effects of the present invention] As described above, according to the present invention, the vehicle travels all over the place, and when it comes to a dead end, it uses data that allows it to trace the route in reverse - only the relative position between the pixels it advances C1 is stored. If you set it to 0, you can fill it to 1 without unnecessarily increasing the capacity.

また、簡単なアルゴリス゛ムであるため己れを構成する
ハードウェアは簡単なものと4ることかできる。
Furthermore, since it is a simple algorithm, the hardware that constitutes it can be considered simple.

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

第1図は従来の方払により開領域を塗りつぶづ動作を説
明覆るだめの図、第2図は隣接する4方向のビクセルを
承り図、第3図は1つのビクセルを中心として、これに
隣接する十T;左右の4方向の探索順序を示した図、第
4図は本発明に係る装置の格成例を示した図、第5図は
本発明に係る装置の動作を示した図、第6図は相対位置
記憶メモリの動作を説明づるための図、第7図は装置全
体の)[1−を示した図である。 1・・・ホス(−コンビ]−夕、2・・・塗りつぶし回
路、3・・・相対位置記憶メモリ、4・・・画像メ七り
。 第 1 f7’! 、第 Z 図 772−2 ’tn= r =−−−m=。 ↓ 111=3 茅 4 図 第 、Y 図 茅 6 ρ」 (7) (iil
Figure 1 is a diagram explaining the operation of filling in an open area using conventional direction painting, Figure 2 is a diagram showing how to fill in an open area using the conventional method, Figure 2 is a diagram showing how to fill in an open area in four adjacent directions, and Figure 3 is a diagram showing how to fill in an open area using one pixel as the center. Adjacent 10 T: A diagram showing the search order in the four left and right directions, FIG. 4 is a diagram showing a qualification example of the device according to the present invention, and FIG. 5 is a diagram showing the operation of the device according to the present invention. , FIG. 6 is a diagram for explaining the operation of the relative position storage memory, and FIG. 7 is a diagram showing )[1-] of the entire device. 1... Hoss (-combination) - evening, 2... Filling circuit, 3... Relative position memory, 4... Image menu. 1st f7'!, Z Figure 772-2' tn= r =---m=. ↓ 111=3 茅 4 fig.

Claims (1)

【特許請求の範囲】 〈1) 閉領域内を塗りつぶす方法においC1塗りつぶ
ずべき閉領域を定義する工程と、この閉鎖域内の滅る点
から出発し、これに隣接づる塗りつぶすべきピクセルを
所定の探索方向順序にしたがって選び出り工程と、 この選び出したピクセルへの移動方向を選び出した順に
記憶しておく工程と、 成るピクセルから次の塗りつぶプベきピクセルを選択リ
−る場合に、その隣接り−るピクセルが全r:選択でき
ないとき、前記コニ程で記憶しである移動方向のデータ
を順に遡りながら 塗りつぶすべきピクセルを探索夛る
工程と、 を備えた閉領域の塗りつぶし方法。 (2) 塗りつぶすべき閉領域を記憶する画像メモリと
、 この画像メモリに塗りつぶづべき閉領域を定義するとと
もに、その閉領域内の任意の点のデータを出力するホス
I−コンビコータと、この任意の点から出斤し、これに
隣接する塗りつぶ4べきピクセルを所定の探索り面順序
にしたがって選び出す−塗りつぶし回路と、この選び出
したピクセルへの移動lJ向を選び出した順に記憶して
おく相対位置記憶メモリと、を備え、lyi記塗りつぶ
し回路にJ5い′(、塗りつぶリベきピクセルを選択し
た場合、それに相当づる位置の前記画像メモリのj′ド
レスにデ′−夕を!8き込むと同時に、前記相対位置記
憶メモリのアドレスへも選択順に移e7j向のデータを
書き込み、 次の塗りつぶψべきピクセルが全て選択rきない場合、
前記相対位置記憶メモリで記憶しCある移動方向のデー
タを順に遡りながら塗りつぶ4べきピクセルを探索プる
ようにした開yAjiltの塗りつぶし装置。
[Claims] <1) In the method of filling in the inside of a closed area, C1 defines a closed area to be filled, and starting from a dying point in this closed area, pixels to be filled adjacent to this are defined in a predetermined manner. a step of selecting according to the search direction order; a step of storing the moving direction to the selected pixel in the selected order; and a step of selecting the next filled pixel from the pixel consisting of A method for filling in a closed area, comprising: when all r adjacent pixels cannot be selected, searching for pixels to be filled while sequentially going back through the data in the moving direction stored in the above step. (2) An image memory that stores a closed area to be filled in, a Hos I-combicoater that defines a closed area to be filled in this image memory, and outputs data at any point within the closed area; Start from an arbitrary point and select the adjacent filling pixels according to a predetermined search surface order - a filling circuit and a relative that stores the movement direction to the selected pixel in the selected order. and a position memory memory, and when a pixel to be filled is selected, a data is written into the address j' of the image memory at the corresponding position. At the same time, data in the direction e7j is written to the address of the relative position storage memory in the order of selection, and if all the pixels to be filled next are not selected r,
A filling device for an open AJILT, which searches for a pixel to be filled by 4 while sequentially going back through the data in a certain movement direction stored in the relative position storage memory.
JP58125823A 1983-07-11 1983-07-11 Method and device for painting out of closed area Pending JPS6017569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58125823A JPS6017569A (en) 1983-07-11 1983-07-11 Method and device for painting out of closed area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58125823A JPS6017569A (en) 1983-07-11 1983-07-11 Method and device for painting out of closed area

Publications (1)

Publication Number Publication Date
JPS6017569A true JPS6017569A (en) 1985-01-29

Family

ID=14919818

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58125823A Pending JPS6017569A (en) 1983-07-11 1983-07-11 Method and device for painting out of closed area

Country Status (1)

Country Link
JP (1) JPS6017569A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63502493A (en) * 1986-02-27 1988-09-22 クル−ズ,ジョン,ウィリアム Granule kneading equipment
JP2013039701A (en) * 2011-08-12 2013-02-28 Ricoh Co Ltd Electronic blackboard device, screen displaying method and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63502493A (en) * 1986-02-27 1988-09-22 クル−ズ,ジョン,ウィリアム Granule kneading equipment
JP2013039701A (en) * 2011-08-12 2013-02-28 Ricoh Co Ltd Electronic blackboard device, screen displaying method and program

Similar Documents

Publication Publication Date Title
US5638499A (en) Image composition method and apparatus for developing, storing and reproducing image data using absorption, reflection and transmission properties of images to be combined
US20060176310A1 (en) Method and apparatus for de-indexing geometry
SE458401B (en) DATA DISPLAY SYSTEM INCLUDING A CENTRAL PROCESSING UNIT AND A DISPLAY DEVICE WHEN PICTURES ARE UPDATED SIGNIFICANTLY INDEPENDENT OF THE PERIODS THAT IMAGE BUFFER DEVICES REFRESH THE DISPLAY
CN108966036A (en) Barrage display methods, electronic equipment and computer storage medium
JPH04213175A (en) Dispersion processing apparatus for use in large area rendering
JPS6017569A (en) Method and device for painting out of closed area
EP0536114A1 (en) Graphics rendering systems
JPH0436877A (en) Picture editing processing method
JP4089097B2 (en) Data storage device and data storage method
JPH10509546A (en) Circuit, system and method for improving page access and block transfer in a memory system
JPS58189689A (en) Image display system
CN112233206B (en) Character image generation method, device, equipment and storage medium
JP3450346B2 (en) Different-scale map management device
JPH0833897B2 (en) Image retrieval device
JP2821896B2 (en) Information storage device and information storage method
JPS6019275A (en) Picture retrieving device
JP2536183B2 (en) Image processing method and apparatus
JPS60124785A (en) Picture processing unit
JPS5820992Y2 (en) Kanji document search device
JPS62229475A (en) Picture file system
JPS60108882A (en) Fast editing display
SU362325A1 (en) DEVICE FOR OUTPUT INFORMATION
JPS60136879A (en) Document editing system
JP2561521B2 (en) Spoke register generation circuit
JPH05334357A (en) Page turning-over device for electronic file device