JPH07319761A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH07319761A
JPH07319761A JP6136672A JP13667294A JPH07319761A JP H07319761 A JPH07319761 A JP H07319761A JP 6136672 A JP6136672 A JP 6136672A JP 13667294 A JP13667294 A JP 13667294A JP H07319761 A JPH07319761 A JP H07319761A
Authority
JP
Japan
Prior art keywords
area
image
address
block
original image
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
JP6136672A
Other languages
Japanese (ja)
Inventor
Masatomo Igarashi
正智 五十嵐
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP6136672A priority Critical patent/JPH07319761A/en
Publication of JPH07319761A publication Critical patent/JPH07319761A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Memory System (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To reduce the using memory area by reading blocks from a first area and a buffer area in accordance with the read address to transfer them to a rotating device and transferring blocks after rotation processing to the buffer area and a second area in accordance with the write address. CONSTITUTION:An original picture is divided into rectangular blocks in accordance with a predeterminate division ratio, and they are rotated and are transferred to predeterminate transfer destinations. A block B1 is rotated 90 deg. and is transferred to the area starting with address A1, and a block B2 is rotated 0 deg. and is transferred to the area starting with address A2, and blocks B3, B4. ana as are rotated at 90 deg. and are transferred to areas starting with addresses A3, A4, and A5 respectively. Finally, the block B2 saved in the area starting with address A2, namely, the buffer area is rotated 90 deg. and is transferred to the area starting with address A6. A 90 deg. rotated picture is obtained by these processings.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関するも
のであり、特に、少ないメモリ使用量で原画像を回転し
たり拡大・縮小したりするのに好適な画像処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus suitable for rotating or enlarging / reducing an original image with a small memory usage.

【0002】[0002]

【従来の技術】上位装置から供給された原画像を拡大・
縮小したり、回転させたりする画像処理装置が知られて
いる。この画像処理では、原画像の画像データを画像メ
モリの所定の領域に書込み、該画像データに上記回転等
の処理を加え、先の領域とは異なる他の領域に処理後の
画像データを書込んでいた。したがって、画像処理のた
めには、例えば画像の回転処理では画像データ量の2倍
のメモリ領域が必要であった。
2. Description of the Related Art Enlarging an original image supplied from a host device
Image processing devices that reduce and rotate are known. In this image processing, the image data of the original image is written in a predetermined area of the image memory, the processing such as rotation is applied to the image data, and the processed image data is written in another area different from the previous area. I was out. Therefore, for image processing, for example, a memory area that is twice the amount of image data is required for image rotation processing.

【0003】画像を回転させるときに使用するメモリ領
域を上記の場合より少なくすることができる装置として
特公平1−17183号公報に記載されている装置があ
る。該装置では、原画像と同じメモリ容量で回転画像を
得ることが可能である。該装置による画像の回転処理で
は、原画像を画像メモリに書き込む際、行アドレスと列
アドレスとを交換することにより、原画像を反転したイ
メージが画像メモリに記憶される。したがって、該反転
イメージをアドレスの最後の方からアクセスして出力す
れば、結果として原画像が90度回転した画像が得られ
る。
An apparatus described in Japanese Patent Publication No. 1-17183 can reduce the memory area used when rotating an image as compared with the above case. With this device, it is possible to obtain a rotated image with the same memory capacity as the original image. In the image rotation processing by the apparatus, when the original image is written in the image memory, the row address and the column address are exchanged so that an inverted image of the original image is stored in the image memory. Therefore, when the inverted image is accessed and output from the end of the address, an image obtained by rotating the original image by 90 degrees is obtained as a result.

【0004】[0004]

【発明が解決しようとする課題】上記従来の画像処理装
置には次のような問題点があった。上記公報に記載され
た装置では、処理の対象が回転のみである。すなわち、
原画像の反転処理と逆順のアクセス手法との組合わせに
よるものであるから、回転と拡大・縮小との複合処理に
適用することはでない。このように、従来は、画像の拡
大・縮小または拡大・縮小と回転の組合わせを行うため
に、原画像と処理後の画像のデータ量に相当する容量を
持つ画像メモリが必要であり、メモリ資源を有効に活用
できないという問題点があった。
The above-mentioned conventional image processing apparatus has the following problems. In the device described in the above publication, the object of processing is only rotation. That is,
Since it is a combination of the inversion process of the original image and the access method in the reverse order, it is not applied to the combined process of rotation and enlargement / reduction. As described above, conventionally, in order to perform image enlargement / reduction or a combination of enlargement / reduction and rotation, an image memory having a capacity equivalent to the data amount of the original image and the processed image is required. There was a problem that resources could not be used effectively.

【0005】本発明は、上記問題点を解消し、使用する
メモリ領域を少なくすることができる画像処理装置を提
供することを目的とする。
It is an object of the present invention to solve the above problems and to provide an image processing apparatus capable of reducing the memory area used.

【0006】[0006]

【課題を解決するための手段】上記の課題を解決し、目
的を達成するための本発明は、原画像を展開する第1の
領域、および処理後画像の転記先であって、前記第1の
領域の一部を含む第2の領域、ならびに前記第1および
第2の領域のいずれにも属さないバッファ領域が設定さ
れた画像メモリと、少なくとも前記バッファ領域と同一
サイズのブロックおよび前記第2の領域のうち第1の領
域と重複しない領域と同一サイズのブロックを含む複数
のブロックに原画像を分割するための分割パターンを記
憶した分割パターン記憶手段と、前記複数のブロックの
うち前記バッファ領域と同一サイズのブロックを前記バ
ッファ領域に転記し、該転記した1つのブロックおよび
残りのブロックを予定の順序で前記第2の領域の予定ア
ドレスに転記するための書込パターンを記憶した書込パ
ターン記憶手段と、前記分割パターンおよび原画像のサ
イズに従って前記第1の領域およびバッファ領域から前
記ブロックを読み出すための読出アドレスを発生する読
出アドレス発生手段と、前記書込パターンおよび原画像
のサイズに従って第2の領域およびバッファ領域へ前記
ブロックを転記するための書込アドレスを発生する書込
アドレス発生手段と、前記読出アドレスに従って第1の
領域およびバッファ領域から前記ブロックを読み出して
回転装置に転送し、かつ前記書込アドレスに従って回転
処理後のブロックを前記バッファ領域および第2の領域
へ転送するためのDMA装置とを具備した点に第1の特
徴がある。
SUMMARY OF THE INVENTION The present invention for solving the above problems and achieving the object includes a first area for developing an original image and a transfer destination of a processed image, which is the first area. An image memory in which a second area including a part of the area and a buffer area that does not belong to any of the first and second areas is set, a block having at least the same size as the buffer area, and the second area. Division pattern storing means for storing a division pattern for dividing the original image into a plurality of blocks including a block having the same size as the first area of the plurality of blocks, and the buffer area of the plurality of blocks. A block having the same size as that in the buffer area, and the transferred one block and the remaining blocks are transferred in the predetermined order to the planned address of the second area. Pattern storing means for storing a write pattern for storing the read pattern, and read address generating means for generating a read address for reading the block from the first area and the buffer area according to the size of the division pattern and the original image, Write address generating means for generating a write address for transferring the block to a second area and a buffer area according to the size of the write pattern and the original image; and a write address from the first area and the buffer area according to the read address. A first feature is that the DMA device is provided for reading the block and transferring the block to the rotating device, and transferring the block after the rotating process to the buffer region and the second region according to the write address. .

【0007】また、本発明は、原画像を展開する第1の
領域および処理後画像の転記先となる第2の領域を含
み、前記2領域のうちサイズの小さい一方の領域がサイ
ズの大きい他方の領域の隅部に含まれるように設定され
た画像メモリと、前記拡大・縮小パラメータに基づいて
指示内容が拡大か縮小かを判断する拡大・縮小判別手段
と、前記拡大・縮小判別手段の判別結果に応じ、拡大の
場合は小さいメモリ領域に展開された原画像の終端側か
ら画像の読み出しを開始し、縮小の場合は大きいメモリ
に展開された原画像の始端側から画像の読み出しを開始
するため読出アドレスを発生する読出アドレス発生手段
と、前記拡大・縮小判別手段の判別結果に応じ、拡大の
場合は大きいメモリ領域の終端側から処理後画像の書込
みを開始し、縮小の場合は小さいメモリ領域の始端側か
ら処理後画像の書込みを開始するための書込アドレスを
発生する書込アドレス発生手段とを具備し、前記拡大・
縮小装置は、前記読出アドレスに従って第1の領域から
画像を読み出して拡大または縮小を行い、かつ前記書込
アドレスに従って拡大・縮小処理後の画像を第2の領域
へ転記するように構成された点に特徴がある。
Further, the present invention includes a first area for expanding an original image and a second area as a transfer destination of a processed image, wherein one area having a smaller size of the two areas has the other area having a larger size. Image memory set to be included in the corner of the area, enlargement / reduction determination means for determining whether the instruction content is enlargement or reduction based on the enlargement / reduction parameter, and determination of the enlargement / reduction determination means According to the result, in the case of enlargement, the image reading is started from the end side of the original image expanded in the small memory area, and in the case of reduction, the image reading is started from the start side of the original image expanded in the large memory. Therefore, in the case of enlargement, writing of the processed image is started from the end side of the large memory area in accordance with the determination result of the readout address generating means for generating the readout address and the enlargement / reduction determination means to reduce the size. If will and a write address generating means for generating a write address for starting writing of the processed image from the starting end of the small memory area, said expansion and
The reduction device is configured to read an image from the first area according to the read address to enlarge or reduce the image, and transfer the image after the enlargement / reduction processing to the second area according to the write address. Is characterized by.

【0008】[0008]

【作用】第1の特徴を有する本発明では、複数ブロック
のうちの1つをバッファ領域に一旦退避させるととも
に、もう1つのブロックを第2の領域のうち第1の領域
と重複しない部分に転記できる。したがって、これらの
退避や転記によって空き領域となった第2の領域のうち
の残りの部分に第1の領域から残りのブロックを回転処
理をして転記できる。前記退避したブロックを最後に第
2の領域の予定位置に転記することで回転処理が終了す
る。このように、原画像を展開したメモリ領域の他に、
2つのブロックサイズに相当するメモリ領域を確保すれ
ば回転処理を行なうことができる。
In the present invention having the first feature, one of the plurality of blocks is temporarily saved in the buffer area, and the other block is transferred to a portion of the second area which does not overlap with the first area. it can. Therefore, the remaining blocks from the first area can be rotated and transferred to the remaining part of the second area that has become an empty area due to the saving and transfer. The rotation processing is completed by finally transferring the saved block to a predetermined position in the second area. In this way, in addition to the memory area where the original image is expanded,
If a memory area corresponding to two block sizes is secured, rotation processing can be performed.

【0009】また、第2の特徴を有する本発明によれ
ば、原画像を展開する第1の領域と処理後の画像の転記
先となる第2の領域のうち、大きい方に小さい方が含ま
れる形でメモリ領域が確保され、このメモリ領域内で画
像の拡大・縮小が行われる。
According to the present invention having the second feature, the larger one of the first region in which the original image is developed and the second region to which the processed image is transferred is included in the smaller one. A memory area is secured in such a manner that the image is enlarged / reduced in this memory area.

【0010】すなわち、拡大の場合は、第1の領域が第
2の領域に含まれるようにメモリ領域を設定し、第2の
領域のうち、第1の領域と重複しない部分から処理後画
像を書込んでいくようにすることにより、第2の領域内
で拡大処理を行える。
That is, in the case of enlargement, the memory area is set so that the first area is included in the second area, and the processed image is output from a portion of the second area which does not overlap with the first area. By performing the writing, the enlargement processing can be performed in the second area.

【0011】一方、縮小の場合は、第2の領域が第1の
領域に含まれるようにメモリ領域を設定し、第1の領域
から抽出した画像を縮小して第2の領域に書込む。この
場合には、メモリ領域の始端側から原画像の読み出しお
よび処理後画像の書込みが行われるので、処理後画像は
処理前の画像が展開されていた領域の一部に転記される
ことになり、大きいサイズの第1の領域内で縮小処理を
行える。
On the other hand, in the case of reduction, the memory area is set so that the second area is included in the first area, and the image extracted from the first area is reduced and written in the second area. In this case, since the original image is read and the processed image is written from the start side of the memory area, the processed image is transcribed to a part of the area where the unprocessed image was developed. , Reduction processing can be performed in the first area having a large size.

【0012】[0012]

【実施例】以下、図面を参照して本発明を詳細に説明す
る。図5は本発明の画像処理装置の構成を上位装置とし
てのホストシステムとの関連で示したハード構成図であ
る。同図において、画像処理装置1は汎用バスインタフ
ェース4を介して上位装置つまりホストシステム16の
汎用バス15に接続される。汎用バスインタフェース4
にはCPUバス5が接続され、さらにバスドライバ(D
/R)6を介して画像バス12が接続される。画像処理
実行手段13として拡大・縮小装置9、回転装置10が
設けられ、該画像処理実行手段13はCPUバス5と画
像バス12とに接続される。また、DMA装置14がC
PUバス5および画像バス12間に設けられる。DMA
装置14は回転装置9および画像メモリ11間での画像
データの双方向転送を実行する。前記画像バス12には
画像メモリ11が接続される。該画像処理装置1の全体
はCPU2によって制御される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the drawings. FIG. 5 is a hardware configuration diagram showing the configuration of the image processing apparatus of the present invention in relation to a host system as a host apparatus. In the figure, the image processing apparatus 1 is connected to a higher-level device, that is, a general-purpose bus 15 of a host system 16 via a general-purpose bus interface 4. General-purpose bus interface 4
CPU bus 5 is connected to the bus driver (D
The image bus 12 is connected via / R) 6. An enlargement / reduction device 9 and a rotation device 10 are provided as the image processing execution means 13, and the image processing execution means 13 is connected to the CPU bus 5 and the image bus 12. In addition, the DMA device 14 is C
It is provided between the PU bus 5 and the image bus 12. DMA
The device 14 performs bidirectional transfer of image data between the rotating device 9 and the image memory 11. An image memory 11 is connected to the image bus 12. The entire image processing apparatus 1 is controlled by the CPU 2.

【0013】前記拡大・縮小装置10は、ホストシステ
ム16から画像メモリ11に書込まれた画像の処理開始
アドレス、主走査画素数、副走査画素数、メモリ水平方
向サイズつまり処理のために確保されたメモリ領域のサ
イズ、ならびに処理後データの転送先アドレス、主走査
画素数、副走査画素数、メモリ水平方向サイズに従って
画像メモリ11上で拡大・縮小処理を実行する。
The enlarging / reducing device 10 is secured for the processing start address of the image written in the image memory 11 from the host system 16, the number of main scanning pixels, the number of sub scanning pixels, the horizontal size of the memory, that is, the processing. The enlargement / reduction processing is executed on the image memory 11 according to the size of the memory area, the transfer destination address of the processed data, the number of main scanning pixels, the number of sub-scanning pixels, and the horizontal size of the memory.

【0014】また、前記回転装置9は画像メモリ11か
ら読込んだ画像データを指示角度に従って回転させ、再
び画像メモリ11に出力するものである。前記画像メモ
リ11は画像バス12における1次元のアドレスによっ
てアクセスされる。
The rotating device 9 rotates the image data read from the image memory 11 in accordance with the designated angle and outputs the image data to the image memory 11 again. The image memory 11 is accessed by a one-dimensional address on the image bus 12.

【0015】これらの構成により、ホストシステム16
に蓄積されている画像データは汎用バスインタフェース
4を介して画像処理装置1に転送されて画像処理がなさ
れる。ホストシステム16から出力された画像処理のた
めの処理コマンドは汎用バスインタフェース4のレジス
タにセットされ、画像処理装置1は該レジスタを参照し
ながら処理を実行する。処理コマンドには、処理対象と
なる原画像のサイズ、ならびに拡大・縮小および回転等
の処理の種類が含まれる。処理された画像データは画像
メモリ11に展開され、その後のホストシステム16か
らの要求に従って読み出され、ホストシステム16に設
けられるプリンタ(図示せず)に送られて記録出力され
る。
With these configurations, the host system 16
The image data stored in is transferred to the image processing apparatus 1 via the general-purpose bus interface 4 and subjected to image processing. The processing command for image processing output from the host system 16 is set in the register of the general-purpose bus interface 4, and the image processing apparatus 1 executes the processing while referring to the register. The processing command includes the size of the original image to be processed and the types of processing such as enlargement / reduction and rotation. The processed image data is expanded in the image memory 11, read out in accordance with a request from the host system 16 thereafter, sent to a printer (not shown) provided in the host system 16, and recorded and output.

【0016】以上のハード構成を有する画像処理装置1
の処理の一例を説明する。図1は原画像を90度回転さ
せるための手順を示す模式図である。ここではすべて回
転方向は反時計方向とする。同図(a)に示すように原
画像のサイズは縦と横の比率が(ルート2):1であ
る。また、図1(b)に示すように、原画像および処理
後画像を格納するため、画像メモリ11には(ルート
2)×(ルート2)のメモリ領域を確保する。メモリ領
域は、原画像が展開されている第1の領域と、後述のブ
ロックB2を一旦退避させるバッファ領域と、処理後画
像を書込むための第2の領域とからなる。該第1および
第2の領域は互いに重複する部分を有するが、バッファ
領域は第1および第2の領域のいずれにも含まれないよ
うに設定されている。なお、メモリ領域の大きさは図中
に記載した水平方向メモリサイズで代表する。
The image processing apparatus 1 having the above hardware configuration
An example of the processing will be described. FIG. 1 is a schematic diagram showing a procedure for rotating an original image by 90 degrees. Here, the rotation direction is all counterclockwise. As shown in FIG. 9A, the size of the original image has a ratio of length to width of (route 2): 1. Further, as shown in FIG. 1B, in order to store the original image and the processed image, a memory area of (route 2) × (route 2) is secured in the image memory 11. The memory area includes a first area in which the original image is developed, a buffer area in which a block B2 described later is temporarily saved, and a second area for writing the processed image. The first and second areas have portions that overlap each other, but the buffer area is set so as not to be included in either the first or second area. The size of the memory area is represented by the horizontal memory size shown in the figure.

【0017】回転処理では、まず予定の分割比率に従っ
て前記原画像を複数の矩形ブロックに分割する。分割さ
れた各ブロックの縦と横の比率は図示のとおりである。
続いて、分割された各ブロックを回転装置9で回転させ
て予定の転記先へ転記する。各ブロックの転記先は図中
丸数字およびその数字から引き出した矢印で示す。ま
ず、ブロックB1を90度回転させてアドレスA1から
始まる領域に転記する(図1(c))。この回転処理で
は、ブロックを1ワード(16×16ビット)ずつ読み
出して回転処理を加え、転記先に書込む。90度回転の
場合、読み出しは図中左から右の方向に1ワードずつ行
い、書込みは図中下から上の方向へ1ワードずつ行う。
したがって、読み出しアドレスは1ワード単位でインク
リメントし、書込みアドレスは1ワード単位でデクリメ
ントしていく。
In the rotation process, first, the original image is divided into a plurality of rectangular blocks according to a predetermined division ratio. The vertical and horizontal ratios of the divided blocks are as shown.
Then, the divided blocks are rotated by the rotating device 9 and transferred to a predetermined transfer destination. The transfer destination of each block is indicated by a circled number in the figure and an arrow drawn from the number. First, the block B1 is rotated by 90 degrees and transferred to an area starting from the address A1 (FIG. 1 (c)). In this rotation processing, a block is read word by word (16 × 16 bits), rotation processing is performed, and the data is written in the transfer destination. In the case of 90-degree rotation, reading is performed word by word in the direction from left to right in the figure, and writing is performed word by word in the direction from bottom to top in the figure.
Therefore, the read address is incremented in 1-word units, and the write address is decremented in 1-word units.

【0018】続いて、次のブロックB2を0度回転させ
てつまり実際には回転をしないでアドレスA2から始ま
る領域に転記する(図1(d))。ここでは、回転角度
が0度であるから書込みは左から右の方向に行われる。
次に、ブロックB3を90度回転させてアドレスA3か
ら始まる領域に転記する(図1(e))。次に、ブロッ
クB4を90度回転させてアドレスA4から始まる領域
に転記する(図1(f))。次に、ブロックB5を90
度回転させてアドレスA5から始まる領域に転記する
(図1(g))。最後に、前記アドレスA2から始まる
領域つまりバッファ領域に退避させていたブロックB2
を90度回転させ、アドレスA6から始まる領域に転記
する(図1(h))。以上の処理によって90度回転画
像を得ることができる(図1(i))。なお、前記ブロ
ックB2は退避のときに90度回転させておき、後の転
記で0度回転する手順としてもよい。また、丸数字1お
よび2で示した処理の順序を入れ替えてもよい。
Subsequently, the next block B2 is rotated by 0 degrees, that is, it is transferred to an area starting from the address A2 without actually rotating it (FIG. 1 (d)). Here, since the rotation angle is 0 degree, writing is performed from left to right.
Next, the block B3 is rotated by 90 degrees and is transcribed to the area starting from the address A3 (FIG. 1 (e)). Next, the block B4 is rotated by 90 degrees and is transcribed in the area starting from the address A4 (FIG. 1 (f)). Next, block B5 is set to 90.
It is rotated once and is transcribed in the area starting from address A5 (FIG. 1 (g)). Finally, the block B2 saved in the area starting from the address A2, that is, the buffer area
Is rotated by 90 degrees and is transcribed in the area starting from address A6 (FIG. 1 (h)). A 90-degree rotated image can be obtained by the above processing (FIG. 1 (i)). The block B2 may be rotated 90 degrees at the time of withdrawal, and may be rotated 0 degree at a later transcription. Further, the order of the processes indicated by circled numbers 1 and 2 may be exchanged.

【0019】次に、図2は原画像を270度回転させる
ための手順を示す模式図である。この場合にも、まず原
画像を矩形ブロックに分割するが、分割位置は90度回
転の場合と異なる。また、ここでは270度回転におけ
る処理の理解を容易にするため、前記90度回転の場合
とは原画像が異なる。また、書込みは開始アドレスから
下の方向に進んでいく。原画像を複数のブロックに分割
したならば、ブロックB11を270度回転させてアド
レスA11から始まる領域に転記する(図2(c))。
次に、ブロックB12を回転させず、アドレスA12か
ら始まるバッファ領域に転記する(図2(d))。次
に、ブロックB13を270度回転させてアドレスA1
3から始まる領域に転記する(図2(e))。次に、ブ
ロックB14を270度回転させてアドレスA14から
始まる領域に転記する(図2(f))。次に、ブロック
B15を270度回転させてアドレスA15から始まる
領域に転記する(図2(g))。最後に、前記アドレス
A12から始まる領域に転記されたブロックB12を2
70度回転させ、アドレスA16から始まる領域に転記
する(図2(h))。以上の処理によって270度回転
画像を得ることができる(図2(i))。なお、前記ブ
ロックB12は退避のときに270度回転させておき、
後の転記で0度回転する手順としてもよい。
Next, FIG. 2 is a schematic diagram showing a procedure for rotating the original image by 270 degrees. Also in this case, the original image is first divided into rectangular blocks, but the division position is different from the case of 90 ° rotation. Further, here, in order to facilitate understanding of the processing in the 270 ° rotation, the original image is different from that in the 90 ° rotation. In addition, writing proceeds downward from the start address. After dividing the original image into a plurality of blocks, the block B11 is rotated by 270 degrees and transferred to the area starting from the address A11 (FIG. 2 (c)).
Next, the block B12 is transferred to the buffer area starting from the address A12 without rotating (FIG. 2 (d)). Next, the block B13 is rotated by 270 degrees to move the address A1.
The data is transcribed to the area starting from 3 (FIG. 2 (e)). Next, the block B14 is rotated by 270 degrees and transcribed in the area starting from the address A14 (FIG. 2 (f)). Next, the block B15 is rotated by 270 degrees and transferred to the area starting from the address A15 (FIG. 2 (g)). Finally, the block B12 transferred to the area starting from the address A12 is set to 2
It is rotated by 70 degrees and transcribed in the area starting from address A16 (FIG. 2 (h)). A 270-degree rotated image can be obtained by the above processing (FIG. 2 (i)). In addition, the block B12 is rotated by 270 degrees when retracted,
It may be a procedure of rotating 0 degree in the later transcription.

【0020】前記読み出しのアドレスや書込みのアドレ
スA1〜A6ならびにA11〜A16は原画像のサイズ
とあらかじめ設定した画像のブロックパターン情報とに
基づいて計算する。ブロックパターン情報は、前記ブロ
ックB1〜B5、B10〜B15の形状を特定するため
の縦・横の比と処理前後の配置位置情報である。また、
図2(i)および図2(i)の画像を図2(h)のよう
に分割し、上述の手順と逆の手順を実行すれば、図2
(a)または図2(a)の画像が得られる。
The read address and write address A1 to A6 and A11 to A16 are calculated based on the size of the original image and preset block pattern information of the image. The block pattern information is the vertical / horizontal ratio for specifying the shapes of the blocks B1 to B5 and B10 to B15 and the arrangement position information before and after the processing. Also,
If the images of FIGS. 2 (i) and 2 (i) are divided as shown in FIG. 2 (h) and the procedure reverse to the above procedure is executed,
The image of (a) or FIG. 2 (a) is obtained.

【0021】続いて、上述の回転処理をフローチャート
を参照して説明する。図6において、ステップS1で
は、上位装置つまりホストシステム16から処理パラメ
ータを受け取る。処理パラメータには主走査方向画素
数、副走査方向画素数、ならびに回転角度が含まれる。
ステップS2では、画像メモリ11のアドレス0番地を
スタートアドレスとして原画像を格納(ストア)する。
ステップS3では、原画像を図1、図2に示したブロッ
クに分割した場合の各ブロックの左上点のアドレスと各
ブロックの縦横の画素数を計算して記憶する。この記憶
にはCPU2に含まれるRAMを使用する。
Next, the above-mentioned rotation processing will be described with reference to the flowchart. In FIG. 6, in step S1, processing parameters are received from a host device, that is, the host system 16. The processing parameters include the number of pixels in the main scanning direction, the number of pixels in the sub scanning direction, and the rotation angle.
In step S2, the original image is stored using the address 0 of the image memory 11 as the start address.
In step S3, the address of the upper left point of each block when the original image is divided into the blocks shown in FIGS. 1 and 2 and the number of vertical and horizontal pixels of each block are calculated and stored. The RAM included in the CPU 2 is used for this storage.

【0022】ステップS4では、回転装置9に回転角度
を指定する。ステップS5では、未処理ブロックを代表
するパラメータつまり各ブロックの前記左上点のアドレ
ス(読出アドレス)および水平方向メモリサイズ、なら
びに1ワードのビット数つまり転送単位をDMA装置1
4にセットし、画像メモリ11から回転装置9へ画像デ
ータを転送する。ステップS6では、回転処理後の転送
先アドレスおよび転送単位ならびに水平方向メモリサイ
ズをDMA装置14にセットし、回転装置13から画像
メモリ11へ処理後の画像データを転送する。
In step S4, a rotation angle is designated for the rotating device 9. In step S5, the parameter representing the unprocessed block, that is, the address (reading address) at the upper left point of each block and the horizontal memory size, and the bit number of one word, that is, the transfer unit are set to the DMA device 1.
4 and the image data is transferred from the image memory 11 to the rotating device 9. In step S6, the transfer destination address and transfer unit after the rotation processing and the horizontal memory size are set in the DMA device 14, and the processed image data is transferred from the rotation device 13 to the image memory 11.

【0023】ステップS7では、1ブロックの処理が終
了したか否かを判断する。この判断は、処理済データ数
と前記ステップS3で計算したブロックのサイズによっ
て行う。1ブロックの処理が終了するまではステップS
5に戻り、転送と回転の処理を繰り返す。1ブロックの
処理が終了したと判断されたならば、ステップS8に進
んで全ブロックの処理が終了したか否かを判断する。こ
こでは、一定のブロック(図1ではB2)の回転処理を
2回実行するので、分割ブロック数「5」に「1」を加
算した数つまりブロック数「6」が、総ブロック数とな
る。ステップS8の判断が否定ならば、ステップS4に
進んで次のブロックの処理を実行する。ステップS8の
判断が肯定となったときにこの回転処理を終了する。
In step S7, it is determined whether or not the processing for one block is completed. This judgment is made based on the number of processed data and the block size calculated in step S3. Until the processing of one block is completed, step S
Returning to step 5, the transfer and rotation processes are repeated. If it is determined that the processing for one block is completed, the process proceeds to step S8 to determine whether the processing for all blocks is completed. Here, since the rotation process of a certain block (B2 in FIG. 1) is executed twice, the number obtained by adding "1" to the number of divided blocks "5", that is, the number of blocks "6" is the total number of blocks. If the determination in step S8 is negative, the process proceeds to step S4 and the processing of the next block is executed. When the determination in step S8 is affirmative, this rotation process ends.

【0024】なお、上述のように、特定のブロックは仮
に0度回転させる場合があるので、例えばカウンタによ
ってその特定のブロックを識別できるようにしておき、
該ブロックの処理では検出回転装置9に対する角度の設
定を0度とする。
As described above, since a specific block may be rotated by 0 degrees, the specific block may be identified by a counter, for example.
In the processing of the block, the angle setting with respect to the detection rotation device 9 is set to 0 degree.

【0025】次に、原画像を拡大・縮小する処理の例を
説明する。図3は原画像を縦横2倍に拡大する例の模式
図である。同図において、画像メモリに展開された原画
像(図3(a))を同図(b)から(e)の順に拡大す
る。各図において、符号51は処理のための読出完了エ
リアを示し、符号52は拡大処理完了エリアを示す。同
図に示すように、原画像の最終ラインから順に拡大を
し、原画像の4倍の大きさを持つメモリ領域の最終ライ
ンから転記していく。この処理によって、原画像のメモ
リ領域は、処理後画像のメモリ領域内に含ませることが
できる。つまり原画像のサイズに相当するメモリ領域を
節約できる。
Next, an example of processing for enlarging / reducing the original image will be described. FIG. 3 is a schematic diagram of an example in which an original image is enlarged twice vertically and horizontally. In the same figure, the original image developed in the image memory (FIG. 3 (a)) is enlarged in the order of FIG. 3 (b) to (e). In each figure, reference numeral 51 indicates a read completion area for processing, and reference numeral 52 indicates an enlargement processing completion area. As shown in the figure, the image is enlarged from the last line of the original image in order and is transcribed from the last line of the memory area having a size four times as large as the original image. By this processing, the memory area of the original image can be included in the memory area of the processed image. That is, the memory area corresponding to the size of the original image can be saved.

【0026】続いて、原画像を縦横1/2に縮小する例
を図4の模式図を参照して説明する。図4において、画
像メモリに展開された原画像(図4(a))を同図
(b)から(e)の順に縮小する。各図において、符号
61は処理のための読出完了エリアを示し、符号62は
拡大処理完了エリアを示す。同図に示すように、原画像
の先頭ラインから順に縮小をし、当該メモリ領域の原点
から転記していく。この処理によって、処理後のメモリ
領域は、原画像のメモリ領域内に含ませることができ
る。つまり、この場合にも拡大のときと同様、原画像の
サイズに相当するメモリ領域を節約できる。
Next, an example in which the original image is reduced to ½ in height and width will be described with reference to the schematic diagram of FIG. In FIG. 4, the original image developed in the image memory (FIG. 4A) is reduced in the order of FIG. 4B to FIG. In each figure, reference numeral 61 indicates a read completion area for processing, and reference numeral 62 indicates an enlargement processing completion area. As shown in the drawing, the original image is reduced in order from the first line and transferred from the origin of the memory area. By this processing, the processed memory area can be included in the memory area of the original image. That is, also in this case, as in the case of enlargement, the memory area corresponding to the size of the original image can be saved.

【0027】続いて、上述の拡大処理をフローチャート
を参照して説明する。図7において、ステップS10で
は、上位装置つまりホストシステム16から処理パラメ
ータを受け取る。処理パラメータには処理前後の主走査
方向画素数および副走査方向画素数が含まれる。ステッ
プS11では、画像メモリ11のアドレス0番地をスタ
ートアドレスとして原画像を格納する。ステップS12
では、原画像の処理開始アドレスつまり最終ラインを初
期値としてセットする。
Next, the above-mentioned enlargement processing will be described with reference to the flowchart. 7, in step S10, processing parameters are received from the host device, that is, the host system 16. The processing parameters include the number of pixels in the main scanning direction and the number of pixels in the sub scanning direction before and after the processing. In step S11, the original image is stored with the address 0 of the image memory 11 as the start address. Step S12
Then, the processing start address of the original image, that is, the last line is set as an initial value.

【0028】ステップS13では、拡大・縮小装置10
の固定パラメータ例えば画像バスの幅等をセットする。
ステップS14では、原画像読出しのためのスタートア
ドレスと1ラインのサイズを拡大・縮小装置10にセッ
トする。最初の処理では前記処理開始アドレスつまり原
画像の最終ラインのアドレスがセットされる。ステップ
S15では、処理後データの書込み先のアドレスと拡大
後の1ラインのサイズを拡大・縮小装置10にセットす
る。ステップS16では、拡大・縮小装置10に起動を
かける。この起動によって処理開始アドレスから画像デ
ータが拡大・縮小装置10へ読込まれ、拡大処理されて
画像メモリ11の前記書込み先アドレスに転記される。
In step S13, the enlargement / reduction device 10
Fixed parameters such as the width of the image bus are set.
In step S14, the start address for reading the original image and the size of one line are set in the enlargement / reduction device 10. In the first processing, the processing start address, that is, the address of the last line of the original image is set. In step S15, the address of the writing destination of the processed data and the size of one line after enlargement are set in the enlargement / reduction device 10. In step S16, the enlarging / reducing device 10 is activated. By this activation, the image data is read from the processing start address to the enlargement / reduction device 10, enlarged, and transferred to the write destination address of the image memory 11.

【0029】ステップS17では、1ラインの拡大およ
び書込みが終了したか否かを判断する。該判断が肯定と
なったならば、ステップS18に進み、原画像のすべて
の処理を終了したか否かを判断する。まだ、処理が済ん
でいない場合はステップS19に進み、次の読出ライン
を指示するためアドレスをデクリメント(−1)する。
同様に、ステップS20では、処理後データを書込みラ
インを指示するためアドレスをデクリメントする。書込
みアドレスは2倍拡大の場合、「2」減算される。読み
出しおよび書込みのアドレスを更新したならばステップ
S14に戻る。こうして、ステップS17の判断が肯定
になったときに処理は終了する。
In step S17, it is determined whether or not one line has been enlarged and written. If the determination is affirmative, the process proceeds to step S18, and it is determined whether or not all processing of the original image has been completed. If the processing has not been completed yet, the process proceeds to step S19, and the address is decremented (-1) to instruct the next read line.
Similarly, in step S20, the address is decremented to indicate the write line for the processed data. When the write address is doubled, "2" is subtracted. When the read and write addresses are updated, the process returns to step S14. Thus, the process ends when the determination in step S17 becomes affirmative.

【0030】図7では、原画像の拡大について示した
が、縮小についても、処理開始アドレスと処理後の書込
みアドレスを変更することによって、同様に処理をする
ことができる。なお、縮小の場合は、縮小率により、複
数ラインをブロック化し、このブロック毎に縮小処理を
実行する。例えば、縦横1/2倍に縮小するときは、原
画像の2ラインを1ブロックとし、このブロックのアド
レスと縦横画素数、縮小画像データ転記先アドレス、縮
小後の縦横画素数を拡大・縮小装置10にセットし、処
理を実行する。
Although FIG. 7 shows enlargement of the original image, the same process can be performed for reduction by changing the processing start address and the post-processing write address. In the case of reduction, a plurality of lines are divided into blocks according to the reduction ratio, and the reduction process is executed for each block. For example, when reducing the horizontal and vertical halves, two lines of the original image are set as one block, and the address and the number of vertical and horizontal pixels of this block, the reduced image data transfer destination address, and the number of vertical and horizontal pixels after reduction are enlarged / reduced by Set to 10 and execute the process.

【0031】次に、ブロック図を参照して上記の各実施
例の動作を行うための要部機能を説明する。まず、回転
処理のための機能を説明する。図8において、上位装置
から指示された回転角度および原画像サイズはパラメー
タ記憶部19に格納される。読出アドレス発生部17
は、分割された原画像の各ブロック毎の読出アドレスを
算出し、DMA装置14に出力する。この読出アドレス
は、パラメータ記憶部19の原画像サイズおよびあらか
じめCPU2のROMまたはRAMに設定されている分
割パターンAに従って算出される。分割パターンAは前
記ブロックパターン情報のうち、処理前のブロックに対
応し、回転角度によって異なるのものが設定されてい
て、前記指示パラメータ記憶部19の回転角度に従って
選択される。
Next, with reference to a block diagram, a description will be given of main functions for performing the operation of each of the above embodiments. First, the function for rotation processing will be described. In FIG. 8, the rotation angle and the original image size designated by the higher-level device are stored in the parameter storage unit 19. Read address generator 17
Calculates a read address for each block of the divided original image and outputs the read address to the DMA device 14. This read address is calculated according to the original image size of the parameter storage unit 19 and the division pattern A preset in the ROM or RAM of the CPU 2. The division pattern A corresponds to the block before processing in the block pattern information, and different ones are set depending on the rotation angle, and the division pattern A is selected according to the rotation angle of the instruction parameter storage unit 19.

【0032】書込アドレス発生部18は、処理後ブロッ
クの転送先アドレスを各ブロック毎に算出し、DMA装
置14に出力する。この書込アドレスは、前記原画像サ
イズおよびCPU2のROMまたはRAMに設定されて
いる書込パターンBに従って算出される。書込パターン
Bは前記ブロックパターン情報のうち、処理後のブロッ
クに対応し、回転角度によって異なるものが設定されて
いて、前記パラメータ記憶部19の回転角度に従って選
択される。
The write address generator 18 calculates the transfer destination address of the processed block for each block and outputs it to the DMA device 14. This write address is calculated according to the original image size and the write pattern B set in the ROM or RAM of the CPU 2. The write pattern B corresponds to the processed block in the block pattern information, and different patterns are set depending on the rotation angle, and the write pattern B is selected according to the rotation angle of the parameter storage unit 19.

【0033】DMA装置14は、読出アドレス発生部1
7から供給されるアドレスに従って画像メモリ11から
画像データを読み出し、回転装置9に転送する。また、
DMA装置14は回転装置9で回転処理がなされた画像
データを、書込アドレス発生部18から供給されるアド
レスに従って画像メモリ11に書込む。
The DMA device 14 includes a read address generator 1
The image data is read from the image memory 11 according to the address supplied from 7 and transferred to the rotating device 9. Also,
The DMA device 14 writes the image data, which has been rotated by the rotating device 9, into the image memory 11 according to the address supplied from the write address generator 18.

【0034】次に、図9を参照して拡大・縮小処理のた
めの機能を説明する。図9において、上位装置から指示
された原画像サイズおよび処理後サイズはパラメータ記
憶部20に格納される。拡大・縮小判別部21は、前記
原画像サイズおよび処理後サイズに基づいて指示内容が
拡大か縮小かを判断するとともに、拡大倍率を検出す
る。その判断および検出結果は読出アドレス発生部22
および書込アドレス発生部23に出力される。読出アド
レス発生部22および書込アドレス発生部23は、拡大
・縮小の判断および拡大倍率の検出結果に従って拡大・
縮小装置10にそれぞれ読出アドレスおよび書込アドレ
スを出力する。
Next, the function for the enlargement / reduction processing will be described with reference to FIG. In FIG. 9, the original image size and the processed size instructed by the higher-level device are stored in the parameter storage unit 20. The enlargement / reduction determination unit 21 determines whether the instruction content is enlargement or reduction based on the original image size and the processed size, and also detects the enlargement ratio. The determination and detection result is read address generation unit 22.
And to the write address generator 23. The read address generation unit 22 and the write address generation unit 23 perform enlargement / reduction according to the determination result of enlargement / reduction and the enlargement magnification detection result.
The read address and the write address are output to the reduction device 10, respectively.

【0035】すなわち、読出アドレス発生部22は、拡
大の場合は原画像の最終ラインからデータの読み出しを
開始するためのアドレスを発生し、縮小の場合は原画像
の先頭ラインからデータの読み出しを開始するためのア
ドレスを発生する。また、書込アドレス発生部23は、
拡大・縮小により、それぞれ異なったアドレスを発生す
る。まず拡大の場合は、倍率に応じてメモリ領域の書込
アドレスを発生する。例えば拡大倍率が2倍の場合は、
最終ラインから2ライン目の先頭を書込開始アドレスと
して発生する。一方、縮小の場合は、メモリ領域の先頭
を書込開始アドレスとして発生する。読出アドレスと書
込アドレスとは、1ラインの拡大、または1ブロックの
縮小処理を終了する毎に更新される。
That is, the read address generating unit 22 generates an address for starting the reading of data from the last line of the original image in the case of enlargement, and starts reading the data from the first line of the original image in the case of reduction. Generate an address to do. In addition, the write address generator 23
Different addresses are generated by scaling. First, in the case of enlargement, the write address of the memory area is generated according to the magnification. For example, if the magnification is 2 times,
The beginning of the second line from the last line is generated as the write start address. On the other hand, in the case of reduction, the start of the memory area is generated as the write start address. The read address and the write address are updated each time one line enlargement process or one block reduction process is completed.

【0036】拡大・縮小装置10は前記読出アドレスに
従って画像メモリ11から画像データを読み出す。そし
て、拡大・縮小装置10は前記原画像サイズおよび処理
後サイズに従って拡大・縮小処理をし、書込アドレスに
従って画情報メモリ11に処理後データを書込む。
The enlarging / reducing device 10 reads the image data from the image memory 11 according to the read address. Then, the enlargement / reduction device 10 performs enlargement / reduction processing according to the original image size and the processed size, and writes the processed data in the image information memory 11 according to the write address.

【0037】以上のように、本実施例では、回転処理で
は、回転角度によって異なる分割パターンに従って原画
像を複数のブロックに分割し、かつ該ブロックに対する
処理順序を工夫することにより、使用するメモリ領域の
低減を図った。また、拡大・縮小処理では、拡大または
縮小により、原画像の1ライン毎または複数ラインから
なるブロック毎に処理を実行し、かつ拡大または縮小に
よって原画像の処理開始位置を変えることにより、使用
するメモリ領域の低減を図った。
As described above, according to the present embodiment, in the rotation processing, the original image is divided into a plurality of blocks according to the division pattern which differs depending on the rotation angle, and the processing order for the blocks is devised to use the memory area to be used. Was reduced. In the enlarging / reducing process, the process is performed for each line of the original image or for each block including a plurality of lines by enlarging or reducing, and is used by changing the processing start position of the original image by enlarging or reducing. The memory area was reduced.

【0038】[0038]

【発明の効果】以上の説明から明らかなように、請求項
1の発明によれば、複数に分割されたブロックのうち1
つを退避するバッファ領域と他の1つの処理後の転記先
となる第2の領域を原画像の展開領域つまり第1の領域
の付加部分として確保するだけで、原画像の回転処理を
行うことができ、メモリ資源の節約をすることができ
る。
As is apparent from the above description, according to the invention of claim 1, one of the blocks divided into a plurality of blocks is used.
The rotation processing of the original image is performed only by securing a buffer area for saving one and a second area, which is a transfer destination after another one processing, as an expanded area of the original image, that is, an additional portion of the first area. Therefore, it is possible to save memory resources.

【0039】また、請求項2の発明によれば、拡大・縮
小の処理前後の画像の大きさのうち、大きい方の画像と
同一の大きさのメモリ領域があれば、その範囲内で拡大
・縮小をすることができ、メモリ資源の節約をすること
ができる。
According to the second aspect of the present invention, if there is a memory area having the same size as the larger image of the sizes of the images before and after the enlargement / reduction processing, the enlargement / reduction is performed within that range. It is possible to reduce the size and save the memory resource.

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

【図1】 本発明による90度回転処理の過程を示す模
式図である。
FIG. 1 is a schematic diagram showing a process of 90-degree rotation processing according to the present invention.

【図2】 本発明による270度回転処理の過程を示す
模式図である。
FIG. 2 is a schematic diagram showing a process of 270 ° rotation processing according to the present invention.

【図3】 本発明による拡大処理の過程を示す模式図で
ある。
FIG. 3 is a schematic diagram showing a process of enlargement processing according to the present invention.

【図4】 本発明による縮小処理の過程を示す模式図で
ある。
FIG. 4 is a schematic diagram showing a process of reduction processing according to the present invention.

【図5】 本発明の画像処理装置のハード構成を示すブ
ロック図である。
FIG. 5 is a block diagram showing a hardware configuration of the image processing apparatus of the present invention.

【図6】 画像回転処理を示すフローチャートである。FIG. 6 is a flowchart showing an image rotation process.

【図7】 画像拡大処理を示すフローチャートである。FIG. 7 is a flowchart showing image enlargement processing.

【図8】 第1実施例の動作を実行するための要部を示
す機能ブロック図である。
FIG. 8 is a functional block diagram showing a main part for executing the operation of the first embodiment.

【図9】 第2実施例の動作を実行するための要部を示
す機能ブロック図である。
FIG. 9 is a functional block diagram showing a main part for executing the operation of the second embodiment.

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

1…画像処理装置、 9…回転装置、 10…拡大・縮
小装置、 11…画像メモリ、 14…回転装置、 1
9…パラメータ記憶部
DESCRIPTION OF SYMBOLS 1 ... Image processing device, 9 ... Rotation device, 10 ... Enlargement / reduction device, 11 ... Image memory, 14 ... Rotation device, 1
9 ... Parameter storage section

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/36 530 G 9471−5G E 9471−5G F 9471−5G H04N 1/387 Continuation of front page (51) Int.Cl. 6 Identification number Office reference number FI Technical display location G09G 5/36 530 G 9471-5G E 9471-5G F 9471-5G H04N 1/387

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 指示された回転角度に従って画像を回転
させる回転装置を有する画像処理装置において、 原画像を展開する第1の領域、および処理後画像の転記
先であって、前記第1の領域の一部を含む第2の領域、
ならびに前記第1および第2の領域のいずれにも属さな
いバッファ領域が設定された画像メモリと、 少なくとも、前記バッファ領域と同一サイズのブロック
および前記第2の領域のうち第1の領域と重複しない領
域と同一サイズのブロックを含む複数のブロックに原画
像を分割するための分割パターンを記憶した分割パター
ン記憶手段と、 前記複数のブロックのうち前記バッファ領域と同一サイ
ズのブロックを前記バッファ領域に転記し、該転記した
1つのブロックおよび残りのブロックを予定の順序で前
記第2の領域の予定アドレスに転記するための書込パタ
ーンを記憶した書込パターン記憶手段と、 前記分割パターンおよび原画像のサイズに従って前記第
1の領域およびバッファ領域から前記ブロックを読み出
すための読出アドレスを発生する読出アドレス発生手段
と、 前記書込パターンおよび原画像のサイズに従って第2の
領域およびバッファ領域へ前記ブロックを転記するため
の書込アドレスを発生する書込アドレス発生手段と、 前記読出アドレスに従って第1の領域およびバッファ領
域から前記ブロックを読み出して前記回転装置に転送
し、かつ前記書込アドレスに従って回転処理後のブロッ
クを前記バッファ領域および第2の領域へ転送するため
のDMA装置とを具備したことを特徴とする画像処理装
置。
1. An image processing apparatus having a rotation device for rotating an image in accordance with an instructed rotation angle, wherein a first area for developing an original image and a transfer destination of a processed image, the first area A second region including a portion of
And an image memory in which a buffer area that does not belong to any of the first and second areas is set, and at least a block having the same size as the buffer area and the first area of the second area do not overlap. A division pattern storage unit that stores a division pattern for dividing an original image into a plurality of blocks including a block having the same size as the area, and a block having the same size as the buffer area of the plurality of blocks is transferred to the buffer area Then, a writing pattern storage unit that stores a writing pattern for transcribing the transferred one block and the remaining blocks to a planned address of the second area in a planned order, and the divided pattern and the original image. A read address for reading the block from the first area and the buffer area according to a size is set. A read address generating means for generating the write address, a write address generating means for generating a write address for transferring the block to the second area and the buffer area according to the write pattern and the size of the original image, and the read address according to the read address. A DMA device for reading the block from the first area and the buffer area, transferring the block to the rotating apparatus, and transferring the block after the rotation processing to the buffer area and the second area according to the write address. An image processing device characterized by the above.
【請求項2】 指示された拡大・縮小パラメータに従っ
て画像を拡大・縮小させる拡大・縮小装置を有する画像
処理装置において、 原画像を展開する第1の領域および処理後画像の転記先
となる第2の領域を含み、前記2領域のうちサイズの小
さい一方の領域がサイズの大きい他方の領域の隅部に含
まれるように設定された画像メモリと、 前記拡大・縮小パラメータに基づいて指示内容が拡大か
縮小かを判断する拡大・縮小判別手段と、前記拡大・縮
小判別手段の判別結果に応じ、拡大の場合は小さいメモ
リ領域に展開された原画像の終端側から画像の読み出し
を開始し、縮小の場合は大きいメモリに展開された原画
像の始端側から画像の読み出しを開始するため読出アド
レスを発生する読出アドレス発生手段と、 前記拡大・縮小判別手段の判別結果に応じ、拡大の場合
は大きいメモリ領域の終端側から処理後画像の書込みを
開始し、縮小の場合は小さいメモリ領域の始端側から処
理後画像の書込みを開始するための書込アドレスを発生
する書込アドレス発生手段とを具備し、 前記拡大・縮小装置は、 前記読出アドレスに従って第1の領域から画像を読み出
して拡大または縮小を行い、かつ前記書込アドレスに従
って拡大・縮小処理後の画像を第2の領域へ転記するよ
うに構成されたことを特徴とする画像処理装置。
2. An image processing apparatus having an enlarging / reducing device for enlarging / reducing an image in accordance with an instructed enlarging / reducing parameter, wherein a first area for expanding an original image and a second destination for a processed image are transferred. And an image memory set such that one of the two smaller areas is included in the corner of the other larger area, and the instruction content is enlarged based on the enlargement / reduction parameter. In accordance with the determination result of the enlargement / reduction determining unit and the enlargement / reduction determining unit, in the case of enlargement, reading of the image is started from the end side of the original image expanded in the small memory area, and reduction is performed. In the case of, read address generating means for generating a read address for starting the reading of the image from the start side of the original image expanded in the large memory; According to the determination result, the write address for starting the writing of the processed image from the end side of the large memory area in the case of expansion and the writing address for starting the writing of the processed image from the start side of the small memory area in the case of reduction A write address generating means for generating the write address, wherein the enlarging / reducing device reads an image from the first area according to the read address to enlarge or reduce the image, and performs enlarging or reducing processing according to the write address. An image processing apparatus configured to transfer an image to a second area.
JP6136672A 1994-05-27 1994-05-27 Picture processor Pending JPH07319761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6136672A JPH07319761A (en) 1994-05-27 1994-05-27 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6136672A JPH07319761A (en) 1994-05-27 1994-05-27 Picture processor

Publications (1)

Publication Number Publication Date
JPH07319761A true JPH07319761A (en) 1995-12-08

Family

ID=15180784

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6136672A Pending JPH07319761A (en) 1994-05-27 1994-05-27 Picture processor

Country Status (1)

Country Link
JP (1) JPH07319761A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014120961A (en) * 2012-12-18 2014-06-30 Casio Comput Co Ltd Image processor, image processing method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014120961A (en) * 2012-12-18 2014-06-30 Casio Comput Co Ltd Image processor, image processing method, and program

Similar Documents

Publication Publication Date Title
JP3038781B2 (en) Memory access control circuit
US4945499A (en) Graphic display system
JP4695815B2 (en) Drawing processing apparatus, drawing processing method, computer-readable storage medium, and program
US4811411A (en) Image processing method and system
JPH07319761A (en) Picture processor
JPH0481231B2 (en)
JPS647393Y2 (en)
JPS5979673A (en) Expanding and contracting method of picture
JP4419524B2 (en) Image processing apparatus and program
JP4022014B2 (en) Image data management method
JPS5981962A (en) Picture processor
JP2006338334A (en) Data processor and data processing method
JPH04329482A (en) Image rotation processing method and processing device for relevant method
JP2964504B2 (en) Document processing device
JP2537851B2 (en) Image scaling processor
JPH01114988A (en) Method for expanding and contracting image
JP3016372B2 (en) Image processing device
JPH10149440A (en) Image processor, image-forming device and image processing method
JPS6085681A (en) Picture information processing system
JPH07320048A (en) Image processor
JP2537830B2 (en) Image processing device
JPH0255170A (en) Printer controller
JPH0567983B2 (en)
JPS5979672A (en) Expanding and contracting method of picture
JPS6248561A (en) Printing image memory