JPH03219372A - Method and device for coordinate transformation of image and one-dimensional frame buffer - Google Patents

Method and device for coordinate transformation of image and one-dimensional frame buffer

Info

Publication number
JPH03219372A
JPH03219372A JP2015553A JP1555390A JPH03219372A JP H03219372 A JPH03219372 A JP H03219372A JP 2015553 A JP2015553 A JP 2015553A JP 1555390 A JP1555390 A JP 1555390A JP H03219372 A JPH03219372 A JP H03219372A
Authority
JP
Japan
Prior art keywords
dimensional
value
address
address offset
image
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
JP2015553A
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 JP2015553A priority Critical patent/JPH03219372A/en
Priority to US07/644,306 priority patent/US5193126A/en
Priority to EP19910100784 priority patent/EP0440077A3/en
Publication of JPH03219372A publication Critical patent/JPH03219372A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To convert an address supplied in the longitudinal direction of coordinate of a two-dimensional coordinate system to a one-dimensional real address by setting the sum of functions of two components of two-dimensional coordinates as the coordinate of the address on a one-dimensional coordinate system. CONSTITUTION:A coordinate transformation device 1 is equipped with a two-dimensional address supplier 2, an (x) address offset reader 3, a (y) address offset reader 4, an offset table 5, an adder 6, a memory read/write part 7, and a one-dimensional memory medium 8. The address offset table 5 is equipped with an (x) direction address offset table 11, a (y) direction address offset table 12. When two-dimensional addresses (x) and (y) are supplied, function values f(x), g(y) set at the address offset table 5 are read out and the functions f(x) and g(y) are added, and the address (l)=f(x)+g(y) on the one-dimensional coordinate system is outputted, then, two-dimensional/one-dimensional address conversion is completed. In such a way, coordinate transformation between one- dimensional and two-dimensional coordinates can be performed at high speed.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はデジタル画像処理などに用いられる座標変換
技術、特に2次元座標系上の2次元アドレスによって1
次元座標系上の1次元アドレスにアクセスする技術に関
するものである。
[Detailed Description of the Invention] [Industrial Application Field] This invention relates to coordinate transformation technology used in digital image processing, etc.
This invention relates to technology for accessing one-dimensional addresses on a dimensional coordinate system.

[従来の技術] デジタル画像を表示装置上に表示すること、及びその表
示のときに、記憶されている原画像に処理を加え、拡大
像、縮小像、回転像その他の処理画像を表示することも
知られている。
[Prior Art] Displaying a digital image on a display device, and at the time of displaying the digital image, processing the stored original image and displaying an enlarged image, a reduced image, a rotated image, and other processed images. is also known.

このような画像処理の場合にはアドレスの座標変換が必
要eある。
In such image processing, coordinate conversion of addresses is necessary.

このうち、1次元座標、2次元座標間の変換は、画像処
理装置に多く見られ、従来は、フレームバッファと呼ば
れる表示または取扱い画像に合せて、画像サイズ及び画
像の固定化された特別な画像用メモリが使用されたハー
ドウェアによる技術や、またはCPUを使ったソフトウ
ェアによる方法が採られている。
Among these, conversion between one-dimensional coordinates and two-dimensional coordinates is often seen in image processing devices, and conventionally, conversion between one-dimensional coordinates and two-dimensional coordinates is often performed in image processing devices. A hardware technique that uses memory for this purpose or a software technique that uses a CPU have been adopted.

[発明が解決しようとする課題] しかるに、上記のハードウェアによる変換技術では画像
サイズが一定の場合には画像の画素の2次元座標と実際
のデータの存在するメモリアドレスの1次元座標との間
が非常に簡単な関係があり、2次元、1次元座標変換を
非常に簡単に行うことができる利点を有するのであるが
、しかし、′画一サイズ及びその画素の存在するアドレ
ス等を任意にする場合は、画像用メしすの容liが膨大
となり、画像の座標と実際の1次元メモリアドレスとの
関係が複雑になるほか、画像品質の向上、画像の解像度
の向上、メモリーの有効利用が困難である。
[Problem to be Solved by the Invention] However, with the above hardware-based conversion technology, when the image size is constant, the difference between the two-dimensional coordinates of the pixels of the image and the one-dimensional coordinates of the memory address where the actual data exists is It has a very simple relationship and has the advantage of being able to perform two-dimensional and one-dimensional coordinate transformation very easily. In this case, the capacity of the image memory becomes enormous, the relationship between the image coordinates and the actual one-dimensional memory address becomes complicated, and it becomes difficult to improve image quality, image resolution, and use memory effectively. Have difficulty.

また、ソフトウェアによる変換技術はアドレス計算のた
めのプログラム量が増加し、処理時間も余分にかかると
いう問題がある。
Furthermore, the software conversion technique has the problem of increasing the amount of programs for address calculation and requiring additional processing time.

