JP3055024B2 - Image data transfer device - Google Patents

Image data transfer device

Info

Publication number
JP3055024B2
JP3055024B2 JP11003134A JP313499A JP3055024B2 JP 3055024 B2 JP3055024 B2 JP 3055024B2 JP 11003134 A JP11003134 A JP 11003134A JP 313499 A JP313499 A JP 313499A JP 3055024 B2 JP3055024 B2 JP 3055024B2
Authority
JP
Japan
Prior art keywords
memory
image data
transfer
address
adder
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
JP11003134A
Other languages
Japanese (ja)
Other versions
JPH11312238A (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.)
Topcon Corp
Original Assignee
Topcon Corp
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 Topcon Corp filed Critical Topcon Corp
Priority to JP11003134A priority Critical patent/JP3055024B2/en
Publication of JPH11312238A publication Critical patent/JPH11312238A/en
Application granted granted Critical
Publication of JP3055024B2 publication Critical patent/JP3055024B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】近年の情報処理技術の飛躍的な進
歩により、コンピュータグラフィックス(CG)や画像
処理が盛んになって来ている。本発明は、この分野にお
いて頻繁に使用される、高速データ転送及び画像の座標
変換に関するものである。
2. Description of the Related Art Computer graphics (CG) and image processing have become active due to the rapid progress of information processing technology in recent years. The present invention relates to high-speed data transfer and coordinate transformation of images, which are frequently used in this field.

【0002】[0002]

【従来の技術】従来座標変換(拡大、縮小、回転、平行
移動等)を行うには、数値演算処理手段を利用して計算
を行っていた。例えば、図8(a)に示す画像を図8
(b)に示す画像に座標変換するには、図8(a)に示
す画像のデータをメモリAに記憶させる。
2. Description of the Related Art Conventionally, in order to perform coordinate transformation (enlargement, reduction, rotation, translation, etc.), a calculation has been performed using a numerical processing means. For example, the image shown in FIG.
To convert the coordinates into the image shown in FIG. 8B, the data of the image shown in FIG.

【0003】次に、このメモリAに記憶された画像デー
タのx、y座標データを数値演算処理して座標変換を行
い、x’、y’座標データを得る。そして、この変換さ
れた座標データx’、y’にもとずいて画像データをメ
モリBに転送させる様になっている。
Next, the x and y coordinate data of the image data stored in the memory A is subjected to a numerical calculation process to perform coordinate conversion to obtain x 'and y' coordinate data. The image data is transferred to the memory B based on the converted coordinate data x 'and y'.

【0004】ここで、座標変換の具体的な演算を、拡
大、縮小、平行移動、原点を中心とする回転、等を例に
説明する。
[0004] Here, specific calculations of coordinate conversion will be described by taking enlargement, reduction, parallel movement, rotation around the origin, and the like as examples.

【0005】(A)原点を中心とした拡大、縮小(A) Enlargement and reduction around the origin

【0006】[0006]

【数1】 (Equation 1)

【0007】・・・・・・第1式... First formula

【0008】Sx:x方向の倍率 Sy:y方向の倍率Sx: magnification in x direction Sy: magnification in y direction

【0009】(B)平行移動(B) Parallel movement

【0010】[0010]

【数2】 (Equation 2)

【0011】・・・・・・第2式... Equation 2

【0012】Tx:x方向の平行移動距離 Ty:y方向の平行移動距離Tx: translation distance in the x direction Ty: translation distance in the y direction

【0013】(C)原点を中心とする回転(C) Rotation about the origin

【0014】[0014]

【数3】 (Equation 3)

【0015】・・・・・・第3式... Equation 3

【0016】(D)拡大、縮小、回転、平行移動の組合
(D) Combination of enlargement, reduction, rotation, and translation

【0017】[0017]

【数4】 (Equation 4)

【0018】・・・・・・第4式... Equation 4

【0019】[0019]

【数5】 (Equation 5)

【0020】・・・・・・第5式... Formula 5

【0021】[0021]

【数6】 (Equation 6)

【0022】・・・・・・第6式... Equation 6

【0023】とすると、これらの組合せは、行列、
(4)、(5)、(6)の組合せによって表すことがで
きる。例えば、メモリAに記憶されている画像を拡大
(又は縮小)し、更に回転させた後、平行移動させた像
をメモリBに取り込む場合には、各画像に対して、
Then, these combinations are represented by a matrix,
It can be represented by a combination of (4), (5) and (6). For example, when the image stored in the memory A is enlarged (or reduced), and further rotated, and then the parallel-translated image is taken into the memory B, for each image,

【0024】[x,y,1]・Rs・Rθ・Rt = [
x’,y’,1]
[X, y, 1] · Rs · Rθ · Rt = [
x ', y', 1]

【0025】・・・・・・第7式... Equation 7

【0026】となる様な演算を行わせ、それぞれの画像
データをメモリに転送させることにより所望の座標変換
を行わせることができる。なお、図9は、これらの演算
処理を行わせるためのハードウェア構成であり、これら
の演算処理は中央処理装置(CPU)か、或はCPUと
演算器の組合せにより処理される。即ち、メモリAのあ
る座標の画像データをCPUが取り込み保持し、そして
その座標を加減算、乗算、三角関数等を利用して数値演
算し、新しい座標値に基ずいてCPUに保持されていた
画像データを、メモリBに転送させる様になっている。
The desired coordinate transformation can be performed by performing the following calculations and transferring the respective image data to the memory. FIG. 9 shows a hardware configuration for causing these arithmetic processings to be performed, and these arithmetic processings are performed by a central processing unit (CPU) or a combination of the CPU and the arithmetic unit. That is, the CPU fetches and holds the image data of a certain coordinate in the memory A, and performs a numerical operation on the coordinate using addition / subtraction, multiplication, trigonometric functions, and the like, and stores the image held in the CPU based on the new coordinate value. The data is transferred to the memory B.

【0027】[0027]

【発明が解決しようとする課題】しかしながら上記従来
の数値演算処理は、CPUが、比較的時間を要する乗
算、三角関数等の関数計算を処理する必要があり、ま
た、データの取り込み、書き込みを、1画素データずつ
CPUを介して行わなければならず、高速処理を行うこ
とができないという問題点があった。このため、高速で
作動するCPUや、数値演算プロセッサを搭載すること
で処理速度を向上させることが図られていた。しかしC
PUのメモリに対するアクセスタイムが存在し、高速化
のさまたげとなり、また、これらの計算機は高価であ
り、大規模化してしまうという問題点があった。また、
計算機本体に数値演算処理手段を設けねばならず、ワン
チップ等の集積回路に処理機能を搭載させることは困難
であった。
However, in the above-described conventional numerical operation processing, the CPU needs to perform a relatively time-consuming function calculation such as multiplication or trigonometric function. There is a problem that high-speed processing cannot be performed because the processing must be performed for each pixel data via the CPU. For this reason, it has been attempted to improve the processing speed by mounting a CPU operating at high speed or a numerical processor. But C
There is a problem that the access time of the PU to the memory exists, which hinders the speeding up, and that these computers are expensive and large in scale. Also,
The computer had to be provided with numerical operation processing means, and it was difficult to mount processing functions on an integrated circuit such as a single chip.

【0028】[0028]

