JPS6097473A - Method and apparatus for rotation processing of picture - Google Patents

Method and apparatus for rotation processing of picture

Info

Publication number
JPS6097473A
JPS6097473A JP58204826A JP20482683A JPS6097473A JP S6097473 A JPS6097473 A JP S6097473A JP 58204826 A JP58204826 A JP 58204826A JP 20482683 A JP20482683 A JP 20482683A JP S6097473 A JPS6097473 A JP S6097473A
Authority
JP
Japan
Prior art keywords
image
picture
oblique axis
processing
making
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP58204826A
Other languages
Japanese (ja)
Other versions
JPH0481230B2 (en
Inventor
Kuniaki Tabata
邦晃 田畑
Haruo Takeda
晴夫 武田
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 JP58204826A priority Critical patent/JPS6097473A/en
Priority to FR848407947A priority patent/FR2550360B1/en
Priority to DE3419063A priority patent/DE3419063A1/en
Priority to US06/613,189 priority patent/US4618991A/en
Publication of JPS6097473A publication Critical patent/JPS6097473A/en
Publication of JPH0481230B2 publication Critical patent/JPH0481230B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Storing Facsimile Image Data (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To obtain a rotation picture at high speed by making oblique axis conversion of original picture data of a picture, and then making processing of enlarging and reducing, and further making oblique axis conversion. CONSTITUTION:A digital picture is stored in a picture memory 40, and oblique axis conversion T1 is made on picture data by a microprocessor 10. Original picture data in a rectangular area of N words X M rows on a memory are transferred word by word in order of number, and the oblique axis is converted by address of destination of transfer. Data generated by this conversion are enlarged and reduced by an enlarging and reducing device 30 basing on converted row and column T2. Processing is made making magnification is horizontal direction alpha=costheta and making magnification of vertical direction beta=sectheta. A desired rotation picture is obtained by making oblique axis conversion T3 on enlarged and reduced picture data.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は画像の回転処理方式に係シ、特に、画1#!ヲ
含む文書の編集や印S照合等に好適な高速処理手段を提
供するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to an image rotation processing method, in particular, image 1#! The present invention provides high-speed processing means suitable for editing documents containing documents, verifying stamps, etc.

〔発明の背景〕[Background of the invention]

正方格子状の画素の集合として定義されたディジタル画
隊全角度θラジアンだけ回転する処理について考察する
。画像回転はアフィン変換の一種であり、次式で定義さ
れる。
Let us consider a process in which a digital image, defined as a set of pixels in a square grid, is rotated by a total angle of θ radians. Image rotation is a type of affine transformation and is defined by the following equation.

転画1永の画素座標である。These are the pixel coordinates of the first transfer.

従来の画像回転方式(例えば、■特開昭57−1170
61、■4子通信学会研死会費料IE78−12、■C
omputer 、 IEEE+ p、 p、 24〜
26゜Jun61983 など記載の方式)は、一般に
式(1)の座像変換を画素単位に繰返すものであシ、こ
のため、高速処理が困難であった。一方、出願人等は、
貢速化?L目的に、いくつかの隣接lI!j素を一括転
送する画像回転方式(特願昭57−176151)を発
明している。この方式は、任意角の回転角が可能である
が、処理時+iノが回転角に依存し、(2n−1)×π
/4ラジアンの回転(1≦n≦4)において、処理時間
が最大になるという欠点があった。この問題を解決する
第二の画像回転方式(特願昭58−89119)を出願
人等は発明しているが、回転角が(2n−1)xπ/4
ラジアンの場合を取扱っていた。
Conventional image rotation methods (for example,
61, ■4 Children Communication Society research and death fee IE78-12, ■C
computer, IEEE+ p, p, 24~
26゜Jun 61983 etc.) generally repeats the locus image transformation of equation (1) pixel by pixel, which makes high-speed processing difficult. On the other hand, the applicant, etc.
Faster tribute? For L objective, some adjacent lI! He invented an image rotation method (Japanese Patent Application No. 57-176151) that transfers all j elements at once. This method allows arbitrary rotation angles, but during processing +i depends on the rotation angle, and (2n-1)×π
There was a drawback that the processing time was maximum at a rotation of /4 radian (1≦n≦4). The applicant has invented a second image rotation method (Japanese Patent Application No. 58-89119) to solve this problem, but the rotation angle is (2n-1)xπ/4
I was dealing with the case of radians.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、任意角度θ(−π≦θ≦π)の両縁回
転を高速に実現する手段を提供することにある。
An object of the present invention is to provide a means for realizing high-speed rotation of both edges at an arbitrary angle θ (-π≦θ≦π).

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

とおけば、武α)は次のように変形できる。 Then, Wu α) can be transformed as follows.

ここ忙、行列Tl + ’I”11は斜交軸変換 T2
は拡大縮小の、それぞれ、変換行列を表わす。したがっ
て、第1図に示すように、原画像を斜交軸変換(T+)
、拡大縮小(T z )、斜交軸変換(Ts)の順で処
理することによって、角度θの回転画像が得られる。こ
のうち、斜交軸変換(T+およびTs )は処理が単純
であり、出願人等が開発したブロック転送の手法(情報
処理学会論文誌:2次元ブロック転送によりメモリ・ア
ドレス制御方式の提案と文書画像処理への応用:昭和5
8手7月)などによシ高速に実行できる。また、拡大縮
小(T2)については、出願人の発明による高速処理方
式(%願昭57〜71237)を利用できる。以上のよ
うに、本発明は、斜交1M変換と拡大縮小の組合せによ
って、画鐵の回転処理を高速化する点に特徴がある。
Busy here, matrix Tl + 'I'11 is oblique axis transformation T2
represent the transformation matrices of scaling, respectively. Therefore, as shown in Figure 1, the original image is subjected to oblique axis transformation (T+).
, scaling (T z ), and oblique axis transformation (Ts), a rotated image at an angle θ is obtained. Among these, the oblique axis transformation (T+ and Ts) is simple to process, and the block transfer method developed by the applicant and others (Information Processing Society of Japan Journal: Proposal of a memory address control method using two-dimensional block transfer and document Application to image processing: Showa 5
8-move-July) can be executed at high speed. Furthermore, for scaling (T2), a high-speed processing method invented by the applicant (% Application No. 57-71237) can be used. As described above, the present invention is characterized in that it speeds up the rotation process of the picture iron by combining oblique 1M conversion and scaling.

ただし、θ→土π/2の時、1tanθ1→■。However, when θ→Sat π/2, 1tan θ1→■.

18印θ1→(3)となるので、式(2)における行列
T2゜1゛3が定義不能となる。また、1tanθ1と
1票θ1の増加とともに、斜交軸変換(Ts)ならびに
拡大縮小(T2)金高イi?度に実現することが困難に
なる。
Since the 18 mark θ1→(3), the matrix T2゜1゛3 in equation (2) becomes undefinable. In addition, as 1tan θ1 and 1 vote θ1 increase, oblique axis transformation (Ts) and scaling (T2) gold height i? It becomes increasingly difficult to achieve this.

この問題は、回1伝月00ψ巳囲に応じて次のように斜
交軸lA″、換と拡大+イri小の組合せを選択するこ
とによって解決できる。
This problem can be solved by selecting the following combination of oblique axis lA'', conversion and enlargement + iris, depending on the rotation time 00ψ range.

a)−π/4≦θくπ/4.3π/4≦0〈π。a) −π/4≦θ×π/4.3π/4≦0<π.

−π≦θく一3π/4の場合 この時、変負行列の各要素は次の値域葡もつ。When −π≦θ×3π/4 At this time, each element of the variable matrix has the following range.

0≦巨anθ1≦1 、 1 /y’251 CO8θ
1≦1.1≦Hecθl ≦V’2 。
0≦Giant anθ1≦1, 1/y'251 CO8θ
1≦1.1≦Hecθl≦V'2.

b)π/4≦、θく3π/4.−3π/4≦θく−π/
4の場合 この時、)コ換?−J゛列の各要素は次のIff域をも
つ。
b) π/4≦, θ×3π/4. −3π/4≦θku−π/
In the case of 4, at this time, ) exchange? - Each element of the J' column has the following If area.

0≦1飢θI ≦1 + 1 /V7S l sinθ
1≦1,1≦l cosecθ1≦v’z 既に周知の通シ、1/v/T−V/T程度の倍率で拡大
縮小した商品7′jj而慮tl−得る技術は確立されて
いる(たとえば第13回画1家工孕コンフアレンス、p
、183〜186、昭4057年12月)ので、上記の
ように、回転角θの、(α囲に応じて、変換行列の組合
せを選択することにより、両頁低下の問題を解決できる
0≦1 starvation θI ≦1 + 1 /V7S l sinθ
1≦1, 1≦l cosec θ1≦v'z It is already well known that the technology to obtain a product 7'jj, which is scaled at a magnification of about 1/v/T-V/T, has been established ( For example, the 13th Painter Ichika Kouken Conference, p.
, 183-186, December 1982), the problem of lowering both pages can be solved by selecting a combination of transformation matrices according to the rotation angle θ (α).

〔発明の実施例〕[Embodiments of the invention]

以下、実施例によシ本発明の詳細な説明する。 Hereinafter, the present invention will be explained in detail by way of examples.

第2図は、本発明を実現するハードウェア構成の一例を
示す。図中、10はマイクロ・プロセッサ、20は主メ
モリ、30は拡大縮小装置、40は画像メモリである。
FIG. 2 shows an example of a hardware configuration for realizing the present invention. In the figure, 10 is a microprocessor, 20 is a main memory, 30 is a scaling device, and 40 is an image memory.

ここで対象とするディジタル画1家は、説明の梗宜上、
2Ili!画像(即ち、白または黒の、いずれかの濃淡
レベルを待つ画素の集g )と仮定するが、本発明は多
値画1象(即ち、多階調の濃淡レベルを持つ画素の集合
)にも適用できる。
For the sake of explanation, the one digital painter targeted here is
2Ili! It is assumed that the image is an image (i.e., a collection of pixels g waiting for either white or black gray level), but the present invention deals with one multilevel image (i.e., a collection of pixels with multiple gray levels). can also be applied.

画、オメモリは、第3図に示すように、画素単位の2次
元アドレスを持ち、縦方向または4貴方向に埋続したW
ピント(1ワード)の画1家データ’lfr −回の挽
出・挿込命令でアクセスする。図中、ム印は1ワードの
先頭ピントの位置を示す。アクセス・モードをパラメー
タtで指定し、t=oの時に横方向; t =1の時に
縦方向のWビントラアクセスする。このような、2次元
アクセスが可能な画像メモリの実現方法は艮く知られて
おシ、他の文献(例えば、IEEg、 Trans o
n computersXc−27、A、 2.1)p
、 113〜125. Feb、 1978)でも詳し
いので説明を省略する。
As shown in Figure 3, the image memory has a two-dimensional address in pixel units, and the W
Focus (1 word) stroke data 'lfr - Accessed with the extraction/insertion command. In the figure, the mark indicates the starting focus position of one word. The access mode is specified by the parameter t, and when t=o, the horizontal direction is accessed; when t=1, the vertical direction W bintra access is performed. A method for realizing such a two-dimensionally accessible image memory is well known and is described in other literature (for example, IEEg, Transo
n computersXc-27, A, 2.1)p
, 113-125. Feb., 1978) is also detailed, so the explanation will be omitted.

マイクロ・プロセッサ1oが各装置の動作を制御し、こ
れに要するプログラムとデータを主メモリ20に格納し
ている。マイクロ・プロセッサ10による処理手順は第
4図に示す通シである。
A microprocessor 1o controls the operation of each device, and stores programs and data necessary for this in a main memory 20. The processing procedure performed by the microprocessor 10 is shown in FIG.

変換行列が、 表わされる場合(即ち、−π/4≦θくπ/4゜3π/
4≦θ〈π、−π≦θく一3π/4 の場合)を−レリ
として、その処理内容を以下に説明する(第5図)。
If the transformation matrix is expressed (i.e. -π/4≦θ)π/4°3π/
The processing contents will be explained below, assuming that 4≦θ〈π, -π≦θ〉3π/4) is −lery (FIG. 5).

(1)処理100について 画像メモリ上の原画像データに対して、斜交軸変換TI
を施す。その詳細な手順は第5図の通シでちる。処理1
00における斜交軸変換の内dt第6図に示す。第6図
に示すように、両縁メモリ上のNワード(横巾)XM行
(縦長)の矩形領域内の原画1象データを、図の番号順
に1ワード(即ち、Wピント)ずつ転送するものである
。転送元(即ち、原画像データ)の先頭アドレスt:(
X+。
(1) Regarding process 100, perform oblique axis transformation TI on the original image data on the image memory.
administer. The detailed procedure is as shown in FIG. Processing 1
dt of the oblique axis transformation at 00 is shown in FIG. As shown in Figure 6, the original image data in a rectangular area of N words (width) and XM rows (height) on both edge memories is transferred one word (i.e., W focus) in the numerical order of the figure. It is something. Start address t of the transfer source (i.e. original image data): (
X+.

とする。shall be.

a)処理110: 画1家メモリのアクセス・モードを示すパラメータtを
0に設定することによシ、横方向に連続したWピントの
アクセスを指定する。まだ、転送元のXアドレス(Xl
)とXアドレス(y+)、転送先のXアドレス(xl)
とXアドレス(V2)、行カウンタ(LC)を初期化す
る。即ち、X(’−XI。
a) Process 110: Specify continuous W focus access in the horizontal direction by setting the parameter t indicating the access mode of the image memory to 0. The transfer source's X address (Xl
) and X address (y+), forwarding destination X address (xl)
Initializes the X address (V2) and the line counter (LC). That is, X('-XI.

Y2.LC←0とする。Y2. Let LC←0.

b)処理120: 行カウンタ(LC)t−インクリメントし、ワード・カ
ウンタ(WC)を初期化する。即ち、Lc←LC+1.
WC←0とする。
b) Process 120: Increment the line counter (LC) t- and initialize the word counter (WC). That is, Lc←LC+1.
Let WC←0.

C)処理130: ワード・カウンタ(WC)をインクリメントする。即ち
、WC4−WC+1とする。ココテ、WCは、画像デー
タの当該行における転送ワード数を示すカウンタである
C) Process 130: Increment the word counter (WC). That is, WC4-WC+1. Kokote and WC are counters that indicate the number of transferred words in the relevant row of image data.

d)処理140: 画1象メモリのアドレス(xl 、y+)からアドレス
(Xg + )’2)に1ワードの画像データを転送す
る。ただし、画像メモリのアドレスは、当該ワードの先
頭ピント(第3図のム印)の位置で示す。
d) Process 140: Transfer one word of image data from address (xl, y+) to address (Xg + )'2) in the image memory. However, the address of the image memory is indicated by the position of the first focus (marked with a square in FIG. 3) of the word.

また、アクセス・モードIdt=0−’Cある。Also, there is an access mode Idt=0-'C.

e)処理150: ワード・カウンタ(WC)がNに等しい時、画像データ
の当該行−ヒの全ワードを転送したことになるので、こ
の場合、処理160に進む。wcがN未満の部分は、処
理170に進み、当該行に関するデータ転送を継続する
e) Process 150: When the word counter (WC) is equal to N, it means that all words of the corresponding row-hi of the image data have been transferred, so in this case proceed to process 160. For parts where wc is less than N, the process proceeds to step 170 to continue data transfer regarding the row.

f)処理170: 転送元のXアドレス(x+)、m送先のXアドレス(x
t)を仄のように更新する。即ち、XI←Xz +W、
X2←x2+Wとする。更新後、処理130に戻る。
f) Process 170: Transfer source X address (x+), m destination X address (x
t) is updated as shown below. That is, XI←Xz +W,
Let X2←x2+W. After the update, the process returns to step 130.

g)処理160: 行カウンタ(LC)がMに等しい時、NワードXM行の
画1象データを全て転送したことになるので、この場合
、処理100を終了する。LCがM未満の場合は、処理
180に進む。
g) Process 160: When the line counter (LC) is equal to M, it means that all image data of N words and XM rows have been transferred, so in this case, process 100 is ended. If LC is less than M, proceed to process 180.

h)処理180: 転送元・転送先のXアドレスおよびXアドレスを次のよ
うに更新する。即ち、X1←x、、y。
h) Process 180: Update the transfer source and transfer destination X addresses and X addresses as follows. That is, X1←x,,y.

← Y+ it Δ xl ← Δ Xz+tan θ
 l X2 °X2+〔ΔXzl)、Yz←y2←1と
する。ただし、d己号〔〕は、ガウス記号を表わす。
← Y+ it Δ xl ← Δ Xz+tan θ
l X2 °X2+[ΔXzl), Yz←y2←1. However, the dself symbol [ ] represents a Gaussian symbol.

(2)処理200について 処理100によって生成した画像データを変換行列T2
にもとづいて拡大縮小する。即ち、横方向(X軸方向)
の倍4をα=cosθとし、縦方向(Y軸方向)の倍率
をβ−就θとする。拡大縮小処理は、拡大縮小装+t1
30によって行ない、処理結果を画像メモリ40に格納
する。拡大縮小装置d30には、出願人の発明による高
速拡大縮小処理方式(特願昭57−71237)を利用
できる。特にこの方式は、倍率一種数定数/整数変数の
関係式を満たす場合に高速である。いま、上式の整数定
数が32の時、回転角がθ=π/4の場合金−例として
考えると、倍率α、βを、それぞれ、α−1/v’2?
32/45#0.711 、β=V丁−32/23!=
i1.391のように近似することになる。
(2) Regarding process 200, convert the image data generated by process 100 into a transformation matrix T2
Scale based on. That is, the horizontal direction (X-axis direction)
Let 4 times 4 be α=cos θ, and let the magnification in the vertical direction (Y-axis direction) be β−cos θ. Enlargement/reduction processing is done by enlarging/reducing device +t1
30, and the processing results are stored in the image memory 40. For the enlarging/reducing device d30, a high-speed enlarging/reducing processing method invented by the applicant (Japanese Patent Application No. 71237/1982) can be used. In particular, this method is high-speed when the relational expression of multiplication factor constant/integer variable is satisfied. Now, when the integer constant in the above equation is 32 and the rotation angle is θ = π/4, consider as an example, the magnifications α and β are α-1/v'2?
32/45#0.711, β=V-d-32/23! =
This will be approximated as i1.391.

この列では、近似による倍率の誤差は1〜2チ程度であ
シ、実用上の許容範囲内にあると考えられる。
In this column, the error in magnification due to approximation is about 1 to 2 inches, which is considered to be within a practical tolerance range.

(3)処理300について 処理200の結果、拡大縮小された画像データに対して
、斜交軸λ換T3を施す。その手順を第7図に示す。処
理300における斜交軸変換の内容は、第8図の通シで
ある。第8図に示すように、画像メモリ上のQ列(横巾
)xPワード(縦長)の矩形・頑域内の画1象データを
、同図の番号順に1ワード(即ち、Wビット)ずつ転送
するものである。ただし、処理200による拡大縮小後
の画像データを含むように、Q列×Pワードの矩形領域
を定める。また、画1象メモリのアクセスは、縦方向に
連続したWビットを1ワードとして行なう。
(3) Processing 300 As a result of processing 200, the image data that has been scaled up or down is subjected to oblique axis λ conversion T3. The procedure is shown in FIG. The contents of the oblique axis transformation in process 300 are as shown in FIG. As shown in Figure 8, image data within a rectangular/robust area of Q columns (width) x P words (height) on the image memory is transferred word by word (i.e., W bits) in the numerical order of the figure. It is something to do. However, a rectangular area of Q columns×P words is determined so as to include the image data after being enlarged or reduced by the process 200. Furthermore, access to the image memory is performed using W bits that are continuous in the vertical direction as one word.

画1象メモリ上の転送元の先頭アドレスt=(X+−Y
+)とし、転送先の先頭アドレスk (X2 、 Y2
 )とする。
The first address of the transfer source on the image memory t=(X+-Y
+), and the first address of the transfer destination k (X2, Y2
).

a)処理310; 画1象メモリのアクセス・モードを示すノくラメータt
を1に設層することによシ、縦方向に連続したWピント
のアクセスを指定する。また、転送元のXアドレス(X
+)とXアドレス(yt)、?送先のXアドレス(x2
)とXアドレス(y2)、列カウンタ(CC)等を初期
化する。即ち、xl←マ、* Yt’−Y1+ x2”
E”’21 Yz”Zt + CC←O1Δy2←0 
とする。
a) Process 310; Parameter t indicating the access mode of the image memory
By setting 1 to 1, access of continuous W focus in the vertical direction is specified. In addition, the X address of the transfer source (X
+) and X address (yt), ? Destination X address (x2
), the X address (y2), the column counter (CC), etc. are initialized. That is, xl←ma, *Yt'-Y1+x2"
E"'21 Yz"Zt + CC←O1Δy2←0
shall be.

b) 処理320: 列カウンタ(CC)’5−インクリメントし、ワード・
カウンタ(WC)を初期化する。即ち、CC←CC+1
.WC←0とする。
b) Operation 320: Column counter (CC) '5 - increment and word
Initialize the counter (WC). That is, CC←CC+1
.. Let WC←0.

C) 処理330 : ワード・カウンタ(WC)t−インクリメントする。即
ち、WC4−VVC+1とする。ここで、WCは、画1
3J!データの当該列における転送ワード数金示すカウ
ンタである。
C) Process 330: Increment word counter (WC) t-. That is, WC4-VVC+1. Here, WC is picture 1
3J! This is a counter indicating the number of transferred words in the relevant column of data.

d)処4340: 画像メモリ上のアドレス(X+ * )’I )からア
ドレス(X21 Yz )に1ワードの画像データを転
送する。ただし、画1象メモリのアドレスは、当該ワー
ドの先頭ビン) (83図のム印)の位置で示す。また
、°アクセス・モードはt=1である。
d) Process 4340: Transfer one word of image data from address (X+*)'I) to address (X21 Yz) on the image memory. However, the address of the image memory is indicated by the position of the first bin of the word (marked with a square in Figure 83). Also, the access mode is t=1.

