JPS5966764A - Picture rotating system - Google Patents

Picture rotating system

Info

Publication number
JPS5966764A
JPS5966764A JP57176151A JP17615182A JPS5966764A JP S5966764 A JPS5966764 A JP S5966764A JP 57176151 A JP57176151 A JP 57176151A JP 17615182 A JP17615182 A JP 17615182A JP S5966764 A JPS5966764 A JP S5966764A
Authority
JP
Japan
Prior art keywords
address
memory
register
data
bus
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
JP57176151A
Other languages
Japanese (ja)
Inventor
Haruo Takeda
晴夫 武田
Naoki Takada
直樹 高田
Kuniaki Tabata
邦晃 田畑
Yasuyuki Okada
岡田 康行
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP57176151A priority Critical patent/JPS5966764A/en
Publication of JPS5966764A publication Critical patent/JPS5966764A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • G06T3/606Rotation by memory addressing or mapping

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To obtain a rotating picture congruent to an original picture in high speed, by taking the block size at block transfer as 1/tantheta each for longitudinal and lateral direction and performing approximation of integral number of a memory address skip length with the fraction discarding. CONSTITUTION:An address control section generates alternately a transferred and transferring address for attaining data transfer. A parameter is given to registers 601-608 of the address control section and a value of (address initial value -1) is given to a register 617. A counter 611 keeps count-up until the content is equal to that of the register 605 and an address data outputted onto an address bus 646 is incremented by one each. The operation is continued until the content of the counter 614 is equal to the content ltantheta of the register 608, and when they are equal, the final address data is transmitted and an end signal 516 is outputted.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は画像回転方式に係9、特に原画像と合同な回転
画像を、高速に得るのに好適な回転方式%式% 画像の回転処理は、一般に座標変換 で表わせる。ここに、(X、y)は原画像の2次元座標
、(X、Y)は回転画像の2次元座標、θは回転角であ
る。第1図に、jiiI記記号θの方向を示す。図中、
(a)は原画像、(b)は回転画像、0.Oはそれぞれ
原画像と回転画像の原点を示す。回転処理において、(
1)式に従って1画素ずつアドレス計算を行なう方法は
、処理時間が犬となる欠点がある。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to an image rotation method9, and in particular to a rotation method suitable for rapidly obtaining a rotated image that is congruent with an original image. , which can generally be expressed by coordinate transformation. Here, (X, y) are the two-dimensional coordinates of the original image, (X, Y) are the two-dimensional coordinates of the rotated image, and θ is the rotation angle. FIG. 1 shows the direction of jiiiI symbol θ. In the figure,
(a) is the original image, (b) is the rotated image, 0. O indicates the origin of the original image and the rotated image, respectively. In rotation processing, (
The method of calculating addresses pixel by pixel according to formula 1) has the disadvantage that the processing time is long.

本欠点全解消するため、本発明の出願人はすでに、2次
元ブロック転送による回転方式(%願昭57−1020
68 ;画像回転方式)を出願した。この出願に記載さ
れた発明の一つの実施例では、次のような転送制御が実
行される。
In order to completely eliminate this drawback, the applicant of the present invention has already proposed a rotation method using two-dimensional block transfer (% Application No. 57-1020
68; image rotation method). In one embodiment of the invention described in this application, the following transfer control is executed.

1)ブロックの大きさは、縦1/θ、横1/θ画素とす
る。
1) The size of the block is 1/θ pixels vertically and 1/θ pixels horizontally.

2)転送先で、ブロック間に空行を挿入する。空行は、
縦1/θ21IIII素に1行とする。
2) Insert blank lines between blocks at the transfer destination. A blank line is
There is one row per 1/θ21III element vertically.

本方式は高速ではあるが、回転の座標変換が、とン27
)。このため、(1)を用いて1画素ずつアドレス計拝
金行なう回転方法に比べて、回転画像が原画像に比べて
拡大率1+02の相似形で拡大する欠点フウニあった。
Although this method is fast, the rotational coordinate transformation takes a long time.
). For this reason, compared to the rotation method in which address calculation is performed pixel by pixel using method (1), the rotated image has the disadvantage that the rotated image is enlarged in a similar form with an enlargement ratio of 1+02 compared to the original image.

〔発明の]」的〕[of the invention]

