JP2633567B2 - Image processing method - Google Patents

Image processing method

Info

Publication number
JP2633567B2
JP2633567B2 JP16100087A JP16100087A JP2633567B2 JP 2633567 B2 JP2633567 B2 JP 2633567B2 JP 16100087 A JP16100087 A JP 16100087A JP 16100087 A JP16100087 A JP 16100087A JP 2633567 B2 JP2633567 B2 JP 2633567B2
Authority
JP
Japan
Prior art keywords
pattern
contour
data
outline
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
Application number
JP16100087A
Other languages
Japanese (ja)
Other versions
JPS647178A (en
Inventor
昭史 白坂
研策 田中
正基 浜田
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 JP16100087A priority Critical patent/JP2633567B2/en
Priority to US07/148,712 priority patent/US4837847A/en
Publication of JPS647178A publication Critical patent/JPS647178A/en
Priority to US08/347,172 priority patent/US5452372A/en
Application granted granted Critical
Publication of JP2633567B2 publication Critical patent/JP2633567B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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.

[発明が解決しようとしている問題点] このため、第8図のように、図形同志が密接している
空白部分80、81では縮尺が小さくなると空白部分80、81
がなくなつてしまい、図形のつぶれが生じていた。
[Problems to be Solved by the Invention] For this reason, as shown in FIG. 8, in the blank portions 80 and 81 where figures are close to each other, when the scale is reduced, the blank portions 80 and 81 are reduced.
Was lost, and the figure was crushed.

本発明は上記従来例に鑑みなされたもので、画像デー
タの空白部分が小さい領域のつぶれを防止するようにし
た画像処理方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described conventional example, and an object of the present invention is to provide an image processing method for preventing a region having a small blank portion of image data from being collapsed.

[問題点を解決するための手段] 上記目的を達成するために本発明の画像処理方法は、 図形情報の輪郭線データを入力し、前記輪郭線データ
をもとに前記図形情報の輪郭線パターンを作成し、前記
輪郭線パターン内を塗り潰した塗り潰しパターンを作成
し、前記輪郭線パターンを所定パターンでマスクし、前
記塗り潰しパターンの輪郭線パターンとする。
[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 contour pattern, and the contour pattern is masked with a predetermined pattern to obtain a contour pattern of the filling pattern.

[作用] 上述した本発明の画像処理方法によれば、図形情報の
輪郭線データを入力し、その入力した輪郭線データをも
とに図形情報の輪郭線パターンを作成する。さらに、そ
の輪郭線パターン内を塗り潰した塗り潰しパターンを作
成し、輪郭線パターンを所定パターンでマスクして塗り
潰しパターンの輪郭線パターンとする。
[Operation] According to the image processing method of the present invention described above, contour data of graphic information is input, and a contour pattern of graphic information is created based on the input contour data. Further, a filling pattern in which the inside of the contour pattern is filled is created, and the contour pattern is masked with a predetermined pattern to be a contour pattern of the filling pattern.

[実施例] 以下、添付図面を参照して本発明の好適な実施例を詳
細に説明する。
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 example, which controls the entire apparatus according to 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 a system bus 10 via a disk interface unit 6. Reference numerals 4 and 5 denote image memories having almost 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図〜第7図)] 第2図は実施例の輪郭補正処理のフローチヤートであ
る。
[Contour Correction Processing (FIGS. 2 to 7)] FIG. 2 is a flowchart of the contour correction processing of the embodiment.

まずステツプS1でイメージメモリ4に輪郭線の描画を
行う。これはキーボード16等より入力された座標値をも
とに作成しても良く、あるいはデイスク2あるいは3よ
り入力された画像データをもとにして作成しても良い。
ステツプS2では輪郭線の太さをCRT12あるいはプリンタ1
4の出力ドツトの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, set the thickness of the contour line to CRT12 or printer 1.
Data having a thickness corresponding to one dot of the output dot 4 is created in the image memory 5. This is shown in the contour pattern in FIG.

次にステツプS3でイメージメモリ4の輪郭線内を塗り
つぶし処理を行い第4図に示すパターンデータを得る。
ステツプS4では第3図に示したイメージメモリ5の輪郭
線のパターンの反転データとイメージメモリ4の塗りつ
ぶしデータとの論理積をとり、その論理積をとつた画像
データをイメージメモリ4に格納する。これを示したの
が第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, the logical product of the inversion data of the contour line pattern of the image memory 5 shown in FIG. 3 and the fill data of the image memory 4 is calculated, and the image data obtained by calculating the logical product is stored in the image memory 4. This is shown in the pattern data of FIG.

