JPH07104955B2 - Line figure shaping method - Google Patents

Line figure shaping method

Info

Publication number
JPH07104955B2
JPH07104955B2 JP62057997A JP5799787A JPH07104955B2 JP H07104955 B2 JPH07104955 B2 JP H07104955B2 JP 62057997 A JP62057997 A JP 62057997A JP 5799787 A JP5799787 A JP 5799787A JP H07104955 B2 JPH07104955 B2 JP H07104955B2
Authority
JP
Japan
Prior art keywords
pixel
point
line
bending
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.)
Expired - Lifetime
Application number
JP62057997A
Other languages
Japanese (ja)
Other versions
JPS63223978A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62057997A priority Critical patent/JPH07104955B2/en
Publication of JPS63223978A publication Critical patent/JPS63223978A/en
Publication of JPH07104955B2 publication Critical patent/JPH07104955B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔概要〕 屈曲点を種類分けし、対抗する屈曲点にお互いを打ち消
し合うような重みを付け、近傍における平均化処理を行
うことで細かな変動を消去し、線図形を整形する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The bending points are classified into different types, weights are applied to the opposing bending points so as to cancel each other out, and fine variability is eliminated by performing averaging processing in the vicinity. Shape

〔産業上の利用分野〕[Industrial application field]

本発明は、細線化処理され、分岐点や交差点を取り除い
た線図形の整形方法、特に屈曲点の抽出方式に関する。
The present invention relates to a method of shaping a line figure that has undergone thinning processing and has removed branch points and intersections, and particularly to a method of extracting bending points.

文字、白地図、設計図面などの図形は線図形であるが、
これらを電子計算機のメモリに格納するには膨大なメモ
リ容量を必要とする。このため、ベクトル化と呼ばれる
処理によりデータ量を圧縮して格納する方法がとられ
る。これは線図形を、直線ならば端点の座標値のみで、
折線ならば端点と屈曲点の座標値のみで表現する処理で
ある。
Shapes such as letters, blank maps, and design drawings are line shapes,
A huge memory capacity is required to store these in the memory of the computer. Therefore, a method of compressing and storing the data amount by a process called vectorization is adopted. This is a line figure, if it is a straight line, only the coordinate values of the end points,
If it is a polygonal line, it is a process expressed only by the coordinate values of the end point and the bending point.

ベクトル化処理には、細線化処理により線図形を幅1
(画素1個分の幅)の線にした後で行う場合と、原図形
に直接行う場合があるが、本発明は細線化された図形に
対して行う方法である。
For the vectorization process, the line figure width is reduced to 1 by the thinning process.
The present invention is a method for a thinned figure, although it may be performed after the line has a width of one pixel or directly on the original figure.

細線化処理された図形では線部分の画素値は1で、周囲
は0、または線部分の画素値は0で、周囲は1である。
以下においては前者の場合のみについて説明するが、後
者の場合においても同様である。線部分を表す1の連続
性について2種類の定義があり、画像上の任意の3×3
の近傍の中心の画素の値が1である場合、上下左右4方
向の1のみが中心の1に連続していると考える4連結
と、斜め方向へも連結性を考える8連結である。例えば
第2図(a)は4連結の定義では細線であるが、8連結
の定義では細線ではない。第2図(a)を8連結で細線
化すると第2図(b)あるいは第2図(c)となる。以
下では連結性を8連結として説明するが、4連結の場合
も同様である。
In the thinned figure, the pixel value of the line portion is 1, the surrounding area is 0, or the pixel value of the line portion is 0 and the surrounding area is 1.
Although only the former case will be described below, the same applies to the latter case. There are two types of definitions for the continuity of 1 representing a line part, and any 3 × 3 on the image
When the value of the pixel at the center in the vicinity of 1 is 1, there are 4 connections in which it is considered that only 1s in the four directions of up, down, left and right are continuous to the center 1, and 8 connections in which the connectivity is considered in the diagonal direction. For example, FIG. 2A shows a thin line in the definition of 4-connection, but not a thin line in the definition of 8-connection. When FIG. 2 (a) is thinned by 8 connections, it becomes FIG. 2 (b) or FIG. 2 (c). In the following description, the connectivity is described as 8 connections, but the same applies to the case of 4 connections.

細線における端点は、第3図に示す近傍パターンのいず
れかであり、入力画像の中でこれらのいずれかのパター
ンを持つ部分を探し、その中心の画素値として1を、そ
れ以外の場合には0を出力するような論理を組めば検出
することができる。このように近傍パターンを定義し、
そのパターンをもつ部分の中心の画素値として1または
0を、それ以外のパターンをもつ部分の中心の画素値と
して0または1を与える処理はハードウェア化が容易な
論理フィルタリングと言う処理として知られている。
The end point in the thin line is one of the neighboring patterns shown in FIG. 3, and a portion having any one of these patterns is searched for in the input image, and 1 is set as the pixel value of the center thereof, otherwise. It can be detected by constructing a logic that outputs 0. Defining the neighborhood pattern like this,
The process of giving 1 or 0 as the pixel value of the center of the part having the pattern and 0 or 1 as the pixel value of the center of the part having the other pattern is known as a process called logic filtering which is easy to implement in hardware. ing.

同様に細線における分岐点は、第4図に示すパターン
で、交差点は第5図に示すパターンで与えられるため、
論理フィルタリングによりこれらを検出した画像を得
て、原画像と排他的論理和をとることにより、原画像か
ら分岐点と交差点を取り除き、本発明が入力する画像を
得ることができる。
Similarly, the branch points in the thin line are given in the pattern shown in FIG. 4, and the intersections are given in the pattern shown in FIG.
By obtaining an image in which these are detected by logical filtering and taking an exclusive OR with the original image, the branch point and the intersection are removed from the original image, and the image input by the present invention can be obtained.

〔従来の技術〕[Conventional technology]

屈曲点の検出方式としては、細線化2値画像中の線上の
各画素において、その近傍にある線上の画素との位置関
係から曲率を求め、曲率が急激に変化する画素の座標を
屈曲点とする方法がある。例えば線図形が第6図の如く
であれば、画素Pについて距離3の位置にある線上の画
素との関係から求めた角度θがあるイキ値以上であれば
Pを屈曲点とする方法である。
As a method of detecting the bending point, for each pixel on the line in the thinned binary image, the curvature is obtained from the positional relationship with the pixels on the line in the vicinity thereof, and the coordinates of the pixel at which the curvature sharply changes are defined as the bending point. There is a way to do it. For example, when the line figure is as shown in FIG. 6, if the angle θ obtained from the relationship between the pixel P and the pixel on the line at the distance 3 is greater than a certain value, then P is the bending point. .

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

しかしこの方式ではある距離離れた画素値を参照する必
要があるため、メモリをランダム・アクセスする必要が
あり、ハードウェア化が困難であるため、処理速度が遅
い。
However, in this method, since it is necessary to refer to pixel values separated by a certain distance, it is necessary to randomly access the memory, and it is difficult to realize hardware.

本発明は、ハードウェア化が容易なアルゴリズムであ
り、高速に屈曲点を検出できる。
The present invention is an algorithm that can be easily implemented in hardware, and can detect a bending point at high speed.

〔問題点を解決するための手段〕[Means for solving problems]

本発明では屈曲点のパターンを種類分けし、点対称のパ
ターンの関係である対の屈曲点の画素にお互いを打ち消
し合うような正負の対抗する重みを付け、重み付けした
画像を、平均化することにより、直線部で近傍に現れる
ような対抗する重みをもつ点対称パターンの屈曲点同士
は互いの値が打ち消し合って検出されないようにし、曲
率が大きく変化する屈曲点のみが打ち消されずに検出さ
れるようにする。
In the present invention, the bending point patterns are classified into different types, positive and negative opposing weights that cancel each other are added to the pixels of the pair of bending points, which have a point-symmetrical pattern relationship, and the weighted images are averaged. Thus, the bending points of the point symmetric pattern having opposing weights appearing in the neighborhood in the straight line portion are not detected because their values cancel each other out, and only the bending points where the curvature largely changes are detected without being cancelled. To do

以下図面で説明する。第7図は屈曲点のパターンであ
る。〜は135°の屈曲点で〜は90°の屈曲点で
ある。
This will be described below with reference to the drawings. FIG. 7 is a pattern of bending points. Is the inflection point of 135 ° and is the inflection point of 90 °.

第8図(1)、(2)は直線の線図形の例を表す。メモ
リに記憶させるため図形は正方格子上に量子化され、直
線は画素単位に見ると折線になる(第7図の屈曲点パタ
ーンとが現れている。)。第8図(1)は(2)よ
り傾斜が急で、傾斜が急なものほど1の繰り返しが短
い。
FIGS. 8 (1) and 8 (2) show examples of straight line figures. The graphic is quantized on a square lattice to be stored in the memory, and the straight line becomes a broken line when viewed in pixel units (the bending point pattern in FIG. 7 appears). In FIG. 8 (1), the slope is steeper than that of (2), and the steeper the slope, the shorter the repetition of 1.

しかし第8図(1)、(2)の例においては各々の直線
の端点のみが重要であり、途中の屈曲点は意味を持たな
い。つまり第8図(1)、(2)における直線部には画
素単位に見ると多数の屈曲点が含まれているが、特に各
点が微細で多数ある場合、人間の眼には直線に見えるの
でこれらの屈曲点は検出する必要がない。両直線
(1)、(2)において途中の屈曲点は点対称パターン
関係にある1対のパターンからなっている。そこでこれ
ら途中の点対称パターン関係にある屈曲点として検出し
ないようにし、途中の直線部を省略すれば、これらの直
線は両端点の座標のみで表現することができる。
However, in the examples of FIGS. 8 (1) and 8 (2), only the end points of the respective straight lines are important, and the inflection points in the middle have no meaning. That is, although the straight line portion in FIGS. 8 (1) and 8 (2) includes a large number of bending points when viewed on a pixel-by-pixel basis, it looks straight to the human eye especially when each point is minute and numerous. Therefore, it is not necessary to detect these bending points. The bending points in the middle of both straight lines (1) and (2) are composed of a pair of patterns having a point-symmetrical pattern relationship. Therefore, these straight lines can be expressed only by the coordinates of both end points by not detecting them as bending points having a point symmetric pattern relationship on the way and omitting the straight line part on the way.

第9図は折線の例である。第9図においてはで示され
る画素を屈曲点とする折線と見るのが自然である。本発
明は第8図(1)、(2)に見られる直線上の屈曲点は
検出せず、第9図ののような屈曲点を検出するもので
ある。
FIG. 9 is an example of broken lines. In FIG. 9, it is natural to view the pixel indicated by as a broken line having a bending point. The present invention does not detect the bending point on the straight line shown in FIGS. 8 (1) and 8 (2), but detects the bending point as shown in FIG.

第9図の折線屈曲部に現れる屈曲点を、直線上に現れ
る屈曲点と区別して検出するため、本発明では屈曲点の
パターンを種類分けし、点対称のパターンをもつ対の関
係にある屈曲点同士に正負の打ち消し合う重みを与え、
異なる種類の点対称パターンの屈曲点同士では重みを異
ならしめるようにするもので、たとえば次の如き重み付
けを行う。第7図〜の屈曲点のパターンでは中心の
画素の値として81を、〜に対しては、−81を、
に対しては162を、、に対しては−162を付ける。
In order to detect the bending point appearing at the bent line bending portion of FIG. 9 by distinguishing it from the bending point appearing on the straight line, the present invention classifies the patterns of the bending points and has a paired bending with a point symmetrical pattern. Give positive and negative weight to each other,
The bending points of different types of point-symmetric patterns are made to have different weights. For example, the following weighting is performed. In the pattern of the inflection points shown in FIGS. 7A and 7B, 81 is set as the value of the central pixel and −81 is set for
Add 162 for, and -162 for.

第10図(1)は第8図(1)の直線に、第10図(2)は
第9図の折線に重み付けを行った結果である。第8図
(2)では左下から11と1が2個続き(第1列とす
る。)、次に右斜め上方に1段上がって11と1が2個続
く(第2列とする。)が、第10図(1)の左下端の−81
は上記第1列の右端の1に対応し(この右端の1は第7
図のパターンの中心の1に該当し、従って重みは−8
1。)、第10図(1)の次の81は上記第2列の左端の1
に対応する(この左端は第7図のパターンの中心に該
当し、従って重みは81。)。以下、同様である。
FIG. 10 (1) is the result of weighting the straight line in FIG. 8 (1), and FIG. 10 (2) is the result of weighting the broken line in FIG. In FIG. 8 (2), two 11's and 1's continue from the lower left (first row), and then go up one step diagonally to the upper right to continue two 11's and 1's (second row). Is -81 at the lower left corner of Fig. 10 (1).
Corresponds to the rightmost 1 in the first column above (the rightmost 1 is the 7th
It corresponds to 1 in the center of the pattern in the figure, so the weight is -8
1. ), 81 next to FIG. 10 (1) is 1 at the left end of the second row.
(The left end corresponds to the center of the pattern in FIG. 7, and therefore the weight is 81.). The same applies hereinafter.

また第9図のは第7図のパターンの中心に該当し、
従って重みは162である。
Also, in FIG. 9 corresponds to the center of the pattern in FIG. 7,
Therefore, the weight is 162.

さてこうして得られた画像に原画像である細線化2値画
像をマスクとして細線化2値画像の値1のあるところだ
け平均化処理を施し、第11図(1)、(2)を得る。
The image thus obtained is subjected to an averaging process only at the portion having the value 1 of the thinned binary image, using the thinned binary image which is the original image as a mask, to obtain (1) and (2) in FIG.

第11図(1)、(2)は次の平均化処理で得られるもの
である。第10図(1)の3×3の領域F1では右上端の画
素値の和は−81、残りの画素の値は0であるからF1内の
画素値の和は−81、これをF1内の画素数9で割ると−9
であり、これを第12図(1)に示すように、F1の中心P1
の画素値とする。第11図(1)の左下の−9はこのよう
にして得られる。同様に領域F2については、同領域内の
画素値の和は81−81=0、従ってF2の中心P2の画素値は
0である。これは第11図(1)上記左下端の−9の右斜
め上方の0に該当する。このような平均化処理を、第8
図(1)で画素値が1の位置だけに行い、第8図(1)
で画素値が0の位置に0を割り付けていくと(原画像で
ある細線化2値画像でマスクすると言う意味。)、第10
図(1)から第11図(1)が得られる。また第10図
(2)の領域F3については、同領域内の画素値の和は−
81+162−81=0、従って第12図(2)に示すようにF3
の中心P3の画素値は0である。第11図(2)の2つの18
の中間の1行上の0はこうして得られる。以下同様にし
て平均化し、第9図でマスクすることで第10図(2)か
ら第11図(2)が得られる。このような(マスク付き)
平均化処理はハードウェア化が容易であり、現在広く用
いられている。
11 (1) and 11 (2) are obtained by the following averaging process. In the 3 × 3 area F1 of FIG. 10 (1), the sum of the pixel values at the upper right corner is −81, and the value of the remaining pixels is 0, so the sum of the pixel values in F1 is −81. When divided by the number of pixels in
As shown in Fig. 12 (1), this is the center P1 of F1.
Pixel value. -9 at the lower left of FIG. 11 (1) is obtained in this way. Similarly, for the area F2, the sum of the pixel values in the area is 81−81 = 0, and thus the pixel value of the center P2 of F2 is 0. This corresponds to 0 on the diagonally upper right side of -9 at the lower left corner of Fig. 11 (1). This averaging process is
8 (1) in FIG. 8 (1).
When 0 is allocated to the position where the pixel value is 0 (meaning masking with the thinned binary image which is the original image),
FIG. 11 (1) is obtained from FIG. (1). For area F3 in Fig. 10 (2), the sum of the pixel values in that area is-
81 + 162-81 = 0, so F3 as shown in Fig. 12 (2)
The pixel value of the center P3 of is 0. Two 18 in Fig. 11 (2)
The 0 in the middle one row of is thus obtained. Thereafter, averaging is performed in the same manner and masking is performed in FIG. 9 to obtain FIGS. 10 (2) to 11 (2). Like this (with mask)
The averaging process is easy to implement in hardware and is currently widely used.

さらに第11図(1)、(2)に上記と同様の平均化処理
を施すことにより、第13図(1)、(2)を得る。
Further, averaging processing similar to the above is performed on FIGS. 11 (1) and 11 (2) to obtain FIGS. 13 (1) and 13 (2).

第13図(1)、(2)の画素の値は−2から4まで分布
しているが、そのうちその値が−2以上2以下のものに
は画素値0を、それ以外の画素には画素値1を割り付け
るような2直化処理により、真の屈曲点の画素にのみ1
が示される、第14図(1)、(2)を得る。このような
2値化処理もハードウェア化が容易で、現在広く用いら
れている。
The pixel values in (1) and (2) of FIG. 13 are distributed from -2 to 4, and the pixel value of 0 is -2 and 2 or less, and the pixel value is 0 for other pixels. By the straightening process such that the pixel value 1 is assigned, only 1 is applied to the pixel at the true bending point.
14 (1) and (2) are obtained. Such binarization processing is easy to implement in hardware and is currently widely used.

