JP2646585B2 - Linear component detector - Google Patents

Linear component detector

Info

Publication number
JP2646585B2
JP2646585B2 JP62271896A JP27189687A JP2646585B2 JP 2646585 B2 JP2646585 B2 JP 2646585B2 JP 62271896 A JP62271896 A JP 62271896A JP 27189687 A JP27189687 A JP 27189687A JP 2646585 B2 JP2646585 B2 JP 2646585B2
Authority
JP
Japan
Prior art keywords
line segment
mapping function
point
extracting
unit
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
JP62271896A
Other languages
Japanese (ja)
Other versions
JPH01114989A (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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP62271896A priority Critical patent/JP2646585B2/en
Publication of JPH01114989A publication Critical patent/JPH01114989A/en
Application granted granted Critical
Publication of JP2646585B2 publication Critical patent/JP2646585B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、原画像から直線成分を検出する直線成分検
出装置に関する。
Description: TECHNICAL FIELD The present invention relates to a linear component detection device that detects a linear component from an original image.

〔従来の技術〕[Conventional technology]

従来、物体の認識を行なうため、物体を画像として促
え、この画像の特徴等の情報を抽出して物体を認識する
ようにしている。このため、一般に物体をテレビカメラ
等の撮影手段で撮影し、この画像を電気的に処理して情
報の抽出を行なうようにしている。
Conventionally, in order to recognize an object, the object is urged as an image, and information such as features of the image is extracted to recognize the object. Therefore, in general, an object is photographed by photographing means such as a television camera, and the image is electrically processed to extract information.

このような電気的な処理として画像における物体の輪
郭抽出を行なうことがあるが、この輪郭抽出の方法とし
て、従来よりハフ(Hough)変換による写像を用いるも
のや、球面写像によって線分を抽出するものがある。
As such electrical processing, the contour of an object in an image may be extracted. As a method of extracting the contour, a method using a mapping based on a Hough transformation or a line segment is extracted by a spherical mapping. There is something.

ハフ変換は第14図(A)に示すように、画像プレーン
上の点(xi,yj)を第14図(B)に示すような、パラメ
ータプレーン上において、 ρ=xi cosθ+yj sinθ ……(1) で表される正弦波(写像関数)に変換する。
In the Hough transform, as shown in FIG. 14 (A), a point (xi, yj) on the image plane is converted to ρ = xi cos θ + yj sin θ (1) on the parameter plane as shown in FIG. 14 (B). ) Is converted to a sine wave (mapping function) represented by

そして画像プレーン上の直線上の点に対応する正弦波
をパラメータプレーン上にプロットし、ヒストグラムを
作成すると、全ての正弦波は2点で交わる。この点の座
標(θ0)は各点が構成する直線に原点から下した
垂直な足の長さρ及び回転角θに相当し、一本の直
線を代表するものとなる。そこでこれによって当該外各
点の構成する直線の情報を抽出することができる。
When sine waves corresponding to points on a straight line on the image plane are plotted on the parameter plane and a histogram is created, all sine waves intersect at two points. The coordinates (θ 0 , ρ 0 ) of this point correspond to the length ρ 0 and the rotation angle θ 0 of a vertical foot lowered from the origin to the straight line formed by each point, and represent one straight line. . Accordingly, information on a straight line formed by each of the outer points can be extracted.