e)処理350: ワード・カウンタtwc>がPに等しい時、画諌データ
の当該列上の全ワードを転送したことになるので、この
場合、処理360に進む。WCが2未満の場合は、処理
370に進み、当該列に関するデータ転送を継続する。
e) Process 350: When the word counter twc> is equal to P, it means that all words on the corresponding column of stroke data have been transferred, so in this case, proceed to process 360. If WC is less than 2, the process advances to step 370 and continues data transfer regarding the column.

f) 処理37〇二 転送元のXアドレス(yI)、転送先のXアドレス(y
2)を次のように更新する。即ち、yl←y 1 + 
W * Y z←Yz+Wとする。更新後、処理330
に戻る。
f) Process 3702 Transfer source X address (yI), transfer destination X address (y
2) is updated as follows. That is, yl←y 1 +
Let W*Yz←Yz+W. After updating, process 330
Return to

g)処理360: 列カウンタ(CC)がQに等しい時、Q列×Pワードの
画像データを全て転送したことになるので、この場合、
処理300を終了する。CCがQ未満の場合は、処理3
80に進む。
g) Process 360: When the column counter (CC) is equal to Q, it means that all the image data of Q columns x P words has been transferred, so in this case,
Process 300 ends. If CC is less than Q, process 3
Proceed to 80.

h)処理380: 転送元・転送先のXアドレスおよびXアドレスを次のよ
うに更新する。即ち、x1←x1−4−1゜Y t”−
Y t + X t←Xt+1. Δy2←ΔY z 
+ tanθ。
h) Process 380: Update the transfer source and transfer destination X addresses and X addresses as follows. That is, x1←x1-4-1゜Y t''-
Y t + X t←Xt+1. Δy2←ΔY z
+ tanθ.

y2←Y2+〔Δy2〕とする。ただし、記号〔〕はガ
ウス記号を表わす。
Let y2←Y2+[Δy2]. However, the symbol [ ] represents a Gauss symbol.

以上の処理手順は、変換行列が、TI=で表わされる場
合(即ち、−π/4≦θくπ/4゜3π/4≦θ〈π、
−π≦θ〈−3π/4の場合)の画像回転に関するもの
でおる。これ以外に、変換行列が、 で表わされる場合(即ち、π/4≦θく3π/4゜−3
π/4≦θく一π/4の場合)Vi変換行列TIが示す
ように、斜交軸変換に角度π/2の回転を追加すればよ
く、その処理は自明であるので説明を省略する。
The above processing procedure is performed when the transformation matrix is expressed as TI= (i.e. -π/4≦θ<π/4°3π/4≦θ<<π,
This relates to image rotation in the case of −π≦θ (−3π/4). In addition, when the transformation matrix is expressed as
(In the case of π/4 ≦ θ - π/4) As shown by the Vi transformation matrix TI, it is sufficient to add rotation by an angle π/2 to the oblique axis transformation, and the process is self-evident, so the explanation will be omitted. .

上記の実施例では、説明の便宜上、単純な処理方法を紹
介したが、これ以外にf記の如き種々の処理方法も可能
であることが容易に理解できる。
In the above embodiment, a simple processing method was introduced for convenience of explanation, but it is easily understood that various processing methods such as those described in f are also possible.

■ 第5図の処理130,140,150,170では
、マイクロ・プロセッサ1oのプログラム処理により、
1ワードずつ、画像メモリ上でデータ転送する方法を示
したが、これを高速化するために、DM A (1)i
rect Memory Access) icよる方
法を用いることもできる。DMAはマイクロ・プロセッ
サ10の介在なく、高速のデータ転送を可能にする。D
MAの手法は公知であるので、説明を省略する。同様に
、第7図の処理330,340゜350.370につい
ても、これをDMA転送に置換えることができる。
■ In processes 130, 140, 150, and 170 in FIG. 5, the program processing of the microprocessor 1o
We have shown a method of transferring data word by word on the image memory, but in order to speed up this process, DM A (1) i
Rect Memory Access) ic method can also be used. DMA allows high speed data transfer without microprocessor 10 intervention. D
Since the MA method is well known, its explanation will be omitted. Similarly, the processes 330, 340, 350, and 370 in FIG. 7 can also be replaced with DMA transfer.

