JP2633566B2 - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JP2633566B2 JP2633566B2 JP16099987A JP16099987A JP2633566B2 JP 2633566 B2 JP2633566 B2 JP 2633566B2 JP 16099987 A JP16099987 A JP 16099987A JP 16099987 A JP16099987 A JP 16099987A JP 2633566 B2 JP2633566 B2 JP 2633566B2
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- contour
- outline
- data
- processing method
- 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 - Fee Related
Links
Landscapes
- Image Generation (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は画像処理方法に関し、特に輪郭情報が与えら
れた図形を塗りつぶして展開する際、形状誤差補正を行
う画像処理方法に関するものである。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method, and more particularly to an image processing method for performing shape error correction when a figure given contour information is painted and developed.
[従来の技術] 従来、輪郭線画像データをドツトパターンに展開して
描画する際、実数値で与えられる輪郭線の座標値を、例
えばドツトパターンを展開するメモリのアドレス等の精
度に対応した座標値に単純に変換し、該輪郭線内を塗り
潰す等して描画を行なつていた。2. Description of the Related Art Conventionally, when contour image data is developed into a dot pattern and drawn, coordinate values of the contour given by real values are converted into coordinates corresponding to, for example, addresses of a memory for developing the dot pattern. The value is simply converted to a value, and the inside of the outline is painted.
[発明が解決しようとしている問題点] このため、輪郭線内を全て黒で埋める(塗り潰す)よ
うな場合、ただ単純に輪郭線内をドットで埋めてしまう
と、もとの図形の輪郭線が消滅してしまい、元の図形の
特徴が無くなつてしまうという問題があつた。また更
に、第11図のように、図形同志が密接している空白部分
80、81では縮尺が小さくなると空白部分80、81がなくな
つてしまい、図形のつぶれが生じていた。[Problems to be Solved by the Invention] For this reason, in a case where the outline is entirely filled with black (filled), if the outline is simply filled with dots, the outline of the original figure is obtained. Disappears, and the features of the original figure are lost. In addition, as shown in Fig. 11, blank areas where figures are closely connected
In 80 and 81, when the scale became small, the blank portions 80 and 81 disappeared, and the figures were collapsed.
本発明は上記従来例に鑑みなされたもので、画像デー
タの空白部分が小さい領域のつぶれを防止して、輪郭線
の特徴を生かせるようにした画像処理方法を提供するこ
とを目的とする。SUMMARY OF THE INVENTION The present invention has been made in consideration of the above-described conventional example, and has as its object to provide an image processing method that prevents the collapse of an area where a blank portion of image data is small and makes use of features of an outline.
[問題点を解決するための手段] 上記目的を達成するために本発明の画像処理方法は、 図形情報の輪郭線データを入力し、前記輪郭線データ
をもとに前記図形情報の輪郭線パターンを作成し、前記
輪郭線パターン内を塗り潰した塗り潰しパターンを作成
し、前記塗り潰しパターンを細めた細めパターンを作成
し、前記塗り潰しパターンを細めた細めパターンと前記
輪郭線パターンとの排他的論理和を得る。[Means for Solving the Problems] To achieve the above object, an image processing method according to the present invention comprises the steps of: inputting contour data of graphic information; and detecting a contour pattern of the graphic information based on the contour data. Is created, a filling pattern is created by filling the inside of the outline pattern, a thinning pattern is created by thinning the filling pattern, and an exclusive OR of the thinning pattern obtained by thinning the filling pattern and the outline pattern is calculated. obtain.
[作用] 上述した本発明の画像処理方法によれば、図形情報の
輪郭線データを入力し、その輪郭線データをもとに図形
情報の輪郭線パターンを作成し、その輪郭線パターン内
を塗り潰した塗り潰しパターンを作成する。また、その
塗り潰しパターンを細めた細めパターンを作成し、その
細めパターンと輪郭線データとの排他的論理和を得る。According to the image processing method of the present invention described above, contour data of graphic information is input, a contour pattern of graphic information is created based on the contour data, and the contour pattern is filled. Create a filled pattern. Further, a thin pattern obtained by thinning the fill pattern is created, and an exclusive OR of the thin pattern and the contour data is obtained.
[実施例] 以下、添付図面を参照して本発明の好適な実施例を詳
細に説明する。Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[図形処理装置の説明(第1図)] 第1図は実施例の図形処理装置の概略構成を示すブロ
ツク図である。[Description of Graphic Processing Apparatus (FIG. 1)] FIG. 1 is a block diagram showing a schematic configuration of a graphic processing apparatus according to the embodiment.
図中、1は第2図のフローチヤートで示されたROM7の
制御プログラムに従つて装置全体の制御を行う、例えば
マイクロプロセツサ等のMPU(マイクロプロセツサユニ
ツト)である。2、3はそれぞれ文書データや画像デー
タ等を格納するフロツピイ・デイスク装置やハードデイ
スク装置で、デイスク・インタフエース部6を介してシ
ステムバス10に接続されている。4、5はいずれもほぼ
同量のメモリ容量を有するイメージメモリで、パターン
データをドツトイメージの形でパターン展開し、イメー
ジデータをビデオメモリ11に転送してCRTに表示した
り、プリンタインターフエース部15を介してプリンタ14
に出力することができる。In the figure, reference numeral 1 denotes an MPU (microprocessor unit) such as a microprocessor for controlling the entire apparatus in accordance with a control program in the ROM 7 shown in the flowchart of FIG. Reference numerals 2 and 3 denote floppy disk devices and hard disk devices for storing document data, image data, and the like, respectively, which are connected to the system bus 10 via the disk interface unit 6. Reference numerals 4 and 5 denote image memories each having substantially the same memory capacity. Pattern data is developed into dot images in the form of dots, and the image data is transferred to the video memory 11 for display on a CRT. 15 through 14 printer
Can be output to
7はMPU1の制御プログラムやデータを格納しているRO
M、8はMPU1のワークエリアとして使用されるととも
に、システムバス10から入力される文字データやその他
各種データを一時記憶するRAMである。11はCRT12への表
示出力を行うビツトマツプデータを格納するビデオメモ
リ(VRAM)で、イメージメモリ4あるいはイメージメモ
リ5よりの画像データをそのまま受け取つて格納し、CR
T12に表示することができる。7 is the RO that stores the control program and data of MPU1
M and 8 are RAMs used as a work area of the MPU 1 and temporarily storing character data and other various data input from the system bus 10. Reference numeral 11 denotes a video memory (VRAM) for storing bit map data for display output to the CRT 12, which receives and stores the image data from the image memory 4 or 5 as it is, and
It can be displayed on T12.
13はビツト・マニュピレーシヨン・ユニツト(BMU)
で、イメージメモリ4、5やビデオメモリ11のビツトデ
ータの操作を行うとともに、各メモリ間でのDMA転送機
能をも有している。14はプリンタインタフエース部15を
介して送られてきたドツトデータをもとに、ドツトイメ
ージで印刷出力を行うプリンタで、イメージメモリ4、
5あるいはRAM8、ビデオメモリ(VRAM)11よりのイメー
ジデータをもとに印刷を行うことができる。16は各種デ
ータや指示データを入力するキーボードである。13 is Bit Manipulation Unit (BMU)
It operates bit data of the image memories 4 and 5 and the video memory 11 and has a DMA transfer function between the memories. A printer 14 prints out a dot image based on the dot data sent via the printer interface unit 15.
Printing can be performed based on image data from the RAM 5 or the RAM 8 and the video memory (VRAM) 11. Reference numeral 16 denotes a keyboard for inputting various data and instruction data.
[輪郭補正処理(第2図〜第6図)] 第2図は実施例の輪郭補正処理のフローチヤートであ
る。[Contour Correction Processing (FIGS. 2 to 6)] FIG. 2 is a flowchart of the contour correction processing of the embodiment.
まずステツプS1でイメージメモリ4に輪郭線の描画を
行う。これはキーボード16等より入力された座標値をも
とに作成しても良く、あるいはデイスク2あるいは3り
入力された画像データをもとにして作成しても良い。ス
テツプS2では輪郭線の太さをCRT12あるいはプリンタ14
の出力ドツトの1ドツト分の太さにしたデータをイメー
ジメモリ5に作成する。これを示したのが第3図の輪郭
線パターンである。First, an outline is drawn in the image memory 4 in step S1. This may be created based on coordinate values input from the keyboard 16 or the like, or may be created based on image data input from the disk 2 or 3. In step S2, the thickness of the outline is set to CRT12 or
In the image memory 5, data having a thickness corresponding to one dot of the output dot is created. This is shown in the contour pattern in FIG.
次にステツプS3でイメージメモリ4の輪郭線内を塗り
つぶし処理を行い第4図に示すパターンデータを得る。
ステツプS4では第4図に示したイメージメモリ4の塗り
潰しパターンに対し細め処理を行う。これは塗り潰しパ
ターンの外縁に沿つて1ドツトずつパターンを減少させ
るものである(この結果を第5図に示す)。Next, in step S3, the inside of the outline of the image memory 4 is painted out to obtain the pattern data shown in FIG.
In step S4, a thinning process is performed on the fill pattern in the image memory 4 shown in FIG. This reduces the pattern by one dot along the outer edge of the fill pattern (the result is shown in FIG. 5).
次にステツプS5で、第5図に示した細めのパターン
と、第3図に示した輪郭線パターンとの排他的論理和を
取つて、第6図に示すパターンデータを得る。こうする
ことにより、第5図のパターンは第4図の塗り潰しパタ
ーンに比較して、第3図に示す輪郭線の特徴が良く表さ
れている。Next, in step S5, an exclusive OR of the narrow pattern shown in FIG. 5 and the contour pattern shown in FIG. 3 is obtained to obtain pattern data shown in FIG. By doing so, the features of the contour shown in FIG. 3 are better represented in the pattern of FIG. 5 than in the filled pattern of FIG.
[第2の実施例の説明(第7図〜第10図)] 第1の実施例において、第3図の輪郭線の描画方向Ψ
が、α≦Ψ<α+180゜(αはここでは0゜)のときは
第7図のドットパターンで輪郭線を構成し、輪郭線の描
画方向Ψがα+180゜≦Ψ<α+360゜のときは第8図の
ドットパターンで輪郭線を描画することにより第9図に
示すパターンを得る。[Explanation of Second Embodiment (FIGS. 7 to 10)] In the first embodiment, the drawing direction of the contour line in FIG.
However, when α ≦ Ψ <α + 180 ° (α is 0 ° here), an outline is formed by the dot pattern of FIG. 7, and when the drawing direction of the outline is α + 180 ° ≦ ゜ <α + 360 °, By drawing an outline using the dot pattern shown in FIG. 8, the pattern shown in FIG. 9 is obtained.
そして、この輪郭線パターンと第5図の細めパターン
との排他的論理和を取ることにより第10図に示すパター
ンが得られる。Then, a pattern shown in FIG. 10 is obtained by taking an exclusive OR of this contour pattern and the narrow pattern in FIG.
この場合も第6図の場合と同様に第3図に示した輪郭
線の特徴が良く表されており、前述の実施例と同様の効
果が得られる。In this case as well, the features of the contour lines shown in FIG. 3 are well represented as in the case of FIG. 6, and the same effects as in the above-described embodiment can be obtained.
尚、上記輪郭線パターンの切換えあるいは選択は、出
力装置の解像度や出力ドットの大きさ等に対応して適宜
選択するようにすればよい。The switching or selection of the contour pattern may be appropriately selected according to the resolution of the output device, the size of the output dot, and the like.
尚、前述の実施例では、輪郭線の描画方向に対応した
ハツチング例として黒白比が1対1の網パターンを示し
たがこれに限定されるものでなく、網パターンは出力装
置の解像度や出力点の太さ等によつて適宜設定しても良
い。In the above-described embodiment, a halftone pattern having a black-and-white ratio of 1: 1 has been described as an example of hatching corresponding to the drawing direction of the contour line. However, the present invention is not limited to this. It may be set as appropriate depending on the thickness of the point.
以上説明したように本実施例によれば、任意の図形の
輪郭線内塗り潰したとき、輪郭線の特徴を残すことがで
きるとともに、視覚上の図形のつぶれを防ぐことができ
る効果がある。As described above, according to the present embodiment, when the inside of the outline of an arbitrary figure is filled, the characteristic of the outline can be left and the visual figure can be prevented from being crushed.
[発明の効果] 以上述べた如く本発明によれば、図形の輪郭内を塗り
潰したときに、その輪郭線の特徴を残すことができると
ともに、輪郭線内を塗り潰した図形の潰れを防止できる
効果がある。[Effects of the Invention] As described above, according to the present invention, when the inside of a contour of a figure is filled, the features of the contour can be left and the collapse of the figure filled with the inside of the contour can be prevented. There is.
第1図は本実施例の図形処理装置の概略構成を示すブロ
ツク図、 第2図は実施例の輪郭線補正処理のフローチヤート、 第3図は補正を行なう輪郭線パターンの一例を示す図、 第4図は第3図に示した輪郭線内を塗りつぶした図形の
一例を示す図、 第5図は第4図の図形を細めた図形の一例を示す図、 第6図は第3図の輪郭線パターンと第4図の塗りつぶし
パターンとの排他的論理和をとった図形の一例を示す
図、 第7図、第8図は輪郭線パターンの補正パターンの一例
を示す図、 第9図は第2の実施例により変換された輪郭線パターン
の一例を示す図、 第10図は第9図の輪郭線パターンと第4図の塗りつぶし
パターンとの排他的論理和を取ったパターンを示す図、 第11図(A)(B)は従来例の塗りつぶしパターンの一
例を示す図である。 図中、1……MPU、2……フロッピイデイスク、3……
ハードデイスク、4、5……イメージメモリ、6……デ
イスク・インタフエース部、7……ROM、8……RAM、10
……システムバス、11……VRAM、12……CRT、13……ビ
ツトマニユピレーシヨンユニツト、14……プリンタ、15
……プリンタインタフエース部、16……キーボードであ
る。FIG. 1 is a block diagram showing a schematic configuration of a graphic processing apparatus of the present embodiment, FIG. 2 is a flowchart of an outline correction process of the embodiment, FIG. 3 is a diagram showing an example of an outline pattern to be corrected, FIG. 4 is a view showing an example of a figure in which the outline shown in FIG. 3 is filled, FIG. 5 is a view showing an example of a figure obtained by thinning the figure of FIG. 4, and FIG. 6 is a view of FIG. FIG. 7 is a diagram showing an example of a figure obtained by performing an exclusive OR of the contour pattern and the fill pattern in FIG. 4, FIGS. 7 and 8 are diagrams showing an example of a correction pattern of the contour pattern, and FIG. FIG. 10 is a diagram showing an example of an outline pattern converted according to the second embodiment. FIG. 10 is a diagram showing a pattern obtained by taking an exclusive OR of the outline pattern of FIG. 9 and the fill pattern of FIG. 11 (A) and 11 (B) are diagrams showing an example of a fill pattern of a conventional example. . In the figure, 1 ... MPU, 2 ... Floppy disk, 3 ...
Hard disk, 4, 5 ... Image memory, 6 ... Disk interface unit, 7 ... ROM, 8 ... RAM, 10
… System bus, 11… VRAM, 12… CRT, 13… Bit management unit, 14… Printer, 15
.., A printer interface unit, and 16 a keyboard.
Claims (3)
ンを作成し、 前記輪郭線パターン内を塗り潰した塗り潰しパターンを
作成し、 前記塗り潰しパターンを細めた細めパターンを作成し、 前記塗り潰しパターンを細めた細めパターンと前記輪郭
線データとの排他的論理和を得ることを特徴とする画像
処理方法。1. An outline data of graphic information is input, an outline pattern of the graphic information is created based on the outline data, a fill pattern in which the outline pattern is filled is created, and the fill is performed. An image processing method comprising: creating a thin pattern obtained by narrowing a pattern; and obtaining an exclusive OR of the thinned pattern obtained by narrowing the fill pattern and the contour data.
ンより前記輪郭線パターンを取り除くことにより作成す
ることを特徴とする特許請求の範囲第1項に記載の画像
処理方法。2. The image processing method according to claim 1, wherein the narrow pattern is created by removing the contour pattern from the fill pattern.
輪郭線パターンの描画方向に対応して前記輪郭線パター
ンを変換し、該変換された輪郭線パターンと前記塗り潰
しパターンとの排他的論理和を得ることを特徴とする特
許請求の範囲第1項に記載の画像処理方法。3. When the exclusive OR is obtained, the contour pattern is further converted in accordance with the drawing direction of the contour pattern, and the exclusive contour of the converted contour pattern and the fill pattern is exclusive. The image processing method according to claim 1, wherein a logical sum is obtained.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16099987A JP2633566B2 (en) | 1987-06-30 | 1987-06-30 | Image processing method |
| US07/148,712 US4837847A (en) | 1987-02-03 | 1988-01-26 | Image processing apparatus |
| US08/347,172 US5452372A (en) | 1987-02-03 | 1994-11-22 | Image processing apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16099987A JP2633566B2 (en) | 1987-06-30 | 1987-06-30 | Image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS647177A JPS647177A (en) | 1989-01-11 |
| JP2633566B2 true JP2633566B2 (en) | 1997-07-23 |
Family
ID=15726647
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16099987A Expired - Fee Related JP2633566B2 (en) | 1987-02-03 | 1987-06-30 | Image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2633566B2 (en) |
-
1987
- 1987-06-30 JP JP16099987A patent/JP2633566B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS647177A (en) | 1989-01-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5452372A (en) | Image processing apparatus | |
| JP3142550B2 (en) | Graphic processing unit | |
| JP2556484B2 (en) | Figure contour extraction device | |
| JPH0659665A (en) | Image processing device | |
| US5519412A (en) | Pattern processing method | |
| JP2901856B2 (en) | White plate figure correction method | |
| JP4063918B2 (en) | Apparatus and method for creating an image containing graphics information for display | |
| JP2633567B2 (en) | Image processing method | |
| JP2633566B2 (en) | Image processing method | |
| JPH05342314A (en) | Image processing device | |
| US5475807A (en) | Character processing apparatus | |
| JP3647104B2 (en) | Image processing method and apparatus | |
| JP2000066658A (en) | Image processor and recording medium | |
| JP2610825B2 (en) | Graphic processing unit | |
| JP2886702B2 (en) | Outline font processor | |
| JP3129717B2 (en) | Image processing apparatus and image processing method | |
| EP0418868B1 (en) | Image processing system | |
| JPH02217897A (en) | Picture element density conversion system | |
| JP2603322B2 (en) | Character processing apparatus and method | |
| JP2771629B2 (en) | Character processor | |
| JP2711860B2 (en) | Output control method and device | |
| JP2537223B2 (en) | Graphic processing device | |
| JPH06301367A (en) | Character generator | |
| JPH06175637A (en) | Method for generating character | |
| JPH05216969A (en) | Figure processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |