JPH05290161A - Image processing method - Google Patents

Image processing method

Info

Publication number
JPH05290161A
JPH05290161A JP4091326A JP9132692A JPH05290161A JP H05290161 A JPH05290161 A JP H05290161A JP 4091326 A JP4091326 A JP 4091326A JP 9132692 A JP9132692 A JP 9132692A JP H05290161 A JPH05290161 A JP H05290161A
Authority
JP
Japan
Prior art keywords
data
contour vector
image
contour
section
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
JP4091326A
Other languages
Japanese (ja)
Inventor
Minoru Yamanaka
稔 山中
Taizo Yamada
泰三 山田
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP4091326A priority Critical patent/JPH05290161A/en
Publication of JPH05290161A publication Critical patent/JPH05290161A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the image processing method which is suitable for drawing processing and capable of simplifying and speeding up the handling of an image in consideration of the condition that an increase in the amount of data and the delay of screen display processing, enlargement/reduction processing, etc., are caused by conventional drawing input technique for input to CAD, etc. CONSTITUTION:A drawing on paper, etc., is read as binary image data by an image scanner, etc. A CPU reads the binary image data in a memory and converts them into contour vector data, and sets sections of contour vector loops (S1 and S2). Painting-out points are calculated, section by section (S3). In this calculation, one contour vector is optionally selected from a pending problem section. The other contour vector opposite to this contour vector is detected. A perpendicular is drawn from one contour vector to the other and a painting-out point is set at the mid-point of the perpendicular. Position data on the painting-out point is added as attached data to section data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、CAD(コンピュー
タエイディドデザイン)システムや図面管理システムな
どに画像を入力する技術に適した画像処理方法に係わ
り、特に画像データの取り扱いを簡便化・高速化する方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method suitable for a technique of inputting an image into a CAD (Computer Aided Design) system, a drawing management system, etc., and particularly simplifies and speeds up the handling of image data. On how to do.

【0002】[0002]

【従来の技術】近年、紙やフィルムに記載された電気回
路図や機械構造図などの図面をCADシステムや図面管
理システムに入力して活用する場合、次の(1)〜
(3)の方式が挙げれらる。
2. Description of the Related Art In recent years, when a drawing such as an electric circuit diagram or a mechanical structure diagram written on a paper or a film is input into a CAD system or a drawing management system to be utilized, the following (1)-
The method of (3) can be mentioned.

【0003】(1)文字や図形の認識装置を通して図面
の内容をディジタル化し、CADシステムのデータベー
スと同一レベルに変換する。
(1) The contents of the drawing are digitized through a character or figure recognition device and converted into the same level as the CAD system database.

【0004】(2)図面をイメージスキャナから読み取
って2値画像データに変換し、この2値画像データを背
景にしてCADシステム上でトレースし、新たに作図す
る。
(2) A drawing is read by an image scanner, converted into binary image data, traced on a CAD system with this binary image data as a background, and a new drawing is made.

【0005】(3)図面をイメージスキャナから読み取
って画像に変換し、画像として保存する。
(3) A drawing is read by an image scanner, converted into an image, and stored as an image.

【0006】いずれの技術も、紙等の上のデータをディ
ジタルデータに変換し、CADシステムや図面管理シス
テムのディスク装置に保存するものである。
In any of the techniques, data on paper or the like is converted into digital data and stored in a disk device of a CAD system or a drawing management system.

【0007】[0007]

【発明が解決しようとする課題】しかしながら上記の
(1)の方式では、原図は紙などの媒体上に保管される
ため良好な保管状態を維持することが困難であり、しか
も今日のパターン認識技術では、認識できる図面は非常
に限定される問題があった。また(2)の方式では、図
面を新たに作成し直すことになり、活用範囲が図面のす
べてを新たに作図することは、非効率的・非経済的であ
る。また(3)の方式では、取り扱う画像データのデー
タ量が膨大となり、大容量のディスクが必要となるだけ
でなく、画面表示処理その他の処理速度の遅延化を招
き、特に拡大・縮小などの処理に不利となる。
However, in the above method (1), it is difficult to maintain a good storage state because the original drawing is stored on a medium such as paper, and the pattern recognition technology of today is used. Then, there was a problem that the recognizable drawings were very limited. Further, in the method of (2), the drawing is newly created, and it is inefficient and uneconomical to newly draw the entire drawing. Further, in the method (3), the amount of image data to be handled becomes enormous, not only a large-capacity disk is required, but also the screen display processing and other processing speed are delayed, and processing such as enlargement / reduction in particular is caused. Will be at a disadvantage.

