JPH0368428B2 - - Google Patents

Info

Publication number
JPH0368428B2
JPH0368428B2 JP61306979A JP30697986A JPH0368428B2 JP H0368428 B2 JPH0368428 B2 JP H0368428B2 JP 61306979 A JP61306979 A JP 61306979A JP 30697986 A JP30697986 A JP 30697986A JP H0368428 B2 JPH0368428 B2 JP H0368428B2
Authority
JP
Japan
Prior art keywords
polygon
filling
circumscribed rectangle
boundary line
nio
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.)
Expired - Lifetime
Application number
JP61306979A
Other languages
Japanese (ja)
Other versions
JPS63158675A (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 JP61306979A priority Critical patent/JPS63158675A/en
Publication of JPS63158675A publication Critical patent/JPS63158675A/en
Publication of JPH0368428B2 publication Critical patent/JPH0368428B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は、ホスト計算機から与えられた多角形
等のデイジタル図形データについて、その図形の
内部に指定された色で塗り潰し処理を行なうデイ
ジタル図形の塗り潰し方法に関するものである。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a digital figure data processing method that fills the inside of the figure with a designated color for digital figure data such as a polygon given from a host computer. This is related to the filling method.

<従来の技術> デイジタル図形を処理する種々の分野におい
て、第6図に示すような凹多角形(a)、穴の開いた
多角形(b)を含めたいわゆる一般的な多角形の内部
を指定した色で高速に塗り潰す処理が必要となる
ことが多い。
<Prior art> In various fields of processing digital figures, the interior of so-called general polygons including concave polygons (a) and polygons with holes (b) as shown in Fig. 6 is used. It is often necessary to quickly fill in a specified color.

CAD、CG等の分野において、一般に多角形の
内部を塗り潰す手法として、例えば “Fundamentals of Interactive Computer
Graphics”J.D.Foley/A.Van Dam Addison−
Wesley、1982 等の文献に記載されている領域塗りアルゴリズム
による方法がしばしば利用される。
In the fields of CAD, CG, etc., the method of filling the inside of a polygon is generally used, for example, “Fundamentals of Interactive Computer
Graphics”JDFoley/A.Van Dam Addison−
Area-filling algorithms, such as those described in Wesley, 1982, are often used.

この領域塗りアルゴリズムは、第6図a,bに
示すような境界線図形(閉曲線多角形)を画像メ
モリに取り込み、第6図c,dのように閉曲線の
内部にある1点を種点P1,P2として与え、この
種点P1,P2に隣接する画素を順次塗り潰す方法
である。
This area painting algorithm imports boundary line figures (closed curve polygons) as shown in Fig. 6 a and b into the image memory, and sets one point inside the closed curve as a seed point P as shown in Fig. 6 c and d. 1 and P2 , and pixels adjacent to the seed points P1 and P2 are sequentially filled in.

この方法は、そのアルゴリズム自体は単純でか
つ高速処理向きであるが、多角形の内を塗り潰す
ための種点を、塗り潰し処理を行なう毎にライト
ペン、マウス等のポインテイング装置で指定して
与えなければならない。。従つて、この塗りアル
ゴリズムによる方法では種点を指定する作業が必
要となり、一般の多角形の内部を高速に塗り潰す
ことができなかつた。
In this method, the algorithm itself is simple and suitable for high-speed processing, but the seed point for filling in the inside of the polygon is specified using a pointing device such as a light pen or mouse each time the filling process is performed. must give. . Therefore, the method using this filling algorithm requires the work of specifying seed points, and it is not possible to quickly fill the interior of a general polygon.

<発明が解決しようとする問題点> 本発明が解決しようとする問題は、塗り潰しを
行なう多角形の種点を自動的に生成しようとする
ことであり、一般の多角形の内部を高速に塗り潰
すことができる方法を実現することを目的とす
る。
<Problems to be Solved by the Invention> The problems to be solved by the present invention are to automatically generate seed points for polygons to be filled, and to rapidly fill the interior of general polygons. The purpose is to realize a method that can crush them.

<問題点を解決するための手段> 上記した問題を解決した本発明は、ホスト計算
機から与えられる多角形のデイジタル図形データ
についてその内部を指定された色で塗り潰すデイ
ジタル図形の塗り潰し方法において、 (イ) 与えられた多角形のデータの頂点座標よりそ
の第1の外接長方形を求めて、ワーク・メモリ
上に白画素集合として定義する手順と、 (ロ) 前記ワーク・メモリ上に前記多角形の頂点列
を順次4連結線分で結ぶことにより多角形境界
線を黒画素領域として形成する手順と、 (ハ) 前記ワーク・メモリ上において前記第1の外
接長方形に対応する領域をラスタ走査し黒画素
から白画素に変化する点を求め、この変化点を
開始点として(ロ)で求めた多角形境界線に隣接す
る白画素領域の境界を追跡しこの白画素領域の
境界線について第2の外接長方形を求める手順
と、 (ニ) この第2の外接長方形と前記第1の外接長方
形の位置関係を比較する手順と、 (ホ) 前記第2の外接長方形が前記第1の外接長方
形に含まれない場合は(ハ)からの手順を繰り返
し、前記第2の外接長方形が前記第1の外接長
方形に含まれる場合は前記変化点を種点として
8連結による領域塗に潰しアルゴリズムにより
前記ワーク・メモリ内部の白画素領域の境界線
内部を黒画素に変化させる手順と、 (ヘ) 前記ワーク・メモリに定義された第1の外接
長方形についてラスタ走査を行ない全ての黒画
素に対応する座標位置について予め指定された
色情報でカラー画像メモリ部に書き込む手順
と、 を有するデイジタル図形の塗り潰し方法である。
<Means for Solving the Problems> The present invention solves the above-mentioned problems in a digital figure filling method for filling the inside of polygonal digital figure data given from a host computer with a specified color. (b) A procedure for determining the first circumscribed rectangle from the vertex coordinates of the given polygon data and defining it as a white pixel set on the work memory; (c) raster scanning an area corresponding to the first circumscribed rectangle on the work memory to form a black pixel area by sequentially connecting a series of vertices with four connected line segments; Find the point where a pixel changes to a white pixel, use this change point as a starting point, trace the boundary of the white pixel area adjacent to the polygonal boundary line found in (b), and calculate the second boundary line of this white pixel area. (d) a step of comparing the positional relationship between the second circumscribed rectangle and the first circumscribed rectangle; and (e) a step of determining whether the second circumscribed rectangle is included in the first circumscribed rectangle. If not, repeat the procedure from (c), and if the second circumscribed rectangle is included in the first circumscribed rectangle, the workpiece is A procedure for changing the inside of the boundary line of a white pixel area inside the memory into black pixels, and (f) Raster scanning of the first circumscribed rectangle defined in the work memory and coordinate positions corresponding to all black pixels. A method for filling in a digital figure, comprising: a procedure for writing prespecified color information into a color image memory section; and a method for filling in a digital figure.

<実施例> 第1図は本発明のデイジタル画像の塗り潰し方
法を実現するのに好適な装置のブロツク図であ
る。
<Embodiment> FIG. 1 is a block diagram of an apparatus suitable for implementing the digital image filling method of the present invention.

この図において、1はホスト計算機インターフ
エイス回路、2はホスト計算機インターフエイス
回路1から表示する図形に関するデータ(例えば
コマンド、座標データ、色情報等)が書き込まれ
るセグメント・バツフア、3は全体を制御するプ
ロセツサ部30を含む図形発生制御部、4は2次
元図形を格納する複数のメモリ・プレーン(複数
ビツト/1画素)よりなるカラー画像メモリ部、
5はカラー画像メモリ部4の内容を読み出して
RGB等のそれぞれのビデオ信号を生成するビデ
オ・インターフエイス回路、6は多色表示可能な
CRTモニタである。
In this figure, 1 is a host computer interface circuit, 2 is a segment buffer into which data related to the figure to be displayed (for example, commands, coordinate data, color information, etc.) is written from the host computer interface circuit 1, and 3 is for overall control. A graphic generation control unit including a processor unit 30 , a color image memory unit 4 consisting of a plurality of memory planes (multiple bits/pixel) for storing two-dimensional figures;
5 reads out the contents of the color image memory section 4;
Video interface circuit that generates each video signal such as RGB, 6 can display multicolor
It is a CRT monitor.

更に、図形発生制御部3において、図形発生の
中核をなし制御及び多角形内部の塗り潰しアルゴ
リズムを実行するプロセツサ31、制御及びアル
ゴリズムの実行手順を記述したプログラムを記憶
するROM32、多角形内部の塗り潰し処理に必要
な情報を一時的に記憶するRAM33とを有するプ
ロセツサ部30が設置されると同時に、多角形を
構成する境界画素を記憶し1ビツト/1画素の容
量を持つワーク・メモリ34、プロセツサ部30
ら与えられたワーク・メモリ34上の一点を開始
点として境界線追跡アルゴリズムを実行すること
により閉曲線の抽出処理及びその閉曲線の外接長
方形の算出処理を高速に行なう境界線追跡処理部
5、プロセツサ30から与えられたワーク・メモ
リ34上の一点を種点として領域塗りアルゴリズ
ムを実行する塗り潰し処理部36とが設置される。
Furthermore, in the figure generation control unit 3, there is a processor 3 1 which is the core of figure generation and executes the control and filling algorithm inside the polygon, a ROM 3 2 which stores a program describing the control and algorithm execution procedure, and a ROM 3 2 which executes the control and filling algorithm inside the polygon. At the same time, a processor section 30 having a RAM 33 for temporarily storing information necessary for the filling process is installed, and at the same time a work memory having a capacity of 1 bit/1 pixel for storing boundary pixels forming a polygon is installed. 3 4 , a boundary that performs the process of extracting a closed curve and the process of calculating the circumscribed rectangle of the closed curve at high speed by executing a boundary line tracing algorithm starting from a point on the work memory 3 4 given by the processor unit 3 0. A line tracing processing section 3 5 and a filling processing section 3 6 that executes an area filling algorithm using a point on the work memory 3 4 given from the processor 3 0 as a seed point are installed.

尚、セグメント・バツフア2、カラー画像メモ
リ部4に対してのアクセスはプロセツサ31を介
して行なわれる。
Incidentally, access to the segment buffer 2 and color image memory section 4 is performed via the processor 31 .

さて、このように構成された装置を用いた本発
明の方法の手順を第1図のブロツク図と第2図の
フローチヤートを用いて説明する。
Now, the procedure of the method of the present invention using the apparatus constructed as described above will be explained with reference to the block diagram of FIG. 1 and the flowchart of FIG. 2.

はじめに、ホスト計算機はホスト計算機インタ
ーフエイス回路1を介してセグメント・バツフア
2にデイジタル図形データ(多角形)の頂点座標
情報、色指定情報、コマンドを書き込み、図形発
生制御部3に多角形の塗り潰し処理を開始させ
る。
First, the host computer writes vertex coordinate information, color designation information, and commands of digital figure data (polygon) to the segment buffer 2 via the host computer interface circuit 1, and fills the polygon to the figure generation control unit 3. start.

ここで、対象とするのは、例えば第3図に示す
ような穴の開いた多角形である。
Here, the target is, for example, a polygon with a hole as shown in FIG.

(a) プロセツサ31はセグメント・バツフア2よ
り多角形の頂点座標Pi(Xpi、Ypi)(i=1〜
n)、Qi(Xgi、Ygi)(i=1〜m)を読み出し
てRAM33に書き込み、これらの値から頂点
Pi、QiのX、Y座標の最大値(Xnax、Ynax)、
最小値(Xnio、Ynio)を算出することにより多
角形の外接長方形BLOUTを求めてRAM33
格納する。頂点Piが多角形の外側頂点であるこ
とが既知な場合は、この頂点Piについてのみそ
のX、Y座標を算出すれば良い。
(a) The processor 3 1 uses the segment buffer 2 to obtain the polygon's vertex coordinates P i (X pi , Y pi ) (i=1 to
n), Q i (X gi , Y gi ) (i = 1 to m) and write them to RAM 3 3 , and from these values calculate the vertex.
Maximum values of X and Y coordinates of P i and Q i (X nax , Y nax ),
By calculating the minimum values (X nio , Y nio ), the circumscribed rectangle BLOUT of the polygon is obtained and stored in the RAM 3 3 . If it is known that the vertex Pi is an outer vertex of the polygon, it is only necessary to calculate the X and Y coordinates of this vertex Pi.

