JPH0488580A - Line segment integrating system - Google Patents
Line segment integrating systemInfo
- Publication number
- JPH0488580A JPH0488580A JP2204919A JP20491990A JPH0488580A JP H0488580 A JPH0488580 A JP H0488580A JP 2204919 A JP2204919 A JP 2204919A JP 20491990 A JP20491990 A JP 20491990A JP H0488580 A JPH0488580 A JP H0488580A
- Authority
- JP
- Japan
- Prior art keywords
- information
- line
- line segments
- line width
- image
- 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
Links
Landscapes
- Image Processing (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、画像データの圧縮に利用される線分統合化シ
ステムに関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a line segment integration system used for compressing image data.
従来の技術
従来より、例えば地図等のラスター画像を入力し、その
ラスター画像を線分で表現することでデータの圧縮を行
うデータの画像ラスター・ベクタ変換が行われている。2. Description of the Related Art Conventionally, image raster-vector conversion of data has been performed, which involves inputting a raster image, such as a map, and compressing the data by expressing the raster image with line segments.
この画像ラスター・ベクタ変換では、ラスター画像に対
して細線化を行い、次に細線化で抽出された連続した線
分に対して一定の閾値で線分を統合化する方法が用いら
れていた。In this image raster-vector conversion, a method has been used in which a raster image is thinned, and then continuous line segments extracted by thinning are integrated using a certain threshold.
発明が解決しようとする課題
しかしながら、この従来の方法では、線幅が大きい所で
も小さい所でも同じ閾値で線分の統合を行うため、採用
する閾値の値によって統合化した線分が原画像を正確に
表現することができな(・という問題があった。Problems to be Solved by the Invention However, in this conventional method, line segments are integrated using the same threshold regardless of whether the line width is large or small. There was a problem that I couldn't express it accurately.
本発明の目的は、線幅情報を用いて線分の統合を行うこ
とで、線幅が大きい所でも小さい所でも正確に線分の統
合を行うことができ、しかも情報の圧縮率を向上できる
線分統合化システムを提供することにある。An object of the present invention is to integrate line segments using line width information, so that line segments can be integrated accurately even in areas where the line width is large or small, and the information compression rate can be improved. The purpose of this invention is to provide a line segment integration system.
課題を解決するための手段
上記目的を達成するために、本発明の線分統合化方法は
、ラスター画像を入力する画像入力装置と、ラスター画
像を線分で表現することでデータの圧縮を行う画像情報
処理装置を有し、画像情報処理装置はラスター画像より
抽出された線幅情報を持つ線分が連続している場合に、
線幅情報を用いて線分の統合化を行うように構成されて
いる。Means for Solving the Problems In order to achieve the above object, the line segment integration method of the present invention includes an image input device that inputs a raster image, and compresses data by expressing the raster image as line segments. The image information processing device has an image information processing device, and the image information processing device performs processing when line segments having line width information extracted from a raster image are continuous.
It is configured to integrate line segments using line width information.
作用
本発明は、上記構成により、線幅情報を用いて線分統合
化をすることで、ラスター画像を正確に表すベクタ画像
を抽出することができる。Effects According to the present invention, with the above configuration, a vector image that accurately represents a raster image can be extracted by integrating line segments using line width information.
実施例
以下、本発明の一実施例について図面を参照しながら説
明する。第1図は本発明の一実施例における線分統合化
システムのブロック結線図である。EXAMPLE Hereinafter, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a line segment integration system according to an embodiment of the present invention.
また、第2図は線分統合化システムの外観を示す正面図
である。Moreover, FIG. 2 is a front view showing the external appearance of the line segment integration system.
第1図において、1は画像情報処理装置であり、ワーク
ステーションで構成される。2は画像入力装置であり、
スキャナで構成される。In FIG. 1, reference numeral 1 denotes an image information processing device, which is composed of a workstation. 2 is an image input device;
Consists of a scanner.
画像情報処理装置1は、キーボード16および0RT1
7を付加して構成される。画像情報処理装置1の内部に
は、中央処理装置11、主記憶回路12、外部記憶装置
制御部13、外部記憶装置14、インタフェース部15
が設けられている。中央処理装置11はCPUである。The image information processing device 1 has a keyboard 16 and 0RT1.
It is constructed by adding 7. Inside the image information processing device 1, there are a central processing unit 11, a main memory circuit 12, an external storage device control section 13, an external storage device 14, and an interface section 15.
is provided. The central processing unit 11 is a CPU.
インタフェース部16は、中央処理装置11からの命令
を受けて、画像入力装置2との間でデータの送受信やコ
マンドの送受信を行う部分である。インタフェース部1
5は、キーボード16やCRT17との間でのデータの
送受信も中央処理装置11からの命令で行う。外部記憶
装置制御部13は、外部記憶装置14との間のデータ送
受信を中央処理装置11かもの命令で行う部分である。The interface section 16 is a section that receives commands from the central processing unit 11 and sends and receives data and commands to and from the image input device 2 . Interface part 1
5 also transmits and receives data to and from the keyboard 16 and CRT 17 based on instructions from the central processing unit 11. The external storage device control unit 13 is a part that transmits and receives data to and from the external storage device 14 according to instructions from the central processing unit 11.
外部記憶装置14はハードディスクである。外部記憶装
置14の中には、画像データ領域141、統合化方法プ
ログラム領域142、芯線情報領域143、統合化芯線
領域144が設けられている。主記憶回路12は、画像
情報処理装置1における主記憶回路である。The external storage device 14 is a hard disk. The external storage device 14 is provided with an image data area 141, an integration method program area 142, a skeleton information area 143, and an integrated skeleton area 144. The main memory circuit 12 is a main memory circuit in the image information processing device 1.
次に動作について説明する。Next, the operation will be explained.
第3図は、本実施例の全体のフローチャートである。第
4図は、統合化を行う線分の例である。FIG. 3 is an overall flowchart of this embodiment. FIG. 4 is an example of a line segment to be integrated.
第4図に示す線分は、点Px(x=o・・・n)を結ぶ
0本の線分から構成されており、点Pxと点Px+1を
結ぶ線分の線幅はWxで表されろ。The line segment shown in Fig. 4 is composed of 0 line segments connecting the points Px (x=o...n), and the line width of the line segment connecting the points Px and Px+1 is expressed as Wx. .
第6図は、線幅情報を持った線分に対して、線分統合化
を行うフローチャートを表している。FIG. 6 shows a flowchart for performing line segment integration on line segments having line width information.
まず、本実施例における全体の処理手順を第3図を参照
しながら説明する。First, the entire processing procedure in this embodiment will be explained with reference to FIG.
画像情報処理装置1に画像データを取り込むため、画像
情報処理装置1は画像入力装置2にコマンドを送り、画
像入力装置2を起動させてデータを画像情報処理装置1
の画像データ領域141に取り込む(ステップ8301
)。次に画像データ領域141に取り込んだ画像に対し
て芯線化を行い、線幅情報を持つ線分を取り出す。芯線
化処理は、「多次元データ構造を用いた図面処理」(電
子情報通信学会論文誌(D)1.tea−D No、4
1985年 大沢、坂内著)に記載された方法で行う(
ステップ8302)。In order to import image data into the image information processing device 1, the image information processing device 1 sends a command to the image input device 2, starts the image input device 2, and transfers the data to the image information processing device 1.
(Step 8301)
). Next, the image captured in the image data area 141 is converted into skeleton lines, and line segments having line width information are extracted. The core line processing is described in "Drawing processing using multidimensional data structure" (Transactions of the Institute of Electronics, Information and Communication Engineers (D) 1.tea-D No. 4
It is performed using the method described in Osawa and Sakauchi (1985) (
Step 8302).
この芯線化処理を画像データ領域141にあるデータに
対して行った結果のデータは、芯線情報領域143に格
納される。この芯線情報領域143には、多くの線分の
データが格納されるが、以下の説明では、第4図に示す
ような一つの連続した線分を対象に説明する。芯線化処
理で抽出されたすべての線分に対して、以下に示す処理
を行えばよいのであるから、第4図に示した一つの連続
した線分を例にしても一般性を失わな℃・。The data resulting from performing this skeletonization process on the data in the image data area 141 is stored in the skeleton information area 143. Although the skeleton information area 143 stores data on many line segments, the following explanation will focus on one continuous line segment as shown in FIG. 4. Since it is sufficient to perform the following processing on all line segments extracted by core line processing, generality is not lost even if the single continuous line segment shown in Fig. 4 is used as an example.・.
芯線情報の統合化を行うために、画像情報処理装置1は
統合化方法プログラム領域142に格納されているプロ
グラムを、外部記憶装置制御部13を通して主記憶回路
12に移動させ、主記憶回路12上にあるプログラムに
従って中央処理装置11が動作し、芯線の統合化を行う
。In order to integrate core line information, the image information processing device 1 moves the program stored in the integration method program area 142 to the main memory circuit 12 through the external storage device control unit 13, and transfers the program stored in the integration method program area 142 to the main memory circuit 12. The central processing unit 11 operates according to a program in the program and integrates the core wires.
芯線情報領域143に格納された情報に対して線幅情報
を用いた統合化を行うことで、構成線分数が少なくデー
タ量が圧縮された情報が統合化芯線領域144に格納さ
れる(ステップ5303)。By integrating the information stored in the skeleton information area 143 using the line width information, information with a reduced number of constituent line segments and a compressed amount of data is stored in the integrated skeleton area 144 (step 5303 ).
次に線幅情報を用いた線分統合化方法を第4図と第6図
を参照しながら説明する。Next, a line segment integration method using line width information will be explained with reference to FIGS. 4 and 6.
第4図に示す点Px(x=o・・・n)からなる線分の
統合化を行うものとする。まず、第6図(ステップ56
01)に示すようにi =O,j = 1と初期化する
。Iは、線分の統合化の対象となる線分の開始点を表し
、Jは線分の統合化の終了点を表す。It is assumed that line segments consisting of points Px (x=o...n) shown in FIG. 4 are integrated. First, in Fig. 6 (step 56
01), initialize i = O, j = 1. I represents the starting point of the line segment to be integrated, and J represents the end point of the line segment integration.
次にPjが連続線分の終了点であるかどうかのチエツク
を行う(ステップ8502)。P」が連続線分の終了点
であるなら、ステップ5610に示すようにPiからP
」を線分PiPjで表して処理を終える。現在はi =
O,j = 1であるのでステップS 503の方に進
む。ステップS 603では、Px(x=i ・・・
」)の最小2乗直線りの方程式Eを計算する。最小2乗
直線とは、与えられた各点との距離の総和を最小にする
直線のことであり、この場合、Px(x−1・・・j)
との距離の総和を最小にする直線のことである。この最
小2乗直線の計算方法は、例えば、「文字・図形認識技
術の基礎」(森俊二著、オーム社、1984年)に記載
されている方法を用いれば良い。Next, it is checked whether Pj is the end point of a continuous line segment (step 8502). P'' is the end point of the continuous line segment, then from Pi to P as shown in step 5610.
'' is represented by a line segment PiPj and the process is completed. Currently i =
Since O,j = 1, the process advances to step S503. In step S603, Px(x=i...
'') to calculate the least squares straight line equation E. A least squares straight line is a straight line that minimizes the sum of distances from each given point, and in this case, Px (x-1...j)
A straight line that minimizes the sum of the distances between As a method for calculating this least squares straight line, for example, the method described in "Fundamentals of Character/Graphic Recognition Technology" (Shunji Mori, Ohmsha, 1984) may be used.
次に1各点Px(x=i・・・J)と最小2乗直線りと
の距離Dxを計算する(ステップS 504 )すべて
の点Px (x= i・・・」)において、Dx<Wx
/T(条件α)が満足されるならばステップ5609に
進み、満足されなければステップS 506に進む(ス
テップ8505)。この時、Wxは点Pxにおける線幅
であり、Tはある定数を表す。Next, calculate the distance Dx between each point Px (x=i...J) and the least squares straight line (step S504). At all points Px (x=i..."), Dx< Wx
If /T (condition α) is satisfied, the process proceeds to step 5609; if not, the process proceeds to step S506 (step 8505). At this time, Wx is the line width at point Px, and T represents a certain constant.
現在は、i=o、j=1であるので、点P1と点P」の
間の最小2乗直線は、線分PiPjと同じである。従っ
て、各点Px (x−0,1)での距離Dxは0である
ため、各点Px (x=0,1 )はすべて条件αを満
たす。従って、ステップ5609に進む。ステップS
509でj=2となり、次に同様にして、ステップS
604まで進み、点Px(x=:O・・・2)と最小2
乗直線りとの間の距離が条件αで示された条件を満たす
かが調べられる。Currently, i=o and j=1, so the least squares straight line between the points P1 and P'' is the same as the line segment PiPj. Therefore, since the distance Dx at each point Px (x-0, 1) is 0, each point Px (x=0, 1) all satisfies the condition α. Therefore, the process advances to step 5609. Step S
In step 509, j=2, and then in the same manner, step S
Proceed to 604, point Px (x=:O...2) and minimum 2
It is checked whether the distance between the vehicle and the vehicle line satisfies the condition indicated by the condition α.
処理が進んで1−0、J=3になったと仮定する。この
時、ステップ5506で示された条件αが満足されない
とする。この時はステップ5506に進み、H=2とな
る。Assume that the processing has progressed to 1-0, J=3. At this time, it is assumed that the condition α shown in step 5506 is not satisfied. At this time, the process advances to step 5506, where H=2.
ステップ5607では、点POから点P2の間の線分を
線分POP2で近似する。In step 5607, the line segment between point PO and point P2 is approximated by line segment POP2.
次に、1−j−2として(ステップ8508)、ステッ
プ5502に進む。Next, the process is set as 1-j-2 (step 8508) and the process proceeds to step 5502.
これをj = nになるまで繰り返し、j==nがステ
ップ5502で満足された場合には、ステップ8510
に進み、点P1から点Pnの間の線分P1Pnで近似し
て終了する。This is repeated until j = n, and if j = = n is satisfied in step 5502, step 8510
Then, approximation is performed using a line segment P1Pn between point P1 and point Pn, and the process ends.
なお、第4図に示した連続した線分の例で説明したが、
本発明は線幅情報を持つ任意の連続した線分に対して同
様に適応できるのは明らかである。Although the explanation was given using the example of continuous line segments shown in Fig. 4,
It is clear that the present invention is equally applicable to any continuous line segment having line width information.
発明の効果
以上のように本発明によれば、線幅情報を用いて線分の
統合を行うことで、線幅が大きい所でも小さい所でもラ
スター画像を正確に表すベクタ画像を抽出して、正確な
線分の統合を行うことができる。また、芯線化を用いて
画像データをベクタ化したデータに対して更にデータの
圧縮を行うことができる。このため、情報の圧縮率を向
上して画像情報をより少ない容量で表現でき、情報の格
納領域を減らすことが可能であるだけではなく、データ
の表示速度も速くすることができる。Effects of the Invention As described above, according to the present invention, by integrating line segments using line width information, a vector image that accurately represents a raster image can be extracted regardless of whether the line width is large or small. Accurate line segment integration can be performed. Furthermore, it is possible to further compress data obtained by vectorizing image data using skeletonization. Therefore, it is possible not only to improve the information compression rate and express image information with a smaller capacity, and to reduce the information storage area, but also to increase the data display speed.
第1図は本発明の一実施例における線分統合化システム
のブロック結線図、第2図は同実施例の外観を示す正面
図、第3図は同実施例における線分統合化システムの動
作を説明するフローチャート、第4図は同実施例におけ
る線分統合化システムの動作を説明する連続した線分の
概念図、第6図は同実施例における線分統合化システム
の動作を説明するフローチャートである。
1・・・画像情報処理装置、2・・・画像入力装置、1
1・・・中央処理装置、12・・・主記憶回路、13・
・・外部記憶装置制御部、14・・・外部記憶装置、1
6・・・インターフェース部、16・・・キーボード、
17・・・RT0
代理人の氏名 弁理士 粟 野 重 孝 ほか1名第2
図
1゜
第6図Fig. 1 is a block wiring diagram of a line segment integration system according to an embodiment of the present invention, Fig. 2 is a front view showing the appearance of the embodiment, and Fig. 3 is an operation of the line segment integration system according to the embodiment. FIG. 4 is a conceptual diagram of continuous line segments to explain the operation of the line segment integration system in the same embodiment, and FIG. 6 is a flow chart to explain the operation of the line segment integration system in the same embodiment. It is. 1... Image information processing device, 2... Image input device, 1
1... Central processing unit, 12... Main memory circuit, 13.
...External storage device control unit, 14...External storage device, 1
6...Interface part, 16...Keyboard,
17...RT0 Name of agent Patent attorney Shigetaka Awano and 1 other person 2nd
Figure 1゜Figure 6
Claims (1)
画像を線分で表現することでデータの圧縮を行う画像情
報処理装置を有し、前記画像情報処理装置は前記ラスタ
ー画像より抽出された線幅情報を持つ線分が連続してい
る場合に、前記線幅情報を用いて線分の統合化を行うこ
とを特徴とする線分統合化システム。The image information processing device includes an image input device that inputs a raster image, and an image information processing device that compresses data by expressing the raster image with line segments, and the image information processing device includes line width information extracted from the raster image. 1. A line segment integration system characterized in that when line segments having a continuous line width are continuous, the line segments are integrated using the line width information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2204919A JPH0488580A (en) | 1990-08-01 | 1990-08-01 | Line segment integrating system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2204919A JPH0488580A (en) | 1990-08-01 | 1990-08-01 | Line segment integrating system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0488580A true JPH0488580A (en) | 1992-03-23 |
Family
ID=16498546
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2204919A Pending JPH0488580A (en) | 1990-08-01 | 1990-08-01 | Line segment integrating system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0488580A (en) |
-
1990
- 1990-08-01 JP JP2204919A patent/JPH0488580A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114842123B (en) | Three-dimensional face reconstruction model training and three-dimensional face image generation method and device | |
| CN113689372B (en) | Image processing method, apparatus, storage medium, and program product | |
| JP6137916B2 (en) | Signal processing apparatus, signal processing method, and signal processing system | |
| US12277801B2 (en) | Gesture recognition method, device and computer-readable storage medium | |
| CN111710035A (en) | Face reconstruction method and device, computer equipment and storage medium | |
| US5222158A (en) | Pattern recognition apparatus | |
| KR20220153667A (en) | Feature extraction methods, devices, electronic devices, storage media and computer programs | |
| CN111144374B (en) | Facial expression recognition method and device, storage medium and electronic equipment | |
| KR102917944B1 (en) | Fitting costume-including segmentation generation method for virtual fitting | |
| CN115299048A (en) | Image coding method, image decoding method, image coding device, image decoding device, image coding and decoding device and codec | |
| CN113610724B (en) | Image optimization method and device, storage medium and electronic device | |
| CN113610879B (en) | Training method and device for depth prediction model, medium and electronic device | |
| US8520951B2 (en) | Image processing method, image processing apparatus, and computer readable storage medium | |
| JPH0488580A (en) | Line segment integrating system | |
| CN118175389B (en) | Video processing method, system, electronic device and storage medium | |
| CN120107834A (en) | UAV image semantic transmission method and system | |
| CN118969008A (en) | Voice-driven face video generation method, system, storage medium and electronic device | |
| WO2024140973A1 (en) | Action counting method and related device | |
| CN117078857A (en) | Reconstruction method and device of three-dimensional model, electronic equipment and computer readable medium | |
| CN116503781A (en) | A Video Object Detection Method Based on Multi-Mobile-Edge Collaborative Reasoning | |
| CN114862720A (en) | Canvas restoration method and device, electronic equipment and computer readable medium | |
| CN116959044B (en) | Target object detection method, device, computer-readable medium, and electronic device | |
| JPH04155589A (en) | Segment integrating method | |
| CN115766976B (en) | Image display system and control method thereof | |
| CN119693769B (en) | Image generation model construction method, image generation method and device |