【0008】これらの方式の中では、(3)の方式が問
題を含みながらも最も現実的であり、データ圧縮方法の
導入や装置のハードウエア化によって問題点を補い、C
ADシステム等の図面入力装置に用いられている。
Of these methods, the method of (3) is the most realistic even though it has a problem, and the problem is compensated by the introduction of the data compression method and the hardware of the device.
It is used in drawing input devices such as AD systems.

【0009】この発明は、このような事情に鑑み、CA
Dシステム等に図面を入力する処理に適し、画像の取り
扱いの簡素化・高速化を可能とした画像処理方法を提供
することを目的とする。
In view of the above circumstances, the present invention is directed to CA
It is an object of the present invention to provide an image processing method suitable for a process of inputting a drawing into a D system or the like and capable of simplifying and speeding up image handling.

【0010】[0010]

【課題を解決するための手段】この発明は、上記の目的
を達成するために、次の手段からなる画像処理方法を提
供するものである。
In order to achieve the above object, the present invention provides an image processing method comprising the following means.

【0011】(1)2値画像データから画像の輪郭を抽
出して折れ線近似することにより、2値画像データを輪
郭ベクトルデータに変換する。
(1) The binary image data is converted into the outline vector data by extracting the outline of the image from the binary image data and performing polygonal line approximation.

【0012】(2)ループを構成する一連の輪郭ベクト
ルに対応する輪郭ベクトルデータ群に対し、塗り潰し側
を示す塗り潰し点の座標データを付加する。
(2) To the contour vector data group corresponding to a series of contour vectors forming the loop, the coordinate data of the filled point indicating the filled side is added.

【0013】(3)塗り潰し点の設定は、次の手順で行
う。
(3) The filling points are set in the following procedure.

【0014】A)前記一連の輪郭ベクトルのうちから任
意に1つを選択する。
A) Arbitrarily select one from the series of contour vectors.

【0015】B)選択した輪郭ベクトルと対向する輪郭
ベクトルを検出する。
B) A contour vector opposite to the selected contour vector is detected.

【0016】C)両輪郭ベクトル間で任意に点をとって
塗り潰し点とする。
C) An arbitrary point between both contour vectors is taken as a filled point.

【0017】[0017]

【作用】この発明では、輪郭ベクトルデータが原画像に
忠実であり、しかも2値画像データに比較してデータ量
が少なくて済む点に着目し、入力画像を輪郭ベクトルデ
ータに変換して処理することとし、処理の高速化・メモ
リの小容量化を図る。ただし、輪郭ベクトルデータをそ
のまま用いて表示処理を行うと、中空状の画像が表示さ
れて視覚的に違和感を生じる。そこで輪郭ベクトルのル
ープに塗り潰し点をあらかじめを付加しておくことと
し、輪郭内部の塗り潰し処理を容易かつ高速に行うこと
を可能とする。
In the present invention, attention is paid to the fact that the contour vector data is faithful to the original image and the data amount is smaller than that of the binary image data, and the input image is converted into the contour vector data for processing. Therefore, the processing speed and memory capacity will be reduced. However, when the display process is performed using the contour vector data as it is, a hollow image is displayed, which causes a visual discomfort. Therefore, filling points are added in advance to the loop of the contour vector, so that the filling process inside the contour can be performed easily and at high speed.

【0018】[0018]

【実施例】以下、この発明の実施例を説明する。この発
明の一実施例に係る画像処理装置のシステム構成の要部
を図2に示す。1はポインティングデバイス2その他か
らの入力を取り込む入力インタフェース、3はCRT
(カソードレイチューブ)装置、4は表示制御を行う表
示インタフェース、5は外部記憶装置、6は外部記憶イ
ンタフェース、7は外部システムとの間で画像データ等
の伝送を行う通信制御インタフェース、8はCPU(中
央処理装置)である。9はメインメモリであり、この実
施例に係る入力画像変換処理その他のプログラム等を格
納している。
Embodiments of the present invention will be described below. FIG. 2 shows a main part of a system configuration of an image processing apparatus according to an embodiment of the present invention. 1 is an input interface for receiving inputs from a pointing device 2 and others, 3 is a CRT
(Cathode ray tube) device, 4 is a display interface for performing display control, 5 is an external storage device, 6 is an external storage interface, 7 is a communication control interface for transmitting image data and the like to and from an external system, and 8 is a CPU. (Central processing unit). A main memory 9 stores the input image conversion processing and other programs according to this embodiment.