(b) プロセツサ31は、ワーク・メモリ34上にこ
の外接長方形BLOUTの大きさに対応する領域
ROUT(Xnio≦X≦Xnax、Ynio≦Y≦Ynax)定
義し、この領域ROUTに白画素(画素値
“0”)を書き込み、初期化する。
(b) The processor 31 stores an area on the work memory 34 corresponding to the size of this circumscribed rectangle BLOUT.
ROUT (X nio ≦X≦X nax , Y nio ≦Y≦Y nax ) is defined, and a white pixel (pixel value "0") is written in this area ROUT to initialize it.

(c) プロセツサ31は、ワーク・メモリ34上の領
域ROUTにおいて頂点列Pi、Qiを順次4連結
(隣接画素の位置関係が水平、垂直の4方向で
定義される)線分で結ぶことにより領域
ROUT内に多角形の外側境界線BCOUT及び内
側境界線BCINを黒画素(画素値“1”)で書
き込む。
(c) The processor 3 1 sequentially connects the vertex rows P i and Q i in the area ROUT on the work memory 3 4 with four line segments (the positional relationship of adjacent pixels is defined in four directions, horizontal and vertical). area by tying
Write the outer boundary line BCOUT and inner boundary line BCIN of the polygon in ROUT using black pixels (pixel value "1").

(d) プロセツサ31は、ワーク・メモリ34上の外
接長方形領域ROUT(Xnio≦X≦Xnax、Ynio
Y≦Ynax)を順次ラスタ走査し、黒画素(画
素値“1”)から白画素(画素値“0”)に変化
する点Ps(Xs、Ys)を求め、RAM33に格納す
る。
(d) The processor 31 has a circumscribed rectangular area ROUT on the work memory 34 (X nio ≦X≦X nax , Y nio
Sequentially raster scan Y≦Y nax ) to find the point P s (X s , Y s ) where a black pixel (pixel value “1”) changes to a white pixel (pixel value “0”) and store it in RAM33. do.

(e) プロセツサ31は、ステツプ(d)で求めた変化
点Ps(Xs、Ys)を境界線追跡処理部35に与え、
実行起動にかける。これにより、境界線追跡処
理部35は変化点Psに開始点として多角形の外
側境界線BCOUTに隣接する白画素領域の境界
線WCOUTを追跡し、その外接長方形
WLOUTのX、Y座標の上下限値WXnio
WXnax、WYnio、WYnaxを求める。
(e) The processor 3 1 provides the change point P s (X s , Y s ) obtained in step (d) to the boundary line tracing processing unit 3 5 .
Start execution. As a result, the boundary tracing processing unit 35 traces the boundary line WCOUT of the white pixel area adjacent to the outer boundary line BCOUT of the polygon as a starting point at the change point Ps , and traces the boundary line WCOUT of the white pixel area adjacent to the outer boundary line BCOUT of the polygon,
Upper and lower limit values WX nio of X and Y coordinates of WLOUT,
Find WX nax , WY nio , WY nax .

プロセツサ31は、境界線追跡処理部35より
白画素境界線WCOUTの外接長方形WLOUT
の上下限値座標WXnio、WXnax、WYnio
WYnaxをRAM33より読み出し、また先に求
めた多角形の外接長方形BLOUTの上下限座標
値Xnio、Xnax、Ynio、YnaxをRAM33より読み
出してそれぞれの値の大小比較を行なうことに
より、外接長方形WLOUTと外接長方形
BLOUTの位置関係を比較する。
The processor 3 1 receives the circumscribed rectangle WLOUT of the white pixel boundary line WCOUT from the boundary line tracing processing unit 3 5 .
Upper and lower limit value coordinates WX nio , WX nax , WY nio ,
Read WY nax from RAM 3 3 , read the upper and lower limit coordinate values X nio , By, the bounding rectangle WLOUT and the bounding rectangle
Compare the positional relationship of BLOUT.

条 件 Xnio<WXnio<Xnaxかつ Xnio<WXnax<Xnaxかつ Ynio<WYnio<Ynaxかつ Ynio<WYnax<Ynax が成り立つかどうか、即ち、白画素境界線
WCOUTの外接長方形WLOUTが多角形の外
接長方形BLOUTに含まれるかどうかを調べ
る。
Conditions X nio < WX nio < X nax and X nio < WX nax <
Check whether the circumscribed rectangle WLOUT of WCOUT is included in the circumscribed rectangle BLOUT of the polygon.

