JPH0799544B2 - Line segment extraction device - Google Patents

Line segment extraction device

Info

Publication number
JPH0799544B2
JPH0799544B2 JP60247778A JP24777885A JPH0799544B2 JP H0799544 B2 JPH0799544 B2 JP H0799544B2 JP 60247778 A JP60247778 A JP 60247778A JP 24777885 A JP24777885 A JP 24777885A JP H0799544 B2 JPH0799544 B2 JP H0799544B2
Authority
JP
Japan
Prior art keywords
histogram
function value
mapping function
line segment
address
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 - Fee Related
Application number
JP60247778A
Other languages
Japanese (ja)
Other versions
JPS62107384A (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 JP60247778A priority Critical patent/JPH0799544B2/en
Publication of JPS62107384A publication Critical patent/JPS62107384A/en
Publication of JPH0799544B2 publication Critical patent/JPH0799544B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術 発明が解決しようとする問題点 問題点を解決するための手段(第1図) 作用 実施例 (a)一実施例の構成の説明(第2図,第3図,第4
図) (b)一実施例の動作の説明(第5図,第6図,第7
図) (c)他の実施例の説明 発明の効果 〔概要〕 画像の輪郭点座標に対する写像関数を計算し、ヒストグ
ラムを作成して線分情報を抽出する線分抽出装置におい
て、写像関数の計算部と、バツフアと、ヒストグラム作
成部を直列に接続することによつて、写像関数の計算と
ヒストグラムの作成を並列に行なえるようにしたもので
ある。
Detailed Description [Table of Contents] Outline Industrial field of application Conventional technology Problems to be solved by the invention Means for solving problems (FIG. 1) Action Example (a) of one embodiment Description of configuration (Figs. 2, 3, 4)
(B) Description of operation of one embodiment (FIGS. 5, 6, and 7)
(C) Description of Other Embodiments Effect of the Invention [Outline] Calculation of a mapping function in a line segment extraction device that calculates a mapping function for image contour point coordinates and creates a histogram to extract line segment information. By connecting the section, the buffer, and the histogram creating section in series, the calculation of the mapping function and the creation of the histogram can be performed in parallel.

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

本発明は、原画像から写像によつて線分情報を抽出する
ための線分抽出装置に関し、特に高速にヒストグラムの
作成を行なうことのできる線分抽出装置に関する。
The present invention relates to a line segment extracting device for extracting line segment information from an original image by mapping, and more particularly to a line segment extracting device capable of creating a histogram at high speed.

近年、人間の眼と同様の機能を機械によつて実現するた
めに物体の認識技術が盛んに開発されている。
In recent years, object recognition technology has been actively developed in order to realize a function similar to that of the human eye by a machine.

この様な物体の認識においては、物体を画像として肥
え、この画像から物体の特徴等の情報を抽出して物体を
認識する方法が用いられている。
In the recognition of such an object, a method of recognizing the object by using the image as an image and extracting information such as characteristics of the object from the image is used.

このため、一般に物体をテレビカメラ等の撮像手段によ
つて撮像し、原画像を取入み、この画像を元に電気的処
理を行つて情報抽出を行なう必要がある。
For this reason, it is generally necessary to pick up an object by an image pickup means such as a television camera, take in an original image, and perform electrical processing based on this image to extract information.

一方、このような原画像は背景や証明条件に強い制限の
ある2値画像処理主体のものでは、比較的原画像の構造
線の抽出が容易であるが、制限の少ない通常反射光下で
は原画像自体が濃淡画像となり、このため濃淡画像から
輪郭抽出処理を行なう必要が生じてくる。
On the other hand, such an original image is relatively easy to extract the structural lines of the original image if it is a binary image processing subject to strong restrictions on the background and proof conditions, but under normal reflected light with less restrictions The image itself becomes a grayscale image, which makes it necessary to perform contour extraction processing from the grayscale image.

この輪郭抽出処理における問題として、原画像に輪郭の
途切れや輪郭成分以外のものが含まれていることにあ
り、このような不明確な原画像からいかに輪郭を抽出す
るかの解決策が望まれている。
A problem in this contour extraction processing is that the original image contains a contour discontinuity or something other than the contour component, and a solution for how to extract the contour from such an unclear original image is desired. ing.

この様な輪郭の抽出方法として従来よりハフ(Hough)
変換による写像を用いるものや球面写像を用いるものが
ある。ハフ変換は、入力画像についての直線あるいは線
分の抽出等において、確かさを濃縮させる手法として用
いられるものである。第8図はハフ変換の説明図を示
す。いわゆるハフ変換においては、第8図(A)図示の
如き画像プレーン上の点(xi,yi)が、第8図(B)図
示の如きパラメータプレーンにおいて、 ρ=xicosθ+yisinθ…………(1) で表わされる正弦波(写像関数)に変換される。ここ
で、第8図(A)図示の如き1直線上の各点に対応する
正弦波を、パラメータプレーンにプロツトし、ヒストグ
ラムを作成すると、第8図(B)図示の如く、2点(ρ
が正のものだけ考えれば1点)で交れる。この点の回転
角θ,高さρは、第8図(A)の各点が構成する直
線に対し原点から垂直な線を下ろした時の垂直線の長さ
ρと回転点θを示すことになるから、これによつて
当該各点の構成する直線の情報を抽出出来る。即ち、直
線あるいは線分の抽出、途切れ、歪みのある線分の再生
等が可能となる。
As a method for extracting such contours, Hough has been used conventionally.
Some use mapping by transformation and some use spherical mapping. The Hough transform is used as a method of concentrating the certainty in extraction of a straight line or a line segment of an input image. FIG. 8 shows an explanatory diagram of the Hough transform. In the so-called Hough transform, a point (xi, yi) on the image plane as shown in FIG. 8 (A) is expressed as ρ = xicosθ + yisinθ in the parameter plane as shown in FIG. 8 (B). Is converted into a sine wave (map function) represented by. Here, if a sine wave corresponding to each point on a straight line as shown in FIG. 8 (A) is plotted on the parameter plane and a histogram is created, two points (ρ
If you consider only positive ones, you can intersect at 1 point. The rotation angle θ 0 and the height ρ 0 at this point are the length ρ 0 of the vertical line and the rotation point θ when the line perpendicular to the origin is drawn with respect to the straight line formed by each point in FIG. 8 (A). Since it indicates 0 , the information of the straight line formed by each point can be extracted by this. That is, it is possible to extract a straight line or a line segment, reproduce a line segment having a break or distortion, and the like.

〔従来の技術〕[Conventional technology]

このような写像による輪郭、即ち線分の抽出を行なう装
置として、従来第9図(A)に示す如く、原画像より得
られた輪郭点座標(xi,yi)から前述の写像関数値ρを
計算し、ヒストグラムを作成するプロセッサCPUと、ヒ
ストグラムが書込まれるヒストグラムメモリHMで構成し
ていた。
As a device for extracting contours, that is, line segments, by such mapping, the above-mentioned mapping function value ρ is calculated from the contour point coordinates (xi, yi) obtained from the original image as shown in FIG. 9 (A). It consisted of a processor CPU that calculates and creates a histogram and a histogram memory HM in which the histogram is written.

このプロセッサCPUは、第9図(B)に示す如く、ハフ
変換においては、輪郭点座標(x0,y0)から対応する一
連の写像関数値ρ〜ρ511を計算し、計算した関数値
からヒストグラムメモリHMにヒストグラムを作成書込み
する処理を交互に行なつてヒストグラムメモリHMに1つ
の座標に対するヒストグラムを完成させるものであつ
た。
As shown in FIG. 9B, this processor CPU calculates a corresponding series of mapping function values ρ 0 to ρ 511 from the contour point coordinates (x 0 , y 0 ) in the Hough transform, and calculates the calculated function. The process of creating and writing the histogram in the histogram memory HM from the values is alternately performed to complete the histogram for one coordinate in the histogram memory HM.

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

このような線分抽出装置においては、輪郭点座標に対応
する写像関数ρを細かに分割して関数値を発生すればす
る程ヒストグラムの精度が上がり、従つて正確なヒスト
グラムメモリ上の極大点検出が可能となる。
In such a line segment extraction device, the accuracy of the histogram increases as the mapping function ρ corresponding to the coordinates of the contour points is finely divided to generate the function value, and therefore the maximum point detection on the accurate histogram memory is performed. Is possible.

例えば、第9図の例の如く一つの写像関数ρを512分割
すれば、256×256画素の入力画像に対し1画素以内の精
度で線分検出が行なえる。このような高精度の極大点検
出を可能とするには、1つの輪郭点に対し、512回の関
数値の計算とヒストグラムの作成を行わねばならず、従
来の如くプロセッサCPUによつて関数値計算とヒストグ
ラム作成の両方を交互に行なうものでは、1つの座標に
対し分オーダの時間がかかり、線分抽出に要する時間が
長くなるという問題があつた。
For example, if one mapping function ρ is divided into 512 as in the example of FIG. 9, line segment detection can be performed with an accuracy of within 1 pixel for an input image of 256 × 256 pixels. In order to detect such a high-precision maximum point, it is necessary to calculate the function value 512 times and create a histogram for each contour point. In the case where both calculation and histogram creation are performed alternately, there is a problem that it takes time on the order of minutes for one coordinate and the time required for line segment extraction becomes long.

従つて、本発明は輪郭点座標からヒストグラムの作成を
高速に行なうことのできる線分抽出装置を提供すること
を目的とする。
Therefore, it is an object of the present invention to provide a line segment extracting device that can create a histogram from contour point coordinates at high speed.

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

第1図は本発明の原理説明図である。 FIG. 1 is an explanatory view of the principle of the present invention.

図中、1は関数値計算部であり、輪郭点座標(xi,yi)
から対応する写像関数の関数値を計算するもの、2はバ
ツフアであり、関数値計算部1で計算された関数値を蓄
えておくもの、3はヒストグラム作成部であり、バツフ
ア2に蓄えられた関数値からヒストグラム作成計算を行
ない、ヒストグラムメモリに書込むものである。
In the figure, 1 is a function value calculation unit, which is a contour point coordinate (xi, yi)
From which the function value of the corresponding mapping function is calculated, 2 is a buffer, and the function value calculated by the function value calculation unit 1 is stored, 3 is a histogram creation unit, which is stored in the buffer 2. The histogram creation calculation is performed from the function value and written in the histogram memory.

従つて、本発明では、関数値計算部1とヒストグラム作
成部3とが別個に存在し、バツフア2を介して直列に接
続されて構成されている。
Therefore, in the present invention, the function value calculation unit 1 and the histogram creation unit 3 exist separately and are connected in series via the buffer 2.

〔作用〕[Action]

本発明では、関数値計算部1とヒストグラム作成部3と
が別個に設けられているので、関数値計算とヒストグラ
ム計算を並列に実行できる。
In the present invention, since the function value calculation unit 1 and the histogram creation unit 3 are provided separately, the function value calculation and the histogram calculation can be executed in parallel.

又、バツフア2を介して計算部1と作成部3が接続され
ているので計算時間の差があつても、計算部1と作成部
3の並列動作が可能となる。
Moreover, since the calculation unit 1 and the creation unit 3 are connected via the buffer 2, even if there is a difference in calculation time, the calculation unit 1 and the creation unit 3 can operate in parallel.

このため、輪郭点座標からヒストグラム作成までの過程
を高速化することができる。
Therefore, the process from contour point coordinates to histogram creation can be speeded up.

〔実施例〕 (a)一実施例の構成の説明 第2図は本発明の一実施例構成図である。[Embodiment] (a) Description of Configuration of One Embodiment FIG. 2 is a configuration diagram of one embodiment of the present invention.

図中、第1図で示したものと同一のものは同一の記号で
示してあり、4はテレビカメラであり、対象画像を撮像
し、画像信号に変換するもの、5は輪郭抽出部であり、
テレビカメラ4からの画像信号から輪郭点を抽出し、輪
郭点アドレスを発生するものであり、テレビカメラ4の
画像信号をアナログ/デジタル変換して8ビツトの画像
データに変換するA/Dコンバータ50と、A/Dコンバータ50
の出力を空間微分して輪郭(エツジ)以外を除去する空
間微分回路51と、空間微分回路51の出力を細線処理する
極値処理回路52と、極値処理回路52の出力によつて輪郭
点のアドレスを発生する輪郭アドレス発生回路53とで構
成されている。6は速度調整バツフアであり、輪郭抽出
部5からの輪郭点アドレスを一時蓄えておくもの、7は
ヒストグラムメモリであり、ヒストグラム作成部3によ
つてヒストグラムが書込まれるものであり、例えば256K
Bitの容量を有するもの、8はホストプロセツサであ
り、速度調整バツフア6、関数値計算部1、バツフア2
及びヒストグラム作成部3を制御するとともに、ヒスト
グラムメモリ7の内容を分析して線分抽出するものであ
る。
In the figure, the same components as those shown in FIG. 1 are designated by the same symbols, 4 is a television camera, which captures a target image and converts it into an image signal, and 5 is a contour extraction unit. ,
An A / D converter 50 for extracting contour points from the image signal from the TV camera 4 and generating contour point addresses. The image signal of the TV camera 4 is converted from analog / digital into 8-bit image data. And the A / D converter 50
The spatial differentiation circuit 51 for spatially differentiating the output of the above to remove other than the contour (edge), the extreme value processing circuit 52 for processing the output of the spatial differentiation circuit 51 by the thin line, and the output of the extreme value processing circuit 52 And a contour address generation circuit 53 for generating the address 6 is a speed adjustment buffer, which temporarily stores the contour point address from the contour extraction unit 5, 7 is a histogram memory, in which a histogram is written by the histogram creation unit 3, for example, 256K
A host processor having a bit capacity, 8 is a host processor, a speed adjustment buffer 6, a function value calculation unit 1, and a buffer 2
In addition to controlling the histogram creation unit 3, the contents of the histogram memory 7 are analyzed to extract line segments.

第3図は第2図構成における関数値ρ計算部の構成図で
ある。
FIG. 3 is a block diagram of the function value ρ calculator in the configuration of FIG.

図中、10はアドレスカウンタであり、クロツクを計数し
てハフ変換におけるθ方向10〜πのアドレスnを発生す
るもの、11はcosθテーブルであり、各アドレスnに対
応するcosθの値をテーブルとして有しているもの、12
はsinθテーブルであり、各アドレスnに対応するsinθ
の値をテーブルとして有しているもの、13a,13b,13c,13
dは入力レジスタであり、入力レジスタ13aはバツフア6
からの輪郭点座標xiを格納するもの、入力レジスタ13b
はcosθテーブル11からのcosθn値を格納するもの、入
力レジスタ13cはバツフア6からの輪郭点座標yiを格納
するもの、入力レジスタ13dはsinθテーブル12からのsi
nθn値を格納するものである。
In the figure, 10 is an address counter, which counts clocks to generate an address n in the θ direction 10 to π in Hough conversion, 11 is a cos θ table, and the value of cos θ corresponding to each address n is used as a table. Have, 12
Is a sin θ table, and sin θ corresponding to each address n
Having values of as a table, 13a, 13b, 13c, 13
d is an input register, and the input register 13a is a buffer 6
For storing the contour point coordinates xi from the input register 13b
Is the one that stores the cosθn value from the cosθ table 11, the input register 13c is the one that stores the contour point coordinates yi from the buffer 6, and the input register 13d is the si from the sinθ table 12.
The nθn value is stored.

14,15は各々乗算器であり、乗算器14は入力レジスタ13a
の座標xiと入力レジスタ13bのcosθn値を乗算し、(xi
・cosθn)を出力するもの、乗算器15は入力レジスタ1
3cの座標yiと入力レジスタ13dのsinθn値を乗算し、
(yi・sinθn)を出力するもの、16a,16bは各々出力レ
ジスタであり、出力レジスタ16aはクロツクに応じて乗
算器14の出力(xi・cosθn)がセツトされるもの、出
力レジスタ16bはクロツクに応じて乗算器15の出力(yi
・sinθn)がセツトされるもの、17は加算器であり、
各出力レジスタ16a,16bの内容を加算し、ρn=(xi・c
osθn+yi・sinθn)を出力するもの、18は書込レジ
スタであり、クロツクに応じて加算器17の出力ρnがセ
ツトされ、データバツフア2に書込むためのものであ
る。
14 and 15 are multipliers, and the multiplier 14 is an input register 13a.
The coordinate xi of x and the cos θn value of the input register 13b are multiplied, and (xi
・ Cos θn) is output, multiplier 15 is input register 1
Multiply the coordinate yi of 3c by the sin θn value of the input register 13d,
(Yi · sin θn) is output, 16a and 16b are output registers, the output register 16a is the output of the multiplier 14 (xi · cos θn) is set according to the clock, and the output register 16b is the clock. Output of the multiplier 15 (yi
.Sin θn) is set, 17 is an adder,
The contents of each output register 16a, 16b are added, and ρn = (xi · c
os.theta.n + yi.sin.theta.n) is output, and 18 is a write register for setting the output .rho.n of the adder 17 in accordance with the clock and writing it in the data buffer 2.

従つて、関数値計算部1はハフ変換関数ρnを計算する
よう構成されており、入力された輪郭点座標(xi,yi)
に対し、各アドレスn(=0〜511)のハフ変換関数値
ρnをハードウエアによつて計算するように構成され、
アドレスnと関数値ρnを順次バツフア2に書込むもの
である。
Therefore, the function value calculation unit 1 is configured to calculate the Hough transform function ρn, and the input contour point coordinates (xi, yi)
On the other hand, the Hough transform function value ρn of each address n (= 0 to 511) is configured to be calculated by hardware,
The address n and the function value ρn are sequentially written in the buffer 2.

第4図は第2図構成におけるヒストグラム作成部3の構
成図である。
FIG. 4 is a configuration diagram of the histogram creation unit 3 in the configuration of FIG.

図中、30はアドレス生成部であり、バツフア2からのア
ドレスnと関数値ρnをヒストグラムメモリ7のアドレ
スとして生成し、ヒストグラムメモリ7をアクセスする
もの、31はインクリメント回路であり、ヒストグラムメ
モリ7からアドレス生成部30のアドレスによつて読出さ
れた8ビツトのデータに1加算し、ヒストグラムメモリ
7へデータとして出力するもの、32はメモリコントロー
ラであり、アドレスクロツクに応じてヒストグラムメモ
リ7のリード/ライトを制御するとともにインクリメン
ト回路31の動作を制御するものである。
In the figure, 30 is an address generator, which generates an address n from the buffer 2 and a function value ρn as addresses of the histogram memory 7 and accesses the histogram memory 7, and 31 is an increment circuit from the histogram memory 7. One which adds 1 to the 8-bit data read by the address of the address generation unit 30 and outputs it as data to the histogram memory 7, 32 is a memory controller, which reads / writes the histogram memory 7 according to the address clock. The write control is performed and the operation of the increment circuit 31 is controlled.

従つて、ヒストグラム作成部3は、ヒストグラムメモリ
7をアドレスnと関数値ρnとをアドレスとして対応す
る位置のデータを読出し、このデータに“1"を加算して
再び同一位置に書込みを行なうよう構成されており、ヒ
ストグラムメモリ7は8ビツトのデータが縦512,横512
コ収容できるメモリで構成されている。
Therefore, the histogram creating unit 3 is configured to read the data at the corresponding position in the histogram memory 7 using the address n and the function value ρn as an address, add "1" to this data, and write again at the same position. In the histogram memory 7, 8-bit data is 512 vertical and 512 horizontal.
It is composed of a memory that can accommodate.

(b)一実施例の動作の説明 第5図は第3図構成によるρ計算動作の説明図、第6図
は第4図構成によるヒストグラム作成動作の説明図、第
7図は全体動作説明図である。
(B) Description of operation of one embodiment FIG. 5 is an illustration of ρ calculation operation by the configuration of FIG. 3, FIG. 6 is an illustration of histogram creation operation by the configuration of FIG. 4, and FIG. Is.

テレビカメラ4から入力された原画像(濃淡画像)は、
輪郭抽出部5に入力され、輪郭抽出部5において周知の
如く輪郭点アドレス(xi,yi)が抽出され、速度調整バ
ツフア6に出力される。速度調整バツフア6はフアース
トイン・フアーストアウトメモリで構成され抽出された
輪郭点アドレス(xi,yi)を順次格納する。一方、関数
値計算部1は速度調整バツフア6から輪郭点アドレス
(xi,yi)を受け、第5図の如く動作する。
The original image (grayscale image) input from the TV camera 4 is
The contour point address (xi, yi) is input to the contour extraction unit 5, the contour point address (xi, yi) is extracted in the well-known manner, and is output to the speed adjustment buffer 6. The speed adjustment buffer 6 is composed of a first-in first-out memory and sequentially stores the extracted contour point addresses (xi, yi). On the other hand, the function value calculation unit 1 receives the contour point address (xi, yi) from the speed adjustment buffer 6 and operates as shown in FIG.

先づ、クロツクの周期Tを乗算器14,15の乗算時間に合
わせて設定する。これは同一素子技術の条件のもとで
は、第3図構成のものでは、乗算時間が加算時間、テー
ブルアクセス時間より長いため、最大の乗算時間に合わ
せて設定する。
First, the clock cycle T is set according to the multiplication times of the multipliers 14 and 15. Under the condition of the same element technology, the multiplication time is longer than the addition time and the table access time in the configuration shown in FIG. 3, so it is set in accordance with the maximum multiplication time.

そして、ハフ変換のパラメータθの0〜πを512等分し
て各関数値ρnを計算する。
Then, each function value ρn is calculated by dividing 0 to π of the Hough transform parameter θ into 512 equal parts.

従つて、第(1)式は、 に変形され、cosθテーブル11,sinθテーブル12にはア
ドレスnに対応して512個のcosθ,sinθ値が格納されて
いる。
Therefore, the formula (1) is The cos θ table 11 and the sin θ table 12 store 512 cos θ and sin θ values corresponding to the address n.

第5図に示す如く、バツフア6から輪郭点アドレス(x
i,yi)を受けると、クロツクによつてレジスタ13a,13c
にこれらがセツトされるとともに、cosθテーブル11か
らcosθが、sinθテーブル12からsinθが各々レジ
スタ13b,13dにセツトされる。
As shown in FIG. 5, the contour point address (x
i, yi), the clock causes the registers 13a, 13c
These are set, and cos θ table 11 to cos θ 0 and sin θ table 12 to sin θ 0 are set in registers 13b and 13d, respectively.

従つて各乗算器14,15は、(xi・cosθ),(yi・sin
θ)を演算し、次のクロツクで乗算出力は出力レジス
タ16a,16bにセツトされる。
Therefore, each of the multipliers 14 and 15 has (xi · cos θ 0 ), (yi · sin
θ 0 ) is calculated, and the multiplication output is set in the output registers 16a and 16b at the next clock.

更にレジスタ16a,16bにセツトされた乗算出力は加算器1
7で加算され、更に次のクロツクで書込レジスタ18にセ
ツトされる。
Further, the multiplication output set in the registers 16a and 16b is the adder 1
The value is added at 7, and is set in the write register 18 at the next clock.

従つて3クロツクで、(xi,yi)に対するアドレス“0"
の関数値ρが得られる。
Therefore, with 3 clocks, the address “0” for (xi, yi)
The function value ρ 0 of

このρ計算部1はアドレスカウンタの歩進により順次直
列的に演算が行なわれるので、クロツク毎に関数値がρ
,ρ,ρ…ρ511と出力され、従つて1つの輪郭
点アドレス(xi,yi)に対し一連の512個の関数値を発生
する時間は(512+3)×Tで済む。この計算された関
数値ρnは第7図に示す様に、データバツフア2にアド
レスnと共に格納されていく。一方、ヒストグラム作成
部3では、アドレスクロツクの到来毎にアドレス生成部
30よりデータバツフア2のn,ρnが読出され、これをア
ドレスとしてヒストグラムメモリ7をアクセスする。メ
モリコントローラ32はこのアドレスクロツクに応じて第
6図のライトネーブル信号▲▼を発生するから、ヒ
ストグラムメモリ7からは第6図のメモリI/Oデータの
如くアクセスされたアドレスのデータDnが先づ読出され
インクリメント回路31へ与えられ、インクリメント回路
31で“1"加算されて、ライトネーブル信号▲▼のロ
ーレベルによつてインクリメント回路31の出力データD
n+1が同一アドレスに書込まれる。
Since the ρ calculator 1 sequentially performs the operation serially by the step of the address counter, the function value is ρ for each clock.
0 , ρ 1 , ρ 2 ... ρ 511 are output, so that the time for generating a series of 512 function values for one contour point address (xi, yi) is (512 + 3) × T. The calculated function value ρn is stored in the data buffer 2 together with the address n, as shown in FIG. On the other hand, in the histogram creation unit 3, the address generation unit is generated every time the address clock arrives.
The n, ρn of the data buffer 2 is read from 30 and the histogram memory 7 is accessed using this as an address. Since the memory controller 32 generates the write enable signal ▲ ▼ shown in FIG. 6 according to this address clock, the data Dn at the accessed address comes first from the histogram memory 7 like the memory I / O data shown in FIG. Are read out and applied to the increment circuit 31, and the increment circuit
"1" is added at 31, and the output data D of the increment circuit 31 is changed by the low level of the write enable signal ▲ ▼.
n + 1 is written to the same address.

従つて、第7図の如く、ρ計算部1で512個のρnが計
算された後、ヒストグラム作成部3で512個のρnがヒ
ストグラムメモリ7に書込まれる。この書込みの間にρ
計算部1は、次の輪郭点座標(x1,y1)に対するρnの
計算が行なわれ、従つて関数値計算とヒストグラム作成
が並列で動作する。
Therefore, as shown in FIG. 7, after the 512 ρn are calculated by the ρ calculation unit 1, the 512 ρn are written in the histogram memory 7 by the histogram creation unit 3. During this writing ρ
The calculation unit 1 calculates ρn for the next contour point coordinate (x1, y1), and accordingly, the function value calculation and the histogram creation operate in parallel.

このため、従来のヒストグラム作成までに要する時間は
ρ計算時間Tρとヒストグラム作成時間Tnの和であるの
に対し、本発明ではTρとTnの大きい方の時間で済むこ
とになる。
Therefore, the conventional time required to create a histogram is the sum of the ρ calculation time Tρ and the histogram creation time Tn, whereas in the present invention, the longer time of Tρ and Tn is sufficient.

又、ρ計算部1の計算時間も、大幅に短縮される。即
ち、従来の計算時間は、テーブルアクセス2回、乗算2
回、加算1回の5回であり、乗算時間を加算、テーブル
アクセス時間Taの2倍と設定すると、512×7×Taとな
り、本発明では前述の如く515×2×Taのため、3.5倍早
くなる。
In addition, the calculation time of the ρ calculation unit 1 is significantly reduced. That is, the conventional calculation time is 2 table accesses and 2 multiplications.
The number of times is 5 times, that is, one time and one addition time, and if the multiplication time is added and the table access time Ta is set to be twice, 512 × 7 × Ta is obtained. Get faster

このようにヒストグラムメモリ7にヒストグラムが書込
まれると、ホストプロセツサ8はヒストグラムメモリ7
の内容を読出し、その極大値のアドレスを交点として探
索し、極大値のアドレスによつて前述の線分の角度
θ,距離ρを再生抽出する。
When the histogram is written in the histogram memory 7 in this way, the host processor 8
Is read, the address of the maximum value is searched as an intersection point, and the angle θ 0 and the distance ρ 0 of the line segment described above are reproduced and extracted by the address of the maximum value.

(c)他の実施例の説明 前述の実施例は写像関数としてハフ変換関数を例に説明
したが他の変換関数を用いることもできる。
(C) Description of Other Embodiments In the above embodiments, the Hough transform function was described as an example of the mapping function, but other transform functions may be used.

以上本発明の実施例により説明したが、本発明は本発明
の主旨に従い種々の変形が可能であり、本発明からこれ
らを排除するものではない。
The embodiments of the present invention have been described above, but the present invention can be modified in various ways according to the gist of the present invention, and these modifications are not excluded from the present invention.

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

以上説明した様に、本発明によれば、写像関数の計算
と、ヒストグラムの作成が並列に行なえるため、線分抽
出におけるヒストグラム作成に要する時間を短縮でも、
高速な線分抽出が可能となるという効果を奏する。特に
高精度の検出を行なうため、多数の写像関数値を発生す
る場合にその効果が大きく、線分抽出処理の高速化に寄
与するところが大きい。
As described above, according to the present invention, since the calculation of the mapping function and the creation of the histogram can be performed in parallel, even if the time required to create the histogram in the line segment extraction is shortened,
This has the effect of enabling high-speed line segment extraction. In particular, since highly accurate detection is performed, its effect is great when a large number of mapping function values are generated, and it greatly contributes to speeding up the line segment extraction processing.

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

第1図は本発明の原理説明図、 第2図は本発明の一実施例構成図、 第3図は第2図構成の関数値計算部の内部構成図、 第4図は第2図構成のヒストグラム作成部の構成図、 第5図は本発明の一実施例による関数値計算動作説明
図、 第6図は本発明の一実施例によるヒストグラム作成動作
説明図、 第7図は本発明の一実施例全体動作説明図、 第8図はハフ変換の説明図、 第9図は従来技術の説明図である。 図中、1……関数値計算部、2……バツフア、3……ヒ
ストグラム作成部、5……輪郭抽出部、7……ヒストグ
ラムメモリ。
FIG. 1 is a diagram for explaining the principle of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is an internal block diagram of a function value calculation unit in the configuration of FIG. 2, and FIG. 5 is a configuration diagram of a histogram creating unit of FIG. 5, FIG. 5 is an explanatory diagram of a function value calculation operation according to an embodiment of the present invention, FIG. 6 is an explanatory diagram of a histogram creating operation according to an embodiment of the present invention, and FIG. FIG. 8 is a diagram for explaining the Hough transform, and FIG. 9 is a diagram for explaining a conventional technique. In the figure, 1 ... Function value calculation unit, 2 ... Buffer, 3 ... Histogram creation unit, 5 ... Contour extraction unit, 7 ... Histogram memory.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】画像の輪郭点座標に対し写像関数値を計算
し、該計算された写像関数値に従ってヒストグラムを作
成して該ヒストグラムから該輪郭点座標の示す線分情報
を抽出する線分抽出装置において、 該輪郭点座標から写像関数値を計算する写像関数値計算
部と、 該写像関数値計算部で計算された写像関数値を記憶する
バツフアと、 該バツフアの写像関数値からヒストグラムメモリにヒス
トグラムを作成するヒストグラム作成部とを含み、 該写像関数値計算部による写像関数値計算動作と該ヒス
トグラム作成部によるヒストグラム作成動作とを並列に
行うことを 特徴とする線分抽出装置。
1. A line segment extraction for calculating a mapping function value for contour point coordinates of an image, creating a histogram according to the calculated mapping function value, and extracting line segment information indicated by the contour point coordinates from the histogram. In the apparatus, a mapping function value calculation unit that calculates a mapping function value from the contour point coordinates, a buffer that stores the mapping function value calculated by the mapping function value calculation unit, and a mapping function value from the buffer to a histogram memory. A line segment extraction device comprising: a histogram creation unit that creates a histogram, wherein the mapping function value calculation operation by the mapping function value calculation unit and the histogram creation operation by the histogram creation unit are performed in parallel.
JP60247778A 1985-11-05 1985-11-05 Line segment extraction device Expired - Fee Related JPH0799544B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60247778A JPH0799544B2 (en) 1985-11-05 1985-11-05 Line segment extraction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60247778A JPH0799544B2 (en) 1985-11-05 1985-11-05 Line segment extraction device

Publications (2)

Publication Number Publication Date
JPS62107384A JPS62107384A (en) 1987-05-18
JPH0799544B2 true JPH0799544B2 (en) 1995-10-25

Family

ID=17168509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60247778A Expired - Fee Related JPH0799544B2 (en) 1985-11-05 1985-11-05 Line segment extraction device

Country Status (1)

Country Link
JP (1) JPH0799544B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60205782A (en) * 1984-03-30 1985-10-17 Fujitsu Ltd Line extraction processing method

Also Published As

Publication number Publication date
JPS62107384A (en) 1987-05-18

Similar Documents

Publication Publication Date Title
Chalimbaud et al. Embedded active vision system based on an FPGA architecture
JPH0810132B2 (en) Target pattern rotation angle detection method
CN109708662B (en) High-frame-frequency high-precision injection type star atlas simulation test platform based on target identification
KR910000203B1 (en) Picture processing apparatus
JPH0799544B2 (en) Line segment extraction device
JP2907215B2 (en) Line segment extraction device
JPS61193004A (en) Extracting device for image feature
CN113793349A (en) Target detection method and device, computer readable storage medium and electronic equipment
US11580617B2 (en) Method of matching images to be merged and data processing device performing the same
JPS61222374A (en) Picture image reader
JP2654427B2 (en) Radar image processing device
JPS62187884A (en) Rotary image display unit
KR100187209B1 (en) Circuit for extracting brightness distribution of the object
JP2578116B2 (en) Straight line detection method
JPH0827837B2 (en) Hough transform arithmetic circuit
JP2935847B2 (en) Image processing device
JPS6277689A (en) Generalized huff converting circuit
JP2962148B2 (en) Image processing device
JPS63229576A (en) Segment extracting device
CN112464753A (en) Method and device for detecting key points in image and terminal equipment
JPH03189796A (en) Automatic reader for indicator
JPS6275205A (en) Contour extracting device
CN115393427A (en) Method and device for determining position and posture of camera, computer equipment and storage medium
JPH0120469B2 (en)
JPH07113975B2 (en) Center of gravity detector

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees