JPH07320048A - Image processor - Google Patents

Image processor

Info

Publication number
JPH07320048A
JPH07320048A JP6136670A JP13667094A JPH07320048A JP H07320048 A JPH07320048 A JP H07320048A JP 6136670 A JP6136670 A JP 6136670A JP 13667094 A JP13667094 A JP 13667094A JP H07320048 A JPH07320048 A JP H07320048A
Authority
JP
Japan
Prior art keywords
image
processing
rotation
image data
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
JP6136670A
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 JP6136670A priority Critical patent/JPH07320048A/en
Publication of JPH07320048A publication Critical patent/JPH07320048A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To shorten image processing time by expanding image data on an original image according to the previously determined initial expansion position of the image data. CONSTITUTION:When the original image P is rotated by 270 deg., the data on the original image are expanded shifting by R1 bits in direction from a 16-bit border including a point B1. Consequently, the read position of the image after the rotation can be matched with the border line including a point B2. Therefore, the margin from the border line of the processed image which is generated when the original image is rotated without making a R1-bit shift can be eliminated. Similarly, the data on the original image are expanded deviating R2 bits in X direction from the 16-bit border including the point B1 for 180 deg. rotation. Consequently, the read position of the image after the rotation can be matched with the border line including a point B3.

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 efficiently performing a plurality of image processes.

【0002】[0002]

【従来の技術】原画像に対して回転や拡大・縮小などの
画像処理を行う場合の具体例を図9に示す。この例で
は、ホストシステム等の上位装置から画像処理装置に供
給された原画像をページメモリに展開し、それをさらに
反時計方向に270度回転する処理を示す。このような
処理は、画像をプリント出力する際、記録用紙の搬送方
向に合わせてページメモリ内で該画像の方向を回転させ
る場合等に発生する。
2. Description of the Related Art FIG. 9 shows a specific example in which image processing such as rotation and enlargement / reduction is performed on an original image. In this example, the original image supplied to the image processing apparatus from the host apparatus such as the host system is developed in the page memory and further rotated 270 degrees counterclockwise. Such processing occurs when the image is printed out and the direction of the image is rotated in the page memory in accordance with the conveyance direction of the recording paper.

【0003】図9において、まず、同図(a)に示した
原画像Pをページメモリに展開する(図9(b))。こ
のとき、原画像Pの読出開始位置PSから読み出された
画像データは、ページメモリの原点もしくは16ビット
×16ビットに区切られた領域の境界点B1から展開さ
れる。続いて、該展開された画像を境界点B1を中心に
反時計方向に270度回転させる(図9(c))。この
処理によって回転後の画像Pの読出開始位置PS2は1
6ビットずつに区切られた領域の境界点B2と一致しな
くなり、X方向つまり主走査方向のマージンmを有する
ことになる。なお、副走査方向は符号Yで示し、以下Y
方向という。
In FIG. 9, first, the original image P shown in FIG. 9A is developed in the page memory (FIG. 9B). At this time, the image data read from the read start position PS of the original image P is expanded from the origin of the page memory or the boundary point B1 of the area divided into 16 bits × 16 bits. Then, the developed image is rotated 270 degrees counterclockwise around the boundary point B1 (FIG. 9C). By this processing, the reading start position PS2 of the rotated image P is 1
It does not coincide with the boundary point B2 of the region divided into 6-bit units and has a margin m in the X direction, that is, the main scanning direction. Note that the sub-scanning direction is indicated by the symbol Y, and hereinafter Y
Called direction.

【0004】そこで、前記読出開始位置PS2と境界点
B2とを一致させるべく画像Pをコピーする。つまり転
記先開始点として境界点B2を指示して等倍の拡大・縮
小処理をする。これによって、ページメモリ上におい
て、読み出しに都合のよい位置に原画像を展開できる。
Therefore, the image P is copied so that the read start position PS2 and the boundary point B2 coincide with each other. That is, the boundary point B2 is designated as the transfer destination start point, and the same size enlargement / reduction processing is performed. As a result, the original image can be developed on the page memory at a position convenient for reading.

【0005】次に、他の画像処理の例を説明する。オペ
レータが指示した画像処理演算用のパラメータに従っ
て、複数の画像処理を連続的に行う場合、次のような手
順が採られる。まず、オペレータが指示をした前記パラ
メータを読込み、これに従って最初の画像処理を実行す
る。続いて、第2番目の画像処理のためにオペレータが
入力したパラメータを読込み、これに従って第2番目の
画像処理を実行する。このように、オペレータによるパ
ラメータの入力(以下、「前処理」という)と画像処理
演算とを繰り返して複数の画像処理を実行している。し
かし、このような処理手順では、予定された複数の画像
処理を終了するまでオペレータは装置から解放されず、
この間は他の作業に移ることができなかった。
Next, another example of image processing will be described. When a plurality of image processes are continuously performed in accordance with the image process calculation parameters instructed by the operator, the following procedure is adopted. First, the operator reads the parameter instructed, and executes the first image processing according to the parameter. Subsequently, the parameters input by the operator for the second image processing are read, and the second image processing is executed according to the parameters. In this way, a plurality of image processes are executed by repeating the parameter input by the operator (hereinafter referred to as “preprocessing”) and the image processing operation. However, in such a processing procedure, the operator is not released from the apparatus until the plurality of scheduled image processings are completed,
During this time I was unable to move on to other work.

【0006】この不具合を解消するため、まず、複数の
画像処理演算に必要なパラメータをまとめて記憶手段に
格納し、これらのパラメータに従って複数の画像処理を
一括して行うようにした画像処理装置が提案されている
(特開平2−33674号公報)。
In order to solve this problem, first, an image processing apparatus is constructed in which parameters required for a plurality of image processing operations are collectively stored in a storage means, and a plurality of image processings are collectively performed according to these parameters. It has been proposed (JP-A-2-33674).

【0007】[0007]

【発明が解決しようとする課題】上記従来の画像処理装
置には次のような問題点があった。まず、原画像をペー
ジメモリ上の所望位置に展開するための画像処理では、
画像の回転とコピーとが必要となるため、ページメモリ
にアクセスする回数が多く、回転結果を得るまでの処理
時間が長いという問題点があった。
The above-mentioned conventional image processing apparatus has the following problems. First, in the image processing to develop the original image at the desired position on the page memory,
Since the image needs to be rotated and copied, there is a problem that the page memory is frequently accessed and the processing time until the rotation result is obtained is long.

【0008】また、複数の前処理を先にまとめて行い、
実際の画像演算処理を後で一括して行う処理では、確か
にオペレータは早期に解放されるが、全体の画像処理時
間は短縮されていないという問題点があった。
In addition, a plurality of pre-processes are collectively performed first,
In the process of collectively performing the actual image calculation process later, the operator is certainly released early, but there is a problem that the entire image processing time is not shortened.

【0009】本発明は、上記問題点を解消し、処理演算
時間を短縮することができる画像処理装置を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing apparatus which can solve the above problems and shorten the processing calculation time.

【0010】[0010]

【課題を解決するための手段】上記の課題を解決し、目
的を達成するための本発明は、原画像の画像データおよ
び処理コマンドを受信する手段と、受信した処理コマン
ドに含まれている処理の種類および原画像のサイズを判
別する手段と、判別された処理の種類および原画像のサ
イズに基づき、画像メモリ上に展開される最終処理後の
画像データの、予定位置からのX方向のマージンを算出
する手段と、前記マージンが「0」となるように、画像
メモリに対する画像データの初期展開位置を決定する手
段とを具備した点に第1の特徴がある。
SUMMARY OF THE INVENTION To solve the above problems and to achieve the object, the present invention provides means for receiving image data of an original image and a processing command, and processing included in the received processing command. Means for discriminating the type and the size of the original image, and a margin in the X direction from the planned position of the final processed image data developed on the image memory based on the discriminated processing type and the size of the original image. The first feature is that it is provided with a means for calculating, and a means for determining the initial expansion position of the image data with respect to the image memory so that the margin becomes "0".

【0011】また、本発明は、原画像の画像データおよ
び処理コマンドを受信する手段と、処理コマンドに含ま
れている処理の種類および複合処理であるか否かを判断
する手段と、複合処理であると判断された場合に、処理
の種類に従って該処理の時間を最小にする順序に処理順
序を入替える処理順序決定手段とを具備した点に第2の
特徴がある。
The present invention also includes means for receiving the image data of the original image and the processing command, means for determining the type of processing included in the processing command and whether or not the processing is combined processing, and combined processing. A second feature is that, when it is determined that the processing order is determined, the processing order determining unit changes the processing order according to the type of processing so as to minimize the processing time.

【0012】[0012]

【作用】第1の特徴を有する本発明では、あらかじめ決
定された画像データの初期展開位置に従って原画像の画
像データを展開することにより、予定位置例えば前記境
界点B2を含むY方向の境界からX方向にマージンmが
ない位置に最終処理後の画像データを展開できる。した
がって、前記マージンmをなくすために従来行われてい
た、付加的なコピー動作が不要になる。
According to the present invention having the first feature, the image data of the original image is expanded in accordance with the predetermined initial expansion position of the image data, so that the X-direction from the predetermined position, for example, the boundary in the Y direction including the boundary point B2. The image data after final processing can be developed at a position where there is no margin m in the direction. Therefore, the additional copy operation that has been conventionally performed to eliminate the margin m is unnecessary.

【0013】また、第2の特徴を有する本発明によれ
ば、処理コマンドに基づいて処理の種類の判断および複
合処理か否かの判断をすることができる。その結果、複
合処理と判断された場合は、処理の種類に従って処理時
間を最小にする処理順序を選択できる。
Further, according to the present invention having the second feature, it is possible to determine the type of processing and whether or not it is a composite processing based on the processing command. As a result, when it is determined that the processing is the composite processing, the processing order that minimizes the processing time can be selected according to the type of processing.

【0014】[0014]

【実施例】以下、図面を参照して本発明を詳細に説明す
る。図8は本発明の画像処理装置の構成を上位装置とし
てのホストシステムとの関連で示したハード構成図であ
る。同図において、ホストシステム28はホストコンピ
ュータ20および該ホストコンピュータ28と接続され
る通信装置21、DMAコントローラ22、外部記憶装
置23、システムメモリ24、および画像出力装置25
を有する。画像出力装置25にはプリンタ26が接続さ
れている。なお、上記の各構成要素は汎用バス27で接
続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the drawings. FIG. 8 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, a host system 28 includes a host computer 20, a communication device 21 connected to the host computer 28, a DMA controller 22, an external storage device 23, a system memory 24, and an image output device 25.
Have. A printer 26 is connected to the image output device 25. The above-mentioned components are connected by a general-purpose bus 27.

