JPS6097474A - Method and apparatus for rotating picture - Google Patents

Method and apparatus for rotating picture

Info

Publication number
JPS6097474A
JPS6097474A JP58204827A JP20482783A JPS6097474A JP S6097474 A JPS6097474 A JP S6097474A JP 58204827 A JP58204827 A JP 58204827A JP 20482783 A JP20482783 A JP 20482783A JP S6097474 A JPS6097474 A JP S6097474A
Authority
JP
Japan
Prior art keywords
image
conversion
picture
transformation
oblique axis
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
JP58204827A
Other languages
Japanese (ja)
Other versions
JPH0481231B2 (en
Inventor
Haruo Takeda
晴夫 武田
Kuniaki Tabata
邦晃 田畑
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 JP58204827A priority Critical patent/JPS6097474A/en
Publication of JPS6097474A publication Critical patent/JPS6097474A/en
Publication of JPH0481231B2 publication Critical patent/JPH0481231B2/ja
Granted 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/608Skewing or deskewing, e.g. by two-pass or three-pass rotation

Abstract

PURPOSE:To obtain a rotation picture at high speed in digital picture processing by making oblique axis conversion and enlarging and reduction in one direction by update from original picture data to coordinate data and further making enlarging and reduction and oblique axis conversion in another direction. CONSTITUTION:Affine conversion that indicates rotation can be resolved into the formula 5, and the conversion can be attained by executing successively conversion of the vertical y direction oblique axis conversion formula 6, vertical direction reduction conversion formula 7, horizontal x direction enlarging conversion formula 8 and horizontal direction oblique axis conversion formula 8. These processes are performed on a digital picture of a picture memory 105 inputted from a picture inputting device 103 by a microprocessor 101, a program memory 102, a processing section 101 etc. Conversion 6 is made on integer values m, n, and picture element density of coordinates m1, n1 of the converted picture is made picture element density of coordinates m, n of the converted picture. Conversion 7 is made on the integer values m1, n1, and a rotation picture is obtained by making conversion 8, 9.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はディジタル画像処理における、画像の〔発明の
背景〕 回転は、画像処理分野における基本的な処理の1つで、
たとえばファクシミリにおける入力原稿の傾き補正、印
鑑照合における印影の重ね合わせ(たとえば、「図心に
関する周辺密度の相関を利用した印影パターンの位置合
わせ法」、著者金子透氏他、電子通信学会、IB81−
13.37ページ〜42ページなどのような方式)等に
必要である。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention applies to digital image processing. [Background of the Invention] Rotation is one of the basic processes in the field of image processing.
For example, correcting the skew of an input document in facsimile, superimposing seal impressions in seal verification (for example, ``Seal imprint pattern alignment method using correlation of peripheral density with respect to centroid'', author Toru Kaneko et al., Institute of Electronics and Communication Engineers, IB81-
13. This is necessary for systems such as pages 37 to 42).

回転の方法に関しては、従来、アフィン変換による方法
と、斜交軸変換による方法が、代表的である。アフィン
変換による方式は 式 変換(1)は幾何学における回転変換の定義式自身であ
り、回転画像に歪みを生じないが、変換(1)の計高速
化が困難である欠点があった。斜交軸変換による方法は
、縦方向および横方向の2回の斜交軸変換によシ、回転
のアフィン変換(1)を近似するもので、「画像の回転
方法」(特開昭55−95145、発明者宮井均氏)等
に詳しい。具体的には、縦方向斜交軸変換 および より で変換(1)を近似する。斜交軸変換(2)および(3
)は、変換(1)に比べて高速処理が可能である。この
ため本回転方法は、アフィン変換による方法に比べて高
速である。ただし、回転角θの増大と共に回転画像が歪
む(たとえばθ−1で正方形が、1頂角が1の平行四辺
形となる)等の欠点がめった。
Conventionally, typical methods of rotation include a method using affine transformation and a method using oblique axis transformation. The method using affine transformation is as follows: Equation transformation (1) is the definition of rotational transformation in geometry itself, and does not cause distortion in the rotated image, but has the drawback that it is difficult to speed up transformation (1). The method using oblique axis transformation approximates the affine transformation (1) of rotation by performing oblique axis transformation twice in the vertical and horizontal directions. 95145, inventor Hitoshi Miyai) etc. Specifically, transformation (1) is approximated by longitudinal oblique axis transformation and twist. Oblique axis transformation (2) and (3
) allows faster processing than conversion (1). Therefore, this rotation method is faster than a method using affine transformation. However, as the rotation angle θ increases, the rotated image becomes distorted (for example, at θ-1, a square becomes a parallelogram with one vertex angle of 1), and other drawbacks often occur.

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

本発明の目的は、以上の如き従来方式の欠点を解消し、
高速処理可能でかつ回転画像に歪みを生じない画像回転
方式を提供することにある。
The purpose of the present invention is to eliminate the drawbacks of the conventional method as described above,
An object of the present invention is to provide an image rotation method that is capable of high-speed processing and does not cause distortion in rotated images.

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

本発明は、上記目的を達成するために、以下の考え方に
基づいてなされたものである。
In order to achieve the above object, the present invention has been made based on the following idea.

通常、画像を各種処理のためにメモリに格納する場合、
画像上横または縦方向に連続する画素を、メモリ上連続
アドレスをもつ領域に対応させる。
Normally, when storing images in memory for various processing,
Pixels that are continuous in the horizontal or vertical direction on the image are made to correspond to areas that have continuous addresses on the memory.

特に2値画像の場合、横または縦方向に連続する画素を
、1ワードとして読み書きできるのが普通である。前記
従来アフィン変換による方法が、高速化困難であるのは
、前記変換(1)で原画像をメモリ上アドレスが連続し
ている□画素の順に読み出しても、一般に変換画像はメ
モリ上、1画素単位にアドレスが連続していないメモリ
領域に書き込まねばならないためである。逆に前記斜交
軸変換による方法が高速化できるのは、前記変換(2)
および(3)で原画像の連続領域が、変換画像の連続領
域に一部画像境界部を除いて対応するためである。従っ
て特に1ワードが復数画素の情報をもつ2値画像を対象
とするとき、アフィン変換は1画素単位の処理しかでき
ず効率が悪いが、斜交軸変換は1ワ一ド単位の処理が可
能であり効率がよい。このような怠味で高速処理可能な
変換方式としては、上記斜交Il′l]1変換の外、横
1たは縦方向の拡大縮小変換がある。
Particularly in the case of binary images, pixels that are continuous in the horizontal or vertical direction can usually be read and written as one word. The reason why it is difficult to increase the speed of the conventional method using affine transformation is that even if the original image is read out in the order of pixels with consecutive addresses in the memory in the transformation (1), the converted image is generally one pixel in the memory. This is because each address must be written to a memory area that is not consecutive. On the other hand, the method using the oblique axis transformation can be speeded up by the transformation (2)
This is because in (3), the continuous area of the original image corresponds to the continuous area of the converted image, excluding some image boundaries. Therefore, especially when dealing with a binary image in which one word has information of multiple pixels, affine transformation is inefficient as it can only process one pixel unit, but oblique axis transformation can only process one word at a time. It is possible and efficient. In addition to the above-mentioned oblique Il'l]1 transformation, conversion methods that are lazy and can be processed at high speed include horizontal or vertical scaling conversion.

本発明の安息は、アフィン変換(1)が、上記斜交軸変
換、および上記拡大縮小変換の組合せで表現できること
に着11し、これらの変換を順次実行することにより変
換(1)を実行する点にある。組合わされた変換は、ア
フィン変換(1)と同値のため変換画像に歪みを生じな
い。絹合わせに用いる各変換は、既述のとおシ高速処理
でき、結果として回転処理の高速化が期待できる。
The rest of the present invention is based on the fact that affine transformation (1) can be expressed by a combination of the above-mentioned oblique axis transformation and the above-mentioned scaling transformation, and transformation (1) is executed by sequentially executing these transformations. At the point. Since the combined transformation is equivalent to affine transformation (1), no distortion occurs in the transformed image. Each transformation used for silk matching can be processed at high speed as described above, and as a result, speeding up of rotation processing can be expected.

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

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

回転を表すアフィン変換(1)については、1例として する分解が成立する。(ただし−一くθ≦1)よつて変
換(1)は、縦(y)方向斜交軸変換縦方向縮小変換 横(X)方向拡大変換 横方向斜交軸変換 の4つの変換を順次実行することによシ実現できる。変
換(1)に同値な斜交軸変換と拡大縮小変換の組は、他
にも存在するが、変換の回数は上側のように4回が最小
である。変換(に2〜(9の概略の様子を、第1図に示
す。
Regarding the affine transformation (1) representing rotation, the decomposition given as an example holds true. (However, θ≦1) Therefore, transformation (1) sequentially executes four transformations: vertical (y) direction oblique axis conversion, vertical direction reduction, horizontal (X) direction enlargement, horizontal direction oblique axis conversion This can be achieved by doing so. There are other sets of oblique axis transformation and scaling transformation that are equivalent to transformation (1), but the minimum number of transformations is four as shown above. The outline of conversions (2 to (9) is shown in FIG. 1.

ただし、本発明で対象とするディジタル画像では、その
濃度は標本化された座標上でのみ定義されるので、変換
(6)〜(?2を実際に実行するには補間が必要である
。ここでは補間法に最近傍点選択法(例えば[II算機
による画像の回転シミュレーション」、著者景山氏、昭
和55年度電子通信学会総合全国大会、A1067)を
用いる。変換(θ〜(7〕を実際には、次の手順で実現
する。以下の説明では、座標の単位を上記の標本点の間
隔にとる。
However, in the digital image targeted by the present invention, the density is defined only on the sampled coordinates, so interpolation is required to actually execute transformations (6) to (?2). In this case, the nearest neighbor selection method (for example, [Image Rotation Simulation Using II Calculator], author Kageyama, 1985 National Conference of the Institute of Electronics and Communication Engineers, A1067) is used as the interpolation method. is realized by the following steps.In the following explanation, the unit of coordinates is taken as the interval between the sample points mentioned above.

〔ステップ1〕 整数値In、Hに対して、変換(6)を施し、xl、m
、nYr、□、nを得る。すなわち なる座標変換を行う。
[Step 1] Transform (6) is applied to the integer values In, H, and xl, m
, nYr, □, n are obtained. In other words, the following coordinate transformation is performed.

次に、X l、m、 n * Y 1+lTl+rlを
四捨五入により整数化して結果をそれぞれml、nlと
する(補間処理)。
Next, Xl, m, n*Y1+lTl+rl are rounded off to integers, and the results are set as ml and nl, respectively (interpolation process).

整数値ml、nlに対して、変換(7)を施し、X2.
ml、 nl + Y 2 、ml、 n 1を得る。
Transformation (7) is applied to the integer values ml and nl, and X2.
We obtain ml, nl + Y 2 , ml, n 1.

すなわちなる座標変換を行う。In other words, the following coordinate transformation is performed.

次に、x2.ml、nl T Y 2.ml、nlを四
捨五入に整数値m2.A2に対して、変換(J′)を施
し、xl、A2.れ2 r Y 8.A2. A2を得
る。すなわちなる座標変換を行う。
Next, x2. ml, nl T Y 2. ml, nl are rounded off to an integer value m2. Transformation (J') is applied to A2, and xl, A2. Re 2 r Y 8. A2. Get A2. In other words, the following coordinate transformation is performed.

次に、xl、A2. A2 + Y 3.A2. A2
を四捨五入によ〔ステップ4〕 整数値m3.A3に対して変換(’?)を施し、X A
3 A3 + Ym3 A3を得る。すなわちなる座標
変換を行う。
Next, xl, A2. A2 + Y 3. A2. A2
[Step 4] Integer value m3. Apply conversion ('?) to A3 and convert it to X A
3 A3 + Ym3 A3 is obtained. In other words, the following coordinate transformation is performed.

次に、X A3. A3 + Y rn3. A3を四
捨五入によシNトのステップVCおげh書拗およrド榊
書漁画像の画素の対応を、第2図に示す。図中1〜10
は画素番号で、同一番号をもつ画素が対応する画素であ
る。
Next, X A3. A3 + Yrn3. FIG. 2 shows the pixel correspondence of the step VC, h, and r de Sakaki shogyo images when A3 is rounded off. 1 to 10 in the diagram
is a pixel number, and pixels with the same number are corresponding pixels.

上記ステップ1およびステップ3では、被変換画像上で
縦方向に連続する画素の組は、変換画像上で縦方向に連
続する画素の組としてそのまま現れる。また、ステップ
2およびステップ4では、被変換画像上で横方向に連続
する画素の組は、変換画像上で横方向に連続する画素の
組としてそのまま現れる。従って、座標計算が簡単なば
かりでなく、特に対象が2値画像のとき、縦または横に
連続するN画素を1ワードとして読み書きできる装置を
使えば、処理はさらに高速化できる。以下、本条件を満
足する装置の構成の1例を説明する。
In steps 1 and 3 above, a set of pixels that are continuous in the vertical direction on the converted image appears as is as a set of pixels that are continuous in the vertical direction on the converted image. Furthermore, in Steps 2 and 4, a set of pixels that are continuous in the horizontal direction on the converted image appears as is as a set of pixels that are continuous in the horizontal direction on the converted image. Therefore, not only is the coordinate calculation simple, but especially when the target is a binary image, the processing can be further speeded up by using a device that can read and write N vertically or horizontally continuous pixels as one word. An example of the configuration of an apparatus that satisfies this condition will be described below.

第3図は、本発明を実現する装置の全体構成を示す。図
中、101はマイクロプロセッサまたはマイクロプログ
ラム制御プロセッサから成る処理部、102は処理部1
01のプログラムとテーブル等の数値データを格納する
プログラムメモリ、103は画像入力装置、104は画
像出力装置、105は画像データを格納する画像メモリ
、106はデータ、アドレスおよびコントロール信号用
バスを示す。
FIG. 3 shows the overall configuration of a device that implements the present invention. In the figure, 101 is a processing unit consisting of a microprocessor or a microprogram controlled processor, and 102 is a processing unit 1.
01 is a program memory for storing programs and numerical data such as tables, 103 is an image input device, 104 is an image output device, 105 is an image memory for storing image data, and 106 is a bus for data, addresses, and control signals.

画像メモリ105は、次の機能を有する。Image memory 105 has the following functions.

(B−1)指定した画素座標を左端または上端として、
指定したアクセス方向(横または縦)に連続するN画素
に同時にアクセスする。ここにNはデータバスのデータ
中(ワード長)を示す。
(B-1) With the specified pixel coordinates as the left edge or top edge,
N pixels consecutive in the specified access direction (horizontal or vertical) are accessed simultaneously. Here, N indicates the length of data (word length) on the data bus.

1ワード内のピットと画素の対応は、両端がそれぞれ、
l、 313 (I、east 31gn1f 1ca
nt旦it )に対応するIri序とする。
The correspondence between pits and pixels within one word is as follows at both ends:
l, 313 (I, east 31gn1f 1ca
The Iri order corresponds to ntdanit).

(B−2)前記(H−1)における指定画素座標は、横
および縦の2次元アドレス指定とする。
(B-2) The specified pixel coordinates in the above (H-1) are specified as horizontal and vertical two-dimensional addresses.

以下簡単のためワード長Nを4として説明する。The following description will be made assuming that the word length N is 4 for the sake of simplicity.

前記(B−1)を実現するために、画像メモリは4個の
メモリモジュールから構成し、・任意の横方向または縦
方向に連続する4画素がそれぞれ相異なるメモリモジュ
ールに格納されるように、画素とメモリモジュールを対
応づける。画像左上を原点、右横方向をX軸、下縦方向
をy軸と定義するとき、座標(x、y)である画素を格
納すべきメモリモジュール番号μを、 μ=(x+y)//4 (lり とすると、前記画素とメモリモジュールの対応を満足で
きる。ここに、iは除算の剰余をとる演算である。また
、座標(x、y)である画素を格納すべきメモリモジュ
ール内アドレスαを、α−mXy+(X/4] (lり とすると、相異なる画素が同一のメモリモジュールでか
つ同一のメモリモジュール内アドレスとなることなく、
画素とメモリモジュール内アドレスの対応を決定できる
。ここに、〔〕は小数点以下切捨てによる整数化、mは
4Xmが画像メモリ横巾となる画像メモリ固有の定数で
ある。第4図(a)は、式Qa)による画素とメモリモ
ジュール番号の対応、同図(b)は式(11)による画
素とメモリモジュール内アドレスの対応を模式的に示す
。図中、201はX座標2、X座標3の画素であり、第
1メモリモジユールの第6番地に格納される。ただし、
mは2とする。
In order to realize the above (B-1), the image memory is composed of four memory modules, so that four consecutive pixels in any horizontal or vertical direction are stored in different memory modules, respectively. Associate pixels with memory modules. When defining the upper left of the image as the origin, the right horizontal direction as the X axis, and the lower vertical direction as the y axis, the memory module number μ that should store the pixel with coordinates (x, y) is μ = (x + y) // 4 (The correspondence between the pixel and the memory module can be satisfied if If α is α−mXy+(X/4)
The correspondence between pixels and addresses within the memory module can be determined. Here, [ ] is converted into an integer by rounding down the decimal places, and m is a constant specific to the image memory where 4×m is the width of the image memory. FIG. 4(a) schematically shows the correspondence between pixels and memory module numbers according to formula Qa), and FIG. 4(b) schematically shows the correspondence between pixels and addresses in the memory module according to formula (11). In the figure, 201 is a pixel with X coordinates 2 and 3, and is stored at address 6 of the first memory module. however,
Let m be 2.

第5図は画像メモリの構成を示す。図中、301〜30
3は機能(B−1)において指定する。それぞれ画素座
標X座標、X座標、およびアクセス方向を格納するレジ
スタ、304〜307はそれぞれ第0.第1.第2.第
3メモリモジユール、308〜311はそれぞれ第0.
第1.第2.第3メモリモジユール内アドレスを生成す
るアドレス生成部、312は読み出しデータを機能(B
−1)で述べたピット順序に配列するルーティング部、
313は機能(B−1)で述べたピット順序を所定のメ
モリモジュールに振分ける順序に配列するルーティング
部である。
FIG. 5 shows the configuration of the image memory. In the figure, 301-30
3 is specified in function (B-1). Registers 304 to 307 each store the pixel coordinate X coordinate, the X coordinate, and the access direction, respectively. 1st. Second. The third memory modules 308 to 311 are respectively 0.
1st. Second. An address generation unit 312 that generates an address in the third memory module converts read data into a function (B
- a routing section arranged in the pit order described in 1);
Reference numeral 313 is a routing unit that arranges the pit order described in function (B-1) in an order in which the pits are distributed to predetermined memory modules.

画像メモリ105のデータの読出しおよび書込み動作は
次のとおシである。まずアクセスする画素の組の左また
は上端画素のX座標(以下xoと略す)、X座標(以下
’Ioと略す)、およびアクセス方向(右または左また
は下または上方向、以下tと略す)を、バス106およ
び320,321゜322を通じて、それぞれレジスタ
301,302゜303に格納する。アドレス生成部3
08〜311は、t=0(アクセス方向が右)のとき、
座標(Xo r Yo )+ (Xo +1. Yo 
)+ (Xo +2+ YO)+ (xo +3+ Y
o )について、t−1(アクセス方向が左)のとき、
座標(xo+)’O)+(xo 1+ YO)+ (x
o 2+ ’IQ )+(X03 + )’o )につ
いて、t−2(アクセス方向が下)のとき、座標(Xo
、yo )(Xo、yo+1 )+ (xo * Yo
 +2 )+ (xo + >’o +3)について、
t=3(アクセス方向が上)のとき、座標(xOr Y
O)+ (xO+ Yo 1)、(Xo lYo 2)
+ (xo * Yo 3)について、式(1o)およ
び式(11)によシ各メモリモジュール内アドレスを生
成する。データ読出し時は、次に信号323により各メ
モリモジュール304〜307に読出し指令を出す。信
号323により所定のデータがバス324〜327に読
出される。ルーティング部312は、バス324〜32
7のデータを、Xo + Yoに基づいて、前記画素と
ビットの対応に示す順序にデータを配列し、バス328
を通じてバス106に出力する。他方、データ書込み時
は、データパス106よ#)、f込むべきデータを、バ
ス328を通じて、ルーティング部(313)に送る2
次に1込み指令を信号323を通じて出すと、ルーティ
ング部313で、XO+MOに基づいて、前記画素とビ
ットの対応に示す順序にデータを配列して、バス329
〜333に出力する。
The data reading and writing operations of the image memory 105 are as follows. First, determine the X coordinate (hereinafter abbreviated as xo), the X coordinate (hereinafter abbreviated as 'Io), and the access direction (right, left, bottom, or top direction, hereinafter abbreviated as t) of the left or top pixel of the set of pixels to be accessed. , bus 106 and 320, 321° 322 to registers 301, 302° 303, respectively. Address generator 3
08 to 311, when t=0 (access direction is right),
Coordinates (Xor Yo) + (Xo +1. Yo
)+ (Xo +2+ YO)+ (xo +3+ Y
o), when t-1 (access direction is left),
Coordinates (xo+)'O)+(xo 1+YO)+(x
o2+'IQ)+(X03+)'o), when t-2 (access direction is down), the coordinate (Xo
,yo)(Xo,yo+1)+(xo*Yo
+2 )+ (xo + >'o +3),
When t=3 (access direction is up), the coordinates (xOr Y
O)+ (xO+ Yo 1), (Xo lYo 2)
+ For (xo * Yo 3), an address within each memory module is generated according to equation (1o) and equation (11). When reading data, a read command is then issued to each memory module 304 to 307 using a signal 323. Predetermined data is read onto buses 324-327 by signal 323. The routing unit 312 connects buses 324 to 32
The data of 7 is arranged in the order shown in the correspondence between pixels and bits based on Xo + Yo, and is sent to bus 328.
The signal is output to bus 106 through the bus 106. On the other hand, when writing data, the data path 106 sends the data to be written to the routing section (313) via the bus 328.
Next, when a 1-include command is issued through the signal 323, the routing unit 313 arranges the data in the order shown in the correspondence between pixels and bits based on XO+MO, and
~333.

最後に、書込み指令信号323によりメモリモジュール
304〜307に、データを、それぞれバス329〜3
33より誓込む。
Finally, the write command signal 323 transfers data to the memory modules 304 to 307 via buses 329 to 3, respectively.
I pledge from 33.

次に、前記の装置を用いて本発明の回転を実現するため
の手順を説明する。処理部101はプログラムメモリに
あらかじめ格納されたプログラムを実行する。第6図は
、このプログラムの概略のフローチャートである。まず
画像入力のステップで、画像入力装置103がら画像を
入力する。ただし、別の処理を施した画像または、処理
部101のプログラムで生成した画像を対象とすること
もでき、この場合には本ステップは省略する。次に変換
t6)−U)を順次実行し、画像を回転する。最後に画
像出力のステップで、画像出力装置104がら画像を出
力する。ただし、回転画像に対して別の処理を施すこと
もでき、この場合には本ステップは省略する。
Next, a procedure for realizing the rotation of the present invention using the above-described apparatus will be explained. The processing unit 101 executes a program stored in advance in a program memory. FIG. 6 is a schematic flowchart of this program. First, in an image input step, an image is input using the image input device 103. However, it is also possible to target an image that has been subjected to other processing or an image that has been generated by a program of the processing unit 101, and in this case, this step is omitted. Next, transforms t6)-U) are sequentially executed to rotate the image. Finally, in an image output step, the image is output from the image output device 104. However, it is also possible to perform other processing on the rotated image, and in this case, this step is omitted.

第7図〜第10図は、それぞれ変換(6ジ々υのステッ
プの詳細なフローチャートである。各フローグーヤード
は、すべて同様の形式であるため、個々には説明せず、
以下一括して説明する。まず、処理する変換および被変
換画像画素位置を、左上画素に初期化する。次に画像メ
モリのアクセス方向、すなわちtの値をセットする。次
に、現被変換画像画素位置から、現アクセス方向にN画
素(Nビット−1ワード)を、現変換画像画素位置に、
転送する。次に、同一アクセス方向ライン上の、次のN
画素の位置に、変換および被変換画像画素位置を移動す
る。以上を1ライン分繰返した後、変換および被変換画
像画素位置を、次のラインの先頭に移動する。以上を1
画像分繰返し処理を終了する。
Figures 7 to 10 are detailed flowcharts of the 6 steps of conversion.As each flow has a similar format, they will not be explained individually.
A complete explanation will be given below. First, the conversion to be processed and the pixel position of the converted image are initialized to the upper left pixel. Next, the access direction of the image memory, that is, the value of t, is set. Next, from the current converted image pixel position, move N pixels (N bits - 1 word) in the current access direction to the current converted image pixel position,
Forward. Next, the next N on the same access direction line
Transform and move the transformed image pixel location to the pixel location. After repeating the above for one line, the conversion and conversion target image pixel positions are moved to the beginning of the next line. more than 1
Ends the iterative process for each image.

本実施例によれば、2値画像の回転処理を行うのに、4
回の変換を要するものの、N画素(Nはワード長)単位
に処理することができる。しがもN画素の処理は、X、
y座標中の一方のみのインクリメントを変換、被変換画
像について行うこと、および実際にデータを転送するこ
とのみである。
According to this embodiment, in order to perform rotation processing on a binary image, 4
Although it requires several conversions, it can be processed in units of N pixels (N is word length). However, the processing of N pixels is
All that is required is to increment only one of the y coordinates on the transformed image, and to actually transfer the data.

一方従来のアフィン変換による方法は、変換は2回であ
るが、1画素単位に、X、y両座標のインクリメントを
変換、被変換画像について行う必要がある。よって、本
発明による方法は、従来のアフィン変換による方法に比
べて少なくともNが4以上のとき高速であシ、シがもN
を大きくすることによシ、さらに高速化することができ
る。回転画像ノ画質につbては、本発明の方法は、アフ
ィン変換による方法と同等で、従って従来斜交軸変換に
よる方法に優る。
On the other hand, in the conventional affine transformation method, the transformation is performed twice, but it is necessary to increment both the X and y coordinates of the image to be transformed, pixel by pixel. Therefore, the method according to the present invention is faster than the conventional method using affine transformation when N is 4 or more;
By increasing the value, the speed can be further increased. Regarding the image quality of the rotated image, the method of the present invention is equivalent to the method using affine transformation, and is therefore superior to the conventional method using oblique axis transformation.

以上ハードウェアにょる一実施例につき説明したが、本
発明の思想は計算機システム等におケルソフトウェアに
よっても十分実現可能であシ、画像、図形処理を伴う情
報処理システム等において実施し得る。
Although an embodiment using hardware has been described above, the idea of the present invention can be fully realized by computer system software or the like, and can be implemented in an information processing system that involves image and graphic processing.

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

以上説明したように、本発明によれば、単純な座標デー
タの更新で回転変換ができるため、従来アフィン変換に
よる方法と同等の画質の回転画像を従来より高速に得る
ことが可能となる。
As described above, according to the present invention, since rotational transformation can be performed by simply updating coordinate data, it is possible to obtain a rotated image of the same quality as the conventional method using affine transformation at a higher speed than before.

また専用的ハードウェア装置からソフトウェアに至る幅
広い実現形態が可能であシ、豊富な分野での利用効果が
期待される。
Furthermore, it is possible to implement it in a wide range of forms, from dedicated hardware devices to software, and is expected to be useful in a wide variety of fields.

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

第1図は、本発明の原理を示す説明図、第2図は、補間
の規則を説明する説明図、第3図は、本発明を実現する
装置の実施例の全体構成図、第4図は、本発明一実施例
における画像メモリと画像の対応を示す説明図、第5図
は、画像メモリの構成図、第6図は、本発明実施例の回
転プログラムの概略フローチャート、第7図〜第10図
は、回転プログラムの各ステップの詳細フローチャート
である。 101・・・処理部、105・・・画像メモリ、304
〜307・・・メモリモジュール、308〜311・・
・アドレス生成部、312,313・・・ルーティング
部、・・・縦方向斜交軸変換、 ・・・縦方向縮小変換
、第 l 図 第 2 目 (a−) χ 第 6 図 第 7 目
Fig. 1 is an explanatory diagram showing the principle of the present invention, Fig. 2 is an explanatory diagram explaining the interpolation rules, Fig. 3 is an overall configuration diagram of an embodiment of a device realizing the present invention, and Fig. 4 is an explanatory diagram showing the correspondence between image memory and images in one embodiment of the present invention, FIG. 5 is a configuration diagram of the image memory, FIG. 6 is a schematic flowchart of the rotation program in the embodiment of the present invention, and FIGS. FIG. 10 is a detailed flowchart of each step of the rotation program. 101... Processing unit, 105... Image memory, 304
~307...Memory module, 308~311...
・Address generation unit, 312, 313...Routing unit,...Vertical oblique axis conversion,...Vertical reduction conversion, Figure 1, Figure 2, (a-) χ Figure 6, Figure 7

Claims (1)

【特許請求の範囲】 1、第1の画像から第1の方向に斜交軸変換を行って第
2の画像を得る段階と、該第2の画像から第1の方向に
拡大縮小変換を行って第3の画像を得る段階と、該第3
の画像から第2の方向に拡大縮小変換を行って第4の画
像を得る段階と、該第4の画像から第2の方向に斜交軸
変換を行って第5の画像を得る段階とからなることを特
徴とする画像回転方法。 2、画像を入力する手段と、基準画素アドレスと画素ア
クセス方向を指定する手段と、当該画素から当該アクセ
ス方向に連続する複数画素データを読み書きする手段と
、これら画素データを蓄積する手段とより成る画像回転
装置。
[Claims] 1. Obtaining a second image by performing oblique axis transformation from the first image in the first direction; and performing scaling transformation from the second image in the first direction. obtaining a third image;
a step of performing scaling conversion in a second direction from the image to obtain a fourth image; and a step of performing oblique axis conversion in the second direction from the fourth image to obtain a fifth image. An image rotation method characterized by: 2. Consisting of a means for inputting an image, a means for specifying a reference pixel address and a pixel access direction, a means for reading and writing continuous plural pixel data from the pixel in the access direction, and a means for accumulating these pixel data. Image rotation device.
JP58204827A 1983-11-02 1983-11-02 Method and apparatus for rotating picture Granted JPS6097474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58204827A JPS6097474A (en) 1983-11-02 1983-11-02 Method and apparatus for rotating picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58204827A JPS6097474A (en) 1983-11-02 1983-11-02 Method and apparatus for rotating picture

Publications (2)

Publication Number Publication Date
JPS6097474A true JPS6097474A (en) 1985-05-31
JPH0481231B2 JPH0481231B2 (en) 1992-12-22

Family

ID=16497037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58204827A Granted JPS6097474A (en) 1983-11-02 1983-11-02 Method and apparatus for rotating picture

Country Status (1)

Country Link
JP (1) JPS6097474A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6262390A (en) * 1985-09-13 1987-03-19 株式会社日立製作所 Graphic display unit
JPS62177675A (en) * 1986-01-31 1987-08-04 Fujitsu Ltd Picture processor
JPS62245378A (en) * 1986-04-17 1987-10-26 Canon Inc Image processor
JPS62245380A (en) * 1986-04-17 1987-10-26 Canon Inc Image processor
JPS62247469A (en) * 1986-04-18 1987-10-28 Canon Inc Picture processor
US4759076A (en) * 1985-02-28 1988-07-19 Mitsubishi Denki Kabushiki Kaisha Image rotating system by an arbitrary angle
JPH07168558A (en) * 1994-11-21 1995-07-04 Hitachi Ltd Graphic display device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5817583A (en) * 1981-07-21 1983-02-01 Hitachi Ltd Two-dimensional data storage device
JPS58103063A (en) * 1981-12-16 1983-06-18 Hitachi Ltd Matrix storage device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5817583A (en) * 1981-07-21 1983-02-01 Hitachi Ltd Two-dimensional data storage device
JPS58103063A (en) * 1981-12-16 1983-06-18 Hitachi Ltd Matrix storage device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4759076A (en) * 1985-02-28 1988-07-19 Mitsubishi Denki Kabushiki Kaisha Image rotating system by an arbitrary angle
JPS6262390A (en) * 1985-09-13 1987-03-19 株式会社日立製作所 Graphic display unit
JPS62177675A (en) * 1986-01-31 1987-08-04 Fujitsu Ltd Picture processor
JPS62245378A (en) * 1986-04-17 1987-10-26 Canon Inc Image processor
JPS62245380A (en) * 1986-04-17 1987-10-26 Canon Inc Image processor
JPS62247469A (en) * 1986-04-18 1987-10-28 Canon Inc Picture processor
JPH07168558A (en) * 1994-11-21 1995-07-04 Hitachi Ltd Graphic display device

Also Published As

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

Similar Documents

Publication Publication Date Title
EP0360155B1 (en) Image transformation method and device
JPS6097474A (en) Method and apparatus for rotating picture
JP2982973B2 (en) Pattern filling method
JP3154741B2 (en) Image processing apparatus and system
JPS59224892A (en) Rotation/movement control system for image data
JPH0785266A (en) Image rotating device
JPS60165694A (en) Data rotary processing system
JPH01241681A (en) Image processor
JPH0736772A (en) Device and method for fast bit map access control
JP3004993B2 (en) Image processing device
JP2512252B2 (en) Image scaling device
JPH0734225B2 (en) Image processing device
JP2967228B2 (en) Image data transfer device
JPS6125192B2 (en)
JPH11312238A (en) Image data transfer device
JPH04329482A (en) Image rotation processing method and processing device for relevant method
JPS59214969A (en) Rotating processing system of picture
JPH05127980A (en) Picture processor
JP2567185B2 (en) Figure processing method
JPH05189553A (en) Image processing system
JPH11205576A (en) Image processor
JPS62166475A (en) Superimposing system for image plane
JPH0863595A (en) Method and device for rotation processing of image
JPS63116193A (en) Affine transformation system for image
JPS63184878A (en) Picture processor