次にステツプS5で、イメージメモリ5の輪郭線パター
ンとRAM8に展開された網点パターンとの積とり、第6図
に示したような輪郭線の網点パターンを得て、これをイ
メージメモリ5に格納する。こうしてステツプ6でイメ
ージメモリ5に展開された第6図の網点パターンと、イ
メージメモリ4に展開された第5図のパターンデータと
の論理和をとり、第7図に示したパターンを得る。この
第7図のパターンデータは、第4図の輪郭線内を塗りつ
ぶしたパターンの輪郭を視覚上疑似的に補正して、輪郭
線の切り込まれた部分の潰れを視覚上補正している。
Next, in step S5, the outline pattern of the image memory 5 and the halftone dot pattern developed in the RAM 8 are accumulated to obtain a halftone dot pattern of the outline as shown in FIG. To be stored. In this way, the halftone dot pattern of FIG. 6 developed in the image memory 5 and the pattern data of FIG. 5 developed in the image memory 4 are logically ORed in step 6 to obtain the pattern shown in FIG. The pattern data in FIG. 7 visually corrects the contour of the pattern in which the inside of the contour of FIG. 4 is filled, and visually corrects the collapse of the cut portion of the contour.

[第2の実施例の説明(第9図〜第13図)] 第9図は第2の実施例の輪郭補正処理のフローチヤー
トである。
[Explanation of Second Embodiment (FIGS. 9 to 13)] FIG. 9 is a flowchart of the contour correction processing of the second embodiment.

まずステツプS10で、第2図のステツプS1と同様にし
てイメージメモリ4に塗り潰し用の輪郭線を描画する
(第10図参照)。ステツプS11ではイメージメモリ5に
太さが1ドツトの輪郭線パターンを格納し、ステツプS1
2で第11図に示したイメージメモリ5内の輪郭線内を塗
り潰したパターンを作成する。
First, in step S10, a contour line for filling is drawn in the image memory 4 in the same manner as in step S1 of FIG. 2 (see FIG. 10). In step S11, a 1-dot-thick outline pattern is stored in the image memory 5, and the process proceeds to step S1.
In step 2, a pattern is created in which the inside of the outline in the image memory 5 shown in FIG. 11 is filled.

ステツプS13ではイメージメモリ4内の輪郭線パター
ンを黒白交互に発生したパターンとして(第12図参
照)、ステツプS14で第2図のステツプS4、6と同様に
して、イメージメモリ5のパターンの輪郭線部分を抜き
取り、ステツプS13で求めたイメージメモリ4に展開さ
れた輪郭線パターンとの和を取る。これを示したのが第
13図に示すパターンである。
In step S13, the contour line pattern in the image memory 4 is changed to a pattern generated alternately in black and white (see FIG. 12). The portion is extracted, and the sum with the contour pattern developed in the image memory 4 obtained in step S13 is calculated. This is shown in
13 is a pattern shown in FIG.

この結果、第11図と比較しても明らかな如く、輪郭線
部分が完全に潰れてしまうことがなくなる。
As a result, as apparent from comparison with FIG. 11, the contour portion is not completely crushed.

また、前述の実施例ではドツトデータでの輪郭線の補
正について述べたが、これに限定されるものでなく、例
えば輝度変調を行つて出力するレーザビームプリンタ等
に対しては、第14図に示したように輪郭線パターンにハ
ーフトーン処理を行い、その輪郭線を用いて塗り潰しパ
ターンの輪郭線とすることにより、第15図に示すような
輪郭補正ができる。
Further, in the above-described embodiment, the correction of the contour line with the dot data has been described. However, the present invention is not limited to this. For example, for a laser beam printer that performs luminance modulation and outputs the result, FIG. As shown in the figure, the halftone processing is performed on the contour pattern, and the contour is used as the contour of the fill pattern, whereby the contour correction as shown in FIG. 15 can be performed.

尚、前述の第1の実施例では、輪郭線のハツチング例
として黒白比が1対1の網パターンを示したがこれに限
定されるものでなく、網パターンは出力装置の解像度や
出力点の太さ等によつて適宜設定しても良い。
In the above-described first embodiment, a halftone pattern having a black-and-white ratio of 1: 1 has been described as an example of hatching of a contour line. However, the present invention is not limited to this. It may be set appropriately depending on the thickness and the like.

以上説明したように本実施例によれば、任意の図形の
輪郭線を網かけ状のパターンにすることにより、視覚上
の図形のつぶれを防ぐことができる効果がある。
As described above, according to the present embodiment, the contour of an arbitrary figure is formed into a hatched pattern, which has the effect of preventing visual collapse of the figure.

[発明の効果] 以上述べた如く本発明によれば、図形の輪郭内を塗り
潰したときに、その輪郭線のつぶれを防止できる効果が
ある。
[Effects of the Invention] As described above, according to the present invention, there is an effect that, when the inside of the outline of a figure is filled, the outline is prevented from being broken.

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

第1図は本実施例の図形処理装置の概略構成を示すブロ
ツク図、 第2図は第1の実施例の輪郭線補正処理のフローチヤー
ト、 第3図は補正を行なう輪郭線パターンの一例を示す図、 第4図は第3図に示した輪郭線内を塗りつぶした図形の
一例を示す図、 第5図は第4図の図形から輪郭線を除去した図形を示す
図、 第6図は第3図の輪郭線パターンに網をかけた輪郭線の
1例を示す図、 第7図は第4図のパターンの輪郭を補正した図形の一例
を示す図、 第8図(A)(B)は従来の縮小図形の描画例を示す
図、 第9図は第2の実施例の輪郭線補正処理のフローチヤー
ト、 第10図は補正を行う輪郭線パターンの一例を示す図、 第11図は第10図に示した輪郭線内を塗り潰した図形の一
例を示す図、 第12図は第11図の輪郭線パターンを黒白交互に発生させ
た図、 第13図は第11図のパターンの輪郭を補正した一例を示す
図、 第14図は輪郭線パターンをハーフトーンで表した一例を
示す図、 第15図は第11図のパターンの輪郭線を第14図の輪郭線で
表した図である。 図中、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 a contour correction process of the first embodiment, and FIG. 3 is an example of a contour 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 a figure obtained by removing the outline from the figure in FIG. 4, and FIG. FIG. 7 is a diagram showing an example of a contour line obtained by shading the contour line pattern of FIG. 3, FIG. 7 is a diagram showing an example of a figure in which the contour of the pattern of FIG. 4 has been corrected, FIG. ) Is a diagram showing a drawing example of a conventional reduced figure, FIG. 9 is a flowchart of the contour correction process of the second embodiment, FIG. 10 is a diagram showing an example of a contour pattern to be corrected, FIG. FIG. 12 is a diagram showing an example of a figure in which the outline shown in FIG. 10 is filled, and FIG. 12 is a diagram showing the outline pattern of FIG. FIG. 13 is a diagram showing an example in which the contour of the pattern of FIG. 11 is corrected, FIG. 14 is a diagram showing an example in which the contour pattern is expressed by halftone, FIG. 15 is a diagram of FIG. FIG. 15 is a diagram in which the contour of the pattern is represented by the contour of FIG. 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)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】図形情報の輪郭線データを入力し、 前記輪郭線データをもとに前記図形情報の輪郭線パター
ンを作成し、 前記輪郭線パターン内を塗り潰した塗り潰しパターンを
作成し、 前記輪郭線パターンを所定パターンでマスクし、前記塗
り潰しパターンの輪郭線パターンとすることを特徴とす
る画像処理方法。
1. An outline data of graphic information is inputted, an outline pattern of the graphic information is created on the basis of the outline data, a fill pattern in which the inside of the outline pattern is filled is created, An image processing method, characterized in that a line pattern is masked with a predetermined pattern to be a contour pattern of the solid pattern.
【請求項2】前記所定パターンは網掛けパターンとする
ことを特徴とする特許請求の範囲第1項に記載の画像処
理方法。
2. The image processing method according to claim 1, wherein said predetermined pattern is a hatched pattern.
【請求項3】前記所定パターンは前記輪郭線パターンを
1つおきに間引いたパターンとすることを特徴とする特
許請求の範囲第1項に記載の画像処理方法。
3. The image processing method according to claim 1, wherein the predetermined pattern is a pattern obtained by thinning every other contour pattern.
JP16100087A 1987-02-03 1987-06-30 Image processing method Expired - Fee Related JP2633567B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP16100087A JP2633567B2 (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
JP16100087A JP2633567B2 (en) 1987-06-30 1987-06-30 Image processing method

Publications (2)

Publication Number Publication Date
JPS647178A JPS647178A (en) 1989-01-11
JP2633567B2 true JP2633567B2 (en) 1997-07-23

Family

ID=15726667

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16100087A Expired - Fee Related JP2633567B2 (en) 1987-02-03 1987-06-30 Image processing method

Country Status (1)

Country Link
JP (1) JP2633567B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03110243A (en) * 1989-05-17 1991-05-10 Ishino Kawara Kogyo Kk Construction of tiled roof and assembled rails with heat insulating material therefor
JPH0476828U (en) * 1990-11-19 1992-07-06
JP2502825B2 (en) * 1991-03-15 1996-05-29 元旦ビューティ工業株式会社 Tiled roof structure
US8079656B2 (en) * 2006-12-22 2011-12-20 Palo Alto Research Center Incorporated Method for decimation of images

Also Published As

Publication number Publication date
JPS647178A (en) 1989-01-11

Similar Documents

Publication Publication Date Title
US5452372A (en) Image processing apparatus
JP2528376B2 (en) Image contour correction method
EP0705024A2 (en) Method of generating color separation images and apparatus for the same
JP3142550B2 (en) Graphic processing unit
JP2633567B2 (en) Image processing method
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
JP2633566B2 (en) Image processing method
EP0458571A2 (en) Image processing method and apparatus
JP3647104B2 (en) Image processing method and apparatus
JPH08212362A (en) Character and graphic generation device
EP0418868B1 (en) Image processing system
JP2886702B2 (en) Outline font processor
JP2000066658A (en) Image processor and recording medium
JPH03169655A (en) Color image output/display system
JPH0823741B2 (en) How to process vector characters or graphics
JP2782752B2 (en) Character pattern output device
JP2942125B2 (en) Display method of print image
JPH08254973A (en) Character output device and its method
JPH09277616A (en) Printer and control method therefor
JP2976671B2 (en) Data expansion method
JPS60109888A (en) Character processor
JP3573291B2 (en) Character data creation method and character data creation device
JPH09281946A (en) Character image data forming method and device therefor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees