JPS62168279A - Processing method for image data - Google Patents
Processing method for image dataInfo
- Publication number
- JPS62168279A JPS62168279A JP61010487A JP1048786A JPS62168279A JP S62168279 A JPS62168279 A JP S62168279A JP 61010487 A JP61010487 A JP 61010487A JP 1048786 A JP1048786 A JP 1048786A JP S62168279 A JPS62168279 A JP S62168279A
- Authority
- JP
- Japan
- Prior art keywords
- circle
- contour
- line
- image data
- point
- 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
- Closed-Circuit Television Systems (AREA)
- Image Analysis (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
発明は画像データ処理方法に係り、特に図形の輪郭線を
抽出する方法に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image data processing method, and particularly to a method for extracting the outline of a figure.
入力した画像のシルエラ1−を形成するには、輪郭線を
取出す必要がある。そこで、従来から画像データ処理の
一手法として輪郭線の抽出がある。In order to form the sillage 1- of the input image, it is necessary to extract the contour line. Therefore, contour line extraction has conventionally been used as a method of image data processing.
この従来の輪郭線抽出法では、図形の輪郭が連続的に描
かれていれば正しく輪郭線を抽出することができる。This conventional contour line extraction method can correctly extract the contour line if the contour of the figure is drawn continuously.
しかしながら、図形の輪郭が不連続な線で構成されてい
るとぎは、この不連続な部分を連続化させて本来の輪郭
線を抽出することはできない。However, when the outline of a figure is made up of discontinuous lines, it is not possible to extract the original outline by making these discontinuous parts continuous.
本発明では、輪郭線を抽出1べさ図形の輪郭に沿って円
を転動さVることにより、輪郭の不連続部分に円を跨ら
せて円と輪つ1(線との接点を求め、この接点を結ぶこ
とにJ二り輪郭の不連続部分を連続化させるにうに画像
データを処理する方法を提供J゛るものである。。In the present invention, by rolling a circle along the contour of a figure to extract the contour line, the circle straddles the discontinuous part of the contour, and the contact point between the circle and the line is The object of the present invention is to provide a method of processing image data in such a way that the discontinuous portions of the contour are made continuous by determining the points of contact and connecting these points of contact.
第1図は本発明を実施するための装置を示すブロック線
図であり、11はTVカメラ、フラットスキャナをはじ
めとづ″る画像人力装置で、例えば原稿をva彰して得
た画像データを画像処理装置12に与える。FIG. 1 is a block diagram showing an apparatus for carrying out the present invention. Reference numeral 11 denotes an image-powered device such as a TV camera or a flat scanner, and numeral 11 is an image-powered device such as a TV camera or a flat scanner, which can capture image data obtained by scanning a manuscript, for example. The image processing device 12 is provided with the following information.
この画像データ処理装置12は、イ)画像入力装置11
からの画像データを図示しないキーボードからの入力に
応じて処理を行ない、その結果をメモリ16に格納する
こと、口)このメモリ16から読出した画像データを表
示装置13上に表示しこの表示画像をオペレータが観察
しつつたとえばスタイラスペンとタブレット、および回
転m入力手段を有する座標入力装置15から所要人力が
与えられて処理作業を行い、処理後のデータをメモリ1
6に書込み画像出力装置14に出力すること、を行うも
のである。This image data processing device 12 includes a) image input device 11;
Processing the image data from the memory 16 in response to input from a keyboard (not shown) and storing the results in the memory 16; While the operator observes, the necessary human power is applied from a coordinate input device 15 having a stylus pen, a tablet, and a rotation m input means to perform the processing operation, and the processed data is stored in the memory 1.
6 and output to the image output device 14.
そして、本発明方法により輪郭抽出する図形のデータは
画像入力装置11から直接入力されるか、あるいは画像
入力装置11からの入力データを画像データ処理装置1
2でデータ処理した上でメモリ16に格納しておき、こ
れを読出して輪郭抽出処理を行う。The data of the figure to be contour extracted by the method of the present invention is input directly from the image input device 11, or input data from the image input device 11 is input to the image data processing device 11.
The data is processed in step 2 and stored in the memory 16, and then read out and subjected to contour extraction processing.
輪郭抽出処理は、まず処理すべき図形をメモリ16の格
納データ中から選択して表示装置13に表示することに
よりオペレータが確認を行う。次いでオペレータがキー
ボード(図示Uず〉を操作して「輪郭線抽出」コマンド
を与えることにより画像データ処理装置12は後)ホす
るような処理を行い輪郭線の抽出を行う。抽出された輪
郭線データはメモリ16に格納された他の画像データと
同様に利用することができる。In the contour extraction process, the operator first selects a figure to be processed from among the data stored in the memory 16 and displays it on the display device 13 for confirmation. Next, when the operator operates the keyboard (not shown) and issues a "contour extraction" command, the image data processing device 12 performs the following processing to extract the contour. The extracted contour data can be used in the same way as other image data stored in the memory 16.
第2図(a)、(b)、(C)、は本発明による輪郭線
抽出の考え方を示したものである。いま輪郭線を抽出す
べき図形が同図(a)に示ずにうに線画として描かれた
家の図形であるどし、この輪郭線に沿って所定半径の円
を転がす。これにより得られた図形と円との接点の集ま
り(同図(b)図示)を順に結ぶことにより同図(C)
に示すような輪郭線が得られる。FIGS. 2(a), (b), and (C) show the concept of contour line extraction according to the present invention. Assuming that the figure whose outline is to be extracted is the figure of a house drawn as a line drawing (not shown in FIG. 2A), a circle of a predetermined radius is rolled along this outline. By sequentially connecting the collection of points of contact between the figure obtained by this and the circle (shown in figure (b)), figure (C) is obtained.
A contour line as shown in is obtained.
第3図乃至第5図は本発明方法における輪郭線抽出手法
を示す、図形つきのフローヂV−トであり、第3図は概
括的動作を示し、第4図および第5図は図形輪郭に沿っ
ての円の転がし方の説明を行うものであり、第4図は輪
郭線が連続の場合、第5図は輪郭線が不連続の場合を示
している。3 to 5 are flowcharts with figures showing the contour line extraction method in the method of the present invention. FIG. 3 shows the general operation, and FIGS. 4 shows a case where the contour line is continuous, and FIG. 5 shows a case where the contour line is discontinuous.
まず第3図において、スタートでは線図として描かれた
家の図形の原稿が与えられたとする(ステップ810)
。この図形につき原稿を上から順に走査して一番最初に
図形と交わる点X(スタート位置)を見つける。次にこ
の点Xに接する円CLを作成する<812>。円の大き
さは予め定めておく。この円CLを図形に接するように
所定方向に所定距離転がiJ(ステップ$13)。そし
てステップ814により円CLと図形の接点の座標(輪
郭線の座標)を(qる。これらステップS13および8
14をスタート位置に戻るまで繰返り−〈ステップ$1
5)。これにより第2図(a)に示ず動作が行われた訳
であり、その結果第2図(b)の接点の集まり図形が得
られる。この1a点の集まりをフローヂV−トどしては
示していないステップにJ:り連続化して第2図(C)
の輸91を線を得る。First, in FIG. 3, assume that at the start, a manuscript of a house shape drawn as a line diagram is given (step 810).
. The document is sequentially scanned for this figure from the top to find the first point X (start position) that intersects with the figure. Next, a circle CL tangent to this point X is created <812>. The size of the circle is determined in advance. This circle CL is rolled iJ for a predetermined distance in a predetermined direction so as to be in contact with the figure (step $13). Then, in step 814, the coordinates of the point of contact between the circle CL and the figure (coordinates of the contour line) are (q).These steps S13 and 8
Repeat step 14 until you return to the starting position - <Step $1
5). As a result, the operation not shown in FIG. 2(a) is performed, and as a result, the shape of the collection of contact points shown in FIG. 2(b) is obtained. This collection of points 1a is converted into a flow chart and made continuous by J: steps not shown in Figure 2 (C).
Get the line 91.
第4図は、図形の最す外側の線が連続の場合の動作を示
しており、スタート(ステップ520)では図形を表わ
寸水平方向の直線Qに対し点へで半径Rの円が接してい
る。ぞしてステップ821では、円の中心Oを図形との
接点Δを中心として時計回り方向に角度θだ()回転し
、○′を得る。Figure 4 shows the operation when the outermost line of the figure is continuous, and at the start (step 520), a circle of radius R touches the straight line Q in the horizontal direction representing the figure at a point. ing. Then, in step 821, the center O of the circle is rotated clockwise by an angle θ ( ) around the contact point Δ with the figure to obtain ○′.
次いでステップ822にJ3いて、点O′を中心とする
円を作成する。この円は直線1と交差り゛る。Next, in step 822, a circle centered at point O' is created. This circle intersects straight line 1.
この円の中心O′から直線Oに垂線を下ろし、この垂線
の直線pとの交点をC1円周との交点をDどしてCD間
の距離(=D)を求める(ステップ523)。次いでス
テップ324にJ:り円の中心O′を直線gに垂直にd
だり持上げ円OJLを作成りる。この結果ステップS2
0と324とを比較するとステップ825に示J−よう
に円0が直線ρに接しながら円Onに移動したことにな
る。A perpendicular line is drawn from the center O' of this circle to the straight line O, and the intersection of this perpendicular line with the straight line p and the circumference of C1 is set as D to find the distance between CDs (=D) (step 523). Next, in step 324, the center O' of the circle is d perpendicular to the straight line g.
Create a lifting circle OJL. As a result, step S2
Comparing 0 and 324, as shown in step 825, circle 0 has moved to circle On while being in contact with straight line ρ.
また第5図は図形の最ら外側の線が不連続の場合の動作
を示しており、スター1〜(ステップ530)では図形
を表わす本来1木の直線が点A、8間で途切れて2木の
直線g 、ρ どなっておす、直線g のIJも直線1
2寄りの端部Δに半径1<の円Oが接している。次にス
テップ831では円の中心Oを図形との接点Δを中心と
して時31回り方向に角度θだけ回転してO′どする。Furthermore, Figure 5 shows the operation when the outermost line of the figure is discontinuous, and in Star 1~ (step 530), the straight line of one tree representing the figure is interrupted between points A and 8, and 2 Straight line g of the tree, ρ, IJ of straight line g is also straight line 1
A circle O with a radius of 1< is in contact with the end Δ closer to 2. Next, in step 831, the center O of the circle is rotated by an angle θ in the direction of 31 around the point of contact Δ with the figure to return to O'.
そしてO′を中心とする円を作成りる(ステップ532
)。Then, a circle centered at O' is created (step 532
).
次にステップ833において円O′の内部に図形の線9
2が含まれているか否かを判断する。そして含まれてい
ないときはざらにO′を角度θだけ回転してOIIとす
る(ステップ534)。この状態で再び円の内部に図形
のW7A!J2が含まれているか否かを判断する(ステ
ップ535)。含まれていないときはステップ834に
戻る。Next, in step 833, a graphic line 9 is placed inside the circle O'.
2 is included. If it is not included, O' is roughly rotated by an angle θ and set as OII (step 534). In this state, the shape W7A is again inside the circle! It is determined whether J2 is included (step 535). If it is not included, the process returns to step 834.
この結果、円の内部に図形の線12が含まれるようにな
ったらステップ836により回転を終了し点Bつまり直
線ρ の最も直glfJ1寄りの端部の点Bの位置座標
を求める。点Bの位置座標が求められたら点Bから直線
fJ2に対して垂直にRだりに離れた点をOLLとして
円Onを作成する(ステップ537)。この結果ステッ
プ830と837とを比較づると、ステップS38に示
ずJ:うに円Oが直線9 、Q2に)? l、イjがら
円Onに移ωJしたことにイiる。As a result, when the line 12 of the figure is included inside the circle, the rotation is completed in step 836, and the position coordinates of point B, that is, the end of the straight line ρ closest to glfJ1 are determined. Once the positional coordinates of point B have been determined, a circle On is created with OLL as a point that is perpendicular to straight line fJ2 and separated from point B by R or so (step 537). As a result, if we compare steps 830 and 837, we can see that the sea urchin circle O is straight line 9, Q2)? I like that ωJ moved from l to circle On.
本発明は上述のJ:うに、輪郭線を抽出リベき図形の輪
郭に沿って円を転iI!IjさせることにJ:す、輪郭
の不連続部分に円を跨らUて円と輪I7](線との交点
を求め、この交点を結ぶことにJ:り輪郭の不連続部分
を連続化させるJ、うに画像データ処理1−るJ:うに
したため、図形の輪郭線が途切れていてしこれを連続化
して輪郭線を形成することができる。The present invention is based on the above-mentioned J: Extract the contour line and roll a circle along the contour of the figure. To make Ij, cross the circle to the discontinuous part of the contour and make the circle and ring I7] (Find the intersection with the line and connect this point of intersection J: To make the discontinuous part of the contour continuous Image Data Processing 1 - Since the image data processing 1 is done, the outline of the figure is broken and can be made continuous to form the outline.
第1図は本発明方法を実施するための装置を示1ブロッ
ク腺図、第2図(a)、(b)、(C)は本発明におけ
る図形処理の基本的手法の説明図、第3図乃至第5N【
51本発明方法における輪郭線抽出手法を示すフローヂ
ャートである。
C[・・・円、△・・・円と図形どの接点。
第1図
((1,) (b) (C)莞2図FIG. 1 is a 1-block diagram showing an apparatus for carrying out the method of the present invention, FIGS. Figures to 5th N [
51 is a flowchart showing a contour line extraction method in the method of the present invention. C[...Circle, △...Which contact point between the circle and the figure? Figure 1 ((1,) (b) (C) Guan 2 Figure
Claims (1)
ておき、このメモリから読出したデータを処理して前記
図形の輪郭線を抽出する画像データの処理方法において
、 前記図形の輪郭に沿って円を転動させることにより該輪
郭の不連続部分に前記円を跨らせて円と輪郭線の2つの
端部との各接点を求め、これら接点同士を結ぶことによ
り前記輪郭の不連続部分を連続化させるように画像デー
タを処理するようにしたことを特徴とする画像データ処
理方法。[Scope of Claims] An image data processing method in which data of a figure whose outline is to be extracted is stored in a memory in advance, and the data read from the memory is processed to extract the outline of the figure, comprising: By rolling a circle along the contour of the figure, straddling the circle over discontinuous parts of the contour, finding each contact point between the circle and the two ends of the contour line, and connecting these contact points with each other. An image data processing method characterized in that image data is processed so as to make discontinuous portions of the contour continuous.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61010487A JPS62168279A (en) | 1986-01-21 | 1986-01-21 | Processing method for image data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61010487A JPS62168279A (en) | 1986-01-21 | 1986-01-21 | Processing method for image data |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62168279A true JPS62168279A (en) | 1987-07-24 |
Family
ID=11751525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61010487A Pending JPS62168279A (en) | 1986-01-21 | 1986-01-21 | Processing method for image data |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62168279A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2643996A1 (en) * | 1989-03-04 | 1990-09-07 | Brother Ind Ltd | DEVICE FOR CONVERTING CONTOUR DATA INTO POINT DATA, INCLUDING MEANS TO ENSURE THE CONTINUITY OF VISIBLE REPRESENTATIONS REPRODUCED BY MEANS OF POINT DATA |
JP2008144456A (en) * | 2006-12-08 | 2008-06-26 | Sumitomo (Shi) Construction Machinery Manufacturing Co Ltd | Hydraulic oil cleaning device of hydraulic breaker |
-
1986
- 1986-01-21 JP JP61010487A patent/JPS62168279A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2643996A1 (en) * | 1989-03-04 | 1990-09-07 | Brother Ind Ltd | DEVICE FOR CONVERTING CONTOUR DATA INTO POINT DATA, INCLUDING MEANS TO ENSURE THE CONTINUITY OF VISIBLE REPRESENTATIONS REPRODUCED BY MEANS OF POINT DATA |
JP2008144456A (en) * | 2006-12-08 | 2008-06-26 | Sumitomo (Shi) Construction Machinery Manufacturing Co Ltd | Hydraulic oil cleaning device of hydraulic breaker |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3574170B2 (en) | Distributed image processing device | |
JPS6042990B2 (en) | Pattern recognition method | |
WO2020220832A1 (en) | Method and apparatus for achieving projection picture splicing, and projection system | |
JPS62168279A (en) | Processing method for image data | |
JP2809762B2 (en) | Figure shaping device | |
JP2735197B2 (en) | Graphic input device | |
JPH065545B2 (en) | Figure recognition device | |
JPH0953915A (en) | Method for recognizing overlapping state | |
JP2846486B2 (en) | Image input device | |
JP3487494B2 (en) | Menu selection method and device | |
CN105930813A (en) | Method for detecting line text under any natural scene | |
US20240412401A1 (en) | Image processing device, image processing method, and storage medium | |
JP2803736B2 (en) | Character recognition method | |
JPS60157681A (en) | Image shape unevenness detection method | |
JPH04261259A (en) | Correction device for image data | |
JP3426005B2 (en) | Line figure input device | |
JP2641249B2 (en) | Symbol figure arrangement method | |
JP2935331B2 (en) | Figure recognition device | |
JPS6041176A (en) | Pattern matching method | |
JP2005173940A (en) | Image processing method, image processor and computer program | |
CN118071592A (en) | A barcode image processing method and device based on cigarette accessories | |
JPH08123964A (en) | Method and device for registering model pattern | |
JPS6228884A (en) | Detection object image detection method | |
JPS63250787A (en) | How to cut out characters | |
JPS63204469A (en) | Drawing processing system |