■ 第4図では、処理100,200,300の3段階
で画像回転を実現する方法を示した。これに代る方法と
して、画像データの転送量を削減し、高速化するために
、処理100と2001.りるいは、処理200と30
0を並行処理することもできる。
(2) In FIG. 4, a method for realizing image rotation in three steps of processing 100, 200, and 300 is shown. As an alternative method, processes 100 and 2001. Rirui processes 200 and 30
0 can also be processed in parallel.

■ 上記の実施例では2値画像を対象にしたが、本発明
の原理は多値画像やカラー画像にも適用できる。
(2) Although the above embodiment deals with binary images, the principles of the present invention can also be applied to multivalued images and color images.

■ 本実施例では、回転角θの範囲に応じて、斜交軸変
換と拡大縮小の組合せを選択する際に、角度π/4の整
数倍をもって、θの領域を等分割しだが、他の方法でθ
の領域を分割してもよい。
■ In this example, when selecting a combination of oblique axis transformation and scaling according to the range of rotation angle θ, the area of θ is equally divided by an integral multiple of the angle π/4. θ in the way
The area may be divided.

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

本発明によれば次の効果が得られる。 According to the present invention, the following effects can be obtained.

(1)本発明は、斜交軸変換と拡大縮小の組合せで画像
回転を実現する点に特徴がある。斜交軸変換は処理が単
純であり、いくつかの画素を一括して処理でき、また、
DMAによる高速データ転送も利用できる。拡大縮小は
、出願人の発明による高速処理方式を適用することがで
きる。したがって、回転のための座1票変換を画素単位
に繰返す従来方式に比較し、本発明によれば画像回転を
高速に実現することが可能である。
(1) The present invention is characterized in that image rotation is realized by a combination of oblique axis conversion and scaling. Oblique axis transformation is simple to process, can process several pixels at once, and
High-speed data transfer using DMA can also be used. For scaling, a high-speed processing method invented by the applicant can be applied. Therefore, in comparison with the conventional method in which the one-vote conversion for rotation is repeated pixel by pixel, according to the present invention, it is possible to realize image rotation at high speed.

(2)出願人が既に発明したブロック転送による画像回
転方式(特願昭57−176151)は、処理時間が回
転角に依存し、(21m−1)Xπ/4 ラジアンの回
転(l≦n≦4)において処理時間が最大になるという
欠点があったが、本発明はこの欠点を解消したものであ
る。
(2) In the image rotation method using block transfer, which the applicant has already invented (Japanese Patent Application No. 176151/1982), the processing time depends on the rotation angle, and the rotation of (21m-1)Xπ/4 radians (l≦n≦ 4) had the disadvantage that the processing time was at its maximum, but the present invention eliminates this disadvantage.

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

第1図は、本発明の原理説明図、第2図は、本発明の一
実施例のハードウェア構成図、第3図は、本発明の画像
メモリのワード構成図、第4図は、本発明の全体処理の
流れを示すフローチャート、第5図は、本発明における
斜交軸変換TIIの処理フロー図、第6図は本発明の斜
交軸変換T、におけるデータの配置図、第7図は、本発
明における斜交軸変換′113の処理フロー図、第8図
は、本発明斜交軸変換T3におけるデータの配置図であ
る。 10・・・マイクロ・プロセッサ、20・・・主メモリ
、第 l 膓 第 2 聞 第 4 目 第 5F+ 第 b 図 0
FIG. 1 is a diagram explaining the principle of the present invention, FIG. 2 is a hardware configuration diagram of an embodiment of the present invention, FIG. 3 is a word configuration diagram of an image memory of the present invention, and FIG. 4 is a diagram of the present invention. Flowchart showing the overall processing flow of the invention, FIG. 5 is a processing flow diagram of oblique axis transformation TII in the invention, FIG. 6 is a data arrangement diagram in oblique axis transformation T of the invention, and FIG. 7 is a processing flow diagram of the oblique axis transformation '113 in the present invention, and FIG. 8 is a data arrangement diagram in the oblique axis transformation T3 of the present invention. 10...Microprocessor, 20...Main memory, No. 1, No. 2, No. 4, No. 5F+ No. b, Fig. 0

Claims (1)