【0019】この入力画像変換処理の概略を図1に示
す。また処理対象となる画像の1例を図3に示す。紙や
フィルムに記載された図面(図3(a))はイメージス
キャナ等で2値画像データとして読み取られる。この2
値画像データがこの装置に転送されると、CPUは2値
画像データをメモリに読み込み(図1S1)、輪郭ベク
トルデータに変換する(図1S2)。この変換は既知の
手法により行うことができるので詳しい説明は省略する
が、2値画像データで表された画像の輪郭を追跡して輪
郭ベクトルを生成していき、生成した輪郭ベクトルをル
ープごとにまとめて輪郭ベクトルループのセクションを
設定する。
An outline of this input image conversion processing is shown in FIG. An example of an image to be processed is shown in FIG. The drawing (FIG. 3A) written on paper or film is read as binary image data by an image scanner or the like. This 2
When the value image data is transferred to this device, the CPU reads the binary image data into the memory (FIG. 1S1) and converts it into contour vector data (FIG. 1S2). This conversion can be performed by a known method, so a detailed description thereof will be omitted. However, the contour of the image represented by the binary image data is traced to generate a contour vector, and the generated contour vector is looped for each loop. Collectively set the section of the contour vector loop.

【0020】この後、輪郭ベクトルループの各セクショ
ンについて、塗り潰し点を計算する(図1S3)。塗り
潰し点の計算の様子を図4に示す。この計算では、図4
(a)に示すように、懸案セクションから1つの輪郭ベ
クトルを任意に選択し、選択した輪郭ベクトルをaとす
ると、芯線ベクトルを生成するときと同様に、輪郭ベク
トルaと対向する他の輪郭ベクトルbを検出する。そし
て図4(b)に示すように、輪郭ベクトルa,b間に塗
り潰し点Pを設定する。具体的には、たとえば輪郭ベク
トルaから輪郭ベクトルbに垂線を下ろし、この垂線の
中間点を塗り潰し点Pとする。この塗り潰し点Pの位置
データは、懸案セクションデータに付属データとして付
加される。
After that, the fill point is calculated for each section of the contour vector loop (S3 in FIG. 1). FIG. 4 shows how the filled points are calculated. In this calculation,
As shown in (a), if one contour vector is arbitrarily selected from the pending section and the selected contour vector is a, another contour vector facing the contour vector a is the same as when generating the core vector. b is detected. Then, as shown in FIG. 4B, a filling point P is set between the contour vectors a and b. Specifically, for example, a perpendicular line is drawn from the outline vector a to the outline vector b, and the midpoint of the perpendicular line is set as a filling point P. The position data of the filling point P is added as ancillary data to the pending section data.

【0021】このようにして得られた画像データはファ
イルに登録され、編集処理等に供される。輪郭ベクトル
データによる画像は、図3(b)に示すように、比較的
原画像に忠実である反面、中空の画像となるため、特に
拡大した場合に違和感を生じる。それゆえ画像表示等の
際は、図3(c)に示すように中空部を塗り潰すことと
する。このとき塗り潰し点を参照することにより、画像
の中空部の塗り潰し領域検出を簡易かつ高速に行うこと
ができる。
The image data thus obtained is registered in a file and used for editing processing and the like. As shown in FIG. 3B, the image based on the contour vector data is relatively faithful to the original image, but it is a hollow image, so that a feeling of strangeness occurs especially when enlarged. Therefore, when displaying an image or the like, the hollow portion is filled in as shown in FIG. At this time, by referring to the filled points, it is possible to easily and quickly detect the filled area in the hollow portion of the image.

【0022】[0022]

【発明の効果】以上説明したようにこの発明によれば、
2値画像データを輪郭ベクトルデータに変換して保存す
ることとしているので、データ量が少なくて済み、画像
表示処理あるいは縮小・拡大処理等の高速化、メモリの
小容量化が可能となる。さらに、輪郭ベクトルデータに
塗り潰し点のデータを付加しているので、この塗り潰し
点のデータを参照して画像の中空部の塗り潰し処理を行
うことができ、原画像に忠実でかつ視覚的にも違和感を
生じることのない画像を簡易かつ高速に得ることができ
る。
As described above, according to the present invention,
Since the binary image data is converted into the contour vector data and stored, the data amount is small, and the image display processing or the reduction / enlargement processing can be speeded up and the memory capacity can be reduced. Furthermore, since the filling point data is added to the contour vector data, it is possible to fill in the hollow part of the image by referring to this filling point data, which is true to the original image and visually uncomfortable. It is possible to easily and quickly obtain an image that does not cause the image.

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

