JPH0516624B2 - - Google Patents
Info
- Publication number
- JPH0516624B2 JPH0516624B2 JP21724985A JP21724985A JPH0516624B2 JP H0516624 B2 JPH0516624 B2 JP H0516624B2 JP 21724985 A JP21724985 A JP 21724985A JP 21724985 A JP21724985 A JP 21724985A JP H0516624 B2 JPH0516624 B2 JP H0516624B2
- Authority
- JP
- Japan
- Prior art keywords
- counter
- image
- gradient
- address
- signals
- 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
Links
Landscapes
- Image Analysis (AREA)
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、デイジタル画像処理において、濃淡
画像の中から任意の領域を抽出する一般化ハフ
(Hough)変換回路に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a generalized Hough transform circuit for extracting an arbitrary region from a grayscale image in digital image processing.
(従来の技術)
形は既知で、シルエツトとして画像に表現でき
ているが、解析的な形(パラメータ)で表現でき
ていない対象(これを参照対象と呼ぶ)を、濃淡
画像(イメージ空間と呼ぶ)からその対象を検出
し、その位置(向き、大きさも可変にして扱うこ
とができるが、ここでは向き、大きさは固定して
いるものとする)を知るのが、一般化ハフ変換で
ある。(Prior art) An object whose shape is known and can be expressed as a silhouette in an image, but which cannot be expressed in an analytical form (parameters) (this is called a reference object) is created using a grayscale image (called an image space). ) to detect the object and find its position (direction and size can also be handled as variable, but in this case the direction and size are assumed to be fixed) is the generalized Hough transform. .
従来、このようなハフ変換は、コンピユータを
用い、ソフトウエアによつて処理されており、そ
の手順の原理について第10図乃至第13図を用
いて以下に説明する。 Conventionally, such Hough transform has been processed by software using a computer, and the principle of the procedure will be explained below using FIGS. 10 to 13.
先ず、第10図の参照対象IM内に参照点(xc,
yc)を設定する。次に、参照対象IMの境界の各
点(x,y)に関して、次のことを行う。 First, a reference point (x c ,
y c ). Next, the following is performed for each point (x, y) on the boundary of the reference object IM.
参照対象の境界の法線方向の角度φi′を求め、
定められたレベで量子化したφiを得る。 Find the angle φi′ in the normal direction of the boundary of the reference object,
Obtain φi quantized at a predetermined level.
点(x,y)と参照点(xc,yc)とのx軸方
向、y軸方向の距離Δx△=xc−x、Δy△=yc−y
を求める。 Distance between point (x, y) and reference point (x c , y c ) in the x-axis direction and y-axis direction Δx△=x c −x, Δy△=y c − y
seek.
第11図に示すRテーブル中のφに対応する
欄に、(Δx,Δy)を書き加える。 Add (Δx, Δy) to the column corresponding to φ in the R table shown in FIG.
以上によりRテーブルを作成する。 The R table is created through the above steps.
続いて、イメージ空間からパラメータ空間への
変換を行う(ここで、イメージ空間内で、参照対
象は、背景より明るいか又は暗いことが分つてい
るものとする)。 Subsequently, a transformation from image space to parameter space is performed (assuming that in image space the reference object is known to be brighter or darker than the background).
即ち、第12図に示すイメージ空間の各点
(x,y)について次のことを行う。 That is, the following is performed for each point (x, y) in the image space shown in FIG.
点(x,y)の濃度の変化(gradient)の方
向φi′を求め、定められたレベルで量子化した
φiを得る。 The direction φi' of the gradient of the concentration at the point (x, y) is determined, and φi quantized at a predetermined level is obtained.
Rテーブル中のφiの欄にある全ての(Δx1,
Δy1)…(Δxn,Δyn)に対して、次のことを
行う。 All (Δx 1 ,
Δy 1 )…(Δxn, Δyn), do the following.
−1 xc△=x+Δxj(j=1〜n) yc△=y+Δyjを計算する。−1 x c Δ=x+Δxj (j=1 to n) y c Δ=y+Δyj is calculated.
−2 パラメータ空間の(xc,yc)上の値を+
1とする。−2 The value on (x c , y c ) in the parameter space is +
Set to 1.
尚、パラメータ空間の各点の初期値は“0”で
ある。 Note that the initial value of each point in the parameter space is "0".
続いて、第13図に示すパラメータ空間を探索
し、極大点(x1 c,y1 c)…(xm c,ym c)を求める。
これらがイメージ空間上の参照点の位置になる。 Next, the parameter space shown in FIG. 13 is searched to find maximum points (x 1 c , y 1 c )...(x m c , y m c ).
These become the positions of reference points on the image space.
(発明が解決しようとする問題点)
このような手順に従つて処理されるハフ変換
は、ノイズに強いという特徴があるが、処理時間
が長く、実用的でないという問題点がある。(Problems to be Solved by the Invention) The Hough transform processed according to such a procedure has the feature of being resistant to noise, but has the problem that the processing time is long and it is not practical.
本発明はこのような問題点に鑑みてなされたも
ので、その目的は、一般化ハフ変換を高速で行え
る回路をハードウエアによつて実現することにあ
る。 The present invention has been made in view of these problems, and its purpose is to realize a circuit that can perform generalized Hough transform at high speed using hardware.
(問題点を解決するための手段)
前記した問題点を解決する本発明は、Rテーブ
ル作成時に参照対象勾配画像ブロツクとなり、イ
メージ空間からパラメータ空間への変換時にイメ
ージ空間勾配画像ブロツクとなるものであつて、
勾配の大きさを表わす2値画像を格納する領域と
勾配の方向を表わす濃淡画像を格納する領域とか
らなる勾配画像メモリと、この勾配画像メモリに
アドレス信号を与えるアドレスカウンタと、前記
勾配方向濃淡画像領域からのデータがアドレス信
号として与えられるリフアレンスカウンタ列と、
このリフアレンスカウンタ列からのデータを入力
するダウンカウンタと、このダウンカウンタから
の信号及び前記勾配方向濃淡画像領域からのデー
タがそれぞれアドレス信号として与えられるΔx
用Rテーブル及びΔy用Rテーブルと、Rテーブ
ル作成時において、前記アドレスカウンタからの
信号x,yと参照点の座標信号xc,ycを入力し、
x−xc,y−ycをそれぞれ演算し、この演算結果
を前記Δx用Rテーブル、Δy用Rテーブルに書き
込むと共に、イメージ空間からパラメータ空間へ
の変換時において、前記アドレスカウンタからの
信号x,yと前記Δx用Rテーブル、Δy用Rテー
ブルから読み出した信号Δx,Δyを入力し、x+
Δx,y+Δyを演算する演算器と、この演算器か
らの演算結果x+Δx,y+Δyがアドレス信号と
して与えられるパラメータカウンタ列と、前記勾
配大きさ2値画像領域からの信号を入力し、前記
各回路に制御信号を与える制御回路とを備えたこ
とを特徴とするものである。(Means for Solving the Problems) The present invention that solves the above-mentioned problems is such that a gradient image block becomes a reference target when creating an R table, and becomes an image space gradient image block when converting from image space to parameter space. It's hot,
a gradient image memory comprising an area for storing a binary image representing the magnitude of the gradient and an area for storing a grayscale image representing the direction of the gradient; an address counter for supplying an address signal to the gradient image memory; and a grayscale image in the gradient direction. a reference counter column to which data from the image area is given as an address signal;
A down counter into which data from this reference counter array is input, and Δx to which signals from this down counter and data from the gradient direction grayscale image area are respectively given as address signals.
When creating the R table and the R table for Δy, input the signals x, y from the address counter and the coordinate signals x c , y c of the reference point,
x-x c and y-y c are respectively calculated, and the calculation results are written in the R table for Δx and the R table for Δy, and at the time of conversion from image space to parameter space, the signal x from the address counter is , y and the signals Δx and Δy read from the R table for Δx and the R table for Δy are input, and x+
An arithmetic unit that calculates Δx, y+Δy, a parameter counter array to which the calculation results x+Δx, y+Δy from this arithmetic unit are given as address signals, and a signal from the gradient magnitude binary image area are inputted to each circuit. The present invention is characterized in that it includes a control circuit that provides a control signal.
(実施例)
以下、図面を用いて本発明の実施例を詳細に説
明する。(Example) Hereinafter, an example of the present invention will be described in detail using the drawings.
第1図は、本発明の一実施例の構成ブロツク図
である。図において、1は全体回路を統括、制御
するタイミング及び制御回路(以下これを単に制
御回路と略称する)、2はこの制御回路1からカ
ウントアツプ信号及びクリア信号が与えられるア
ドレスカウンタ、3はアドレスカウンタ2からの
アドレス信号が印加される勾配画像メモリで、R
テーブル作成時には参照対象勾配画像ブロツクと
なり、又、イメージ空間からパラメータ空間への
変換時には、イメージ空間勾配画像ブロツクとな
る。この勾配画像メモリ3は、勾配の大きさを表
わす2値画像を格納する領域31と、勾配の方向
を表わす濃淡画像を格納する領域32とからな
る。 FIG. 1 is a block diagram of an embodiment of the present invention. In the figure, 1 is a timing and control circuit that integrates and controls the entire circuit (hereinafter simply referred to as the control circuit), 2 is an address counter to which the count-up signal and clear signal are given from the control circuit 1, and 3 is an address. A gradient image memory to which the address signal from counter 2 is applied, R
When creating a table, it becomes a reference target gradient image block, and when converting from image space to parameter space, it becomes an image space gradient image block. The gradient image memory 3 consists of an area 31 for storing a binary image representing the magnitude of the gradient, and an area 32 for storing a grayscale image representing the direction of the gradient.
ここで、勾配画像の定義をすれば以下の通りで
ある。 Here, the definition of a gradient image is as follows.
第2図に示すように濃淡画像A(原画像)の勾
配画像は、勾配の大きさγを表わす画像と、勾配
の方向φを表わす画像からなる。即ち、点(x,
y)の濃度をA(x,y)とすると、点(x,y)
における勾配gradA(x,y)は、(∂A(x,
y)/∂x,∂A(x,y)/∂y)になる。この勾
配の大きさγを2値化したものが、勾配の大きさ
を表わす2値画像であり、勾配の方向φを濃淡値
で表わしたものが、勾配の方向を表わす濃淡画像
である。第3図は、以上の関係を図で説明したも
のである。第1図に戻り、4は勾配画像メモリ3
の勾配方向濃淡画像領域32からの勾配の方向を
表わすデータφがアドレス信号として与えられる
フアレンスカウンタ列で、制御回路1からカウン
トアツプ信号が印加される。5はリフアレンスカ
ウンタ列4からのデータが与えられるダウンカウ
ンタ、6はΔy用Rテーブル、7はΔx用Rテーブ
ルで、何れもメモリが用いられており、勾配方向
濃淡画像領域32からの信号φがアドレス信号と
して与えられると共に、ダウンカウンタ5からの
データがアドレス信号として与えられる。 As shown in FIG. 2, the gradient image of the grayscale image A (original image) consists of an image representing the gradient magnitude γ and an image representing the gradient direction φ. That is, the point (x,
If the concentration of y) is A(x, y), then the point (x, y)
The gradient gradA(x, y) at is (∂A(x, y)
y)/∂x, ∂A(x, y)/∂y). A binary image representing the magnitude of the gradient is obtained by converting the magnitude γ of the gradient into a binary value, and a grayscale image representing the direction of the gradient is represented by a gray value representing the direction φ of the gradient. FIG. 3 is a diagram explaining the above relationship. Returning to FIG. 1, 4 is the gradient image memory 3
A count-up signal is applied from the control circuit 1 to the reference counter array to which data φ representing the direction of the gradient from the gradient direction grayscale image area 32 is given as an address signal. 5 is a down counter to which data from the reference counter row 4 is given; 6 is an R table for Δy; and 7 is an R table for Δx, all of which use memory, and which receive the signal φ from the gradient direction grayscale image area 32. is given as an address signal, and data from the down counter 5 is given as an address signal.
8はアドレスカウンタ2からの信号と、バスス
イツチ9で切換えられて印加される信号との減算
又は加算を行う演算器、10は演算器8からの信
号がアドレス信号として与えられるパラメータカ
ウンタ列である。尚、このパラメータカウンタ
は、ランダム・アクセス・メモリ(RAM)を用
いてもよい。 8 is an arithmetic unit that subtracts or adds the signal from the address counter 2 and the signal switched and applied by the bus switch 9; 10 is a parameter counter column to which the signal from the arithmetic unit 8 is given as an address signal. Note that this parameter counter may use random access memory (RAM).
このように構成した回路の動作を、Rテーブル
作成時と、イメージ空間からパラメータ空間への
変換時とに分けて説明すれば、以下の通りであ
る。 The operation of the circuit configured as described above will be explained separately as follows: when creating an R table and when converting from image space to parameter space.
(Rテーブル作成時)
この時の信号の流れと、制御信号を第4図に示
す。この回路において、初期設定は、次のように
して行われる。(When creating the R table) Figure 4 shows the signal flow and control signals at this time. In this circuit, initial settings are performed as follows.
参照対象画像の勾配画像を求め、そのデータ
を勾配画像メモリ(勾配画像ブロツク)3にセ
ツトする。 A gradient image of the reference target image is obtained and its data is set in a gradient image memory (gradient image block) 3.
リフアレンスカウンタ列4に全て“0”をセ
ツトする。 All "0"s are set in reference counter column 4.
アドレスカウンタ2は、勾配画像メモリ3の
最初のアドレスを指す。 Address counter 2 points to the first address of gradient image memory 3.
以上の初期設定後に、次のような処理動作を行
う。 After the above initial settings, the following processing operations are performed.
制御回路1は、勾配大きさ2値画像データが
“1”になるまで、アドレスカウンタ2をイン
クリメントする。 The control circuit 1 increments the address counter 2 until the gradient magnitude binary image data becomes "1".
この時の勾配方向濃淡画像領域32からのデ
ータφで指される、リフアレンスカウンタ列4
のデータを、ダウンカウンタ5に格納する。 Reference counter row 4 indicated by data φ from gradient direction grayscale image area 32 at this time
The data is stored in the down counter 5.
データφで指されているリフアレンスカウン
タ列4の内容に+1する。 The contents of reference counter column 4 pointed to by data φ are incremented by 1.
演算器8で、ここに入力されているアドレス
カウンタ2からの信号x,y、バススイツチ9
からの参照点の座標信号xc,ycに対して、x−
xc,y−ycをそれぞれ計算する。 The arithmetic unit 8 calculates the signals x, y from the address counter 2 input here, and the bus switch 9.
For the reference point coordinate signals x c and y c from x-
Calculate x c and y−y c , respectively.
データφ及びダウンカウンタ5の内容で指さ
れるΔx用Rテーブル7とΔy用Rテーブル6の
所定番所に、バススイツチ9を介して印加され
る計算結果x−xcとy−ycとをそれぞれ書き込
む。 The calculation results x-x c and y-y c are applied via the bus switch 9 to the predetermined locations of the R table 7 for Δx and the R table 6 for Δy indicated by the data φ and the contents of the down counter 5. Write each.
第5図はΔy用Rテーブル6、Δx用Rテーブ
ル7へのデータの書き込みの様子を示す概念図
である。 FIG. 5 is a conceptual diagram showing how data is written to the R table 6 for Δy and the R table 7 for Δx.
アドレスカウンタ2の内容に+1し、処理動
作のへ戻る。 The contents of address counter 2 are incremented by 1 and the process returns to the processing operation.
アドレスカウンタ2が勾配画像メモリ3の全
域を走査し終えると動作は終了し、Rテーブル
6,7へ全てのデータが書き込まれる。(イメ
ージ空間からパラメータ空間への変換時)この
時の信号の流れと、制御信号を第6図に示す。
この回路において、初期設定は、次のようにし
て行われる。 When the address counter 2 finishes scanning the entire area of the gradient image memory 3, the operation ends and all data are written into the R tables 6 and 7. (When converting from image space to parameter space) The signal flow and control signals at this time are shown in FIG.
In this circuit, initial settings are performed as follows.
イメージ空間画像の勾配画像を求め、そのデ
ータを勾配画像メモリ3にセツトする。 A gradient image of the image space image is obtained and the data is set in the gradient image memory 3.
パラメータカウンタ列10に全て“0”をセ
ツトする。 All "0"s are set in the parameter counter column 10.
アドレスカウンタ2は、勾配画像の最初のア
ドレスを指す。 Address counter 2 points to the first address of the gradient image.
以上の初期制定後に、次のような処理動作を行
う。 After the above initial establishment, the following processing operations are performed.
制御回路1は、勾配大きさ2値画像データが
“1”になるまで、アドレスカウンタ2をイン
クリメントする。 The control circuit 1 increments the address counter 2 until the gradient magnitude binary image data becomes "1".
勾配方向濃淡画像領域32の、アドレスカウ
ンタ2の指す点の値φを取り出す。 The value φ of the point pointed to by the address counter 2 in the gradient direction grayscale image area 32 is extracted.
リフアレンスカウンタ列4のφに相当するカ
ウンタの内容を、ダウンカウンタ5に格納す
る。 The contents of the counter corresponding to φ in the reference counter column 4 are stored in the down counter 5.
ダウンカウンタ5の値が“0”になるまで、
以下の−1〜−4の処理を行う。 Until the value of down counter 5 becomes “0”,
Perform the following processes -1 to -4.
−1 Δx用Rテーブル7とΔy用Rテーブル
6のφとダウンカウンタ5とで指される番所
のデータΔx,Δyを読み出す。 -1 Read the data Δx and Δy of the address indicated by φ and the down counter 5 in the R table 7 for Δx and the R table 6 for Δy.
第7図はRテーブル6,7からのこのデー
タの読み出しの様子を示す概念図である。 FIG. 7 is a conceptual diagram showing how this data is read from the R tables 6 and 7.
−2 演算器8において、ここに入力されて
いるアドレスカウンタ2からの信号x,y、
バススイツチ9からのRテーブル6,7から
の読み出しデータΔx,Δyに対して、x+
Δx,y+Δyをそれぞれ計算する。 -2 In the arithmetic unit 8, the signals x, y,
For the read data Δx and Δy from the R tables 6 and 7 from the bus switch 9, x+
Calculate Δx, y+Δy, respectively.
−3 パラメータカウンタ列10のx+Δx,
y+Δyで指されるカウンタの倍を+1する。 −3 x+Δx of parameter counter row 10,
Multiply the counter pointed to by y+Δy by +1.
−4 ダウンカウンタ5を−1する。 -4 Decrement the down counter 5 by 1.
アドレスカウンタ2を+1し、処理動作の
へ戻る。 The address counter 2 is incremented by 1 and the process returns to the processing operation.
アドレスカウンタ2が勾配画像メモリ3の全
域を走査し終えると、動作は終了する。 When the address counter 2 finishes scanning the entire gradient image memory 3, the operation ends.
第8図は、本発明の他の実施例の要部の構成ブ
ロツク図である。この実施例においては、参照対
象の位置だけでなく、大きさS、方向θも未知の
場合も、ハフ変換できるようにしたもので、演算
器8と、バススイツチ9との間に第2の演算器1
1を設けると共に、Nsバツフア12、Sカウン
タ13、スケール関数テーブル14及びNθバツ
フア15、θカウンタ16、sin、cos関数テーブ
ル17をそれぞれ設けている。Sカウンタ13、
θカウンタ16の出力はそれぞれパラメータカウ
ンタ列10に与えられ、又、スケール関数テーブ
ル14、sin、cos関数テーブル17の出力は、そ
れぞれ第2の演算器11に与えられている。 FIG. 8 is a block diagram of the main parts of another embodiment of the present invention. In this embodiment, the Hough transform can be performed even when not only the position of the reference object but also the size S and direction θ are unknown. Vessel 1
1, an Ns buffer 12, an S counter 13, a scale function table 14, an Nθ buffer 15, a θ counter 16, and a sin and cos function table 17. S counter 13,
The outputs of the θ counter 16 are respectively given to the parameter counter array 10, and the outputs of the scale function table 14, sin and cos function tables 17 are respectively given to the second arithmetic unit 11.
第9図は、この第2の演算器11の詳細な構成
ブロツク図である。この回路において、MULは
何れも掛算器であり、ADDは加算器、SUBは減
算器で、加算器ADDからは大きさSと方向θを
考慮した信号Δx′が出力され、又、減算器SUBか
らは、大きさSと方向θを考慮した信号Δy′が出
力される。 FIG. 9 is a detailed block diagram of the second arithmetic unit 11. As shown in FIG. In this circuit, MUL is a multiplier, ADD is an adder, and SUB is a subtracter. The adder ADD outputs a signal Δx′ that takes into account the magnitude S and direction θ, and the subtracter SUB outputs a signal Δy' that takes into account the magnitude S and direction θ.
このように構成した回路の動作を、第1図回路
の動作と重複する部分を除いて説明すれば、以下
の通りである。 The operation of the circuit constructed in this way will be explained as follows, excluding the parts that overlap with the operation of the circuit of FIG.
Rテーブル作成時の動作は第1図と同様であ
る。(イメージ空間から、パラメータ空間への変
換時)
(追加する初期設定)
考える参照対象の拡大・縮小の係数を、スケ
ール関数テーブル14に設定すると共に、その
係数の個数をNsバツフア12に設定する。 The operation when creating the R table is the same as that shown in FIG. (When converting from image space to parameter space) (Initial settings to be added) The coefficients for scaling up and down the reference object to be considered are set in the scale function table 14, and the number of the coefficients is set in the Ns buffer 12.
考える参照対象の回転角θに対するsinθ、
cosθの値を、sin、cos関数テーブル17に設定
すると共に、そのθの個数をNθバツフア15
に設定する。 sin θ for the rotation angle θ of the reference object considered,
Set the value of cos θ in the sin and cos function table 17, and set the number of θ in the Nθ buffer 15.
Set to .
(動作の変更点)
前記項のダウンカウンタ5の値が“0”にな
るまでの動作部分について、次のように変更す
る。(Changes in operation) The operation part until the value of the down counter 5 becomes "0" in the above section is changed as follows.
ダウンカウンタ5の値が“0”になるまで、
以下の−1〜−4の処理を行う。 Until the value of down counter 5 becomes “0”,
Perform the following processes -1 to -4.
−1 Δx,Δy用のRテーブル7,6中のφ
と、ダウンカウンタ5とで指される番所のデ
ータΔx,Δyを読み出す。 −1 φ in R tables 7 and 6 for Δx and Δy
and the data Δx and Δy of the address indicated by the down counter 5 are read out.
−2 Nsバツフア12の値をSカウンタ1
3に格納する。Sカウンタ13の値が“0”
になるまで(イ)〜(ハ)の処理を行う。 -2 The value of Ns buffer 12 is converted to S counter 1.
Store in 3. The value of S counter 13 is “0”
Perform steps (a) to (c) until the result is reached.
(イ) スケール関数テーブル14のSカウンタ13
が指す値を、第2の演算器11の入力にセツト
する。(b) S counter 13 of scale function table 14
The value pointed to by is set to the input of the second arithmetic unit 11.
(ロ) Nθバツフア15の値をθカウンタ16に格
納する。θカウンタの値が“0”になるまで、
(ロ−1)〜(ロ−4)の処理を行う。(b) Store the value of the Nθ buffer 15 in the θ counter 16. Until the value of the θ counter becomes “0”,
Processes (Ro-1) to (Ro-4) are performed.
(ロ‐1) sin、cos関数テーブル17のθカウンタ
16が指す値(sinθ、cosθ)を第2の演算器
2の入力に設定する。(B-1) The values (sin θ, cos θ) indicated by the θ counter 16 of the sin, cos function table 17 are set to the inputs of the second arithmetic unit 2.
(ロ‐2) 第2の演算器、第1の演算器で所定の
演算を行い、xc,ycを求める。(B-2) Perform predetermined calculations using the second arithmetic unit and the first arithmetic unit to obtain x c and y c .
(ロ‐3) パラメータカウンタ列10のxc,yc,
S,θに対応するカウンタの各値を+1とす
る。(B-3) Parameter counter row 10 x c , y c ,
Let each value of the counter corresponding to S and θ be +1.
(ロ‐4) θカウンタ16の値を−1する。(B-4) Decrement the value of the θ counter 16 by 1.
(ハ) Sカウンタ13の値を−1する。(c) Decrement the value of S counter 13 by 1.
−3 ダウンカウンタ5を−1する。 -3 Decrement the down counter 5 by 1.
(発明の効果)
以上説明したように、本発明によれば、一般化
ハフ変換をハードウエア化された回路によつて主
として行うようにしたもので、一般化ハフ変換を
高速で行うことができる。(Effects of the Invention) As explained above, according to the present invention, the generalized Hough transform is mainly performed by a hardware circuit, and the generalized Hough transform can be performed at high speed. .
第1図は本発明回路の一例を示す構成ブロツク
図、第2図及び第3図は勾配画像の定義を説明す
るための図、第4図はRテーブル作成時における
信号の流れを示す図、第5図はこの時の各Rテー
ブルへのデータの書き込みの様子を示す概念図、
第6図はイメージ空間からパラメータ空間への変
換時における信号の流れを示す図、第7図はこの
時の各Rテーブルからのデータの読み出しの様子
を示す概念図、第8図は本発明回路の他の実施例
の要部構成ブロツク図、第9図は第8図における
第2の演算器の構成ブロツク図、第10図乃至第
13図は一般化ハフ変換の原理説明図である。
1……制御回路、2……アドレスカウンタ、3
……勾配画像メモリ、31……勾配大きさ2値画
像領域、32……勾配方向濃淡画像領域、4……
リフアレンスカウンタ列、5……ダウンカウン
タ、6……Δy用Rテーブル、7……Δx用Rテー
ブル、8……演算器、9……バススイツチ、10
……パラメータカウンタ列。
FIG. 1 is a configuration block diagram showing an example of the circuit of the present invention, FIGS. 2 and 3 are diagrams for explaining the definition of a gradient image, and FIG. 4 is a diagram showing the flow of signals when creating an R table. FIG. 5 is a conceptual diagram showing how data is written to each R table at this time.
FIG. 6 is a diagram showing the signal flow during conversion from image space to parameter space, FIG. 7 is a conceptual diagram showing how data is read from each R table at this time, and FIG. 8 is a circuit of the present invention. FIG. 9 is a block diagram of the configuration of the second arithmetic unit in FIG. 8, and FIGS. 10 to 13 are diagrams explaining the principle of generalized Hough transform. 1...Control circuit, 2...Address counter, 3
...Gradient image memory, 31... Gradient magnitude binary image area, 32... Gradient direction gray image area, 4...
Reference counter row, 5...Down counter, 6...R table for Δy, 7...R table for Δx, 8... Arithmetic unit, 9... Bus switch, 10
...parameter counter column.
Claims (1)
置(Δx,Δy)とその参照対象の境界の各点の境
界に対する法線の角度が格納された参照テーブル
を作成する時に参照対象勾配画像ブロツクとな
り、イメージ空間からパラメータ空間への変換時
にイメージ空間勾配画像ブロツクとなるものであ
つて、 勾配の大きさを表わす2値画像を格納する領域
と勾配の方向を表わす濃淡画像を格納する領域と
からなる勾配画像メモリと、この勾配画像メモリ
にアドレス信号を与えるアドレスカウンタと、 前記勾配方向濃淡画像領域からのデータがアド
レス信号として与えられるリフアレンスカウンタ
列と、このリフアレンスカウンタ列からのデータ
を入力するダウンカウンタと、 このダウンカウンタからの信号及び前記勾配方
向濃淡画像領域からのデータがそれぞれアドレス
信号として与えられるΔx用参照テーブル及びΔy
用参照テーブルと、 参照テーブル作成時において、前記アドレスカ
ウンタからの信号x,yと参照点の座標信号xc,
ycを入力し、x−xc,y−ycをそれぞれ演算し、
この演算結果を前記Δx参照テーブル、Δy用参照
テーブルに書き込むと共に、イメージ空間からパ
ラメータ空間への変換時において、前記アドレス
カウンタからの信号x,yと前記Δx用参照テー
ブル、Δy用Rテーブルから読み出した信号Δx,
Δyを入力し、x+Δx,y+Δyを演算する演算
器と、 この演算器からの演算結果x+Δx,y+Δyが
アドレス信号として与えられるパラメータカウン
タ列と、前記勾配の大きさを表わす2値画像領域
からの信号を入力し、前記各回路に制御信号を与
える制御回路 とを備えた一般化ハフ変換回路。[Claims] 1. Create a reference table that stores the position (Δx, Δy) from the reference point for each point on the boundary of the reference object and the angle of the normal to the boundary of each point on the boundary of the reference object. When converting from image space to parameter space, it becomes a reference gradient image block, and when converting from image space to parameter space, it becomes an image space gradient image block. a gradient image memory consisting of an area for storing an image; an address counter that provides an address signal to the gradient image memory; a reference counter column to which data from the gradient direction gray image area is provided as an address signal; a down counter into which data from the counter row is input; a reference table for Δx and Δy to which signals from the down counter and data from the gradient direction gray image area are respectively given as address signals;
When creating the reference table, the signals x, y from the address counter and the coordinate signals xc,
Input yc and calculate x-xc and y-yc, respectively.
This calculation result is written to the Δx reference table and the Δy reference table, and when converting from image space to parameter space, the signals x and y from the address counter and the Δx reference table and Δy R table are read out. signal Δx,
an arithmetic unit that inputs Δy and calculates x+Δx, y+Δy; a parameter counter array to which the calculation results x+Δx, y+Δy from this arithmetic unit are given as address signals; and a signal from the binary image area representing the magnitude of the gradient. and a control circuit that inputs a control signal to each circuit and provides a control signal to each of the circuits.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21724985A JPS6277689A (en) | 1985-09-30 | 1985-09-30 | Generalized huff converting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21724985A JPS6277689A (en) | 1985-09-30 | 1985-09-30 | Generalized huff converting circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6277689A JPS6277689A (en) | 1987-04-09 |
| JPH0516624B2 true JPH0516624B2 (en) | 1993-03-04 |
Family
ID=16701185
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21724985A Granted JPS6277689A (en) | 1985-09-30 | 1985-09-30 | Generalized huff converting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6277689A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105188459A (en) * | 2014-02-26 | 2015-12-23 | Ykk株式会社 | Slide fastener assembly apparatus |
| KR20180099414A (en) * | 2017-02-28 | 2018-09-05 | 박미순 | a fitting sturucture combined with bimaterial fitting |
-
1985
- 1985-09-30 JP JP21724985A patent/JPS6277689A/en active Granted
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105188459A (en) * | 2014-02-26 | 2015-12-23 | Ykk株式会社 | Slide fastener assembly apparatus |
| KR20180099414A (en) * | 2017-02-28 | 2018-09-05 | 박미순 | a fitting sturucture combined with bimaterial fitting |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6277689A (en) | 1987-04-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3243894B2 (en) | Shading image processing device | |
| US6643412B1 (en) | Method and apparatus for high speed convolution | |
| JPH0516624B2 (en) | ||
| JPH0353668B2 (en) | ||
| JPH0516625B2 (en) | ||
| JPH0346045B2 (en) | ||
| JPS60225282A (en) | Reducing system of picture | |
| JPS63201880A (en) | Image processing device | |
| JPS6382530A (en) | Semiconductor storage device | |
| JPS5816217B2 (en) | Connected region detection method | |
| JPS62107384A (en) | Segment extracting device | |
| JPS61188671A (en) | Image processor | |
| JPS60157672A (en) | Picture processing circuit | |
| JP3260848B2 (en) | Brightness conversion circuit | |
| JPH04349583A (en) | Generalized hough transform circuit | |
| JP3553570B2 (en) | Motion amount detection method and motion amount detection device | |
| JP2967228B2 (en) | Image data transfer device | |
| Khai et al. | A Road Self-Guided Hardware-Based Demo System | |
| JP2697312B2 (en) | XY / r-θ conversion circuit | |
| JPH06208623A (en) | Feature amount extracting device for binary image | |
| JPH04342084A (en) | Method and device for plotting curve | |
| JPH0488483A (en) | Method and device for correcting image | |
| JPH02158888A (en) | Pattern matching circuit | |
| JP2659785B2 (en) | Image processing device | |
| JPH02132965A (en) | Image processing device |