JPH03219373A - Method and device for two-dimensional coordinate transformation - Google Patents

Method and device for two-dimensional coordinate transformation

Info

Publication number
JPH03219373A
JPH03219373A JP2015554A JP1555490A JPH03219373A JP H03219373 A JPH03219373 A JP H03219373A JP 2015554 A JP2015554 A JP 2015554A JP 1555490 A JP1555490 A JP 1555490A JP H03219373 A JPH03219373 A JP H03219373A
Authority
JP
Japan
Prior art keywords
value
coordinate
cell
values
coordinates
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.)
Pending
Application number
JP2015554A
Other languages
Japanese (ja)
Inventor
Hiroshi Matsuki
宏 松木
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.)
KOMU SYST KK
KOUYOUSHIYA KK
Original Assignee
KOMU SYST KK
KOUYOUSHIYA KK
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 KOMU SYST KK, KOUYOUSHIYA KK filed Critical KOMU SYST KK
Priority to JP2015554A priority Critical patent/JPH03219373A/en
Priority to US07/644,306 priority patent/US5193126A/en
Priority to EP19910100784 priority patent/EP0440077A3/en
Publication of JPH03219373A publication Critical patent/JPH03219373A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To shorten coordinate transformation time by outputting coordinates which satisfy specific transformation equation corresponding to arbitrary input coordinates. CONSTITUTION:Values f(0), f(1), to f(n) are stored in the cells Xx0, Xx1, to Xxn of an (x) related X-coordinate value table 3 in correspondence with integer values of (x) in a prescribed area, and also, values h(0), h(1), to h(n) are stored in the cells Yx0, Yx1, to Yxn of a (x) related Y-coordinate value table 5, and similarly, the respective value of an (y) related X-coordinate value table 4 and a (y) related Y-coordinate value table 6 is stored. Then, f(x) and g(y) are added on (x,y) supplied sequentially with an X-coordinate calculator 13, and is outputted as X, and similarly, the value h(x) of a cell Yxx and the value k(y) of a cell Yyy are read out, respectively, and added with each other, then, it is outputted as Y. In such a way, the coordinate transformation time can be shortened.

Description

【発明の詳細な説明】 [産業上の利用分野] この発咀は2次元座標変換方法及び装置に関するもので
あって、デジタル画像処理装置などに用いられる。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] This article relates to a two-dimensional coordinate transformation method and device, which are used in digital image processing devices and the like.

[従来の技術] 2次元のデジタル画像は、多数の画素を縦・横に行列状
に配置し、各画素に濃度等の画像情報を与えることによ
って表わされている。
[Prior Art] Two-dimensional digital images are represented by arranging a large number of pixels in rows and columns vertically and horizontally, and giving image information such as density to each pixel.

従ってデジタル画像の編集のために、拡大、縮小、回転
、移動、変形等を行う場合には、原画像の各画素の濃度
を他の画素にうつしかえる操作が必要となり、各画素の
座標を他の画素の座標に変換する、2次元座標変換が必
要である。
Therefore, when enlarging, reducing, rotating, moving, transforming, etc. for digital image editing, it is necessary to transfer the density of each pixel of the original image to other pixels, and the coordinates of each pixel must be transferred to other pixels. A two-dimensional coordinate transformation is required to convert the coordinates of the pixels into the coordinates of the pixels.

このような変換を行う場合、従来はハードウェア的に行
うか、またはCPUを使用してソフトウェア(プログラ
ム)により行うか、のいずれかであった。
Conventionally, such conversion has been performed either by hardware or by software (program) using a CPU.

[発明が解決しようとする課題] ハードウェアによる場合は、処理時間がかからない替わ
りに、変換の種類が、アフィン変換等の演算種が単純か
つ演算回路数の少ないものに限定され、さらに画像のサ
イズ、位置も固定化される問題があり、ソフトウェアに
よる場合は、変換の種類を自由に選択できる替わりに、
画像全体の変換に要する演算時間が膨大になる、という
問題がある。
[Problems to be Solved by the Invention] When using hardware, processing time is not required, but the type of transformation is limited to simple calculation types such as affine transformation and those with a small number of calculation circuits, and the size of the image is also limited. , there is a problem that the position is also fixed, and when using software, instead of being able to freely select the type of conversion,
There is a problem in that the calculation time required to convert the entire image is enormous.

この発明は上記の如き事情に鑑みてなされたものであっ
て、通常の画像編集に用いる拡大、縮小、回転、平行移
動若しくはこれらの組合せであるアフィン変換はもとよ
り、さらに自由度の高い変換が短時間で可能な、ずなわ
ら、Xがある範囲の整数値をとりyもある範囲の整数値
をとって変化するとき、 (但しf(X)、h(X)はXの任意の関数、a(y)
、k(y)はyの任意の関数とする)なる変換式を満た
す座標(X、Y)を任意の入力座標(x、y)に応じて
高速に出力し得て、座標変換時間を短縮可能で、しかも
大型の装置を必要としない2次元座標変換方法及び装置
を提供することを目的としている。
This invention was made in view of the above-mentioned circumstances, and includes not only affine transformations such as enlargement, reduction, rotation, translation, or a combination thereof used in normal image editing, but also transformations with a higher degree of freedom. Naturally, when X takes an integer value in a certain range and y takes an integer value in a certain range and changes over time, (however, f(X) and h(X) are arbitrary functions of X, a(y)
, k(y) is an arbitrary function of y) can be outputted at high speed according to arbitrary input coordinates (x, y), which satisfies the transformation formula, reducing the coordinate transformation time. It is an object of the present invention to provide a two-dimensional coordinate conversion method and device that is possible and does not require a large-sized device.

[課題を解決するための手段] この目的に対応して、この発明の2次元座標変換方法は
、x−y座標系上の所定の領域内の座標(x、y)から
X−Y座標系上の所定の領域内の座標(X、Y)への変
換式が (但しf (x) 、 h (x)はXの任意の関数、
Q(y)、k(y)はyの任意の関数)で表わされる座
標変換を行う2次元座標変換方法であって、前記Xの多
値に対応するf(x)の値を格納し得るX座標X関係値
テーブルXXと、前記yの多値に対応するa (y)の
値を格納し得る×座標y関係値テーブルXyと、Xの多
値に対応するh(x)の値を格納し得るY座標X関係値
テーブルYXと、yの多値に対応するk (y)の値を
格納し得るY座標y関係嬢テーブルYyとを用意Q、予
めXの多値に対応するf(X)、h(X)の値を各々X
xの各セルXXx及びYxの各セルYxxに格納しかっ
yの多値に対応するq(y)。
[Means for Solving the Problem] Corresponding to this objective, the two-dimensional coordinate conversion method of the present invention converts coordinates (x, y) in a predetermined area on the x-y coordinate system to the X-Y coordinate system. The conversion formula to the coordinates (X, Y) in the predetermined area above is (where f (x) and h (x) are any functions of X,
Q(y), k(y) are arbitrary functions of y) is a two-dimensional coordinate transformation method that performs coordinate transformation expressed by An X-coordinate X-related value table XX, an x-coordinate y-related value table Prepare a Y-coordinate, (X) and h(X) respectively
q(y) corresponding to the multi-value of y is stored in each cell XXx of x and each cell Yxx of Yx.

k (y)の値をXyの各セルXy、及びYyの各セル
Yy、に格納しておき、Xに対応してXXx。
The value of k (y) is stored in each cell Xy of Xy and each cell Yy of Yy, and XXx corresponding to X.

Yx、から各々値f(X)、h(X)を読出しyに対応
してXy、Y’y、から各々1a(y)。
Read values f(X) and h(X) from Yx, respectively, and read values 1a(y) from Xy and Y'y corresponding to y, respectively.

k (y)を読出し1ilf(X)と値g(V)を加算
して得られた値をXとして出力し値h(X)と値k (
y)を加算して得られた値をYとして出力することを特
徴とし、またこの発明の2次元座標変換装置は、x−y
座標系上の所定の領域内の座標(x、y)からX−Y座
標系上の所定の領域内の座標(X、Y)への変換式が (但しf (x)、 h (x)はXの任意の関数、g
(y)、k (y)はyの任意の関数)で表わされる座
標変換を行う2次元座標変換装置であって、前記座標(
X、y)を供給する2次元座標供給器と、前記Xの多値
に対応するf(x)の値を格納し得るX座11x関係値
テーブルXXと、前記yの各直に対応するg(y)の値
を格納し得るX座標y関係埴テーブルXyと、Xの多値
に対応するh(x)の値を格納し得るY座標X関係値テ
ーブルYXと、yの多値に対応するk (y)の値を格
納し得るY座標y関係値テーブルYyと、前記供給され
たXの値に対応するX座標X関係値テーブルのセルxX
xの値を読出すX座標x111I係値読出鼎と、前記供
給された×の値に対応するY座標X関係値テーブルのセ
ルYXxの値を読出すY座標X関係値読出器と、前記供
給されたyの値に対応するX座標y関係値テーブルのセ
ルXy。
Read out k(y), add 1ilf(X) and value g(V), output the obtained value as X, and output value h(X) and value k(
y) and outputs the obtained value as Y, and the two-dimensional coordinate conversion device of the present invention is characterized by adding x-y
The conversion formula from coordinates (x, y) within a predetermined area on the coordinate system to coordinates (X, Y) within a predetermined area on the X-Y coordinate system is (where f (x), h (x) is any function of X, g
(y), k (y) is an arbitrary function of y).
X, y), an X-coordinate 11x relational value table XX that can store the values of f(x) corresponding to the multiple values of X, and g corresponding to each axis of y. An X-coordinate y-related table Xy that can store the value of (y), a Y-coordinate X-related value table YX that can store the value of h(x) that corresponds to multiple values of A Y-coordinate y-related value table Yy that can store the value of k (y) to be stored, and a cell xX of the X-coordinate
an X-coordinate x111I coefficient value readout device for reading out the value of x; a Y-coordinate Cell Xy of the X coordinate y relationship value table corresponding to the value of y.

の値を読出すX座標y開係埴読吊器と、前記供給された
yの値に対応するY座標yll係値テーブルのセルYV
  の値を読出すY座標y関係値読吊器と、前記続出さ
れたセルXx  の直とセルXy。
An X-coordinate y-open reading device for reading out the value of y, and a cell YV of the Y-coordinate yll value table corresponding to the supplied y value.
A Y-coordinate y-related value reader for reading out the value of the cell Xx and the cell Xy.

の値とを加算した和をXとして出力するX座標算出器と
、及び前記読出されたセルYxxの値とセルYy の値
とを加算した和をYとして出力するY座標算出器を備え
ることを特徴としている。
and a Y-coordinate calculator that outputs as Y the sum of the read value of cell Yxx and the value of cell Yy. It is a feature.

[作用1 このように構成された2次元座標変換装置においては、
前もって、所定領域内のXの整数値、例えば0.1.2
.・・・、nに対応してX座標X関係値チーゾルのセル
Xx  、Xx  、−、Xx  にo    1  
    n 各々f (0) 、 f (1) 、−、f (n) 
ノllヲ格納しかつY座標X関係値テーブルのセルYX
。。
[Action 1] In the two-dimensional coordinate conversion device configured as described above,
In advance, an integer value of X within a predetermined area, e.g. 0.1.2
.. ..., corresponding to n, the X coordinate X relation value Chisol's cell Xx , Xx , -, Xx o 1
n respectively f (0), f (1), −, f (n)
Cell YX of the Y-coordinate and X-related value table
. .

Yx 、・・・、Yxoに各々h(0)、?1 (1)
h(0), ? for Yx, ..., Yxo, respectively? 1 (1)
.

・・・ h (n)の値を格納し、また所定の領域内の
yの整数値、例えば0.1.2.・・・1mに対応して
X座標y関係値テーブルのセルXy、Xy1・・・、x
y、に各々Q (0)、 Q (1)、・・・q(m)
の値を格納しかつY座標y関係値テーブルのセルyy、
’l/y、、・・・、YyImに各々に(0)、k(1
)、・・・、k(m)の値を格納しておくと、順次供給
される(x、y)に対し、セルXxxの値f(x)がX
座標X関係読出器で読出され、セルXy  の値(J 
(V)がX座標y関係読吊器で読出され、X座標算出器
により「(×)とa (y)が加算されて、Xとして出
力され、同様セルYx のIh(x)と、セルYyyの
値× k (y)が各々読出されて加算されて、Yとして出力
される。
... stores the value of h(n), and also stores the integer value of y within a predetermined area, for example 0.1.2... ... Cells Xy, Xy1..., x of the X coordinate y relationship value table corresponding to 1m
y, respectively Q (0), Q (1),...q(m)
cell yy of the Y-coordinate y-related value table,
'l/y,..., YyIm (0), k(1
), ..., k(m), the value f(x) of cell Xxx will be X
The value of cell Xy (J
(V) is read out by the X coordinate y relationship reading device, and the X coordinate calculator adds "(x) and a (y) and outputs it as The values of Yyy x k (y) are read out, added together, and output as Y.

を満たす(X、Y)が順次出力され座標変換が完了する
(X, Y) that satisfy the following are sequentially output and the coordinate transformation is completed.

2次元座標変換装置では、1つの座標の変換に要する時
間としては、加算1回分の時間であるので極めて短い。
In a two-dimensional coordinate conversion device, the time required to convert one coordinate is the time required for one addition, which is extremely short.

但しくX、Y)が例えば画像の画素の座標であって、変
換の結果整数の組として得られた場合はそのまま使用で
きるが、整数の組でなく少なくとも一方に整数に満たな
い端数がある場合は、(x、Y)の替わりにX、Yの端
数を切捨てた(X’  、Y’  )=  ([X]、
  [Y]  )を用いればよい。
However, if X, Y) are, for example, the coordinates of pixels in an image and are obtained as a set of integers as a result of conversion, they can be used as is, but if they are not a set of integers and at least one of them has a fraction less than an integer. is (X', Y') = ([X],
[Y]) may be used.

[実施例] 以下、この発明の詳細を一実施例を示す図面について説
明する。
[Example] Hereinafter, details of the present invention will be explained with reference to drawings showing an example.

第1図において、1は2次元座標変換装置である。In FIG. 1, 1 is a two-dimensional coordinate conversion device.

2次元座標変換装置1は、2次元座標供給器2に接続し
ており、2次元座標供給器2は、x−y座標系上の例え
ばO≦X≦n、Q≦y≦mで表わされる領域内の整数座
標(x、y)を発生し得る。
The two-dimensional coordinate conversion device 1 is connected to a two-dimensional coordinate supply device 2, and the two-dimensional coordinate supply device 2 is expressed by, for example, O≦X≦n, Q≦y≦m on the x-y coordinate system. Integer coordinates (x,y) within the region may be generated.

ここに、mとしては例えばデジタル画像の画素の座標(
X、 y)におけるXの最大値1、例えば255等の整
数を、nとしてはyの最大値、例えば255等の整数を
想定することができる。
Here, m is, for example, the coordinates of a pixel in a digital image (
It is possible to assume that the maximum value of

2次元座標変換装置1はまた、前記領域内の整数Xの多
値に対応するf(x)の多値f(0)。
The two-dimensional coordinate transformation device 1 also converts the multi-value f(0) of f(x) corresponding to the multi-value of the integer X in the area.

f (1) 、 ・、 f(n)を格納するセルXxo
Cell Xxo storing f (1) , ・, f(n)
.

Xxl 、・・・、Xx、、からなるX座標X関係値テ
ーブル3と、h(x)の各11[h (0)、 h (
1)。
Xxl , ..., Xx, , X-coordinate and
1).

・・・、h(n)を格納するセルYx  、Yxl、・
・・YX、からなるY座標X関係値テーブル5と、前記
領域内の整数yの多値に対応するQ (lの多値g(0
)、Q (1)、・・・、 Q (m)を格納するセル
Xy  、Xyl、・・・、xy、からなる×座標y関
係値テーブル4と、k (y)の多値k(0)。
..., cells Yx, Yxl, . . . which store h(n)
... YX, and the Y coordinate X relational value table 5 consisting of
), Q (1), ..., Q (m) are stored in the x coordinate y relationship value table 4 consisting of cells Xy, Xyl, ..., ).

k (1) 、 ・、 k (m)を格納するセルYy
o。
Cell Yy storing k (1) , ., k (m)
o.

Yyl、・・・、yy、からなるY座標y関係値テーブ
ル6とを備える。
A Y-coordinate y-related value table 6 consisting of Yyl, . . . , yy is provided.

これらのX座標X関係テーブル3、Y座標X関係テーブ
ル5、X座標y関係テーブル4、Y座標y関係テーブル
6が格納する前記多値は、必要に応じて外部の演算装置
(CPU)10等により計算して得られた値を変換に先
だって格納しておく。
The multivalues stored in these X coordinate X relationship table 3, Y coordinate X relationship table 5, The value obtained by calculating is stored before conversion.

2次元座標変換装置1はまた前記供給されたXの値に対
応する×座標X関係値テーブルのセルXX  の値を読
出すX座標X関係値読出器7と、前記供給されたXの値
に対応するY座標X関係値テーブルのセルYXxの値を
読出すY座標X関係値読吊器11と、前記供給されたy
の値に対応するX座標y関係値テーブルのセルXy、の
値を読出すX座標y関係値読吊器8、前記供給されたy
の値に対応するY座標y関係埴テーブルのセルYy の
値を読出すY座標y関係値読吊器12と、前記読出され
たセルXX  の値とセルXy、の値とを加算した和を
Xとして出力するX座標算出番13と、及び前記読出さ
れたセルYXxの値とセルYy の須とを加算した和を
Yとして出力するY座標算吊器14と、を備える。
The two-dimensional coordinate conversion device 1 also includes an X coordinate X relationship value reader 7 that reads out the value of cell XX of the A Y-coordinate X-related value reading device 11 that reads out the value of the cell YXx of the corresponding Y-coordinate X-related value table;
an X-coordinate y-related value reading device 8 for reading out the value of cell Xy of the X-coordinate y-related value table corresponding to the value of y;
The Y-coordinate y-related value reader 12 reads the value of cell Yy of the Y-coordinate y-related table corresponding to the value of , and calculates the sum of the read value of cell XX and the value of cell Xy. It includes an X coordinate calculation number 13 that outputs as X, and a Y coordinate calculator 14 that outputs as Y the sum of the read value of cell YXx and the value of cell Yy.

次にこのような2次元座標変換装置1によって2次元座
標(x、y)を2次元座標(X、Y)に変換する方法を
、第1図について説明する。
Next, a method of converting two-dimensional coordinates (x, y) into two-dimensional coordinates (X, Y) using such two-dimensional coordinate converting device 1 will be explained with reference to FIG.

まず、関数f (x)、 Q (y)、 h (x>。First, the functions f (x), Q (y), h (x>).

k (y)を決定し、各テーブル3,4,5.6を設定
する。例えば Xx  、Xx  、Xx  、・、Xx。
Determine k (y) and set each table 3, 4, 5.6. For example, Xx, Xx, Xx, ., Xx.

o    1   2 に、各々値 f (0)、 f (1)、’ f (2>、 ・、 
f (n>を格納し、 Xy  、Xy  、Xy2.・・・、xy。
o 1 2 , the values f (0), f (1), ' f (2>, ・,
f (store n>, Xy, Xy, Xy2..., xy.

1 に、各々値 0、(0)、a (1)、Cl (2)、・・・、 g
(m)を格納し、 YX  、YX  、YX  、・・・I’ Y X 
no   1  2 に、各々値 h (0)、 h (1)、 h (2)、−、h (
n)を格納し、 YV  、 Y’j  、 Yy2 、−、 X”T”
111 に、各々値 k (0)、 k (1)、 k (2)、 ・、 k
 (m)を格納する。
1, respectively the values 0, (0), a (1), Cl (2), ..., g
Store (m), YX , YX , YX ,...I' Y X
no 1 2, respectively the values h (0), h (1), h (2), -, h (
n), YV , Y'j , Yy2 , -, X"T"
111, respectively, the values k (0), k (1), k (2), ・, k
(m) is stored.

そうした上で、2次元座標供給器2により、x−y座標
系○≦X≦n、Q≦y≦mで表わされる領域内の整数座
標(x、y)を供給する。
Then, the two-dimensional coordinate supply device 2 supplies integer coordinates (x, y) within the area expressed by the x-y coordinate system ◯≦X≦n, Q≦y≦m.

この供給は、例えば、まずy=Oとして、Xをx=0.
1.2.・・・nと変化させ、次にyの値を1増やしy
=1として、x=0.1.2.−nと変化させ、以下順
次yの値を1増やしてX−0゜1.2.・・・、nと変
化させ、座標(0,0)。
This supply can be done, for example, by first setting y=O and then setting X to x=0.
1.2. ...change it to n, then increase the value of y by 1 y
=1, x=0.1.2. -n, and then increase the value of y by 1 to X-0°1.2. ..., n and the coordinates (0,0).

(0,1)、・・・(m、n)を供給する。(0,1), ... (m, n) are supplied.

供給された(x、y)のうち、XをX座標X関係読出器
7とY座標X関係読出型11とに入力すれば、その結果
、XX  とYxxに各々格納されたIf (x)とh
(x)とが読出されるので、f(x)はX座標算出型1
3に入れ、h(×)はY座標算出型14に入力する。
Of the supplied (x, y), if X is input to the X coordinate X relationship readout device 7 and the Y coordinate X relationship readout type 11, as a result, If (x) stored in h
(x) is read, so f(x) is an X coordinate calculation type 1
3, and h(x) is input into the Y coordinate calculation type 14.

一方yはX座標y関係直読吊器8とY座標y関係読吊器
12とに入力し、その結果Xy とYy、に各々格納さ
れたIn (y)とk (y)とが読出されるので、q
(y)はX座標算出型13に入力し、k (y)はY座
標算出型14に入力する。
On the other hand, y is input to the X-coordinate y-related direct reading device 8 and the Y-coordinate y-related reading device 12, and as a result, In (y) and k (y) stored in Xy and Yy, respectively, are read out. Therefore, q
(y) is input to the X coordinate calculation type 13, and k(y) is input to the Y coordinate calculation type 14.

X座標算出型13はf(x)とQ (V)を加算して、
値f (x)+g(y)をXとして出力する。
X coordinate calculation type 13 adds f(x) and Q (V),
Output the value f(x)+g(y) as X.

またY座標算出型14はh(x)とk(y)を加算して
、値h (x) +k (y)をYとして出力する。
Further, the Y coordinate calculation type 14 adds h(x) and k(y) and outputs the value h(x)+k(y) as Y.

この結果(x、y)→(X、Y)の座標変換が完了する
As a result, the coordinate transformation from (x, y) to (X, Y) is completed.

第2図に示す画像変換装置20はこの発明の座標変換方
法及び装置を利用したものであり、画像変換装置20に
おいては、本発明の2次元座標変換装置1に接続されて
いる2次元座標供給器2で発生させた座標(x、y)を
、変換画像書込み用イメージメモリ15にも供給して、
その2次元アドレス(x、y)を順次発生させる。
The image conversion device 20 shown in FIG. 2 utilizes the coordinate conversion method and device of the present invention. The coordinates (x, y) generated by the device 2 are also supplied to the image memory 15 for writing converted images,
The two-dimensional addresses (x, y) are generated sequentially.

一方、座標(x、y)を座標変換装@1により座標(X
、Y)に変換し、その出力(X、Y)を、原画像記録用
イメージメモリ16に供給して、その2次元アドレス(
X、Y)に記録された画像情報(階調値等)を、読出し
てその画像情報を前2変換後画像書込み用イメージメモ
リ15のアドレス(x、y)に書込む。
On the other hand, coordinates (x, y) are converted into coordinates (X
, Y), and the output (X, Y) is supplied to the image memory 16 for recording the original image, and its two-dimensional address (
The image information (gradation values, etc.) recorded in the area (X, Y) is read out and written to the address (x, y) of the image memory 15 for writing the image after the first two conversions.

以下に画像変換の例を示す。An example of image conversion is shown below.

n=36.m=32とし、f(x)とシテハ各Xの値に
対し叫別に値を対応させた次のような関数を選択する。
n=36. Assuming that m=32, the following function is selected in which f(x) and the value of each X are made to correspond to each other.

f (0)=O,f (1)=1.f、(2)=1゜f
 (3)=2.f (4)=3.f (5)=2゜f 
(6)=1.f (7)−1,f (8)=4゜f  
 9)=O,f(10)=O,f(11)=4゜f  
 12   =O,f   13)=O。
f (0)=O, f (1)=1. f, (2) = 1°f
(3)=2. f (4)=3. f (5)=2゜f
(6)=1. f (7)-1, f (8) = 4゜f
9)=O, f(10)=O, f(11)=4°f
12 = O, f 13) = O.

f   14   =O,f   15)=O。f 14 = O, f 15) = O.

f   16   =O,f   17)=5゜f  
 18   =6.f   19)=5゜f   20
   =O,f  、21>=O。
f 16 = O, f 17) = 5°f
18 = 6. f 19) = 5° f 20
=O,f, 21>=O.

f   22   =0.f   23)−〇。f 22 = 0. f   23)-〇.

f(24=○、f   25   =4・f   26
  −0.f   27   =O。
f (24 = ○, f 25 = 4・f 26
-0. f 27 =O.

f   28   =4.f   29   =1f(
30=1.f   31   =2゜f(32=3. 
 f   33   =2゜f(34=1.  f  
 35   =1゜f  (36=O。
f 28 =4. f 29 = 1f(
30=1. f 31 =2°f (32=3.
f 33 = 2°f (34 = 1. f
35 = 1°f (36=O.

またk (y)としては各yの値に対し個別に値を対応
させた次のような関数を選択する。
Further, as k (y), the following function is selected in which the value is individually associated with each value of y.

k (0)=O,k (1)=O,k (2)=1゜k
 (3)=1.k (4)=2.k (5)=3゜k 
(6)−2,k (7)=1.k (8)=1゜k(9
)=4.k(10)=O,k(11)−〇。
k (0)=O, k (1)=O, k (2)=1゜k
(3)=1. k(4)=2. k (5) = 3゜k
(6)-2,k (7)=1. k(8)=1゜k(9
)=4. k(10)=O, k(11)−〇.

k   12   =4.k   13)=O。k 12 = 4. k 13)=O.

k   14)−〇、  k   15)=5゜k  
 16   =6.  k   17)=5゜k   
18   =O,k   19)=O。
k14)-〇, k15)=5゜k
16 = 6. k17)=5゜k
18 = O, k 19) = O.

k   20   =4.k   21   =0゜k
   22   =0.k   23   =4゜k 
  24   =1.k   25   =1゜k  
 26   =2.k   27   =3゜k   
28)=2.k   29   =1k(30)=1.
  k   31   =O。
k 20 =4. k 21 =0゜k
22 =0. k 23 = 4゜k
24 =1. k 25 = 1゜k
26 = 2. k 27 = 3゜k
28)=2. k 29 =1k(30)=1.
k 31 =O.

k(32)=0 するとX座標X関係値テーブル3とY座標y関係値テー
ブル6とは第4図に示すようになる。
k(32)=0 Then, the X-coordinate X-related value table 3 and the Y-coordinate y-related value table 6 become as shown in FIG.

また、a (y) =O,h (x) =0すなわち、
 CI (y)、 h (x)は常に0である関数とし
、X座標y関係値テーブル4とY座標X関係値テーブル
5とのXy  、Xy  、Xy2.・・・1 xy  及びYx  、Yx  、Yx  、−・・、
Yx。
Also, a (y) = O, h (x) = 0, that is,
CI (y), h (x) are always functions that are 0, and Xy, Xy, Xy2 . ...1 xy and Yx, Yx, Yx, -...,
Yx.

−012 にはすべてOを格納する。-012 All stores O.

すると、XとXとの対応関係は、X座標X関係値テーブ
ル3とXとの対応関係と一致し、同様にY、!:yとの
対応はX座標y関係値テーブル6とyとの対応関係一致
するく第4図)。
Then, the correspondence between X and X matches the correspondence between X coordinate and X relationship value table 3 and X, and similarly, Y,! 4).

すると、(x、y)→(X、Y)の座標変換は次の表の
左側のようになる。
Then, the coordinate transformation from (x, y) to (X, Y) becomes as shown on the left side of the following table.