本発明の目的は、処理速度を減少すること74く、原因
1像と合同な1]転画1未を得る方式を提供することに
ある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a method for obtaining a transformation 1 which is congruent with a cause 1 image without reducing the processing speed.

〔発明の概要〕[Summary of the invention]

本発明の特長tよ1ζ記の点に必、0っ■)ブロックの
大きさは、縦1./lanθ画素、横1/janθ画累
とする。
Features of the present invention The size of the block must be 1. /lanθ pixels, 1/janθ pixels horizontally.

2)転送先で、ブロック間に空行を代入する。空行け、
縦<襄θ/ (1−cosθ)画素に1行とする。
2) Assign blank lines between blocks at the transfer destination. Go away,
There is one row per pixel where vertical<cos θ/(1-cos θ).

3)転送元で、ブロック間に空刺全代入する。空刺は、
横cosθ/ (1−cosθ)画素に1列とする。
3) At the transfer source, assign all blanks between blocks. The empty stab is
One column is set for horizontal cos θ/(1-cos θ) pixels.

第2図を用いて本発明の詳細な説明する。図中、(C)
は原画像、(d)は回転画像、■〜■は原画像ブロック
、■′−■′は回転画像ブ[7ソク、Aは(イ)Sθ/
 (1−cosθ9画素分の長さ、■3は1 / ta
nθ画素分の長さ、Cは1画素分の長さ、斜線を施(7
た部分は空行、および空刺を示す。回転処理は、(0)
から(d)への画素転送で実現する。ここでは、ブロッ
ク■〜■を、それぞれブロックの′〜■′に転送するっ 本回転方式を表わす座標変換は、式(1)に等しい。
The present invention will be explained in detail using FIG. In the figure, (C)
is the original image, (d) is the rotated image, ■~■ is the original image block, ■'-■' is the rotated image block [7 soku, A is (a) Sθ/
(Length of 1-cosθ9 pixels, ■3 is 1/ta
The length of nθ pixels, C is the length of one pixel, and the diagonal line is added (7
The blank lines indicate blank lines and blank lines. The rotation process is (0)
This is realized by pixel transfer from to (d). Here, the coordinate transformation representing the single rotation method of transferring blocks 1 to 2 to blocks ' to 2', respectively, is equivalent to equation (1).

イ0]となれば、−に記転送における画素の対応は、と
なる。これは、式(1)と同値である。よって、本回転
方式により得られる回転画像は、原画像と合同で、形状
の歪みはない。
0], then the pixel correspondence in the transfer described in - is as follows. This is equivalent to equation (1). Therefore, the rotated image obtained by this rotation method is congruent with the original image and has no shape distortion.

〔発明の実施例J 以下、本発明の一実施例を説明する。まず、画像は、ラ
スク単位に1次元メモリに格納さ!していることを前提
とする。第3図で、画像上一画素位置と、これを格納す
る1次元メモリアドレスの関係を説明する。図中、(e
)は画像、(f)はこれを格納するメモリを模式的に描
いたものである。メモリ(f)は、左から昇順にアドレ
ノングされる。301および302は部分図、303お
よび304は連続メモリ領域を表わす。図は、部分図3
01はメモリ領域303に、部分図302はメモリ領域
304に格納さnていることを示す。
[Embodiment J of the Invention An embodiment of the invention will be described below. First, images are stored in one-dimensional memory in rask units! It is assumed that you have done so. Referring to FIG. 3, the relationship between a pixel position on an image and a one-dimensional memory address for storing it will be explained. In the figure, (e
) is an image, and (f) is a schematic drawing of the memory that stores it. The memory (f) is addressed in ascending order from the left. 301 and 302 represent partial diagrams, and 303 and 304 represent continuous memory areas. The figure is partial diagram 3
01 indicates that the partial diagram 302 is stored in the memory area 303, and the partial diagram 302 is stored in the memory area 304.

本回転方式を実現するための転送アドレスは、前記前提
のもとでは、(1−1)〜(1−9)および(1−1)
〜(2−91のルールで順次発生ずることができる。第
4図で、記号の説明をする。図中、(g)は原画像、(
h)は回転画像、mは原画像横長さ、tは原画像縦長さ
、pは原画像の属する領域の横長さである。このとき転
送元アドレスは、(1−1)  アドレスの初M値を、
原画像左上黒画素に対応するメモリアドレスに設定する
Under the above premise, the transfer addresses for realizing this rotation method are (1-1) to (1-9) and (1-1).
~ (can be generated sequentially according to the rule 2-91. The symbols are explained in Figure 4. In the figure, (g) is the original image, (
h) is the rotated image, m is the horizontal length of the original image, t is the vertical length of the original image, and p is the horizontal length of the area to which the original image belongs. At this time, the transfer source address is (1-1) with the first M value of the address as
Set to the memory address corresponding to the upper left black pixel of the original image.

(1−2)  アドレスを出力1/ 、これを1インク
リメントする。
(1-2) Output the address 1/ and increment it by 1.

(1−3)   (1−21をA=cQSθ/(1−ω
Sθ)回繰返す。
(1-3) (1-21 as A=cQSθ/(1-ω
Repeat Sθ) times.

(1−4)7ドレスk、C二iスキップする。(1-4) Skip 7 dresses k, C2i.

(1−5)  (1−2>−(1−4)を、m (1−
(JJSθ)回繰返す。
(1-5) (1-2>-(1-4), m (1-
Repeat (JJSθ) times.

(1−61−fドレス金、p−Inmスキップる。(1-61-f dress gold, p-Inm skip.

(17)  (1−2)〜(1−6)を、13ニ1/l
anθ回繰返す。
(17) (1-2) to (1-6), 13d 1/l
Repeat anθ times.

(1−8) アドレスを、−1スキツプする。(1-8) Skip the address by -1.

(1−9)   (1−2)〜(1−8)を、t ta
nθ回繰返す。
(1-9) (1-2) to (1-8), t ta
Repeat nθ times.

転送先アドレスは、 (2−1)  アドレスの初期値を、回転画像左上点画
素に対応するメモリアドレスに設定する。
The transfer destination address is as follows: (2-1) Set the initial value of the address to the memory address corresponding to the upper left point pixel of the rotated image.

<2−2)  アドレス金出力し、これを1インクリメ
ントする。
<2-2) Output address money and increment it by 1.

(2−3)   (2−2)を、B = l / ta
nθ回繰返ず。
(2-3) (2-2), B = l / ta
Repeat nθ times.

(2−4)  アドレスを、−pスキップする。(2-4) Skip the address by -p.

(2−5)   (2−2)〜(2−4)金、m ta
nθ回繰返す。
(2-5) (2-2) ~ (2-4) Gold, m ta
Repeat nθ times.

(2−6)  アドレスを、I) (m tanθ+1
)−mスキップする。
(2-6) Address, I) (m tanθ+1
)-m skip.

(2−7)   (2−2)〜(2−6)を、1=cO
3θ/(1−cosθ)回繰返す。
(2-7) (2-2) to (2-6), 1=cO
Repeat 3θ/(1-cosθ) times.

(2−8)  アドレスを、pスギツブする。(2-8) Give the address p.

(z−q)   (2−2)〜(2−8jを、t<1−
ωSθ)/(030回繰返す。
(z-q) (2-2) ~ (2-8j, t<1-
ωSθ)/(Repeat 030 times.

に従って順次発生できる。can occur sequentially according to

ただし、ルール(1−1)〜(1−9)、および(2−
1)〜(2−9)に現れる繰返し数、およびスキップ長
で、整数でないものについては、最も近い整数で近似す
る。
However, rules (1-1) to (1-9) and (2-
1) The repetition numbers and skip lengths appearing in (2-9) that are not integers are approximated by the nearest integer.

第5図に、本発明の回転方式を実行する装置の一例を示
す。図中、点線で囲った部分が、メモリ制御装置503
である。これは、中央処理装置(CPU)501と、メ
モリ502との間に位置し、中央処理装置501とは、
アドレスバス504、データハス505、コントロール
バス506 、!:によって接続される。メモリ制御装
置503は、アドレススイッチ507、アドレス制御部
508、コントロール部509、リード・ライトバッフ
ァ510、リード・ライトスイッチ511とから成る。
FIG. 5 shows an example of an apparatus for implementing the rotation method of the present invention. In the figure, the part surrounded by a dotted line is the memory control device 503.
It is. This is located between a central processing unit (CPU) 501 and a memory 502, and the central processing unit 501 is
Address bus 504, data bus 505, control bus 506,! : Connected by. The memory control device 503 includes an address switch 507, an address control section 508, a control section 509, a read/write buffer 510, and a read/write switch 511.

アドレススイッチ507は、コントロール部509から
送られるモード信号512がモード1(メモリ502を
中央処理装置501の主記憶装置として用いるモード)
を示している時は、アドレスデータとして、アト1/ス
ノくス504から送られるデータを、メモリ502に送
出する。モード信号512がモード2(メモリ502を
、部分図の切出・合成等のために用いるモー ド)を示
り、ている時は、アドレス制御部508から送出される
データ517を、アドレスデータとして、メモリ502
に送出する。
The address switch 507 is configured so that the mode signal 512 sent from the control unit 509 is mode 1 (a mode in which the memory 502 is used as the main storage device of the central processing unit 501).
When , data sent from Atto1/Snox 504 is sent to memory 502 as address data. When the mode signal 512 indicates mode 2 (a mode in which the memory 502 is used for cutting out and combining partial figures), the data 517 sent from the address control unit 508 is used as address data. , memory 502
Send to.

リード・ライトバッファ510は、メモリ502からリ
ードしたデータを格納したり、ライトするデータを格納
するバッファである。これは、2つのステップで、1つ
の動作を完了する。すなわち、第1ステツプで、リード
・ライトノ(ソファ510にデータを取込み、このデー
タを、次の第2ステソゲで、送出する。データを取込む
元、お↓び送出する先を決定するのはリード・ライトス
イッチ511から送られるリード・ライY・ストローブ
信号513である。モード信号512がモード1を示し
ている時には、中央処理装置3の処理安来がリードの時
、リード・ライトストローブ信号513はリード指示に
、ライトの時には、ライト指示になる。この時、リード
動作は、第1ステツプでメモリ502から、リード・ラ
イトバッファ510にデータを取込み、第2ステツプで
、そのデータを、中央処理装置501に送る。ライト動
作は、この逆である。
The read/write buffer 510 is a buffer that stores data read from the memory 502 and data to be written. This completes one operation in two steps. That is, in the first step, data is imported into the read/write node (sofa 510), and this data is sent out in the next second step.The read source determines the source from which the data is taken in, and the destination to which it is sent. - This is the read/write Y strobe signal 513 sent from the write switch 511.When the mode signal 512 indicates mode 1, when the processing Yasugi of the central processing unit 3 is in the read mode, the read/write strobe signal 513 is in the read mode. When the instruction is a write, it becomes a write instruction. At this time, the read operation takes data from the memory 502 to the read/write buffer 510 in the first step, and in the second step, the data is transferred to the central processing unit 501. The write operation is the opposite.

一方、モード信号512がモード2を示している時、リ
ード・ライトストローブ信号513は、リード指示とラ
イト指示とを交互に繰返す。すなわち、第1ステツプで
、メモリ502から、リード・ライトバッファ510に
データを取込み、そのデータを、第2ステツプでは、中
央処理装置501に送るのではなく、再びメモリ502
に送出する。これによって、バス504〜506を経由
せず、メモリ502内のデータ転送が可能になる。
On the other hand, when the mode signal 512 indicates mode 2, the read/write strobe signal 513 alternately repeats read instructions and write instructions. That is, in the first step, data is fetched from the memory 502 into the read/write buffer 510, and in the second step, the data is not sent to the central processing unit 501, but is loaded into the memory 502 again.
Send to. This allows data transfer within memory 502 without going through buses 504-506.

リー ド・ライトスイッチ511は、リード・ライトス
トローブ信号513を発生する部分である。
The read/write switch 511 is a part that generates a read/write strobe signal 513.

上述のごとく、モード1■時は、中央処理装置501の
リード要求、βるいはライト要求(・でしたがって、各
々リード指示、あるいはライト指示を発行する。モード
2の時は、リード指示とライト指示を交互に繰返し発行
する。。
As mentioned above, in mode 1■, the central processing unit 501 issues a read request, β or write request (), respectively, and accordingly issues a read instruction or a write instruction.In mode 2, a read instruction and a write instruction are issued. is issued repeatedly and alternately.

アト;レス制御部508は、モード2の時、転送元、ア
・よび転送先のアトI/スをitiする。その詳細た構
成を第6図に示す。図は、転送元アドレスを計算する部
分のみを示す。転送先−アドレスを計算する部分は、転
送元アドレスを計算する部分と同一の構成音とるので、
誘明を省略する。図中、601〜608は、アドレス発
生ルー=・ル(1()〜(1−9)  (転送先アドレ
スを計算する部分の場合は(2−1)〜(2−9))に
現れるパラメータを収めるレジスタ、609はアドレス
更新量を選択するセレクタ、610はカウンタ611−
614の出力のランチ、611〜614はアドレススイ
ッチのタイミングを検出するカウンタ、615はアドレ
ス更新を実行する加算器、6]−6はアドレス初期値ロ
ードを行なうだめのセレクタ、617はアドレスを保持
するレジスタ、618はアドレス出力のためのバッファ
、619はアドレスの更新と出力のタイミングを制御す
るタイミングコントローラ、620はデータ、アドレス
およびコントロールバス、646はアドレスバスヲ示ス
In mode 2, the address control unit 508 controls the transfer source, address, and destination address. Its detailed configuration is shown in FIG. The figure shows only the part that calculates the transfer source address. The part that calculates the forwarding address has the same constituent sounds as the part that calculates the forwarding address, so
Omit the inducement. In the figure, 601 to 608 are parameters that appear in the address generation rule (1() to (1-9) ((2-1) to (2-9) in the case of the part that calculates the transfer destination address). 609 is a selector for selecting the address update amount, 610 is a counter 611-
614 output lunch, 611 to 614 are counters that detect address switch timing, 615 is an adder that updates the address, 6]-6 is a selector for loading the initial address value, and 617 holds the address. 618 is a register, 618 is a buffer for address output, 619 is a timing controller that controls address update and output timing, 620 is a data, address and control bus, and 646 is an address bus.

第7図は、以上の装置を用いて本回転力式を実現すると
きに、CPU501で実行するプログラムのフローヂャ
ートを示す。図中、701は回転角θからルール(1−
1)〜(1−9)、および(2−1)〜(2−9)に現
れるパラメータを計算するステップ、702はステップ
701で計算したパラメータをメモリ制御装置のレジス
タ601〜608iC4えるステップ、703はメモリ
制御装置に起動をかけるステップ、704はメモリ制御
装置の終了を監視するステップである。ステップ702
で与えるパラメータは、(3−11〜(3−8)、およ
び(4−1)〜(4−8)である。転送元アドレス制御
部に与えるパラメータは、 (3−1)  14o = 1 (3−2)  Hl =Ho+C=1+1 =2(33
)   H2=Ht+([)−m)”p  m+2(3
−4)   Hl  =H2+(1)”I)  m+1
(3−5)   W、=A=CO3θ/ (1−、−c
osθ)(3−6)   W+  =m (1−cos
θ )(37)  W2 = B = 1 /lanθ
(3−8)   W3  ”ttanθ転送先アドレス
制御部に与えるパラメータは、(−4−1)  Ho’
=1 (42)  H1’ =Ho’ + (p)=l−p(
43)  H2’=i(f+(p(mtanθ+1)−
m)=ml)tanθ−m(4−4)  、H3’=H
2’+ p−=mptaoθ十p−m(4−5)  W
o−B = 1 / tanθ(4−6)  W1’=
mtanθ (4−7)  W2′=A=CO3θ/ (1−cos
θ)(4−8)  W3′= 1 (1−+;O3θ)
/CoSθである。
FIG. 7 shows a flowchart of a program executed by the CPU 501 when the present rotary force type is realized using the above-described apparatus. In the figure, 701 is a rule (1-
1) A step of calculating the parameters appearing in (1-9) and (2-1) to (2-9), 702 is a step of storing the parameters calculated in step 701 in the registers 601 to 608iC4 of the memory control device, 703 704 is a step of starting up the memory control device, and 704 is a step of monitoring termination of the memory control device. Step 702
The parameters given in are (3-11 to (3-8) and (4-1) to (4-8). The parameters given to the transfer source address control section are (3-1) 14o = 1 ( 3-2) Hl = Ho + C = 1 + 1 = 2 (33
) H2=Ht+([)-m)”p m+2(3
-4) Hl = H2+(1)”I) m+1
(3-5) W, = A = CO3θ/ (1-, -c
osθ) (3-6) W+ =m (1-cos
θ ) (37) W2 = B = 1 /lanθ
(3-8) W3 "The parameter given to the ttanθ transfer destination address control section is (-4-1) Ho'
=1 (42) H1'=Ho' + (p)=l-p(
43) H2'=i(f+(p(mtanθ+1)−
m)=ml)tanθ-m(4-4), H3'=H
2'+ p-=mptaoθ ten p-m (4-5) W
o-B = 1/tanθ(4-6) W1'=
mtanθ (4-7) W2'=A=CO3θ/ (1-cos
θ) (4-8) W3'= 1 (1-+; O3θ)
/CoSθ.

ただし、パラメータ(3−1)〜(3−8)、および(
4−1)〜(4−8)で整数でないものについては、最
も近い整数で近似する。
However, parameters (3-1) to (3-8) and (
4-1) to (4-8) that are not integers are approximated by the nearest integer.

次に、転送元アドレス制御部の動作を説明する本動作は
、ステップ703とステップ704の間で行なわれる。
Next, the present operation for explaining the operation of the transfer source address control section is performed between step 703 and step 704.

アドレス制御部508は、モード2の時、転送元および
転送先アドレスを父互に発生して、データ転送を行なう
。転送先アドレス制御部の動作は、転送元アドレス制御
部の動作と同様であるので、説明を省略する。まず、バ
ス620を通じて、パラメータ(3−1)〜(3−8ル
ジスタ601〜608に、アドレス初期値−1の値をバ
ス648、セレクタ616を経由してレジスタ617に
送る。セレクタ616の入力643および648は信号
641で選択する。次にメモリ制御装置起動を、コント
ロールバス506を通じてコントロール部509にかけ
ると、信号514を通じてタイミングコントローラ61
9に起動がかかる。タイミングコントローラ619は、
信号636〜640を順次発生する。カウンタ611〜
614は、初期状態でクリアされているが、信号636
により、カウンタ611が1カウントアツプする。この
結果、カウンタ611の内容は1となる。レジスタ60
5の内容Aと異なる時には、信号632は発生しない。
In mode 2, the address control unit 508 mutually generates transfer source and transfer destination addresses to perform data transfer. The operation of the transfer destination address control section is similar to the operation of the transfer source address control section, so a description thereof will be omitted. First, the value of address initial value - 1 is sent to the parameters (3-1) to (3-8 registers 601 to 608 via the bus 620 and to the register 617 via the bus 648 and the selector 616. The input 643 of the selector 616 and 648 are selected by the signal 641.Next, when the memory controller activation is applied to the control section 509 through the control bus 506, the timing controller 61
It takes 9 to start. The timing controller 619 is
Signals 636-640 are generated sequentially. Counter 611~
614 is cleared in the initial state, but the signal 636
As a result, the counter 611 counts up by one. As a result, the content of the counter 611 becomes 1. register 60
5, the signal 632 is not generated.

従って、この時点で信号632〜634の値は0である
。信号637により、信号632〜634がラッチ61
0にラッチされ、それぞれ信号629〜631に出力さ
れる。セレクタ609は、信号629−631の値のm
(0,0,0)、(1,0,0)、(1,1゜0)、(
1,1,1)に応じて、それぞれVジスタロ01〜60
4の内容を、バス621〜624を通じて選択する機能
を持つ。現在は、信号632〜634はすべて0、すな
わち1汀号629・〜631はすべて0でおるので、信
号638により、レジスタ601の内容1がセレクタ6
09の出力として、バス642に送出される。加算器6
15は、レジスタ617の内容、アドレス初期値−1の
値と、バス642のデータ、1と?加算し、結果をバス
643に送出する。信号641により、セレクタ616
の入力をバス643に切替え、結果をバス644に送出
する。信号639により、バス644のデータをレジス
タ617に取り込み、バス645にデータを出力する。
Therefore, the values of signals 632-634 are 0 at this point. Signal 637 causes signals 632 to 634 to latch 61
They are latched to 0 and output as signals 629 to 631, respectively. Selector 609 selects m of the values of signals 629-631.
(0,0,0), (1,0,0), (1,1°0), (
1, 1, 1), respectively V distalo 01 to 60
4 through buses 621 to 624. Currently, the signals 632 to 634 are all 0, that is, the 1st numbers 629 to 631 are all 0, so the signal 638 changes the content 1 of the register 601 to the selector 6.
09 is sent to bus 642. Adder 6
15 is the contents of the register 617, the value of the initial address value - 1, and the data of the bus 642, 1? Add and send the result to bus 643. Signal 641 causes selector 616
The input is switched to bus 643 and the result is sent to bus 644. In response to a signal 639, the data on the bus 644 is taken into the register 617, and the data is output on the bus 645.

信号640により、バス645のデータをバッファ61
8に取υ込み、アドレスバス646に送出する。以下、
同様にして、カウンタ611は、内容がレジスタ605
の内容Aと等しくなるまでカウントアツプし、アドレス
バス646に出力されるアドレスデータは、1ずつイン
クリメントされた値となる。カウンタ611の内容がレ
ジスタ605の内容Aと等しくなると、信号632が発
生し、カウンタ611の内容をクリアすると共に、カウ
ンタ612が1カウントアツプする。この結果、セレク
タ609ではレジスタ602の内容2が選択され、アド
レスバス646に出力されるデータは2インクリメント
された値となる。以下同様にして、カウンタ614の内
容が、レジスタ608の内容L [anθと等しくなる
まで、動作を続ける。カウンタ614の内容が、レジス
タ608の内容と等しくなると、最後のアドレスデータ
を送出した後、タイミングコントローラ619が停止し
、終了信号516を出力する。信号516は、コントロ
ール部509に人力され、ステップ704で終了判定に
用いられる。
Signal 640 causes data on bus 645 to be transferred to buffer 61.
8 and sends it to the address bus 646. below,
Similarly, the counter 611 has the contents of the register 605.
The address data is counted up until it becomes equal to the content A, and the address data output to the address bus 646 becomes a value incremented by one. When the contents of the counter 611 become equal to the contents A of the register 605, a signal 632 is generated, clearing the contents of the counter 611, and increasing the counter 612 by one. As a result, the selector 609 selects the content 2 of the register 602, and the data output to the address bus 646 becomes a value incremented by two. The operation continues in the same manner until the contents of the counter 614 become equal to the contents L[anθ of the register 608. When the contents of the counter 614 become equal to the contents of the register 608, the timing controller 619 stops and outputs the end signal 516 after transmitting the last address data. The signal 516 is input manually to the control unit 509 and is used in step 704 to determine the end.

本実施例により、高々パラメータ(3−1)〜(3−8
)、および(4−1)〜(4−8)の整数化による誤差
を除いて、原画像と合同な回転画像を得ることができる
。処理速度は、通常のD M A (Di rec t
MThmorY Access )転送と同程度である
According to this embodiment, at most parameters (3-1) to (3-8
), and (4-1) to (4-8), it is possible to obtain a rotated image that is congruent with the original image. The processing speed is comparable to that of normal DMA (Direct
MThmorYAccess) transfer.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、回転画像を、高速かつ高画質で得るこ
とができる。すなわち処理速度は、通常のD M A 
(Di rect Memory A、ccess)転
送と同程度であり、回転画像は、原画像と合同となる。
According to the present invention, a rotated image can be obtained at high speed and with high image quality. In other words, the processing speed is the same as that of normal DMA.
(Direct Memory A, access) This is equivalent to transfer, and the rotated image is congruent with the original image.

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

第1図は、座標軸と回転角の方向の定義図、第2図は、
本発明回転方式の原理図、第3図は、画像とメモリの対
応例を示す図、第4図は、パラメータに用いる記号の定
義図、第5図は、装置の全体構成図、第6図は、アドレ
ス制御部の構成図、第7図は、本発明の処理フロー図で
ある。 (a) 、 (c) 、 (g>−・・原画像、’ (
b) 、 (d) 、 (b)−・回転画像、(e)・
・・画像、(f)・・・メモIJ、501・・・中央処
理装置(CP[J)、502・・・メモリ、503・・
・メモリ制御装置、504・・・アドレスバス、505
・・・データバス、506・・・コントロールバス、5
07・・・アドレススイッチ、508・・・アドレス制
御L  509・・・コントロール部、510・・・リ
ード・ライトバッファ、511・・・リード・ライトス
イッチ、601〜608・−・レジスタ、609・・・
セレクタ、610・・・ラッチ、611〜614・・・
カウンタ、615・・・加算器、616・・・セレクタ
、617・・・レジスタ、618・・・バッファ、61
9・・・タイミングコントローラ、62G・・・アドレ
ス・データ・コントロールバス、646・・・アト片 
1 図 y 3 図 (e) η 4− 図 C3)(h) 循 5; 図 398− 第 7 区 カ
Figure 1 is a definition diagram of the coordinate axes and rotation angle directions, and Figure 2 is:
A diagram of the principle of the rotation method of the present invention, FIG. 3 is a diagram showing an example of correspondence between images and memory, FIG. 4 is a definition diagram of symbols used for parameters, FIG. 5 is an overall configuration diagram of the device, and FIG. 6 7 is a block diagram of the address control section, and FIG. 7 is a processing flow diagram of the present invention. (a), (c), (g>--original image,' (
b), (d), (b)-・Rotated image, (e)・
...Image, (f)...Memo IJ, 501...Central processing unit (CP[J), 502...Memory, 503...
-Memory control device, 504...address bus, 505
...Data bus, 506...Control bus, 5
07...Address switch, 508...Address control L 509...Control unit, 510...Read/write buffer, 511...Read/write switch, 601-608...Register, 609...・
Selector, 610...Latch, 611-614...
Counter, 615...Adder, 616...Selector, 617...Register, 618...Buffer, 61
9...Timing controller, 62G...Address/data/control bus, 646...Atto piece
1 Figure y 3 Figure (e) η 4- Figure C3) (h) Circulation 5; Figure 398- 7th Ward Ka

Claims (1)

【特許請求の範囲】[Claims] メモリ上に格納した原画像から、任意の角度回転した回
転画像を得る方式において、上記メモリ上の画像情報音
読み出し、この情報を再びメモリに格納する第1の手段
と、上記読み出しアドレスと格納アドレスを、リピート
とアドレススキップの入れ子で表現する規則によって交
互に順次発生する第2の手段と、上記リピート数とアド
レススキップ長を、回転角から計算する第3の手段とを
備えだことを特徴とする画像回転方式。
In a method for obtaining a rotated image rotated by an arbitrary angle from an original image stored in a memory, a first means for reading image information and sound from the memory and storing this information in the memory again, and the read address and the storage address are provided. and a third means for calculating the number of repeats and the address skip length from the rotation angle. Image rotation method.
JP57176151A 1982-10-08 1982-10-08 Picture rotating system Pending JPS5966764A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57176151A JPS5966764A (en) 1982-10-08 1982-10-08 Picture rotating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57176151A JPS5966764A (en) 1982-10-08 1982-10-08 Picture rotating system

Publications (1)

Publication Number Publication Date
JPS5966764A true JPS5966764A (en) 1984-04-16

Family

ID=16008549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57176151A Pending JPS5966764A (en) 1982-10-08 1982-10-08 Picture rotating system

Country Status (1)

Country Link
JP (1) JPS5966764A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019064205A (en) * 2017-10-03 2019-04-25 富士通コンポーネント株式会社 Character data processing device and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019064205A (en) * 2017-10-03 2019-04-25 富士通コンポーネント株式会社 Character data processing device and program

Similar Documents

Publication Publication Date Title
JP3580789B2 (en) Data communication system and method, computer program, recording medium
JPS5966764A (en) Picture rotating system
JP3793062B2 (en) Data processing device with built-in memory
JPH05249953A (en) Image display device
JPH07327116A (en) Image input output controller
JP3154741B2 (en) Image processing apparatus and system
JP2004356673A (en) Motion vector detecting method and image processing apparatus using the method
JPS5971564A (en) Picture data memory control system
TW449729B (en) Effective test ahead method and structure for Z buffer in 3D graphics
JP2005190496A (en) Data transfer method and device
JP3899977B2 (en) Drawing apparatus, method and program
JPH07129460A (en) Method and device for processing image
JPS599572A (en) Controlling method of two-dimensional image memory
JPH0375881A (en) Picture data processing system
JP2642087B2 (en) Data transfer processing mechanism between main storage devices
JPH06208539A (en) High-speed data transfer system
JPH07234946A (en) Method and device for plotting polygon
JP2002140719A (en) Graphics processor
JPS5966765A (en) Picture rotating system
JPH0290376A (en) Arithmetic processing system for picture data
JPH02150973A (en) Graphic display device
WO2001006461A1 (en) Drawing method and drawing device
JPH0336676A (en) Pixel plotting device
JPS63156455A (en) Method for constituting hardware of communication terminal equipment for multimedia
JPS62111337A (en) Memory control circuit