【課題を解決するための手段】本発明は上記課題に鑑み
案出されたもので、射影変換の対象となる画像データが
記憶される転送元となる転送元メモリと、画像データが
転送される転送先メモリと、転送元メモリと転送先メモ
リとのデータ転送をダイレクトメモリアクセスで行うバ
スラインと、少なくとも前記転送元又は転送先の何れか
のアドレスを計算するための加算器とから構成されてお
り、この加算器は、転送元メモリの計測対象となる画像
データを転送元又は転送先のXアドレス及びYアドレス
の変位量で、Xアドレス及びYアドレスを射影変換前後
の像が含まれる平面が交差する軸に平行な方向へ順次加
算或いは減算して走査を行い、前記転送元メモリの画像
データを前記バスラインを介して直接転送することによ
り、転送先メモリで射影変換された画像データが記憶さ
れている。
SUMMARY OF THE INVENTION The present invention has been devised in view of the above-mentioned problems, and a source memory as a source for storing image data to be subjected to projective transformation, and image data being transferred. A transfer destination memory, a bus line for performing data transfer between the transfer source memory and the transfer destination memory by direct memory access, and an adder for calculating at least an address of the transfer source or the transfer destination. The adder calculates the image data to be measured in the transfer source memory by the displacement amount of the X address and the Y address of the transfer source or the transfer destination, and converts the X address and the Y address into a plane including the images before and after the projective transformation. Scanning is performed by sequentially adding or subtracting in the direction parallel to the intersecting axis, and the image data of the transfer source memory is directly transferred via the bus line, thereby obtaining the transfer destination memory. Projective transformed image data is stored.

【0029】また本発明の加算器は、アドレスの走査方
向ごとにアドレスの変位量を設定する様に構成すること
もできる。
Further, the adder of the present invention can be configured to set the displacement of the address for each scanning direction of the address.

【0030】更に本発明の加算器は、転送元のアドレス
を計算するための第1の加算器と、転送先のアドレスを
計算するための第2の加算器とを有し、転送元メモリの
X、Yアドレスのアドレス方向と平行でない方向への射
影変換又は、拡大、縮小を伴った射影変換を行う様に構
成することもできる。
Further, the adder of the present invention has a first adder for calculating a source address and a second adder for calculating a destination address. Projection conversion in a direction not parallel to the address direction of the X and Y addresses or projection conversion accompanied by enlargement and reduction may be performed.

【0031】そして本発明の加算器は、転送元メモリの
計測対象となる画像データを転送元又は転送先の何れか
一方のXアドレス及びYアドレスの変位量で、Xアドレ
ス及びYアドレスを射影変換前後の像が含まれる平面が
交差する軸に平行な方向へ順次加算或いは減算して走査
を行い、前記転送元メモリの画像データを前記バスライ
ンを介して直接転送することにより、転送先メモリでX
軸又はY軸に平行な射影変換がなされた画像データが記
憶される様に構成することもできる。
The adder according to the present invention converts the image data to be measured in the transfer source memory from the X address and the Y address by the displacement of either the X address or the Y address of either the transfer source or the transfer destination. Scanning is performed by sequentially adding or subtracting in the direction parallel to the axis where the planes including the preceding and following images intersect, and by directly transferring the image data of the transfer source memory via the bus line, X
It is also possible to configure so that image data subjected to projection transformation parallel to the axis or the Y axis is stored.

【0032】[0032]

【発明の実施の形態】以上の様に構成された本発明は、
転送元となる転送先メモリが、射影変換の対象となる画
像データを記憶し、転送先メモリが画像データを転送
し、バスラインが転送元メモリと転送先メモリとのデー
タ転送をダイレクトメモリアクセスを行い、加算器が、
少なくとも転送元又は転送先の何れかのアドレスを計算
する様になっており、加算器は、転送元メモリの計測対
象となる画像データを転送元又は転送先のXアドレス及
びYアドレスの変位量で、Xアドレス及びYアドレスを
射影変換前後の像が含まれる平面が交差する軸に平行な
方向へ順次加算或いは減算して走査を行い、転送元メモ
リの画像データをバスラインを介して直接転送すること
により、転送先メモリで射影変換された画像データを記
憶することができる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention constructed as described above
The transfer destination memory stores the image data to be subjected to the projective transformation, the transfer destination memory transfers the image data, and the bus line performs direct memory access between the transfer source memory and the transfer destination memory. And the adder
At least one of the source and destination addresses is calculated, and the adder converts the image data to be measured in the source memory by the displacement of the X or Y address of the source or destination. , X address and Y address are sequentially added or subtracted in a direction parallel to the axis where the plane including the image before and after the projective transformation intersects, and scanning is performed, and the image data in the transfer source memory is directly transferred via the bus line. Thus, the image data subjected to the projective transformation in the transfer destination memory can be stored.

【0033】また本発明の加算器は、アドレスの走査方
向ごとにアドレスの変位量を設定することもできる。
Further, the adder of the present invention can set the displacement of the address for each scanning direction of the address.

【0034】更に本発明の加算器は、第1の加算器が転
送元のアドレスを計算し、第2の加算器が、転送先のア
ドレスを計算し、転送元メモリのX、Yアドレスのアド
レス方向と平行でない方向への射影変換又は、拡大、縮
小を伴った射影変換を行うこともできる。
Further, in the adder according to the present invention, the first adder calculates the address of the transfer source, the second adder calculates the address of the transfer destination, and the X and Y addresses of the transfer source memory. Projection transformation in a direction that is not parallel to the direction or projection transformation with enlargement and reduction can also be performed.

【0035】そして本発明の加算器は、転送元メモリの
計測対象となる画像データを転送元又は転送先の何れか
一方のXアドレス及びYアドレスの変位量で、Xアドレ
ス及びYアドレスを射影変換前後の像が含まれる平面が
交差する軸に平行な方向へ順次加算或いは減算して走査
を行い、転送元メモリの画像データをバスラインを介し
て直接転送することにより、転送先メモリで、X軸又は
Y軸に平行な射影変換がなされた画像データが記憶する
こともできる。
The adder of the present invention converts the image data to be measured in the transfer source memory from the X address and the Y address by the displacement of either the X address or the Y address of either the transfer source or the transfer destination. Scanning is performed by sequentially adding or subtracting in the direction parallel to the axis where the planes including the preceding and following images intersect, and the image data in the transfer source memory is directly transferred via the bus line. Image data that has undergone a projective transformation parallel to the axis or the Y axis can also be stored.

【0036】[0036]

【実施例】【Example】

【0037】「発明の原理」"Principle of the invention"

【0038】図4、図5に示す様な直線の変換例を例に
説明する。
A conversion example of a straight line as shown in FIGS. 4 and 5 will be described as an example.

【0039】図4は変換前の2次元座標x、yを示すも
ので、転送元メモリである第1のメモリ(A)5のメモ
リ配置に対応している。例えば、x座標はメモリの列ア
ドレスに、y座標はメモリの行アドレスに対応させるこ
とができる。なお、正、負の符号、原点等は任意に定め
ることができる。
FIG. 4 shows the two-dimensional coordinates x and y before conversion, and corresponds to the memory arrangement of the first memory (A) 5 which is the transfer source memory. For example, the x coordinate may correspond to a column address in the memory, and the y coordinate may correspond to a row address in the memory. Note that the positive and negative signs, the origin, and the like can be arbitrarily determined.

【0040】ここでは、直線ABのx軸に対する傾き角
度をθとし、A(x0、y0)、B(xn、yn)、|xn
−x0|=n・Δx、|yn ―y0|=n・Δyとする。
Here, the inclination angle of the straight line AB with respect to the x-axis is θ, and A (x 0 , y 0 ), B (x n , y n ), | x n
−x 0 | = n · Δx, | y n −y 0 | = n · Δy.

【0041】そして、変換後(転送後のメモリアドレ
ス)も、図5に示す様にx’−y’と2次元座標として
表すことができる。
The converted (memory address after transfer) can also be represented as x'-y 'and two-dimensional coordinates as shown in FIG.

【0042】即ち直線A’B’の傾きをθ’とし、A’
(x0’、y0’)、B’(xn’、yn’)、|xn’−
0’|=n・Δ x’、|yn’−y0’|=n・Δy’
とすれば、図5の直線A’B’は、図4の直線ABを拡
大(又は縮小)、回転、平行移動を施したものとなる。
That is, the inclination of the straight line A'B 'is θ', and A '
(X 0 ', y 0' ), B '(x n', y n '), | x n' -
x 0 ′ | = n · Δx ′, | y n ′ −y 0 ′ | = n · Δy ′
Then, the straight line A'B 'in FIG. 5 is obtained by enlarging (or reducing), rotating, and translating the straight line AB in FIG.

【0043】従って上記変換は、第1のメモリ(A)5
から第2のメモリ(B)6への転送となり、このアドレ
スの演算は下記の様な式で表される。
Therefore, the above conversion is performed in the first memory (A) 5
To the second memory (B) 6, and the operation of this address is represented by the following equation.

【0044】 xn=シグマΔx+x0 ・・・・第12式Xn = sigma Δx + x 0 ..12

【0045】 yn=シグマΔy+y0 ・・・・第13式Yn = sigma Δy + y 0 ··· Expression 13

【0046】上記2式は、転送元の第1のメモリ(A)
5のアドレスを表すものである。
The above two equations represent the transfer source first memory (A)
5 is an address.

【0047】 xn’=シグマΔx’+x0’ ・・・・第14式X n ′ = sigma Δx ′ + x 0 ′....

【0048】 yn’=シグマΔy’+y0’ ・・・・第15式Y n '= sigma Δy' + y 0 'Expression 15

【0049】上記2式は、転送先の第2のメモリ(B)
6のアドレスを表すものである。なお、nは転送データ
数を表し、第1のメモリ(A)5、第2のメモリ(B)
6で同一の値である。更にシグマは、総和記号(i=1
からn)である。
The above two formulas are used for the transfer destination second memory (B).
6 address. Here, n represents the number of transfer data, and the first memory (A) 5 and the second memory (B)
6 is the same value. Furthermore, sigma is a summation symbol (i = 1
To n).

【0050】そしてΔx、Δyは、x、y方向の一回の
転送における変位量(増分値)を表している。従って、
第1のメモリ(A)5から第2のメモリ(B)6への転
送をn回行うと、直線ABが変換され、このABのx方
向の変位量はn・Δxとなり、y方向の変位量はn・Δ
yとなる。従って、傾き角は
.DELTA.x and .DELTA.y represent displacements (incremental values) in one transfer in the x and y directions. Therefore,
When the transfer from the first memory (A) 5 to the second memory (B) 6 is performed n times, the straight line AB is converted, and the displacement amount of the AB in the x direction is n · Δx, and the displacement in the y direction is The quantity is n · Δ
y. Therefore, the tilt angle is

【0051】 θ =tan-1(Δy/Δx) ・・・・・第16式Θ = tan −1 (Δy / Δx) Equation 16

【0052】 θ’=tan-1 (Δy’/Δx’) ・・・・・第17式Θ ′ = tan −1 (Δy ′ / Δx ′) Expression 17

【0053】となる。Is as follows.

【0054】次に、平行移動、拡大・縮小、回転の座標
変換を具体的に説明する。
Next, the coordinate transformation of translation, enlargement / reduction, and rotation will be specifically described.

【0055】(1)平行移動(1) Parallel movement

【0056】平行に移動させる移動量を、Δx0、Δy0
とすれば、
The moving amounts to be moved in parallel are Δx 0 and Δy 0
given that,

【0057】 x0’=x0+Δx0 ・・・・第18式X 0 '= x 0 + Δx 0 ··· Expression 18

【0058】 y0′=y0+Δy0 ・・・・第19式Y 0 ′ = y 0 + Δy 0 ...

【0059】 更に、 Δx=Δx’ ・・・・第20式Further, Δx = Δx ′ (20)

【0060】 Δy=Δy’ ・・・・第21式Δy = Δy ′ Equation 21

【0061】とすることにより、直線ABを平行移動さ
せ、直線A’B’にすることができる。
By doing so, it is possible to translate the straight line AB into a straight line A′B ′.

【0062】(2)拡大・縮小(2) Enlargement / reduction

【0063】拡大・縮小したい倍率をαとすれば、If the magnification to be enlarged / reduced is α,

【0064】 Δx’/Δx =Δy’/Δy=α ・・・・第22式Δx ′ / Δx = Δy ′ / Δy = α (22)

【0065】となる様な、Δx、Δx’、Δy、Δy’
の比率を設定し、データの転送を行えば拡大、縮小が実
現できる。
Δx, Δx ′, Δy, Δy ′ such that
If the ratio is set and data is transferred, enlargement and reduction can be realized.

【0066】(3)回転(3) Rotation

【0067】第16、第17式で表されるように、x、
y方向の変位量(増分値)Δx、Δy、Δx’、Δy’
の比率を適宜に設定することにより、所望の角度|θ’
−θ|の回転変換が実現される。
As expressed by the sixteenth and seventeenth equations, x,
Displacement (incremental value) Δx, Δy, Δx ′, Δy ′ in y direction
Is appropriately set to obtain a desired angle | θ ′.
−θ | is realized.

【0068】以上の様な平行移動、拡大・縮小、回転を
組み合わせることにより、図4、図5に示す様な画像変
換を簡便に行うことができる。
By combining the above-described parallel movement, enlargement / reduction, and rotation, image conversion as shown in FIGS. 4 and 5 can be easily performed.

【0069】本発明の実施例を図面に基づいて説明す
る。
An embodiment of the present invention will be described with reference to the drawings.

【0070】本発明の実施例を図面に基いて説明する。
図1に示す様に、本実施例の座標変換処理装置本体1
は、CPU2と、第1の累積器(A)3と、第2の累積
器(B)4と、第1のメモリ(A)5と、第2のメモリ
(B)6と、データバス7とからなっている。
An embodiment of the present invention will be described with reference to the drawings.
As shown in FIG. 1, the coordinate transformation processing device main body 1 of the present embodiment
Are a CPU 2, a first accumulator (A) 3, a second accumulator (B) 4, a first memory (A) 5, a second memory (B) 6, a data bus 7 It consists of

【0071】座標変換処理装置本体1は、画像処理装置
等に内蔵させるもので、入力された画像データを拡大、
縮小、回転等の座標変換させるためのものである。CP
U2は中央処理装置である。第1の累積器(A)3は、
第1のメモリ(A)5に関するアドレスの加減算処理を
行うものであり、第2の累積器(B)4は、第2のメモ
リ(B)6に関するアドレスの加減算処理を行うもので
ある。
The main body 1 of the coordinate transformation processing device is built in an image processing device or the like, and enlarges input image data.
This is for performing coordinate conversion such as reduction and rotation. CP
U2 is a central processing unit. The first accumulator (A) 3 is
The second accumulator (B) 4 performs an address addition / subtraction process on the first memory (A) 5, and performs an address addition / subtraction process on the second memory (B) 6.

【0072】第1のメモリ(A)5は、転送元の画像デ
ータを記憶するためのもので、第2のメモリ(B)6
は、転送先の画像データを記憶するためのものである。
データバス7は、第1のメモリ(A)5から第2のメモ
リ(B)6にDMA(ダイレクト・メモリ・アクセス)
するためのバスラインである。
The first memory (A) 5 stores the image data of the transfer source, and the second memory (B) 6
Is for storing the image data of the transfer destination.
The data bus 7 transfers a DMA (direct memory access) from the first memory (A) 5 to the second memory (B) 6.
It is a bus line to do.

【0073】次に、第1の累積器(A)3の内部構成を
図2に基いて説明すると、第1の累積器(A)3は、第
1のラッチ311と第2のラッチ312と第5のラッチ
315と第6のラッチ316と、第1のマルチプレクサ
321と第2のマルチプレクサ322と、第1の加算器
331と第2の加算器332とからなっている。そし
て、第2の累積器(B)4は、第1の累積器(A)3と
同様な構成となっている。即ち、第3のラッチ313、
第4のラッチ314、第7のラッチ317、第8のラッ
チ318、第3のマルチプレクサ323、第4のマルチ
プレクサ324、第3の加算器333、第4の加算器3
34とから構成されている。
Next, the internal structure of the first accumulator (A) 3 will be described with reference to FIG. 2. The first accumulator (A) 3 includes a first latch 311 and a second latch 312. It comprises a fifth latch 315 and a sixth latch 316, a first multiplexer 321 and a second multiplexer 322, and a first adder 331 and a second adder 332. The second accumulator (B) 4 has the same configuration as the first accumulator (A) 3. That is, the third latch 313,
Fourth latch 314, seventh latch 317, eighth latch 318, third multiplexer 323, fourth multiplexer 324, third adder 333, fourth adder 3
34.

【0074】その他に、累積器(A)3と(B)4の累
積数を制御する転送数カウンタ34とコンパレータ35
が設けられている。
In addition, a transfer number counter 34 for controlling the cumulative number of the accumulators (A) 3 and (B) 4 and a comparator 35
Is provided.

【0075】ここで、座標変換前の2次元座標x、yを
転送元のメモリ配置と対応させる。例えば、x座標をメ
モリの行アドレスに、y座標を列アドレスに対応させ
る。同様に座標変換後の2次元座標をx’、y’と定義
する。
Here, the two-dimensional coordinates x and y before the coordinate conversion correspond to the memory arrangement of the transfer source. For example, the x coordinate corresponds to the row address of the memory, and the y coordinate corresponds to the column address. Similarly, the two-dimensional coordinates after coordinate conversion are defined as x ′ and y ′.

【0076】この定義に従うと、第1のラッチ311
は、座標変換前の初期設定x座標であるx0をセットす
るためのものである。そして第2のラッチ312は、座
標変換前の初期設定y座標であるy0をセットし、第3
のラッチ313は座標変換後の初期設定x’座標である
0’をセットし、第4のラッチ314は座標変換後の
初期設定y’座標であるy0’をセットするものであ
る。そして、第5のラッチ315は、座標変換前のx座
標の増分Δxをセットするためのものであり、第6のラ
ッチ316は、座標変換前のy座標の増分Δyをセット
するためのものである。そして第7のラッチ317は、
座標変換後のx’座標の増分Δx’をセットし、第8の
ラッチ318は座標変換後のy’座標の増分Δy’をセ
ットするためのものである。
According to this definition, the first latch 311
Is for setting x 0 which is an initial setting x coordinate before coordinate conversion. Then, the second latch 312 sets y 0 , which is the initial setting y coordinate before the coordinate conversion,
The latch 313 sets the initial set x 'coordinate x 0 ' after the coordinate conversion, and the fourth latch 314 sets the initial set y 'coordinate y 0 ' after the coordinate conversion. The fifth latch 315 is for setting the increment Δx of the x coordinate before the coordinate conversion, and the sixth latch 316 is for setting the increment Δy of the y coordinate before the coordinate conversion. is there. And the seventh latch 317
The eighth latch 318 sets an increment Δy ′ of the y ′ coordinate after the coordinate conversion, and sets an increment Δx ′ of the x ′ coordinate after the coordinate conversion.

【0077】第1のマルチプレクサ321は、座標変換
前のx座標の座標データと第1の加算器331の加算デ
ータを選択するためのものである。第2のマルチプレク
サ322は、座標変換前のy座標のデータと第2の加算
器332の加算データを選択するためのものである。
The first multiplexer 321 is for selecting the coordinate data of the x coordinate before the coordinate conversion and the addition data of the first adder 331. The second multiplexer 322 selects the data of the y coordinate before the coordinate conversion and the added data of the second adder 332.

【0078】第1の加算器331は、座標変換前のx座
標のデータと、x座標の増分を加算するためのものであ
る。第2の加算器332は、座標変換前のy座標のデー
タと、y座標の増分を加算するためのものである。
The first adder 331 is for adding the x-coordinate data before the coordinate conversion and the increment of the x-coordinate. The second adder 332 adds the data of the y coordinate before the coordinate conversion and the increment of the y coordinate.

【0079】そして、第3のマルチプレクサ323は、
座標変換後のx’座標のデータと第3の加算器333の
データを選択するためのものであり、第4のマルチプレ
クサ324は、座標変換後のy’座標のデータと第4の
加算器334の加算データを選択するためのものであ
る。
Then, the third multiplexer 323 is
The fourth multiplexer 324 selects the x ′ coordinate data after the coordinate conversion and the data of the third adder 333. The fourth multiplexer 324 includes the y ′ coordinate data after the coordinate conversion and the fourth adder 334. Is used to select the addition data of.

【0080】更に、第3の加算器333は、座標変換後
のx’座標のデータと、x’座標の増分を加算するため
のものであり、第4の加算器334は、座標変換後の
y’座標のデータと、y’座標の増分を加算するための
ものである。
Further, the third adder 333 is for adding the data of the x 'coordinate after the coordinate conversion and the increment of the x' coordinate, and the fourth adder 334 is for adding the data of the x 'coordinate after the coordinate conversion. This is for adding the data of the y 'coordinate and the increment of the y' coordinate.

【0081】次に図3に基いて、第1の累積器(A)3
と累積器(B)4の動作を説明する。まず、初期設定を
行う必要があり、ステップ1として、第1のラッチ31
1にx0、第2のラッチ312にy0、第3のラッチ31
3にx0’、第4のラッチ314にy0’をセットし、転
送初期アドレスを決定する。
Next, based on FIG. 3, the first accumulator (A) 3
And the operation of the accumulator (B) 4 will be described. First, it is necessary to perform an initial setting.
1, x 0 , the second latch 312 has y 0 , the third latch 31
3 is set to x 0 ′ and the fourth latch 314 is set to y 0 ′ to determine the transfer initial address.

【0082】次にステップ2では、第5のラッチ315
にΔx、第6のラッチ316にΔy、第7のラッチ31
7にΔx’、第8のラッチ318にΔy’をセットす
る。即ち、それぞれの座標の増加分をラッチにセットす
る。
Next, in step 2, the fifth latch 315
Δx, sixth latch 316 Δy, seventh latch 31
7 is set to Δx ′, and the eighth latch 318 is set to Δy ′. That is, the increment of each coordinate is set in the latch.

【0083】次に、ステップ3では、転送数nをコンパ
レータ35にセットさせる。そしてステップ4で、スタ
ートパルスを転送数カウンタ34に与えれば、第1、第
2、第3、第4のマルチプレクサ321、322、32
3、324が作動する。即ち、転送数カウンタ34から
の信号により、4個のマルチプレクサ321、322、
323、324が、第1〜4のラッチ311、312、
313、314にセットされたデータを選択する。
Next, in step 3, the number of transfers n is set in the comparator 35. Then, in step 4, if a start pulse is given to the transfer number counter 34, the first, second, third, and fourth multiplexers 321, 322, 32
3, 324 are activated. That is, according to the signal from the transfer number counter 34, the four multiplexers 321, 322,
323, 324 are first to fourth latches 311, 312,
The data set in 313 and 314 is selected.

【0084】従って、x0、y0、x0’、y0’が選択さ
れることとなる。次にステップ6では、各座標データと
増分値に対する加算演算が行われる。即ち、i=1の時
Therefore, x 0 , y 0 , x 0 ′, y 0 ′ are selected. Next, in step 6, an addition operation is performed on each coordinate data and the increment value. That is, when i = 1

【0085】 xi=xi-1+Δx ・・・・第8式X i = x i−1 + Δx Equation 8

【0086】 yi=yi-1+Δy ・・・・第9式Y i = y i-1 + Δy Equation 9

【0087】 xi′=xi-1’+Δx’ ・・・・第10式X i ′ = x i−1 ′ + Δx ′ Expression 10

【0088】 yi′=yi-1’+Δy’ ・・・・第11式Y i ′ = y i−1 ′ + Δy ′ Equation 11

【0089】の演算が行われる。Is performed.

【0090】詳述すると、第1の加算器331の入力側
には、第1のマルチプレクサ321の出力であるx0
と、第5のラッチ315でセットされたΔxが入力され
ている。従って、第1の加算器331の出力側には、上
記第8式の演算結果が出力されることになる。
More specifically, on the input side of the first adder 331, the output x0 of the first multiplexer 321 is output.
And Δx set by the fifth latch 315 are input. Therefore, the calculation result of the above-described equation (8) is output to the output side of the first adder 331.

【0091】同様に、第2の加算器332の入力側に
は、第2のマルチプレクサ322の出力であるy0と、
第6のラッチ316でセットされたΔyが入力されてい
る。そして、第3の加算器333の入力側には、第3の
マルチプレクサ323の出力であるx0’と、第7のラ
ッチ317でセットされたΔx’が入力され、第4の加
算器334の入力側には、第4のマルチプレクサ324
の出力であるy0’と、第8のラッチ318でセットさ
れたΔy’が入力されている。
Similarly, on the input side of the second adder 332, the output y 0 of the second multiplexer 322 is provided.
Δy set by the sixth latch 316 is input. The input side of the third adder 333 receives x 0 ′, which is the output of the third multiplexer 323, and Δx ′ set by the seventh latch 317. On the input side, a fourth multiplexer 324
Y 0 is a the output 'and, second 8 [Delta] y which is set by the latch 318' is input.

【0092】この結果、第1、2、3、4の加算器33
1、332、333、334により、上記第8式〜第1
1式の演算が行われることになる。
As a result, the first, second, third and fourth adders 33
According to 1, 332, 333, and 334, the above-described eighth expression to first expression
The operation of one equation is performed.

【0093】次にステップ7では、図示しない制御回路
により、第1のメモリ(A)5に読みだし動作、第2の
メモリ(B)6に書き込み動作を行わせ、上記第8式〜
第11式で行われた演算結果であるx1、y1、x1’、
1’のアドレス値を第1のメモリ(A)5、第2のメ
モリ(B)6に送出する。
Next, in step 7, a control circuit (not shown) causes the first memory (A) 5 to perform a read operation and the second memory (B) 6 to perform a write operation.
X 1 , y 1 , x 1 ′, which are the results of the calculations performed in the eleventh equation,
The address value of y 1 ′ is sent to the first memory (A) 5 and the second memory (B) 6.

【0094】この結果、第1のメモリ(A)5のアドレ
ス(x1、y1)の画像データが読みだされ、更に、この
画像データが、第2のメモリ(B)6のアドレス
(x1′、y 1′)に書き込まれる。従って、第1のメモ
リ(A)5に記憶された画像データが、変換された第2
のメモリ(B)6のアドレスに転送されることになる。
As a result, the address of the first memory (A) 5 is
(X1, Y1) Is read out, and
The image data is stored in the address of the second memory (B) 6
(X1', Y 1'). Therefore, the first memo
The image data stored in the file (A) 5 is converted into the converted second data.
To the address of the memory (B) 6.

【0095】次に、ステップ8で転送数カウンタ34の
値を+1インクリメントしてi=2に設定する。(i=
i+1)。なお、この転送数カウンタ34のカウントア
ップは、図示しないメモリ制御回路の信号等により行う
ことができる。
Next, at step 8, the value of the transfer number counter 34 is incremented by +1 to set i = 2. (I =
i + 1). The transfer number counter 34 can be counted up by a signal from a memory control circuit (not shown) or the like.

【0096】また、第1、2、3、4のマルチプレクサ
321、322、323、324の選択を、第1、2、
3、4の加算器331、332、333、334からの
出力信号に切り替える。この結果、第1のマルチプレク
サ321の出力信号は、x1となり、同様に第2、3、
4のマルチプレクサ322、323、324の出力信号
は、それぞれ、y1、x1’、y1’となる。そして、こ
の4個のマルチプレクサ321、322、323、32
4の選択は、これ以後、対応する加算器331、33
2、333、334の出力側に設定させる。次にステッ
プ9で転送数カウンタ34の値をコンパレータで比較
し、i=nでなければ、ステップ6からステップ9まで
繰り返す様になっている。従って、これらのアドレスの
計算、データの転送動作をn回繰り返し、コンパレータ
35がi=nを認識すると、ステップ10で、転送数カ
ウンタ34、第1、2、3、4の加算器331、33
2、333、334の動作が停止し、アドレス演算及び
転送作業を終了する。
The selection of the first, second, third, and fourth multiplexers 321, 322, 323, and 324 is performed by selecting the first, second, and third multiplexers.
The output signals are switched to the output signals from the adders 331, 332, 333, and 334. As a result, the output signal of the first multiplexer 321, x 1, and the same way the second and third,
The output signal of the multiplexer 322, 323, 324 of the 4, respectively, y 1, x 1 ', y 1' becomes. Then, the four multiplexers 321, 322, 323, 32
4 is subsequently selected by the corresponding adder 331, 33
2, 333 and 334 are set on the output side. Next, in step 9, the value of the transfer number counter 34 is compared by a comparator. If i = n is not satisfied, steps 6 to 9 are repeated. Accordingly, the calculation of these addresses and the data transfer operation are repeated n times, and when the comparator 35 recognizes i = n, in step 10, the transfer number counter 34 and the adders 331, 33 of the first, second, third, and fourth,
The operations of 2, 333 and 334 are stopped, and the address calculation and transfer work are completed.

【0097】以上の様に構成された本実施例は、座標変
換に際して、繁雑な計算や関数演算などをすることな
く、加算のみでアドレス変換を行い、メモリ間のデータ
転送を行っている。更に、メモリ間のデータ転送には、
CPUを介していないので、極めて高速の転送を行うこ
とができる。
In the present embodiment configured as described above, at the time of coordinate conversion, address conversion is performed only by addition and data transfer between memories is performed without performing complicated calculations or function calculations. Furthermore, for data transfer between memories,
Since it does not pass through the CPU, extremely high-speed transfer can be performed.

【0098】なお本実施例では、第1、2、3、4の加
算器331、332、333、334によりΔx、Δ
y、Δx’、Δy’を加算する演算を行っているが、こ
れらの数値を2の補数とすることにより、等価的に減算
も可能である。
In this embodiment, the first, second, third, and fourth adders 331, 332, 333, and 334 provide Δx, Δx
Although the operation of adding y, Δx ′, and Δy ′ is performed, it is also possible to equivalently subtract by setting these numerical values to two's complement.

【0099】従って、本明細書における加減算の処理と
は、加算器で達成されるものである。
Therefore, the addition / subtraction processing in this specification is achieved by an adder.

【0100】なお、この処理に、加算器の代わりに減算
器で構成することもできる。
It should be noted that this processing may be constituted by a subtractor instead of the adder.

【0101】また、本実施例では、第1の累積器(A)
3、第2の累積器(B)4に、それぞれ2個の加算器を
使用しているが、1個の加算器で演算させることもでき
る。
In this embodiment, the first accumulator (A)
3, two accumulators are used for the second accumulator (B) 4 respectively, but the operation can be performed by one adder.

【0102】次に本転送装置を用いて、転送及び座標変
換した例を示す。
Next, an example of transfer and coordinate conversion using the present transfer apparatus will be described.

【0103】図4、図5は直線の変換例であったが、同
様な手法により図形変換も可能である。
Although FIGS. 4 and 5 show examples of straight line conversion, graphic conversion can be performed by a similar method.

【0104】即ち、図6に示される図形Aを直線の集合
と考えれば、明確に理解することができる。但し、図形
の形状等によって、直線毎に転送数n及び変位量(増分
値)Δx、Δy、Δx’、Δy’、直線の始点、x0、y
0、x0’、y0’を設定する必要がある。
That is, if the figure A shown in FIG. 6 is considered as a set of straight lines, it can be clearly understood. However, depending on the shape of the figure, the transfer number n and the displacement amount (incremental value) Δx, Δy, Δx ′, Δy ′, the starting point of the line, x 0 , y
0, x 0 ', y 0 ' there is a need to set.

【0105】また、この方法に限ることなく、図7に示
す様に、領域変換を行うことにより図形変換を行うこと
もできる。この場合は、直線の始点x0、y0、x0’、y
0’を直線毎に設定し、Δx、Δy、Δx’、Δy’、n
は一度設定するだけで、画像変換を行うことができる。
Further, without being limited to this method, figure conversion can be performed by performing area conversion as shown in FIG. In this case, the starting points x 0 , y 0 , x 0 ′, y
0 ′ is set for each straight line, and Δx, Δy, Δx ′, Δy ′, n
The image conversion can be performed only once by setting.

【0106】更に、第1のメモリ(A)5の領域全てを
変換して第2のメモリ(B)6に転送することも可能で
ある。なお、第1のメモリ(A)5の領域を変換するこ
となく、原画像をそのまま転送することも可能である。
Further, it is also possible to convert the entire area of the first memory (A) 5 and transfer it to the second memory (B) 6. Note that the original image can be transferred as it is without converting the area of the first memory (A) 5.

【0107】以上の様に構成された本実施例は、転送数
n、変位量(増分値)Δx、Δy、Δx’、Δy’、直
線の始点、x0、y0、x0’、y0’の加減算のみで多様
な座標変換を容易に行うことができる。つまり、2次元
の回転、原点の平行移動、縮尺を補正するためのヘルマ
ート変換や、歪の補正も行うアフィン変換、射影変換等
の多種多様の複雑な座標変換を上記Δx、Δy等の簡単
なパラメータを設定することにより、容易に変換演算を
行わせることができる。
In this embodiment configured as described above, the transfer number n, the displacement amount (incremental value) Δx, Δy, Δx ′, Δy ′, the starting point of the straight line, x 0 , y 0 , x 0 ′, y Various coordinate transformations can be easily performed only by addition and subtraction of 0 '. In other words, a variety of complicated coordinate transformations such as two-dimensional rotation, parallel movement of the origin, Helmert transformation for correcting the scale, affine transformation for correcting distortion, and projection transformation can be performed by simple methods such as Δx and Δy. By setting the parameters, the conversion operation can be easily performed.

【0108】なお、これまでの説明では、転送元と転送
先それぞれに、加算器を設けているが、転送先か転送元
どちらか一方に加算器を設け、一方のみの加算演算によ
っても同様のことが達成出来る。
In the above description, an adder is provided for each of the transfer source and the transfer destination, but an adder is provided for either the transfer destination or the transfer source. Can be achieved.

【0109】次に、転送元メモリである第1のメモリ
(A)5の第1の累積器(A)3と、転送先メモリであ
る第2のメモリ(B)6の第2の累積器(B)4とを用
いて、メモリのX軸・Y軸に平行でない方向での射影変
換又は回転、拡大、縮小などを伴った射影変換を行う実
施例について説明する。
Next, the first accumulator (A) 3 of the first memory (A) 5 as the transfer source memory and the second accumulator of the second memory (B) 6 as the transfer destination memory A description will be given of an embodiment in which projective transformation in a direction not parallel to the X-axis and Y-axis of the memory or projective transformation involving rotation, enlargement, reduction, and the like is performed by using (B) 4.

【0110】即ち、第1のメモリ(A)5又は第2のメ
モリ(B)6の何れか一方に加算器を使用した場合に
は、メモリのX軸又はY軸に平行な方向への射影変換し
か行うことができないが、それぞれのメモリに加算器を
設ければ、X軸、Y軸に平行でない方向での射影変換
や、回転等を伴った射影変換を行うことができる。
That is, when an adder is used for one of the first memory (A) 5 and the second memory (B) 6, the projection is performed in a direction parallel to the X axis or the Y axis of the memory. Although only conversion can be performed, if an adder is provided in each memory, projection conversion in a direction not parallel to the X-axis and Y-axis, and projection conversion involving rotation and the like can be performed.

【0111】まず、図10、図11に基づいて、本実施
例を射影変換に応用した場合を説明する。
First, a case where the present embodiment is applied to projective transformation will be described with reference to FIGS.

【0112】図10は、軸γを含む平面の像A’B’
C’D’を射影変換した像ABCD(AB//γ//
A’B’)を示すものである。この変換において、射影
変換像ABCDが図11(a)の様に第1のメモリ
(A)5に記憶されているとする。
FIG. 10 shows a plane image A'B 'including the axis γ.
The image ABCD (AB // γ //
A′B ′). In this conversion, it is assumed that the projection conversion image ABCD is stored in the first memory (A) 5 as shown in FIG.

【0113】ここで、射影変換前の像A’B’C’D’
に変換させる場合を考えることにする。像の線分AB、
CD、A’B’、C’D’は、軸γに平行なので、軸γ
と平行に転送元メモリである第1のメモリ(A)5の像
を走査させる。
Here, the image A'B'C'D 'before the projective transformation
Let's consider the case of converting to Line segment AB of the image,
Since CD, A′B ′ and C′D ′ are parallel to the axis γ, the axis γ
The image of the first memory (A) 5, which is the transfer source memory, is scanned in parallel with the above.

【0114】そして図11(b)に示す様に、転送先メ
モリである第2のメモリ(B)6もγと平行な方向に走
査させれば、X、Y軸方向に平行でない射影変換が行わ
れる。
Then, as shown in FIG. 11B, if the second memory (B) 6 as the transfer destination memory is also scanned in the direction parallel to γ, the projection transformation that is not parallel to the X and Y axis directions is performed. Done.

【0115】この様な走査を行うと、各線分毎の走査ピ
ッチが等しくなる(変位量に相当)ので、各線分毎に第
22式に従い、倍率αを定め、変位量△x、△y、△
x’、△y’を設定し、直線の始点x0、y0、x0’、
0’及び転送数nを決定した後、第1のメモリ(A)
5から第2のメモリ(B)6に転送を行えば、図11
(b)に示す射影変換前の像A’B’C’D’を得るこ
とができる。
When such scanning is performed, the scanning pitch of each line segment becomes equal (corresponding to the displacement amount). Therefore, the magnification α is determined for each line segment in accordance with Equation 22, and the displacement amounts △ x, △ y, △
x 'and △ y' are set, and the starting points x 0 , y 0 , x 0 ′,
After determining y 0 ′ and the number of transfers n, the first memory (A)
5 is transferred to the second memory (B) 6, FIG.
An image A'B'C'D 'before projective transformation shown in (b) can be obtained.

【0116】回転した射影変換前の像を得たい場合は、
軸γと平行に転送元メモリである第1のメモリ(A)5
の像を走査させ、転送先メモリである第2のメモリ
(B)6を図11(c)に示す様に、回転させる角度方
向の軸γ’に平行に走査させる。
To obtain a rotated image before projective transformation,
First memory (A) 5 which is a transfer source memory in parallel with axis γ
Is scanned, and the second memory (B) 6 serving as the transfer destination memory is scanned in parallel to the axis γ ′ in the angular direction to be rotated as shown in FIG.

【0117】この様な走査を行うと、射影変換前の像に
変換するときと同様に、各線分毎の走査ピッチが等しく
なる(変位量に相当)ので、各線分毎に第22式に従
い、倍率αを定め、変位量△x、△y、△x’、△y’
を設定し、直線の始点x0、y0、x0’、y0’及び転送
数nを決定した後、第1のメモリ(A)5から第2のメ
モリ(B)6に転送を行えば、図11(c)に示す、回
転した射影変換前の像A”B”C”D”が、射影変換像
ABCDから、いっぺんに得られる。そのとき、倍率α
に拡大、または縮小したい値を乘ずることによって、同
時に拡大縮小も出来る。
When such scanning is performed, the scanning pitch of each line segment becomes equal (corresponding to the amount of displacement), as in the case of conversion to an image before projective conversion. The magnification α is determined, and the displacement amounts △ x, △ y, △ x ', △ y'
Are set, and the starting point x 0 , y 0 , x 0 ′, y 0 ′ of the straight line and the number of transfers n are determined, and then the transfer is performed from the first memory (A) 5 to the second memory (B) 6. For example, the rotated images A "B" C "D" before the projective transformation shown in FIG. 11C can be obtained at once from the projective transform image ABCD. Then, the magnification α
By multiplying by the value you want to enlarge or reduce, you can also scale at the same time.

【0118】また同様の転送方法により、像を射影変換
し、拡大・縮小、回転をかけたり、射影変換像から別の
射影変換像に変換、拡大、縮小、回転等も行うことがで
きる。
Further, by the same transfer method, an image can be projected and converted to be enlarged / reduced / rotated, or a projection-converted image can be converted into another projection-converted image, enlarged, reduced / rotated, and the like.

【0119】次に、本実施例をパターン計測に応用した
適用例を図12に基ずいて説明する。図12は楕円像を
求める場合であり、図12(a)に示す様に、パターン
像の放射状走査を各直線毎に行うと同時に、図12
(b)に示す第2のメモリ(B)6上で水平方向に配列
変えを行うことができる。
Next, an application example in which this embodiment is applied to pattern measurement will be described with reference to FIG. FIG. 12 shows a case in which an elliptic image is obtained. As shown in FIG. 12A, a radial scan of the pattern image is performed for each straight line, and at the same time, FIG.
The arrangement can be changed in the horizontal direction on the second memory (B) 6 shown in FIG.

【0120】この様な配列変えを行った後、パターン演
算を行うことにより、メモリを水平方向に走査するだけ
で容易に画像データが得られるという効果がある。
By performing the pattern operation after such an arrangement change, there is an effect that image data can be easily obtained only by scanning the memory in the horizontal direction.

【0121】なお従来の方法によると、図12(a)の
走査は、各放射線分の各点の座標を1個ずつ計算すると
共に、このデータを取り込んでパターン演算を行うとい
うステップを繰り返す必要があった。この様に従来の方
法は、走査点が多い程アドレス演算に要する時間が多く
なり、高速演算処理が困難となるという問題点があっ
た。
According to the conventional method, the scanning shown in FIG. 12A requires repeating the steps of calculating the coordinates of each point for each radiation one by one and taking in the data to perform the pattern operation. there were. As described above, the conventional method has a problem that as the number of scanning points increases, the time required for address calculation increases, and high-speed calculation processing becomes difficult.

【0122】これに対して本実施例は、各線分毎に走査
線分を設定(x0、y0、x0’、y0’、△x、△y、△
x’、△y’、n)を行えば、転送に要する時間のみで
配列変えを行うことができ、パターン演算に必要なメモ
リ走査は、簡便高速に行えるので従来処理に比較して遥
かに高速処理を行うことができるという効果がある。
On the other hand, in this embodiment, a scanning line segment is set for each line segment (x 0 , y 0 , x 0 ′, y 0 ′, △ x, △ y, △
By performing x ′, △ y ′, n), the arrangement can be changed only by the time required for the transfer, and the memory scan required for the pattern calculation can be performed simply and at high speed. There is an effect that processing can be performed.

【0123】従って、このパターン計測を利用すれば、
楕円像を水平に走査出来る直線上に変換し、この直線を
走査し、計測すれば、任意の方向の楕円像の径長を計測
することができる。
Therefore, if this pattern measurement is used,
If the elliptical image is converted into a straight line that can be scanned horizontally, and this straight line is scanned and measured, the diameter of the elliptical image in an arbitrary direction can be measured.

【0124】以上の様に、パターン計測に応用した本実
施例は、必要な画像成分を高速に走査させると同時に、
処理の容易な位置に配列を変更することができるので、
高速なパターン計測を行うことができるという効果があ
る。
As described above, in this embodiment applied to pattern measurement, necessary image components are scanned at high speed,
Since you can change the array to a position that is easy to process,
There is an effect that high-speed pattern measurement can be performed.

【0125】なおパターン計測は、上記応用例に限られ
るものでなく、何れの計測に応用することができる。
The pattern measurement is not limited to the above-mentioned application examples, but can be applied to any measurement.

【0126】なお本実施例の加算器は、整数部、小数部
の加算器から構成されているが、少なくとも小数部の加
算器によっても構成することができる。
Although the adder of this embodiment is composed of an integer part and a decimal part adder, it can be composed of at least a decimal part adder.

【0127】また、第1のメモリ(A)5のアドレス演
算結果からCPUに画像データを取り込み、CPUが、
第2のメモリ(B)6の対応するアドレスに画像データ
を書き込むことができる。しかしながら、画像データの
転送は、CPUを介して行わなければならないので、高
速転送を行うことは困難である。
Further, image data is taken into the CPU from the address operation result of the first memory (A) 5, and the CPU
Image data can be written to a corresponding address in the second memory (B) 6. However, since image data must be transferred via the CPU, it is difficult to perform high-speed transfer.

【0128】[0128]

【効果】以上の様に構成された本発明は、射影変換の対
象となる画像データが記憶される転送元となる転送元メ
モリと、画像データが転送される転送先メモリと、転送
元メモリと転送先メモリとのデータ転送をダイレクトメ
モリアクセスで行うバスラインと、少なくとも前記転送
元又は転送先の何れかのアドレスを計算するための加算
器とから構成されており、この加算器は、転送元メモリ
の計測対象となる画像データを転送元又は転送先のXア
ドレス及びYアドレスの変位量で、Xアドレス及びYア
ドレスを射影変換前後の像が含まれる平面が交差する軸
に平行な方向へ順次加算或いは減算して走査を行い、前
記転送元メモリの画像データを前記バスラインを介して
直接転送することにより、転送先メモリで射影変換され
た画像データが記憶されているので、座標データの乗
算、関数演算等の繁雑な数値演算を要しない、従って極
めて簡単な構成で高速座標変換を行う画像データの転送
装置を提供できるという効果がある。
According to the present invention having the above-described configuration, a transfer source memory in which image data to be subjected to projection conversion is stored, a transfer destination memory in which image data is transferred, and a transfer source memory It comprises a bus line for performing data transfer with a destination memory by direct memory access, and an adder for calculating at least the address of either the source or the destination. The image data to be measured in the memory is sequentially transferred in the direction parallel to the axis at which the plane containing the image before and after the projective transformation intersects the X address and the Y address by the displacement of the X address and the Y address of the transfer source or the transfer destination. Scanning is performed by adding or subtracting, and the image data of the source memory is directly transferred via the bus line, so that the image data that has been projected and transformed by the destination memory is recorded. Since the multiplication of the coordinate data, do not require complicated math function calculation or the like, thus there is an effect that can provide a transfer device of the image data to be fast coordinate transformation an extremely simple structure.

【0129】特に、転送元メモリと転送先メモリのそれ
ぞれに、アドレスを計算するための加算器を設けると、
x軸・y軸方向に平行でない方向での射影変換や、回転
・拡大・縮小等を伴う射影変換を実現することができる
という効果がある。
In particular, when an adder for calculating an address is provided in each of the transfer source memory and the transfer destination memory,
There is an effect that projective transformation in a direction not parallel to the x-axis and y-axis directions and projective transformation involving rotation, enlargement, reduction, and the like can be realized.

【0130】[0130]

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

【図1】本発明の実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】本実施例の累積器の構成を示す図である。FIG. 2 is a diagram illustrating a configuration of an accumulator according to the present embodiment.

【図3】本実施例の演算動作のフローチャートである。FIG. 3 is a flowchart of a calculation operation according to the embodiment.

【図4】座標変換において、第1のメモリ(A)に記憶
された原画像を示す図である。
FIG. 4 is a diagram showing an original image stored in a first memory (A) in coordinate conversion.

【図5】第2のメモリ(B)に転送された変換画像を示
す図である。
FIG. 5 is a diagram showing a converted image transferred to a second memory (B).

【図6】図形変換を示す図である。FIG. 6 is a diagram illustrating graphic conversion.

【図7】領域変換を示す図である。FIG. 7 is a diagram showing area conversion.