このようなことから、2次元座標系の座標値で与えられ
たアドレスを1次元の実アドレスに変換する変換回路を
使用することも提案されているが(昭和63年特許出願
公開第6645号公報参照)、ここでいう変換回路の具
体的な内容が開発されておらず、結局、この技術も実現
に至っていない。
For this reason, it has been proposed to use a conversion circuit that converts an address given by coordinate values in a two-dimensional coordinate system into a one-dimensional real address (see Patent Application Publication No. 6645 of 1988). ), the specific details of the conversion circuit referred to here have not been developed, and in the end, this technology has not been realized.

この発明は上記の如き事情に鑑みてなされたものであっ
て、2次元座標系の座標値で与えられたアドレスを1次
元の実アドレスに変換可能な技術を開発し、これによっ
て、簡単な装置で処理時間を短くすることができる画像
変換方法及び画像変換装置並びにそれらの技術を利用し
た1次元フレームバッファを提供することを目的とする
ものである。
This invention was made in view of the above circumstances, and has developed a technology that can convert an address given by coordinate values in a two-dimensional coordinate system into a one-dimensional real address. An object of the present invention is to provide an image conversion method and an image conversion apparatus that can shorten processing time, and a one-dimensional frame buffer using these techniques.

[課題を解決するための手段1 この目的に対応して、この発明の画像の座標変換方法は
、2次元座標系上のアドレスを決定する2次元座標の2
成分(の存在)の関数f(x)。
[Means for Solving the Problem 1] Corresponding to this object, the image coordinate transformation method of the present invention provides two-dimensional coordinate transformation method for determining an address on a two-dimensional coordinate system.
The (presence of) component function f(x).

o (y)の和Ω=f (x) +g (y)を1次元
座標系上のアドレスの座標とすることを特徴とじている
It is characterized in that the sum Ω=f (x) + g (y) of o (y) is taken as the coordinate of an address on a one-dimensional coordinate system.

また、この発明の画像の座標変換方法は、2次元座標系
上の任意の座標(x、V)をアドレスとするデータをa
  とし、a  の存在する1次の存在     x・
V 元媒体上の1次元座標系上の任意の座標βをアドレスと
するデータをbtとし、f(x)をXの任意の関数とし
、Xの8値に対応するf(x)の値を格納するX方向ア
ドレスオフセットテーブルをXTとし、9(y)をyの
任意の関数とし、yの8値に対応するa (y)の値を
格納するy方向アドレスオフセットテーブルをYTとし
、予め、Xの8値に対応するf(x)の値をXTの各要
素XT  にセットし、予め、yの8値に対応するo 
(y)の値をYTの各要素YTyにセットし、Xに対応
するXTxを取り出し、yに対応するYT  を取り出
しXT  とYTyを加算することx により、β=f (x)+g (y)の関係を満たすΩ
を出力することによってa  をす、に対応さx、■ せることを特徴としている。
In addition, the image coordinate conversion method of the present invention converts data whose address is arbitrary coordinates (x, V) on a two-dimensional coordinate system into a
and a first-order existence x・
V Let bt be the data whose address is an arbitrary coordinate β on the one-dimensional coordinate system on the source medium, let f(x) be an arbitrary function of X, and let the value of f(x) corresponding to the 8 values of X be Let XT be the X-direction address offset table to store, let 9(y) be an arbitrary function of y, let YT be the y-direction address offset table to store the values of a (y) corresponding to the 8 values of y, and in advance, The value of f(x) corresponding to the 8 values of X is set in each element XT of XT, and the value o corresponding to the 8 value of y is set in advance.
By setting the value of (y) in each element YTy of YT, taking out XTx corresponding to X, taking out YT corresponding to y and adding XT and YTy, β=f (x) + g (y) Ω that satisfies the relationship
The feature is that a can be made to correspond to x, ■ by outputting .

また、この発明の画一変換装置は、の存在の2次元アド
レスを供給する2次元アドレス供給器と、Xの8値に対
するXTxを予め格納しておくx方向アドレスオフセッ
トテーブルXTと、yの8値に対するYTyを予め格納
しておくy方向アドレスオフセットテーブルYTと、与
えられたXの値に対するXTxを読出すX方向アドレス
オフセット読出器XTRと、与えられたyの値に対する
YT  を読出すy方向アドレスオフセット読出器YT
Rと、XTR,VTRより供給されるXTxとYT  
を加算する加算器ADDと、及びの存在各々方向のアド
レスオフセットテーブルに予め、の存在の8値に対応す
るf(x)及びa (y)の値を設定する演算装置とを
備えることを特徴としている。
Further, the uniformity conversion device of the present invention includes a two-dimensional address supply device that supplies two-dimensional addresses of the existence of , an x-direction address offset table XT that stores in advance XTx for 8 values of X, and 8-values of y. A y-direction address offset table YT that stores YTy for a given value in advance, an X-direction address offset reader XTR that reads XTx for a given X value, and a y-direction address offset table that reads YT for a given y value. Address offset reader YT
R, XTR, XTx and YT supplied from VTR
and an arithmetic unit that sets in advance the values of f(x) and a(y) corresponding to the 8 values of the presence of and in the address offset table for each direction of the presence of and. It is said that

更にまたこの発明の1次元フレームバッファは、画像の
2次元データ行列a [x、Ylにおける要素a x 
、 yの実f−タが1次元媒体上の1次元データ行列す
に格納されており、αを任意の定数とすると、2つの行
列の要素間にbCR+(y−1)X+(x−1)=a 
x 、 yの関係が成立するように構成し、かつの存在
の2次元アドレスを供給する2次元アドレス供給器と、
Xの8値に対するXT  を予め格納しておくX方向ア
ドレスオフセットテーブルXTと、yの8値に対するY
Tyを予め格納しておくy方向アドレスオフセットテー
ブルYTと、与えられたXの値に対するXTxを読出す
X方向アドレスオフセット読出器XTRと、与えられた
yの値に対するYTyを読出すy方向アドレスオフセッ
ト読出器YTRと、XTR,YTRより供給されるXT
  とYTyを加算する加算器ADDと、及びx、y各
々方向のアドレスオフセットテーブルに予め、の存在の
8値に対応するf(x)=x−i及びQ (y)= (
y−1)X+αの値を設定する演算装置とを備えること
を特徴としている。
Furthermore, the one-dimensional frame buffer of the present invention has elements a x in the two-dimensional data matrix a [x, Yl of the image.
, y are stored in a one-dimensional data matrix on a one-dimensional medium, and if α is an arbitrary constant, bCR+(y-1)X+(x-1 )=a
a two-dimensional address supply device configured such that a relationship between x and y is established, and supplying a two-dimensional address of the existence of the
An X-direction address offset table XT that stores in advance XT for 8 values of X, and Y for 8 values of y.
A y-direction address offset table YT that stores Ty in advance, an X-direction address offset reader XTR that reads XTx for a given X value, and a y-direction address offset that reads YTy for a given y value. XT supplied from the reader YTR and XTR, YTR
and an adder ADD that adds YTy to f(x)=x−i and Q(y)=(
y-1) An arithmetic device that sets the value of X+α.

対するYTyを読出すy方向アドレスオフセット読出器
YTRと、XTR,VTRより供給されるXT  とY
Tyを加算する加算器ADDと、及びの存在各々方向の
アドレスオフセットテーブルに予め、の存在の8値に対
応するf(x)−x−1及びQ (y)−(y−1)X
+αの値を設定する演算装置とを備えることを特徴とし
ている。
a y-direction address offset reader YTR for reading YTy, and XT and Y supplied from XTR and VTR.
The presence of an adder ADD that adds Ty, and the presence of and in the address offset table in each direction in advance, f(x)-x-1 and Q corresponding to the 8 values of the presence of (y)-(y-1)X
The present invention is characterized by comprising an arithmetic device that sets the value of +α.

[作用1 2次元アドレスの存在が供給されると、アドレスオフセ
ットテーブルにセットされている関数値f(x)、g(
y)が読出され、次にず(×)。
[Action 1 When the existence of a two-dimensional address is supplied, the function values f(x) and g(
y) is read out, and then z(x).

Q (y)が加算されてf (x)+g (y)−Ωの
1次元座標系上のアドレスβが出力され、これによって
2次元−1次元アドレス変換が完了する。
Q (y) is added and the address β on the one-dimensional coordinate system of f (x) + g (y) - Ω is output, thereby completing the two-dimensional to one-dimensional address conversion.

[実施例] 以下、これらの発明を一実施例について説明する。[Example] One embodiment of these inventions will be described below.

第1図において、1は座標変換装置である。座標変換装
置!1は2次元アドレス供給器2、X方向アドレスオフ
セット読出器3、y方向アドレスオ7セツト読出14、
オフセットテーブル5、加算器6、メモリ書込み読み出
し部7.1次元メモリ媒体8を備えている。
In FIG. 1, 1 is a coordinate conversion device. Coordinate conversion device! 1 is a two-dimensional address supply device 2, an X-direction address offset reader 3, a y-direction address offset readout 14,
It includes an offset table 5, an adder 6, a memory write/read section 7, and a one-dimensional memory medium 8.

アドレスオフセットテーブル5はX方向アドレスオフセ
ットテーブル11、yh方向アドレスオフセットテーブ
ル12備えている。
The address offset table 5 includes an X-direction address offset table 11 and a yh-direction address offset table 12.

X方向、y方向アドレスオフセットテーブル11.12
にはこの座標変換装置1の駆動に先立って、すべての座
標成分x−0,1,2,・・・、y−0,1,2,・・
・について、 XTo=f (0)、 XTx−f(1)、 XT2−f (2)、 ・XTx=f (n)、YTo
−Q (0)、 YTy =Q (1)、 YT2−chi (2>、−YTy−q(m)(ここで
n及びmはの存在各々の最大値である。)を他の装置f
(マイクロコンピュータ13等)に設定する。X方向ア
ドレスオフセットテーブル11及びy方向アドレスオフ
セットテーブル12はRAMまたはROM等で構成され
ている。
X direction, y direction address offset table 11.12
Before driving this coordinate transformation device 1, all coordinate components x-0, 1, 2, ..., y-0, 1, 2, ...
For ・XTo=f (0), XTx-f(1), XT2-f (2), ・XTx=f (n), YTo
-Q (0), YTy = Q (1), YT2-chi (2>, -YTy-q(m) (where n and m are the maximum values of each presence) to another device f
(microcomputer 13, etc.). The X-direction address offset table 11 and the Y-direction address offset table 12 are constructed of RAM, ROM, or the like.

2次元座標の存在に該当するアドレスの存在は2次元ア
ドレス供給器2から供給され、の存在の値に対応するX
TxYTyがX方向アドレスオフセット読出器3及びy
方向アドレスオフセット読出器4で読出され、更に、X
及びy方向データオフセット径路24.25を通じ加算
器6に運ばれ、加算され1次元アドレスΩに変換され1
次元座標径路26を通じ実メモリの入出力部であるメモ
リー込み読出し部に運ばれ実際のデータの入出力が行わ
れる。これにより、変換式 f(x)+a(y)  ・Qを満たす1次元と2次元間
の相互座標変換が行われる。
The existence of an address corresponding to the existence of two-dimensional coordinates is supplied from the two-dimensional address supplier 2, and
TxYTy is the X direction address offset reader 3 and y
The direction address is read out by the offset reader 4, and
and y-direction data are carried to the adder 6 through offset paths 24 and 25, added, and converted into a one-dimensional address Ω.
The data is carried through the dimensional coordinate path 26 to a memory readout section which is an input/output section of the real memory, and actual data input/output is performed. As a result, mutual coordinate transformation between the one-dimensional and two-dimensional coordinates satisfying the transformation formula f(x)+a(y)·Q is performed.

第2図は第1図に示した。発明の1次元、2次元画像の
関連を概念的に示したものである。第1図の2次元座標
の存在が任意の整数値を取り得るとすると第2図の画素
14を含む1次元メモリ媒体8上の1次元画像15は、
仮想2次元画ll116に変換されたことになり、この
発明を使用する装置は1次元の実メモリの存在と在り様
を意識することなく、の存在平面上に存在する2次元画
像を取扱うことになる。
Figure 2 is shown in Figure 1. This conceptually shows the relationship between one-dimensional and two-dimensional images of the invention. Assuming that the existence of the two-dimensional coordinates in FIG. 1 can take any integer value, the one-dimensional image 15 on the one-dimensional memory medium 8 containing the pixels 14 in FIG.
This means that the image has been converted into a virtual two-dimensional image (116), and a device using this invention can handle a two-dimensional image that exists on the plane of existence without being aware of the existence and state of one-dimensional real memory. Become.

第3図は本発明の座標変換装置1を2個使用し、2次元
画像を変形し、新たな合成された2次元画−を作るため
の装置例を示したものである。17は画像アドレスの発
生装置で、Xが0から最大値まで1ずつ変化し、次にy
が1増え同じくxが0から最大値まで変化するという動
作を繰り返すことにより全画像の座標を生成する。それ
に応じて座標変換装置11a(画像読出用)で定義され
た画像が読まれ、座標変換装置f1b(画像書込み用)
で定義された画像上に書かれる。各々の座標変換装置1
a、lbにおけるf (x)、 g(y)を設定するア
ドレスオフセットテーブル5の設定によって画像の各種
変形が行われ、新しい画像が生成される。但し第3図に
示す構成において2つの座椋変mum 1 a 、 1
 bについて共用できるものは共用してもよい。
FIG. 3 shows an example of an apparatus for transforming a two-dimensional image and creating a new synthesized two-dimensional image using two coordinate transformation apparatuses 1 of the present invention. 17 is an image address generator, in which X changes by 1 from 0 to the maximum value, and then y
By repeating the operations in which x increases by 1 and x changes from 0 to the maximum value, the coordinates of the entire image are generated. Accordingly, the image defined by the coordinate transformation device 11a (for image reading) is read, and the coordinate transformation device f1b (for image writing) is read.
is written on the image defined by . Each coordinate conversion device 1
Various modifications of the image are performed by setting f(x) and g(y) in a and lb in the address offset table 5, and a new image is generated. However, in the configuration shown in FIG.
If b can be shared, it may be shared.

第4図はf(x)、Q(y)をセットするアドレスオフ
セットのデータセットの例を示したちので、設定によっ
て■の1次元座標データは■〜■のような2次元座標の
データに変形を行うことができる。
Figure 4 shows an example of an address offset data set that sets f(x) and Q(y), so depending on the settings, the one-dimensional coordinate data of ■ is transformed into two-dimensional coordinate data such as ■ to ■. It can be performed.

また、スキャナ等画像入出力装置も本発明を用いれば、
メモリ上の1次元画像の変換と同様に取扱うことができ
、元々シリアルに入出力されている画素も、この装置上
では2次元の画像とし取扱うことができる。
Furthermore, if the present invention is applied to image input/output devices such as scanners,
It can be handled in the same way as converting a one-dimensional image on a memory, and even pixels that are originally serially input/output can be handled as a two-dimensional image on this device.

第5図は本発明をスキャナに適用した例を示しており、
この例では、スキャナの入力ボートが仮想メモリ空間上
に割当てられており(通常メモリマツブトi10方式と
いう)、そのアドレスは八〇であると仮定されている。
FIG. 5 shows an example in which the present invention is applied to a scanner.
In this example, it is assumed that the input port of the scanner is allocated on the virtual memory space (generally referred to as memory MacBook i10 system) and its address is 80.

更に、この座標変換装置と画像演算チップを複数個組合
せば、複数2次元画III間演算が高速に行い得る。
Furthermore, by combining this coordinate conversion device with a plurality of image calculation chips, calculations between a plurality of two-dimensional images III can be performed at high speed.

また本発明では複数画素1次元がメモリ上に存在してい
る場合の、メモリの有効使用例である。
Further, in the present invention, this is an example of effective use of the memory when a plurality of one-dimensional pixels exist on the memory.

第6図に示すように、本発明装置で■、■のように連続
した2次元画像は2次元−1次元アドレス変換を可能に
することによって■に示したように行毎(または列毎)
の2次元画像を1次元アドレス上に任意の位置に存在さ
せ得るため、配置を考慮することにより、1次元メしり
が有効に使用できる。
As shown in FIG. 6, by using the apparatus of the present invention, continuous two-dimensional images as shown in ■ and ■ can be converted row by row (or column by column) as shown in ■ by enabling two-dimensional to one-dimensional address conversion.
The two-dimensional image can be placed at any position on the one-dimensional address, so one-dimensional meshing can be used effectively by considering the arrangement.

次にこの発明の座標変換WA置は一般の画像表示装置の
7レームバツフ7として使用することもできる。通常フ
レームバッファは一画面分の画像メモリをいうが、これ
を1次元アドレスのメモリとこの発明の画像変換装置に
よって構成することができる。すなわち、第7図に示す
画像の1フレームを構成する2次元データ行列a [x
、Y]において、 (1)要素a x 、 yの実データが1次元媒体b[
L]上に存在し、 (2)aのfS要素がbの任意要素す。より順に、(3
)b=a、b α  11  α+1=a21・ b     =a     ・・・b α+2    3,1     0t+X−1””  
ax、1のように第1列の全要素が対応し、 (4)次に、b、i+X=”12゜ b      =a    ・・・b       −
aα÷X÷1  2,2   α→2X−I    x
、2のよう(二第2列の全11゛が対応し、(5)一般
にba +(y−1)X+(x−1) −aの存在の関
係が(6)第y列まで成立するとする。
Next, the coordinate transformation WA system of the present invention can also be used as a 7-frame buffer 7 of a general image display device. A frame buffer usually refers to an image memory for one screen, but it can be configured by a one-dimensional address memory and the image conversion device of the present invention. That is, the two-dimensional data matrix a[x
, Y], (1) The actual data of elements a x , y is one-dimensional medium b[
(2) The fS element of a is an arbitrary element of b. In order, (3
)b=a,b α 11 α+1=a21・b=a...b α+2 3,1 0t+X-1""
All elements of the first column correspond as ax, 1, (4) Next, b, i+X=”12°b = a ・・・b −
aα÷X÷1 2,2 α→2X-I x
, 2 (all 11゛ of the second second column correspond, and (5) generally the relationship of the existence of ba + (y-1) X + (x-1) - a holds up to (6) the y-th column. do.

この場合に、この発明による座標変換装置では、(a)
行列aの第y列、第1行の要素と(b)行列すの要素b
a +(y−1)Xが対応するように(C) Q (y
) −(y−1) *X+αとし、(d)行列aの第y
列の第X行に対応するba +(y−1)X+(x−1
)が (e)行列aの第y列の第1行に対応するb  −から
の α÷(y 1)X (f)相対的要素番号を示すように (a)f (x)−x−1とし、 (h)これを第1図に示した装置におけるアドレスオフ
セットテーブル5に (i)XTxYTをセットし、 (j)の存在を2次元アドレス供給器2からアドレスオ
フセット読出器3.4に供給すれば(k)2次元データ
行列の要素a x 、 yの実データの存在する (1)1次元媒体すの要素す、を示すΩの値が出力する
In this case, in the coordinate transformation device according to the present invention, (a)
Element of the y-th column and first row of matrix a and (b) element b of matrix S
(C) Q (y
) −(y−1) *X+α, (d) yth of matrix a
ba + (y-1)X + (x-1
) indicates (e) α÷(y 1)X (f) relative element number from b − corresponding to the first row of the y-th column of matrix a. 1, (h) set (i) XTxYT in the address offset table 5 in the device shown in FIG. If supplied, the value of Ω indicating (k) the element a x of the two-dimensional data matrix and the element s of the one-dimensional medium in which the actual data of y exists (1) is output.

そこで、このx、yを7レームバツフ7(または画像)
1の座標、Ωを7レームバツフアのメモリアドレスとす
れば、この発明の座標変換装置を一般の画像表示装置の
7レームバツフアとして構成できる。
So, set this x, y to 7 frames 7 (or image)
If the coordinate 1, Ω, is the memory address of a 7-frame buffer, the coordinate conversion device of the present invention can be configured as a 7-frame buffer of a general image display device.

なお、以上説明した実施例は1次元座標を導出するのに
f (x)、 g(y)をセットしたアドレスオフセッ
トテーブルを用いた例であるが、アドレスオフセットデ
ープルを使用せずにf(x)。
Note that the embodiment described above is an example in which an address offset table in which f (x) and g (y) are set is used to derive one-dimensional coordinates, but f ( x).

g(y)を演算装置により導出してもよい。g(y) may be derived by a calculation device.

[発明の効果1 この発明では1次元配憶媒体に2次元W!A像情報を記
憶させるので取扱い画像のサイズ及び画像の位置に自由
度をもたせることができる。・しかも1次元、2次元ア
ドレスの変換をハードウェアであるアドレスオフセット
テーブルを使用して実現しているので^速な1次元、2
次元間座標変換を行える。このため特に大容堡画録処理
の高速化を生出す。また、座標変換式の選択によって画
像の変形(90°単位の回転、反転、拡大・縮小等)も
極めて容易に行い得る。更に実際のメモリ上の画像の位
置を2次元座標でアドレスが特定される画像情報の列ま
たは行毎に任意の場所とすることができるため記憶すべ
き複数の画像が存在する時に1次元メモリの有効利用を
図ることができる。
[Effect of the invention 1 This invention provides two-dimensional W! Since the A-image information is stored, it is possible to have flexibility in the size and position of images to be handled.・Moreover, since the conversion of 1D and 2D addresses is realized using a hardware address offset table, the conversion of 1D and 2D addresses is fast.
Can perform interdimensional coordinate transformations. This results in particularly high-speed image recording processing. Furthermore, image transformation (rotation in 90° units, inversion, enlargement/reduction, etc.) can be performed extremely easily by selecting a coordinate transformation formula. Furthermore, the actual location of the image on the memory can be any location for each column or row of image information whose address is specified by two-dimensional coordinates, so when there are multiple images to be stored, it is difficult to use the one-dimensional memory. Effective use can be achieved.

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

第1図は座標変換装置の構成説明図、第2図は仮想2次
元画像と1次元メモリの画素の位置を示す説明図、第3
図は画像変換装置を示す構成説明図、第4図は各種の座
標変換式に対応した各種の画像を示す説明図、第5図は
スキャナの入力部に座標変換装置を適用した場合の仮想
メモリアドレス上の画像を示す説明図、第6図は複数の
画像情報を格納した1次元メモリを示す説明図、及び第
7図は1画面上の画像情報のアドレスと1次元メモリ上
の画像情報アドレスとの関係を示す説明図である。 1・・・座標変換装置、 2・・・2次元アドレス供給
器、3・・・X方向アドレスオフセット読出器、4・・
・y方向アドレスオフセット読出器、5・・・オフセッ
トテーブル、 6・・・加算器、7・・・メモリー込み
読出し部、 8・・・1次元メモリ媒体、 11・・・X方向アドレスオフセットテーブル、12・
・・y方向アドレスオフセットテーブル、13・・・マ
イクロコンピュータ、 14・・・画素、15・・・1
次元画像、 16・・・2次元画像、17・・・画像ア
ドレスの発生装置
Fig. 1 is an explanatory diagram of the configuration of the coordinate conversion device, Fig. 2 is an explanatory diagram showing the virtual two-dimensional image and the pixel positions of the one-dimensional memory, and Fig. 3
Figure 4 is an explanatory diagram of the configuration of an image conversion device, Figure 4 is an explanatory diagram showing various images corresponding to various coordinate transformation formulas, and Figure 5 is a virtual memory when the coordinate transformation device is applied to the input section of a scanner. An explanatory diagram showing an image on an address, Fig. 6 is an explanatory diagram showing a one-dimensional memory storing a plurality of image information, and Fig. 7 is an explanatory diagram showing an address of image information on one screen and an image information address on the one-dimensional memory. FIG. DESCRIPTION OF SYMBOLS 1... Coordinate conversion device, 2... Two-dimensional address supply device, 3... X-direction address offset reader, 4...
- Y-direction address offset reader, 5... Offset table, 6... Adder, 7... Memory readout unit, 8... One-dimensional memory medium, 11... X-direction address offset table, 12・
...Y-direction address offset table, 13...Microcomputer, 14...Pixel, 15...1
Dimensional image, 16... Two-dimensional image, 17... Image address generator

Claims (5)

【特許請求の範囲】[Claims] (1)2次元座標系上のアドレスを決定する2次元座標
の2成分(x、y)の関数f(x)、g(y)の和l=
f(x)+g(y)を1次元座標系上のアドレスの座標
とすることを特徴とする画像の座標変換方法
(1) Sum of functions f(x) and g(y) of two components (x, y) of two-dimensional coordinates that determine the address on the two-dimensional coordinate system l =
An image coordinate conversion method characterized in that f(x)+g(y) is the coordinate of an address on a one-dimensional coordinate system.
(2)2次元座標系上の任意の座標(x、y)をアドレ
スとするデータをa_x_、_yとし、a_x_、_y
の存在する1次元媒体上の1次元座標系上の任意の座標
lをアドレスとするデータをb_lとし、f(x)をx
の任意の関数とし、xの各値に対応するf(x)の値を
格納するx方向アドレスオフセットテーブルをXTとし
、g(y)をyの任意の関数とし、yの各値に対応する
g(y)の値を格納するy方向アドレスオフセットテー
ブルをYTとし、予め、xの各値に対応するf(x)の
値をXTの各要素XT_xにセットし、予め、yの各値
に対応するg(y)の値をYTの各要素YT_yにセッ
トし、xに対応するXT_xを取り出し、yに対応する
YT_yを取り出しXT_xとYT_yを加算すること
により、l=f(x)+g(y)の関係を満たすlを出
力することによってa_x_、_yをb_lに対応させ
ることを特徴とする画像の座標変換方法
(2) Data whose addresses are arbitrary coordinates (x, y) on a two-dimensional coordinate system are a_x_,_y, and a_x_,_y
Let b_l be the data whose address is an arbitrary coordinate l on the one-dimensional coordinate system on the one-dimensional medium where exists, and let f(x) be x
Let XT be an x-direction address offset table that stores the value of f(x) corresponding to each value of x, let g(y) be an arbitrary function of y, and let g(y) be an arbitrary function of y, and let g(y) be an arbitrary function of y, and Let YT be the y-direction address offset table that stores the value of g(y), set the value of f(x) corresponding to each value of x to each element XT_x of XT in advance, and set the value of f(x) corresponding to each value of x in advance to each value of y. By setting the corresponding value of g(y) in each element YT_y of YT, taking out XT_x corresponding to x, taking out YT_y corresponding to y and adding XT_x and YT_y, l=f(x)+g( An image coordinate transformation method characterized by making a_x_,_y correspond to b_l by outputting l that satisfies the relationship y).
(3)前記関数f(x)、g(y)を対象となる2次元
座標系上のデータ列と記録媒体の1次元座標系上のデー
タ列との位置の対応により決定することを特徴とする特
許請求の範囲請求項(2)記載の画像の座標変換方法
(3) The functions f(x) and g(y) are determined based on the correspondence between the positions of the data string on the target two-dimensional coordinate system and the data string on the one-dimensional coordinate system of the recording medium. A method for converting coordinates of an image according to claim (2)
(4)x、yの2次元アドレスを供給する2次元アドレ
ス供給器と、xの各値に対するXT_xを予め格納して
おくx方向アドレスオフセットテーブルXTと、yの各
値に対するYT_yを予め格納しておくy方向アドレス
オフセットテーブルYTと、与えられたxの値に対する
XT_xを読出すx方向アドレスオフセット読出器XT
Rと、与えられたyの値に対するYT_yを読出すy方
向アドレスオフセット読出器YTRと、XTR、YTR
より供給されるXT_xとYT_yを加算する加算器A
DDと、及びx、y各々方向のアドレスオフセットテー
ブルに予め、x、yの各値に対応するf(x)及びg(
y)の値を設定する演算装置とを備えることを特徴とす
る画像の座標変換装置
(4) A two-dimensional address supplier that supplies two-dimensional addresses for x and y, an x-direction address offset table XT that stores XT_x for each value of x in advance, and YT_y for each value of y that stores in advance. A y-direction address offset table YT to be stored and an x-direction address offset reader XT that reads XT_x for a given x value.
R, a y-direction address offset reader YTR for reading YT_y for a given y value, XTR, YTR
Adder A that adds XT_x and YT_y supplied by
f(x) and g( corresponding to each value of x and y are stored in advance in the address offset table in the DD and x and y directions, respectively).
an arithmetic device for setting the value of y).
(5)画像の2次元データ行列a[X、Y]における要
素a_x_、_yの実データが1次元媒体上の1次元デ
ータ行列bに格納されており、αを任意の定数とすると
、2つの行列の要素間に b_α_+_(_y_−_1_)_X_+_(_x_−
_1_)=a_x_、_yの関係が成立するように構成
し、かつx、yの2次元アドレスを供給する2次元アド
レス供給器と、xの各値に対するXT_xを予め格納し
ておくx方向アドレスオフセットテーブルXTと、yの
各値に対するYT_yを予め格納しておくy方向アドレ
スオフセットテーブルYTと、与えられたxの値に対す
るXT_xを読出すx方向アドレスオフセット読出器X
TRと、与えられたyの値に対するYT_yを読出すy
方向アドレスオフセット読出器YTRと、XTR、YT
Rより供給されるXT_xとYT_yを加算する加算器
ADDと、及びx、y各々方向のアドレスオフセットテ
ーブルに予め、x、yの各値に対応するf(x)=x−
1及び g(y)=(y−1)X+αの値を設定する演算装置と
を備えることを特徴とする画像表示装置の1次元フレー
ムバッファ
(5) The actual data of elements a_x_,_y in the two-dimensional data matrix a[X, Y] of the image are stored in the one-dimensional data matrix b on the one-dimensional medium, and if α is an arbitrary constant, then the two b_α_+_(_y_-_1_)_X_+_(_x_-
_1_)=a_x_,_y relationship is established, and a two-dimensional address supplier supplies x and y two-dimensional addresses, and an x-direction address offset that stores XT_x for each value of x in advance. A table XT, a y-direction address offset table YT that stores YT_y for each value of y in advance, and an x-direction address offset reader X that reads XT_x for a given x value.
TR and read YT_y for the given value of y
Direction address offset reader YTR, XTR, YT
An adder ADD that adds XT_x and YT_y supplied from R, and an address offset table in each of the x and y directions are preliminarily filled with f(x)=x- corresponding to each value of x and y.
1 and an arithmetic device for setting the value of g(y)=(y-1)X+α.
JP2015553A 1990-01-25 1990-01-25 Method and device for coordinate transformation of image and one-dimensional frame buffer Pending JPH03219372A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2015553A JPH03219372A (en) 1990-01-25 1990-01-25 Method and device for coordinate transformation of image and one-dimensional frame buffer
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
JP2015553A JPH03219372A (en) 1990-01-25 1990-01-25 Method and device for coordinate transformation of image and one-dimensional frame buffer

Publications (1)

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

Family

ID=11891961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015553A Pending JPH03219372A (en) 1990-01-25 1990-01-25 Method and device for coordinate transformation of image and one-dimensional frame buffer

Country Status (1)

Country Link
JP (1) JPH03219372A (en)

Similar Documents

Publication Publication Date Title
JPH1079043A (en) Texture data reading device and rendering device
US5263135A (en) Image processing apparatus
JP3022405B2 (en) Image memory controller
US7933465B2 (en) Processing data supply method and image processing apparatus
JPH03219372A (en) Method and device for coordinate transformation of image and one-dimensional frame buffer
JP2010033507A (en) Memory controller and image processing apparatus
JP3154741B2 (en) Image processing apparatus and system
US6489967B1 (en) Image formation apparatus and image formation method
JPS61267095A (en) Display method
JP2591424B2 (en) Image memory device
WO2001006461A1 (en) Drawing method and drawing device
JPS6089277A (en) Back projection device
JPH07129758A (en) Image processing device
JPS62226380A (en) Image rotating circuit
JPH0229834A (en) Image processor
JPH07146932A (en) Image display device
JP4661112B2 (en) Image information processing apparatus and image information processing method
JPH0336676A (en) pixel drawing device
JPH07129460A (en) Image processing method and apparatus thereof
JPS6386083A (en) Affine converting system
JPS6217877A (en) Image forming device
JPH11205576A (en) Image processor
JPH0198077A (en) Storage device
JPH0423083A (en) Enlarging interpolation processing circuit
JPH0324861A (en) Picture memory access method