条件が成り立つ、即ち外接長方形WLOUT
が外接長方形BLOUTに含まれる場合は次のス
テツプ(f)に移行する。
The condition holds, i.e. the circumscribed rectangle WLOUT
is included in the circumscribed rectangle BLOUT, move to the next step (f).

条件が成り立たない、即ち外接長方形
WLOUTが外接長方形BLOUTに含まれない場
合は再度ステツプ(d)からの処理を繰り返す。
Condition does not hold, i.e. circumscribed rectangle
If WLOUT is not included in the circumscribed rectangle BLOUT, the process from step (d) is repeated again.

(f) プロセツサ31は、白画素変化点Psの座標
(Xs、Ys)をRAM33より読み出し、この値を
塗り潰し処理36に与え、実行起動をかける。
これにより、塗り潰し処理部36は変化点Ps
種点として、8連結(隣接画素の位置関係が水
平、垂直、対角の8方向で定義される)による
領域塗りアルゴリズムを実行し、ワーク・メモ
リ34上の多角形内部の白画素を黒画素に変化
させる。
(f) The processor 3 1 reads the coordinates (X s , Y s ) of the white pixel change point P s from the RAM 3 3 , gives this value to the filling process 3 6 , and starts execution.
As a result, the filling processing unit 36 uses the change point Ps as a seed point to execute an area filling algorithm using 8 connections (the positional relationship of adjacent pixels is defined in eight directions: horizontal, vertical, and diagonal), and・Change the white pixels inside the polygon in memory 3 to 4 to black pixels.

