JPS63127385A - Graphic reproducing processor - Google Patents

Graphic reproducing processor

Info

Publication number
JPS63127385A
JPS63127385A JP27350486A JP27350486A JPS63127385A JP S63127385 A JPS63127385 A JP S63127385A JP 27350486 A JP27350486 A JP 27350486A JP 27350486 A JP27350486 A JP 27350486A JP S63127385 A JPS63127385 A JP S63127385A
Authority
JP
Japan
Prior art keywords
graphic
image
contour
conversion
picture plane
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
JP27350486A
Other languages
Japanese (ja)
Inventor
Terushi Shirasaka
白坂 昭史
Kunio Seto
邦雄 瀬戸
Masaki Hamada
浜田 正基
Yukari Taniguchi
ゆかり 谷口
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP27350486A priority Critical patent/JPS63127385A/en
Publication of JPS63127385A publication Critical patent/JPS63127385A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To obtain a graphic with resulting small form difference compared with an original graphic, by magnifying and developing the contour information of an input graphic on a picture plane once, and performing a processing to correct and perform reductive conversion of a contour after painting out the inside of an image. CONSTITUTION:When the graphic is pictured by drawing and the paint-out of the contour on the picture plane of an image memory 10, a main control device 6 executes a reproduction processing. Firstly, arithmetic conversion to double the coordinate value of the contour point of the graphic is performed, and conversion in coordinate units corresponding to the drawing accuracy of the picture plane is performed. Next, the contour is lithographed on the picture plane with an approximate sequence of points according to the coordinate value. And next, the inside of a graphic image is painted out by using filter arithmetic calculation, and furthermore, reduction of 1/2 is performed by the filter arithmetic calculation. Width (2h+1) is converted to a mean (h) by applying the 1/2 reductive conversion by the filter arithmetic calculation. In such way, it is possible to obtain the graphic with resulting the small form difference compared with the original graphic.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は画像処理装置に関し、特に輪郭情報が与えられ
た図形を表示装置等に再生する際の形状誤差補正を行な
う図形再生処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to an image processing device, and more particularly to a figure reproduction processing device that corrects shape errors when a figure given contour information is reproduced on a display device, etc. It is.

〔従来の技術〕[Conventional technology]

従来の画像処理装置においては、第9図に示すように、
入力される図形の輪郭の座標を任意サイズに変換して塗
りつぶした図形画像を得る際、輪郭座標を望むサイズに
変換した後、図形の輪郭線の精度に一番近い画像プレー
ン上の画素を取って1画素幅の線分を引いて、その内部
を塗りつぶしていた。
In the conventional image processing device, as shown in FIG.
When converting the contour coordinates of an input figure to an arbitrary size to obtain a filled figure image, after converting the contour coordinates to the desired size, select the pixels on the image plane that are closest to the precision of the figure's outline. I drew a line segment with a width of 1 pixel and filled in the inside of it.

(発明が解決しようとしている問題点)このため、平均
して0.5画素外側に太ってしまい、特に小さなサイズ
の図形では再生処理後のと 形状変化が犬きという問題点があった。
(Problem to be Solved by the Invention) As a result, on average, the shape increases outward by 0.5 pixels, and especially for small-sized figures, the shape changes rapidly after the reproduction process.

(問題点を解決するための手段(及び作用))本発明に
よれば、任意図形の輪郭線を与える座標値人力を、求め
るサイズより大きなサイズに算術変換し、この座標値に
従った図形輪郭描画と内部塗りつぶしを行なった後、塗
りつぶされた図形画像を縮小変換する処理を行なうこと
によって表示装置等における輪郭線描画時に生じる図形
の大まりを補正できる。
(Means for solving the problem (and operation)) According to the present invention, the coordinate values that give the outline of an arbitrary figure are arithmetic converted to a size larger than the desired size, and the figure contour according to the coordinate values is After drawing and filling in the interior, the filled graphic image is reduced in size, thereby correcting the bulk of the graphic that occurs when outlines are drawn on a display device or the like.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基ついて説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の図形再生処理装置の構成を示すもので
、6はこの図形再生処理装置全体を制御する主制御装置
MPUであり、後述する第2図のフローチャートに従っ
て図形再生処理を行なう。
FIG. 1 shows the configuration of a graphic reproduction processing apparatus according to the present invention. Reference numeral 6 denotes a main control unit MPU which controls the entire graphic reproduction processing apparatus, and performs graphic reproduction processing according to the flowchart of FIG. 2, which will be described later.

このMPU6にはフロッピーディスク(FD)、ハード
ディスク(HD)等の外部記憶装置が接続されている。
An external storage device such as a floppy disk (FD) or a hard disk (HD) is connected to this MPU 6.