【特許請求の範囲】 1、 直交座標−11+ K対し、交角θをなす斜交軸
に変換する第1のステップと、該直交座標の一方の軸方
向に(ト)θまたはsinθまたは、その近似倍率で縮
小し、他方の軸方向に最θまたはcosecθ、または
、その近似倍率で拡大する第2のステップを有すること
を特徴とする、画像の回転処理方法。 2、、第1のステップにおける斜交軸変換式および上記
第2のステップにおける拡大、縮少の式を上記交角0の
範囲に応じて変えること全特徴とする特r「請求のIl
1区囲第1項記載の画1象の回転処理方法。 3、 メモリ」二の画1嫁ケ連続したメモリアドレスの
ブロックごとに転送することにょシ該画像の斜交軸変換
を施す手段と該変換を施した画像に拡大縮小を測す手段
を有するととt−特徴とする画像の回転処理装置。
[Claims] 1. A first step of converting the orthogonal coordinates -11+K into oblique axes forming an intersecting angle θ, and (g) θ or sin θ or an approximation thereof in the direction of one axis of the orthogonal coordinates. A method for image rotation processing, comprising a second step of reducing the image by a magnification and enlarging it in the other axis direction by the maximum θ or cosec θ, or an approximate magnification thereof. 2. Changing the oblique axis conversion formula in the first step and the expansion/reduction formula in the second step according to the range of the intersection angle 0.
1. A method for rotating an image as described in Section 1 of Section 1. 3. Memory" 2nd picture 1) It has means for performing oblique axis transformation of the image and means for measuring the enlargement/reduction of the transformed image in order to transfer each block of consecutive memory addresses. and t-featured image rotation processing device.
JP58204826A 1983-05-23 1983-11-02 Method and apparatus for rotation processing of picture Granted JPS6097473A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP58204826A JPS6097473A (en) 1983-11-02 1983-11-02 Method and apparatus for rotation processing of picture
FR848407947A FR2550360B1 (en) 1983-05-23 1984-05-22 PROCESSING PROCESS FOR ROTATING AN IMAGE
DE3419063A DE3419063A1 (en) 1983-05-23 1984-05-22 PROCESSING METHOD FOR ROTATING AN IMAGE
US06/613,189 US4618991A (en) 1983-05-23 1984-05-23 Processing method for the rotation of an image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58204826A JPS6097473A (en) 1983-11-02 1983-11-02 Method and apparatus for rotation processing of picture

Publications (2)

Publication Number Publication Date
JPS6097473A true JPS6097473A (en) 1985-05-31
JPH0481230B2 JPH0481230B2 (en) 1992-12-22

Family

ID=16497021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58204826A Granted JPS6097473A (en) 1983-05-23 1983-11-02 Method and apparatus for rotation processing of picture

Country Status (1)

Country Link
JP (1) JPS6097473A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02144676A (en) * 1988-11-28 1990-06-04 Hitachi Ltd Image rotation system
JP2007309418A (en) * 2006-05-18 2007-11-29 Kurimoto Shoji Kk Water stop valve

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5595145A (en) * 1979-01-10 1980-07-19 Nec Corp Rotating method for pattern

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5595145A (en) * 1979-01-10 1980-07-19 Nec Corp Rotating method for pattern

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02144676A (en) * 1988-11-28 1990-06-04 Hitachi Ltd Image rotation system
JP2007309418A (en) * 2006-05-18 2007-11-29 Kurimoto Shoji Kk Water stop valve

Also Published As

Publication number Publication date
JPH0481230B2 (en) 1992-12-22

Similar Documents

Publication Publication Date Title
US4618991A (en) Processing method for the rotation of an image
US4975976A (en) Image transformation method and device
US5511137A (en) Process and apparatus for image magnification
EP0517847A1 (en) A technique for performing digital image scaling by logically combining or replicating pixels in blocks of differing group sizes.
JPS63249280A (en) Image processor
EP0216931A1 (en) Image rotating system having an arbitrary angle.
JP3286796B2 (en) Method and image creation device for reducing the amount of storage required
US7327904B2 (en) Pattern classification and filter design for increasing image resolution
JPH02240779A (en) N/m picture element converting device
JPS6097473A (en) Method and apparatus for rotation processing of picture
WO2021051948A1 (en) Training method and device for document recognition based on neural network
EP0855682B1 (en) Scan line rendering of convolutions
JPH0481231B2 (en)
JPH08237486A (en) Method for smoothing character in scanner/printer
JPS59214969A (en) Rotating processing system of picture
JPH07118002B2 (en) Image processing device
US6356656B1 (en) Contour-information extraction apparatus and method
JPS6195478A (en) Coordinate conversion processing device of picture
JPS61151783A (en) Method and device for affine transformation processing of picture
JP2575641B2 (en) Image editing processing method
JPH03154175A (en) Picture storage device
JPS60178588A (en) Image processor
JPH0750512B2 (en) Image processing device
CN115115524A (en) Algorithm for image rotation
JP2000134616A (en) Device and method for searching approximate image