JPS62200475A - Closed area coloring system for graphic - Google Patents

Closed area coloring system for graphic

Info

Publication number
JPS62200475A
JPS62200475A JP4340886A JP4340886A JPS62200475A JP S62200475 A JPS62200475 A JP S62200475A JP 4340886 A JP4340886 A JP 4340886A JP 4340886 A JP4340886 A JP 4340886A JP S62200475 A JPS62200475 A JP S62200475A
Authority
JP
Japan
Prior art keywords
area
colored
graphic
memory
contour
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
JP4340886A
Other languages
Japanese (ja)
Inventor
Takeshi Takahashi
壮 高橋
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4340886A priority Critical patent/JPS62200475A/en
Publication of JPS62200475A publication Critical patent/JPS62200475A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To decrease the number of times of executing an access to an image memory of a large capacity, and to execute a coloring processing at a high speed by generating a contour graphic of a closed area to be colored of a graphic on an image memory, by a contour graphic generating circuit, and reading out a part between two points colored by a horizontal scanning line, to a work memory, by a variation point detecting circuit. CONSTITUTION:A contour graphic to be colored of a graphic of an image memory 1 is drawn by a digital differential analyzer, and with regard to an area of the same size, which has divided the image memory 1, for instance, a square area, one area thereof is transferred to a work memory 5. The work memory 5 colors two points which have been designated by a horizontal direction (X direction) scanning line, namely, a part between variation points, moves successively in the vertical direction (Y direction) along the scanning line, and colors its area. The contour graphic of the image memory is brought to a coloring processing at every work memory 5, and by moving the processing area of the work memory 5, the processing extends over the area in which the contour graphic exists or all image memories, and the inside of the contour line, namely the closed area graphic is colored, and painted out.

Description

【発明の詳細な説明】 〔概要〕 図形の閉領域着色方式であって、画像メモリに描かれた
閉曲線で囲まれた領域(以下、閉領域と称する)をもつ
図形が描かれた画像メモリの所定領域毎にワークメモリ
に読み出し、変化点間の走査線を着色することによって
、図形の閉領域の着色を高速に行う。
[Detailed Description of the Invention] [Summary] A closed area coloring method for figures, which is a method for coloring an image memory in which a figure having an area surrounded by a closed curve (hereinafter referred to as a closed area) is drawn in the image memory. By reading each predetermined region into a work memory and coloring the scanning lines between changing points, closed regions of a figure can be colored at high speed.

〔産業上の利用分野〕[Industrial application field]

本発明は画像メモリ上の図形の閉領域を着色する画像処
理方式に関するものである。
The present invention relates to an image processing method for coloring a closed area of a figure on an image memory.

表示画像に図形を描画し、その色付けする場合は閉曲線
で囲まれた輪郭線内を所定の色に塗り潰す。
When drawing a figure on a display image and coloring it, the inside of the outline surrounded by the closed curve is filled with a predetermined color.

あるいは、表示画像の輪郭線内の背景を消去するために
、その領域を所定の色で塗り潰すことが行われる。
Alternatively, in order to erase the background within the outline of the displayed image, that area is filled in with a predetermined color.

着色画像を高速に描画するためには、画像処理装置の図
形の着色処理が迅速に行われなければならず、簡易な回
路方式で高速に着色処理をする方式が要望されている。
In order to draw a colored image at high speed, the coloring process of figures in an image processing device must be performed quickly, and there is a need for a method that can perform the coloring process at high speed using a simple circuit system.

〔従来の技術〕[Conventional technology]

従来の方式では、(1)閉領域を設定するための輪郭図
、形を書く時に、同時に輪郭図形のそれぞれ左辺と右辺
の曲線の座標データをバッファメモリに書き込み、着色
時にはこのバッファメモリから左辺と右辺曲線の座標を
求めてその間の走査線を着色し、この操作を所要の走査
線について行って閉領域の着色を行う処理方式(第5(
a)図)、あるいは、(2)画像メモリ上に輪郭図形を
描き、次にこの画像メモリ上の輪郭図形から着色する画
点はその輪郭線の内か外かによってその領域の画点を読
み取って着色する処理方式(第5(b)図)がある。
In the conventional method, (1) when drawing the contour diagram and shape for setting a closed area, the coordinate data of the curves on the left and right sides of the contour figure are written into a buffer memory at the same time, and when coloring, the left side and the curve are written from this buffer memory. Processing method (fifth (5)
a) Figure), or (2) Draw an outline figure on the image memory, and then read the pixel points in that area depending on whether the pixel to be colored is inside or outside the outline line from the outline figure on this image memory. There is a processing method (Fig. 5(b)) in which the image is colored by

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

この従来の方式では前者(1)の場合、閉領域の輪郭図
形を描く時に輪郭線の曲線の左辺と右辺を認識すること
が必要である。
In the former case (1), in this conventional method, it is necessary to recognize the left side and right side of the curved line of the contour line when drawing the contour figure of the closed area.

また、後者(2)の場合、すでに背景が輪郭線と同じ色
で書き込んであると、輪郭線と背景との区別がつかない
ため、輪郭図形に沿った塗り潰しができなくなる。
In the latter case (2), if the background has already been drawn in the same color as the outline, the outline and the background cannot be distinguished, making it impossible to fill in along the outline figure.

〔問題点を解決するための手段〕[Means for solving problems]

第1図のように、本発明は画像メモリ1に格納された図
形の所望する輪郭を生成する輪郭図形生成回路2、その
輪郭図形から走査線の着色変化点を検出する変化点検出
回路4、所定領域をもつワークメモリ5、読み出したワ
ークメモリ5の周辺域に変化点を設定する領域外変化点
検出回路6、走査線を着色する着色回路3とによって構
成される。
As shown in FIG. 1, the present invention comprises a contour figure generation circuit 2 that generates a desired contour of a figure stored in an image memory 1, a change point detection circuit 4 that detects a color change point of a scanning line from the contour figure, It is composed of a work memory 5 having a predetermined area, an out-of-area change point detection circuit 6 that sets a change point in the peripheral area of the read work memory 5, and a coloring circuit 3 that colors the scanning line.

〔作用〕[Effect]

画像メモリ1上の図形の着色すべき閉領域の輪郭図形を
輪郭図形生成回路2によって生成し、変化点検出回路4
によって横方向走査線が着色する2点間がワークメモリ
5で読み出される。
A contour figure of a closed region to be colored in the figure on the image memory 1 is generated by the contour figure generation circuit 2, and a change point detection circuit 4
The area between two colored horizontal scanning lines is read out by the work memory 5.

領域外変化点検出回路6によってワークメモリ5に読み
出されて処理される領域に隣接する周辺域に変化点が検
出される。
A change point is detected in a peripheral area adjacent to the area read out to the work memory 5 and processed by the out-of-area change point detection circuit 6.

ワークメモリ5で変化点が設定された処理領域は着色回
路3によって、走査線が変化点を通過する度に着色と非
着色を繰り返し、輪郭線内の着色が行われる。
The coloring circuit 3 repeats coloring and non-coloring of the processing area in which the change point is set in the work memory 5 each time the scanning line passes through the change point, thereby coloring the inside of the outline.

着色処理が行われた領域は画像メモリ1に戻され、順次
画像メモリ1がその所定領域毎に処理されて全画像メモ
リが処理され、その上に描かれた閉領域図形の着色がな
される。
The area subjected to the coloring process is returned to the image memory 1, and the image memory 1 is sequentially processed for each predetermined area, the entire image memory is processed, and the closed area figure drawn thereon is colored.

〔実施例〕〔Example〕

第1図は本発明の図形の閉領域着色方式の一実施例の構
成ブロック図、 第2図は画像メモリの輪郭図形図、 第3図はワークメモリ説明図、 第4図は変化点説明図である。
Fig. 1 is a block diagram of an embodiment of the closed area coloring method for figures according to the present invention, Fig. 2 is an outline figure diagram of an image memory, Fig. 3 is an illustration of a work memory, and Fig. 4 is an illustration of changes. It is.

画像メモリ1の図形の着色すべき輪郭線図形が、第2図
のようにディジタル微分解析器(D D A)によって
措かれる。
The contour figure to be colored in the image memory 1 is determined by a digital differential analyzer (DDA) as shown in FIG.