7は上記MPUの各種制御プログラム、そして第2図に
示す図形再生処理プログラムが記憶されているR OM
 (Read 0nly IAemory)で、8は外
部からパスライン9を介して入力される文字データや、
その他各種データを一時記憶するR A M (Ran
dom Access Memory)で、10は画像
データを記憶するイメージメモリ(iMEM)であり、
上記RAM8及びiMEMlo上では、後述するビット
ブレーンを展開することが可能である。11はビデオメ
モリ(VRAM)であり、CR7表示部12に表示すべ
きデータをビットマツプ上に展開している。例えば文字
データてあれば、そのコートに対応した文字キャラクタ
が、VRAM上に展開されており、MPU6のη1り御
によりVRAMの表示エリアに直接カーソルを発生し、
表示が可能である。13はBMU(BitManupu
lation  Unit  )  で、 RA M 
8 、i  M E Ml 0、VRAM11やプリン
ター等の入出力機器間のデータ転送をMPU6を介さず
に行なえるD M A (Direct Memory
 八ccess)機能かある。
Reference numeral 7 denotes a ROM in which various control programs for the MPU described above and a graphic reproduction processing program shown in FIG. 2 are stored.
(Read 0nly IAemory), 8 is the character data input from the outside via the pass line 9,
RAM (Ran) temporarily stores various other data.
dom Access Memory), 10 is an image memory (iMEM) that stores image data,
On the RAM 8 and iMEMlo, it is possible to develop a bit brain, which will be described later. A video memory (VRAM) 11 develops data to be displayed on the CR7 display section 12 on a bitmap. For example, if there is character data, the character corresponding to the code is developed on the VRAM, and a cursor is generated directly in the VRAM display area by the MPU 6's η1 control.
Display is possible. 13 is BMU (BitManupu
ration Unit) and RAM
8, i M E Ml 0, DMA (Direct Memory
8ccess) function.

14はプリンターで、15はプリンター14とハスライ
ン9を接続するインターフェース、16は各種データや
コマンドを人力できるキーホードである。
14 is a printer, 15 is an interface that connects the printer 14 and Hassline 9, and 16 is a keyboard that can manually enter various data and commands.

次に上記のように構成された画像処理装置の図形再生処
理について第2図及び第8図を参照し・なから説明する
Next, graphic reproduction processing of the image processing apparatus configured as described above will be explained from the beginning with reference to FIGS. 2 and 8.

iMEMloの画像ブレーン上に第4図(1)のような
図形を輪郭の描画と塗つつふしによって描く場合、第2
図に示すフローチャー1・に従ってMPU 6は再生処
理を実行する。ますステップS1て第4図(1)の図形
の輪郭点の座標値を望むサイズの2倍に算術変換した後
、画像ブレーンの描画精度に合わせた座標単位の変換を
行なう。
When drawing a figure like the one shown in Fig. 4 (1) on the iMEMlo image brain by drawing the outline and filling it in, the second
The MPU 6 executes the reproduction process according to the flowchart 1 shown in the figure. First, in step S1, the coordinate values of the contour points of the figure shown in FIG. 4(1) are arithmetic converted to twice the desired size, and then the coordinate units are converted in accordance with the drawing accuracy of the image brain.

次にここで得られた座標値に従って、直線や曲線を近似
する点列でその輪郭を画像ブレーン上に描画することに
より、望むサイズの2倍の大きさで、かつ上下左右の輪
郭線分により、上下左右がそれぞれ0,5画素ずつ太っ
た第4図(2)の図形画像が得られる(ステップS2)
Next, according to the coordinate values obtained here, by drawing the outline on the image plane using a series of points that approximate straight lines and curves, it is possible to draw the outline on the image plane at twice the desired size and by drawing the contour line segments on the top, bottom, left and right sides. , the graphic image shown in Figure 4 (2) is obtained, with the top, bottom, left and right sides thickened by 0.5 pixels each (step S2).
.

次にステップS3で、この図形画像の内部を第6図のフ
ィルタ演算を用いて塗りつぶし、次にステップS4て図
形画像を第5図で示すフィルタ演算を用いてη縮小を行
なう。第5図のフィルタ演算によって、第8図(1)、
(2)で示されるように幅2n(nは正の整数)で表わ
される図形画像は展開位置が偶数座標2m又は奇数座標
2m−1(mは正の整数)より始まる場合によりn又は
n−1の太さに変換されこの2種類の変換される確立は
局づつである。また第8図(3)。
Next, in step S3, the inside of this graphic image is filled in using the filter operation shown in FIG. 6, and then in step S4, the graphic image is subjected to η reduction using the filter operation shown in FIG. By the filter calculation shown in FIG. 5, as shown in FIG. 8 (1),
As shown in (2), a graphic image expressed with a width of 2n (n is a positive integer) is n or n- depending on the case where the expanded position starts from an even coordinate 2m or an odd coordinate 2m-1 (m is a positive integer). The probability of converting to a thickness of 1 and converting these two types is one by one. Also, Figure 8 (3).

(4)で示されるように幅2n+1で表わされる図形画
像は展開位置が偶数座標、奇数座標のいずれにより始ま
る場合にも等しくn−1の太さに変  。
As shown in (4), a graphic image expressed with a width of 2n+1 changes to a thickness of n-1 equally whether the developed position starts at an even numbered coordinate or an odd numbered coordinate.

換される。このフィルタ演算による!/2縮小変換によ
り、幅2h+1は平均りに変換される。
will be replaced. Due to this filter operation! By the /2 reduction conversion, the width 2h+1 is converted to the average value.

〔他の実施例〕[Other Examples]

図形画像の輪郭線による大まりの補正は!A縮小変換と
独立に行なうこともできる。即ち、iMEMloの画像
ブレーン上に第4図(1)のような図形を輪郭の描画と
塗りつぶしによって描く場合、第3図に示ずフローチャ
ートに従って再生処理を行なうことも考えられる。まず
ステップS1て第4図(1)の図形の輪郭線の座標値を
望むサイズの2倍に算術変換する。次にここで得られた
座標値に従って直線や曲線を近似する点列て図形の輪郭
を画像ブレーン上に描画することにより、望むサイズの
2倍の大きさで、かつ上下輪郭線分により、さらにそれ
ぞれ05画素ずつ太った第4図(2)の図形画像か得ら
れる(ステップS2)。次に、この図形画像を第6図に
示すフィルタ浄1算を用いて塗りつふしくステップS3
)、図形画像の右と下からそれぞれ1画素の細線化を行
ない、幅2 h + 1 (h = 0 、 1 、 
2−−−−)で表わされていた図形画像を平均2hの太
さに変換する(ステップS4)。次に第7図に示すフィ
ルタ演算を用いて%縮小を行なう。このフィルタにより
、塗りつぶし図形の上部は展開位置によって平均0.5
画素下部にやせた形で%縮小され、塗りつぶし図形の下
部は展開位置によって平均0.5画素下部に太った形で
y2縮小される。このことにより、輪郭線の太さによる
平均1画素の太まり誤差は展開位置によらず平均的に補
正される。
How to correct the curve caused by the outline of a figure image! It can also be performed independently of the A reduction conversion. That is, when drawing a figure as shown in FIG. 4(1) on the iMEMlo image plane by drawing an outline and filling it in, it is also conceivable to perform reproduction processing according to a flowchart not shown in FIG. 3. First, in step S1, the coordinate values of the outline of the figure shown in FIG. 4(1) are arithmetic converted to twice the desired size. Next, by drawing the outline of the figure on the image plane using a series of points that approximate straight lines and curves according to the coordinate values obtained here, the outline of the figure is twice the desired size, and the upper and lower outline segments are further expanded. The graphic images shown in FIG. 4(2), each thickened by 05 pixels, are obtained (step S2). Next, this graphic image is painted in step S3 using the filter filter shown in FIG.
), the figure image is thinned by 1 pixel from the right and bottom each, and the width is 2 h + 1 (h = 0, 1,
2----) is converted to an average thickness of 2h (step S4). Next, percentage reduction is performed using the filter operation shown in FIG. With this filter, the top of the filled shape is on average 0.5 depending on the expansion position.
The lower part of the filled figure is reduced by y2 in a thin shape to the bottom of the pixel, and the lower part of the filled figure is thickened by 0.5 pixels on average depending on the development position. As a result, the average thickening error of one pixel due to the thickness of the contour line is corrected on the average regardless of the development position.

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

本発明は上記のように人力図形の輪郭情報を画像プレー
ン上に一旦拡大して展開し、その図形画像の塗りつぶし
を行った後で、輪郭を補正し縮小化処理を行なう図形再
生処理装置であるから、従来の輪郭をそのまま描画する
装置よりももとの図形との形状差が小さい図形か得られ
るという効果がある。
The present invention is a figure reproduction processing device that once expands and develops the outline information of a human-powered figure on an image plane as described above, fills in the figure image, and then corrects the outline and performs a reduction process. Therefore, there is an effect that a figure with a smaller difference in shape from the original figure can be obtained than a conventional device that draws the outline as it is.

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

第1図は本発明の図形再生処理装置の構成を示すブロッ
ク図、 第2図は実施例の図形再生処理フローを示す図、 第3図は、その他の実施例の図形再生処理フローを示す
図、 第4図は画像プレーン上に展開する輪郭図形を示す図、 第5図は坏縮小フィルタ演算を示す図、第6図は細線化
フィルタ演算を示す図、第7図は他の局縮小フィルタ演
算を示す図、第8図は%縮小フィルタ演算をかけた際の
図形画像の縮小例を示す図、 第9図は図形の画像プレーン上への展開例を示す図。 6−−−−M P U 。 7−−−−ROM 。 8−−−−RA M 。 10−−−−i M E M。 11−−−−VRAM。 12−−−−CRT。 1 3−一−−B  M  U。 14−−−−プリンター、 1 5−−−−17 F、 16−−−−キーボード。
FIG. 1 is a block diagram showing the configuration of a graphic reproduction processing device of the present invention, FIG. 2 is a diagram showing a graphic reproduction processing flow of an embodiment, and FIG. 3 is a diagram showing a graphic reproduction processing flow of another embodiment. , Fig. 4 is a diagram showing a contour figure developed on an image plane, Fig. 5 is a diagram showing a collapsing reduction filter calculation, Fig. 6 is a diagram showing a thinning filter calculation, and Fig. 7 is a diagram showing other local reduction filters. FIG. 8 is a diagram showing an example of the reduction of a graphic image when a % reduction filter operation is applied. FIG. 9 is a diagram showing an example of the expansion of a graphic onto an image plane. 6----MPU. 7----ROM. 8----R.A.M. 10---i MEM. 11---VRAM. 12---CRT. 1 3-1--B M U. 14---Printer, 1 5---17F, 16---Keyboard.

Claims (1)

【特許請求の範囲】[Claims] 任意図形の輪郭線上の座標値を入力する座標値入力手段
と、該座標入力手段により入力された図形の輪郭線の座
標値を任意数倍に拡大変換する拡大変換手段と、該変換
手段によって変換された座標値に従って図形輪郭を画像
プレーン上に図形画像として描画し、その内部を塗りつ
ぶす図形画像塗りつぶし手段と、塗りつぶされた図形画
像をもとの図形大に縮小変換する縮小変換手段から構成
された図形再生処理装置。
a coordinate value input means for inputting coordinate values on the outline of an arbitrary figure; an enlargement conversion means for enlarging and converting the coordinate values of the outline of the figure inputted by the coordinate input means by an arbitrary number of times; and conversion by the conversion means. The figure image filling means draws the figure outline as a figure image on the image plane according to the coordinate values and fills the inside of the figure image, and the reduction conversion means reduces the filled figure image to the original figure size. Graphic reproduction processing device.
JP27350486A 1986-11-17 1986-11-17 Graphic reproducing processor Pending JPS63127385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27350486A JPS63127385A (en) 1986-11-17 1986-11-17 Graphic reproducing processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27350486A JPS63127385A (en) 1986-11-17 1986-11-17 Graphic reproducing processor

Publications (1)

Publication Number Publication Date
JPS63127385A true JPS63127385A (en) 1988-05-31

Family

ID=17528812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27350486A Pending JPS63127385A (en) 1986-11-17 1986-11-17 Graphic reproducing processor

Country Status (1)

Country Link
JP (1) JPS63127385A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02184913A (en) * 1989-01-12 1990-07-19 Jiyasuto Syst:Kk Curve generating system and outline font forming device applying the same system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02184913A (en) * 1989-01-12 1990-07-19 Jiyasuto Syst:Kk Curve generating system and outline font forming device applying the same system

Similar Documents

Publication Publication Date Title
JP2844639B2 (en) Character pattern signal generator
JP2876942B2 (en) Data converter
JP3037854B2 (en) Character generation method and device
JP4480476B2 (en) Image processing apparatus and image processing method
JPS63127385A (en) Graphic reproducing processor
JP2008116812A (en) Display apparatus, projector, and display method
JPS6219973A (en) Data compression method
JP2806679B2 (en) Character generator
JP2004184738A (en) Image scaling device, image scaling method, program and recording medium
JP3057959B2 (en) Data converter
JPH10198333A (en) Outline character drawing device
JP3211591B2 (en) Image processing device
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JPH07140964A (en) Device for displaying image
JPH06175637A (en) Method for generating character
JP2512252B2 (en) Image scaling device
JPS63191284A (en) Pattern processor
JPH06301511A (en) Method for hard copying display image
JPS59200369A (en) Picture converter
JPS622367A (en) Converting system for picture element number
JPS6232568A (en) Graphic processor
JPH1039852A (en) High-speed display processing device of scalable font
JPH0916147A (en) Processor and method for character processing
JPH09146523A (en) Character generating device
JPH03194663A (en) Method and device for enlarging image