ところで、このような写像による輪郭、即ち線分の抽
出を行なう装置として次のようなものがある。これは第
15図に示すように、テレビカメラ等の画像入力部1と、
この画像入力部1から送られる画像情報から物体の輪郭
を抽出して輪郭点アドレスを発生するエッジ検出部2
と、該輪郭点アドレスを一時貯えておく速度調整バッフ
ァ3と、この輪郭点アドレスから関数ρ=xi cosθ+yj
sinθを計算してハフ変換を行なう関数値計算部4と、
関数値ρを一時記憶するバッファ5と、関数値ρに従っ
て2次元ヒストグラムを作成するヒストグラム作成部6
と、ヒストグラムを書き込むヒストグラムメモリ7と、
ホストコンピュータ10とからなっている。また、ホスト
コンピュータ10は、関数値計算部4と、ヒストグラム作
成部6、ヒストグラムメモリ7およびバッファ3,5を制
御する制御部11と、2次元ヒストグラム上のピーク点を
検出するピーク検出部12と、検出したピーク点が所定の
閾値よりも大きいか否かを判別する判別部13と、ピーク
点が閾値よりも大きいときに、該ピーク点を通過する写
像関数曲線のもとになった輪郭点が直線成分であること
を出力する線分出力部14とを備えている。
By the way, there are the following devices for extracting a contour by such a mapping, that is, a line segment. This is
As shown in FIG. 15, an image input unit 1 such as a television camera,
An edge detecting unit 2 for extracting a contour of an object from image information sent from the image input unit 1 and generating a contour point address
And a speed adjustment buffer 3 for temporarily storing the contour point address, and a function ρ = xi cos θ + yj
a function value calculation unit 4 for calculating sinθ and performing Hough transform;
Buffer 5 for temporarily storing function value ρ, and histogram creating unit 6 for creating a two-dimensional histogram according to function value ρ
A histogram memory 7 for writing a histogram,
And a host computer 10. The host computer 10 includes a function value calculation unit 4, a histogram creation unit 6, a control unit 11 that controls the histogram memory 7, and the buffers 3 and 5, a peak detection unit 12 that detects peak points on the two-dimensional histogram. A determination unit 13 for determining whether a detected peak point is larger than a predetermined threshold, and a contour point which is a basis of a mapping function curve passing through the peak point when the peak point is larger than the threshold. And a line segment output unit 14 that outputs that is a linear component.

一方、このような装置を用いて直線成分を検出するこ
とにより、曲線を含む領域の折線近似が可能となる
(『画像認識論』長尾真著コロナ社発行)。この折線近
似の基本的な考え方を第16図に基づいて説明する。
On the other hand, by detecting a linear component using such a device, it is possible to approximate a broken line in a region including a curve ("Image Recognition Theory" by Makoto Nagao, published by Corona Co., Ltd.). The basic concept of this broken line approximation will be described with reference to FIG.

まず領域の周辺上の1点P1から周辺上の最も遠い点P2
に線を引く。次にその線から一番遠い周辺上の点P3,P4
を見付ける。直線から点P3,P4までの距離がある値dよ
り大であれば、直線P1P3,P2P3(またはP1P4,P2P4)を引
く。次にこの2直線のそれぞれについて、直線から最も
遠い点を求めて、直線までの距離を計算する(直線の両
側にその点が見付かるが、折線近似してきた手順から、
どちらの点を取るべきかはすぐに分かる)。この距離が
dより大であれば、再び直線の両端からその点に直線を
引き、一直線による近似を2直線による折線近似に代え
る。このようにして、直線と周辺上の最も遠い点との間
の距離が十分に小さくなるまで、折線を2分しながら近
似度を上げてゆくことによって、領域の周辺の十分な近
似が折線によって得られることになる。結果はもちろん
出発点の取り方によって異なってくる。この出発点とし
ては曲率最大の点を取るのがよい。
First, from the point P 1 on the periphery of the area to the farthest point P 2 on the periphery
Draw a line. Next, points P 3 and P 4 on the farthest periphery from the line
Find If the distances from the straight lines to the points P 3 and P 4 are larger than a certain value d, the straight lines P 1 P 3 and P 2 P 3 (or P 1 P 4 and P 2 P 4 ) are drawn. Next, for each of these two straight lines, the point farthest from the straight line is obtained, and the distance to the straight line is calculated. (The points are found on both sides of the straight line.
It's easy to tell which point to take.) If this distance is larger than d, a straight line is drawn again from both ends of the straight line to that point, and the approximation by one straight line is replaced by the broken line approximation by two straight lines. In this way, by increasing the degree of approximation while bisecting the fold line until the distance between the straight line and the farthest point on the periphery is sufficiently small, sufficient approximation of the periphery of the region is obtained by the fold line. Will be obtained. The results will depend, of course, on the starting point. It is better to take the point of maximum curvature as this starting point.

ここで曲率最大の点の求め方は、第17図に示すように
曲線上の任意の点Piから、左右にk個ずつ離れた点Pi-k
とPi+kとの間に弦を引き、Piがこの弦からどれだけ離れ
ているかを測定する。この距離が点Piを動かしていった
とき、極大となるような場所Piを見付ける。そしてこの
点での距離が十分大きい場合にPiは曲率最大の点であっ
たと判定する。
Here Determination of curvature maximum points, from an arbitrary point P i on the curve as shown in FIG. 17, P ik point separated by k or to the left and right
Draw a string between and P i + k and measure how far P i is from this string. When this distance went by moving the point P i, find the location P i such that maximum. Then it determines that P i is a point of curvature maximum when the distance at this point is sufficiently large.

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

ところで、従来の直線成分検出装置は、画像中の直線
成分を検出することは可能であるものの、そのうち最長
の線分に関する情報の検出を行なうことができないとい
う問題がある。従って、例えば前述したような曲線の折
線近似を行なうときに最適な出発点Piの位置を設定する
ことができず、折線近似の精度が低下する。
By the way, although the conventional linear component detection device can detect a linear component in an image, it has a problem that it cannot detect information on the longest line segment. Thus, for example, can not be set the position of the optimal starting point P i when performing piecewise linear approximation of the curve as described above, the accuracy of the polygonal line approximation is reduced.

そこで、本発明の目的は、検出した直線成分の中から
最長の直線成分を検出してそのデータを出力できるよう
にすることにある。
Accordingly, it is an object of the present invention to detect the longest linear component from the detected linear components and output the data.

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

前記目的を達成して従来技術の問題点を解決するた
め、本発明は、画像の輪郭点座標に対して写像関数値を
計算する写像関数計算手段と、該計算された写像関数値
に従ってヒストグラムを作成するヒストグラム作成手段
と、該ヒストグラム上のピーク点から輪郭点座標の示す
線分情報を抽出する線分抽出手段とを備える直線成分検
出装置において、生成した写像関数群の通過ピーク点を
通過する所定のマスクエッジを設定し、前記写像関数群
がこのマスクエッジを通過する連続成分の内の最大の連
続成分を検出し、これを前記ピーク点が表わす直線成分
中最長の線分に関与する写像関数として抽出する最長線
分抽出手段と、該抽出された写像関数から当該線分の位
置データを抽出する線分データ抽出手段とを備える。
In order to achieve the above object and solve the problems of the prior art, the present invention provides a mapping function calculating means for calculating a mapping function value with respect to the contour point coordinates of an image, and a histogram according to the calculated mapping function value. In a straight-line component detection device including a histogram creation unit to be created, and a line segment extraction unit to extract line segment information indicated by contour point coordinates from a peak point on the histogram, the straight line component detection device passes through a passing peak point of the generated mapping function group. A predetermined mask edge is set, and the mapping function group detects the largest continuous component among the continuous components passing through the mask edge, and determines the largest continuous component among the linear components represented by the peak points. It comprises a longest line segment extracting means for extracting as a function, and a line segment data extracting means for extracting position data of the line segment from the extracted mapping function.

〔実施例〕〔Example〕

第1図は本発明に係る直線成分検出装置の一例を示す
ものであり、従来装置と同様にテレビカメラ等の画像入
力部21と、この画像入力部21から送られる画像情報から
物体の輪郭を抽出して輪郭点アドレスを発生するエッジ
検出部22と、該輪郭点アドレスを一時貯えておく速度調
整バッファ23と、この輪郭点アドレスから関数ρ=xi c
osθ+yj sinθを計算してハフ変換を行なう関数値計算
部24と、関数値ρを一時記憶するバッファ25と、関数値
ρに従って2次元ヒストグラムを作成するヒストグラム
作成部26と、ヒストグラムを書き込むヒストグラムメモ
リ27と、ホストコンピュータ30とを備える。また、ホス
トコンピュータ30は、関数値計算部24,ヒストグラム作
成部26,ヒストグラムメモリ27およびバッファ23,25を制
御する制御部31と、2次元ヒストグラム上のピーク点を
検出するピーク検出部32と、写像関数が当該ピーク点を
通過するようなエッジ点を抽出するピーク形成エッジ点
抽出部33と、該抽出したエッジ点をハフ変換して得た写
像関数群を解析して線分の存在範囲を算出する線分範囲
算出部34と、線分を構成するエッジ点を抽出する線分構
成点抽出部35と、該抽出した線分が検出すべき所定長以
上か否かを判別する判定部36と、該判定結果に基づき線
分データを出力する線分データ出力部37とを備える。こ
の実施例において本発明に係る最長線分抽出手段は、ホ
ストコンピュータ30内のピーク形成エッジ点抽出部33に
よって実現し、本発明に係る線分データ抽出手段は線分
範囲算出部34および線分構成点抽出部35によって実現し
ていることになる。
FIG. 1 shows an example of a straight-line component detecting apparatus according to the present invention. As in the conventional apparatus, an image input unit 21 such as a television camera and an image outline sent from the image input unit 21 are used to extract the contour of an object. An edge detector 22 for extracting and generating a contour point address, a speed adjusting buffer 23 for temporarily storing the contour point address, and a function ρ = xi c
a function value calculation unit 24 for calculating osθ + yj sinθ to perform a Hough transform, a buffer 25 for temporarily storing a function value ρ, a histogram creation unit 26 for creating a two-dimensional histogram according to the function value ρ, and a histogram memory 27 for writing a histogram And a host computer 30. Further, the host computer 30 includes a function value calculation unit 24, a histogram creation unit 26, a control unit 31 that controls the histogram memory 27 and the buffers 23 and 25, a peak detection unit 32 that detects a peak point on the two-dimensional histogram, A peak forming edge point extraction unit 33 for extracting an edge point such that the mapping function passes through the peak point, and a mapping function group obtained by performing a Hough transform on the extracted edge point to analyze the range of existence of the line segment. A line segment range calculating unit 34 to calculate, a line segment component point extracting unit 35 to extract edge points forming the line segment, and a determining unit 36 to determine whether the extracted line segment is longer than a predetermined length to be detected. And a line segment data output unit 37 that outputs line segment data based on the determination result. In this embodiment, the longest line segment extraction unit according to the present invention is realized by a peak forming edge point extraction unit 33 in the host computer 30, and the line segment data extraction unit according to the present invention includes a line segment range calculation unit 34 and a line segment This is realized by the constituent point extracting unit 35.

次に本装置の作用を説明する。 Next, the operation of the present apparatus will be described.

エッジ検出部22は、画像入力部21から送られる画像信
号A(i,j)に対し、輪郭点検出処理、細線化処理を施
し、エッジ構成点を幅1で抽出する。抽出されたエッジ
構成点情報は、第2図に示すようなB(i,j)としてバ
ッファ23にストアされる。ここでエッジ構成点には
“1"、そうでない点には“0"なる値が与えられる。こう
して得られたエッジ構成点情報B(i,j)に対し、関数
値計算部24でハフ変換を実施する。この処理フローを第
5図に例示する。尚、第5図において示す符号、θ,ρ
はそれぞれ第3図に示すようにとり、またθは第4図に
示すように−90゜≦θ≦180゜の範囲で1゜づつのステ
ップでとってゆく。またρは、1≦ρ≦ρmax(ρmaxは
ヒストグラム配列H(θ,ρ)で設定した最大値)の範
囲でとるものとする。
The edge detection unit 22 performs a contour point detection process and a thinning process on the image signal A (i, j) sent from the image input unit 21, and extracts an edge composing point with a width of 1. The extracted edge constituent point information is stored in the buffer 23 as B (i, j) as shown in FIG. Here, a value of “1” is given to an edge composing point, and a value of “0” is given to other points. The function value calculator 24 performs Hough transform on the edge component point information B (i, j) obtained in this manner. This processing flow is illustrated in FIG. Note that the symbols shown in FIG.
Are taken as shown in FIG. 3, and θ is taken in steps of 1 ° within a range of −90 ° ≦ θ ≦ 180 ° as shown in FIG. Further, ρ is assumed to be in the range of 1 ≦ ρ ≦ ρmax (ρmax is the maximum value set in the histogram array H (θ, ρ)).

関数値計算部24は、このような処理結果をバッファ25
に対して出力し、ヒストグラム作成部26はバッファ25か
ら順次関数値を入力して2次元ヒストグラムH(θ,
ρ)を作成し、ヒストグラムメモリ27に書き込んでゆ
く。
The function value calculation unit 24 stores such a processing result in the buffer 25
, And the histogram creating unit 26 sequentially inputs the function values from the buffer 25 and outputs the two-dimensional histogram H (θ, θ,
ρ) is created and written to the histogram memory 27.

次に、ピーク検出部32が前記2次元ヒストグラム上の
ピーク点を検出する。この処理フローを第6図に例示す
る。尚、第6図において、θ,ρのとり方は第5図に示
した処理フローの場合と同様である。かかる処理によっ
てヒストグラム上のピーク点(最大頻度δ)が検出さ
れ、Xに最大頻度を与えるθ、Yに最大頻度を与えるρ
が抽出される。この(X,Y)は前記B(i,j)中の最長直
線成分のパラメータを表わしている。尚、ここで検出直
線の最小値δTHを予め設定しておき、最大頻度δ<δTH
の時はすべての処理を終了する。
Next, the peak detecting unit 32 detects a peak point on the two-dimensional histogram. This processing flow is illustrated in FIG. In FIG. 6, how to take θ and ρ is the same as in the case of the processing flow shown in FIG. By this processing, a peak point (maximum frequency δ) on the histogram is detected, θ giving the maximum frequency to X, ρ giving the maximum frequency to Y
Is extracted. This (X, Y) represents the parameter of the longest linear component in the B (i, j). Here, the minimum value δ TH of the detection line is set in advance, and the maximum frequency δ <δ TH
At the time of, all the processing is ended.

次にピーク形成エッジ点抽出部33は、写像関数がピー
ク点(X,Y)を通過するようなエッジ点をB(i,j)から
抽出する。この処理フローは第7図に示す通りであり、
かかる処理によって(θ,ρ)=(X,Y)なるパラメー
タを有する直線上のエッジ点が配列C上にC(i,j)=
1としてストアされる。
Next, the peak forming edge point extracting unit 33 extracts an edge point from B (i, j) such that the mapping function passes through the peak point (X, Y). This processing flow is as shown in FIG.
By this processing, an edge point on a straight line having a parameter of (θ, ρ) = (X, Y) is placed on the array C as C (i, j) =
Stored as 1.

次に線分範囲算出部34は、先に生成したC(i,j)を
ハフ変換し、(θ,ρ)=(X,Y)を通過する写像関数
群を抽出する。これは、2次元ヒストグラム用配列とし
て用意したH´(θ,ρ)に対して第5図に示した処理
フローと同様の流れで処理することによって実現する。
そして、この線分範囲算出部34は、生成した写像関数群
H´(θ,ρ)を以下のように解析することによって線
分の存在範囲を算出する。この様子を第8図に示す。ま
ず第8図(I)の如きエッジ画像をハフ変換すると同図
(II)のような写像関数パターンが得られる。この写像
関数パターンは、すべて(θ,ρ)=(X,Y)を通過す
る。この写像関数パターンを拡大すると同図(III)の
ようになり、ρ=Y部に横方向のマスクEDGE(θ)を設
定すると、同図(IV)のA部、B部、C部のように各線
分がそれぞれ1つの連続成分として表われる。ここで最
大の連続成分(この場合A部)を検出し、その両端部の
θアドレス、(α,β)を算出する。すると、 として同図(V)に示すようにC(i,j)中の最長成分
の存在範囲が算出される。ここで、θmin,θmaxは、同
図(III)においてA部の写像関数群の極値を与えるθ
アドレスのことである。この処理フローを第9図に例示
する。この第9図において、ステップ(9−1)、(9
−2)、(9−3)では写像関数の存在位置に“1"を与
え、それ以外に“0"を与える処理を行ない、またステッ
プ(9−4)、(9−5)では横方向マスクの設定を行
なっている。また、ステップ(9−10)中の符号POINT
(l)=0は、連続成分の左端位置であり、符号KOSU
(l)=KOSU(l)+1は連続成分の構成点数を表わ
す。
Next, the line segment range calculation unit 34 performs a Hough transform on the previously generated C (i, j), and extracts a mapping function group that passes through (θ, ρ) = (X, Y). This is realized by processing H ′ (θ, ρ) prepared as a two-dimensional histogram array in the same flow as the processing flow shown in FIG.
Then, the line segment range calculation unit 34 calculates the existing range of the line segment by analyzing the generated mapping function group H ′ (θ, ρ) as follows. This is shown in FIG. First, when an edge image as shown in FIG. 8 (I) is Hough-transformed, a mapping function pattern as shown in FIG. 8 (II) is obtained. All the mapping function patterns pass through (θ, ρ) = (X, Y). When this mapping function pattern is enlarged, it becomes as shown in FIG. 3 (III), and when a horizontal mask EDGE (θ) is set in the ρ = Y portion, it becomes as shown in A, B, and C portions of FIG. 4 (IV). , Each line segment appears as one continuous component. Here, the largest continuous component (part A in this case) is detected, and θ addresses (α, β) at both ends are calculated. Then As shown in FIG. 5 (V), the existence range of the longest component in C (i, j) is calculated. Here, θmin and θmax are the values θ that give the extreme values of the mapping function group of the part A in FIG.
An address. This processing flow is illustrated in FIG. In FIG. 9, steps (9-1) and (9)
In steps (2-4) and (9-3), a process of giving "1" to the position where the mapping function exists and giving "0" to the other positions is performed, and in steps (9-4) and (9-5), The mask is being set. Also, the code POINT in step (9-10)
(L) = 0 is the left end position of the continuous component, and the code KOSU
(L) = KOSU (l) +1 represents the number of constituent points of the continuous component.

次に、線分構成点抽出部35は、線分を構成するエッジ
点をC(i,j)から抽出する。これは、C(i,j)=1な
るすべての点から、 なる点を抽出することによって実現する。この処理フロ
ーを第10図に例示する。
Next, the line segment constituent point extracting unit 35 extracts the edge points forming the line segment from C (i, j). This means that from all points where C (i, j) = 1, This is realized by extracting points. This processing flow is illustrated in FIG.

そして、判定部36は、抽出した線分の存在判定を行な
う。これは抽出した線分のエッジ点数Zを予め設定して
おいた最小線分長ZTHと比較し、 と判定する。ここでZ≧ZTHであると判定されると、第1
0図のステップ(10−6)から(10−7)へ移り、Z<Z
THと判定されたときは、線分は存在しないとして全処理
を終了する。そして、Z≧ZTHの場合、線分データ出力
部37は、以上のようにして求めた線分データを出力す
る。ここでは、ヒストグラム上のピーク点(ピーク検出
部32で検出したX,Y)、線分存在範囲(線分範囲算出部3
4で求めたθmin,θmax)を出力する。これらのデータに
よって第11図に示すように線分位置を再構成することが
可能となる。
Then, the determination unit 36 determines the presence of the extracted line segment. This compares the number of edge points Z of the extracted line segment with the preset minimum line segment length Z TH , Is determined. If it is determined that Z ≧ Z TH , the first
Move from step (10-6) to (10-7) in FIG.
If it is determined to be TH, it is determined that there is no line segment, and the entire process ends. When Z ≧ Z TH , the line segment data output unit 37 outputs the line segment data obtained as described above. Here, the peak points on the histogram (X and Y detected by the peak detection unit 32), the line segment existence range (the line segment range calculation unit 3
Output θmin, θmax obtained in 4). With these data, it is possible to reconstruct the line segment position as shown in FIG.

第12図は本発明に係る直線成分検出装置の第2の実施
例を示すもので、前記実施例装置に、抽出処理が終了し
た線分による写像関数を除去して新たなヒストグラムを
作成する写像関数除去部38を設けたものである。この写
像関数除去部38は、第13図に示すような処理フローに従
って、抽出処理が終了してすでに不必要になっている写
像関数を除去し、ヒストグラム上の偽ピーク点の発生を
防止し、短い直線成分まで安定して検出できるようにし
たものである。かかる処理を第6図に示した処理で説明
したようにδ<δTHになるまで、又は第10図に示したよ
うにZ<ZTHになるまで繰り返し実行すれば、B(i,j)
中のある長さ以上の直線成分を精度良く検出することが
できる。そして、このような処理によって検出された線
分データを用いることにより、物体の線画作成やモデリ
ング等が可能となる。
FIG. 12 shows a second embodiment of the straight-line component detecting apparatus according to the present invention, in which a new histogram is created by removing the mapping function based on the line segment for which the extraction processing has been completed. A function removing unit 38 is provided. The mapping function removing unit 38 removes a mapping function that is already unnecessary after the extraction process is completed according to a processing flow as shown in FIG. 13, to prevent the occurrence of a false peak point on the histogram, This enables stable detection of short linear components. If such processing is repeatedly executed until δ <δ TH as described in the processing shown in FIG. 6 or until Z <Z TH as shown in FIG. 10, B (i, j)
It is possible to accurately detect a linear component having a length longer than a certain length. By using the line segment data detected by such processing, it is possible to create a line drawing of an object, perform modeling, and the like.

尚、前記実施例では、画像の左上に原点をとってハフ
変換を行なったが、原点は任意に選んでも構わない。
In the above embodiment, the Hough transform is performed with the origin at the upper left of the image, but the origin may be arbitrarily selected.

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

以上説明したように、本発明に係る直線成分検出装置
は、生成した写像関数群の通過ピーク点を通過する所定
のマスクエッジを設定し、前記写像関数群がこのマスク
エッジを通過する連続成分の内の最大の連続成分を検出
し、これを前記ピーク点が表わす直線成分中最長の線分
に関与する写像関数として抽出する最長線分抽出手段
と、該抽出された写像関数から当該線分の位置データを
抽出する線分データ抽出手段とを設けたので、エッジ画
像に含まれる直線成分中最長の線分を検出してその位置
データを出力し、当該線分を再構成ならしめることがで
きる。従って、例えば曲線の折線近似を行なうようなと
きに、画像領域内の最長直線成分の存在位置を検出する
ことも可能になるので、最適な出発点を安定して発見す
ることが可能になり折線近似の精度が一層向上するとい
う効果を奏する。
As described above, the linear component detection device according to the present invention sets a predetermined mask edge that passes through the passing peak point of the generated mapping function group, and sets the mapping function group of a continuous component that passes through the mask edge. And the longest line segment extracting means for extracting the largest continuous component among the straight line components represented by the peak point as a mapping function relating to the longest line segment, and extracting the longest line segment from the extracted mapping function. Since the line segment data extracting means for extracting the position data is provided, the longest line segment among the linear components included in the edge image is detected, the position data is output, and the line segment can be reconstructed. . Therefore, for example, when approximating a curved line, it is possible to detect the position of the longest straight line component in the image area, so that it is possible to stably find an optimal starting point. There is an effect that the approximation accuracy is further improved.

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

第1図は本発明に係る直線成分検出装置の実施例を示す
ブロック図、第2図はエッジ構成点情報を示す図、第3
図は第5図において使用する符号θ,ρのとり方を説明
する図、第4図は第5図において使用する符号θの範囲
を説明する図、第5図は第1図に示す関数値計算部の作
動例を示すフローチャート、第6図は第1図に示すピー
ク検出部の作動例を示すフローチャート、第7図は本発
明の実施例に係るピーク形成エッジ点抽出部の作動例を
示すフローチャート、第8図は本発明の実施例に係る線
分範囲算出部における処理原理を例示する図、第9図は
本発明の実施例に係る線分範囲算出部の作動例を示すフ
ローチャート、第10図は本発明の実施例に係る線分構成
点抽出部、判定部、線分データ出力部の作動例を示すフ
ローチャート、第11図は線分の再構成例を示す図、第12
図は本発明の第2の実施例を示すブロック図、第13図は
第12図に示した写像関数除去部の作動例を示すフローチ
ャート、第14図はハフ変換の原理を説明する図、第15図
は従来の直線成分検出装置の一例を示すブロック図、第
16図および第17図は、曲線の折線近似の手法を説明する
図である。 32……ピーク検出部 33……ピーク形成エッジ点抽出部(最長線分抽出手段) 34……線分範囲算出部(線分データ抽出手段) 35……線分構成点抽出部(線分データ抽出手段) 37……線分データ出力部
FIG. 1 is a block diagram showing an embodiment of a linear component detecting device according to the present invention, FIG. 2 is a diagram showing edge constituent point information, and FIG.
5 is a diagram for explaining how to take the signs θ and ρ used in FIG. 5, FIG. 4 is a diagram for explaining the range of the sign θ used in FIG. 5, and FIG. 5 is a function value calculation shown in FIG. 6 is a flowchart showing an operation example of the peak detection unit shown in FIG. 1, and FIG. 7 is a flowchart showing an operation example of the peak forming edge point extraction unit according to the embodiment of the present invention. FIG. 8 is a diagram illustrating a processing principle in a line segment range calculating unit according to the embodiment of the present invention. FIG. 9 is a flowchart showing an operation example of the line segment range calculating unit according to the embodiment of the present invention. FIG. 11 is a flowchart showing an operation example of a line segment constituent point extraction unit, a determination unit, and a line segment data output unit according to the embodiment of the present invention. FIG. 11 is a diagram showing an example of line segment reconstruction.
FIG. 13 is a block diagram showing a second embodiment of the present invention, FIG. 13 is a flowchart showing an operation example of the mapping function removing unit shown in FIG. 12, FIG. 14 is a diagram for explaining the principle of Hough transform, FIG. 15 is a block diagram showing an example of a conventional linear component detection device, and FIG.
FIG. 16 and FIG. 17 are diagrams for explaining a technique of approximating a broken line of a curve. 32 peak detecting section 33 peak forming edge point extracting section (longest line segment extracting means) 34 line segment range calculating section (line segment data extracting means) 35 line segment component point extracting section (line segment data) Extraction means) 37 ... Line segment data output unit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像の輪郭点座標に対して写像関数値を計
算する写像関数計算手段と、 該計算された写像関数値に従ってヒストグラムを作成す
るヒストグラム作成手段と、 該ヒストグラム上のピーク点から輪郭点座標の示す線分
情報を抽出する線分抽出手段とを備える直線成分検出装
置において、 生成した写像関数群の通過ピーク点を通過する所定のマ
スクエッジを設定し、前記写像関数群がこのマスクエッ
ジを通過する連続成分の内の最大の連続成分を検出し、
これを前記ピーク点が表わす直線成分中最長の線分に関
与する写像関数として抽出する最長線分抽出手段と、 該抽出された写像関数から当該線分の位置データを抽出
する線分データ抽出手段とを備えることを特徴とする直
線成分検出装置。
1. A mapping function calculating means for calculating a mapping function value with respect to a contour point coordinate of an image; a histogram generating means for forming a histogram according to the calculated mapping function value; A linear component detection device comprising: line segment extraction means for extracting line segment information indicated by point coordinates; a predetermined mask edge passing through a passing peak point of the generated mapping function group is set; Detecting the largest continuous component among the continuous components passing through the edge,
A longest line segment extracting means for extracting this as a mapping function relating to the longest line segment among the straight line components represented by the peak points, and a line segment data extracting means for extracting position data of the line segment from the extracted mapping function And a linear component detecting device.
JP62271896A 1987-10-29 1987-10-29 Linear component detector Expired - Lifetime JP2646585B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62271896A JP2646585B2 (en) 1987-10-29 1987-10-29 Linear component detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62271896A JP2646585B2 (en) 1987-10-29 1987-10-29 Linear component detector

Publications (2)

Publication Number Publication Date
JPH01114989A JPH01114989A (en) 1989-05-08
JP2646585B2 true JP2646585B2 (en) 1997-08-27

Family

ID=17506404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62271896A Expired - Lifetime JP2646585B2 (en) 1987-10-29 1987-10-29 Linear component detector

Country Status (1)

Country Link
JP (1) JP2646585B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61271896A (en) * 1985-05-27 1986-12-02 松下電工株式会社 Making of ceramic wiring substrate

Also Published As

Publication number Publication date
JPH01114989A (en) 1989-05-08

Similar Documents

Publication Publication Date Title
CN110675487B (en) Three-dimensional face modeling and recognition method and device based on multi-angle two-dimensional face
US5410611A (en) Method for identifying word bounding boxes in text
EP2783328B1 (en) Text detection using multi-layer connected components with histograms
CN108647597B (en) Wrist identification method, gesture identification method and device and electronic equipment
CN110458145B (en) Offline handwriting individual recognition system and method based on two-dimensional dynamic characteristics
CN114648756B (en) Book character recognition and reading method and system based on pointing vector
CN112364834A (en) Form identification restoration method based on deep learning and image processing
JPH06301781A (en) Method and equipment for image transformation for pattern recognition by computer
CN110288040B (en) Image similarity judging method and device based on topology verification
WO2014188446A2 (en) Method and apparatus for image matching
JP3054682B2 (en) Image processing method
CN109919128B (en) Control instruction acquisition method and device and electronic equipment
JPH09128485A (en) Improved method and apparatus for recognition of handwritten sentence by using unchangeable feature
US11651604B2 (en) Word recognition method, apparatus and storage medium
KR102223754B1 (en) Method and Apparatus for Enhancing Face Image
JP3631095B2 (en) Irradiation field area extraction device, radiation imaging apparatus, radiation image system, irradiation field area extraction method, and computer-readable storage medium
JP2646585B2 (en) Linear component detector
Reddy et al. Hand gesture recognition using skeleton of hand and distance based metric
JP2846486B2 (en) Image input device
JP2004094952A (en) Skew detection
CN113111849B (en) Human body key point detection method, device, system and computer readable medium
CN111753625B (en) Pedestrian detection method, device, equipment and medium
JP3585143B2 (en) Character string extraction method and device
CN109145910A (en) The image line feature extracting method of the reconstruction of hologram
JPH01102686A (en) Segment detecting device