(g) プロセツサ31はセグメント・バツフア2よ
り色指定情報を読み出し、更に多角形の外接長
方形BLOUTの大きさに対応するワーク・メモ
リ34上の領域ROUT(Xnio≦X≦Xnax、Ynio
Y≦Ynax)を再度ラスタ走査し、全ての黒画
素に対応するカラー画像メモリ部4内の座標位
置にその色指定情報を書き込む。
(g) Processor 31 reads out color specification information from segment buffer 2 , and further calculates the area ROUT (X nio ≦X≦X nax , Y nio
Raster scanning is performed again (Y≦Y nax ), and the color designation information is written in the coordinate positions in the color image memory unit 4 corresponding to all black pixels.

以上のようなアルゴリズムによつて塗り潰しを
行なう開始点としての種点Psを自動的に求めるこ
とができ、与えられたデイジタル画像データ(多
角形)内部の塗り潰し処理を高速に行なうことが
できる。
By using the algorithm described above, it is possible to automatically determine the seed point Ps as the starting point for filling, and it is possible to perform the filling process inside the given digital image data (polygon) at high speed.

次に、第3図に表わした多角形を対象として、
本発明の方法を実際に適用した際の概念を第4図
を用いて具体的に説明する。
Next, for the polygon shown in Figure 3,
The concept when the method of the present invention is actually applied will be specifically explained using FIG. 4.

第4図(a)〜(g)に示した図形は、上述した第2図
のフローチヤート(a)〜(g)のステツプにそれぞれ対
応している。
The figures shown in FIGS. 4(a) to 4(g) correspond to the steps in the flowchart (a) to (g) of FIG. 2 described above, respectively.

(a) 第3図に示したような多角形について、その
頂点座標Pi(i=1〜n)、Qi(i=1〜m)か
らその外接長方形BLOUTを求める。
(a) For the polygon shown in FIG. 3, find its circumscribed rectangle BLOUT from its vertex coordinates P i (i=1 to n) and Q i (i=1 to m).

(b) この外接長方形BLOUTをワーク・メモリ3
上に領域ROUTとして定義し、これを白画素
の集合として初期化する。
(b) Save this circumscribed rectangle BLOUT to work memory 3
4 as a region ROUT, and initialize this as a set of white pixels.

(c) ワーク・メモリ34上に領域ROUT内に多角
形の外側境界線BCOUTと内側境界線BCINを
4連結線分で結び、黒画素として書き込む。
(c) Connect the outer boundary line BCOUT and inner boundary line BCIN of the polygon with four connected line segments in the area ROUT on work memory 34 , and write them as black pixels.

(d) ワーク・メモリ34上で、多角形の外接長方
形BLOUTについてラスタ走査し、黒画素から
白画素への変化点を求める。
(d) Raster scan the circumscribed rectangle BLOUT of the polygon on the work memory 34 to find the point of change from a black pixel to a white pixel.

(e) 黒画素から白画素への変化点Psが検出された
ならば、この点Psを開始点として多角形の外側
境界線BCOUTに隣接する白画素領域の境界
WCOUTを追跡し、その外接長方形WLOUT
を求める。
(e) If a change point P s from a black pixel to a white pixel is detected, start from this point P s and start from the boundary of the white pixel area adjacent to the outer boundary line BCOUT of the polygon.
Track WCOUT and its bounding rectangle WLOUT
seek.

(e)−(1) 外接長方形WLOUTが外接長方形
BLOUTに含まれていない場合を表わす。
(e)−(1) The circumscribed rectangle WLOUT is a circumscribed rectangle
Indicates when it is not included in BLOUT.

(e)−(2) ここで、外接長方形WLOUTが外接長
方形BLOUTに含まれている場合は、この白
画素変化点Psを塗り潰し種点とする。
(e)-(2) Here, if the circumscribed rectangle WLOUT is included in the circumscribed rectangle BLOUT, this white pixel change point P s is set as the filling seed point.

(f)−(1) 変化点Psを種点としてこの多角形内部の
白画素を(f)−(2)のような黒画素に変化させ
る。
(f)-(1) Using the change point Ps as a seed point, the white pixels inside this polygon are changed to black pixels as shown in (f)-(2).

(g)−(1) 再び、この領域ROUTにラスタ走査を
行ない、黒画素に対応する点について、 (g)−(2) のようなカラー画像メモリ部4に予め指
定された色情報に従つて書き込む。
(g)-(1) This area ROUT is raster-scanned again, and points corresponding to black pixels are scanned according to the color information specified in advance in the color image memory section 4 as shown in (g)-(2). Write it down.

更に、カラー画像メモリ部4に格納された画像
情報に従つて、ビデオ・インターフエイス回路5
を介してCRTモニタ6に塗り潰し表示が行なわ
れる。
Further, according to the image information stored in the color image memory unit 4, the video interface circuit 5
A filled-in display is performed on the CRT monitor 6 via.

第5図はワーク・メモリ34上のデイジタル図
形(多角形)の実際の状態を表わした図である。
FIG. 5 is a diagram showing the actual state of digital figures (polygons) on the work memory 34 .

この図において、斜線で示した点は、多角形の
外側境界線BCOUT及び内側境界線BCINにおけ
る黒画素を表わす。ここでは、黒画素から白画素
へ変化した点Psを種点として8連結による領域塗
りアルゴリズムを実行する。これにより、多角形
の内部の白画素について完全に塗り潰し動作を行
なうことができる。
In this figure, the hatched points represent black pixels on the outer boundary line BCOUT and inner boundary line BCIN of the polygon. Here, an area painting algorithm using 8-connection is executed using the point P s where a black pixel changes to a white pixel as a seed point. This makes it possible to completely fill out the white pixels inside the polygon.

<発明の効果> 本発明のデイジタル画像の塗り潰し方法によれ
ば、多角形を構成する境界線画素を記憶するため
の1ビツト/1画素の容量を持つワーク・メモリ
を用いて多角形の内部を塗り潰すための種点を自
動生成するため、従来の領域塗りアルゴリズムを
利用して多角形の内部を高速に塗り潰すことがで
きる。
<Effects of the Invention> According to the digital image filling method of the present invention, the interior of a polygon can be filled in using a work memory having a capacity of 1 bit/1 pixel for storing boundary line pixels forming a polygon. Since seed points for filling are automatically generated, the interior of polygons can be filled at high speed using conventional area filling algorithms.

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

第1図は本発明のデイジタル画像の塗り潰し方
法を実行するために好適なデイジタル画像処理装
置の構成ブロツク図、第2図は本発明のデイジタ
ル画像の塗り潰し方法を表わすフローチヤート、
第3図は本発明の方法の対象となる多角形(デイ
ジタル図形)を表わす図、第4図a〜g−2は本
発明の方法を利用した際の概念を表わす図、第5
図は本発明の方法を実際に用いた際のデイジタル
画像データを表わす図、第6図a〜dは従来の多
角形塗り潰し方法を説明するための図である。 1……ホスト計算機インターフエイス回路、2
……セグメント・バツフア、3……図形発生制御
部、30……プロセツサ部、31……プロセツサ、
2……ROM、33……RAM、34……ワーク・
メモリ、35……境界線追跡処理部、36……塗り
潰し処理部、4……カラー画像メモリ部、5……
ビデオ・インターフエイス回路、6……CRTモ
ニタ。
FIG. 1 is a block diagram of a digital image processing device suitable for carrying out the digital image filling method of the present invention, and FIG. 2 is a flowchart showing the digital image filling method of the present invention.
FIG. 3 is a diagram showing a polygon (digital figure) that is the object of the method of the present invention, FIGS. 4 a to g-2 are diagrams representing the concept when using the method of the present invention, and FIG.
The figure shows digital image data when the method of the present invention is actually used, and FIGS. 6a to 6d are diagrams for explaining a conventional polygon filling method. 1...Host computer interface circuit, 2
...Segment buffer, 3...Graphic generation control section, 30 ...Processor section, 31 ...Processor,
3 2 ...ROM, 3 3 ...RAM, 3 4 ...Work
Memory, 3 5 ... Border tracing processing section, 3 6 ... Filling processing section, 4 ... Color image memory section, 5 ......
Video interface circuit, 6...CRT monitor.

【特許請求の範囲】[Claims]

1 命令やデータを格納するメモリと、 命令を実行する複数個のフアンクシヨナルユニ
ツトと、 実行可能な命令を指示するノードドライビング
レジスタと、 上記各フアンクシヨナルユニツトにノイマン式
処理か並列処理かを指示するモードレジスタと、 並列処理中、あるフアンクシヨナルユニツトが
ノードドライビングレジスタの1ワードによつて
指示されている実行可能命令をメモリから取り出
したとき、その命令がノイマン式処理の開始を意
味するものであれば、モードレジスタにノイマン
式処理を意味する“N”を書き込むとともに、上
記1ワードを一時的にあるフアンクシヨナルユニ
ツト専用に割り付け、該ワードをノイマン式コン
ピユータのプログラムカウンタと同じ働きをする
ように制御する手段と、 ノイマン式処理中、あるフアンクシヨナルユニ
ツトが該ワードによつて指示されている実行可能
命令をメモリから取り出したとき、その命令が並
列処理への復起を意味するものであれば、モード
レジスタに並列処理を意味する“P”を書き込む
手段と、を有し、 各フアンクシヨナルユニツトは、処理実行中、
1. A memory that stores instructions and data, multiple functional units that execute instructions, a node driving register that indicates executable instructions, and a function that specifies whether each of the above functional units performs Neumann processing or parallel processing. During parallel processing, when a functional unit retrieves from memory an executable instruction pointed to by a word in a node driving register, that instruction signifies the start of Neumann processing. If so, write "N" to the mode register to indicate von Neumann processing, temporarily allocate the above word to a certain functional unit, and use the word to function in the same way as the program counter of a Neumann computer. means for controlling such that, during Neumann processing, when a certain functional unit retrieves from memory an executable instruction indicated by the word, that instruction signifies a return to parallel processing; If it is, it has means for writing "P", which means parallel processing, into the mode register, and each functional unit has

Claims (1)

長方形についてラスタ走査を行ない全ての黒画
素に対応する座標位置について予め指定された
色情報でカラー画像メモリ部に書き込む手順
と、 を有するデイジタル図形の塗り潰し方法。
A method for filling a digital figure, comprising: performing raster scanning on a rectangle and writing color information specified in advance for coordinate positions corresponding to all black pixels into a color image memory unit;
JP61306979A 1986-12-23 1986-12-23 Method for painting out digital graphic Granted JPS63158675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61306979A JPS63158675A (en) 1986-12-23 1986-12-23 Method for painting out digital graphic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61306979A JPS63158675A (en) 1986-12-23 1986-12-23 Method for painting out digital graphic

Publications (2)

Publication Number Publication Date
JPS63158675A JPS63158675A (en) 1988-07-01
JPH0368428B2 true JPH0368428B2 (en) 1991-10-28

Family

ID=17963560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61306979A Granted JPS63158675A (en) 1986-12-23 1986-12-23 Method for painting out digital graphic

Country Status (1)

Country Link
JP (1) JPS63158675A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3054156B2 (en) * 1989-09-27 2000-06-19 キヤノン株式会社 Character processing apparatus and method, color recording apparatus

Also Published As

Publication number Publication date
JPS63158675A (en) 1988-07-01

Similar Documents

Publication Publication Date Title
US4609917A (en) Three-dimensional display system
US4730261A (en) Solids modelling generator
US7119809B1 (en) Parallel architecture for graphics primitive decomposition
KR910009101B1 (en) Image Synthesis Device
US4475104A (en) Three-dimensional display system
JP3030206B2 (en) Method and apparatus for clipping a graphic polygon to a clipping area
US5877769A (en) Image processing apparatus and method
JPS62256092A (en) Computer graphic apparatus and method for painting complicated polygon
JPH0154752B2 (en)
EP1031946B1 (en) Recording medium,Image processing method and unit with integrated shaping model data
CA1312393C (en) Method of tiling a figure in graphics rendering system
US4967376A (en) Method for displaying characters and/or figures in a computer graphics and apparatus thereof
JP3547250B2 (en) Drawing method
CA1200025A (en) Graphic and textual image generator for a raster scan display
CA1312683C (en) Method of drawing in graphics rendering system
JPS634380A (en) Computer graphic processor
JPH0368428B2 (en)
JPH0767136B2 (en) Image processing device
JP3872056B2 (en) Drawing method
JPH07120427B2 (en) Graphic processing system
JPH0696231A (en) Method and device for graphic display
JPH0822548A (en) Graphic processing method and apparatus
JP2634905B2 (en) How to paint shapes
JPH0752470B2 (en) 3D figure filling display device
JP3553249B2 (en) Image generating apparatus and image generating method