JPH0863593A - Method and device for 90-degree-rotation processing of image data - Google Patents

Method and device for 90-degree-rotation processing of image data

Info

Publication number
JPH0863593A
JPH0863593A JP6201162A JP20116294A JPH0863593A JP H0863593 A JPH0863593 A JP H0863593A JP 6201162 A JP6201162 A JP 6201162A JP 20116294 A JP20116294 A JP 20116294A JP H0863593 A JPH0863593 A JP H0863593A
Authority
JP
Japan
Prior art keywords
address
image
image data
input
page
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
JP6201162A
Other languages
Japanese (ja)
Inventor
Koichi Tanaka
孝一 田中
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.)
Kyocera Mita Industrial Co Ltd
Original Assignee
Mita Industrial Co 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 Mita Industrial Co Ltd filed Critical Mita Industrial Co Ltd
Priority to JP6201162A priority Critical patent/JPH0863593A/en
Publication of JPH0863593A publication Critical patent/JPH0863593A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Input (AREA)

Abstract

PURPOSE: To provide a method and a device for the 90-degree rotation processing of an image for outputting inputted digital image data after 90- degree-rotation processing it at high speed. CONSTITUTION: In the case that image data written in an image memory is read out by using one image memory, a read-out address is designated so that the image is rotated by 90 degrees. Then, the image data to be inputted subsequently is written in the designated read-out address. The designated address of the image memory determines the storage address of a following original from a relative position with the storage address of a preceding original. Namely, when the horizontal scanning direction and the vertical scanning direction of the image memory are made a and b respectively, an access address is expressed by the multiple of the multiplier of (a), and in addition, if the address exceeds (ab-1), the residue of the division of the address by (ab-1) becomes the designated address. The 90 degree-rotation of the image can be realized by single algorithm by only initial-setting horizontal scanning width and vertical scanning width independently of input/output image size.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、ディジタル複写機、
ディジタルファクシミリ装置等の画像データをディジタ
ル処理する画像処理装置に関し、特に、入力される画像
データを90度回転処理するための画像処理方法および
画像処理装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to a digital copying machine,
The present invention relates to an image processing apparatus such as a digital facsimile apparatus that digitally processes image data, and more particularly to an image processing method and an image processing apparatus for rotating input image data by 90 degrees.

【0002】[0002]

【従来の技術】従来より画像データをディジタル処理す
る画像処理装置において、入力画像を90度回転して出
力する技術が知られている。また、画像データを90度
回転する際に、その処理時間を短縮するためのいくつか
の提案がある。たとえば、特開平5−20450号公報
には、画像メモリへの入力時の指定アドレスと、画像メ
モリからの出力時の指定アドレスとを演算する2つの回
路を有し、2つの回路によるアドレス変換により画像の
回転処理を行う技術が開示されている。
2. Description of the Related Art Conventionally, there has been known a technique for rotating an input image by 90 degrees and outputting the image in an image processing apparatus for digitally processing image data. Further, there are some proposals for reducing the processing time when rotating the image data by 90 degrees. For example, Japanese Unexamined Patent Publication No. 5-20450 has two circuits for calculating a designated address when inputting to an image memory and a designated address when outputting from an image memory, and by performing address conversion by the two circuits. A technique for performing image rotation processing is disclosed.

【0003】また他の技術として、特開平1−2512
86号公報には、回転処理された画像データのアドレス
を計算するのに、先頭ラインの先頭アドレスを計算し、
これを基に次のラインの先頭アドレスを計算し、各先頭
アドレスからそれぞれのラインの各画素のアドレスを求
める方法が示されている。
Another technique is disclosed in Japanese Patent Laid-Open No. 1-2512.
In Japanese Patent No. 86, in order to calculate the address of the rotated image data, the start address of the start line is calculated,
A method is shown in which the start address of the next line is calculated based on this, and the address of each pixel of each line is obtained from each start address.

【0004】[0004]

【発明が解決しようとする課題】ところで、従来知られ
ている画像データの回転処理は、いずれも、画像メモリ
に画像データを書込んだ後、アドレス変換を利用して画
像メモリからデータを読出すという処理が1単位として
行われている。このため、たとえば複数の入力画像デー
タを順次処理する場合を考えると、先行する画像データ
に対して画像メモリへのデータ書込および画像メモリか
らのデータ読出が終了しなければ、後続する画像データ
を画像メモリに書込むことができない。つまり、たとえ
ばディジタル複写機においては、画像メモリに書込まれ
たデータのプリントアウトをしている間は、次の原稿画
像の読取ができない。また、読取った原稿画像を画像メ
モリに書込み中は、プリントアウトはできない。
By the way, in any of the conventionally known image data rotation processes, after writing the image data in the image memory, the data is read out from the image memory by using the address conversion. The process is performed as one unit. Therefore, for example, in the case of sequentially processing a plurality of input image data, if the writing of data to the image memory and the reading of data from the image memory for the preceding image data are not completed, the succeeding image data is processed. Cannot write to image memory. That is, for example, in a digital copying machine, the next original image cannot be read while the data written in the image memory is being printed out. Further, it is not possible to print out while the read original image is being written in the image memory.

【0005】それゆえ、ディジタル複写機における複写
速度を速くしようとすれば、高速で原稿を読取って画像
メモリに書込み、画像メモリのデータをアドレス変換に
より高速で読出してプリントアウトしなければならな
い。このように1枚の原稿画像に対する画像読取および
プリントアウト処理に要する時間を短くしなければ、複
写速度を向上させることができなかった。かかる装置の
高速化は容易でなく、装置のコストアップの原因にな
る。
Therefore, in order to increase the copying speed in a digital copying machine, it is necessary to read an original at a high speed and write it in an image memory, read the data in the image memory at a high speed by address conversion, and print it out. As described above, the copying speed cannot be improved unless the time required for image reading and printout processing for one original image is shortened. It is not easy to increase the speed of such a device, which causes an increase in the cost of the device.

【0006】一方、入力画像データを画像メモリに書込
む処理と、画像メモリに書込まれたデータを90度回転
して読出す処理とを並列的に行うための構成は、たとえ
ば画像メモリを原稿2ページ分備えることにより実現で
きる。ところが、画像メモリは容量の大きなメモリであ
って価格が高価であるから、画像メモリを2ページ分備
える構成は、結局、コストアップの原因となる。
On the other hand, the structure for performing the processing of writing the input image data in the image memory and the processing of reading the data written in the image memory by rotating it by 90 degrees in parallel is, for example, an original document in the image memory. This can be achieved by preparing two pages. However, since the image memory is a memory having a large capacity and is expensive, the configuration including the image memory for two pages will eventually cause a cost increase.

【0007】このように、従来技術では、1ページ分の
画像メモリを1つだけ用いて、画像データの入力処理と
画像データの出力処理とを並列的に行わせ、画像の90
度回転を高速で行うという技術や装置は存在していなか
った、と本願発明者は認識している。本願発明は、この
ような従来技術を背景になされたもので、1つの目的
は、原稿1ページ分の画像メモリを用い、その画像メモ
リのアドレス指定の仕方を工夫することによって、90
度回転した画像データを画像メモリから読出すととも
に、それと並行に、新たに入力される画像データを画像
メモリに書込むようにした画像データの90度回転処理
方法を提供することである。
As described above, in the conventional technique, the image data input process and the image data output process are performed in parallel by using only one image memory for one page, and 90
The inventor of the present application recognizes that there has been no technique or apparatus for performing high-speed rotation at a high speed. The present invention has been made against the background of such a conventional technique. One object is to use an image memory for one page of a document and devise a method of addressing the image memory.
It is an object of the present invention to provide a 90-degree rotation processing method of image data, in which the image data rotated by a degree is read from the image memory and, at the same time, newly input image data is written in the image memory.

【0008】この発明の他の目的は、1ページ分の画像
メモリを1つだけ備え、画像メモリへの入力データの書
込処理と、画像メモリから90度回転させた画像を読出
す処理とが並列に行える画像処理装置を提供することで
ある。この発明の目的をさらに別の観点から捉えると、
画像データを90度回転処理するための新規なアドレス
指定用アルゴリズムを実現する方法および装置を提供す
ることである。
Another object of the present invention is to provide only one page of image memory, and to perform processing of writing input data to the image memory and processing of reading an image rotated 90 degrees from the image memory. An object of the present invention is to provide an image processing device that can be operated in parallel. From another point of view of the object of the present invention,
It is an object of the present invention to provide a method and apparatus for implementing a new addressing algorithm for rotating image data by 90 degrees.

【0009】[0009]

【課題を解決するための手段】この発明は、ある局面か
ら見ると、主走査方向にa個、副走査方向にb個(a,
bは正の整数)の画素が配列された1ページ分の画像デ
ータが、複数ページ分順に入力される場合に、a×bの
画素記憶容量を有する1ページ分の画像メモリを1つだ
け用いて、上記順に入力される各ページの画像データを
90度回転処理するための方法であって、前記入力画像
データの画素入力に同期して、前記主走査方向の画素数
aを(n−1)乗じた値(但し、nは入力ページの順序
数)の順次倍数、または順次倍数が(ab−1)を越え
たときには、当該順次倍数を(ab−1)で除した余り
の値を指定アドレスとして順次出力し、前記画像メモリ
の前記出力される指定アドレスをアクセスして、その指
定アドレスに記憶された画像データを読出し、次いで、
その指定アドレスに前記入力画像データを書込み、前記
読出した画像データをライン単位で主走査方向に反転さ
せて90度回転画像を得ることを特徴とする、画像デー
タを90度回転処理する方法である。
According to one aspect of the present invention, there are a number in the main scanning direction and b number in the sub scanning direction (a,
When one page of image data in which pixels of (b is a positive integer) are arranged is sequentially input for a plurality of pages, only one image memory for one page having a pixel storage capacity of a × b is used. And a method for rotating the image data of each page input in the above order by 90 degrees, in which the pixel number a in the main scanning direction is (n-1) in synchronization with the pixel input of the input image data. ) A sequential multiple of the multiplied value (where n is the ordinal number of the input page), or when the sequential multiple exceeds (ab-1), specify the remainder value obtained by dividing the sequential multiple by (ab-1). The data is sequentially output as an address, the output designated address of the image memory is accessed, the image data stored at the designated address is read, and then,
A method of rotating image data by 90 degrees, characterized in that the input image data is written to the designated address, and the read image data is inverted line by line in the main scanning direction to obtain a 90 degree rotated image. .