【図1】この発明の一実施例に係る入力画像変換処理手
順の概略を示すフローチャート。
FIG. 1 is a flowchart showing an outline of an input image conversion processing procedure according to an embodiment of the present invention.

【図2】図1の実施例に係る画像処理装置のシステム構
成の要部を示すブロック図。
FIG. 2 is a block diagram showing a main part of a system configuration of the image processing apparatus according to the embodiment of FIG.

【図3】画像の1例を示す説明図。FIG. 3 is an explanatory diagram showing an example of an image.

【図4】塗り潰し点の計算の様子を示す説明図。FIG. 4 is an explanatory diagram showing how to calculate a fill point.

【符号の説明】[Explanation of symbols]

1…入力インタフェース 2…ポインティングデバイス 3…CRT装置 4…表示インタフェース 5…外部記憶装置 6…外部記憶インタフェース 7…通信制御インタフェース 8…CPU 9…メインメモリ a,b…輪郭ベクトルループ P…塗り潰し点 1 ... Input interface 2 ... Pointing device 3 ... CRT device 4 ... Display interface 5 ... External storage device 6 ... External storage interface 7 ... Communication control interface 8 ... CPU 9 ... Main memory a, b ... Contour vector loop P ... Filling point

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 2値画像データから画像の輪郭を抽出し
て折れ線近似することにより、2値画像データを輪郭ベ
クトルデータに変換し、 ループを構成する一連の輪郭ベクトルに対応する輪郭ベ
クトルデータ群に対し、塗り潰し側を示す塗り潰し点の
座標データを付加することとし、 この塗り潰し点の設定は、前記一連の輪郭ベクトルのう
ちから任意に1つを選択し、選択した輪郭ベクトルと対
向する輪郭ベクトルを検出し、両輪郭ベクトル間で任意
に点をとることにより行うことを特徴とする画像処理方
法。
1. A contour vector data group corresponding to a series of contour vectors forming a loop by converting the binary image data into contour vector data by extracting the contour of the image from the binary image data and approximating the polygonal line. On the other hand, the coordinate data of the filling point indicating the filling side is added, and the setting of the filling point is performed by arbitrarily selecting one from the series of contour vectors and selecting the contour vector opposite to the selected contour vector. Is detected and an arbitrary point is set between both contour vectors to perform an image processing method.
JP4091326A 1992-04-13 1992-04-13 Image processing method Pending JPH05290161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4091326A JPH05290161A (en) 1992-04-13 1992-04-13 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4091326A JPH05290161A (en) 1992-04-13 1992-04-13 Image processing method

Publications (1)

Publication Number Publication Date
JPH05290161A true JPH05290161A (en) 1993-11-05

Family

ID=14023331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4091326A Pending JPH05290161A (en) 1992-04-13 1992-04-13 Image processing method

Country Status (1)

Country Link
JP (1) JPH05290161A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8081188B2 (en) 2006-12-25 2011-12-20 Ricoh Company, Limited Image delivering apparatus and image delivery method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8081188B2 (en) 2006-12-25 2011-12-20 Ricoh Company, Limited Image delivering apparatus and image delivery method

Similar Documents

Publication Publication Date Title
CN109168026B (en) Instant video display method and device, terminal equipment and storage medium
CN110827378A (en) Virtual image generation method, device, terminal and storage medium
CN110827379A (en) Virtual image generation method, device, terminal and storage medium
JP2926637B2 (en) Volume rendering apparatus and method suitable therefor
JP2837584B2 (en) How to create terrain data
JPH05290161A (en) Image processing method
JPS6098489A (en) Image data processor
TWI246052B (en) Large graphic data high-speed describing method
JPH06119448A (en) Image processing method
JPH06217110A (en) Image converting method
JP2897876B2 (en) Code data expansion processing method
JPS6063677A (en) Storage system for image information
JP3389840B2 (en) Real-time video synthesis method and recording medium
JP3225633B2 (en) Image data management device
JPH08123980A (en) Three-dimensional figure drawing device
US6510543B1 (en) Method and apparatus for rendering an IC design layout employing graphics files at low zoom-in factors
JP2578965B2 (en) Graphic processing unit
CN116797624A (en) Determination method and device of shielding relation
JP2636273B2 (en) Image processing device
JP2000341510A (en) Communication image display system
JPH04235686A (en) Picture processor
JP2000035782A (en) Image display method
JPH0620040A (en) Image processor
JPH0793522A (en) Picture information processor
JP2000242649A (en) Device and method for retrieving image, and storage medium recorded with the method