JPS6180465A - Generating circuit of geometric function - Google Patents
Generating circuit of geometric functionInfo
- Publication number
- JPS6180465A JPS6180465A JP59203338A JP20333884A JPS6180465A JP S6180465 A JPS6180465 A JP S6180465A JP 59203338 A JP59203338 A JP 59203338A JP 20333884 A JP20333884 A JP 20333884A JP S6180465 A JPS6180465 A JP S6180465A
- Authority
- JP
- Japan
- Prior art keywords
- output
- register
- adder
- coordinate conversion
- circuit
- 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.)
- Granted
Links
Landscapes
- Image Processing (AREA)
- Image Generation (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
- Complex Calculations (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は幾何関数発生回路に関し、更に詳しくは1次関
数或いは2次関数を任意に発生ずることができるように
した幾何関数発生回路にl5111する。DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a geometric function generation circuit, and more specifically, to a geometric function generation circuit that can arbitrarily generate linear or quadratic functions. do.
(従来の技術)
画像計測M置は、例えば対象物を岡像手段で穎影し、そ
の結果1qられた画像から対象物の画像計測を行うよう
になっている。この種の装置においては、画像の座標変
換等を行う必要性から2次関数を発生させる場合がある
。従来、2次関数はソフトウェア上の処理によりつくら
れていた。(Prior Art) The image measurement device M is configured to, for example, image the object using an image means and measure the image of the object from the resulting image. In this type of device, a quadratic function may be generated due to the necessity of performing coordinate transformation of an image. Conventionally, quadratic functions have been created through software processing.
(発明が解決しようとする問題点)
2次関数をソフトウェア上の計葬で行う場合、処理速度
が遅いため2次関数の発生が遅くなり、全体としての画
像処理速度の向上が図れなかった。(Problems to be Solved by the Invention) When a quadratic function is calculated by software, the processing speed is slow, so the generation of the quadratic function is slow, and the overall image processing speed cannot be improved.
本発明はこのような点に鑑みてなされたものであって、
第1の目的は2次関数発生回路をハードウェアで構成し
て2次関数を高速に発生させることのできる幾何関数発
生回路を実現することであり、第2の目的は任意の2次
関数を発生させることのできる幾何関数発生回路を実現
することにある。The present invention has been made in view of these points, and
The first purpose is to realize a geometric function generation circuit that can generate quadratic functions at high speed by configuring a quadratic function generation circuit with hardware.The second purpose is to create a geometric function generation circuit that can generate quadratic functions at high speed. The object of the present invention is to realize a geometric function generation circuit that can generate geometric functions.
(問題点を解決するための手段)
前記した問題点を解決する本発明は、第1にラスタスキ
ャン型画@処理装置からの同期信号に対応して係数a、
b、cに関連する3種のデータ入力の1つを選択する選
択手段と、この選択手段からの出力をその一方の入力と
する2入力の加算器と、この加45からの出力を保持し
その出力が前記加算器の他方の入力となるレジスタとを
備え、画像走査位置のX、Y座標に対応して前記レジス
タからaX+bY+cを出力するように構成した座標変
換回路を3ステートバッファを介して2組接続し、前記
3ステートバッファがイネーブル状態にあるとぎには2
次関数を、3ステートバッファがディスエーブル状態に
あるときには、各座標変換回路からそれぞれ1次関数を
発生させるように構成したことを特徴としてお1つ、第
2にラスタスキャン型画像処理装置からの同期信号に対
応して係数a、b、cに関連する3種のデータ入力の1
つを選択する選択手段と、この選択手段からの出力をそ
の一方の入力とする2入力の加算器と、この加算器から
の出力を保持しその出力が前記加Piの他方の入力とな
るレジスタとを備え、画像走査位置のX、Y座標に対応
して前記レジスタからaX+b’/+Cを出力するよう
に構成した座標変換回路を3組用意し、第1及び第2の
座標変換回路の出力を第3の座標変換回路の入力とする
ことにより任意の2次関数を発生さけるように構成した
ことを特徴としている。(Means for Solving the Problems) The present invention, which solves the above-mentioned problems, firstly sets coefficients a,
A selection means for selecting one of the three types of data inputs related to b and c, a two-input adder whose one input is the output from the selection means, and an output from the adder 45 is held. A coordinate conversion circuit is provided with a register whose output becomes the other input of the adder, and is configured to output aX+bY+c from the register corresponding to the X and Y coordinates of the image scanning position via a 3-state buffer. When two sets are connected and the three-state buffer is enabled, two
The first feature is that the next function is configured so that each coordinate transformation circuit generates a linear function when the three-state buffer is disabled. One of three data inputs related to coefficients a, b, and c in response to a synchronization signal.
a two-input adder whose one input is the output from the selection means; and a register which holds the output from the adder and whose output serves as the other input of the adder Pi. Three sets of coordinate conversion circuits configured to output aX+b'/+C from the register corresponding to the X and Y coordinates of the image scanning position are prepared, and the outputs of the first and second coordinate conversion circuits are It is characterized in that it is configured to avoid generation of arbitrary quadratic functions by inputting it to the third coordinate transformation circuit.
(実施例)
以下、図面を参照して本発明の実施例を詳細に説明する
。(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings.
第1図は、本発明の一実施例を示す構成図である。図に
おいて、1oは第1の座標変換回路、30は該第1の座
標変換回路10の出力を受ける3ステートバッファ、2
0は第1の座標変換回路10の出力を3ステートバッフ
ァ30を介して受ける第2の座標変換回路、40はラス
タスキャン型画像処理装置からの各種同期信号(画素ク
ロック。FIG. 1 is a configuration diagram showing an embodiment of the present invention. In the figure, 1o is a first coordinate conversion circuit, 30 is a 3-state buffer that receives the output of the first coordinate conversion circuit 10, and 2
0 is a second coordinate conversion circuit that receives the output of the first coordinate conversion circuit 10 via the 3-state buffer 30, and 40 is various synchronization signals (pixel clocks) from the raster scan type image processing device.
×同期信号、Y同明信号)を受けて、第1及び第2の座
標変換回路10.・20及び3ステートバッファ30の
lh作を制御する制御回路である。該制御回路40とし
ては、例えばマイクロコンピュータが用いられる。この
ように構成された装置の動作を説明する前に、先ず座標
変換回路の動作について説明する。ここでは、座標変換
回路10の動作について説明する(座標変換回路20に
ついても全く同じである)。x synchronization signal, Y domei signal), the first and second coordinate conversion circuits 10. - A control circuit that controls the lh operation of the 20 and 3 state buffers 30. As the control circuit 40, for example, a microcomputer is used. Before explaining the operation of the apparatus configured in this way, the operation of the coordinate conversion circuit will first be explained. Here, the operation of the coordinate conversion circuit 10 will be explained (exactly the same applies to the coordinate conversion circuit 20).
画像処理装置において、画像の拡大、縮小1回転などを
実現するためには、例えばアフィン変換などにより、座
標変換を行って、変換されたアドレスにより画像メモリ
を読出す必要がある。座(票(Xi 、 Yt )から
座標(X2 、 Y2 )へのアフィン変換は次式で表
される。In an image processing apparatus, in order to enlarge or reduce an image by one rotation, it is necessary to perform coordinate transformation, such as affine transformation, and read out the image memory using the transformed address. The affine transformation from the locus (Xi, Yt) to the coordinates (X2, Y2) is expressed by the following equation.
X2 =a×、+b”y’、+C
Y2 =dX1 +eY1 +f
・・・・・・(1)
座標変換装置は、上述した変換を行うために用いられる
。X2 = ax, +b"y', +C Y2 = dX1 +eY1 +f (1) The coordinate transformation device is used to perform the above-mentioned transformation.
図において、1,2.3は制御用コンピュータなどから
係数a、b、cに関連するデータa、 b−、C−を入
力し保持する、3ステート出力の係数レジスタ、4はこ
れらの係数レジスタ1,2゜3のうらいずれか1つを一
方の入力へに受ける加算器である。該加算器4としては
、詐術論理演算ユニット(ALtJ)を加算用として用
いてもよい。In the figure, 1, 2.3 are 3-state output coefficient registers that input and hold data a, b-, and C- related to coefficients a, b, and c from a control computer, etc., and 4 are these coefficient registers. This is an adder that receives either one of 1 and 2.3 into one input. As the adder 4, a false logic operation unit (ALtJ) may be used for addition.
5は該加算器4の出力を保持しその出力を前記加算器4
の他方の入力Bに与える3ステート出力のレジスタ、4
0は前記したようにラスタスキャン型画像処理装置から
の同明信号であるX、Y同期信号及び画素クロックを入
力し、前記係数レジスタ1,2.3間のレジスタ選択、
前記加算器4及び前記レジスタ5の出力制御などを行う
制御回路である。5 holds the output of the adder 4 and sends the output to the adder 4.
A register with a 3-state output that is applied to the other input B of the 4
0 inputs the X and Y synchronization signals and the pixel clock, which are the same signals from the raster scan type image processing device as described above, and selects the register between the coefficient registers 1, 2.3,
This is a control circuit that controls the output of the adder 4 and the register 5.
第2図は上記のような構成の座標変換回路の各部の動作
をX方向6雨素、X同期幅4画素クロックの場合につい
て示したタイムチャートである。FIG. 2 is a time chart showing the operation of each part of the coordinate conversion circuit configured as described above in the case of 6 pixels in the X direction and a 4 pixel clock in the X synchronization width.
ラスタスキャンにおいて画素クロック(ハ)に対応して
画素がX方向にスキャンされ、1行スキャンすることに
X同明信号パルス〈口)が発生し、1画像スキャンし終
わるごとにY同期信号パルス(イ)が発生する。In raster scanning, pixels are scanned in the X direction in accordance with the pixel clock (c), and an X synchronization signal pulse (2) is generated when scanning one line, and a Y synchronization signal pulse (2) is generated every time one image is scanned. b) occurs.
係数レジスタ1,2.3は、制御用コンピュータなどか
らそれぞれ係1jla、b−,c−を入力、保持する。Coefficient registers 1, 2.3 input and hold coefficients 1jla, b-, and c-, respectively, from a control computer or the like.
ただしb==b−ha、c−−c−ga−b′、ここで
h−x周期−1,q−X同期幅−1で、第2図の場合X
lmlm=10.Xl15]明幅=4なのでh=9.
g−3となる。However, b==b-ha, c--c-ga-b', where h-x period-1, q-X synchronization width-1, and in the case of Fig. 2
lmlm=10. Xl15] Bright width=4, so h=9.
It becomes g-3.
Y同期信号が0″のとき、制御回路40からのレジスタ
選択信号により加算器4の八入力にはGレジスタ3が選
択される(第2図(ニ))。レジスタ5の出力は(4)
に示すレジスタイネーブル信号が1”°であるのでディ
スエーブル(非接続)となる(第2図(ト))。従って
、加算器4のB入力は総べて1″となる(第2図(ホ)
)。When the Y synchronization signal is 0'', the register selection signal from the control circuit 40 selects the G register 3 for the 8 inputs of the adder 4 (Fig. 2 (d)). The output of the register 5 is (4).
Since the register enable signal shown in is 1", it is disabled (disconnected) (Fig. 2 (g)). Therefore, the B inputs of the adder 4 are all 1" (Fig. 2 (g)). e)
).
かつ加算器4のキャリ入力が“1″となるので加算器4
の出力FはF−C−となる(第2図(へ))。レジスタ
5にはC−の値が保持される(第2図(へ))。And since the carry input of adder 4 becomes "1", adder 4
The output F becomes F−C− (see FIG. 2). The value of C- is held in the register 5 (see FIG. 2).
次にY同期信号が“1 ” 、 X同期信号が“O”と
なったとき、X同期信号の同期幅における最初の画素ク
ロック(周期t)から最後より1クロツク前の時点まで
は加算器4の八入力にはaレジスタ1が選択され、レジ
スタ5は出力イネーブル、加算器4のキャリ入力は0′
°となり、加算器4の出力はF=C−+Σaとなる。Next, when the Y synchronization signal becomes "1" and the X synchronization signal becomes "O", the adder 4 is used from the first pixel clock (period t) in the synchronization width of the X synchronization signal to the point one clock before the last. A register 1 is selected for the 8 inputs, register 5 is output enabled, and the carry input of adder 4 is 0'.
°, and the output of the adder 4 becomes F=C-+Σa.
次にX同期信号の同期幅における最後のクロックの時点
で、加算器4の八入力にはbレジスタ2もt
が選択される。゛加算器4の出力はF−b−+c′+g
a=cとなり、この結果法のクロックでレジースタ5に
は係数Cが保持される。Next, at the time of the last clock in the synchronization width of the X synchronization signal, t is also selected for the b register 2 at the 8 inputs of the adder 4.゛The output of adder 4 is F-b-+c'+g
a=c, and the coefficient C is held in the register 5 by the clock of this resultant method.
次にX同期信号が1″となったとき、加算器4の入力に
はaレジスタ1が選択され、F=c+Σaとなる。加算
器4の出力Fは1クロツク遅れてレジスタ5から出力さ
れる。Next, when the X synchronization signal becomes 1'', a register 1 is selected as the input of adder 4, and F=c+Σa. Output F of adder 4 is output from register 5 with a delay of one clock. .
次にX同期信号が°O゛′となったときも、加算器4の
八入力にはaレジスタ1が選択されaが順に加算される
が、最後のクロックの時点でa入力としてbレジスタ2
が選択される。この時加算出力はF=c+ha +b−
=b+cとなり、次のクロックでレジスタ5にはb+c
が保持される。Next, when the X synchronization signal becomes °O゛', a register 1 is selected as the 8 inputs of the adder 4, and a is sequentially added to the 8 inputs, but at the time of the last clock, register b 2 is selected as the a input.
is selected. At this time, the addition output is F=c+ha +b-
=b+c, and in the next clock, register 5 has b+c.
is retained.
以下同様に加算が繰返され、Y同+!l]信号とX同明
信号が共に1′°の時すなわら実際に画像メモリへアク
セスする時には、1クロツクごとにaが加算され、1ラ
インごとにbが加算された値がレジスタ5より出力され
る。すなわら、画像走査位置のX、Y座標に対応するレ
ジスタ5の出力はaX+bY十Cとなる。The addition is repeated in the same way, and Y same +! l] signal and the X domei signal are both 1'°, that is, when actually accessing the image memory, a is added every clock, and the value obtained by adding b every line is sent from register 5. Output. That is, the output of the register 5 corresponding to the X and Y coordinates of the image scanning position is aX+bY+C.
上記のような構成の座標変換回路によれば、出力レジス
タが1個になるなど構成が簡単となり、コントロール・
ロジックも簡単となる。According to the coordinate conversion circuit with the above configuration, the configuration is simple as there is only one output register, and the control and
The logic is also simple.
以上、座標変換回路1oの動作について説明したが、こ
の間の事情は第2の座標変換回路20についても全く同
様である。なお、第2の座標変換回路20は第1の座標
変換回路10と同様、レジスタ11.12,13.加算
器14及びレジスタ15から構成されている。以下、第
1図に示す装置の動作を、各場合に分けて説明する。The operation of the coordinate transformation circuit 1o has been described above, but the situation is exactly the same for the second coordinate transformation circuit 20. Note that, like the first coordinate conversion circuit 10, the second coordinate conversion circuit 20 has registers 11, 12, 13, . It consists of an adder 14 and a register 15. The operation of the apparatus shown in FIG. 1 will be explained below for each case.
(1)1次関数モード
このモードでは、制御回路40からの指令により3ステ
ートバッファ30はディスエーブル状態になっている。(1) Linear function mode In this mode, the three-state buffer 30 is disabled by a command from the control circuit 40.
従って、この状態では第1の座標変換回路10と第2の
座標変換回路2oは何れも独立であり、それぞれにその
出力U、Vから1次関数を発生させることができる。1
次関数発生動作については既述したとおりである。Therefore, in this state, the first coordinate transformation circuit 10 and the second coordinate transformation circuit 2o are both independent, and can generate linear functions from their respective outputs U and V. 1
The next function generation operation is as described above.
(2)2次関数モード
(イ)X2関数モード
座標(X、Y)の右隣の座標(X+1.Y)の画素にお
いて、X座標の2乗は
(X+1 > 2−X2 +2X+1
となる。そこで、画素クロックごとに2×+1を累算す
れば×2関数を発生させることができる。(2) Quadratic function mode (a) X2 function mode In the pixel at coordinates (X+1.Y) to the right of the coordinates (X, Y), the square of the X coordinate is (X+1 > 2-X2 +2X+1. , a ×2 function can be generated by accumulating 2×+1 every pixel clock.
今、第1の座標変換回路10でその出力UがU=2X+
1
なる関数を発生させる。3ステートバッファ30を、1
ill I11回路40からの指令によりイネーブル状
態にすると、第1の座標変換回路10の出力Uは、3ス
テートバッファ30を紅白して第2の座標変換回路20
内の加算器14のへ入力に入る。ここで、第2の座標変
換回路20のdレジスタ11の代わりにU出力を用い、
他のeレジスタ12及びfレジスタ13は、前述した座
標変換動作用として用いることにすると、該座標変換回
路20の出力■に×2関数が出力される。Now, the output U of the first coordinate conversion circuit 10 is U=2X+
1 generates a function. 3-state buffer 30, 1
When enabled by a command from the ill I11 circuit 40, the output U of the first coordinate conversion circuit 10 red-whites the 3-state buffer 30 and transfers it to the second coordinate conversion circuit 20.
The input signal is input to the adder 14 inside. Here, the U output is used instead of the d register 11 of the second coordinate conversion circuit 20,
If the other e register 12 and f register 13 are used for the coordinate conversion operation described above, a x2 function is outputted to the output (2) of the coordinate conversion circuit 20.
第3図はX方向要素i=6の簡略化した場合の各部の動
作を示すタイミングチャートである。図において1γ1
はY同期信号、石はX同期信号、XCは画素クロックで
ある。第3図の(a)が×2モードにお−ける第2の座
標変換回路20の動作を示している。dレジスタ11は
無視され、当初eレジスタ12に−i2 (−−36>
が、fレジスタ13にi2 (−36)が与えられてい
る。加算器14の8入力はY同期信号YSが立上る前の
レジスタ15の出力36が与えられているので、加算器
14のF出力(A+8>はOである。次の画素クロック
XCで第1の座標変換回路10から1次関数(2X+1
>が送られてくる。当初はX−OであるのでLI=1
となる。このとき、加算器14のB入力は前回のF出力
0がレジスタ15を介して与えられているのでo1従っ
て今回のF出力は
A+B=1 +O−1
となりF−1゜次の画素クロックでU=2X+1=3
(X=1 >が送られてくる。レジスタ15は前回のF
出力を保持しているので1、従って、このときのF出力
は
△+8=3+1−4
となりF=4゜以下、同様の操作を操り返す。この結果
、レジスタ15の出力VはXデータに関する2乗値とな
っていることがわかる。FIG. 3 is a timing chart showing the operation of each part in a simplified case where the X-direction element i=6. In the figure, 1γ1
is a Y synchronization signal, stone is an X synchronization signal, and XC is a pixel clock. FIG. 3(a) shows the operation of the second coordinate conversion circuit 20 in the x2 mode. The d register 11 is ignored and initially the e register 12 contains -i2 (--36>
However, i2 (-36) is given to the f register 13. Since the 8 inputs of the adder 14 are given the output 36 of the register 15 before the Y synchronization signal YS rises, the F output (A+8> is O) of the adder 14. The linear function (2X+1
> will be sent. Initially, it is X-O, so LI=1
becomes. At this time, the B input of the adder 14 is given the previous F output 0 via the register 15, so o1, so the current F output is A+B=1 +O-1, and F-1° U at the next pixel clock. =2X+1=3
(X=1> is sent. Register 15 is the previous F
Since the output is held, it is 1. Therefore, the F output at this time is Δ+8=3+1-4, and the same operation is repeated below F=4°. As a result, it can be seen that the output V of the register 15 is a square value of the X data.
(ロ)XY関数モード
座標(X、Y)の右隣の座標(X+1.Y)の要素にお
いて、X座標とY座標の積は
(X+1 )Y=XY+Y
となる。そこで、画素クロックごとにYを累算すれば×
Y関数を発生させることができる。(b) For the element at the coordinate (X+1.Y) to the right of the XY function mode coordinates (X, Y), the product of the X and Y coordinates is (X+1)Y=XY+Y. Therefore, if we accumulate Y for each pixel clock,
A Y function can be generated.
今、第1の座標変換回路10でその出力UがU=Y
なる関数を発生させる。3ステートバッファ30がイネ
ーブル状態の下で、第1の座標変換回路10の出力Uは
第2の座標変換回路20内の加算器14の△入力に入る
。ここで、第2の座標変換回路20のdレジスタ110
代わりにU出力を用い、他のeレジスタ12をOに、f
レジスタ13を無視し、座標変換動作を行わせると、該
座標変換回路20の出力■に×Y関数が出力される。Now, the output U of the first coordinate transformation circuit 10 generates a function such that U=Y. With the three-state buffer 30 enabled, the output U of the first coordinate transformation circuit 10 enters the Δ input of the adder 14 in the second coordinate transformation circuit 20. Here, the d register 110 of the second coordinate conversion circuit 20
Use the U output instead, set the other e register 12 to O, f
If the register 13 is ignored and the coordinate conversion operation is performed, the xY function is outputted to the output (2) of the coordinate conversion circuit 20.
第3図のくb)が、XY関数モードにおける第2の座標
変換回路20の動作を示している。Y−0の状態ではV
出力はOである。次にY−1になると加算器はこの1と
8入力のOとを加算し、そのF出力は
A+8=1 +O=1
となりF−1゜次の画素クロックで加算器14の出力は
△+B=1−1−2
となりF−2゜以下、同様の操作を繰り返し、レジスタ
15からはF出力が1クロツク遅れて出力される。この
結果、レジスタ15の出力はX−Y値を示していること
がわかる。3b) shows the operation of the second coordinate transformation circuit 20 in the XY function mode. In the state of Y-0, V
The output is O. Next, when Y-1 is reached, the adder adds this 1 and the 8 inputs O, and the F output becomes A+8=1 +O=1, and at the next pixel clock of F-1°, the output of the adder 14 is △+B =1-1-2, and the same operation is repeated below F-2°, and the F output is output from the register 15 with a delay of one clock. As a result, it can be seen that the output of the register 15 indicates the XY value.
(ハ)Y2関数モード
座+1fi(X、Y)の次のラインの座IM (X、
Y+1 >の1i!ii素において、Y座標の2乗は(
Y+1 ) 2=Y2+2Y+1
となる。そこで1ラインごとに2Y+1を累算すればY
2関数を発生させることができる。今、第1の座標変換
回路10でU=2Y+1なる関数を発生させ、第2の座
標変換回路20において、X開明信号Xsごとに係数e
を加算する代わりに3ステートバッファ30をイネーブ
ルとしてU−2Y+1を加算すればレジスタ15の出力
■にY2関数が出力される。(c) Y2 function mode locus + 1fi (X, Y) next line locus IM (X,
Y+1>1i! In the ii element, the square of the Y coordinate is (
Y+1) 2=Y2+2Y+1. Therefore, if we accumulate 2Y+1 for each line, Y
Two functions can be generated. Now, the first coordinate conversion circuit 10 generates a function U=2Y+1, and the second coordinate conversion circuit 20 generates a coefficient e for each X opening signal Xs.
If instead of adding , the 3-state buffer 30 is enabled and U-2Y+1 is added, the Y2 function will be output to the output 2 of the register 15.
第4図(9)がY2関数モードにおける第2の座標変換
回路20の動作を示す図である。このモードにおいては
、当初dレジスタ11が0、eレジスタ12が無視、f
レジスタ13が1に設定されている。レジスタ15のV
出力がY2の値になっていることがわかる。FIG. 4(9) is a diagram showing the operation of the second coordinate transformation circuit 20 in the Y2 function mode. In this mode, initially the d register 11 is 0, the e register 12 is ignored, and f
Register 13 is set to 1. V of register 15
It can be seen that the output is the value of Y2.
(ニ)X2+XYモード
2次関数は、上述した3種類に限るものではなく、これ
らを組合わせた関数も発生させることができるa座標(
X、Y)の右隣の座標(X+1゜Y)の画素において(
X+1)2と(X+1)・Yの和を求めると
(X+1 ) 2 + (X+1 ) ・
Y=X2 +XY+2X+Y+1
となる、そこで、画素クロックごとに2X+Y+1を累
nすれば、X2 +XY関数を発生させることができる
。(d) The X2+XY mode quadratic function is not limited to the three types mentioned above, but can also generate a function that combines these.
At the pixel at coordinates (X+1°Y) to the right of (X, Y), (
Calculating the sum of X+1)2 and (X+1)・Y, we get (X+1) 2 + (X+1)・
Y=X2 +XY+2X+Y+1 Therefore, by accumulating 2X+Y+1 for each pixel clock, the X2 +XY function can be generated.
今、第1の座標変換回路10でU−2X+Y+1なる関
数を発生させ、画素クロックごとに係数dを加算する代
わりに3ステートバッファ30をイネーブルとしてtJ
−2X+Y+1を加算すればレジスタ15の出力Vに開
数X2 +XY@lることができる。第4図(b)はX
2 +XY関敗モードにおける第2の座標変換回路2o
の動作を示す図である。この場合、dレジスタ11とf
レジスタ13はWA視され、当初eレジスタ12のみ0
にセットされる。レジスタ15の出力■がX2 +XY
値をとっていることがわかる。Now, the first coordinate conversion circuit 10 generates a function U-2X+Y+1, and instead of adding the coefficient d every pixel clock, the 3-state buffer 30 is enabled and tJ
By adding -2X+Y+1, the output V of the register 15 can be made into an open number X2 +XY@l. Figure 4(b) is
2. Second coordinate conversion circuit 2o in +XY control mode
FIG. In this case, d register 11 and f
Register 13 is treated as WA, and initially only e register 12 is 0.
is set to The output of register 15 is X2 +XY
It can be seen that it takes a value.
以上、2次IIl@の発生動作について詳しく説明した
。上述の説明においては、各座標変換回路10.2o中
の加算器4.14として加算器を用いたがALLJ(論
理演算ユニット)を用いてもよい。The operation of generating secondary IIl@ has been described above in detail. In the above description, an adder is used as the adder 4.14 in each coordinate conversion circuit 10.2o, but an ALLJ (logical operation unit) may also be used.
第5図は、本発明の他の実施例を示す構成ブロック図で
ある。図に示す装置は、第1及び第2の座標変換回路5
0.60に加えて、第3の座標変換回路70を付加した
ものである。即ち、第1及び第2の座標変換回路50.
60の出力U、■をそれぞれ3ステートバッファ31.
32を介して第3の座標変換回路70の六入力に接続し
ている。FIG. 5 is a block diagram showing another embodiment of the present invention. The device shown in the figure includes first and second coordinate conversion circuits 5
In addition to 0.60, a third coordinate conversion circuit 70 is added. That is, the first and second coordinate conversion circuits 50.
60 outputs U and ■ are respectively sent to 3-state buffers 31.
32 to six inputs of the third coordinate conversion circuit 70.
このように構成された回路において、第1の座標変換回
路50でX座標の変化分を計算し、画素クロック×Cご
とに加算し、第2の座標変換回路60でY座標の変化分
を計算し、X同期信号XSごとに加算することにより、
任意の2次関数を発生させることができる。第3の座標
変換回路70の出力Wからは任意の2次関数が出力され
る。In the circuit configured in this way, the first coordinate conversion circuit 50 calculates the change in the X coordinate and adds it every pixel clock x C, and the second coordinate conversion circuit 60 calculates the change in the Y coordinate. and by adding it for each X synchronization signal XS,
Any quadratic function can be generated. An arbitrary quadratic function is output from the output W of the third coordinate transformation circuit 70.
第6図はX2 +XY+Y2なる2次関数を発生させる
場合の第3の座標変換回路70の動作を示す図である。FIG. 6 is a diagram showing the operation of the third coordinate transformation circuit 70 when generating a quadratic function of X2 +XY+Y2.
第1の座標変換回路50からはU=2X+Y+1が出力
され、第2の座標変換回路60からはV=−4Y−35
が出力される。当初dレジスタとeレジスタは無視され
、fレジスタが31に設定される。レジスタの出力Wが
×2+×Y+Y2値をとっていることがわかる。このよ
うに、任意の2次関数が発生できれば、第7図に示すよ
ような画像の幾何学的歪の補正のための座標として用い
ることができる。The first coordinate conversion circuit 50 outputs U=2X+Y+1, and the second coordinate conversion circuit 60 outputs V=-4Y-35.
is output. Initially the d and e registers are ignored and the f register is set to 31. It can be seen that the output W of the register takes the value x2+xY+Y2. In this way, if any quadratic function can be generated, it can be used as coordinates for correcting the geometric distortion of an image as shown in FIG.
第8図は、本発明の他の実施例を示す溝底図である。2
個の座標変換回路80.90の出力U。FIG. 8 is a groove bottom view showing another embodiment of the present invention. 2
The output U of the coordinate conversion circuit 80.90.
■を?J算器100で割るようにする。割算器100の
出力Wは次式で与えられる。■? Divide by J calculator 100. The output W of the divider 100 is given by the following equation.
W−U/V
高速演算を行う場合には、割算器100としてROMを
用いることができる。図に示す回路によれば、パイリニ
ア(bi l 1nenr、)関数を発生させることが
できる。この結果、画像のたる形歪及び糸巻形歪の補正
を行うための座標
V+ −(aX+bY+c)
/(dX+eY+f)
V z −(Q X + h Y + i )/ (d
X+eY+f)
を発生させることができる。W-U/V When performing high-speed calculations, a ROM can be used as the divider 100. According to the circuit shown in the figure, a pi-linear (bi l 1 nenr, ) function can be generated. As a result, the coordinates for correcting the barrel distortion and pincushion distortion of the image are V+ - (aX+bY+c) / (dX+eY+f) V z - (Q
X+eY+f) can be generated.
(発明の効果)
以上詳細に説明したように、第1の発明によれば、1次
元の変換を行う座標変換回路を2個設け、これら座標変
換回路を3ステートバッファを介して接続することによ
り、1次関数乃至は2次関数を発生させることができ、
第2の発明によれば座標変換回路を3組用意することに
より任意の2次関数を発生させることができる。本発明
によればハードウェアにより関数を発生させることがで
きるので、高速処理ができる。(Effects of the Invention) As described above in detail, according to the first invention, two coordinate transformation circuits that perform one-dimensional transformation are provided, and these coordinate transformation circuits are connected via a three-state buffer. , can generate a linear function or a quadratic function,
According to the second invention, any quadratic function can be generated by preparing three sets of coordinate transformation circuits. According to the present invention, since functions can be generated by hardware, high-speed processing can be achieved.
第1図は本発明の一実施例を示″IjrR成ブロック図
、第2図は座標変換回路の動作を説明するための図、第
3図、第4図は本発明の詳細な説明するための図、第5
図は本発明の他の実施例を示す構成ブロック図、第6図
は本発明の詳細な説明するための図、第7図は幾何学的
歪補正を説明するための図、第8図は本発明の応用例を
示す図である。
1〜3.11〜13.5.15・・・レジスタ4.14
・・・加算器
10.20.50.60.70.80.90・・・座標
変換回路FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a diagram for explaining the operation of the coordinate conversion circuit, and FIGS. 3 and 4 are for explaining the present invention in detail. Figure 5
The figure is a block diagram showing another embodiment of the present invention, FIG. 6 is a diagram for explaining the present invention in detail, FIG. 7 is a diagram for explaining geometric distortion correction, and FIG. 8 is a diagram for explaining geometric distortion correction. It is a figure showing an example of application of the present invention. 1~3.11~13.5.15...Register 4.14
...Adder 10.20.50.60.70.80.90...Coordinate conversion circuit
Claims (2)
対応して係数a、b、cに関連する3種のデータ入力の
1つを選択する選択手段と、この選択手段からの出力を
その一方の入力とする2入力の加算器と、この加算器か
らの出力を保持しその出力が前記加算器の他方の入力と
なるレジスタとを備え、画像走査位置のX、Y座標に対
応して前記レジスタからaX+bY+cを出力するよう
に構成した座標変換回路を3ステートバッファを介して
2組接続し、前記3ステートバッファがイネーブル状態
にあるときには2次関数を、3ステートバッファがディ
スエーブル状態にあるときには、各座標変換回路からそ
れぞれ1次関数を発生させるように構成したことを特徴
とする幾何関数発生回路。(1) A selection means for selecting one of three types of data inputs related to coefficients a, b, and c in response to a synchronization signal from a raster scan type image processing device, and an output from this selection means for one of the data inputs. a two-input adder that serves as an input; and a register that holds the output from this adder and whose output serves as the other input of the adder; Two sets of coordinate conversion circuits configured to output aX+bY+c from a register are connected via a 3-state buffer, and when the 3-state buffer is enabled, a quadratic function is generated, and when the 3-state buffer is disabled, a quadratic function is generated. , a geometric function generating circuit characterized in that each coordinate transformation circuit is configured to generate a linear function, respectively.
対応して係数a、b、cに関連する3種のデータ入力の
1つを選択する選択手段と、この選択手段からの出力を
その一方の入力とする2入力の加算器と、この加算器か
らの出力を保持しその出力が前記加算器の他方の入力と
なるレジスタとを備え、画像走査位置のX、Y座標に対
応して前記レジスタからaX+bY+cを出力するよう
に構成した座標変換回路を3組用意し、第1及び第2の
座標変換回路の出力を第3の座標変換回路の入力とする
ことにより任意の2次関数を発生させるように構成した
ことを特徴とする幾何関数発生回路。(2) Selection means for selecting one of the three types of data inputs related to coefficients a, b, and c in response to a synchronization signal from the raster scan type image processing device, and an output from this selection means for selecting one of the data inputs. a two-input adder that serves as an input; and a register that holds the output from this adder and whose output serves as the other input of the adder; Prepare three sets of coordinate conversion circuits configured to output aX+bY+c from a register, and generate any quadratic function by using the outputs of the first and second coordinate conversion circuits as inputs to the third coordinate conversion circuit. A geometric function generating circuit characterized in that it is configured to
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59203338A JPS6180465A (en) | 1984-09-28 | 1984-09-28 | Generating circuit of geometric function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59203338A JPS6180465A (en) | 1984-09-28 | 1984-09-28 | Generating circuit of geometric function |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6180465A true JPS6180465A (en) | 1986-04-24 |
| JPH0447866B2 JPH0447866B2 (en) | 1992-08-05 |
Family
ID=16472362
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59203338A Granted JPS6180465A (en) | 1984-09-28 | 1984-09-28 | Generating circuit of geometric function |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6180465A (en) |
-
1984
- 1984-09-28 JP JP59203338A patent/JPS6180465A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0447866B2 (en) | 1992-08-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5847715A (en) | Graphics display system including parallel graphics processors executing Bresenham's algorithm | |
| JP2591984B2 (en) | Pattern recognition device | |
| JPH0812702B2 (en) | Pixel generation method and system | |
| US6816561B1 (en) | Phase correction for multiple processors | |
| US5315540A (en) | Method and hardware for dividing binary signal by non-binary integer number | |
| JPH05282199A (en) | Image memory | |
| JPS6052472B2 (en) | Area information processing device | |
| Ghosh et al. | VLSI implementation of an efficient ASIC architecture for real-time rotation of digital images | |
| JPH0447866B2 (en) | ||
| JPH0268672A (en) | Address generating part for picture processing processor | |
| JP2005209060A (en) | System including an address generation device and the address generation device | |
| JPH0222419B2 (en) | ||
| JPS59200373A (en) | Coordinate converting circuit | |
| RU2020557C1 (en) | Device for computing quick geometric conversion | |
| JPH032314B2 (en) | ||
| JPS63111584A (en) | Image processing device | |
| JPH0214387A (en) | Plural peak points detecting system | |
| JPH0438019B2 (en) | ||
| JPS61140269A (en) | Picture element density converter | |
| JPH0399378A (en) | Method and device for forming variable density image | |
| JPH0357087A (en) | Polygon painting-out device | |
| JPH02220097A (en) | Image data display system | |
| JPH0575150B2 (en) | ||
| JP2003187239A (en) | Image distribution method, image distribution device, and image processing device | |
| JPH01256867A (en) | Picture address conversion circuit |