【0015】一方、画像処理装置1は、汎用バスインタ
フェース4を介して前記ホストシステム28の汎用バス
27に接続される。汎用バスインタフェース4にはCP
Uバス5が接続され、さらにバスドライバ(D/R)6
を介して画像バス12が接続される。画像処理実行手段
13として拡大・縮小装置8、回転装置9、および圧縮
伸長装置10が設けられ、該画像処理実行手段13はC
PUバス5と画像バス12とに接続される。また、第2
のDMAコントローラ3がCPUバス5に接続され、第
3のDMAコントローラ7がCPUバス5および画像バ
ス12間に設けられる。前記画像バス12には画像メモ
リ11が接続される。該画像処理装置1の全体はCPU
2によって制御される。
On the other hand, the image processing apparatus 1 is connected to the general-purpose bus 27 of the host system 28 via the general-purpose bus interface 4. CP for general-purpose bus interface 4
U-bus 5 is connected, and further bus driver (D / R) 6
The image bus 12 is connected via. An enlargement / reduction device 8, a rotation device 9, and a compression / decompression device 10 are provided as the image processing execution means 13, and the image processing execution means 13 is C
It is connected to the PU bus 5 and the image bus 12. Also, the second
The DMA controller 3 is connected to the CPU bus 5, and the third DMA controller 7 is provided between the CPU bus 5 and the image bus 12. An image memory 11 is connected to the image bus 12. The entire image processing apparatus 1 is a CPU
Controlled by two.

【0016】これらの構成により、ホストシステム28
のシステムメモリ24に蓄積されている画像データは汎
用バスインタフェース4を介して画像処理装置1に転送
されて画像処理がなされる。ホストシステム28から出
力された画像処理のための処理コマンドは汎用バスイン
タフェース4のレジスタにセットされ、画像処理装置1
は該レジスタを参照しながら処理を実行する。処理コマ
ンドには、処理対象となる原画像のサイズ、ならびに拡
大・縮小および回転等の処理の種類が含まれる。処理さ
れた画像データは画像メモリ11に展開され、その後の
ホストシステム28からの要求に従って読み出され、シ
ステムメモリ24に返送されたり、プリンタ26に送ら
れて記録出力されたりする。
With these configurations, the host system 28
The image data stored in the system memory 24 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 28 is set in the register of the general-purpose bus interface 4, and the image processing apparatus 1
Executes the process 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 28 thereafter, and returned to the system memory 24 or sent to the printer 26 and recorded and output.

【0017】以上のハード構成を有する画像処理装置1
の処理を詳細に説明する。図1は本発明の第1実施例の
処理動作を示す模式図である。同図は、ホストシステム
28から供給された原画像を反時計方向に270度回転
する例および180度回転する例を示す。まず、270
度の回転では、原画像Pの画像データを前記画像メモリ
11に展開するとき、16ビット×16ビットで区切ら
れた記憶領域の境界点B1からY方向つまり副走査方向
に値R1だけシフトした位置から書込みを開始するよう
にしている(図1(b))。このシフト値R1は画像P
のY方向の大きさを16ビットずつに区切ったときの端
数Ryつまり原画像のY方向サイズを16で除算したと
きの剰余を、ビット数16から差し引いた値である。こ
のような位置に画像を展開することにより、これを反時
計方向に270度回転させたとき画像Pの読出開始位置
が境界点B2と一致する(図1(c))。
The image processing apparatus 1 having the above hardware configuration
The process will be described in detail. FIG. 1 is a schematic diagram showing the processing operation of the first embodiment of the present invention. This figure shows an example in which the original image supplied from the host system 28 is rotated 270 degrees counterclockwise and an example rotated 180 degrees. First, 270
When the image data of the original image P is expanded in the image memory 11 by the rotation of 1 degree, a position shifted from the boundary point B1 of the storage area divided by 16 bits × 16 bits by the value R1 in the Y direction, that is, the sub-scanning direction. Writing is started from (FIG. 1 (b)). This shift value R1 is the image P
Is a value obtained by subtracting from the number of bits 16 the fraction Ry when the size in the Y direction is divided into 16 bits, that is, the remainder when the size of the original image in the Y direction is divided by 16. By developing the image at such a position, when the image is rotated 270 degrees counterclockwise, the read start position of the image P coincides with the boundary point B2 (FIG. 1 (c)).

【0018】次に、180度の回転では、原画像Pの画
像データを境界点B1からX方向つまり主走査方向に値
R2だけシフトした位置から展開を開始するようにして
いる(図1(d))。このシフト値R2は画像PのX方
向の大きさを16ビットずつに区切ったときの端数Rx
つまり原画像のX方向サイズを16で除算したときの剰
余を、ビット数16から差し引いた値である。このよう
な位置に画像を展開することにより、これを反時計方向
に270度回転させたとき画像Pの読出開始位置は境界
点B3を含むY方向境界線と一致する(図1(e))。
Next, in the case of the rotation of 180 degrees, the expansion of the image data of the original image P is started from the position shifted from the boundary point B1 in the X direction, that is, the main scanning direction by the value R2 (see FIG. )). The shift value R2 is a fraction Rx when the size of the image P in the X direction is divided into 16 bits.
That is, it is a value obtained by subtracting the remainder when the size of the original image in the X direction is divided by 16 from the number of bits 16. By developing the image at such a position, when the image is rotated 270 degrees counterclockwise, the read start position of the image P coincides with the Y-direction boundary line including the boundary point B3 (FIG. 1 (e)). .

【0019】次に、第1実施例の動作をフローチャート
を参照して説明する。図2において、ステップS1で
は、ホストシステム28から受信した処理コマンドを読
み、処理の種類が回転か否かを判断する。回転ならば、
ステップS2に移行するが、回転でないならばステップ
S11に進んで、処理コマンドに応じた他の処理を実行
する。ステップS2では、回転角度が270度か否かを
判断する。なお、通常、特に断りがない限り回転の処理
は反時計方向の回転を意味する。270度の回転が指示
されていた場合は、ステップS3に進んで原画像のY方
向サイズの端数Ryつまり原画像のY方向サイズを16
で除算したときの剰余Ryを求める。原画像のY方向サ
イズはホストシステムから処理コマンドに含んで供給さ
れた指示パラメータによって認識する。ステップS4で
は、前記剰余Ryに基づいて画像転送開始アドレスを算
出する。ステップS5では、画像メモリ11にシステム
メモリ24から画像転送を実行する。ステップS6で
は、前記境界点B1を中心に回転処理を実行する。な
お、ステップS2の判断が否定の場合、つまり270度
以外の回転であったならば、ステップS7に進み、回転
角度が180度か否かを判断する。回転角度が180度
の場合にも、270度の場合と同様マージンが生じるた
め、このマージンをあらかじめ考慮して画像データの展
開位置を決定する。但し、180度の回転では、270
度の回転と異なり、該マージンを解消するためには初期
の位置設定をあらかじめX方向にシフトさせることにな
る。
Next, the operation of the first embodiment will be described with reference to the flow chart. In FIG. 2, in step S1, the processing command received from the host system 28 is read and it is determined whether the processing type is rotation. If it ’s spinning,
If it is not rotation, the process proceeds to step S11, and another process corresponding to the process command is executed. In step S2, it is determined whether the rotation angle is 270 degrees. Incidentally, unless otherwise specified, the rotation process usually means rotation in the counterclockwise direction. If the rotation of 270 degrees is instructed, the process proceeds to step S3, and the fraction Ry of the Y-direction size of the original image, that is, the Y-direction size of the original image is set to 16
The remainder Ry when divided by is calculated. The size of the original image in the Y direction is recognized by the instruction parameter supplied by being included in the processing command from the host system. In step S4, the image transfer start address is calculated based on the remainder Ry. In step S5, image transfer from the system memory 24 to the image memory 11 is executed. In step S6, rotation processing is executed around the boundary point B1. If the determination in step S2 is negative, that is, if the rotation is other than 270 degrees, the process proceeds to step S7, and it is determined whether the rotation angle is 180 degrees. Even when the rotation angle is 180 degrees, a margin is generated as in the case where the rotation angle is 270 degrees. Therefore, the expansion position of the image data is determined in consideration of this margin. However, with 180 degree rotation, it is 270
In order to eliminate the margin, unlike initial rotation, the initial position setting is shifted in the X direction in advance.

【0020】そのために、ステップS8では、原画像の
X方向サイズの端数Rxつまり原画像のX方向サイズを
16で除算したときの剰余Rxを求める。ステップS9
では、前記剰余Rxに基づいて画像転送開始アドレスを
算出する。アドレスが計算されたならばステップS5に
進む。また、前記ステップS7の判断が否定の場合は、
ステップS10に進んで他の角度の回転処理を実行す
る。
Therefore, in step S8, a fraction Rx of the X-direction size of the original image, that is, a remainder Rx when the X-direction size of the original image is divided by 16, is obtained. Step S9
Then, the image transfer start address is calculated based on the remainder Rx. If the address is calculated, the process proceeds to step S5. If the determination in step S7 is negative,
Proceeding to step S10, rotation processing of another angle is executed.

【0021】以上の説明のように、該第1実施例によれ
ば、回転した画像データのコピーを行うことなく、処理
後データの読出開始位置をメモリエリアの境界点に一致
させることができる。
As described above, according to the first embodiment, the read start position of the processed data can be made to coincide with the boundary point of the memory area without copying the rotated image data.

【0022】次に、ブロック図を参照して該第1実施例
の動作を行うための要部機能を説明する。図3におい
て、処理コマンド受信部30は前記ホストシステム28
から供給された処理コマンドを受信して記憶する。ここ
で、受信した処理コマンドには回転を指示するコマンド
のほか、回転角度、原画像のX方向およびY方向のサイ
ズなどの指示パラメータも含まれる。回転処理判別部3
1では回転角度を判別してその角度が270度または1
80度の場合にそれぞれに対応する検出信号を出力す
る。画像端数算出部32は前記検出信号を供給される
と、処理コマンド受信部30から画像のY方向サイズを
示す指示パラメータを読込み、画像メモリ11の16ビ
ット境界からはみだす端数のビット数RxまたはRyを
算出する。
Next, with reference to a block diagram, a main function for performing the operation of the first embodiment will be described. In FIG. 3, the processing command receiving unit 30 is the host system 28.
Receives and stores the processing command supplied from. Here, in addition to the command for instructing rotation, the received processing command also includes instructing parameters such as a rotation angle and the sizes of the original image in the X and Y directions. Rotation processing determination unit 3
In 1, the rotation angle is determined and the angle is 270 degrees or 1
In the case of 80 degrees, the detection signal corresponding to each is output. When the image fraction calculation unit 32 is supplied with the detection signal, the image fraction calculation unit 32 reads an instruction parameter indicating the Y-direction size of the image from the processing command reception unit 30 and determines the fractional bit number Rx or Ry that exceeds the 16-bit boundary of the image memory 11. calculate.

【0023】転送アドレス算出部33では、前記端数の
ビット数RxまたはRyに基づいて画像メモリ11上へ
の画像データの転送開始アドレスを算出する。270度
回転の場合は、16ビット×16ビットで区切られたメ
モリ領域の境界点のうちあらかじめ指定された境界点B
1からY方向へ(16−Ry)ビットずらした位置を転
送開始アドレスとする。また、180度回転の場合は、
境界点B1からX方向へ(16−Rx)ビットずらした
位置を転送開始アドレスとする。もちろん、この「1
6」という数字は1ワードの大きさによって他の数値、
例えば「32」等に変わり得る。
The transfer address calculator 33 calculates the transfer start address of the image data on the image memory 11 based on the fractional bit number Rx or Ry. In the case of 270 ° rotation, a boundary point B specified in advance among the boundary points of the memory area delimited by 16 bits × 16 bits
The position shifted by (16-Ry) bits in the Y direction from 1 is used as the transfer start address. Also, in the case of 180 degree rotation,
The position shifted by (16-Rx) bits in the X direction from the boundary point B1 is used as the transfer start address. Of course, this "1
The number "6" is another number depending on the size of one word,
For example, it may be changed to "32" or the like.

【0024】転送開始アドレスが決定されたならば、こ
のアドレスから画像メモリ11上に画像データを書き込
み開始する。さらに、画像メモリ11への画像データの
転送が終了したならば、回転処理部(回転装置)9は処
理コマンド受信部30から供給されるコマンドに従って
画像の回転を実行する。
When the transfer start address is determined, writing of image data on the image memory 11 is started from this address. Further, when the transfer of the image data to the image memory 11 is completed, the rotation processing unit (rotating device) 9 rotates the image according to the command supplied from the processing command receiving unit 30.

【0025】次に、本発明の第2実施例について説明す
る。該第2実施例では、原画像に対する拡大・縮小およ
び回転処理を行う。図4は本発明の第2実施例の処理動
作を示す模式図である。まず、図4(a)において、デ
ータ数が4×Nワードの原画像Pを想定する。この原画
像Pを縦・横1/2つまりNワードに縮小し、さらに回
転させる。この縮小および回転に伴うワードアクセス数
を見ると、まず、原画像Pをホストシステム28から受
信して画像メモリ11に書き込む(4Nワード・ライ
ト)。次に画像メモリ11から読み出す(4Nワード・
リード)。続いて、縮小画像を書き込む(Nワード・ラ
イト)。さらに、回転のために縮小画像を読み出す(N
ワード・リード)。最後に回転位置に縮小画像を書き込
む(Nワード・ライト)。以上合計でワードアクセス数
は11Nワードとなる。
Next, a second embodiment of the present invention will be described. In the second embodiment, enlargement / reduction and rotation processing of the original image are performed. FIG. 4 is a schematic diagram showing the processing operation of the second embodiment of the present invention. First, in FIG. 4A, an original image P having a data number of 4 × N words is assumed. The original image P is reduced to 1/2 in length and width, that is, N words, and further rotated. Looking at the number of word accesses associated with this reduction and rotation, first, the original image P is received from the host system 28 and written in the image memory 11 (4N word write). Next, read from the image memory 11 (4N words
Lead). Then, the reduced image is written (N word write). Further, the reduced image is read for rotation (N
Word read). Finally, the reduced image is written at the rotation position (N word write). The total number of word accesses is 11N words.

【0026】次に、図4(b)に示した例では、Nワー
ドの原画像Pを回転した後、縦・横2倍つまり4×Nワ
ードに拡大する。上述と同様、該処理のためのワードア
クセス数を見てみる。まず、原画像Pをホストシステム
28から受信して画像メモリ11に書き込む(Nワード
・ライト)。次に画像メモリ11から読み出す(Nワー
ド・リード)。続いて、画像を回転させて書き込む(N
ワード・ライト)。さらに、拡大のために画像を読み出
す(Nワード・リード)。最後に回転済み画像データを
書き込む(4Nワード・ライト)。以上合計でワードア
クセス数は8Nワードとなる。
Next, in the example shown in FIG. 4 (b), the original image P of N words is rotated and then doubled vertically and horizontally, that is, expanded to 4 × N words. Similar to the above, let's look at the number of word accesses for the process. First, the original image P is received from the host system 28 and written in the image memory 11 (N word write). Then, it is read from the image memory 11 (N word read). Then, rotate and write the image (N
Word write). Further, the image is read out for enlargement (N word read). Finally, the rotated image data is written (4N word write). In total, the word access count is 8N words.

【0027】次に、図4に示した例との比較のため、先
に回転を行い、その後に縮小を行う場合、および先に拡
大を行い、その後に回転を行う場合について説明する。
まず、図5(a)は、4×Nワードの原画像Pを回転
し、さらに1/2に縮小する例を示す。この回転および
縮小に伴うワードアクセス数を見ると、まず、原画像P
をホストシステム28から受信して画像メモリ11に書
き込む(4Nワード・ライト)。次に画像メモリ11か
ら読み出す(4Nワード・リード)。続いて、画像を回
転させる(4Nワード・ライト)。さらに、縮小のため
に画像を読み出す(4Nワード・リード)。最後に、縮
小した画像データを書き込む(Nワード・ライト)。以
上合計でワードアクセス数は17Nワードとなる。
Next, for comparison with the example shown in FIG. 4, description will be given of a case where rotation is performed first and then reduction is performed, and a case where enlargement is performed first and then rotation is performed.
First, FIG. 5A shows an example in which an original image P of 4 × N words is rotated and further reduced to ½. Looking at the number of word accesses associated with this rotation and reduction, first, the original image P
Is received from the host system 28 and written in the image memory 11 (4N word write). Then, it is read from the image memory 11 (4N word read). Then, the image is rotated (4N word write). Further, the image is read out for reduction (4N word read). Finally, the reduced image data is written (N word write). The total number of word accesses is 17 N words.

【0028】続いて、図5(b)は、Nワードの原画像
Pを2倍に拡大し、さらに回転する例を示す。この拡大
および回転に伴うワードアクセス数を見てみると、ま
ず、原画像Pをホストシステム28から受信して画像メ
モリ11に書き込む(Nワード・ライト)。次に画像メ
モリ11から読み出す(Nワード・リード)。続いて、
画像データを拡大する(4Nワード・ライト)。さら
に、回転のために画像データを読み出す(4Nワード・
リード)。最後に拡大した画像データを回転させて書き
込む(4Nワード・ライト)。以上合計でワードアクセ
ス数は14Nワードとなる。
Next, FIG. 5B shows an example in which the original image P of N words is doubled and further rotated. Looking at the number of word accesses associated with this enlargement and rotation, first, the original image P is received from the host system 28 and written in the image memory 11 (N word write). Then, it is read from the image memory 11 (N word read). continue,
Enlarge image data (4N word write). Furthermore, image data is read for rotation (4N words
Lead). Finally, the enlarged image data is rotated and written (4N word write). The total number of word accesses is 14 N words.

【0029】以上のように、処理結果は同様であって
も、処理の順序によってワードアクセス数が異なる、つ
まり処理時間に差異があることが分かる。そこで、該第
2実施例では、拡大・縮小および回転が含まれる画像処
理では、図4に示した手順を実行して少ないワードアク
セス数で処理を行う。
As described above, it can be seen that even if the processing results are similar, the number of word accesses differs depending on the processing order, that is, the processing time differs. Therefore, in the second embodiment, in the image processing including enlargement / reduction and rotation, the procedure shown in FIG. 4 is executed to perform the processing with a small number of word accesses.

【0030】続いて、該第2実施例の動作をフローチャ
ートを参照して説明する。図6において、ステップS2
1では、拡大・縮小および回転を含む処理か否かを判断
する。この判断は、ホストシステム28から受信した処
理コマンドに基づいて行う。この判断が肯定の場合は、
ステップS22に進み、指示パラメータから原画像Pの
データ数Aを求める。つまり原画像Pの縦・横のサイズ
を示す指示パラメータの積を求める。ステップS23で
は、指示パラメータに基づいて処理後画像が画像メモリ
11を占有するデータ数Bを算出する。
Next, the operation of the second embodiment will be described with reference to the flow chart. In FIG. 6, step S2
At 1, it is determined whether or not the processing includes enlargement / reduction and rotation. This determination is made based on the processing command received from the host system 28. If this decision is positive,
In step S22, the data number A of the original image P is obtained from the instruction parameter. That is, the product of the instruction parameters indicating the vertical and horizontal sizes of the original image P is obtained. In step S23, the number of data B occupied by the processed image in the image memory 11 is calculated based on the instruction parameter.

【0031】ステップS24では、データ数AがBより
も大か否かによって縮小処理か否かを判断する。縮小処
理であると判断された場合は、前記図4(a)に示した
処理を実行するためステップS25に進み、画像データ
の縮小を行う。次にステップS26で、縮小済みの画像
データの回転処理を実行する。
In step S24, it is determined whether or not the reduction processing is performed depending on whether or not the data number A is larger than B. If it is determined that the image data is to be reduced, the process proceeds to step S25 to execute the process shown in FIG. 4A, and the image data is reduced. Next, in step S26, rotation processing of the reduced image data is executed.

【0032】一方、ステップS24で拡大処理であると
判断された場合は、図4(b)に示した処理をするため
ステップS27に進み、先ず回転処理を実行する。次に
ステップS28で、回転済みの画像データの拡大処理を
実行する。
On the other hand, if it is determined in step S24 that the enlargement process is to be performed, the process proceeds to step S27 to perform the process shown in FIG. 4B, and the rotation process is first executed. Next, in step S28, enlargement processing of the rotated image data is executed.

【0033】また、ステップS21の判断が否定の場合
は、拡大・縮小または回転のいずれか一方、または他の
画像処理が要求されていると判断される。そして、まず
ステップS29では拡大・縮小処理か否かを判断する。
該判断が肯定の場合は、ステップS30に進み、原画像
の拡大または縮小処理を行う。
If the determination in step S21 is negative, it is determined that either one of enlargement / reduction, rotation, or other image processing is required. Then, first, in step S29, it is determined whether the enlargement / reduction processing is to be performed.
If the determination is affirmative, the process proceeds to step S30, and the original image is enlarged or reduced.

【0034】ステップS29の判断が否定ならば、ステ
ップS31に進んで回転処理か否かを判断する。該判断
が肯定の場合は、ステップS32に進み、原画像の回転
処理を行う。ステップS31の判断が否定ならば、処理
を終了する。
If the determination in step S29 is negative, the process proceeds to step S31 and it is determined whether or not it is a rotation process. If the determination is affirmative, the process proceeds to step S32 to rotate the original image. If the determination in step S31 is negative, the process ends.

【0035】次に、ブロック図を参照して該第2実施例
の動作を行うための要部機能を説明する。図7におい
て、処理コマンド受信部30はホストシステム28から
供給された処理コマンドを受信して記憶する。ここで、
受信した処理コマンドには回転や拡大・縮小を指示する
コマンドのほか、回転角度、原画像のX方向およびY方
向のサイズ、拡大・縮小後の原画像のX方向およびY方
向のサイズなどの指示パラメータも含まれる。複合処理
判別部34では処理コマンドを判別して拡大・縮小を含
む複数の処理が指示されている場合に複合処理検出信号
を出力する。
Next, with reference to a block diagram, a description will be given of main functions for performing the operation of the second embodiment. In FIG. 7, the processing command receiving unit 30 receives and stores the processing command supplied from the host system 28. here,
In addition to commands to instruct rotation and enlargement / reduction, received processing commands include instructions such as rotation angle, size of original image in X and Y directions, and size of original image after enlargement / reduction in X and Y directions. Parameters are also included. The composite process discriminating unit 34 discriminates the process command and outputs a composite process detection signal when a plurality of processes including enlargement / reduction is instructed.

【0036】拡大・縮小判別部35は前記複合処理検出
信号を供給されると、処理コマンド受信部30から画像
の処理前後のサイズを示す指示パラメータを読込む。そ
して、画像メモリ11を占有するワード数をそれぞれ算
出して両者を比較し、拡大および縮小のいずれの処理で
あるかを判断する。
Upon being supplied with the composite processing detection signal, the enlarging / reducing judging section 35 reads an instruction parameter indicating the size of the image before and after processing from the processing command receiving section 30. Then, the number of words occupying the image memory 11 is calculated, the two are compared, and it is determined whether the process is enlargement or reduction.

【0037】処理順序決定部36は、処理の種類が拡大
か否かの判別結果、および複合処理判別部34から出力
される複合処理検出信号に基づいて予定の処理手順を選
択し、画像処理実行部13に指示をする。画像処理実行
部13は前記処理手順に従って画像メモリ11をアクセ
スして処理を実行する。処理実行部13は図8に関して
説明したように、拡大・縮小装置8、回転装置9等を含
むものである。
The processing order determination unit 36 selects a predetermined processing procedure based on the determination result of whether the type of processing is expansion and the composite processing detection signal output from the composite processing determination unit 34, and executes image processing. Instruct the section 13. The image processing execution unit 13 accesses the image memory 11 and executes processing according to the processing procedure. The process execution unit 13 includes the enlarging / reducing device 8, the rotating device 9 and the like, as described with reference to FIG.

【0038】なお、該第2実施例では、拡大・縮小と回
転との複合処理について説明したが、少なくとも拡大・
縮小を含む処理であれば、シェーディングつまりマスク
処理や画素反転などの処理が含まれている処理に本実施
例を変形して適用することはできる。
In the second embodiment, the composite processing of enlargement / reduction and rotation has been described.
As long as the processing includes reduction, this embodiment can be modified and applied to processing including shading, that is, processing such as mask processing and pixel inversion.

【0039】また、通常は上述のように拡大・縮小のい
ずれであるかは処理前後のサイズの指示に基づいて判断
するが、ホストシステム28が拡大または縮小の区別を
識別できるパラメータを送出するように構成されていた
ならば、そのパラメータによって直接的に拡大または縮
小の識別をするようにしてもよい。
Further, normally, as described above, whether the enlargement or reduction is performed is determined based on the size instruction before and after the processing. However, the host system 28 sends out a parameter capable of discriminating between the enlargement and the reduction. If it is configured as described above, the enlargement or reduction may be directly identified by the parameter.

【0040】要は、画像の拡大を含む処理では、他の処
理を行って最後に拡大処理を行えばよいし、画像の縮小
を含む処理では、まず画像を縮小して後でその他の処理
を行うようにすればよい。
The point is that in the process including the enlargement of the image, another process may be performed and then the enlargement process may be performed last. In the process including the reduction of the image, the image is first reduced and then the other processes are performed. You can do it.

【0041】[0041]

【発明の効果】以上の説明から明らかなように、請求項
1の発明によれば、処理コマンドに含まれている処理の
種類および原画像のサイズに基づいてX方向のマージン
を「0」とすることができるように、画像データの初期
展開位置を決定することができる。したがって、前記マ
ージンをなくすために従来行われていた付加的なコピー
動作が不要になり、画像処理時間を短縮することができ
る。
As is apparent from the above description, according to the invention of claim 1, the margin in the X direction is set to "0" based on the type of processing and the size of the original image included in the processing command. As described above, the initial expansion position of the image data can be determined. Therefore, an additional copy operation that has been conventionally performed to eliminate the margin is not necessary, and the image processing time can be shortened.

【0042】また、請求項2および3の発明によれば、
処理処理コマンドに含まれている処理の種類および複合
処理か否かが判断できる。その結果、複合処理と判断さ
れた場合は、処理の種類に従って処理時間を最小にする
処理順序を選択できるので、複数種類の処理を行う場合
に、処理時間を短縮することができる。
According to the inventions of claims 2 and 3,
It is possible to determine the type of processing included in the processing command and whether or not it is a composite processing. As a result, when it is determined that the processing is the composite processing, the processing order that minimizes the processing time can be selected according to the processing type, and thus the processing time can be shortened when a plurality of types of processing are performed.

【0043】特に、請求項3の発明によれば、拡大・縮
小を含む処理において、データ量の少ない縮小された状
態で回転等の他の処理を行えるので、該他の処理に要す
る時間を短縮できる。
In particular, according to the third aspect of the invention, in processing including enlargement / reduction, other processing such as rotation can be performed in a reduced state with a small amount of data, so the time required for the other processing can be shortened. it can.

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

【図1】 本発明の第1実施例の処理を示す模式図であ
る。
FIG. 1 is a schematic diagram showing a process of a first embodiment of the present invention.

【図2】 第1実施例の動作を示すフローチャートであ
る。
FIG. 2 is a flowchart showing the operation of the first embodiment.

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

【図4】 本発明の第2実施例の処理を示す模式図であ
る。
FIG. 4 is a schematic view showing the processing of the second embodiment of the present invention.

【図5】 第2実施例に対応する従来技術の処理を示す
模式図である。
FIG. 5 is a schematic diagram showing processing of a conventional technique corresponding to the second embodiment.

【図6】 第2実施例の動作を示すフローチャートであ
る。
FIG. 6 is a flowchart showing the operation of the second embodiment.

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

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

【図9】 第1実施例に対応する従来技術の処理を示す
模式図である。
FIG. 9 is a schematic diagram showing processing of a conventional technique corresponding to the first embodiment.

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

1…画像処理装置、 9…回転処理部、 11…画像メ
モリ、 13…画像処理実行手段、 28…ホストシ
ステム、 30…処理コマンド受信部、 31…回転処
理判別部、 32…画像端数算出部、 33…転送アド
レス算出部、 34…複合処理判別部、 35…拡大・
縮小判別部、 36…処理順序決定部
DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus, 9 ... Rotation processing part, 11 ... Image memory, 13 ... Image processing execution means, 28 ... Host system, 30 ... Processing command receiving part, 31 ... Rotation processing determination part, 32 ... Image fraction calculation part, 33 ... Transfer address calculation unit, 34 ... Complex processing determination unit, 35 ... Enlargement
Reduction determination unit, 36 ... Processing order determination unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 供給された画像データおよび処理コマン
ドに基づいて画像メモリ上で前記画像データの処理を行
う画像処理装置において、 原画像の画像データおよび処理コマンドを受信する手段
と、 前記処理コマンドに含まれている処理の種類および原画
像のサイズを判別する手段と、 判別された処理の種類および原画像のサイズに基づき、
画像メモリ上に展開される最終処理後の画像データの、
予定位置からのX方向のマージンを算出する手段と、 前記マージンが「0」となるように、画像メモリに対す
る画像データの初期展開位置を決定する手段とを具備し
たことを特徴とする画像処理装置。
1. In an image processing apparatus for processing the image data on an image memory based on the supplied image data and the processing command, a unit for receiving the image data of the original image and the processing command, and the processing command Based on the means for determining the type of processing and the size of the original image included, and the determined type of processing and the size of the original image,
Of the image data after final processing that is expanded on the image memory,
An image processing apparatus comprising: means for calculating a margin in the X direction from a planned position; and means for determining an initial expansion position of image data in the image memory so that the margin becomes "0". .
【請求項2】 供給された画像データおよび処理コマン
ドに基づいて画像メモリ上で前記画像データの処理を行
う画像処理装置において、 原画像の画像データおよび処理コマンドを受信する手段
と、 処理コマンドに含まれている処理の種類、および複合処
理か否かを判断する手段と、 複合処理と判断された場合に、処理の種類に従って該処
理の時間を最小にする順序に処理順序を入替える処理順
序決定手段とを具備したことを特徴とする画像処理装
置。
2. An image processing apparatus for processing the image data on an image memory based on the supplied image data and the processing command, a means for receiving the image data of the original image and the processing command, and a means included in the processing command. Means for determining the type of processing being performed and whether or not it is a composite processing, and when it is determined to be a composite processing, processing order determination for changing the processing order to an order that minimizes the processing time according to the type of processing An image processing apparatus comprising means.
【請求項3】 前記処理順序決定手段が、 前記複数の種類の処理中に画像の拡大を含む処理では、
他の処理の後に拡大処理を行うようにし、 画像の縮小を含む処理では、まず画像を縮小して、その
後に他の処理を行うように処理順序を決定するように構
成したことを特徴とする請求項2記載の画像処理装置。
3. The processing sequence determining means, in the processing including image enlargement during the plurality of types of processing,
The enlargement process is performed after the other process, and in the process including the image reduction, the image is first reduced, and the process order is determined so that the other process is performed after that. The image processing apparatus according to claim 2.
JP6136670A 1994-05-27 1994-05-27 Image processor Pending JPH07320048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6136670A JPH07320048A (en) 1994-05-27 1994-05-27 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6136670A JPH07320048A (en) 1994-05-27 1994-05-27 Image processor

Publications (1)

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

Family

ID=15180742

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6136670A Pending JPH07320048A (en) 1994-05-27 1994-05-27 Image processor

Country Status (1)

Country Link
JP (1) JPH07320048A (en)

Similar Documents

Publication Publication Date Title
JP3038781B2 (en) Memory access control circuit
JP4695815B2 (en) Drawing processing apparatus, drawing processing method, computer-readable storage medium, and program
JPH05552A (en) Printing device
JP4829408B2 (en) Image processing method and image processing apparatus
JPH07320048A (en) Image processor
JP2797320B2 (en) Image display device
JPS63184147A (en) Method for initializing channel controller
JP3368990B2 (en) Image processing device
JP2806790B2 (en) Character generator and method
JPH07319761A (en) Picture processor
US6985624B2 (en) Image processing apparatus and its method
JPH01246649A (en) Memory system
JP2000235516A (en) Memory system with operation function, method for controlling memory to be used for the system and recording medium recording control program
JP2906413B2 (en) Image processing apparatus and font file management method thereof
JPH10198333A (en) Outline character drawing device
JPH0462080A (en) Printing device
JPH0255170A (en) Printer controller
JPS61163469A (en) Information processor
JPH1040165A (en) Data read method and read buffer
KR970004111B1 (en) Image rotational processor
JP3159855B2 (en) Access circuit for image memory in printing apparatus and printing apparatus
JPH05127659A (en) Image display device
JPH0676050A (en) Picture processor
JPH01206443A (en) Memory access circuit and output device provided with said circuit
JPS63278851A (en) Magnification printing system of laser beam printer