(x、y)→(X、Y)  画素(X、Y)の画像情報 0、O→(0,0> I   0 O11→(0,0i   0 0.2 →(0,1):   0 0.3  →(0,1)、   0 0.4 →(0,2> I   0 O95→(0,3) I   O (1,O→ (1、1→ (1、2→ (1、3→ (1、4→ (1、5→ i、o、。(x, y) → (X, Y) Image information of pixel (X, Y) 0, O → (0, 0> I 0 O11→(0,0i 0 0.2 → (0,1): 0 0.3 → (0,1), 0 0.4 → (0,2>I 0 O95→(0,3) I O (1, O → (1, 1→ (1, 2→ (1, 3 → (1, 4 → (1, 5 → i,o,.

1.0      0 1 、1      0 1 、1      0 1 、2       。1.0 0 1, 1 0 1, 1 0 1, 2.

1 、3      0 (1。1, 3 0 (1.

(1。(1.

(1。(1.

(1゜ (1゜ → (1。(1゜ (1゜ → (1.

→ (1。→ (1.

→ 〈 1 。→ 〈〈 1 .

→ (1゜ → (1。→ (1゜ → (1.

(2,0)  → (1,0> (2,8)  → (1,1) <2.9)  → (1,4> (2,10)  → (1,0) (3,8)  → (2,1) (3,9)  → (2,4) (3,10)  → (2,0) (4゜ (4゜ (4゜ (4゜ 8)→ (3゜ 9)→ (3゜ 10)→ (3゜ 11) → (3゜ (4゜ 12)→ (3゜ 4) (4゜ (4゜ (4゜ (4゜ 15)→ (3゜ 16)→ 〈3゜ 17)→ (3゜ 18)→ (3゜ すると、第3図に示す如き、X字型部分がON(暗)の
21ia画像である原画像17は、第4図に示されるよ
うな1(暗)の部分が分断した変換画像18に変換され
る。
(2,0) → (1,0> (2,8) → (1,1) <2.9) → (1,4> (2,10) → (1,0) (3,8) → (2,1) (3,9) → (2,4) (3,10) → (2,0) (4゜(4゜(4゜(4゜8) → (3゜9) → (3゜10) → (3゜11) → (3゜(4゜12)→ (3゜4) → (3°18) → (When rotated by 3°, the original image 17, which is a 21ia image with the X-shaped part ON (dark) as shown in FIG. is converted into a divided converted image 18.

すなわち、座標(x、y)が (,0,0)、(0,1)、(0,2)・・・と順次供
給されるに従って、原画像の記録用イメージメモリ16
のアドレス(X、Y)が(0,0)、(0,1>、(0
,1>・・・と、重複を許して対応してゆき、前記表の
右側に示す画霞情報 O(明)、○(明)、O(明)・・・ が、変換後画像書込み用イメージメモリ15のアドレス (0,0)、(0,1)、(0,2)・・・に順次書込
まれて、第4図の変換画像18が得られるものである。
That is, as the coordinates (x, y) are sequentially supplied as (,0,0), (0,1), (0,2)...
The address (X, Y) of (0,0), (0,1>, (0
, 1>..., and the haze information shown on the right side of the table is O (bright), ○ (bright), O (bright)... for image writing after conversion. The converted image 18 shown in FIG. 4 is obtained by sequentially writing to addresses (0,0), (0,1), (0,2), . . . in the image memory 15.

第5図はこの発明の2次元座標変換装置によりアフィン
変換(x、y)→(X、Y) 但し、 fは任意の定数) を行うときのf (x)、 g(y)、h (x)k 
(y)の各テーブルの設定を示す。
FIG. 5 shows f (x), g (y), h ( x)k
The settings of each table in (y) are shown.

式(1)は式 において f(x)=ax ON/)  −by+c h(x)=dx k  (V)=ey+f とした場合であるから、 X座標X関係値テーブル3、X座標y関係値テーブル4
、Y座標X関係(直テーブル5、Y座標y関係値テーブ
ル6は各々図のように設定すればよい。
Equation (1) is the case where f(x)=ax ON/) -by+ch h(x)=dx k (V)=ey+f, so X coordinate X relation value table 3, X coordinate y relation value table 4
, Y-coordinate,

x−y座標系上の点(4,3)はX−Y座標系上の点(
X、Y)(但しX1=4a+3b+c。
The point (4, 3) on the x-y coordinate system is the point (4, 3) on the x-y coordinate system
X, Y) (However, X1=4a+3b+c.

1 Y、=4d−ト3e+f)に変換され、原画[録用イメ
ージメモリ16上のアドレス(X、Y、>の画像情報が
、変換機画像書込み用イメージメモリー5上のアドレス
(4,3)に書込まれ、原画像17は変換画像18に変
換される。
1 Y, = 4d - 3e + f), and the original image [image information at address (X, Y, > on recording image memory 16) is converted to address (4, 3) on converter image writing image memory 5. The original image 17 is converted into a converted image 18.

(1)式のアフィン変換が、回転である場合にはa。If the affine transformation in equation (1) is a rotation, a.

b、c、dが−1から1までの間の小数であるから、f
 (x)、 Q (y)、 h (x)、 k (y)
テーブルは小数値の格納も可能なものとし、前述の通り
加算結果X、Yに切捨てを行って整数X′Y′とするよ
うに構成すればよい。
Since b, c, and d are decimal numbers between -1 and 1, f
(x), Q (y), h (x), k (y)
The table may also be capable of storing decimal values, and may be constructed so that the addition results X and Y are rounded down to an integer X'Y' as described above.

第6図は画像変形装B20によって種々の変換を行った
ときの図形を示しており、(a)は原図形を、(b)〜
(h)は(a)に変換を行って得られた変形図形を示し
ている。
FIG. 6 shows figures after various transformations have been performed by the image transformation device B20, where (a) shows the original figure, and (b) -
(h) shows a deformed figure obtained by converting to (a).

[発明の効果] 以上の説明から明らかな通り、この発明によれば、通常
の画像編集に用いる拡大、縮小、回転、平行移動若しく
はこれらの組合せであるアフィン変換はもとより、さら
に自由度の高い変換が短時間で可能な、すなわら、Xが
ある範囲の整数値をとりyもある範囲の整数値をとって
変化するとき、(但しf (x) 、 h (x)はX
の任意の関数、g(y)、k(y)はyの任意の関数と
する)なる変換式を満たす座標(X、Y)を任意の入力
座標(x、y)に応じてごく短時間で出力し得て、座標
変換時間を短縮可能で、しかも大型の装置を必要としな
い2次元座標変換方法及び装置を得ることができ、これ
を用いれば大量の画像を高速で変換可能な画像変換装置
を構成することができる。
[Effects of the Invention] As is clear from the above description, according to the present invention, not only affine transformations such as enlargement, reduction, rotation, translation, or a combination thereof used in normal image editing, but also transformations with a higher degree of freedom can be performed. is possible in a short time, that is, when X takes an integer value in a certain range and y takes an integer value in a certain range and changes,
, and g(y) and k(y) are arbitrary functions of y). It is possible to obtain a two-dimensional coordinate conversion method and device that can output data in 2-dimensional coordinates, shorten coordinate conversion time, and do not require large-scale equipment. Using this method, image conversion that can convert a large amount of images at high speed can be obtained. The device can be configured.

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

第1図は2次元座標変換装置の構成説明図、第2図は2
次元座標変換装置を組込んだ画像変換装置の構成説明図
、第3図は原画像を示す図、第4図第3図に示す原画像
が変換された変換画像を示す図、第5図は2次元座標変
換がアフィン変換である場合の各テーブルの設定の仕方
と原画像と変換画像における座標の関係を示す説明図、
及び第6図は2次元座標変換装置によって変換した図形
例を小す図である。 1・・・2次元座標変換装置、 2・・・2次元座標供給器、 3・・・X座標X関係値テーブル、 4・・・X座標y関係値テーブル、 5・・・Y座標X関係値テーブル、 6・・・Y座標y関係値テーブル、 7・・・×座標X関係1iII読出器、8・・・X座標
y関係li1読出器、 10・・・演算装置、 11・・・Y座標X関係値読出器、 12・・・Y座標y関係値読吊器、 13・・・X座標算出器、 14・・・Y座標算出器、 15・・・変換機画像書込み用イメージメモリ、16・
・・原画像記録用イメージメモリ、17・・・原画像、
   18・・・変換画像20・・・画像変換装置
Figure 1 is an explanatory diagram of the configuration of a two-dimensional coordinate conversion device, and Figure 2 is a 2-dimensional coordinate conversion device.
An explanatory diagram of the configuration of an image conversion device incorporating a dimensional coordinate conversion device, FIG. 3 is a diagram showing an original image, FIG. 4 is a diagram showing a converted image obtained by converting the original image shown in FIG. 3, and FIG. An explanatory diagram showing how to set each table and the relationship between coordinates in the original image and the transformed image when the two-dimensional coordinate transformation is an affine transformation,
and FIG. 6 are diagrams showing an example of a figure transformed by the two-dimensional coordinate transformation device. DESCRIPTION OF SYMBOLS 1... Two-dimensional coordinate conversion device, 2... Two-dimensional coordinate supply device, 3... X-coordinate X relationship value table, 4... X-coordinate y-related value table, 5... Y-coordinate X relationship Value table, 6... Y coordinate y relationship value table, 7... × coordinate X relationship 1iII reader, 8... X coordinate y relationship li1 reader, 10... Arithmetic device, 11... Y Coordinate X-related value reader, 12... Y-coordinate y-related value reader, 13... X-coordinate calculator, 14... Y-coordinate calculator, 15... Image memory for writing converter image. 16・
...Image memory for recording the original image, 17...Original image,
18... Converted image 20... Image conversion device

Claims (2)

【特許請求の範囲】[Claims] (1)x−y座標系上の所定の領域内の座標(x、y)
からX−Y座標系上の所定の領域内の座標(X、Y)へ
の変換式が ▲数式、化学式、表等があります▼ (但しf(x)、h(x)はxの任意の関数、g(y)
、k(y)はyの任意の関数) で表わされる座標変換を行う2次元座標変換方法であっ
て、前記xの各値に対応するf(x)の値を格納し得る
X座標x関係値テーブルXxと、前記yの各値に対応す
るg(y)の値を格納し得るX座標y関係値テーブルX
yと、xの各値に対応するh(x)の値を格納し得るY
座標x関係値テーブルYxと、yの各値に対応するk(
y)の値を格納し得るY座標y関係値テーブルYyとを
用意し、予めxの各値に対応するf(x)、h(x)の
値を各々Xxの各ビルXx_x及びYxの各セルYx_
xに格納しかつyの各値に対応するg(y)、k(y)
の値をXyの各セルXy_y及びYyの各セルYy_y
に格納しておき、xに対応してXx_x、Yx_xから
各々値f(x)、h(x)を読出しyに対応してXy_
y、Yy_yから各々値g(y)、k(y)を読出し値
f(x)と値g(y)を加算して得られた値をXとして
出力し値h(x)と値k(y)を加算して得られた値を
Yとして出力することを特徴とする2次元座標変換方法
(1) Coordinates (x, y) within a predetermined area on the x-y coordinate system
The conversion formula from to coordinates (X, Y) within a predetermined area on the X-Y coordinate system is ▲ There are mathematical formulas, chemical formulas, tables, etc. function, g(y)
, k(y) is an arbitrary function of y) A two-dimensional coordinate transformation method that performs coordinate transformation expressed as A value table Xx and an X coordinate y relationship value table X that can store the value of g(y) corresponding to each value of y.
Y that can store y and the value of h(x) corresponding to each value of x
Coordinate x relationship value table Yx and k(
y) is prepared, and the values of f(x) and h(x) corresponding to each value of x are stored in advance in each of the buildings Xx_x and Yx of Xx. Cell Yx_
g(y), k(y) stored in x and corresponding to each value of y
The value of each cell Xy_y of Xy and each cell Yy_y of Yy
The values f(x) and h(x) are read out from Xx_x and Yx_x corresponding to x, and Xy_x corresponding to y.
Read the values g(y) and k(y) from y and Yy_y, add the value f(x) and the value g(y), output the obtained value as X, and output the value h(x) and the value k( y) and outputs the obtained value as Y.
(2)x−y座標系上の所定の領域内の座標(x、y)
からX−Y座標系上の所定の領域内の座標(X、Y)へ
の変換式が ▲数式、化学式、表等があります▼ (但しf(x)、h(x)はxの任意の関数、g(y)
、k(y)はyの任意の関数) で表わされる座標変換を行う2次元座標変換装置であっ
て、前記座標(x、y)を供給する2次元座標供給器と
、前記xの各値に対応するf(x)の値を格納し得るX
座標x関係値テーブルXxと、前記yの各値に対応する
g(y)の値を格納し得るX座標y関係値テーブルXy
と、xの各値に対応するh(x)の値を格納し得るY座
標x関係値テーブルYxと、yの各値に対応するk(y
)の値を格納し得るY座標y関係値テーブルYyと、前
記供給されたxの値に対応するX座標x関係値テーブル
のセルXx_xの値を読出すX座標x関係値読出器と、
前記供給されたxの値に対応するY座標x関係値テーブ
ルのセルYx_xの値を読出すY座標x関係値読出器と
、前記供給されたyの値に対応するX座標y関係値テー
ブルのセルXy_yの値を読出すX座標y関係値読出器
と、前記供給されたyの値に対応するY座標y関係値テ
ーブルのセルYy_yの値を読出すY座標y関係値読出
器と、前記読出されたセルXx_xの値とセルXy_y
の値とを加算した和をXとして出力するX座標算出器と
、及び前記読出されたセルYx_xの値とセルYy_y
の値とを加算した和をYとして出力するY座標算出器を
備えることを特徴とする2次元座標変換装置
(2) Coordinates (x, y) within a predetermined area on the x-y coordinate system
The conversion formula from to coordinates (X, Y) within a predetermined area on the X-Y coordinate system is ▲ There are mathematical formulas, chemical formulas, tables, etc. function, g(y)
, k(y) is an arbitrary function of y) A two-dimensional coordinate transformation device that performs coordinate transformation expressed as X can store the value of f(x) corresponding to
A coordinate x-related value table Xx and an X-coordinate y-related value table Xy that can store the values of g(y) corresponding to each value of y.
, a Y coordinate x relationship value table Yx that can store the value of h(x) corresponding to each value of x, and k(y
); an X-coordinate x-related value reader that reads the value of the cell Xx_x of the X-coordinate x-related value table corresponding to the supplied x value;
a Y-coordinate x-related value reader for reading out the value of cell Yx_x of the Y-coordinate x-related value table corresponding to the supplied x value; an X-coordinate y-related value reader that reads the value of the cell Xy_y; a Y-coordinate y-related value reader that reads the value of the cell Yy_y of the Y-coordinate y-related value table corresponding to the supplied y value; The read value of cell Xx_x and cell Xy_y
an X coordinate calculator that outputs as X the sum of the sum of the values of
A two-dimensional coordinate conversion device characterized by comprising a Y-coordinate calculator that outputs as Y the sum of the values of
JP2015554A 1990-01-25 1990-01-25 Method and device for two-dimensional coordinate transformation Pending JPH03219373A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2015554A JPH03219373A (en) 1990-01-25 1990-01-25 Method and device for two-dimensional coordinate transformation
US07/644,306 US5193126A (en) 1990-01-25 1991-01-18 Image deformation method and apparatus using coordinate transformation
EP19910100784 EP0440077A3 (en) 1990-01-25 1991-01-23 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015554A JPH03219373A (en) 1990-01-25 1990-01-25 Method and device for two-dimensional coordinate transformation

Publications (1)

Publication Number Publication Date
JPH03219373A true JPH03219373A (en) 1991-09-26

Family

ID=11891989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015554A Pending JPH03219373A (en) 1990-01-25 1990-01-25 Method and device for two-dimensional coordinate transformation

Country Status (1)

Country Link
JP (1) JPH03219373A (en)

Similar Documents

Publication Publication Date Title
US4827250A (en) Graphics display system having data transform circuit
JPS6247786A (en) Exclusive memory for adjacent image processing
JPS61143879A (en) Method and apparatus for calculating pixel value
JPH0572626B2 (en)
US5193126A (en) Image deformation method and apparatus using coordinate transformation
JPH03219373A (en) Method and device for two-dimensional coordinate transformation
JPH04335422A (en) Sorting device
CN114282159B (en) Data processing device, integrated circuit chip, equipment and implementation method thereof
JPH0522238B2 (en)
JPH0547867B2 (en)
JPH03154175A (en) Picture storage device
JPS60124785A (en) Picture processing unit
JP4661112B2 (en) Image information processing apparatus and image information processing method
JPS6386083A (en) Affine converting system
JPS63201787A (en) Resampling circuit
JP2867482B2 (en) Image processing device
JPH01183732A (en) Method and device for conversion between floating point number and integer
JPS6354646A (en) Memory circuit
JPH0462105B2 (en)
JPS6182278A (en) Three-dimension coordinate converter
JPS6155782A (en) Reducing device of document image
JPS60189579A (en) Processor of picture data
JPS60198652A (en) Picture memory
JPH07182505A (en) Image rotation device for printing
JPS63184878A (en) Picture processor