【図8】座標変換を概説する図である。FIG. 8 is a diagram schematically illustrating coordinate conversion.

【図9】従来技術を説明する図である。FIG. 9 is a diagram illustrating a conventional technique.

【図10】本実施例を斜影変換に応用した例を説明する
図である。
FIG. 10 is a diagram illustrating an example in which the present embodiment is applied to oblique transformation.

【図11】本実施例を斜影変換に応用した例を説明する
図である。
FIG. 11 is a diagram illustrating an example in which the present embodiment is applied to oblique transformation.

【図12】本実施例をパターン計測に応用した例を説明
する図である。
FIG. 12 is a diagram illustrating an example in which the present embodiment is applied to pattern measurement.

【符号の説明】[Explanation of symbols]

1 座標変換処理装置 2 CPU 3 第1の累積器(A) 4 第2の累積器(B) 5 第1のメモリ(A) 6 データバス 31 ラッチ 32 マルチプレクサ 33 加算器 34 転送数カウンタ 35 コンパレータ Reference Signs List 1 coordinate transformation processing device 2 CPU 3 first accumulator (A) 4 second accumulator (B) 5 first memory (A) 6 data bus 31 latch 32 multiplexer 33 adder 34 transfer number counter 35 comparator

フロントページの続き (56)参考文献 特開 昭59−188773(JP,A) 特開 昭63−38986(JP,A) 特開 昭61−223986(JP,A) 特開 平1−315845(JP,A) 特開 昭61−214888(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 3/00 - 3/60 H04N 1/387 Continuation of the front page (56) References JP-A-59-188773 (JP, A) JP-A-63-38986 (JP, A) JP-A-61-223986 (JP, A) JP-A-1-315845 (JP) , A) JP-A-61-214888 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06T 3/00-3/60 H04N 1/387

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 射影変換の対象となる画像データが記憶
される転送元となる転送元メモリと、画像データが転送
される転送先メモリと、転送元メモリと転送先メモリと
のデータ転送をダイレクトメモリアクセスで行うバスラ
インと、少なくとも前記転送元又は転送先の何れかのア
ドレスを計算するための加算器とから構成されており、
この加算器は、転送元メモリの計測対象となる画像デー
タを転送元又は転送先のXアドレス及びYアドレスの変
位量で、Xアドレス及びYアドレスを射影変換前後の像
が含まれる平面が交差する軸に平行な方向へ順次加算或
いは減算して走査を行い、前記転送元メモリの画像デー
タを前記バスラインを介して直接転送することにより、
転送先メモリで射影変換された画像データが記憶されて
いる画像データの転送装置。
1. A transfer source memory in which image data to be subjected to projective transformation is stored, a transfer destination memory to which image data is transferred, and direct data transfer between the transfer source memory and the transfer destination memory. It comprises a bus line for memory access, and an adder for calculating at least one of the transfer source and transfer destination addresses.
In this adder, the image data to be measured in the transfer source memory is the displacement amount of the X address and the Y address of the transfer source or the transfer destination, and the planes including the images before and after the X and Y addresses are subjected to the projective transformation intersect. By performing scanning by sequentially adding or subtracting in the direction parallel to the axis, and directly transferring the image data of the source memory via the bus line,
An image data transfer device in which image data subjected to projection conversion in a transfer destination memory is stored.
【請求項2】 前記加算器が、アドレスの走査方向ごと
にアドレスの変位量を設定する様に構成されている請求
項1記載の画像データの転送装置。
2. The image data transfer device according to claim 1, wherein said adder is configured to set an address displacement amount for each address scanning direction.
【請求項3】 前記加算器が、転送元のアドレスを計算
するための第1の加算器と、転送先のアドレスを計算す
るための第2の加算器とを有し、転送元メモリのX、Y
アドレスのアドレス方向と平行でない方向への射影変換
又は、拡大、縮小を伴った射影変換を行う様に構成され
ている請求項1又は請求項2記載の画像データの転送装
置。
3. The adder has a first adder for calculating a transfer source address and a second adder for calculating a transfer destination address. , Y
3. The image data transfer device according to claim 1, wherein the image data transfer device is configured to perform a projective transformation in a direction not parallel to the address direction of the address or a projective transformation accompanied by enlargement and reduction.
【請求項4】 前記加算器は、転送元メモリの計測対象
となる画像データを転送元又は転送先の何れか一方のX
アドレス及びYアドレスの変位量で、Xアドレス及びY
アドレスを射影変換前後の像が含まれる平面が交差する
軸に平行な方向へ順次加算或いは減算して走査を行い、
前記転送元メモリの画像データを前記バスラインを介し
て直接転送することにより、転送先メモリでX軸又はY
軸に平行な射影変換がなされた画像データが記憶される
様に構成されている請求項1又は請求項2記載の画像デ
ータの転送装置。
4. The image processing apparatus according to claim 1, wherein the adder converts the image data to be measured in the transfer source memory into one of a transfer source and a transfer destination.
The displacement amount of the X address and the Y address
Scanning is performed by sequentially adding or subtracting addresses in a direction parallel to an axis where a plane including an image before and after the projective transformation intersects,
By directly transferring the image data of the source memory via the bus line, the X-axis or Y-
3. The image data transfer device according to claim 1, wherein the image data subjected to the projective transformation parallel to the axis is stored.
JP11003134A 1999-01-08 1999-01-08 Image data transfer device Expired - Lifetime JP3055024B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11003134A JP3055024B2 (en) 1999-01-08 1999-01-08 Image data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11003134A JP3055024B2 (en) 1999-01-08 1999-01-08 Image data transfer device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP63334970A Division JP2967228B2 (en) 1988-09-07 1988-12-28 Image data transfer device

Publications (2)

Publication Number Publication Date
JPH11312238A JPH11312238A (en) 1999-11-09
JP3055024B2 true JP3055024B2 (en) 2000-06-19

Family

ID=11548893

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11003134A Expired - Lifetime JP3055024B2 (en) 1999-01-08 1999-01-08 Image data transfer device

Country Status (1)

Country Link
JP (1) JP3055024B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5100788B2 (en) 2010-05-27 2012-12-19 シャープ株式会社 Image forming system, data processing apparatus, image forming apparatus, and computer program
JP5914045B2 (en) * 2012-02-28 2016-05-11 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP6316330B2 (en) * 2015-04-03 2018-04-25 コグネックス・コーポレーション Homography correction

Also Published As

Publication number Publication date
JPH11312238A (en) 1999-11-09

Similar Documents

Publication Publication Date Title
JP2685548B2 (en) Method and apparatus for rotating digital image data
EP0396311B1 (en) Image processing apparatus and method
JPH0628485A (en) Texture address generator, texture pattern generator, texture plotting device and texture address generating method
JP2873112B2 (en) Image rotation processing method and apparatus
JP3586991B2 (en) Texture data reading device and rendering device
US5241626A (en) Image processing apparatus having improved two-dimensional address generator
JP3089792B2 (en) Hidden surface discrimination method for image data
JP3055024B2 (en) Image data transfer device
JPH0310380A (en) Image converting circuit
JP2634851B2 (en) Image processing device
JP2967228B2 (en) Image data transfer device
JPH0481231B2 (en)
US5721885A (en) Pixel data transfer system
JPH064679A (en) Image processor
EP0623232B1 (en) Video graphics controller with improved calculation capabilities
JP2899838B2 (en) Storage device
JPS6217236B2 (en)
JP2803235B2 (en) Digital image processing method
JPS595905B2 (en) Surface brightness generation method in display devices
JP2768370B2 (en) Drawing method
JP2610825B2 (en) Graphic processing unit
JP3502901B2 (en) Three-dimensional graphics image display apparatus and method
JPH01241681A (en) Image processor
JP3403707B2 (en) Drawing equipment
JPH05127980A (en) Picture processor

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090414

Year of fee payment: 9

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090414

Year of fee payment: 9