【0010】この発明は別の局面から見ると、主走査方
向にa個、副走査方向にb個(a,bは正の整数)の画
素が配列された1ページ分の画像データが、複数ページ
分順に入力される場合に、前記入力される各ページの画
像データを90度回転処理するための画像処理装置であ
って、a×bの画素記憶容量を有する1ページ分の画像
メモリと、前記入力画像データの画素入力に同期して、
前記主走査方向の画素数aを(n−1)乗じた値(但
し、nは入力ページの順序数)の順次倍数、または当該
順次倍数が(ab−1)を越えたときには、当該順次倍
数を(ab−1)で除した余りの値を指定アドレスとし
て順次出力するアドレス指定手段と、前記アドレス指定
手段から出力される指定アドレスで、前記画像メモリを
順にアクセスし、画像メモリの指定アドレスに記憶され
た画像データを読出し、次いで、その指定アドレスに前
記入力画像データを書込むメモリアクセス手段と、前記
メモリアクセス手段で読出された画素データをライン単
位で主走査方向に反転させる手段と、を含むことを特徴
とする画像データを90度回転処理するための画像処理
装置である。
According to another aspect of the present invention, one page of image data in which a number of pixels in the main scanning direction and b number of pixels in the sub-scanning direction (a and b are positive integers) are arranged is plural. An image processing apparatus for rotating the input image data of each page by 90 degrees when inputting in order of pages, the image memory for one page having a pixel storage capacity of a × b, In synchronization with the pixel input of the input image data,
A sequential multiple of a value obtained by multiplying the number of pixels a in the main scanning direction by (n-1) (where n is the order number of the input page), or when the sequential multiple exceeds (ab-1), the sequential multiple. Is divided by (ab-1) to sequentially output the designated value as the designated address, and the designated address output from the designated address means sequentially accesses the image memory to set the designated address of the image memory. Memory access means for reading the stored image data and then writing the input image data at the designated address, and means for inverting the pixel data read by the memory access means in the main scanning direction line by line. An image processing apparatus for performing 90-degree rotation processing on image data, which is characterized by including the above.

【0011】[0011]

【作用】この発明によれば、主走査方向にa個、副走査
方向にb個の画素が配列された1ページ分の画像データ
が、複数ページ分順に入力される場合に、1ページ分の
画像メモリを1つだけ用いて、入力される各ページの画
像データを90度回転処理するとともに、次に入力され
る画像データを並行して書込むことができる。
According to the present invention, when one page of image data in which a pixels in the main scanning direction and b pixels in the sub scanning direction are arranged is sequentially input for a plurality of pages, one page's worth of image data is input. By using only one image memory, the image data of each page to be input can be rotated by 90 degrees, and the image data to be input next can be written in parallel.

【0012】また、90度回転処理する入力画像データ
のサイズは、任意のサイズでよく、そのサイズを予め処
理回路に設定しておくだけで、単一のアルゴリズムによ
って画像の90度回転処理が実現できる。また、画像メ
モリの或るアドレスからの画像の読出と、そのアドレス
への画像の書込とが同時に行われるから、たとえばダイ
ナミックRAMの高速アクセスモードである同一アドレ
スを指定してのライトモディファイリードモードを活用
することができる。
Further, the size of the input image data to be rotated by 90 degrees may be any size, and only by setting the size in the processing circuit in advance, the image can be rotated by 90 degrees by a single algorithm. it can. Further, since the reading of the image from a certain address of the image memory and the writing of the image to the address are simultaneously performed, for example, the write-modify-read mode in which the same address is designated which is the high speed access mode of the dynamic RAM. Can be utilized.

【0013】[0013]

【実施例】以下には、図面を参照して、この発明の一実
施例について説明をする。図1は、この発明に基づき、
画像メモリに対してアクセスする場合の順序を示す概念
図である。図1の左側,中央および右側は、それぞれ、
1枚目アクセス、2枚目アクセス、3枚目アクセスを示
し、上段は入力画像データを画像メモリであるページメ
モリに配列する様子を示す。また、下段はページメモリ
の画像データを90度回転して読出す順序を示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. 1 is based on this invention,
It is a conceptual diagram which shows the order at the time of accessing an image memory. The left side, center, and right side of FIG.
The first-page access, the second-page access, and the third-page access are shown, and the upper part shows how input image data is arranged in a page memory, which is an image memory. The lower part shows the order of reading the image data in the page memory by rotating it by 90 degrees.

【0014】図1から明らかなように、この発明にかか
るメモリアクセスは、先行する画像データの格納アドレ
スに対する相対位置から、次の画像データの格納アドレ
スを求めている。つまり、ページメモリにおける読出ア
ドレスと書込アドレスとが画素単位で一致している。ま
た、メモリのアクセス順序は、処理する画像データの枚
数に依存した固有な形式をとっている。
As is apparent from FIG. 1, in the memory access according to the present invention, the storage address of the next image data is obtained from the relative position with respect to the storage address of the preceding image data. That is, the read address and the write address in the page memory match on a pixel-by-pixel basis. Further, the memory access sequence has a unique format depending on the number of image data to be processed.

【0015】より具体的に説明すると、ページメモリの
アクセスするアドレスは、モジュロ演算と組合わせた等
差数列で求められ、1画素ごとに同期して、先行する画
像データ(たとえば1枚目のデータ)の出力と後続する
画像データ(たとえば2枚目のデータ)の入力が同時に
進行する。図1に示すページメモリにおけるアドレス指
定の計算は、ページメモリの縦のアドレス数(画素を記
憶可能なエリア数)をa、横のアドレス数(画素を記憶
可能なエリア数)をbとしたとき、以下のようになる。
More specifically, the address to be accessed in the page memory is obtained by the arithmetic sequence combined with the modulo operation, and the preceding image data (for example, the data of the first sheet) is synchronized with each pixel. ) And the subsequent image data (for example, data for the second sheet) are simultaneously input. The calculation of addressing in the page memory shown in FIG. 1 is performed when the number of vertical addresses (number of areas in which pixels can be stored) of the page memory is a and the number of horizontal addresses (number of areas in which pixels can be stored) is b. , As follows.

【0016】[0016]

【数1】 [Equation 1]

【0017】ページメモリのアドレス指定、すなわちペ
ージメモリに記憶された画素のアクセスは、aの乗数の
倍数で行われる。aの乗数の倍数で順にアクセスが行わ
れ、アクセスするアドレス値がページメモリの最後のア
ドレス(ab−1)を越えれば、計算で求められたアド
レスを(ab−1)で割った余り、つまりモジュロ演算
の結果が次の指定アドレスとなる。このようなアドレス
指定を行いながら、ページメモリの指定アドレスから画
素データを読出し、かつ、その画素データが読出された
指定アドレスに次のページの画素データが書込まれる。
これにより、画像データの連続縦横アドレス変換が可能
となる。
The addressing of the page memory, ie the access of the pixels stored in the page memory, is done in multiples of a. When access is performed in order of a multiple of a, and the address value to be accessed exceeds the last address (ab-1) of the page memory, the remainder obtained by dividing the calculated address by (ab-1), that is, The result of the modulo operation becomes the next specified address. While performing such addressing, the pixel data is read from the specified address of the page memory, and the pixel data of the next page is written to the specified address from which the pixel data was read.
This enables continuous vertical / horizontal address conversion of image data.

【0018】図2は、この発明の一実施例にかかる画像
データ90度回転処理を行う回路の全体構成の概要を示
すブロック図である。図2に示すように、スキャナ部4
1で読取られた画像データは、ディジタル信号に変換さ
れ、複数の画素データからなるラインデータが順次画像
メモリ42へ与えられる。スキャナ41と画像メモリ4
2との間には、図示しないが、ラインバッファが介在さ
れていてもよい。画像メモリ42に与えられる画素デー
タの書込アドレスは、アドレス計算回路43により計算
される。このアドレス計算回路43は、同時に、画像メ
モリ42に記憶された画像データを読出す場合の読出ア
ドレスを計算する。書込アドレスと読出アドレスとは、
上述したように同じアドレスである。したがって画像メ
モリ42の画素データが読出されたアドレスに、入力さ
れる画素データが記憶される。
FIG. 2 is a block diagram showing the outline of the overall configuration of a circuit for performing the image data 90 ° rotation processing according to the embodiment of the present invention. As shown in FIG. 2, the scanner unit 4
The image data read in 1 is converted into a digital signal, and line data consisting of a plurality of pixel data is sequentially given to the image memory 42. Scanner 41 and image memory 4
Although not shown, a line buffer may be interposed between the two. The write address of the pixel data given to the image memory 42 is calculated by the address calculation circuit 43. At the same time, the address calculation circuit 43 calculates a read address for reading the image data stored in the image memory 42. The write address and read address are
It has the same address as described above. Therefore, the input pixel data is stored at the address where the pixel data of the image memory 42 is read.

【0019】画像メモリ42から読出された画素データ
は、必要に応じて設けられたラインバッファ(図示せ
ず)で一時ストアされ、転置処理回路で、ライン単位で
主走査方向に画像を反転させる転置処理(鏡像処理)が
施されてプリンタ部45へ与えられる。そしてプリント
アウトされる。このプリントアウトされるデータはスキ
ャナ部41で読取られた画像データが90度回転された
データとなる。
Pixel data read from the image memory 42 is temporarily stored in a line buffer (not shown) provided as needed, and a transposition processing circuit transposes the image in the main scanning direction line by line. Processing (mirror image processing) is performed and the result is given to the printer unit 45. And it is printed out. The data to be printed out is the image data read by the scanner unit 41 rotated by 90 degrees.

【0020】図3に、上述したアドレス計算回路43を
ハードウェアで構成したブロック図を示す。画像メモリ
のアクセスのアルゴリズムが簡単なため、図3に示すよ
うに、回路も比較的簡単な構成で実現されている。図3
に示す回路ブロックにおいて、長方形の枠で示す1,
3,5,8,10,11,12,13,14,16,1
8,21,23,24,26はレジスタまたはフリップ
フロップであり、入力される値を設定または保持するた
めのものである。
FIG. 3 shows a block diagram in which the address calculation circuit 43 described above is configured by hardware. Since the algorithm for accessing the image memory is simple, the circuit is also realized with a relatively simple configuration as shown in FIG. FIG.
In the circuit block shown in 1,
3,5,8,10,11,12,13,14,16,1
Reference numerals 8, 21, 23, 24 and 26 are registers or flip-flops for setting or holding input values.

【0021】また、正方形のブロック2,15,25は
乗算器である。さらに、正方形のブロックの上に「MO
D」を表記したブロック4,9,17,22はモジュロ
演算を行うための剰余演算器である。また実線の長方形
ブロックの中に破線の長方形を描いたブロック6,19
は、信号選択用のマルチプレクサを表わしている。
The square blocks 2, 15 and 25 are multipliers. Furthermore, on the square block, "MO
Blocks 4, 9, 17, and 22 marked with "D" are modulo arithmetic units for performing modulo arithmetic. Blocks 6 and 19 in which a broken-line rectangle is drawn in a solid-line rectangular block
Represents a multiplexer for signal selection.

【0022】さらに、7,20は加算器である。次に、
図3に示す回路ブロックの動作を説明する。 <初期状態>初期設定として、レジスタ3,11,1
2,16,26に、それぞれ、「1」「a」「a・b」
「b」「b(l−1)」の値を入力する。
Further, 7 and 20 are adders. next,
The operation of the circuit block shown in FIG. 3 will be described. <Initial state> As an initial setting, registers 3, 11, 1
2, 16 and 26 are "1", "a", and "ab", respectively.
Input the values of "b" and "b (l-1)".

【0023】これらの初期設定値の入力は、画像形成を
始める前に1度だけ行うもので、以後変更はしない。上
記初期設定にかかるレジスタ以外のレジスタは、画像形
成開始時にリセットされる。 <1ページ目のアドレス計算> (1)第1ライン目のアドレス計算 レジスタ3に記録された初期値「1」を剰余演算器4に
入力し、その結果をレジスタ5に記録する。次ページの
アドレス演算のために、この時点で、レジスタ5の値を
レジスタ1に記録しておく。
These initial setting values are input only once before the image formation is started and are not changed thereafter. Registers other than the above-mentioned initial setting registers are reset at the start of image formation. <Address Calculation for First Page> (1) Address Calculation for First Line The initial value “1” recorded in the register 3 is input to the remainder calculator 4 and the result is recorded in the register 5. At this point, the value of the register 5 is recorded in the register 1 for the address calculation of the next page.

【0024】次に、レジスタ5の値と先行する画素のア
ドレスを記憶しているレジスタ10の値とを加えて、レ
ジスタ8に記録する。この操作により等差数列状のアド
レス作成が行われる。この場合、レジスタ10の値は
「0」なので、レジスタ8には「1」が入る。次いで、
レジスタ8の値を剰余演算器9に与え、「(ab−
1)」で割る。そしてその余りをレジスタ10に記録す
る。レジスタ10に記録される値が、第1ライン2画素
目のアドレス値である。すべてのページの最初のアドレ
ス値は「0」であり、これは最初にレジスタがリセット
されるときに、レジスタ10が出力している。
Next, the value of the register 5 and the value of the register 10 storing the address of the preceding pixel are added and recorded in the register 8. By this operation, addresses are formed in the form of arithmetic progression. In this case, since the value of the register 10 is "0", "1" is stored in the register 8. Then
The value of the register 8 is given to the remainder calculator 9, and "(ab-
1) ”. Then, the remainder is recorded in the register 10. The value recorded in the register 10 is the address value of the second pixel of the first line. The first address value on all pages is "0", which is output by register 10 when the register is first reset.

【0025】第3番目以降の画素の読出および書込のた
めのアドレス値は、点線の四角で囲んだ回路部分30で
算出される。すなわち、2画素目のアドレスの値を記憶
したレジスタ10に、レジスタ5の値を加算器7で加え
て、その結果をレジスタ8に記録する。そしてレジスタ
8に記録された値を剰余演算器9に入力する。そしてそ
の結果はレジスタ10に記録する。このレジスタ10の
値が第1ラインの3画素目のアドレスとなる。
Address values for reading and writing the third and subsequent pixels are calculated by the circuit portion 30 enclosed by a dotted line rectangle. That is, the value of the register 5 is added to the register 10 that stores the address value of the second pixel by the adder 7, and the result is recorded in the register 8. Then, the value recorded in the register 8 is input to the remainder calculator 9. The result is recorded in the register 10. The value of the register 10 becomes the address of the third pixel on the first line.

【0026】第1ラインのアドレス値は、回路部分30
における上述の演算を繰り返すことにより、順次、レジ
スタ10から出力される。マルチプレクサ6は、1ライ
ンのアドレス演算が終了するまで、レジスタ5からの入
力を選択して加算器7へ与える。 (2)第2ライン目のアドレス計算 第2ラインの最初のアドレスはb番目のアドレスである
から、1ページ目のアドレス計算においては「b」が最
初の値となる。第1ラインの演算と同様に、レジスタ1
6には初期値「b」が演算に先立って入力される。この
値が、剰余演算器17,レジスタ18,マルチプレクサ
19,加算器20,レジスタ21,剰余演算器22,レ
ジスタ23と流れて、第2ライン1画素目のアドレスと
なる。
The address value of the first line is the circuit portion 30.
By repeating the above-mentioned calculation in (3), the data is sequentially output from the register 10. The multiplexer 6 selects the input from the register 5 and supplies it to the adder 7 until the address calculation for one line is completed. (2) Second line address calculation Since the first address of the second line is the bth address, "b" is the first value in the first page address calculation. Similar to the operation of the first line, register 1
An initial value “b” is input to 6 prior to the calculation. This value flows through the remainder calculator 17, the register 18, the multiplexer 19, the adder 20, the register 21, the remainder calculator 22, and the register 23, and becomes the address of the first pixel on the second line.

【0027】2画素目以降のアドレス演算は、1ライン
目と同様に、点線の四角の中の回路部分31で行われ
る。2ライン目のアドレス演算が終了するまでは、マル
チプレクサ19は、レジスタ5からの入力を選択して加
算器20へ与える。 (3)第3ライン目のアドレス計算 第1ラインのアドレス演算が終了すると、マルチプレク
サ6はレジスタ18の入力を選択する。よって加算器7
では第1ライン最後のアドレスとレジスタ18の値とが
加算され、その加算値は剰余演算された後に、レジスタ
10に記録される。この値はちょうど2ライン目の最後
の画素のアドレスとなる。そして再びマルチプレクサ6
はレジスタ5からの入力を選択するように切換えられ、
レジスタ5の値とレジスタ10の値とが加算器7で加え
られて、剰余演算器9で剰余演算がされて後、レジスタ
10に記録される。これが第3ライン第1画素目のアド
レスである。
Similar to the first line, the address calculation for the second and subsequent pixels is performed in the circuit portion 31 inside the dotted rectangle. The multiplexer 19 selects the input from the register 5 and supplies it to the adder 20 until the address calculation of the second line is completed. (3) Address calculation of the third line When the address calculation of the first line is completed, the multiplexer 6 selects the input of the register 18. Therefore, adder 7
Then, the last address of the first line and the value of the register 18 are added, and the added value is recorded in the register 10 after the remainder calculation. This value is the address of the last pixel on the second line. And again multiplexer 6
Is switched to select the input from register 5,
The value of the register 5 and the value of the register 10 are added by the adder 7, the remainder operation is performed by the remainder operator 9, and the result is recorded in the register 10. This is the address of the first pixel on the third line.

【0028】以後は、第1ライン目のアドレス計算と同
時に演算が繰返される。このように各ラインの演算が終
了するごとに、マルチプレクサ6を切換えて、上記第3
ライン目のアドレス計算のための操作が必要となる。以
上のようにして、図3の上段の回路、特に回路部分30
において、奇数ラインのアドレス演算が順次行われる。
After that, the calculation is repeated simultaneously with the address calculation of the first line. Thus, every time the calculation of each line is completed, the multiplexer 6 is switched and the above third
An operation for calculating the address of the line is required. As described above, the upper circuit of FIG.
In, the address calculation of the odd line is sequentially performed.

【0029】(4)第4ライン目のアドレス計算 第2ラインのアドレス演算が終了すると、マルチプレク
サ19はレジスタ18からの入力を選択する。よって加
算器20ではレジスタ23から出力される第2ライン最
後のアドレスにレジスタ18の値が加えられる。その結
果はレジスタ21へ記録され、レジスタ21の値は剰余
演算器22で剰余演算される。そしてその結果はレジス
タ23に記録される。レジスタ23に記録された値は、
ちょうど3ライン目の最後の画素のアドレスに当たる。
次いで再びマルチプレクサ19が切換えられて、レジス
タ5の入力が選択され、レジスタ23の値とレジスタ5
の値とが加算器20で加えられる。そしてその結果はレ
ジスタ21へ記録され、剰余演算器22において剰余演
算がされた後、レジスタ23に記録される。これが第4
ラインの第1画素目のアドレスとなる。
(4) Address calculation of the fourth line When the address calculation of the second line is completed, the multiplexer 19 selects the input from the register 18. Therefore, the adder 20 adds the value of the register 18 to the last address of the second line output from the register 23. The result is recorded in the register 21, and the value of the register 21 is remainder-calculated by the remainder calculator 22. The result is recorded in the register 23. The value recorded in the register 23 is
It corresponds to the address of the last pixel on the third line.
Then the multiplexer 19 is switched again to select the input of the register 5, the value of the register 23 and the register 5
And the value of are added in adder 20. Then, the result is recorded in the register 21, the remainder calculation is performed in the remainder calculator 22, and then the result is recorded in the register 23. This is the fourth
It becomes the address of the first pixel of the line.

【0030】以後は、第2ライン目のアドレス計算と同
様に演算が繰返される。このように各ラインの演算が終
了する度に、マルチプレクサ19を切換えて、上述した
第4ライン目のアドレス計算のための操作が必要とな
る。以上のようにして、図3の下段の回路、特に点線で
囲んだ回路部分31において、偶数ラインのアドレス演
算が順次行われる。
After that, the calculation is repeated in the same manner as the address calculation of the second line. Thus, every time the calculation of each line is completed, the multiplexer 19 is switched to perform the above-described operation for calculating the address of the fourth line. As described above, the even-numbered line address calculation is sequentially performed in the lower circuit of FIG. 3, particularly in the circuit portion 31 surrounded by the dotted line.

【0031】(5)3ライン以上並列演算する場合 図3の回路では、先行する奇数ラインのアドレス計算
と、それに後続する隣接の偶数ラインのアドレス演算と
を並列計算する回路が示されているが、3ライン以上の
アドレス演算を並列に計算するためには、レジスタ2
4,乗算器25,レジスタ26から始まる回路ブロック
であって、上述の奇数ラインのアドレス演算または偶数
ラインのアドレス演算をする回路と同様の回路が必要で
ある。
(5) Parallel Calculation of Three or More Lines In the circuit of FIG. 3, a circuit for parallel calculation of the address calculation of the preceding odd line and the address calculation of the subsequent adjacent even line is shown. In order to calculate address operations of 3 lines or more in parallel, register 2
4, a circuit block starting from the multiplier 25 and the register 26, and a circuit similar to the circuit for performing the address calculation of the odd line or the even line described above is required.

【0032】そして、各ラインが演算終了したときのマ
ルチプレクサの切換は、mライン並列演算を考えた場
合、レジスタ26の入力へ切換わることとなる。この場
合、レジスタ26の初期値はl=mであるから、b(m
−1)となる。当然、第3ライン目を演算する回路ブロ
ックからm−1ライン目までの回路ブロックも必要で、
点線で示すような回路ブロック部分30,31のような
回路ブロックもm個必要となる。
The switching of the multiplexer when the calculation of each line is completed is switched to the input of the register 26 when the m-line parallel calculation is considered. In this case, since the initial value of the register 26 is l = m, b (m
-1). Of course, the circuit blocks from the circuit block for calculating the third line to the m-1th line are also required,
M circuit blocks such as circuit block portions 30 and 31 shown by dotted lines are also required.

【0033】なお、3ライン以上の並列演算する場合に
おいても、その基本的な回路構成は図3の奇数ラインの
演算回路または偶数ラインの演算回路と同様であるか
ら、これ以上の説明は省略する。いずれにせよ、3ライ
ン以上並列演算するように回路を構成した場合、アドレ
ス計算の高速化が図れることになる。
Even in the case of performing parallel calculation of three lines or more, the basic circuit configuration is the same as the odd line arithmetic circuit or the even line arithmetic circuit of FIG. 3, so further description will be omitted. . In any case, when the circuit is configured so that three lines or more are operated in parallel, the address calculation can be speeded up.

【0034】<2ページ目以降のアドレス計算>第1ペ
ージ目の第1ラインの演算の最初にレジスタ5の値をレ
ジスタ1に記録したが、これを2ページ目のアドレス演
算に先立ち処理する。レジスタ1の値とレジスタ11の
値とを乗算器で乗算し、その結果をレジスタ3に記録す
る。これで2ページ目の奇数ラインのアドレス演算の初
期設定が終了する。2ページ目以降の初期設定も同様に
行う。
<Address Calculation for Second and Later Pages> The value of register 5 was recorded in register 1 at the beginning of the operation of the first line of the first page, but this is processed prior to the address calculation of the second page. The value of register 1 and the value of register 11 are multiplied by the multiplier, and the result is recorded in register 3. This completes the initial setting of the address calculation of the odd line on the second page. The initial settings for the second and subsequent pages are similarly made.

【0035】2ページ目の偶数ラインのアドレス演算
は、その演算に先立ち、レジスタ1と同じ値がレジスタ
14に記録されているはずなので、この値とレジスタ1
2の値とを乗算器15で乗算し、その結果をレジスタ1
6に記録する。これで2ページ目の偶数ラインのアドレ
ス演算の初期設定が終了する。3ページ目以降の初期設
定も同様に行う。
In the address calculation of the even-numbered line on the second page, the same value as the register 1 should be recorded in the register 14 prior to the calculation, so this value and the register 1
The value of 2 is multiplied by the multiplier 15 and the result is stored in the register 1
Record at 6. This completes the initial setting of the address calculation for the even lines on the second page. Initial settings for the third and subsequent pages are similarly performed.

【0036】以上説明した図3のアドレス計算回路はハ
ードウェアで構成した例を示したが、ソフトウェアによ
ってアドレス計算回路を構成してもよい。その他、この
発明は請求項記載の範囲内で種々の変更が可能である。
Although the address calculating circuit in FIG. 3 described above is configured by hardware, the address calculating circuit may be configured by software. Besides, the present invention can be variously modified within the scope of the claims.

【0037】[0037]

【発明の効果】この発明によれば、ディジタル複写機、
ディジタルファクシミリ装置等のディジタル画像処理装
置において、ページメモリ等の1つの画像メモリだけを
用いて、高速に入力画像を90度回転処理して出力する
ことができる。特に、この発明では、処理する画像サイ
ズが種々異なる場合に、処理する画像の主走査幅および
副走査幅を初期値として設定するだけで、単一のアルゴ
リズムに基づく画像の90度回転が行える。
According to the present invention, a digital copying machine,
In a digital image processing apparatus such as a digital facsimile apparatus, only one image memory such as a page memory can be used to rotate an input image by 90 degrees and output it at high speed. In particular, according to the present invention, when the image sizes to be processed are different, the image can be rotated by 90 degrees based on a single algorithm simply by setting the main scanning width and the sub-scanning width of the image to be processed as initial values.

【0038】したがって、この発明をハードウェアで実
現する場合には、回路構成が容易になる。また、この発
明によれば、画像メモリの同一アドレスを指定して画素
データの読出および画素データの書込を行うから、ダイ
ナミックRAMの高速アクセスモードであるライトモデ
ィファイリードモードを利用して、高速度の画像回転処
理を行える。
Therefore, when the present invention is implemented by hardware, the circuit configuration becomes easy. Further, according to the present invention, since the pixel data is read out and the pixel data is written by designating the same address of the image memory, the write-modify-read mode, which is the high-speed access mode of the dynamic RAM, is used to achieve high speed Image rotation processing can be performed.

【0039】この発明をたとえばディジタル複写機に適
用する場合には、画像メモリへの画像データの入出力が
同時に行えるから、画像の読取とプリントアウトとが並
列に処理できる、複写速度の速い装置とすることができ
る。
When the present invention is applied to, for example, a digital copying machine, since image data can be input / output to / from an image memory at the same time, a device having a high copying speed capable of processing image reading and printing in parallel. can do.

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

【図1】この発明にかかる画像メモリのアクセス順序を
説明するための概念図である。
FIG. 1 is a conceptual diagram for explaining an access sequence of an image memory according to the present invention.

【図2】この発明の一実施例にかかる画像処理装置の全
体構成を示す概略図である。
FIG. 2 is a schematic diagram showing the overall configuration of an image processing apparatus according to an embodiment of the present invention.

【図3】この発明の一実施例にかかるアドレス計算回路
のハードウェア構成例を示す回路ブロック図である。
FIG. 3 is a circuit block diagram showing a hardware configuration example of an address calculation circuit according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

43 アドレス計算回路 1,3,5,8,10,11,12,13,14,1
6,18,21,23,24,26 レジスタ(フリ
ップフロップ) 2,15,25 乗算器 4,9,17,22 剰余演算器 6,29 マルチプレクサ 7,20 加算器
43 Address calculation circuit 1, 3, 5, 8, 10, 11, 12, 13, 14, 1
6,18,21,23,24,26 Register (flip-flop) 2,15,25 Multiplier 4,9,17,22 Remainder calculator 6,29 Multiplexer 7,20 Adder

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】主走査方向にa個、副走査方向にb個
(a,bは正の整数)の画素が配列された1ページ分の
画像データが、複数ページ分順に入力される場合に、a
×bの画素記憶容量を有する1ページ分の画像メモリを
1つだけ用いて、上記順に入力される各ページの画像デ
ータを90度回転処理するための方法であって、 前記入力画像データの画素入力に同期して、前記主走査
方向の画素数aを(n−1)乗じた値(但し、nは入力
ページの順序数)の順次倍数、または順次倍数が(ab
−1)を越えたときには、当該順次倍数を(ab−1)
で除した余りの値を指定アドレスとして順次出力し、 前記画像メモリの前記出力される指定アドレスをアクセ
スして、その指定アドレスに記憶された画像データを読
出し、次いで、その指定アドレスに前記入力画像データ
を書込み、 前記読出した画像データをライン単位で主走査方向に反
転させて90度回転画像を得ることを特徴とする、画像
データを90度回転処理する方法。
1. When one page of image data in which a number of pixels are arranged in the main scanning direction and b number of pixels (a and b are positive integers) in the sub-scanning direction are sequentially input for a plurality of pages. , A
A method for rotating the image data of each page input in the above order by 90 degrees by using only one image memory for one page having a pixel storage capacity of × b, the pixel of the input image data In synchronization with the input, the value obtained by multiplying the number of pixels a in the main scanning direction by (n-1) (where n is the order number of the input page) is a sequential multiple or a sequential multiple of (ab
-1) is exceeded, the sequential multiple is (ab-1).
The remainder value divided by is sequentially output as a designated address, the designated address output from the image memory is accessed, the image data stored at the designated address is read, and then the input image is stored at the designated address. A method for rotating image data by 90 degrees, wherein data is written and the read image data is inverted line by line in the main scanning direction to obtain a 90 degree rotated image.
【請求項2】主走査方向にa個、副走査方向にb個
(a,bは正の整数)の画素が配列された1ページ分の
画像データが、複数ページ分順に入力される場合に、前
記入力される各ページの画像データを90度回転処理す
るための画像処理装置であって、 a×bの画素記憶容量を有する1ページ分の画像メモリ
と、 前記入力画像データの画素入力に同期して、前記主走査
方向の画素数aを(n−1)乗じた値(但し、nは入力
ページの順序数)の順次倍数、または当該順次倍数が
(ab−1)を越えたときには、当該順次倍数を(ab
−1)で除した余りの値を指定アドレスとして順次出力
するアドレス指定手段と、 前記アドレス指定手段から出力される指定アドレスで、
前記画像メモリを順にアクセスし、画像メモリの指定ア
ドレスに記憶された画像データを読出し、次いで、その
指定アドレスに前記入力画像データを書込むメモリアク
セス手段と、 前記メモリアクセス手段で読出された画素データをライ
ン単位で主走査方向に反転させる手段と、を含むことを
特徴とする画像データを90度回転処理するための画像
処理装置。
2. When one page of image data in which a number of pixels are arranged in the main scanning direction and b number of pixels (a and b are positive integers) in the sub scanning direction are sequentially input for a plurality of pages. An image processing apparatus for rotating the input image data of each page by 90 degrees, comprising: an image memory for one page having a pixel storage capacity of a × b; and a pixel input of the input image data. Synchronously, a sequential multiple of a value obtained by multiplying the number of pixels a in the main scanning direction by (n-1) (where n is the order number of an input page), or when the sequential multiple exceeds (ab-1). , The sequential multiple (ab
An address designating means for sequentially outputting the remainder value divided by -1) as a designated address; and a designated address outputted from the address designating means,
Memory access means for sequentially accessing the image memory, reading image data stored at a specified address of the image memory, and then writing the input image data at the specified address; and pixel data read by the memory access means. And a means for reversing in the main scanning direction line by line, the image processing apparatus for rotating the image data by 90 degrees.
JP6201162A 1994-08-25 1994-08-25 Method and device for 90-degree-rotation processing of image data Pending JPH0863593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6201162A JPH0863593A (en) 1994-08-25 1994-08-25 Method and device for 90-degree-rotation processing of image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6201162A JPH0863593A (en) 1994-08-25 1994-08-25 Method and device for 90-degree-rotation processing of image data

Publications (1)

Publication Number Publication Date
JPH0863593A true JPH0863593A (en) 1996-03-08

Family

ID=16436405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6201162A Pending JPH0863593A (en) 1994-08-25 1994-08-25 Method and device for 90-degree-rotation processing of image data

Country Status (1)

Country Link
JP (1) JPH0863593A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007072905A1 (en) 2005-12-21 2007-06-28 Nagasaki University, National University Corporation Displacement/distortion measuring method and displacement/distortion measuring apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007072905A1 (en) 2005-12-21 2007-06-28 Nagasaki University, National University Corporation Displacement/distortion measuring method and displacement/distortion measuring apparatus
US8345333B2 (en) 2005-12-21 2013-01-01 Smart Structures Llc Displacement/distortion measuring method and displacement/distortion measuring apparatus

Similar Documents

Publication Publication Date Title
JP2685548B2 (en) Method and apparatus for rotating digital image data
JP2004289667A (en) Image processor
JP3022405B2 (en) Image memory controller
US20060215929A1 (en) Methods and apparatus for image convolution
JP2000351242A (en) Image forming device
US5712714A (en) Image processing apparatus
JPH11306343A (en) 2D data rotation processor
JP2006135825A (en) Image interpolation processor
JPS59167772A (en) Image data rotation device
JP4316476B2 (en) Image processing apparatus and image forming apparatus
JPH0420224B2 (en)
JP2537851B2 (en) Image scaling processor
JPS59204378A (en) Image processor
JPH11168610A (en) Image processing device
JP4266650B2 (en) Data processing apparatus and data processing method
JP3203024B2 (en) Image processing apparatus and image processing method
JP3092579B2 (en) Image data rotation processing method and image data rotation processing apparatus
JP4086268B2 (en) Image processing apparatus and image processing method
JP3877054B2 (en) Image reduction scaling device
JPS62164130A (en) Picture processor
JP2000231631A (en) Image rotating device
JPH0863594A (en) Memory controller for digital image processing
JPH05113859A (en) Image data printing device
JPH0622128A (en) Image processing device
JPH09331445A (en) Image processing device