JPH0563959A - Method and device for processing picture - Google Patents

Method and device for processing picture

Info

Publication number
JPH0563959A
JPH0563959A JP3225761A JP22576191A JPH0563959A JP H0563959 A JPH0563959 A JP H0563959A JP 3225761 A JP3225761 A JP 3225761A JP 22576191 A JP22576191 A JP 22576191A JP H0563959 A JPH0563959 A JP H0563959A
Authority
JP
Japan
Prior art keywords
image
page memory
output
data
processing
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
JP3225761A
Other languages
Japanese (ja)
Inventor
Makoto Takakuwa
誠 高桑
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP3225761A priority Critical patent/JPH0563959A/en
Publication of JPH0563959A publication Critical patent/JPH0563959A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To obtain a picture rotated at right angles from the picture stored in a page memory in a short time and with simple device. CONSTITUTION:The picture data supplied from a picture data supply part 1 such as a computer and a picture reader is stored in a page memory 3 temporarily. Each (n) picture element is supplied to a picture element rotation part 5 from this page memory 3, the rotation processing is performed for each (n)X(n) picture element to be restored in the page memory 3. Then, data is outputted in a byte unit from the page memory 3 in the prescribed order, and this is outputted serially by a parallel/serial converter 4 to obtain the picture rotated at right angles. The rotation processing is divided into two simple processings; an inverted processing for each block and a reading processing. The entire processing time is shortened and the processor itself is simplified.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、入力した画像データを
左方向もしくは右方向に90゜回転して出力する画像処
理方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus for rotating input image data by rotating it 90 degrees leftward or rightward.

【0002】[0002]

【発明の背景】従来、少なくとも1ページ分の出力用デ
ータを格納可能なページメモリを備えたプリンタなどラ
スター系の出力装置では、入力した画像を左方向もしく
は右方向に90゜回転させて出力する場合には、次の2
つの方法のうちどちらかが用いられることが多い。
2. Description of the Related Art Conventionally, in a raster type output device such as a printer having a page memory capable of storing at least one page of output data, an input image is rotated 90 ° to the left or to the right to be output. If the next 2
Often one of the two methods is used.

【0003】第1の方法は基本的にソフトウェアによる
ものであり、ページメモリに画像データを記憶するとき
にその画像データを予め90゜回転して記憶するもので
ある。例えばプリンタなどのハードウェアによって決ま
る1回当たりの処理データが例えば1バイトの場合、図
15に示すようにまずこの1バイトのビット数と同一か
その整数倍のラインデータすなわちここでは8ラインも
しくは8×n(nは正の整数)ラインのラインデータを
バッファメモリに格納する。
The first method is basically based on software, and when the image data is stored in the page memory, the image data is rotated by 90 ° in advance and stored. For example, when the processing data per time determined by hardware such as a printer is, for example, 1 byte, first, as shown in FIG. 15, line data which is the same as the bit number of 1 byte or an integral multiple thereof, that is, 8 lines or 8 lines in this case. The line data of xn (n is a positive integer) lines is stored in the buffer memory.

【0004】次に、バッファメモリに格納されたデータ
を転置処理した形でページメモリに記憶する。すなわち
バッファメモリ内の横方向のデータをページメモリ内で
は縦方向に並べ換えて記憶する。これによって、ページ
メモリ内に90゜回転した画像を得ることができるの
で、この画像をプリントアウトする場合は、横方向に読
み出して順次出力すればよい。なお図15では1ページ
分の画像データを4分割した場合を模式的に示したが、
実際はさらに細かく分割されて処理される。
Next, the data stored in the buffer memory is transposed and stored in the page memory. That is, the horizontal data in the buffer memory is rearranged and stored in the page memory in the vertical direction. As a result, an image rotated by 90 ° can be obtained in the page memory. Therefore, when this image is printed out, it may be read out in the horizontal direction and sequentially output. Although FIG. 15 schematically shows the case where one page of image data is divided into four,
Actually, it is divided into smaller pieces for processing.

【0005】この第1の方法では、補助的にハードウェ
アを用いることもあるが基本的にはソフトウェアで実現
されるので各種の回転処理を行なうことができる。
In the first method, hardware may be used as an auxiliary, but since it is basically realized by software, various kinds of rotation processing can be performed.

【0006】第2の方法は、基本的にハードウェアによ
るものでページメモリを横方向と縦方向の両方から出力
できるように構成しておく。そして、ページメモリには
入力した画像をそのまま記憶しておき、出力時に縦方向
のデータを順に出力し、これを横方向にプリントアウト
する。これで90゜回転した画像を得ることができる。
The second method is basically based on hardware, and is configured so that the page memory can be output in both the horizontal and vertical directions. Then, the input image is stored in the page memory as it is, and the data in the vertical direction is sequentially output at the time of output, and this is printed out in the horizontal direction. With this, an image rotated by 90 ° can be obtained.

【0007】[0007]

【発明が解決しようとする課題】上述した従来の画像処
理方法には次のような問題がある。すなわち、第1の方
法ではソフトウェアによってバッファメモリ内の横方向
のデータを縦方向に置き換える処理を行なうので、この
処理に比較的長い時間が掛かる。
The above-mentioned conventional image processing method has the following problems. That is, in the first method, the software performs the process of replacing the data in the horizontal direction in the buffer memory in the vertical direction, so that this process takes a relatively long time.

【0008】また、バッファメモリの容量が小さい場合
は、上述の置き換え処理をした後、これをページメモリ
に入力してから次のデータを受けることになる。したが
って、外部のデータ供給元、例えばホストコンピュータ
はこのようなデータの置き換え期間中もこれに係わるこ
とになるので、その間他の処理をすることができなくな
るなどの問題がある。
When the capacity of the buffer memory is small, the above replacement process is performed and then this is input to the page memory before receiving the next data. Therefore, an external data supply source, for example, a host computer, is involved in this during the data replacement period, and there is a problem that other processing cannot be performed during that period.

【0009】また、第2の方法では、例えばハードウェ
アによって決まる処理データの単位を1バイト(8ビッ
ト)とすると、横方向と縦方向の両方から出力できるよ
うにするためには少なくとも8×8個のメモリ素子が必
要となる。
In the second method, if the unit of processed data determined by hardware is 1 byte (8 bits), at least 8 × 8 is required to enable output in both the horizontal and vertical directions. Memory elements are required.

【0010】さらにこの64個の各メモリ素子に独立し
た配線制御が必要となるので、ハードウェアの規模が大
きくなる。また、高集積なメモリ素子を用いてページメ
モリを構成することもできない。
Further, since independent wiring control is required for each of the 64 memory elements, the scale of hardware increases. Further, it is not possible to form a page memory using a highly integrated memory device.

【0011】そこで、この発明は上述したような課題を
解決したものであって、短時間で回転処理を行なうこと
ができ、しかも装置の構成を簡略化できる画像処理方法
および装置を提案するものである。
Therefore, the present invention solves the above-mentioned problems, and proposes an image processing method and apparatus capable of performing rotation processing in a short time and simplifying the configuration of the apparatus. is there.

【0012】[0012]

【課題を解決するための手段】上述の課題を解決するた
め、本発明においては、入力した画像データを左方向も
しくは右方向に90゜回転して出力する画像処理方法に
おいて、画像データをH×V個(H、Vは正の整数)の
小ブロックに分割するとともに、小ブロックをn×n個
(nは正の整数)の画素に分割し、小ブロック内のn画
素からなる行と列の転置処理を行い、左回転の画像を出
力する場合は、転置処理後の各小ブロックから1行分の
n画素を単位として所定の順序で出力し、右回転の画像
を出力する場合は、転置処理後における各小ブロックの
列の順番を逆転した後、各小ブロックから1行分のn画
素を単位として所定の順序で出力するようにしたことを
特徴とするものである。
In order to solve the above-mentioned problems, in the present invention, in the image processing method of rotating input image data by 90 ° in the left direction or the right direction and outputting the image data, H × It is divided into V (H and V are positive integers) small blocks, and the small block is divided into n × n (n is a positive integer) pixels, and a row and a column consisting of n pixels in the small block. When the left rotation image is output by performing the transposition process of, the output is performed in a predetermined order in units of n pixels for one row from each small block after the transposition process, and when the right rotation image is output, It is characterized in that after the transposition processing, the order of the columns of the respective small blocks is reversed, and then each small block outputs one row of n pixels as a unit in a predetermined order.

【0013】また、上述の画像処理方法を達成するた
め、本発明においては少なくとも1ページ分の画像デー
タを格納するページメモリを有し、このページメモリ内
の画像データを90゜回転して出力する画像処理装置に
おいて、ページメモリからn画素単位で出力される画像
データをn×n画素毎に回転処理した後、ページメモリ
に再入力する部分回転手段と、ページメモリからn画素
単位で出力される画像データをシリアルに変換して出力
するパラレル・シリアル変換手段とを備え、ページメモ
リ内の部分回転処理後の画像データを回転方向に応じて
所定の順序で読み出すようにしたことを特徴とするもの
である。
In order to achieve the above-mentioned image processing method, the present invention has a page memory for storing at least one page of image data, and the image data in this page memory is rotated by 90 ° and output. In the image processing apparatus, the image data output from the page memory in units of n pixels is rotated by n × n pixels and then re-inputted into the page memory, and the page memory outputs in units of n pixels. A parallel / serial conversion means for converting the image data into serial data and outputting the serial data, and the image data after the partial rotation processing in the page memory is read in a predetermined order according to the rotation direction. Is.

【0014】[0014]

【作用】図1の原画像をH×V個、ここでは4×3個の
小ブロックに分割し、各小ブロックをn×n個、ここで
は8×8個の画素に分割する。次に各小ブロックについ
て図3に示すように行と列を置き換える転置処理を行な
うことにより、図2に示す転置処理後の画像が得られ
る。
The original image of FIG. 1 is divided into H × V, here 4 × 3, small blocks, and each small block is divided into n × n, here 8 × 8 pixels. Next, as shown in FIG. 3, the transposing process for replacing the rows and the columns is performed on each small block to obtain the image after the transposing process shown in FIG.

【0015】次にこの転置処理後の画像データを図4に
示す読み出し順序に従って読み出し、これを図5に示す
ように出力する。これによって、図7に示すように原画
像を左方向に90゜回転した画像が得られる。
Next, the image data after the transposition processing is read out in the reading order shown in FIG. 4, and is output as shown in FIG. As a result, an image obtained by rotating the original image by 90 ° to the left as shown in FIG. 7 is obtained.

【0016】原画像を右方向に90゜回転する場合は、
図2の回転処理の代わりに図8に示すように各小ブロッ
クの列の順番も入れ換えた処理をまず行う。
When the original image is rotated 90 ° to the right,
Instead of the rotation process of FIG. 2, a process in which the order of the columns of the respective small blocks is also changed as shown in FIG. 8 is first performed.

【0017】そして、この列の順番を入れ換えた画像デ
ータを図9に示す読み出し順序で読み出し、これを図1
0に示す配列で出力することにより、図11に示すよう
に原画像を右方向に90゜回転した画像が得られる。
Then, the image data in which the order of the columns is changed is read out in the reading order shown in FIG.
By outputting in the array shown in 0, an image obtained by rotating the original image by 90 ° to the right as shown in FIG. 11 is obtained.

【0018】[0018]

【実施例】続いて、本発明に係わる画像処理方法および
装置の実施例について、図面を参照して詳細に説明す
る。
Embodiments of the image processing method and apparatus according to the present invention will now be described in detail with reference to the drawings.

【0019】図1〜図6は、本発明の画像処理方法を説
明する説明図で、例えばページメモリ内に格納されてい
る原画像を左方向に90゜回転して出力する場合であ
る。この画像処理方法では、まず図1に示すように入力
した原画像をH×V(H、Vは正の整数)個の小ブロッ
クに分割し、各小ブロックをさらにn×n個(nは正の
整数)の画素データに分割する。nは通常の処理単位で
ある1バイトすなわち8ビットが実際的である。
FIGS. 1 to 6 are explanatory views for explaining the image processing method of the present invention, for example, when an original image stored in a page memory is rotated 90 ° to the left and output. In this image processing method, first, as shown in FIG. 1, the input original image is divided into H × V (H and V are positive integers) small blocks, and each small block is further divided into n × n (n: Positive integer) pixel data. As for n, 1 byte which is a normal processing unit, that is, 8 bits is practical.

【0020】次に、この画像データを図2に示すように
各小ブロック毎に転置処理を行なう。これは横方向の画
素データを縦方向に並べ換える操作である。すなわち図
3に示すように原画像の第1行(横方向)が転置処理に
よって第1列(縦方向)となり、第2行が第2列とな
り、以下同様に第3行〜第8行がそれぞれ第3列〜第8
列となる。
Next, as shown in FIG. 2, the image data is transposed for each small block. This is an operation of rearranging pixel data in the horizontal direction in the vertical direction. That is, as shown in FIG. 3, the first row (horizontal direction) of the original image becomes the first column (vertical direction) by the transposition process, the second row becomes the second column, and so on. 3rd to 8th columns
It becomes a line.

【0021】このようにしてH×V個のすべての小ブロ
ックを転置処理した画像データから、各小ブロックにお
ける1行分のn画素(ここでは8個)を単位として、次
に説明するように読み出す順序を適宜選定することによ
り、原画像を左方向に90゜回転した回転画像(図7)
が得られる。
From the image data obtained by transposing all the H × V small blocks in this way, one row of n pixels (8 in this case) in each small block is used as a unit, as described below. A rotated image obtained by rotating the original image 90 ° to the left by selecting the reading order as appropriate (Fig. 7).
Is obtained.

【0022】図4〜図6は転置処理後のデータ(図2)
を読み出す順序を説明する説明図である。図4はページ
メモリ内の転置処理後の画像データを各ブロックの1行
分、ここではn=8画素を単位として読み出す順番を示
す。なお、()内の数字はページメモリのアドレスであ
る。すなわち、本例では第1番目にアドレス31のデー
タを読み出し、第2番目にアドレス63のデータを読み
し、第3番目にアドレス95のデータを読み出す。以下
同様にして読み出し順番に従って全てのデータを読み出
す。
FIGS. 4 to 6 show data after transposition processing (FIG. 2).
It is explanatory drawing explaining the order which reads out. FIG. 4 shows the order in which the image data after transposition processing in the page memory is read out for one row of each block, where n = 8 pixels as a unit. The number in parentheses is the address of the page memory. That is, in this example, the data of the address 31 is read first, the data of the address 63 is read second, and the data of the address 95 is read third. In the same manner, all the data are read out according to the reading order.

【0023】次にこのようにして読み出した画像データ
を図5に示すように1ラインがV=3ブロックとなるよ
うに出力する。これは原画像(図1)の縦方向がVブロ
ックで構成されており、これを90゜回転すると横方向
がVブロックとなるからである。
Next, the image data thus read out is output so that one line is V = 3 blocks as shown in FIG. This is because the vertical direction of the original image (FIG. 1) is composed of V blocks, and if this is rotated 90 °, the horizontal direction becomes V blocks.

【0024】図6は上述の左方向に90゜回転処理する
場合の転置画像の構成と出力画像との関係を示す。本例
では転置画像における1ラインのバイト数L=4、1バ
イトを構成するビット数B=8、総ライン数P=24で
あるから、出力画像の1ラインはP/B=3バイトで構
成され、1ページはL×B=32ラインとなる。
FIG. 6 shows the relationship between the transposed image structure and the output image in the case of the 90 ° rotation processing in the left direction. In this example, the number of bytes of one line in the transposed image is L = 4, the number of bits constituting one byte is B = 8, and the total number of lines is P = 24. Therefore, one line of the output image is composed of P / B = 3 bytes. Thus, one page has L × B = 32 lines.

【0025】また、例えば第1ラインの読み出し開始ア
ドレスはL×B−1=31であり、以下L×B=32の
アドレス毎に読み出される。第2ラインの読み出し開始
アドレスはL×B−1−L=27であり、以下第1ライ
ンと同様に32のアドレス毎に読み出される。このよう
にしてページメモリから転置処理後の画像データを所定
の順序で出力することにより、図7に示すように原画像
を左方向に90゜回転した画像を得ることができる。
Further, for example, the read start address of the first line is L × B-1 = 31, and hereinafter, each address of L × B = 32 is read. The read start address of the second line is L × B−1−L = 27, and the read addresses are read every 32 addresses as in the first line. In this way, by outputting the image data after the transposition processing from the page memory in a predetermined order, an image obtained by rotating the original image by 90 ° to the left can be obtained as shown in FIG.

【0026】右方向に90゜回転した画像を得る場合
は、まず図8に示すように転置画像(図2)における各
小ブロックの列の順番を逆転、つまり第1列目を第8列
目に、第2列目を第7列目に、以下同様に第3〜第8列
目を第6〜第1列目に並べ変えた形の部分回転を小ブロ
ック毎に行う。
To obtain an image rotated 90 ° to the right, first, as shown in FIG. 8, the order of the columns of the respective small blocks in the transposed image (FIG. 2) is reversed, that is, the first column is changed to the eighth column. In addition, partial rotation is performed for each small block in a form in which the second column is rearranged to the seventh column, and the third to eighth columns are rearranged to the sixth to first columns.

【0027】次に、列を入れ換えた画像データから各小
ブロックにおける1行分の画素データn=8個を1単位
として、図9に示す読み出し順番に従って読み出し、こ
れを図10に示すような配列で出力する。これによって
図11に示すように原画像(図1)を右方向に90゜回
転した出力画像を得ることができる。なお図12は、右
方向に90゜回転する場合の転置列逆順画像(図8)と
出力画像(図11)との関係を示す。
Next, from the image data in which the columns are exchanged, one row of pixel data n = 8 in each small block is set as one unit and read out in the reading order shown in FIG. 9, and the read data is arranged as shown in FIG. To output. This makes it possible to obtain an output image obtained by rotating the original image (FIG. 1) 90 ° to the right as shown in FIG. Note that FIG. 12 shows the relationship between the transposed row reverse order image (FIG. 8) and the output image (FIG. 11) when the image is rotated 90 ° to the right.

【0028】上述のように、本発明は画像の回転処理を
2つの処理、すなわち部分的な転置処理と、この転置処
理後の画像データを所定の順序で出力する出力処理とに
分けるものであり、これによって各処理が単純化された
ものとなる。従って、各処理を直接ハードウェアで実現
することが容易となる。
As described above, the present invention divides the image rotation process into two processes, that is, a partial transposition process and an output process for outputting the image data after the transposition process in a predetermined order. , This simplifies each process. Therefore, it becomes easy to directly implement each process by hardware.

【0029】図13は上述した画像処理方法を達成する
ための画像処理装置の構成を示す。コンピュータや画像
読取り装置などの画像データ供給部1から供給された画
像データは、インタフェース2を経てそのまま一旦ペー
ジメモリ3に格納される。画像を回転しないでそのまま
出力する場合は、ページメモリ3からパラレル・シリア
ル変換器4を経てそのまま出力される。
FIG. 13 shows the structure of an image processing apparatus for achieving the above-described image processing method. The image data supplied from the image data supply unit 1 such as a computer or an image reading device is temporarily stored in the page memory 3 as it is via the interface 2. When the image is output as it is without being rotated, it is output as it is from the page memory 3 through the parallel / serial converter 4.

【0030】画像を90゜回転して出力する場合は、ペ
ージメモリ3内のデータが1バイト単位で画素回転部5
に供給され、ここで例えば8×8画素毎に転置処理や列
逆順処理などが行なわれて再度ページメモリ3に格納さ
れる。これによってページメモリ3内の画像データは、
原画像の各ブロックを転置処理もしくはこれを列逆順処
理したものとなる。これを上述の読み出し順序にしたが
って出力すれば、回転画像を得ることができる。
When the image is rotated by 90 ° and output, the data in the page memory 3 is transferred in 1-byte units to the pixel rotation unit 5.
Are stored in the page memory 3 again after being subjected to transposition processing, column reverse order processing, etc. for every 8 × 8 pixels. As a result, the image data in the page memory 3 is
Each block of the original image is transposed or processed in the column reverse order. If this is output according to the above-mentioned reading order, a rotated image can be obtained.

【0031】このような回転処理は、例えばプリンタの
場合はプリンタ制御用のMPU6および画像処理制御部
7によって制御される。
In the case of a printer, for example, such rotation processing is controlled by the MPU 6 for controlling the printer and the image processing control section 7.

【0032】このような画像処理装置においては、画像
データが既にページメモリ3に記憶されている場合で
も、ページメモリ3から読み出した各ブロック毎のデー
タを画素回転部5で処理して再度このページメモリ3の
同じ位置に記憶させれば、90゜回転した画像を容易に
出力することができる。したがって複雑な記憶管理や読
み出し順序の制御などを必要としないので、装置の構成
が簡単になる。
In such an image processing apparatus, even when the image data is already stored in the page memory 3, the data for each block read from the page memory 3 is processed by the pixel rotating unit 5 and the page is re-processed. If the images are stored in the same position of the memory 3, the image rotated by 90 ° can be easily output. Therefore, complicated storage management and read order control are not required, and the device configuration is simplified.

【0033】また、回転処理に際しては画像データがペ
ージメモリ3に全て記憶されている必要はなく、ページ
メモリ3に8ライン分だけ入力された時点で8×8画素
毎に画素回転部5で処理すればよいので、画像データ供
給部1の待ち時間がなくなる。
Further, in the rotation processing, it is not necessary that all the image data is stored in the page memory 3, and at the time when only 8 lines are input to the page memory 3, the processing is performed by the pixel rotation unit 5 every 8 × 8 pixels. Therefore, the waiting time of the image data supply unit 1 is eliminated.

【0034】なお、原画像データを例えば8ライン以上
のバッファメモリで受けるようにすれば、このバッファ
メモリの出力を直接画素回転部5で処理し、これをペー
ジメモリ3に格納することで各ブロック毎に転置処理し
た画像データを得ることもできる。
If the original image data is received by, for example, a buffer memory of 8 lines or more, the output of this buffer memory is directly processed by the pixel rotation unit 5 and stored in the page memory 3 so that each block is processed. It is also possible to obtain transposed image data for each.

【0035】また、本発明によれば転置処理後の小ブロ
ック内での行もしくは列の逆転処理や読み出し順序を適
宜選定することにより180゜回転や、反転画像などを
得ることが容易になる。
Further, according to the present invention, it is easy to obtain a 180 ° rotation, a reversed image, etc. by appropriately selecting the reverse processing of rows or columns in the small block after the transposing processing and the reading order.

【0036】さらに本発明によれば、ページメモリ3に
は転置処理後の画像データもしくはこれを列逆順した画
像データが残されている。この画像データはnライン、
本例では8ライン毎に原画像データと同一の領域に保存
されている。
Further, according to the present invention, the page memory 3 is left with the image data after the transposition processing or the image data obtained by reversing the image data in the reverse column order. This image data has n lines,
In this example, every 8 lines are stored in the same area as the original image data.

【0037】従って本発明を例えばファクシミリ装置な
どに適用すれば、次に説明するようにランドスケープを
用いた分割ページ出力時のオーバーラップに必要なデー
タを、ページメモリ上の連続したアドレスに確保できる
のでページメモリの管理が容易になる。
Therefore, if the present invention is applied to, for example, a facsimile machine, it is possible to secure the data necessary for overlap at the time of output of divided pages using a landscape at consecutive addresses on the page memory as described below. Management of page memory becomes easy.

【0038】すなわち、ファクシミリ装置においては送
信側が例えば図14(a)に示すA3サイズのポートレ
イト出力(人物画など縦長の画像)による原稿を送信し
ても、受信側にA3サイズの記録能力がない場合は、こ
れを標準で設定されているA4サイズで記録することに
なる。
That is, in the facsimile apparatus, even if the transmitting side transmits an original document of portrait output of A3 size (portrait image such as portrait) shown in FIG. 14A, the receiving side has a recording capacity of A3 size. If not, this will be recorded in the A4 size set as standard.

【0039】この場合、受信側で送信側と同じ大きさの
画像を得るには、一旦受信画像をページメモリ内に格納
し、これを同図(b)に示すように上下2つに分割し
て、各画像を90゜回転したA4サイズのランドスケー
プ出力(風景画など横長の画像)として記録し、これを
上下に貼り合わせればよい。
In this case, in order to obtain an image of the same size on the receiving side as on the transmitting side, the received image is temporarily stored in the page memory, and this is divided into upper and lower parts as shown in FIG. Then, each image is recorded as an A4 size landscape output (a landscape image such as a landscape image) rotated by 90 °, and this can be pasted up and down.

【0040】この時、貼り合わせ代としてオーバーラッ
プ領域を設けるのが一般的であり、本発明ではオーバー
ラップ領域のデータがそのままページメモリの最後のリ
ード部分に対応して格納されているから、このデータを
消さずに保存しておき、次のページに再度出力するだけ
でよい。
At this time, it is general to provide an overlap area as a bonding margin, and in the present invention, the data in the overlap area is stored as it is in correspondence with the last read portion of the page memory. All you have to do is save the data and output it again on the next page.

【0041】これに対して従来は90゜回転した後で
は、ページメモリの最終リード部分にオーバーラップ領
域のデータが格納されているとは限らないので、そのデ
ータのアドレス管理などが面倒になる。
On the other hand, conventionally, after 90 ° rotation, the data in the overlap area is not always stored in the final read portion of the page memory, so that address management of the data becomes troublesome.

【0042】[0042]

【発明の効果】以上のように本発明は、原画像を小ブロ
ックに分割し、この小ブロック毎に転置処理などを行な
った後、各小ブロックの1行分のデータを単位としてこ
れを所定の順序で出力するようにしたものである。
As described above, according to the present invention, the original image is divided into small blocks, the transposing process is performed for each small block, and then the data for one row of each small block is defined as a unit. The output is made in the order of.

【0043】したがって本発明によれば、各処理すなわ
ち転置処理および読出処理が単純化されるので、全体の
処理時間が短くなるとともに、簡単なハードウェアで回
転処理を容易に行なうことができるなどの効果がある。
Therefore, according to the present invention, each process, that is, the transposing process and the reading process is simplified, so that the total processing time is shortened and the rotation process can be easily performed with simple hardware. effective.

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

【図1】本発明に係わる画像処理方法における原画像を
説明する説明図である。
FIG. 1 is an explanatory diagram illustrating an original image in an image processing method according to the present invention.

【図2】転置処理後の画像を説明する説明図である。FIG. 2 is an explanatory diagram illustrating an image after transposition processing.

【図3】転置処理を説明する説明図である。FIG. 3 is an explanatory diagram illustrating transposition processing.

【図4】90゜左方向回転時の読み出し順序を説明する
説明図である。
FIG. 4 is an explanatory diagram illustrating a reading order when 90 ° counterclockwise rotation is performed.

【図5】90゜左方向回転時の出力画像に対応するペー
ジメモリのアドレスを説明する説明図である。
FIG. 5 is an explanatory diagram illustrating an address of a page memory corresponding to an output image when rotated to the left by 90 °.

【図6】90゜左方向回転時の転置画像と出力画像の関
係を説明する説明図である。
FIG. 6 is an explanatory diagram illustrating a relationship between a transposed image and an output image when rotating 90 ° to the left.

【図7】90゜左方向回転画像を説明する説明図であ
る。
FIG. 7 is an explanatory diagram illustrating a 90 ° left rotation image.

【図8】転置処理画像の列逆順処理後の画像を説明する
説明図。
FIG. 8 is an explanatory diagram illustrating an image after a column reverse order process of a transposed image.

【図9】90゜右回転時の読み出し順序を説明する説明
図である。
FIG. 9 is an explanatory diagram illustrating a reading order during 90 ° clockwise rotation.

【図10】90゜右回転時の出力画像に対応するページ
メモリを説明する説明図である。
FIG. 10 is an explanatory diagram illustrating a page memory corresponding to an output image when rotated by 90 ° clockwise.

【図11】90゜右回転画像を説明する説明図である。FIG. 11 is an explanatory diagram illustrating a 90 ° right rotation image.

【図12】90゜右回転時の転置列逆順画像と出力画像
の関係を説明する説明図である。
FIG. 12 is an explanatory diagram illustrating a relationship between a transposed row reverse order image and an output image when rotating 90 ° clockwise.

【図13】本発明に係わる画像処理装置の構成図であ
る。
FIG. 13 is a configuration diagram of an image processing apparatus according to the present invention.

【図14】オーバーラップ出力を説明する説明図であ
る。
FIG. 14 is an explanatory diagram illustrating overlap output.

【図15】従来例に係わる画像処理方法を説明する説明
図である。
FIG. 15 is an explanatory diagram illustrating an image processing method according to a conventional example.

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

1 画像データ供給部 2 インタフェース 3 ページメモリ 4 パラレル・シリアル変換器 5 画素回転部 6 MPU 7 画像処理制御部 1 image data supply unit 2 interface 3 page memory 4 parallel / serial converter 5 pixel rotation unit 6 MPU 7 image processing control unit

フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/66 350 8420−5L G09G 5/36 8121−5G Front page continuation (51) Int.Cl. 5 Identification code Office reference number FI Technical display location G06F 15/66 350 8420-5L G09G 5/36 8121-5G

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力した画像データを左方向もしくは右
方向に90°回転して出力する画像処理方法において、 上記画像データをH×V個(V、Hは正の整数)の小ブ
ロックに分割するとともに、上記小ブロックをn×n個
(nは正の整数)の画素に分割し、 上記小ブロック内の上記n画素からなる行と列の転置処
理を行い、 左回転の画像を出力する場合は、上記転置処理後の上記
各小ブロックから1行分のn画素を単位として所定の順
序で出力し、 右回転の画像を出力する場合は、上記転置処理後におけ
る各小ブロックの列の順番を逆転した後、上記各小ブロ
ックから1行分のn画素を単位として所定の順序で出力
するようにしたことを特徴とする画像処理方法。
1. An image processing method for rotating input image data by 90 ° to the left or right and outputting the divided image data into H × V (V, H is a positive integer) small blocks. In addition, the small block is divided into n × n (n is a positive integer) pixels, the row and column consisting of the n pixels in the small block are transposed, and a left-rotated image is output. In the case of outputting from the respective small blocks after the transposition processing in a predetermined order in units of n pixels for one row, and when outputting a right-rotated image, the columns of the respective small blocks after the transposition processing are output. After reversing the order, an image processing method is characterized in that n pixels for one row are output in a predetermined order from each of the small blocks.
【請求項2】 少なくとも1ページ分の画像データを格
納するページメモリを有し、このページメモリ内の画像
データを90゜回転して出力する画像処理装置におい
て、 上記ページメモリからn画素単位で出力される画像デー
タをn×n画素毎に回転処理した後、上記ページメモリ
に再入力する部分回転手段と、 上記ページメモリからn画素単位で出力される画像デー
タをシリアルに変換して出力するパラレル・シリアル変
換手段とを備え、 上記ページメモリ内の部分回転処理後の画像データを回
転方向に応じて所定の順序で読み出すようにしたことを
特徴とする画像処理装置。
2. An image processing apparatus having a page memory for storing at least one page of image data and outputting the image data in the page memory by rotating it by 90 degrees, and outputting from the page memory in units of n pixels. Image data output from the page memory in units of n pixels are serially converted and output. An image processing apparatus comprising serial conversion means, wherein the image data after the partial rotation processing in the page memory is read in a predetermined order according to the rotation direction.
JP3225761A 1991-09-05 1991-09-05 Method and device for processing picture Pending JPH0563959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3225761A JPH0563959A (en) 1991-09-05 1991-09-05 Method and device for processing picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3225761A JPH0563959A (en) 1991-09-05 1991-09-05 Method and device for processing picture

Publications (1)

Publication Number Publication Date
JPH0563959A true JPH0563959A (en) 1993-03-12

Family

ID=16834405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3225761A Pending JPH0563959A (en) 1991-09-05 1991-09-05 Method and device for processing picture

Country Status (1)

Country Link
JP (1) JPH0563959A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001117555A (en) * 1999-08-05 2001-04-27 Matsushita Electric Ind Co Ltd Modular structure for image inverted memory using synchronous dram
JP2007200141A (en) * 2006-01-27 2007-08-09 Canon Inc Image forming apparatus and image forming method
JP2020134607A (en) * 2019-02-15 2020-08-31 ルネサスエレクトロニクス株式会社 Semiconductor device and semiconductor system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001117555A (en) * 1999-08-05 2001-04-27 Matsushita Electric Ind Co Ltd Modular structure for image inverted memory using synchronous dram
JP2007200141A (en) * 2006-01-27 2007-08-09 Canon Inc Image forming apparatus and image forming method
JP2020134607A (en) * 2019-02-15 2020-08-31 ルネサスエレクトロニクス株式会社 Semiconductor device and semiconductor system

Similar Documents

Publication Publication Date Title
JPH0563818B2 (en)
US5889893A (en) Method and apparatus for the fast rotation of an image
JP3880680B2 (en) A system that converts source images to destination images
JPH0563959A (en) Method and device for processing picture
JPH11306343A (en) Rotational processing device for two-dimensional data
JPS59167772A (en) Picture data rotating device
US6980701B1 (en) Image processing method and apparatus capable of rotating and reversing an input image
JP2008136125A (en) Image processing apparatus
JPH06111012A (en) Image processor
JP3167684B2 (en) Context generation circuit and method for small screen
JPS62173526A (en) Page buffer control system
JP2000231631A (en) Image rotating device
JP3092579B2 (en) Image data rotation processing method and image data rotation processing apparatus
JP3005014B2 (en) Printing equipment
JPS59172881A (en) Picture information processing system
JP3016372B2 (en) Image processing device
JPH07122899B2 (en) High speed rotation circuit
JPH08147458A (en) Memory control unit
JPH1063258A (en) Device and method for picture processing
JPH08147478A (en) Moving image decoding device
JP2001291101A (en) Image processor
JPH0477971A (en) Picture processor
JP2001320570A (en) Circuit and method for decoding and rotating image and computer readable recording medium with their program stored therein
JPH11150644A (en) Image data processor
JPS62298877A (en) Thinning-out processing system for image data