画像メモリ1を分割した同じ大きさの領域、例えば方形
領域をワークメモリ5にその1つの領域を転送する(第
2図AA’ BB’ )。
The image memory 1 is divided into areas of the same size, for example, rectangular areas, and one area is transferred to the work memory 5 (AA'BB' in FIG. 2).

そして、ワークメモリ5(第3(a)図)は、横方向(
X方向)走査線で指定された2点、即ち変化点間を着色
し、走査線を縦方向(Y方向)に順次移動して、その領
域を着色することになる(第3(b)図)。
The work memory 5 (FIG. 3(a)) is stored in the horizontal direction (
(X direction) The two points specified by the scanning line, that is, between the changing points, are colored, and the scanning line is sequentially moved in the vertical direction (Y direction) to color the area (Figure 3 (b) ).

変化点検出回路4は次の条件で輪郭線から変化点を検出
する。
The changing point detection circuit 4 detects changing points from the contour line under the following conditions.

■第4(a)図のように、輪郭図形を描く点が横方向に
繋がる(Y座標が同じ)場合はその始点と終点のみを変
化点とする(図の黒点)。
(4) As shown in Fig. 4(a), when the points of the contour figure are connected in the horizontal direction (the Y coordinates are the same), only the starting point and the ending point are the points of change (black dots in the figure).

■輪郭図形を描く点が縦方向に繋がる場合は変化点とす
る。
■If the points of the contour figure are connected vertically, it is considered a change point.

■輪郭図形を描く点の連なり、即ち輪郭線が交差する点
は変化点としない(第3図(イ)点)。
- A series of points that draw a contour figure, that is, a point where the contour lines intersect, is not a point of change (point (a) in Figure 3).

■第4(b)図のように、輪郭図形を描く点がワークメ
モリ5の領域から外れる場合は、領域外変化点検出回路
6によってその領域限界の縦方向の着色領域となる変化
点間は全て変化点とする。
■As shown in FIG. 4(b), when the points for drawing the contour figure are outside the area of the work memory 5, the out-of-area changing point detection circuit 6 detects the points between the changing points that become the vertically colored area at the limit of the area. All are points of change.

■そして、領域外変化点検出回路6によって隣接頭載の
縦方向の境界で互いに隣接する点は変化点とする。
(2) Then, the out-of-area change point detection circuit 6 determines points that are adjacent to each other at the vertical boundary between adjacent heads as change points.

そして、画像メモリの輪郭図形はワークメモリ5毎に着
色処理され、そのワークメモリ5の処理領域を移動して
画像メモリ1を方形に分割した場合に輪郭図形の存在す
る区域、あるいは全画像メモリに及ぼして輪郭線内、即
ち閉領域図形が着色され、塗り潰されることになる。
The contour figures in the image memory are colored in each work memory 5, and when the processing area of the work memory 5 is moved and the image memory 1 is divided into rectangles, the area where the contour figure exists or the entire image memory is colored. As a result, the inside of the outline, ie, the closed area figure, is colored and filled.

また、高速回路素子をワークメモリ5に使用して効率の
良い回路構成をすることができる。
Further, by using high-speed circuit elements in the work memory 5, an efficient circuit configuration can be achieved.

〔発明の効果〕〔Effect of the invention〕

以上述べてきたように、本発明によれば、複雑な図形で
もその図形の輪郭図形が存在する所のみを処理すること
によって、大容量の画像メモリにアクセスする回数が減
り、着色処理を高速に行うことができ、実用的には掻め
て有用である。
As described above, according to the present invention, even if the figure is complex, by processing only the parts where the outline of the figure exists, the number of accesses to a large capacity image memory is reduced, and the coloring process is speeded up. It can be done and is very useful in practice.

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

第1図は本発明の図形の閉領域着色方式の実施例の構成
ブロック図、 第2図は画像メモリの輪郭図形図、 第3図はワークメモリ説明図、 第4図は変化点説明図、 第5図は従来の図形着色説明図である。 図において、 1は画像メモリ、 2は輪郭図形生成回路、 3は着色回路、 4は変化点検出回路、 5はワークメモリ、 6は領域外変化点検出回路である。 、11.イと明n蝦JりJ縁続;フ”Oヮ76丁@ 1
 図 イ縁らロ形看色ン明m fs 5 図 &Aメに!/IQ8TPtXJF5m 第 2 m ワーフメモ、り説明図
Fig. 1 is a block diagram of the configuration of an embodiment of the closed area coloring method for figures of the present invention, Fig. 2 is an outline figure diagram of the image memory, Fig. 3 is an illustration of the work memory, Fig. 4 is an illustration of changing points, FIG. 5 is an explanatory diagram of conventional graphic coloring. In the figure, 1 is an image memory, 2 is a contour figure generation circuit, 3 is a coloring circuit, 4 is a change point detection circuit, 5 is a work memory, and 6 is an outside change point detection circuit. , 11. I and Akira Jri J connection; Fu”Oヮ 76-cho @ 1
Diagram I edge et al R shape view color m fs 5 Figure & A! /IQ8TPtXJF5m 2nd m wharf memo, explanatory diagram

Claims (1)

【特許請求の範囲】 画像メモリ(1)を複数の同じ大きさに分割した領域を
処理するワークメモリ(5)と、 1本の走査線の着色、非着色を分離する変化点を、前記
画像メモリ(1)に格納された図形の着色すべき閉領域
の輪郭線から検出する変化点検出回路(4)と、 前記ワークメモリ(5)に読み出された前記処理領域に
隣接する前記画像メモリ(1)の該処理領域外周辺に変
化点を設定する領域外変化点検出回路(6)とを備え、 前記画像メモリ(1)の前記領域毎に、前記ワークメモ
リ(5)に読み出して変化点間の走査線を着色し、前記
画像メモリ(1)の図形の閉領域の着色処理を行うこと
を特徴とする図形の閉領域着色方式。
[Scope of Claims] A work memory (5) that processes a plurality of areas obtained by dividing the image memory (1) into a plurality of the same size, and a change point that separates colored and non-colored one scanning line from the image. a change point detection circuit (4) that detects from the outline of a closed region to be colored of a figure stored in the memory (1); and the image memory adjacent to the processing region read out to the work memory (5). an out-of-area change point detection circuit (6) that sets a change point around the outside of the processing area of (1), and reads out each area of the image memory (1) to the work memory (5) and changes the processing area; A method for coloring closed areas of figures, characterized in that scanning lines between points are colored, and closed areas of figures in the image memory (1) are colored.
JP4340886A 1986-02-27 1986-02-27 Closed area coloring system for graphic Pending JPS62200475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4340886A JPS62200475A (en) 1986-02-27 1986-02-27 Closed area coloring system for graphic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4340886A JPS62200475A (en) 1986-02-27 1986-02-27 Closed area coloring system for graphic

Publications (1)

Publication Number Publication Date
JPS62200475A true JPS62200475A (en) 1987-09-04

Family

ID=12662919

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4340886A Pending JPS62200475A (en) 1986-02-27 1986-02-27 Closed area coloring system for graphic

Country Status (1)

Country Link
JP (1) JPS62200475A (en)

Similar Documents

Publication Publication Date Title
US5589851A (en) Multi-level to bi-level raster shape converter
KR20000005993A (en) Figure filling apparatus
JPS62200475A (en) Closed area coloring system for graphic
US4656468A (en) Pattern data processing apparatus
JPH10320557A (en) Telop character display frame detection method and device therefor
JPS5947664A (en) Picture paint processing system
JP3093906B2 (en) Image processing apparatus and method
US7667714B2 (en) Patterned polygon rendering apparatus
JP3225416B2 (en) Image processing device
JPS63141182A (en) Deciding system for graphic passing through specified area
JPS61267096A (en) Smear drawing display unit for polygonal graphic
JP2987877B2 (en) Character recognition method
JPS60100266A (en) Shading system
JP2563163B2 (en) Figure instruction method
JPH05143733A (en) Contour extracting device
KR910009929B1 (en) Method for extracting document region for document recognition
JP2714114B2 (en) Graphic processing method and graphic system
JP3879804B2 (en) Character / graphic processing unit
JPH0256679B2 (en)
JPS6075969A (en) Graphic information processor
JPH0319991B2 (en)
JPH0550031B2 (en)
JPS6383881A (en) Image processor
JPH035630B2 (en)
JPH0756557A (en) Synthesizing method for picture