第14図(1)、(2)に縮退化処理を施すことにより、
第15図(1)、(2)を得る。第8図(1)、第9図を
入力とした場合この処理は意味を持たないが、例えば第
16図(1)のような画像を入力とすると、第14図に相当
する画像は第16図(2)のようになり、屈曲点部分にノ
イズが生じる。縮退化処理は連続する画素値1を一点の
画素値1で代表させる処理で、やはり論理フィルタリン
グで構成できる。第16図(2)に縮退化処理を施すこと
により、第16図(3)が得られる。
By applying the degeneracy processing to (1) and (2) in FIG.
Figure 15 (1) and (2) are obtained. 8 (1) and FIG. 9 are input, this process has no meaning.
When an image as shown in FIG. 16 (1) is input, the image corresponding to FIG. 14 becomes as shown in FIG. 16 (2), and noise is generated at the bending point. The degeneracy process is a process in which a continuous pixel value 1 is represented by a pixel value 1 at one point, and can also be configured by logical filtering. By performing the degeneracy process on FIG. 16 (2), FIG. 16 (3) is obtained.

第17図(1)、(2)は、第8図(1)、第9図から第
3図に示した端点のパターンを用いた論理フィルタリン
グによって端点を抽出した画像である。
FIGS. 17 (1) and 17 (2) are images in which the end points are extracted by logical filtering using the end point patterns shown in FIGS. 8 (1) and 9 to 3.

第15図(1)と第17図(1)、第15図(2)と第17図
(2)の間でそれぞれORを取ることにより、第18図
(1)、(2)が得られる。即ち第8図(1)からは端
点のみが検出され、第9図からは端点と屈曲点が抽出さ
れている。
Figure 18 (1) and Figure 17 (1) and Figure 15 (2) and Figure 17 (2) are ORed to obtain Figures 18 (1) and (2), respectively. . That is, only the end points are detected from FIG. 8 (1), and the end points and bending points are extracted from FIG.

先に付けた重み、81、−81、162、−162は2回平均化処
理を施した後、値が残るように9の2乗である81を基本
となる数とし、2つの屈曲点の種類を表すためその2倍
の数を採用したことにより決定されたものである。2値
化に用いたイキ値は基本数を81としたため結果の値が直
線とみなされる部分で−2以上2以下の範囲であるため
決定される。重みとイキ値に以上に示した数の倍数を用
いても、正の数のみで扱えるようにおのおのの数に162
を加えても同様に処理できる。
The weights 81, -81, 162, and -162 given earlier are averaged twice, and the value of 9 is squared so that the value remains. It is determined by adopting twice the number to represent the type. Since the base number is set to 81, the value used for binarization is determined to be the range where the resulting value is considered to be a straight line and is -2 or more and 2 or less. Even if you use multiples of the numbers shown above for the weights and Iki values, each number will be 162 so that only positive numbers can be used.
The same process can be performed by adding.

また線部分の画素値を0、周囲を1で表す場合には、最
初の重み付けのパターンとして0と1を反転したものを
用い、2値化の結果に0と1が反転した結果が得られる
ようにし、縮退化処理におけるパターンとして0と1を
反転したものを用いれば良い。
When the pixel value of the line portion is represented by 0 and the periphery is represented by 1, the first weighting pattern in which 0 and 1 are inverted is used, and the result of binarization is obtained in which 0 and 1 are inverted. In this way, a pattern in which 0 and 1 are inverted may be used as the pattern in the degeneracy process.

平均化処理の範囲を拡張する場合には、以上と同様な考
え方で2値化のイキ値を決定すれば良い。
When extending the range of the averaging process, the binarization value may be determined in the same way as above.

4連結の場合は第19図に示す屈曲点パターンを用いれば
良い。(〜と重みの対応は、8連結と同様であ
る。)また縮退化、端点検出にも4連結用のものを用い
る必要がある。
In the case of four connections, the bending point pattern shown in FIG. 19 may be used. (The correspondence between ~ and weights is the same as for 8-connection.) Also, it is necessary to use 4-connection for degeneration and end point detection.

〔作用〕[Action]

このように屈曲点の種類に従って重み付けし、斜めの直
線において生じる屈曲部からの屈曲点の抽出を避け、折
線の屈曲点のみを抽出することができる。
In this way, weighting is performed according to the type of bending point, and it is possible to extract only the bending point of the broken line while avoiding the extraction of the bending point from the bending portion that occurs in the diagonal straight line.

〔実施例〕〔Example〕

第1図は本発明の実施例装置の構成を示す。 FIG. 1 shows the configuration of an apparatus according to an embodiment of the present invention.

第1図の線図形整形回路ブロック図においてaは画像メ
モリであり、ここに第8図(1)、第9図の如き細線化
2値画像を格納する。
In the line figure shaping circuit block diagram of FIG. 1, a is an image memory in which a thinned binary image as shown in FIGS. 8 (1) and 9 is stored.

b〜eは論理フィルタリング回路で、第7図〜を論
理フィルタリング回路bが、同〜を同cが、同、
を同dが、同、を同eが検出すると1を、それ以
外では0を出力する。
b to e are logic filtering circuits, and FIG. 7 to FIG. 7 are logic filtering circuits b, FIG.
When the same d is detected, the same is detected by the same e, 1 is output, otherwise 0 is output.

f〜iは濃度変換回路であり、b〜eの出力が1のとき
81、−81、162、−162の重みを付ける。
f to i are density conversion circuits, and when the output of b to e is 1.
Weights of 81, -81, 162, and -162 are added.

j〜1は画素間演算回路であり、f〜iの出力を足し合
わせた画像を作成する。処理1後は、第10図(1)、
(2)が得られる。
Reference numerals j to 1 denote inter-pixel arithmetic circuits that create an image by adding the outputs of f to i. After processing 1, Fig. 10 (1),
(2) is obtained.

m、nは平均化フィルタリング回路でこれらの出力とし
て第13図(1)、(2)を得る。
m and n are averaging filtering circuits, and outputs (1) and (2) in FIG. 13 are obtained as their outputs.

oは2値化回路であり、pは縮退化回路である。oとp
の処理結果として第15図(1)、(2)を得る。
o is a binarization circuit, and p is a degeneration circuit. o and p
As the processing result of (1) and (2) in FIG.

qは第3図のパターンを用いた論理フィルタリングによ
る端点検出回路であり、aの画像メモリの細線化2値画
像から端点のみを検出する。
q is an end point detection circuit by logical filtering using the pattern of FIG. 3, and detects only end points from the thinned binary image in the image memory of a.

rは遅延回路でb〜eからoまでの遅延と、qとrの遅
延を合わせるように、遅延時間が設定される。
r is a delay circuit, and the delay time is set so as to match the delays from b to e to the delays of q and r.

sは画素間演算回路であり、oの出力とrの出力の論理
和をとる。
s is an inter-pixel arithmetic circuit, which takes the logical sum of the output of o and the output of r.

tは画像メモリで処理結果が格納される。An image memory t stores the processing result.

この処理はパイプライン方式で実現できるため、画像メ
モリtはなくとも良い。
Since this processing can be realized by a pipeline method, the image memory t may be omitted.

〔発明の効果〕〔The invention's effect〕

以上の説明から明らかなように、本発明によれば正確な
屈曲点検出が可能で、またハードウェア化が容易なため
線図形の整形を高速に行うことができる。
As is clear from the above description, according to the present invention, it is possible to accurately detect a bending point, and since it is easy to implement hardware, it is possible to shape a line figure at high speed.

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

第1図は本発明の実施例を示すブロック図、 第2図は細線の定義を説明する図、 第3図は8連結の端点のパターン図、 第4図は8連結の分岐点のパターン図、 第5図は8連結の交差点のパターン図、 第6図は従来の方法を説明する図、 第7図は8連結の屈曲点のパターン図、 第8図は8連結の直線の例、 第9図は8連結の折線の例、 第10図は重み付けをした例、 第11図は平均化を行った例、 第12図は平均化処理の説明図、 第13図は2回目の平均化を行った例、 第14図は2値化の例、 第15図は縮退化の例、 第16図は縮退化の効果がある場合の例、 第17図は端点検出の例、 第18図は処理結果の例、 第19図は4連結の屈曲点のパターン図である。 FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram for explaining the definition of a thin line, FIG. 3 is a pattern diagram of 8-connected end points, and FIG. 4 is a pattern diagram of 8-connected branch points. Fig. 5 is a pattern diagram of 8-connected intersections, Fig. 6 is a diagram for explaining a conventional method, Fig. 7 is a pattern diagram of 8-connected bending points, Fig. 8 is an example of 8-connected straight lines, Fig. 9 shows an example of 8-connected polygonal lines, Fig. 10 shows an example of weighting, Fig. 11 shows an example of averaging, Fig. 12 is an explanatory diagram of averaging process, and Fig. 13 shows second averaging. , Fig. 14 is an example of binarization, Fig. 15 is an example of degeneration, Fig. 16 is an example of the case where the degeneracy effect is effective, Fig. 17 is an example of end point detection, Fig. 18 Is an example of the processing result, and FIG. 19 is a pattern diagram of 4-connected bending points.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】細線化2値線画像の屈曲点をパターンによ
り種類分けして、点対称のパターン関係にある対の屈曲
点の画素にお互いを打ち消し合うような正負の値をもつ
対抗する重みを付け、かつ異なる種類の点対称パターン
をもつ屈曲点の間では異なる重みを付け、 この重み付けされた画像に対して、入力である細線化2
値画像をマスクとして注目画素の近傍における平均化処
理を画像全体について二重に繰り返して施し、その結果
について先の重みから屈曲点の画素のみが検出されるよ
うに決定される閾値によって2値化し、さらにその結果
について連続する画素値をもつ複数の画素を画素値1を
もつ1点の画素で代表させる縮退化処理を施すことによ
り、細線化2値画像から真の屈曲点のみを抽出すること
を特徴とする線図形の整形方法。
1. A weight that opposes a bending point of a thinned binary line image according to a pattern and has a positive and negative value that cancels each other between pixels of a pair of bending points having a point-symmetrical pattern relationship. , And different weights are applied between inflection points having different types of point symmetry patterns, and for this weighted image, the input thinning 2
The averaging process in the vicinity of the pixel of interest is repeatedly performed twice on the entire image using the value image as a mask, and the result is binarized by the threshold value determined so that only the pixel at the bending point is detected from the previous weight. , And extracting a true inflection point from the thinned binary image by further performing a degeneracy process in which a plurality of pixels having continuous pixel values are represented by a single pixel having a pixel value of 1 for the result. A method of shaping a line figure.
JP62057997A 1987-03-13 1987-03-13 Line figure shaping method Expired - Lifetime JPH07104955B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62057997A JPH07104955B2 (en) 1987-03-13 1987-03-13 Line figure shaping method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62057997A JPH07104955B2 (en) 1987-03-13 1987-03-13 Line figure shaping method

Publications (2)

Publication Number Publication Date
JPS63223978A JPS63223978A (en) 1988-09-19
JPH07104955B2 true JPH07104955B2 (en) 1995-11-13

Family

ID=13071643

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62057997A Expired - Lifetime JPH07104955B2 (en) 1987-03-13 1987-03-13 Line figure shaping method

Country Status (1)

Country Link
JP (1) JPH07104955B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02242488A (en) * 1989-03-16 1990-09-26 Masayoshi Umeno Image processor

Also Published As

Publication number Publication date
JPS63223978A (en) 1988-09-19

Similar Documents

Publication Publication Date Title
Wenyin et al. From raster to vectors: extracting visual information from line drawings
Toivanen New geodosic distance transforms for gray-scale images
CN114863492B (en) Method and device for repairing low-quality fingerprint image
Olsen et al. Convolution approach for feature detection in topological skeletons obtained from vascular patterns
EP0504577B1 (en) Image processing method and apparatus
CN114092499A (en) Medicine box dividing method
JPH09251544A (en) Work edge detecting image processor
JPH07104955B2 (en) Line figure shaping method
CN115115535A (en) Depth map denoising method, device, medium and equipment
Yoda et al. Direction coding method and its application to scene analysis
Tek et al. Perceptual organization via the symmetry map and symmetry transforms
JP2789622B2 (en) Character / graphic area determination device
JP2001243479A (en) Method and device for image processing and recording medium having image processing program recorded thereon
KR100295245B1 (en) A parallel thinning method using weighted value
JP3104355B2 (en) Feature extraction device
JPS6312308B2 (en)
JP2507949B2 (en) Character / graphic area determination device
KR100266309B1 (en) Method of drawing out a closed line
JPH035630B2 (en)
JPH0126115B2 (en)
JPS5814709B2 (en) Shape recognition method for closed shapes
JPS62251879A (en) Image contour extracting system
JPH07109612B2 (en) Image processing method
JPS62221783A (en) Area extracting system
JPH02266478A (en) Method for recognizing drawing