JP4901705B2 - Image forming apparatus, output image processing method, and program - Google Patents

Image forming apparatus, output image processing method, and program Download PDF

Info

Publication number
JP4901705B2
JP4901705B2 JP2007318470A JP2007318470A JP4901705B2 JP 4901705 B2 JP4901705 B2 JP 4901705B2 JP 2007318470 A JP2007318470 A JP 2007318470A JP 2007318470 A JP2007318470 A JP 2007318470A JP 4901705 B2 JP4901705 B2 JP 4901705B2
Authority
JP
Japan
Prior art keywords
image
processing
path
output
data
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.)
Expired - Fee Related
Application number
JP2007318470A
Other languages
Japanese (ja)
Other versions
JP2009141862A (en
Inventor
正宏 鈴木
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007318470A priority Critical patent/JP4901705B2/en
Publication of JP2009141862A publication Critical patent/JP2009141862A/en
Application granted granted Critical
Publication of JP4901705B2 publication Critical patent/JP4901705B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Record Information Processing For Printing (AREA)

Description

本発明は、複写機、プリンタ、ファクシミリ装置等の画像形成装置に関し、より詳細には、入力画像を、変倍を含む設定条件に従って印刷出力に用いる画像データとして処理する際の処理プロセスを効率化し、資源を有効利用できるようにした画像形成装置、出力画像処理方法及びプログラムに関する。   The present invention relates to an image forming apparatus such as a copying machine, a printer, and a facsimile machine. More specifically, the present invention improves the efficiency of a processing process when processing an input image as image data used for print output in accordance with setting conditions including scaling. The present invention relates to an image forming apparatus, an output image processing method, and a program that can effectively use resources.

画像形成装置では、ユーザが要求する印刷条件で出力するために、例えば、複写機の場合、スキャナ入力した画像をプロッタで出力に用いる画像として処理する。こうした画像データの処理を行うために、複写機が搭載する処理装置は、複写機が有する各種のハードウェア、ソフトウェアを要素とする装置全体の構成面やコスト面から、データ処理の専用機であるPC(Personal Computer)のような大規模な処理装置を採用できない場合がある。   In the image forming apparatus, in order to output under printing conditions requested by the user, for example, in the case of a copying machine, an image input by a scanner is processed as an image used for output by a plotter. In order to perform such image data processing, the processing device installed in the copier is a dedicated machine for data processing in view of the configuration and cost of the entire device including various hardware and software components of the copier. There are cases where a large-scale processing device such as a PC (Personal Computer) cannot be employed.

このような状況で、データ処理に用いる資源を有効利用するために、近年では、処理するデータを圧縮して、処理するデータ量をできるだけ少なくすることや、処理過程でデータを保持するためのバッファ領域をできるだけ少なくできるようにし、記憶装置を有効利用する工夫をしている(下記特許文献1、参照)。
特開2001−113759号公報
In this situation, in order to effectively use resources used for data processing, in recent years, the data to be processed is compressed to reduce the amount of data to be processed as much as possible, and a buffer for holding data in the course of processing. The device is designed to make the area as small as possible and to effectively use the storage device (see Patent Document 1 below).
JP 2001-113759 A

ところで、従来の複写機等の画像形成装置は、変倍機能を有している。変倍機能を利用する際には、通常、変倍率を用紙サイズや%で指示する、といった方法で設定ができるようになっている。設定が拡大変倍である場合、スキャナ入力した画像が一旦圧縮され、データ量を少なくしても、プロッタ出力するときには、圧縮されたデータを伸長後、設定変倍により拡大した画像データを生成する処理を行う。したがって、プロッタに依存する誤差補正処理や設定された印刷条件(変倍を含む)に従う出力処理等を行う画像処理手段において、拡大変倍時に出力処理の対象となる画像のデータ量は、処理方法によっては、入力画像よりも多くなる。   Incidentally, a conventional image forming apparatus such as a copying machine has a scaling function. When the scaling function is used, it is usually possible to set the scaling ratio by specifying the scaling ratio using the paper size or%. If the setting is enlargement / reduction, the image input by the scanner is once compressed, and even if the data amount is reduced, when outputting to the plotter, the compressed data is expanded and then the enlarged image data is generated by setting enlargement / reduction Process. Accordingly, in the image processing means for performing error correction processing depending on the plotter, output processing in accordance with the set printing conditions (including scaling), the data amount of the image to be output at the time of enlargement scaling is the processing method Depending on the input image, the number may be larger than the input image.

ところで、拡大変倍において、処理上問題となるのは、出力画像の処理を行う上記画像処理手段で用いるラインバッファの容量がA3縦方向といったように、用紙サイズに対応して制限されている場合で、この制限のため、スキャナ入力するときの原稿のサイズ及び向き、並びに変倍の設定によっては、処理ができない場合が生じることである。
また、上記の制限をクリアできても、拡大変倍を設定したどの画像に対しても、制限がクリアできる設定における最大の変倍率を想定して、処理単位であるどのページ画像に対しても、処理に必要なバッファ領域として、データの処理過程を通して確保すると、拡大変倍率の大きくないページ画像によっては、無駄に領域を占有することになり、バッファの有効利用を損なう。
By the way, in enlargement / magnification, the problem in processing is when the capacity of the line buffer used in the image processing means for processing the output image is limited corresponding to the paper size such as A3 vertical direction. Because of this limitation, the document may not be processed depending on the size and orientation of the original when the scanner is input, and the magnification setting.
In addition, even if the above restriction can be cleared, any page image that is a processing unit is assumed for any image for which enlargement scaling is set, assuming the maximum scaling ratio in the setting that can clear the restriction. If a buffer area necessary for processing is secured through the data processing process, an area is unnecessarily occupied depending on a page image with a large enlargement / reduction ratio, which impairs effective use of the buffer.

本発明は、上記した従来技術の問題に鑑みて、拡大変倍を設定条件とする印刷出力において、画像データを処理する際に、処理プロセスを効率化し、資源を有効利用できるようにすることを解決課題とする。   In view of the above-described problems of the prior art, the present invention is to improve the efficiency of a processing process and make effective use of resources when processing image data in a print output that uses enlargement / magnification as a setting condition. Let it be a solution issue.

本発明は、処理対象の入力画像を、圧縮、符号化された入力画像データに処理する画像入力/圧縮処理手段と、前記画像入力/圧縮処理手段により処理された圧縮、符号化された入力画像データを伸長する符号伸長手段と、前記符号伸長手段により伸長された入力画像データを出力用画像データとして加工処理する画像処理手段と、前記符号伸長手段によって伸長された後の画像を縦横に回転させる画像回転手段と、入力画像が出力用画像に処理される過程で、処理対象となる画像データに対し、バッファとして機能する記憶手段と、前記符号伸長手段から前記画像処理手段へ直接画像データを転送する画像転送手段と、入力画像を設定条件に従って処理し、出力用画像として出力するために、前記各手段を動作させる制御手段を有する画像形成装置であって、前記画像処理手段は、画像を変倍処理する手段を備え、前記制御手段は、変倍が設定された画像処理を行う際に、変倍後に前記画像処理手段で処理できない主走査幅となる画像に対し、前記符号伸長手段で当該画像の符号化されたデータを伸長し、前記記憶手段を介して前記画像回転手段を用いて縦横回転を行った後、前記画像処理手段で変倍を含む画像処理を行う第一の経路又は、変倍後に前記画像処理手段で処理できる主走査幅の画像に対し、前記符号伸長手段で当該画像の符号化されたデータを伸長した後、前記画像転送手段を用いて直接前記画像処理手段に転送し、変倍を含む画像処理を行う第二の経路を選択し、選択した経路の動作を行わせることを特徴とする。
本発明は、圧縮、符号化された入力画像データを、拡大変倍が含まれる設定条件に従って、出力用画像データとして処理する出力画像処理方法であって、拡大変倍が設定された画像処理を行う際に、処理対象画像が画像処理部に必要な所定の主走査幅を拡大変倍後に超え、処理ができない画像であるか否かを判断し、処理ができないと判断した画像に対し、当該画像の符号化されたデータを伸長し、バッファとして機能する記憶手段を介して縦横の画像回転を行った後、前記画像処理部で拡大変倍を含む画像処理を行う第一の経路又は、処理ができると判断した画像に対し、当該画像の符号化されたデータを伸長した後、直接前記画像処理部に転送し、拡大変倍を含む画像処理を行う第二の経路を選択し、選択した経路の動作を実行することを特徴とする。
The present invention relates to an image input / compression processing means for processing input image data to be processed into compressed and encoded input image data, and a compressed and encoded input image processed by the image input / compression processing means. Code decompression means for decompressing data, image processing means for processing the input image data decompressed by the code decompression means as output image data, and rotating the image decompressed by the code decompression means horizontally and vertically In the process of processing the input image into the output image, the image rotation means, the storage means that functions as a buffer, and the image data directly transferred from the code decompression means to the image processing means An image transfer means for controlling the input image and a control means for operating each means to process the input image according to the set condition and output the image as an output image. In the image forming apparatus, the image processing unit includes a unit that performs scaling processing on the image, and the control unit cannot perform processing by the image processing unit after scaling when performing image processing with scaling set With respect to the image having the main scanning width, the encoded data of the image is expanded by the code expansion unit, and the image processing unit is rotated vertically and horizontally using the image rotation unit via the storage unit. For the first path for performing image processing including zooming in the above, or after the encoded data of the image is expanded by the code decompression unit for the main scanning width image that can be processed by the image processing unit after scaling The second transfer path is directly transferred to the image processing section using the image transfer section, the second path for performing image processing including scaling is selected, and the operation of the selected path is performed.
The present invention is an output image processing method for processing compressed and encoded input image data as output image data in accordance with a setting condition including enlargement / magnification, wherein image processing with enlargement / magnification is set. When performing, it is determined whether or not the image to be processed exceeds the predetermined main scanning width necessary for the image processing unit after enlargement scaling, and the image cannot be processed. The first path or processing for performing image processing including enlargement / magnification in the image processing unit after the encoded data of the image is decompressed and rotated vertically and horizontally through storage means functioning as a buffer For the image determined to be capable of being expanded, the encoded data of the image is expanded and then transferred directly to the image processing unit, and the second path for performing image processing including enlargement / magnification is selected and selected. Perform path actions And features.

本発明によると、変倍が設定された処理対象画像が画像処理部で処理ができないサイズの画像であるか否かを判断し、処理できないと判断した画像について、縦横の画像回転を行った後、前記画像処理部で変倍を含む画像処理を行う第一の経路と、処理ができると判断した画像に対し、当該画像の符号化されたデータを伸長した後、直接画像処理部に転送し、拡大変倍を含む画像処理を行う第二の経路を選択し、選択した経路の動作を実行することで、画像出力のデータ処理を効率化し、資源の有効利用を実現できる。   According to the present invention, it is determined whether or not the processing target image for which scaling has been set is an image of a size that cannot be processed by the image processing unit, and the image determined to be unprocessable is subjected to vertical and horizontal image rotation. For the first path for performing image processing including scaling in the image processing unit and the image determined to be processed, the encoded data of the image is decompressed and directly transferred to the image processing unit. By selecting the second path for performing image processing including enlargement / magnification and executing the operation of the selected path, the data processing of the image output can be made efficient, and the effective use of resources can be realized.

本発明の画像形成装置に係る実施形態を以下に説明する。
以下に示す実施形態は、本発明の画像形成装置を複写機に適用した形態を示す。よって、この実施形態では、プロッタ出力に用いる画像データを生成するために入力されるデータとして、原稿画像をスキャナで読取ることにより入力されるデータとした例について説明する。なお、多機能機(MFP)に適用し、外部ホスト機からのプロッタ出力(印刷)要求を受け、入力される各種のデータを対象にする場合にも、同様の形態で実施することができる。
An embodiment according to an image forming apparatus of the present invention will be described below.
In the following embodiment, an image forming apparatus of the present invention is applied to a copying machine. Therefore, in this embodiment, an example will be described in which data input to generate image data used for plotter output is input by reading a document image with a scanner. Note that the present invention can also be implemented in the same manner when applied to a multi-function device (MFP), receiving a plotter output (printing) request from an external host device, and targeting various types of input data.

複写機において、スキャナ入力画像をプロッタ出力用画像に処理する際に、プロッタに依存する誤差補正処理や印刷条件として設定された変倍等の画像処理を行う。本実施形態では、この画像処理を行うために用いるラインバッファの容量が、A3縦方向のサイズに制限されている。
このように、ラインバッファを必要最小限の容量に制限すると、処理上問題となるのは、スキャナ入力時の原稿のサイズ及び向き、並びに変倍率の設定によっては、A3のサイズで出力をする場合でも、処理ができない場合が生じることである。
In a copying machine, when a scanner input image is processed into a plotter output image, error correction processing depending on the plotter and image processing such as scaling set as printing conditions are performed. In this embodiment, the capacity of the line buffer used for performing this image processing is limited to the size in the A3 vertical direction.
As described above, if the line buffer is limited to the necessary minimum capacity, a problem in processing is that the document is output in the A3 size depending on the size and orientation of the original when the scanner is input and the scaling ratio. However, there are cases where processing cannot be performed.

そこで、本実施形態では、出力がA3のサイズ以下であれば、条件を問わず出力できるようにすること、また、入力画像(拡大変倍を見込んだ画像)がラインバッファの容量であるA3縦方向のサイズの範囲に入る主走査幅を持つ画像であれば、出力画像処理にバッファとして用いるメモリ(以下、「バッファメモリ」ともいう)に必要最小限の容量を確保するだけで、高速に処理ができるようにすることを意図して構成する複写機のデータ処理系を示す。
以下に、上記の意図を持って構成する複写機のデータ処理系として、「実施形態1」〜「実施形態3」を示す。「実施形態1」は、基本形態であり、「実施形態2」は、実施形態1にさらに、出力用紙のサイズ及び縦横方向との整合を図るための処理過程を付加した形態を、また、「実施形態3」は、バッファメモリの容量を実行条件によってチェック可能とした形態を示す。
Therefore, in the present embodiment, if the output is equal to or smaller than the size of A3, it is possible to output regardless of the conditions, and the input image (an image in which enlargement / magnification is expected) is A3 vertical length which is the capacity of the line buffer. If the image has a main scanning width that falls within the range of the size in the direction, it can be processed at high speed simply by securing the minimum necessary capacity in a memory used as a buffer for output image processing (hereinafter also referred to as “buffer memory”). 1 shows a data processing system of a copying machine that is intended to be able to perform the above.
In the following, “embodiment 1” to “embodiment 3” are shown as data processing systems of a copying machine configured with the above intention. “Embodiment 1” is a basic form, and “Embodiment 2” is a form in which processing steps for further matching the size and the vertical and horizontal directions of the output paper are added to Embodiment 1, and “ The “third embodiment” shows a mode in which the capacity of the buffer memory can be checked according to the execution condition.

「実施形態1」
“実施形態1に係る複写機の概要”
図1は、本実施形態に係る複写機の概略構成を示すブロック図である。
図1におけるCPU(Central Processing Unit)21は、図示しないプログラムを格納するROM(Read Only Memory)及びメモリ22を制御下において、複写機全体を統合、制御するコントローラを構成する。よって、CPU21には、原稿をカラー読取りをするスキャナ11から画像入力を受ける画像入力/圧縮処理手段12と、圧縮された画像を伸長する画像伸長手段23と、変倍を含む出力画像を処理する画像処理手段25と、画像の回転処理を行う画像回転手段26と、用紙への印刷を行うプロッタ32へ画像出力を行う画像出力手段31が、バス41を介して接続される。また、画像転送手段24は、画像伸長手段23から画像処理手段25にバス42経由で直接画像を転送するための手段である。なお、CPU21の下にデータ処理をする上記の各手段は、ASIC(Application Specific Integrated Circuit)で構成することができるが、ソフトウェアで構成することも可能である。
Embodiment 1”
“Outline of Copying Machine According to Embodiment 1”
FIG. 1 is a block diagram showing a schematic configuration of the copying machine according to the present embodiment.
A CPU (Central Processing Unit) 21 in FIG. 1 constitutes a controller that integrates and controls the entire copying machine under the control of a ROM (Read Only Memory) and a memory 22 that store a program (not shown). Therefore, the CPU 21 processes the image input / compression processing means 12 that receives an image input from the scanner 11 that performs color reading on the document, the image expansion means 23 that expands the compressed image, and the output image including the magnification change. An image processing unit 25, an image rotation unit 26 that performs image rotation processing, and an image output unit 31 that outputs an image to a plotter 32 that performs printing on paper are connected via a bus 41. The image transfer unit 24 is a unit for directly transferring an image from the image expansion unit 23 to the image processing unit 25 via the bus 42. Note that each of the above-mentioned means for processing data under the CPU 21 can be configured by an ASIC (Application Specific Integrated Circuit), but can also be configured by software.

図1に示す複写機のデータ処理系は、コピーを要求するジョブを処理する際に、コントローラ(制御手段)によって、ページ単位でスキャナ11による画像入力からプロッタ32による用紙への印刷出力までの処理が管理される。
コピー要求時に、基本的には、次の過程を経てコピー出力処理を行う。即ち、入力過程では、スキャナ11による原稿読取りにより入力された画像を画像入力/圧縮処理手段12で各種の補正、調整を行い、正規化及び高画質化された画像データに圧縮処理を施した後、一旦バッファとして機能する記憶手段であるメモリ22に保持される。出力過程では、メモリ22に保持された圧縮データを画像伸長手段23で伸長し、圧縮前のデータに復元し、得られるデータに対し、画像処理手段25でプロッタ32に依存する誤差補正処理等の通常行う画像出力処理を行い、処理後の画像データをプロッタ32へ出力する画像出力手段31に送る。なお、画像転送手段24は、画像伸長手段23で復元されたデータを直ちに画像処理手段25で処理できる場合には、メモリ22を介することなく、この手段間で直接データを転送するために用いられる。
The data processing system of the copying machine shown in FIG. 1 performs processing from image input by the scanner 11 to print output on a sheet by the plotter 32 by a controller (control means) when processing a job requesting copying. Is managed.
When a copy request is made, basically, a copy output process is performed through the following process. That is, in the input process, the image input by reading the document by the scanner 11 is subjected to various corrections and adjustments by the image input / compression processing means 12, and the normalized and high-quality image data is subjected to compression processing. , Once stored in the memory 22 which is a storage means that functions as a buffer. In the output process, the compressed data held in the memory 22 is decompressed by the image decompressing means 23 and restored to the data before compression. The obtained data is subjected to error correction processing depending on the plotter 32 by the image processing means 25 or the like. A normal image output process is performed, and the processed image data is sent to the image output means 31 that outputs to the plotter 32. The image transfer means 24 is used to transfer data directly between the means without using the memory 22 when the data restored by the image decompression means 23 can be immediately processed by the image processing means 25. .

コピー要求に変倍が設定されると、プロッタ出力用の画像処理を行う画像処理手段25では、プロッタ32に依存する誤差補正処理等の通常行う画像出力処理に加え、設定された変倍等の画像処理を行う。
本実施形態では、印刷出力をA3のサイズの用紙に出力することを仕様とし、この出力処理を行うために、画像処理手段25で用いるラインバッファの容量を、A3用紙に出力するための最低限のサイズであるA3縦方向に必要な容量に決めている。このため、A3横方向のサイズを主走査幅として、画像処理手段25に入力しても、処理ができない。
そこで、A3のサイズの用紙に出力する際、入力する方向がA3横である場合には、画像処理手段25の前段で、処理が可能なA3縦方向を主走査とする方向に画像を定める回転処理を画像回転手段26によって行うようにする。
When scaling is set in the copy request, the image processing means 25 that performs image processing for plotter output performs not only normal image output processing such as error correction processing depending on the plotter 32 but also the set scaling and the like. Perform image processing.
In this embodiment, the print output is specified to be output on a sheet of A3 size, and in order to perform this output process, the capacity of the line buffer used in the image processing means 25 is the minimum for outputting to A3 sheet. The required capacity is determined in the A3 vertical direction. For this reason, even if the A3 horizontal size is input to the image processing means 25 as the main scanning width, processing cannot be performed.
Therefore, when outputting to a sheet of A3 size, if the input direction is A3 landscape, the image processing unit 25 is rotated in front of the image processing means 25 to determine the image in a direction in which the A3 vertical direction that can be processed is main scanning. The processing is performed by the image rotation means 26.

“処理経路の選択”
上記した画像回転処理の要、不要は、入力画像によって決まる。即ち、入力画像が、画像処理手段25のラインバッファの容量として決められているA3縦方向を超える主走査幅である場合にのみ、この画像回転を行う。なお、上記入力画像の主走査幅は、変倍が設定されている場合には、変倍後の主走査方向の長さである。
従って、入力画像の主走査幅を、原稿台にセットされた原稿の主走査方向の長さ及びユーザが設定した変倍率から求め、求めた変倍後の主走査幅が、A3縦方向に対応する主走査幅を超えるか、否かを判断し、超える場合には画像回転を必要とし、超えない場合には回転を不要とする。
この判断は、プロッタ出力処理を実行するときまでに行い、それぞれの判断に従い、プロッタ出力用データの処理経路を選択する。ここでは、画像回転処理を必要とし、画像回転手段26を通す経路を第一の経路、また、画像回転処理を不要とし、画像回転手段26を通さない経路を第二の経路とし、各経路のデータ処理について、以下に分説する。
“Select processing path”
Whether the image rotation process described above is necessary or not depends on the input image. That is, this image rotation is performed only when the input image has a main scanning width that exceeds the A3 vertical direction determined as the capacity of the line buffer of the image processing means 25. Note that the main scanning width of the input image is the length in the main scanning direction after zooming when zooming is set.
Accordingly, the main scanning width of the input image is obtained from the length of the document set on the document table in the main scanning direction and the magnification set by the user, and the obtained main scanning width corresponds to the A3 vertical direction. It is determined whether or not the main scanning width is exceeded. If it exceeds, the image rotation is required, and if not, the rotation is not required.
This determination is performed until the plotter output process is executed, and the processing path of the plotter output data is selected according to each determination. Here, an image rotation process is required, a path through the image rotation means 26 is a first path, an image rotation process is not required, and a path that does not pass through the image rotation means 26 is a second path. The data processing is described below.

“第一の経路”
第一の経路は、変倍後の入力画像の主走査幅が、画像処理手段25のラインバッファの容量を超え、画像回転処理を必要とし、画像回転手段26を通してデータ処理を行う経路である。
図2は、図1の構成において、画像回転を伴うデータ処理経路(第一の経路)を矢印で示す図である。また、図3は、第一の経路で行うデータ処理の具体例を説明する図である。
“First route”
The first path is a path in which the main scanning width of the input image after scaling exceeds the capacity of the line buffer of the image processing unit 25, requires image rotation processing, and performs data processing through the image rotation unit 26.
FIG. 2 is a diagram showing a data processing path (first path) accompanied by image rotation with arrows in the configuration of FIG. FIG. 3 is a diagram illustrating a specific example of data processing performed in the first route.

図2及び図3を参照して、第一の経路で行うデータ処理を説明する。なお、以下では、スキャナ入力画像をA4サイズの原稿とし、プロッタ出力をA3サイズの用紙とする拡大変倍が設定された場合を例に、図2の経路(1)〜(10)の順に処理を説明する。
経路(1):スキャナ11でA4縦を主走査方向にセットした原稿を読取り、入力された図3に示す入力画像Dを画像入力/圧縮処理手段12に送る。
経路(2):画像入力/圧縮処理手段12で入力画像Dを正規化及び高画質化し、さらに画像にデータ圧縮を掛け、圧縮後のデータを図3に示す符号データDとしてメモリ22に送る。
経路(3):メモリ22に一旦保持した符号データDは、後段で出力用の画像として処理するので、符号データDを入力画像に復元するために画像伸長手段23に送る。
経路(4):画像伸長手段23で符号データDを伸長し、図3に示す伸長後画像Dとしてメモリ22に送る。
With reference to FIGS. 2 and 3, data processing performed in the first route will be described. In the following, processing is performed in the order of paths (1) to (10) in FIG. 2 by taking as an example a case where enlargement / magnification is set with the scanner input image as the A4 size document and the plotter output as the A3 size paper. Will be explained.
Route (1): The scanner 11 reads a document placed the A4 longitudinal in the main scanning direction, and sends the input image D 1 shown in FIG. 3 which is input to the image input / compression processing unit 12.
Pathway (2): normalized and high image quality of the input image D 1 by the image input / compression processing unit 12, further multiplied by the data compression to the image data after compression in the memory 22 as the code data D 2 shown in FIG. 3 send.
Route (3): code data D 2 once held in the memory 22, since the processing as an image for output at a later stage, and sends the image decompression unit 23 to recover the encoded data D 2 to the input image.
Route (4): the code data D 2 is extended by the image extension unit 23, and sends to the memory 22 as a post elongation image D 3 shown in FIG.

経路(5):メモリ22に一旦保持した伸長後画像Dは、後段で出力用の画像として処理するが、ここではA3サイズの用紙とする拡大変倍が設定されており、図3に示す伸長後画像Dをそのまま主走査方向を変えないで、拡大変倍をすると、A3横方向となってしまい、画像処理手段25のラインバッファのA3縦方向の容量を超えてしまう。よって、伸長後画像Dを縦横回転するために画像回転手段26に送る。
経路(6):画像回転手段26で伸長後画像Dを縦横回転し、図3に示す縦横回転後画像Dとしてメモリ22に送る。
経路(7):メモリ22に一旦保持した縦横回転後画像Dは、出力用の画像として処理するために画像処理手段25に送る。
Route (5): elongation after image D 3 temporarily held in the memory 22 is processed as an image for output at a later stage, here it is set the larger magnification to A3 size paper, shown in FIG. 3 without directly changing the main scanning direction an image D 3 after stretching, when the expansion magnification, becomes a A3 laterally, it exceeds the A3 longitudinal capacity of the line buffer of the image processing unit 25. Thus, sending a post elongation image D 3 to the image rotation unit 26 to vertical and horizontal rotation.
Route (6): elongation after image D 3 by the image rotation unit 26 vertically and horizontally rotated, and sends to the memory 22 as vertical and horizontal image after rotation D 4 shown in FIG.
Route (7): Aspect image after rotation D 4 once held in the memory 22 and sends it to the image processing unit 25 for processing as an image for output.

経路(8):画像処理手段25で縦横回転後画像Dをプロッタ32に依存する誤差補正処理等の通常行う画像出力処理に加え、設定されたA3サイズの用紙とする拡大変倍処理を行い、図3に示す画像処理後画像Dとしてメモリ22に送る。ここでは、前段の画像回転手段26による縦横回転処理で画像処理後画像Dの主走査方向はA3縦方向となっているので、画像処理手段25のラインバッファのA3縦方向の容量を超えることは無く、画像処理を行うことができる。また、ここでは、入力画像がカラーであるから、画像処理手段25で、入力RGB(各8ビット)を出力用のCMYK(各1ビット)に変換する。
経路(9):メモリ22に一旦保持した画像処理後画像Dは、プロッタ32で用いる出力画像Dを出力する画像出力手段31に送る。
経路(10):画像出力手段31を介してプロッタ32に出力画像Dを出力する。
Route (8): In addition the aspect image after rotation D 4 by the image processing unit 25 in the normal image output processing performed in the error correction processing and the like which depend on the plotter 32, performs enlargement scaling to A3 paper size set and it sends it to the memory 22 as the image processed image D 5 shown in FIG. Here, since the main scanning direction of the image processed image D 5 vertical and horizontal rotation processing by the preceding image rotation means 26 has a A3 longitudinally exceed A3 longitudinal capacity of the line buffer of the image processing unit 25 There is no image processing. Here, since the input image is color, the image processing means 25 converts the input RGB (8 bits each) into CMYK for output (1 bit each).
Path (9): The post-image processed image D 5 once held in the memory 22 is sent to the image output means 31 that outputs the output image D 6 used in the plotter 32.
Route (10): via the image output unit 31 outputs the output image D 6 to the plotter 32.

“第二の経路”
第二の経路は、変倍後の入力画像の主走査幅が、画像処理手段25のラインバッファの容量を超えず、画像回転処理が不要であるから、画像回転手段26を通さずにデータ処理を行う経路である。
図4は、図1の構成において、画像回転が不要なデータ処理経路(第二の経路)を矢印で示す図である。また、図5は、第一の経路で行うデータ処理の具体例を説明する図である。
“Second path”
In the second path, since the main scanning width of the input image after scaling does not exceed the capacity of the line buffer of the image processing means 25 and image rotation processing is unnecessary, data processing without passing through the image rotation means 26 is performed. It is a route to do.
FIG. 4 is a diagram showing, by arrows, data processing paths (second paths) that do not require image rotation in the configuration of FIG. FIG. 5 is a diagram for explaining a specific example of data processing performed in the first route.

図4及び図5を参照して、第二の経路で行うデータ処理を説明する。なお、以下では、スキャナ入力画像を上記した第一の経路と同様にA4サイズの原稿とし、プロッタ出力をA3サイズの用紙とする拡大変倍が設定された場合を例に、図4の経路(1)〜(7)の順に処理を説明する。なお、上記した第一の経路とは、同じA4の原稿でも、セットする方向が、第二の経路では、A4横を主走査方向にし、A4縦にした場合と異なる。
経路(1):スキャナ11でA4横を主走査方向にセットした原稿を読取り、入力された図5に示す入力画像Dを画像入力/圧縮処理手段12に送る。
経路(2):画像入力/圧縮処理手段12で入力画像Dを正規化及び高画質化し、さらに画像にデータ圧縮を掛け、圧縮後のデータを図3に示す符号データDとしてメモリ22に送る。
経路(3):メモリ22に一旦保持した符号データDは、後段で出力用の画像として処理するので、符号データDを入力画像に復元するために画像伸長手段23に送る。
With reference to FIGS. 4 and 5, data processing performed in the second route will be described. Note that, in the following description, an example in which enlargement / magnification is set in which the scanner input image is set to an A4 size original and the plotter output is set to A3 size paper in the same manner as in the first path described above will be described. Processing will be described in the order of 1) to (7). The first path is different from the case of setting the same A4 document even in the same A4 document in the second path when the A4 landscape is the main scanning direction and the A4 landscape.
Route (1): The scanner 11 reads a document placed A4 landscape in the main scanning direction, and sends the input image D 1 shown in FIG. 5 which is input to the image input / compression processing unit 12.
Pathway (2): normalized and high image quality of the input image D 1 by the image input / compression processing unit 12, further multiplied by the data compression to the image data after compression in the memory 22 as the code data D 2 shown in FIG. 3 send.
Route (3): code data D 2 once held in the memory 22, since the processing as an image for output at a later stage, and sends the image decompression unit 23 to recover the encoded data D 2 to the input image.

経路(4):画像伸長手段23で符号データDを伸長し、復元した画像は、後段で出力用の画像として処理し、そのときにA3サイズの用紙とする拡大変倍の設定に従い変倍処理を行うが、復元した伸長後画像D(入力画像D)をそのままA3に変倍しても、画像処理手段25のラインバッファのA3縦方向の容量を超えない。よって、上記した第一の経路のように、画像回転を行う経路の通すことなく、伸長後画像Dを画像転送手段24によって直接画像処理手段25に転送する。
経路(5):画像処理手段25で伸長後画像Dをプロッタ32に依存する誤差補正処理等の通常行う画像出力処理に加え、設定されたA3サイズの用紙とする拡大変倍処理を行い、図3に示す画像処理後画像Dとしてメモリ22に送る。なお、ここでは、入力画像がカラーであるから、画像処理手段25で、入力RGB(各8ビット)を出力用のCMYK(各1ビット)に変換する。
経路(6):メモリ22に一旦保持した画像処理後画像Dは、プロッタ32で用いる出力画像Dを出力する画像出力手段31に送る。
経路(7):画像出力手段31を介してプロッタ32に出力画像Dを出力する。
なお、上記した“第一の経路”及び“第二の経路”の説明では、A4原稿のスキャナ入力をA3用紙でプロッタ出力する例を示したが、この例は、単なる例示で、この経路の選択は、上述のように、変倍後の主走査幅が、A3縦方向に対応する主走査幅を超えるか、否かによる。
Route (4): extends in the image expanding means 23 the code data D 2, restored image processes as an image for output at a later stage, scaling in accordance with the setting of the enlargement magnification to that time A3 size paper Even if the restored post-decompression image D 3 (input image D 1 ) is directly scaled to A3, the capacity of the line buffer of the image processing means 25 in the A3 vertical direction is not exceeded. Therefore, as in the first path described above, without going through the route to perform image rotation, it transfers the decompressed image after D 3 directly image processing unit 25 by the image transfer unit 24.
Route (5): In addition elongation after image D 3 by the image processing unit 25 in the normal image output processing performed in the error correction processing and the like which depend on the plotter 32, performs enlargement scaling to A3 paper size set, send to the memory 22 as the image processed image D 5 shown in FIG. Here, since the input image is color, the image processing means 25 converts the input RGB (8 bits each) into CMYK for output (1 bit each).
Route (6): image processing after image D 5 once held in the memory 22 and sends it to the image output unit 31 for outputting an output image D 6 used in the plotter 32.
Route (7): via the image output unit 31 outputs the output image D 6 to the plotter 32.
In the above description of “first path” and “second path”, an example in which the A4 original scanner input is output as a plotter on A3 paper is shown. As described above, the selection depends on whether or not the main scanning width after scaling exceeds the main scanning width corresponding to the A3 vertical direction.

“出力データ処理の制御フロー”
次に、プロッタ出力時に上記した第一の経路及び第二の経路を選択し、実行するデータ処理の制御フローについて、図6を参照して説明する。なお、図6に示す制御フローは、複写機全体を制御するコントローラとして働くCPU21が、図示しないROMに格納したプログラムを駆動することによって実行される。
コントローラは、プロッタ出力が必要なコピー等の要求を受け、図6に示す制御フローを起動し、始めに、入力画像サイズと向き、並びに変倍率情報を取得する(ステップS101)。コントローラは、コピー等を要求するジョブに付属する各種の情報を管理し、管理情報をコピー処理に係る各処理手段を制御するために利用する。この管理情報には、ユーザが操作部を通して入力するコピー要求時の設定条件や複写機の動作に係る状態の変化を検知するセンサの検知情報等が含まれる。コントローラは、図6の制御フローの実行に必要な制御用情報を取得するために、スキャナ情報を取得する第一の制御用情報取得手段とプロッタ情報を取得する第二の制御用情報取得手段を有し、ステップS101では、スキャナ11の読取位置にセットされた原稿のサイズと向き並びにユーザが操作部を通して設定した変倍率情報を第一の制御用情報取得手段によって、メモリ22の管理情報を格納する領域から取得する。
“Control flow of output data processing”
Next, a control flow of data processing executed by selecting and executing the first route and the second route described above at the time of plotter output will be described with reference to FIG. The control flow shown in FIG. 6 is executed by driving a program stored in a ROM (not shown) by the CPU 21 that functions as a controller for controlling the entire copying machine.
Upon receiving a request for copying or the like that requires plotter output, the controller activates the control flow shown in FIG. 6, and first acquires the input image size and orientation, and scaling information (step S101). The controller manages various types of information attached to a job requesting copying and the like, and uses the management information to control each processing unit related to the copy processing. The management information includes setting conditions at the time of a copy request input by the user through the operation unit, detection information of a sensor that detects a change in state related to the operation of the copying machine, and the like. The controller includes first control information acquisition means for acquiring scanner information and second control information acquisition means for acquiring plotter information in order to acquire control information necessary for executing the control flow of FIG. In step S101, the management information stored in the memory 22 is stored by the first control information acquisition means using the first control information acquisition means for the size and orientation of the document set at the reading position of the scanner 11 and the magnification information set by the user through the operation unit. Get from the area to be.

次に、ステップS101で取得した入力画像サイズと向き、並びに変倍率に基づき、変倍後の入力画像の主走査幅(主走査長さ)を算出する(ステップS102)。変倍後の入力画像の主走査幅は、スキャナにセットした原稿の縦横どちらを主走査方向にしているかにより異なるので、原稿の縦、横のどちらを主走査方向にセットしているかを示す情報と、さらに、変倍率によっても処理すべき主走査幅が変わるので、これらの情報から、処理に必要な長さを計算する。   Next, the main scanning width (main scanning length) of the input image after scaling is calculated based on the input image size and orientation acquired in step S101 and the scaling ratio (step S102). The main scanning width of the input image after scaling varies depending on whether the original or horizontal direction of the document set in the scanner is in the main scanning direction, so information indicating which of the original or horizontal direction of the document is set in the main scanning direction Further, since the main scanning width to be processed also changes depending on the magnification, the length necessary for the processing is calculated from these pieces of information.

次に、画像処理手段25への入力画像が処理可能であるか否かをチェックするために、ステップS102で算出した変倍後の入力画像の主走査幅が、画像処理手段25のラインバッファの主走査幅を超えるか否かを判断する(ステップS103)。
ここで、変倍後の入力画像の主走査幅がラインバッファの主走査幅を超え、処理が可能ではないと判断された場合(ステップS104-YES)、第一の経路を選択する(ステップS105)。この第一の経路は、上記“第一の経路”にて説明した処理過程で画像出力動作を行うので、以下に示す処理フローに従って、この処理過程に係る各手段の動作を管理する。
Next, in order to check whether or not the input image to the image processing unit 25 can be processed, the main scanning width of the input image after the scaling calculated in step S102 is the line buffer of the image processing unit 25. It is determined whether or not the main scanning width is exceeded (step S103).
If it is determined that the main scanning width of the input image after scaling exceeds the main scanning width of the line buffer and processing is not possible (YES in step S104), the first path is selected (step S105). ). Since this first path performs an image output operation in the process described in the above “first path”, the operation of each means related to this process is managed according to the process flow shown below.

画像出力のデータ処理の実行に先立ち、第一の経路で画像をハンドリングするために必要なメモリ領域をバッファとして用いるメモリ22に確保する(ステップS106)。このとき、必要なメモリ領域の大きさは、第一の制御用情報取得手段によって得るスキャナ情報と第二の制御用情報取得手段によって得るプロッタ情報から求める。即ち、スキャナ情報から読取原稿のサイズ、主走査幅が分かり、ライン分やページ分の入力データを保持するために必要なメモリ領域を求めることができる。また、プロッタ情報から用紙のサイズ、主走査幅が分かり、ライン分やページ分の出力データを保持するために必要なメモリ領域を求めることができる。   Prior to execution of data processing for image output, a memory area necessary for handling an image in the first path is secured in the memory 22 used as a buffer (step S106). At this time, the required size of the memory area is obtained from the scanner information obtained by the first control information obtaining unit and the plotter information obtained by the second control information obtaining unit. That is, the size and main scanning width of the read document can be known from the scanner information, and a memory area necessary for holding input data for lines and pages can be obtained. Further, the paper size and main scanning width can be known from the plotter information, and a memory area necessary for holding output data for lines and pages can be obtained.

次いで、第一の経路で画像をハンドリングし、データ処理を行うために、この処理過程に係る手段において、必要な制御用データをレジスタに設定し、また、画像を転送するDMA(Direct Memory Access)転送に用いるディスクリプタを設定する(ステップS107)。上記のレジスタ設定は、第一の経路では、上記“第一の経路”にて説明した過程で画像出力のデータ処理を行うので、画像伸長手段23、データパス切り替え手段、画像回転手段26及び画像処理手段25に対して行う。
なお、上記データパス切り替え手段は、画像伸長手段23と画像処理手段25がそれぞれ内部に持ち、第一の経路と第二の経路の選択に伴い、転送路を切替える。第一の経路の場合、データパス切り替え手段は、バス41経由で転送し、画像伸長手段23と画像処理手段25間の転送をしない切り替え動作状態となる。また、上記DMA転送は、この実施形態では、メモリ22に記憶された画像を画像伸長手段23、画像回転手段26及び画像処理手段25それぞれにおける処理を経て、メモリ22に書き戻すパスに用いるので、この転送動作に必要なディスクリプタ(上記特許文献1、参照)を設定する。
Next, in order to handle the image in the first path and perform data processing, in the means related to this processing process, necessary control data is set in a register, and DMA (Direct Memory Access) for transferring the image A descriptor used for transfer is set (step S107). In the first path, the above register setting is performed by the image output data process in the process described in the above “first path”. Therefore, the image decompression unit 23, the data path switching unit, the image rotation unit 26, and the image This is performed for the processing means 25.
The data path switching means is provided inside the image expansion means 23 and the image processing means 25, respectively, and switches the transfer path in accordance with the selection of the first path and the second path. In the case of the first route, the data path switching means transfers via the bus 41 and enters a switching operation state in which no transfer between the image decompression means 23 and the image processing means 25 is performed. In this embodiment, the DMA transfer is used as a path for writing the image stored in the memory 22 back to the memory 22 through the processing in the image decompression means 23, the image rotation means 26, and the image processing means 25. A descriptor (see Patent Document 1 above) necessary for this transfer operation is set.

ステップS106,S107を終えると、画像出力のデータ処理を実行する準備が整うので、第一の経路に従い、画像伸長手段23、データパス切り替え手段、画像回転手段26及び画像処理手段25を順に動作させてデータ処理を実行する(ステップS108)。
ステップS108で画像出力のデータ処理を行った後、この制御フローを終了する。
When steps S106 and S107 are completed, preparation for executing data processing for image output is completed, and the image expansion means 23, the data path switching means, the image rotation means 26, and the image processing means 25 are sequentially operated according to the first route. Data processing is then executed (step S108).
After performing image output data processing in step S108, the control flow ends.

他方、ステップS104で、変倍後の入力画像の主走査幅が画像処理手段25のラインバッファの主走査幅を超えず、処理が可能であると判断された場合(ステップS104-NO)、第二の経路を選択する(ステップS111)。この第二の経路は、上記“第二の経路”にて説明した処理過程で画像出力動作を行うので、以下に示す処理フローに従って、この処理過程に係る各手段の動作を管理する。   On the other hand, if it is determined in step S104 that the main scanning width of the input image after scaling does not exceed the main scanning width of the line buffer of the image processing means 25 and processing is possible (step S104-NO), A second route is selected (step S111). Since the second path performs an image output operation in the process described in the above “second path”, the operation of each unit related to this process is managed according to the process flow shown below.

画像出力のデータ処理の実行に先立ち、第二の経路で画像をハンドリングするために必要なメモリ領域をバッファとして用いるメモリ22に確保する(ステップS112)。このとき、必要なメモリ領域の大きさは、スキャナ情報とプロッタ情報から求める。なお、必要なメモリ領域は、上記ステップS106で行ったと同様に、求めることができる。
次いで、第二の経路で画像をハンドリングし、データ処理を行うために、この処理過程に係る手段において、必要な制御用データをレジスタに設定し、また、画像を転送するDMA転送に用いるディスクリプタを設定する(ステップS113)。上記のレジスタ設定は、第二の経路では、上記“第二の経路”にて説明した過程で画像出力のデータ処理を行うので、画像伸長手段23、データパス切り替え手段、画像転送手段24及び画像処理手段25に対して行う。
Prior to execution of data processing for image output, a memory area necessary for handling images in the second path is secured in the memory 22 used as a buffer (step S112). At this time, the necessary memory area size is obtained from the scanner information and the plotter information. The necessary memory area can be obtained in the same manner as in step S106.
Next, in order to handle the image in the second path and perform data processing, in the means relating to this processing process, necessary control data is set in a register, and a descriptor used for DMA transfer for transferring the image is set. Setting is made (step S113). In the second path, the above register setting is performed in the process described in the above “second path”, so that the image output data is processed. Therefore, the image decompression unit 23, the data path switching unit, the image transfer unit 24, and the image This is performed for the processing means 25.

なお、第二の経路の場合、データパス切り替え手段は、バス42経由で転送し、画像伸長手段23と画像処理手段25間で直接転送を行う切り替え動作状態となる。つまり、メモリ22を介して転送は行わない。また、上記DMA転送は、この実施形態では、メモリ22に記憶された画像を画像伸長手段23及び画像処理手段25における処理を経て、メモリ22に書き戻すパスに用いるので、この転送動作に必要なディスクリプタを設定する。
ステップS112,S113を終えると、画像出力のデータ処理を実行する準備が整うので、第二の経路に従い、画像伸長手段23、データパス切り替え手段、画像転送手段24及び画像処理手段25を順に動作させてデータ処理を実行する(ステップS114)。
ステップS114で画像出力のデータ処理を行った後、この制御フローを終了する。
In the case of the second route, the data path switching unit is in a switching operation state in which transfer is performed via the bus 42 and direct transfer is performed between the image expansion unit 23 and the image processing unit 25. That is, no transfer is performed via the memory 22. Further, in this embodiment, the DMA transfer is used for a path in which an image stored in the memory 22 is processed in the image decompression unit 23 and the image processing unit 25 and written back to the memory 22. Set the descriptor.
When steps S112 and S113 are completed, preparation for execution of data processing for image output is completed. Accordingly, the image decompression unit 23, the data path switching unit, the image transfer unit 24, and the image processing unit 25 are sequentially operated according to the second path. Data processing is then executed (step S114).
After performing image output data processing in step S114, the control flow ends.

この実施形態によると、縦横比の異なる画像の長い方を主走査方向として入力したために、変倍後に画像処理手段25のラインバッファの主走査幅を超え、画像出力のデータ処理ができなくなる場合でも、予め画像回転手段26によって縦横回転し、該ラインバッファの主走査幅と同じ幅に限定し、処理を可能とする第一の経路を選択できるようにすることで、回路規模の増大を防ぎ、低コストのハードウェア構成による処理を実現することができる。また、画像回転をしなくても、画像処理手段25で処理できる範囲内の画像を処理する場合には、データ圧縮された画像を伸長する画像伸長手段23から画像処理手段25までをメモリ22を介さずに、画像転送手段24で直接データを転送する第二の経路を選択できるようにすることで、ファーストコピー速度の向上と、メモリ22へのアクセス量増加によるデータパスの混雑を回避することができ、処理を効率化し、資源を有効利用できる。
また、ソフトウェアによって、圧縮前の画像データの主走査及び副走査方向のサイズを記憶しておき、画像処理手段25によって拡大変倍等の処理が行われた場合に、画像処理手段25が処理可能な主走査幅で収まるか否かを判断し、判断に従い、画像出力処理のデータパスとして、第一又は第二の経路を正しく選択することができる。
According to this embodiment, since the longer one of the images with different aspect ratios is input as the main scanning direction, even if the main scanning width of the line buffer of the image processing means 25 is exceeded after scaling, data processing for image output becomes impossible. , By rotating the image by the image rotation means 26 in advance and limiting to the same width as the main scanning width of the line buffer, and enabling the selection of the first path that enables processing, prevents an increase in circuit scale, Processing with a low-cost hardware configuration can be realized. In addition, when processing an image within the range that can be processed by the image processing means 25 without image rotation, the memory 22 is stored from the image expansion means 23 to the image processing means 25 for expanding the data-compressed image. By enabling the image transfer unit 24 to select the second route for directly transferring data without using the intermediary, it is possible to improve the first copy speed and avoid data path congestion due to an increase in the access amount to the memory 22. Can improve processing efficiency and effectively use resources.
In addition, the software stores the size of the image data before compression in the main scanning and sub-scanning directions, and can be processed by the image processing unit 25 when processing such as enlargement / magnification is performed by the image processing unit 25. It can be determined whether or not the main scanning width can be accommodated, and according to the determination, the first or second path can be correctly selected as the data path of the image output processing.

「実施形態2」
この実施形態は、実施形態1において、出力用紙のサイズ及び縦横方向との整合を図るための処理を画像出力のデータ処理過程に付加した形態を示す。
“実施形態2に係る複写機の概要”
図7は、本実施形態に係る複写機の概略構成を示すブロック図である。
図7におけるCPU21は、図示しないプログラムを格納するROM及びメモリ22を制御下において、複写機全体を統合、制御するコントローラを構成する。よって、CPU21には、原稿を読取るスキャナ11から画像入力を受ける画像入力/圧縮処理手段12と、圧縮された画像を伸長する画像伸長手段23と、変倍を含む出力画像を処理する画像処理手段25と、画像の回転処理を行う画像回転手段(1)26と、画像の回転処理を行う画像回転手段(2)28と、用紙への印刷を行うプロッタ32へ画像出力を行う画像出力手段31が、バス41を介して接続される。また、CPU21には、スキャナ11に接続されたスキャナ入力情報取得手段15と、操作部51に接続された画像処理情報取得手段55と、プロッタ32に接続された出力用紙取得手段35が、バス43を介して接続される。また、画像転送手段24は、画像伸長手段23から画像処理手段25にバス42経由で直接画像を転送するための手段である。なお、CPU21の下にデータ処理をする上記の各手段は、ASIC(Application Specific Integrated Circuit)で構成することができるが、ソフトウェアで構成することも可能である。
Embodiment 2”
This embodiment shows a form in which processing for matching the size and the vertical and horizontal directions of the output paper is added to the data processing process of image output in the first embodiment.
“Outline of Copying Machine According to Second Embodiment”
FIG. 7 is a block diagram showing a schematic configuration of the copying machine according to the present embodiment.
The CPU 21 in FIG. 7 constitutes a controller that integrates and controls the entire copier under the control of a ROM and a memory 22 that store programs (not shown). Therefore, the CPU 21 includes an image input / compression processing unit 12 that receives an image input from the scanner 11 that reads a document, an image expansion unit 23 that expands a compressed image, and an image processing unit that processes an output image including scaling. 25, an image rotation means (1) 26 that performs image rotation processing, an image rotation means (2) 28 that performs image rotation processing, and an image output means 31 that outputs an image to a plotter 32 that performs printing on paper. Are connected via the bus 41. The CPU 21 includes a scanner input information acquisition unit 15 connected to the scanner 11, an image processing information acquisition unit 55 connected to the operation unit 51, and an output sheet acquisition unit 35 connected to the plotter 32. Connected through. The image transfer unit 24 is a unit for directly transferring an image from the image expansion unit 23 to the image processing unit 25 via the bus 42. Note that each of the above-mentioned means for processing data under the CPU 21 can be configured by an ASIC (Application Specific Integrated Circuit), but can also be configured by software.

図7に示す複写機のデータ処理系は、コピーを要求するジョブを処理する際に、コントローラ(制御手段)によって、ページ単位でスキャナ11による画像入力からプロッタ32による用紙への印刷出力までの処理が管理される。
コピー要求時に、基本的には、次の過程を経てコピー出力処理を行う。即ち、入力過程では、スキャナ11による原稿読取りにより入力された画像を画像入力/圧縮処理手段12で各種の補正、調整を行い、正規化及び高画質化された画像データに圧縮処理を施した後、一旦メモリ22に保持される。出力過程では、メモリ22に保持された圧縮データを画像伸長手段23で伸長し、圧縮前のデータに復元し、得られるデータに対し、画像処理手段25でプロッタ32に依存する誤差補正処理等の通常行う画像出力処理を行い、処理後の画像データをプロッタ32へ出力する画像出力手段31に送る。なお、画像転送手段24は、画像伸長手段23で復元されたデータを直ちに画像処理手段25で処理できる場合には、メモリ22を介することなく、この手段間で直接データを転送するために用いられる。
The data processing system of the copying machine shown in FIG. 7 performs processing from image input by the scanner 11 to print output on paper by the plotter 32 in units of pages by a controller (control means) when processing a job requesting copying. Is managed.
When a copy request is made, basically, a copy output process is performed through the following process. That is, in the input process, the image input by reading the document by the scanner 11 is subjected to various corrections and adjustments by the image input / compression processing means 12, and the normalized and high-quality image data is subjected to compression processing. , Once stored in the memory 22. In the output process, the compressed data held in the memory 22 is decompressed by the image decompressing means 23 and restored to the data before compression. The obtained data is subjected to error correction processing depending on the plotter 32 by the image processing means 25 or the like. A normal image output process is performed, and the processed image data is sent to the image output means 31 that outputs to the plotter 32. The image transfer means 24 is used to transfer data directly between the means without using the memory 22 when the data restored by the image decompression means 23 can be immediately processed by the image processing means 25. .

コピー要求に変倍が設定されると、プロッタ出力用の画像処理を行う画像処理手段25では、プロッタ32に依存する誤差補正処理等の通常行う画像出力処理に加え、設定された変倍等の画像処理を行う。
本実施形態2では、印刷出力をA3のサイズの用紙に出力することを仕様とし、この出力処理を行うために、画像処理手段25で用いるラインバッファの容量を、A3用紙に出力するための最低限のサイズであるA3縦方向に必要な容量に決めている。このため、A3横方向のサイズを主走査幅として、画像処理手段25に入力しても、処理ができない。
そこで、A3のサイズの用紙に出力する際、入力する方向がA3横である場合には、画像処理手段25の前段で、処理が可能なA3縦方向を主走査とする方向に画像を定める回転処理を画像回転手段(1)26によって行うようにする。
When scaling is set in the copy request, the image processing means 25 that performs image processing for plotter output performs not only normal image output processing such as error correction processing depending on the plotter 32 but also the set scaling and the like. Perform image processing.
In the second embodiment, the print output is specified to be output on a sheet of A3 size. In order to perform this output process, the capacity of the line buffer used in the image processing means 25 is set to the minimum for outputting to A3 sheet. The required capacity is determined in the A3 vertical direction, which is the limit size. For this reason, even if the A3 horizontal size is input to the image processing means 25 as the main scanning width, processing cannot be performed.
Therefore, when outputting to a sheet of A3 size, if the input direction is A3 landscape, the image processing unit 25 is rotated in front of the image processing means 25 to determine the image in a direction in which the A3 vertical direction that can be processed is main scanning. The processing is performed by the image rotation means (1) 26.

また、どのサイズの用紙でもよいが、画像処理手段25で処理が可能なサイズの入力画像が処理後、画像出力手段31を経てプロッタ出力に用いられるが、出力画像の縦横が、出力用紙のセット方向と整合しない場合がある。この場合に、整合を図ることにより、プロッタ出力が可能になる。このため、画像処理手段25で処理された後の画像に対し、画像回転手段(2)28によって回転を行うことで、出力を可能とする。なお、この画像回転手段(2)28で処理する画像は、画像処理手段25で処理が可能なサイズの画像であるから、画像処理手段25の前段で用いる上記画像回転手段(1)26で処理される画像ではない。   Paper of any size may be used, but after an input image of a size that can be processed by the image processing means 25 is processed, it is used for plotter output via the image output means 31. May not align with direction. In this case, plotting can be performed by matching. For this reason, the image after being processed by the image processing means 25 is rotated by the image rotating means (2) 28, thereby enabling output. Note that the image processed by the image rotation means (2) 28 is an image of a size that can be processed by the image processing means 25, so that it is processed by the image rotation means (1) 26 used in the preceding stage of the image processing means 25. Is not an image.

“処理経路の選択”
上記画像回転手段(1)26による画像回転処理の要、不要は、入力画像によって決まる。即ち、入力画像が、画像処理手段25のラインバッファの容量として決められているA3縦方向を超える主走査幅である場合にのみ、この画像回転を行う。なお、上記入力画像の主走査幅は、変倍が設定されている場合には、変倍後の主走査方向の長さである。
従って、入力画像の主走査幅を、原稿台にセットされた原稿の主走査方向の長さ及びユーザが設定した変倍率から求め、求めた変倍後の主走査幅が、A3縦方向に対応する主走査幅を超えるか、否かを判断し、超える場合には画像回転を必要とし、超えない場合には回転を不要とする。
また、上記画像回転手段(2)28による画像回転処理の要、不要は、画像処理手段25によって処理された後の画像と出力用紙との関係によって決まる。これらの間に不整合がある場合、即ち縦横の関係が一致しない場合に、この画像回転を行うことで、整合を図ることができる。
この判断は、プロッタ出力処理を実行するときまでに行い、それぞれの判断に従い、プロッタ出力用データの処理経路を選択する。ここでは、画像回転手段(1)26による画像回転処理を必要とし、この処理を通す経路を第一の経路、また、画像回転手段(1)26による画像回転処理を不要とし、この処理を通さない経路を第二の経路とする。また、第二の経路を通した後、画像回転手段(2)28による画像回転処理を必要とする経路がさらに加わる。以下に、各経路のデータ処理について説明する。
“Select processing path”
Whether the image rotation process by the image rotation means (1) 26 is necessary or not is determined by the input image. That is, this image rotation is performed only when the input image has a main scanning width that exceeds the A3 vertical direction determined as the capacity of the line buffer of the image processing means 25. Note that the main scanning width of the input image is the length in the main scanning direction after zooming when zooming is set.
Accordingly, the main scanning width of the input image is obtained from the length of the document set on the document table in the main scanning direction and the magnification set by the user, and the obtained main scanning width corresponds to the A3 vertical direction. It is determined whether or not the main scanning width is exceeded. If it exceeds, the image rotation is required, and if not, the rotation is not required.
Whether the image rotation processing by the image rotation means (2) 28 is necessary or not is determined by the relationship between the image processed by the image processing means 25 and the output paper. When there is a mismatch between them, that is, when the vertical / horizontal relationship does not match, this image rotation is performed to achieve the matching.
This determination is performed until the plotter output process is executed, and the processing path of the plotter output data is selected according to each determination. Here, the image rotation process by the image rotation means (1) 26 is required, the path through which this process passes is the first path, and the image rotation process by the image rotation means (1) 26 is not required. The route that does not exist is set as the second route. Further, after passing through the second route, a route requiring image rotation processing by the image rotation means (2) 28 is further added. Below, the data processing of each path | route is demonstrated.

“第一の経路”
第一の経路は、変倍後の入力画像の主走査幅が、画像処理手段25のラインバッファの容量を超え、画像回転処理を必要とし、画像回転手段(1)26を通してデータ処理を行う経路である。
図8は、図7の構成において、画像回転手段(1)26による画像回転を伴うデータ処理経路(第一の経路)を矢印で示す図である。
なお、図8に示すデータ処理経路(第一の経路)は、上記した「実施形態1」において、図2及び図3を参照し説明した“第一の経路”と同じである。よって、上記「実施形態1」における“第一の経路”の説明を参照することとし、ここでは記載を省略する。ただし、上記“第一の経路”の説明における画像回転手段26を画像回転手段(1)26と読み替える。
“First route”
The first path is a path in which the main scanning width of the input image after scaling exceeds the capacity of the line buffer of the image processing means 25, requires image rotation processing, and performs data processing through the image rotation means (1) 26. It is.
FIG. 8 is a diagram showing a data processing path (first path) accompanied by image rotation by the image rotation means (1) 26 with arrows in the configuration of FIG.
The data processing path (first path) shown in FIG. 8 is the same as the “first path” described with reference to FIGS. 2 and 3 in the above-described “embodiment 1”. Therefore, the description of the “first route” in the “embodiment 1” is referred to and the description is omitted here. However, the image rotation means 26 in the description of the “first path” is replaced with the image rotation means (1) 26.

“第二の経路”
第二の経路は、変倍後の入力画像の主走査幅が、画像処理手段25のラインバッファの容量を超えず、画像回転処理が不要であるから、画像回転手段(1)26を通さずにデータ処理を行う経路である。また、この経路では、画像処理手段25で処理した後の画像に対し、必要な場合に画像回転手段(2)28を通すことで画像回転を行うことで、用紙の縦横方向と整合させ、出力を可能とする。
図9は、図7の構成において、画像回転手段(1)26による画像回転が不要であり、画像回転手段(2)28による画像回転が必要な場合のデータ処理経路(第二の経路)を矢印で示す図である。また、図10は、第二の経路で行うデータ処理の具体例を説明する図である。
“Second path”
In the second path, the main scanning width of the input image after scaling does not exceed the capacity of the line buffer of the image processing means 25, and no image rotation processing is required. Therefore, the image rotation means (1) 26 is not passed. This is a route for data processing. In this route, the image processed by the image processing unit 25 is rotated by passing the image rotation unit (2) 28 when necessary, so that the image is aligned with the vertical and horizontal directions of the paper and output. Is possible.
FIG. 9 shows a data processing path (second path) when image rotation by the image rotation means (1) 26 is unnecessary and image rotation by the image rotation means (2) 28 is necessary in the configuration of FIG. It is a figure shown by the arrow. FIG. 10 is a diagram illustrating a specific example of data processing performed in the second route.

図9及び図10を参照して、第二の経路で行うデータ処理を説明する。なお、以下では、スキャナ入力画像をA4サイズの原稿とし、プロッタ出力をA4サイズの用紙とする等倍の設定がなされた場合を例に、図4の経路(1)〜(9)の順に処理を説明する。
経路(1):スキャナ11でA4縦を主走査方向にセットした原稿を読取り、入力された図10に示す入力画像Dを画像入力/圧縮処理手段12に送る。
経路(2):画像入力/圧縮処理手段12で入力画像Dを正規化及び高画質化し、さらに画像にデータ圧縮を掛け、圧縮後のデータを図10に示す符号データDとしてメモリ22に送る。
経路(3):メモリ22に一旦保持した符号データDは、後段で出力用の画像として処理するので、符号データDを入力画像に復元するために画像伸長手段23に送る。
With reference to FIGS. 9 and 10, data processing performed in the second route will be described. In the following, processing is performed in the order of paths (1) to (9) in FIG. 4 by taking as an example a case where the scanner input image is an A4 size original and the plotter output is set to A4 size paper. Will be explained.
Route (1): The scanner 11 reads a document placed the A4 longitudinal in the main scanning direction, and sends the input image D 1 shown in FIG. 10 that is input to the image input / compression processing unit 12.
Pathway (2): an input image D 1 by the image input / compression processing unit 12 normalizes and high image quality, further multiplied by the data compression to the image data after compression in the memory 22 as the code data D 2 shown in FIG. 10 send.
Route (3): code data D 2 once held in the memory 22, since the processing as an image for output at a later stage, and sends the image decompression unit 23 to recover the encoded data D 2 to the input image.

経路(4):画像伸長手段23で符号データDを伸長し、復元した伸長後画像D(入力画像D)の主走査幅は、画像処理手段25のラインバッファのA3縦方向の容量を超えない。よって、上記した第一の経路のように、画像回転を行う経路の通すことなく、伸長後画像Dを画像転送手段24によって直接画像処理手段25に転送する。
経路(5):画像処理手段25で伸長後画像Dをプロッタ32に依存する誤差補正処理やカラー画像に対する入力RGBから出力用のCMYKへの変換等の通常行う画像出力処理を行い、図10に示す画像処理後画像Dとしてメモリ22に送る。
経路(6):メモリ22に一旦保持した画像処理後画像Dは、プロッタ32で用いる出力用紙のセット方向と整合しないと、出力ができない。整合していなければ、画像処理後画像Dと出力用紙のセット方向を一致させるために、画像回転手段(2)28に送る。
経路(7):画像回転手段(2)28で画像処理後画像Dを縦横回転し、出力用紙のセット方向と整合させ、図10に示す縦横回転後画像Dとしてメモリ22に送る。
経路(8):メモリ22に書き戻した縦横回転後画像Dは、プロッタ32で用いる出力画像Dを出力する画像出力手段31に送る。
経路(9):画像出力手段31を介してプロッタ32に出力画像Dを出力する。
Path (4): The main scanning width of the decompressed image D 3 (input image D 1 ) obtained by decompressing the code data D 2 by the image decompressing means 23 and restoring the capacity is the capacity of the line buffer of the image processing means 25 in the A3 vertical direction. Not exceed. Therefore, as in the first path described above, without going through the route to perform image rotation, it transfers the decompressed image after D 3 directly image processing unit 25 by the image transfer unit 24.
Route (5): elongation after image D 3 by the image processing unit 25 performs a normal image output processing performed such as conversion from the input RGB to the error correction processing and color images that depend on the plotter 32 to CMYK for output, Figure 10 send to the memory 22 as the image processed image D 7 shown.
Route (6): image processed image D 7 which is once held in the memory 22, if not aligned with the set direction of the output paper used in plotter 32, can not be output. If not matched, in order to match the image processed image D 7 sets the direction of the output sheet, and sends the image rotating unit (2) 28.
Route (7): The image processing after image D 7 by the image rotating means (2) 28 to vertical and horizontal rotation, is aligned with the set direction of the output sheet, sent to the memory 22 as vertical and horizontal image after rotation D 8 shown in FIG. 10.
Route (8): Aspect image after rotation D 8 which is written back to memory 22 and sends it to the image output unit 31 for outputting an output image D 9 used in the plotter 32.
Path (9): through the image output unit 31 outputs the output image D 9 to the plotter 32.

“出力データ処理の制御フロー”
次に、プロッタ出力時に上記した第一の経路及び第二の経路を選択し、実行するデータ処理の制御フローについて、図11を参照して説明する。なお、図11に示す制御フローは、複写機全体を制御するコントローラとして働くCPU21が、図示しないROMに格納したプログラムを駆動することによって実行される。
コントローラは、プロッタ出力が必要なコピー等の要求を受け、図11に示す制御フローを起動し、始めに、入力画像サイズと向き等のスキャナ情報を取得し(ステップS201)、また、変倍率等の画像処理情報を取得する(ステップS202)。
コントローラは、コピー等を要求するジョブに付属する各種の情報を管理し、管理情報をコピー処理に係る各処理手段を制御するために利用する。この管理情報には、ユーザが操作部51を通して入力するコピー要求時の設定条件や複写機の動作に係る状態の変化を検知するセンサの検知情報等が含まれる。図11の制御フローを実行するために必要な制御用情報の取得手段として、スキャナ入力情報取得手段15、画像処理情報取得手段55及び出力用紙取得手段35を有し、コントローラは、ステップS201では、スキャナ11の読取位置にセットされた原稿のサイズと向きをスキャナ入力情報取得手段15によって取得し、また、ユーザが操作手段を通して設定した変倍率情報を、メモリ22の管理情報を格納する領域から取得する。
“Control flow of output data processing”
Next, a control flow of data processing to be executed by selecting the first route and the second route at the time of plotter output will be described with reference to FIG. Note that the control flow shown in FIG. 11 is executed by the CPU 21 serving as a controller for controlling the entire copying machine driving a program stored in a ROM (not shown).
Upon receiving a request for copying or the like that requires plotter output, the controller activates the control flow shown in FIG. 11, and first acquires scanner information such as the input image size and orientation (step S201). Image processing information is acquired (step S202).
The controller manages various types of information attached to a job requesting copying and the like, and uses the management information to control each processing unit related to the copy processing. This management information includes setting conditions at the time of a copy request input by the user through the operation unit 51, detection information of a sensor that detects a change in state related to the operation of the copying machine, and the like. As a means for acquiring control information necessary for executing the control flow of FIG. 11, the scanner has an input information acquisition means 15, an image processing information acquisition means 55, and an output paper acquisition means 35. In step S201, the controller The size and orientation of the document set at the reading position of the scanner 11 are acquired by the scanner input information acquisition unit 15, and the scaling information set by the user through the operation unit is acquired from the area for storing the management information in the memory 22. To do.

次に、ステップS201,S202で取得した入力画像サイズと向き、並びに変倍率に基づき、変倍後の入力画像の主走査幅(主走査長さ)を算出する(ステップS203)。変倍後の入力画像の主走査幅は、スキャナにセットした原稿の縦横どちらを主走査方向にしているかにより異なるので、原稿の縦、横のどちらを主走査方向にセットしているかを示す情報と、さらに、変倍率によっても処理すべき主走査幅が変わるので、これらの情報から、処理に必要な長さを計算する。
また、コントローラは、出力用紙取得手段35によって、プロッタ32で用いる用紙を入れたトレイに用意されている用紙のサイズ及びセット方向等のプロッタ情報を取得し(ステップS204)、取得したプロッタ情報及びユーザの要求をもとに、最適なトレイ、即ち、用紙サイズとセット方向を選択する(ステップS205)。ただ、セット方向については、一致しなくても、サイズの合う給紙トレイがあれば、最適なトレイとして選択をする。
Next, the main scanning width (main scanning length) of the input image after scaling is calculated based on the input image size and orientation acquired in steps S201 and S202 and the scaling ratio (step S203). The main scanning width of the input image after scaling varies depending on whether the original or horizontal direction of the document set in the scanner is in the main scanning direction, so information indicating which of the original or horizontal direction of the document is set in the main scanning direction Further, since the main scanning width to be processed also changes depending on the magnification, the length necessary for the processing is calculated from these pieces of information.
Further, the controller acquires plotter information such as the size and setting direction of the paper prepared in the tray in which the paper used in the plotter 32 is placed by the output paper acquisition means 35 (step S204), and the acquired plotter information and the user Based on the request, an optimum tray, that is, a paper size and a setting direction are selected (step S205). However, even if the set directions do not match, if there is a paper feed tray that matches the size, the optimum tray is selected.

次に、ステップS201で取得した入力画像の向きに対し、ステップS205で選択したトレイの用紙の向きの整合をチェックし、縦横の画像回転が必要であるか否かを判断する(ステップS206)。このステップでは、例えば、通常のA3サイズ用紙を最大とする複写機の場合、A3縦を主走査幅としてプロッタ出力はできるが、A3横は出力できないので、出力を可能とするために画像回転が必要であるか否かの判断をする。A3出力の例では、ユーザがA4横で原稿をスキャナ11にセットして画像入力をし、A3への拡大変倍を指示した場合、用紙トレイもプロッタもA3横に対応していないので、画像回転を行ってA3縦にしないと、出力ができない。なお、例示したA3への拡大変倍に限らず、入力画像と出力用紙の間でサイズを合わせた上、このステップで縦横の関係の整合をチェックし、画像回転が必要であるか否かの判断をする。   Next, the alignment of the paper orientation of the tray selected in step S205 is checked against the orientation of the input image acquired in step S201, and it is determined whether vertical or horizontal image rotation is necessary (step S206). In this step, for example, in the case of a copying machine with the maximum size of normal A3 size paper, plotter output can be performed with A3 portrait as the main scanning width, but A3 landscape cannot be output, so image rotation is performed to enable output. Determine whether it is necessary. In the example of A3 output, when the user sets the original on the scanner 11 in A4 landscape and inputs an image and instructs enlargement / magnification to A3, neither the paper tray nor the plotter corresponds to A3 landscape. If you do not rotate and make it A3 vertical, you cannot output. In addition to the enlargement / magnification to A3 shown as an example, after matching the size between the input image and the output paper, the alignment of the vertical / horizontal relationship is checked at this step to determine whether image rotation is necessary. Make a decision.

ここで、画像回転が必要であると判断した場合(ステップS207-YES)、画像処理手段25への入力画像が処理可能であるか否かをチェックするために、ステップS203で算出した変倍後の入力画像の主走査幅が、画像処理手段25のラインバッファの主走査幅を超えるか否かを判断する(ステップS208)。
この判断の結果、変倍後の入力画像の主走査幅がラインバッファの主走査幅を超え、処理が可能ではないと判断された場合(ステップS209-YES)、第一の経路を選択する(ステップS210)。この第一の経路は、上記“第一の経路”にて説明した処理過程で画像出力動作を行うので、以下に示す処理フローに従って、この処理過程に係る各手段の動作を管理する。
Here, when it is determined that image rotation is necessary (YES in step S207), in order to check whether or not the input image to the image processing means 25 can be processed, after the scaling calculated in step S203 It is determined whether the main scanning width of the input image exceeds the main scanning width of the line buffer of the image processing means 25 (step S208).
As a result of this determination, if it is determined that the main scanning width of the input image after scaling exceeds the main scanning width of the line buffer and processing is not possible (step S209-YES), the first path is selected (step S209). Step S210). Since this first path performs an image output operation in the process described in the above “first path”, the operation of each means related to this process is managed according to the process flow shown below.

画像出力のデータ処理の実行に先立ち、第一の経路で画像をハンドリングするために必要なメモリ領域をバッファとして用いるメモリ22に確保する(ステップS211)。このとき、必要なメモリ領域の大きさは、スキャナ情報とプロッタ情報から求める。即ち、スキャナ情報から読取原稿のサイズ、主走査幅が分かり、ライン分やページ分の入力データを保持するために必要なメモリ領域を求めることができる。また、プロッタ情報から用紙のサイズ、主走査幅が分かり、ライン分やページ分の出力データを保持するために必要なメモリ領域を求めることができる。   Prior to execution of data processing for image output, a memory area necessary for handling an image in the first path is secured in the memory 22 used as a buffer (step S211). At this time, the necessary memory area size is obtained from the scanner information and the plotter information. That is, the size and main scanning width of the read document can be known from the scanner information, and a memory area necessary for holding input data for lines and pages can be obtained. Further, the paper size and main scanning width can be known from the plotter information, and a memory area necessary for holding output data for lines and pages can be obtained.

次いで、第一の経路で画像をハンドリングし、データ処理を行うために、この処理過程に係る手段において、必要な制御用データをレジスタに設定し、また、画像を転送するDMA転送に用いるディスクリプタを設定する(ステップS212)。上記のレジスタ設定は、第一の経路では、上記“第一の経路”にて説明した過程で画像出力のデータ処理を行うので、画像伸長手段23、データパス切り替え手段、画像回転手段(1)26及び画像処理手段25に対して行う。
なお、上記データパス切り替え手段は、画像伸長手段23と画像処理手段25がそれぞれ内部に持ち、第一の経路と第二の経路の選択に伴い、転送路を切替える。第一の経路の場合、データパス切り替え手段は、バス41経由で画像をメモリ22に転送し、画像伸長手段23と画像処理手段25間で直接、画像転送をしない切り替え動作状態となる。また、上記DMA転送は、この実施形態では、メモリ22に記憶された画像を画像伸長手段23、画像回転手段(1)26及び画像処理手段25それぞれにおける処理を経て、メモリ22に書き戻すパスに用いるので、この転送動作に必要なディスクリプタ(上記特許文献1、参照)を設定する。
Next, in order to handle the image in the first path and perform data processing, in the means related to this processing process, necessary control data is set in a register, and a descriptor used for DMA transfer for transferring the image is set. It sets (step S212). In the register setting, since the data processing of the image output is performed in the process described in the “first path” in the first path, the image expansion means 23, the data path switching means, and the image rotation means (1) 26 and the image processing means 25.
The data path switching means is provided inside the image expansion means 23 and the image processing means 25, respectively, and switches the transfer path in accordance with the selection of the first path and the second path. In the case of the first route, the data path switching unit transfers an image to the memory 22 via the bus 41, and enters a switching operation state in which no image transfer is performed directly between the image expansion unit 23 and the image processing unit 25. In this embodiment, the DMA transfer is a path in which the image stored in the memory 22 is written back to the memory 22 through the processing in the image decompressing means 23, the image rotating means (1) 26, and the image processing means 25, respectively. Since it is used, a descriptor (see Patent Document 1 above) necessary for this transfer operation is set.

ステップS211,S212を終えると、画像出力のデータ処理を実行する準備が整うので、第一の経路に従い、画像伸長手段23、データパス切り替え手段、画像回転手段(1)26及び画像処理手段25を順に動作させてデータ処理を実行する(ステップS213)。
ステップS213で画像出力のデータ処理を行った後、この制御フローを終了する。
When steps S211 and S212 are completed, preparation for execution of data processing for image output is completed, and the image decompression means 23, data path switching means, image rotation means (1) 26, and image processing means 25 are set in accordance with the first path. Data processing is executed by operating in order (step S213).
After performing image output data processing in step S213, the control flow ends.

他方、ステップS209で、変倍後の入力画像の主走査幅が画像処理手段25のラインバッファの主走査幅を超えず、処理が可能であると判断された場合(ステップS209-NO)、第二の経路を選択する(ステップS231)。この第二の経路は、上記“第二の経路”にて説明した画像回転を伴う処理過程で画像出力動作を行う。つまり、画像処理手段25で処理した後の画像に対し、画像回転手段(2)28を通すことで画像回転を行う動作を伴う。よって、以下に示す処理フローに従って、この処理過程に係る各手段の動作を管理する。   On the other hand, if it is determined in step S209 that the main scanning width of the input image after scaling does not exceed the main scanning width of the line buffer of the image processing means 25 and processing is possible (step S209-NO), A second route is selected (step S231). In the second path, an image output operation is performed in the process with image rotation described in the above “second path”. That is, the image processing means 25 performs an image rotation operation by passing the image rotation means (2) 28 through the image processed by the image processing means 25. Therefore, the operation of each means related to this process is managed according to the process flow shown below.

画像出力のデータ処理の実行に先立ち、第二の経路で画像をハンドリングするために必要なメモリ領域をバッファとして用いるメモリ22に確保する(ステップS232)。このとき、必要なメモリ領域の大きさは、スキャナ情報とプロッタ情報から求める。なお、必要なメモリ領域は、上記ステップS211で行ったと同様に、求めることができる。
次いで、第二の経路で画像をハンドリングし、データ処理を行うために、この処理過程に係る手段において、必要な制御用データをレジスタに設定し、また、画像を転送するDMA転送に用いるディスクリプタを設定する(ステップS233)。上記のレジスタ設定は、第二の経路では、上記“第二の経路”にて説明した過程で画像出力のデータ処理を行うので、画像伸長手段23、データパス切り替え手段、画像転送手段24、画像処理手段25及び画像回転手段(2)28に対して行う。
Prior to execution of data processing for image output, a memory area necessary for handling an image in the second path is secured in the memory 22 used as a buffer (step S232). At this time, the necessary memory area size is obtained from the scanner information and the plotter information. The necessary memory area can be obtained in the same manner as in step S211.
Next, in order to handle the image in the second path and perform data processing, in the means relating to this processing process, necessary control data is set in a register, and a descriptor used for DMA transfer for transferring the image is set. Setting is made (step S233). In the second path, the above register setting is performed by the image output data process in the process described in the “second path”, so that the image decompression unit 23, the data path switching unit, the image transfer unit 24, the image This is performed for the processing means 25 and the image rotation means (2) 28.

なお、第二の経路の場合、データパス切り替え手段は、バス42経由で転送し、画像伸長手段23と画像処理手段25間で直接転送を行う切り替え動作状態となる。つまり、メモリ22を介して転送は行わない。また、上記DMA転送は、この実施形態では、メモリ22に記憶された画像を画像伸長手段23、画像処理手段25及び画像回転手段(2)28における処理を経て、メモリ22に書き戻すパスに用いるので、この転送動作に必要なディスクリプタを設定する。
ステップS232,S233を終えると、画像出力のデータ処理を実行する準備が整うので、第二の経路に従い、画像伸長手段23、データパス切り替え手段、画像転送手段24、画像処理手段25及び画像回転手段(2)28を順に動作させてデータ処理を実行する(ステップS234)。
ステップS234で画像出力のデータ処理を行った後、この制御フローを終了する。
In the case of the second route, the data path switching unit is in a switching operation state in which transfer is performed via the bus 42 and direct transfer is performed between the image expansion unit 23 and the image processing unit 25. That is, no transfer is performed via the memory 22. In this embodiment, the DMA transfer is used as a path for writing the image stored in the memory 22 back to the memory 22 through the processing in the image expansion means 23, the image processing means 25, and the image rotation means (2) 28. Therefore, a descriptor necessary for this transfer operation is set.
When steps S232 and S233 are completed, preparation for execution of data processing for image output is completed, so that the image expansion means 23, data path switching means, image transfer means 24, image processing means 25, and image rotation means follow the second path. (2) Data processing is executed by sequentially operating 28 (step S234).
After performing image output data processing in step S234, the control flow ends.

また、ステップS206で画像回転が必要ではないと判断した場合(ステップS207-NO)、第二の経路を選択する(ステップS221)。この第二の経路は、上記“第二の経路”にて説明した処理過程で画像出力動作を行う。ただし、この場合には、画像回転手段(2)28による画像回転は不要であるから、この動作は行わない。
よって、以下に示す処理フローに従って、この処理過程に係る各手段の動作を管理する。
If it is determined in step S206 that image rotation is not necessary (step S207-NO), the second route is selected (step S221). The second path performs an image output operation in the process described in the “second path”. However, in this case, since the image rotation by the image rotation means (2) 28 is unnecessary, this operation is not performed.
Therefore, the operation of each means related to this process is managed according to the process flow shown below.

画像出力のデータ処理の実行に先立ち、第二の経路で画像をハンドリングするために必要なメモリ領域をバッファとして用いるメモリ22に確保する(ステップS222)。このとき、必要なメモリ領域の大きさは、スキャナ情報とプロッタ情報から求める。なお、必要なメモリ領域は、上記ステップS211で行ったと同様に、求めることができる。
次いで、第二の経路で画像をハンドリングし、データ処理を行うために、この処理過程に係る手段において、必要な制御用データをレジスタに設定し、また、画像を転送するDMA転送に用いるディスクリプタを設定する(ステップS223)。上記のレジスタ設定は、画像回転手段(2)28による画像回転を除き、上記“第二の経路”にて説明した過程で画像出力のデータ処理を行うので、画像伸長手段23、データパス切り替え手段、画像転送手段24及び画像処理手段25に対して行う。
Prior to execution of data processing for image output, a memory area necessary for handling an image in the second path is secured in the memory 22 used as a buffer (step S222). At this time, the necessary memory area size is obtained from the scanner information and the plotter information. The necessary memory area can be obtained in the same manner as in step S211.
Next, in order to handle the image in the second path and perform data processing, in the means relating to this processing process, necessary control data is set in a register, and a descriptor used for DMA transfer for transferring the image is set. Set (step S223). In the register setting described above, image output data processing is performed in the process described in the “second path” except for the image rotation by the image rotation means (2) 28. Therefore, the image expansion means 23, the data path switching means The image transfer unit 24 and the image processing unit 25 are performed.

なお、第二の経路の場合、データパス切り替え手段は、バス42経由で転送し、画像伸長手段23と画像処理手段25間で直接転送を行う切り替え動作状態となる。つまり、メモリ22を介して転送は行わない。また、上記DMA転送は、この実施形態では、メモリ22に記憶された画像を画像伸長手段23及び画像処理手段25における処理を経て、メモリ22に書き戻すパスに用いるので、この転送動作に必要なディスクリプタを設定する。
ステップS222,S223を終えると、画像出力のデータ処理を実行する準備が整うので、第二の経路に従い、画像伸長手段23、データパス切り替え手段、画像転送手段24及び画像処理手段25を順に動作させてデータ処理を実行する(ステップS224)。
ステップS224で画像出力のデータ処理を行った後、この制御フローを終了する。
In the case of the second route, the data path switching unit is in a switching operation state in which transfer is performed via the bus 42 and direct transfer is performed between the image expansion unit 23 and the image processing unit 25. That is, no transfer is performed via the memory 22. Further, in this embodiment, the DMA transfer is used for a path in which an image stored in the memory 22 is processed in the image decompression unit 23 and the image processing unit 25 and written back to the memory 22. Set the descriptor.
When steps S222 and S223 are completed, preparation for execution of data processing for image output is completed, so that the image expansion means 23, the data path switching means, the image transfer means 24, and the image processing means 25 are operated in order according to the second path. Data processing is then executed (step S224).
After performing image output data processing in step S224, the control flow is terminated.

この実施形態によると、画像処理手段25による処理後の画像に対し、出力用紙に整合させる画像回転処理を行うことで、画像処理手段25による拡大変倍等の処理で画像処理が不可能な主走査幅になってしまう特殊な場合以外は、メモリ22へのアクセスを混雑させることなく、高速に出力用紙の向きに合わせた画像回転処理を行うことが可能になる。
また、ソフトウェアによって、第一又は第二の経路を正しく選択するとともに、第二の経路において、出力用紙の向きに合わせた画像回転処理の要、不要を切り分けて動作させることで、適正な動作を行わせることができる。
According to this embodiment, the image processed by the image processing unit 25 is subjected to an image rotation process for matching with the output paper, so that the image processing cannot be performed by the image processing unit 25 such as enlargement / magnification. Except for a special case where the scanning width is reached, it is possible to perform image rotation processing according to the orientation of the output paper at high speed without congesting access to the memory 22.
In addition, the software correctly selects the first or second path, and in the second path, it operates by separating the necessity and necessity of image rotation processing according to the orientation of the output paper. Can be done.

「実施形態3」
この実施形態は、第一の経路を通すのに必要なバッファメモリの容量を実行条件によりチェックする機能を上記実施形態1又は2に付加した実施形態を示す。
異なる性能の機種に対して共通のプラットフォームを用いる際、機種のコストに合わせてメインメモリ(上記実施形態のメモリ22に当たる)の容量を選択する、という方法が採られる。低コストの機種でメモリ22を最低限の容量に抑えると、上記各実施形態において、第一の経路における画像処理手段25の前段で行う画像回転の処理に用いるメモリ容量が不足する可能性がある。
Embodiment 3”
This embodiment shows an embodiment in which a function for checking the capacity of the buffer memory necessary for passing through the first path is added to the first or second embodiment.
When a common platform is used for models with different performances, a method of selecting the capacity of the main memory (corresponding to the memory 22 in the above embodiment) according to the cost of the model is adopted. If the memory 22 is kept to a minimum capacity with a low-cost model, there is a possibility that the memory capacity used for the image rotation processing performed in the preceding stage of the image processing means 25 in the first path may be insufficient in each of the above embodiments. .

図12は、(A)第一の経路と(B)第二の経路においてメモリ22を使用するデータのメモリ量を示す図である。なお、図12の(A)第一の経路は、図8と同様の経路を示し、図12の(B)第二の経路は図9と同様の経路を示している。
図12のメモリ22に画像データと必要なメモリ量の数値の例を示すように、図12の(B)における第二の経路でデータ処理を行う場合には、画像処理手段25の後段で、画像回転手段(2)28により画像回転を行うので、CMYK(1ビット)のページ画像データをハンドリングするためのメモリ領域ですみ、メモリ容量が不足する可能性は少ない。他方、図12の(A)における第一の経路でデータ処理を行う場合には、画像処理手段25の前段で、画像回転手段(1)26により画像回転を行うので、RGB(8ビット)のページ画像データをハンドリングするので、メモリ領域を多くとらなければならないので、メモリ容量が不足する可能性が高い。
FIG. 12 is a diagram illustrating a memory amount of data using the memory 22 in (A) the first path and (B) the second path. In addition, the (A) 1st path | route of FIG. 12 shows the path | route similar to FIG. 8, and the (B) 2nd path | route of FIG. 12 has shown the path | route similar to FIG.
As shown in the example of the numerical values of the image data and the required memory amount in the memory 22 of FIG. 12, when data processing is performed in the second path in FIG. Since image rotation is performed by the image rotation means (2) 28, only a memory area for handling CMYK (1 bit) page image data is required, and there is little possibility of insufficient memory capacity. On the other hand, when data processing is performed using the first path in FIG. 12A, image rotation is performed by the image rotation unit (1) 26 before the image processing unit 25, so that RGB (8 bits) Since page image data is handled, a large memory area must be taken, so there is a high possibility that the memory capacity will be insufficient.

そこで、この実施形態では、第一の経路のデータ処理が可能なメモリ領域の存在をチェックする機能及びメモリ領域が確保できる実行条件をユーザに示す機能の付加により、メモリ22の容量不足に適切に対応する動作を行わせる。
ここでは、ソフトウェアの処理で、まず、第一の経路のデータ処理が可能なメモリ領域があるか否かをチェックする機能により、適応する方法をとる。具体的には、上記各実施形態で示した制御フローにおいて、第一の経路によるデータ処理が選択される場合に、データ処理を実行するためのメモリ量がメモリ22に確保できるか否かをチェックし、できないときには、処理を中断し、不適切な出力が行われることを防止する。
Therefore, in this embodiment, the function of checking the existence of a memory area capable of data processing of the first path and the function of showing the execution conditions that can secure the memory area to the user are appropriately added to the capacity shortage of the memory 22. Perform the corresponding action.
Here, a method of adapting by a function of checking whether or not there is a memory area capable of data processing of the first path in software processing is adopted. Specifically, in the control flow shown in each of the above embodiments, when data processing by the first path is selected, it is checked whether or not the memory 22 for securing data processing can be secured in the memory 22. If this is not possible, processing is interrupted to prevent inappropriate output.

図13は、この実施形態におけるデータ処理の制御フロー図である。
図13に示す制御フローは、プロッタ出力時に第一の経路及び第二の経路を選択し、実行するデータ処理の制御フローで、基本的な処理経路の選択処理は、上記実施形態2に示した制御フロー(図11)と変わらず、第一の経路によるデータ処理が選択される場合に、データ処理を実行するためのメモリ量がメモリ22に確保できるか否かをチェックするステップを付加した点のみ異なる。
このメモリ量をチェックするステップは、図13中のステップS310及びステップS341であり、これ以外は、図11の制御フローと同じである。従って、この実施形態で付加したステップ以外については、上記の説明を参照することとし、ここでは記載を省略する。
FIG. 13 is a control flowchart of data processing in this embodiment.
The control flow shown in FIG. 13 is a data processing control flow for selecting and executing the first route and the second route at the time of plotter output. The basic processing route selection processing is shown in the second embodiment. Same as the control flow (FIG. 11), a step for checking whether or not the memory capacity for executing the data processing can be secured in the memory 22 when the data processing by the first route is selected is added. Only different.
Steps for checking the memory amount are steps S310 and S341 in FIG. 13, and the other steps are the same as the control flow in FIG. Therefore, the steps other than those added in this embodiment are referred to the above description, and the description is omitted here.

図13の制御フローにおいて、ステップ308で変倍後の入力画像の主走査幅が、画像処理手段25のラインバッファの主走査幅を超えるか否かを判断した結果、変倍後の入力画像の主走査幅がラインバッファの主走査幅を超え、処理が可能ではないと判断された場合(ステップS309-YES)、第一の経路によるデータ処理を選択するが、第一の経路の処理を実行する前に、第一の経路を選択可能なメモリ領域がメモリ22に確保でき、実行条件が満たされるか否かをチェックする(ステップS310)。この実行条件は、第一の経路が選択可能なメモリ領域として、図12(A)の第一の経路に示した、符号データD、入力画像を復元した伸長後画像D、画像回転を行った縦横回転後画像D及び画像処理後画像D、を記憶するために必要な最大メモリ容量を算出し、得たメモリ容量が、メモリ22に確保できるか否かの判断をする。 In the control flow of FIG. 13, it is determined in step 308 whether or not the main scanning width of the input image after scaling exceeds the main scanning width of the line buffer of the image processing unit 25. If the main scanning width exceeds the main scanning width of the line buffer and it is determined that processing is not possible (YES in step S309), data processing by the first path is selected, but processing of the first path is executed. Before doing so, it is checked whether a memory area capable of selecting the first path can be secured in the memory 22 and the execution condition is satisfied (step S310). The execution condition is that the memory area that can be selected by the first path is the code data D 2 , the decompressed image D 3 restored from the input image, the image rotation shown in the first path of FIG. The maximum memory capacity required to store the image D 4 after vertical and horizontal rotation and the image processed image D 5 is calculated, and it is determined whether or not the obtained memory capacity can be secured in the memory 22.

ここで、算出した最大メモリ容量をメモリ22に確保できれば(ステップS310-YES)、第一の経路を選択し、この経路による処理を実行するステップS311以降のステップに進む。なお、ステップS311以降のステップは、図11のステップS210以降のステップと同じである。
他方、算出した最大メモリ容量をメモリ22に確保できなければ(ステップS310-NO)処理を中断し(ステップS341)、この制御フローを終了する。
なお、処理を中断するときに、操作部51を通じてジョブを指示して処理を待つユーザに対し、例えば“A4横で読取った画像のA3への拡大変倍機能が使用できない”旨の警告を、中断に付随する処理として行う。
上記のように、第一の経路を通すのに必要なメモリ22の容量を実行条件によりチェックする機能を備えたことで、共通のハードウェア構成のまま、低価格の機種では最低限のメモリを搭載することで、画像処理手段25で処理が出来ない主走査幅の画像を出力する機能を削って低コストを実現し、高機能の機種では必要十分な容量のメモリを搭載することで、画像処理手段25の前段でメモリを介して入力画像を回転することで、そのままでは画像処理手段25で処理できない主走査幅の画像も出力を可能とし、高機能化の実現ができる。
Here, if the calculated maximum memory capacity can be secured in the memory 22 (step S310-YES), the first path is selected, and the process proceeds to step S311 and subsequent steps in which processing by this path is executed. Note that the steps after step S311 are the same as the steps after step S210 in FIG.
On the other hand, if the calculated maximum memory capacity cannot be secured in the memory 22 (step S310—NO), the process is interrupted (step S341), and this control flow is terminated.
When the process is interrupted, for example, a warning to the effect that the user cannot wait for the process by instructing the job through the operation unit 51, “The enlargement / reduction function of the image read horizontally in A4 to A3” cannot be used. Performed as a process associated with the interruption.
As described above, the function of checking the capacity of the memory 22 necessary for passing through the first path according to the execution condition is provided, so that the minimum memory can be obtained in a low-priced model with a common hardware configuration. By mounting, the function of outputting the image of the main scanning width that cannot be processed by the image processing means 25 is cut down to realize low cost, and by installing a memory having a necessary and sufficient capacity for a high-functional model, By rotating the input image through the memory before the processing unit 25, it is possible to output an image having a main scanning width that cannot be processed by the image processing unit 25 as it is, thereby realizing high functionality.

ところで、上記した図13の制御フローによると、メモリ22の容量が不足する場合に、データ処理の中断で対応する制御を行う際に、設定の変更を考慮すること無く処理を中断させるので、変倍率を変更しても、出力したいと思うユーザにとって、サービスができない。
そこで、操作部51でユーザがコピーの処理条件を設定する際、或いは上記した図13の制御フローでデータ処理の中断時に、操作部51から中断の警告を行う際に、ユーザによる変倍率の設定操作を支援し、ユーザの要求に応えることができようにする。
By the way, according to the control flow of FIG. 13 described above, when the capacity of the memory 22 is insufficient, when the corresponding control is performed by interrupting the data processing, the processing is interrupted without considering the setting change. Even if the magnification is changed, the service cannot be provided for the user who wants to output.
Therefore, when the user sets copy processing conditions in the operation unit 51, or when an interruption warning is issued from the operation unit 51 when data processing is interrupted in the control flow of FIG. Support the operation so that the user's request can be met.

図14は、変倍率を設定する操作を支援する操作部51の制御に係るフロー図である。
コントローラは、ユーザが操作部51を通してコピーの処理条件の設定が可能な状態にある期間に、図14に示す制御フローを起動し、始めに、入力画像サイズと向き等のスキャナ情報を取得する(ステップS401)。
次いで、取得したスキャナ情報から得られる入力画像の主走査幅と画像処理手段25で用いるラインバッファの長さとの関係から、画像処理手段25で処理可能な変倍率を計算する(ステップS402)。このとき、処理可能な変倍率を最大値から操作部51で扱える適当な数値間隔で複数点とる。
FIG. 14 is a flowchart relating to the control of the operation unit 51 that supports the operation of setting the scaling ratio.
The controller activates the control flow shown in FIG. 14 during a period in which the user can set the copy processing conditions via the operation unit 51, and first acquires scanner information such as the input image size and orientation ( Step S401).
Next, a scaling factor that can be processed by the image processing unit 25 is calculated from the relationship between the main scanning width of the input image obtained from the acquired scanner information and the length of the line buffer used by the image processing unit 25 (step S402). At this time, a plurality of variable magnifications that can be processed are taken from the maximum value at appropriate numerical intervals that can be handled by the operation unit 51.

次に、第一の経路を選択可能なメモリ領域がメモリ22に確保できるか否かをステップS402で求めた複数点の処理可能な変倍率について、それぞれ確認する(ステップS403)。
確認の結果、メモリ22にメモリ領域が確保できない変倍率である場合(ステップS403-NO)、その変倍率以上の変倍率について、操作部51で設定ができないように制限をする(ステップS405)。設定ができないように制限する方法としては、設定できない変倍率の選択ボタンの表示を止めるか、又は選択ボタンをグレーアウトするなどボタン操作を無効化する方法を採る。このようにすることで、設定を禁止し、禁止した状態であることが分かるようにすることができる。
他方、メモリ領域がメモリ22に確保できる変倍率である場合(ステップS403-YES)、その変倍率以下の変倍率の範囲について、制限をせず、操作部51で設定ができるようにする(ステップS404)。
上記のように、処理の中断を起こさない変倍率の設定操作を支援する機能を備えるようにしたことで、処理が可能な変倍率の範囲を示すことで入力操作をし易くし、処理ができない変倍率を操作部に表示して、ユーザを混乱させることが防げる。
Next, whether or not the memory area capable of selecting the first path can be secured in the memory 22 is confirmed for each of the variable magnifications that can be processed in step S402 (step S403).
As a result of the confirmation, if the scaling factor is such that the memory area cannot be secured in the memory 22 (step S403-NO), a scaling factor equal to or greater than the scaling factor is limited so that it cannot be set by the operation unit 51 (step S405). As a method of restricting the setting so that it cannot be set, a method of disabling the button operation such as stopping the display of the selection button of the scaling factor that cannot be set or graying out the selection button is adopted. By doing so, it is possible to recognize that the setting is prohibited and the state is prohibited.
On the other hand, if the memory area has a scaling factor that can be secured in the memory 22 (YES in step S403), the range of scaling factor below the scaling factor is not limited and can be set by the operation unit 51 (step S403). S404).
As described above, by providing a function to support the setting operation of the scaling factor that does not interrupt the processing, it becomes easy to perform an input operation by indicating the range of scaling factors that can be processed, and processing is not possible It is possible to prevent the user from being confused by displaying the variable magnification on the operation unit.

本発明の実施形態1に係る複写機の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of a copier according to a first embodiment of the present invention. 図1のデータ処理系の構成において、画像回転を伴う処理経路(第一の経路)を矢印で示す図である。In the configuration of the data processing system in FIG. 1, a processing path (first path) with image rotation is indicated by arrows. 第一の経路(図2)で行うデータ処理の具体例を説明する図である。It is a figure explaining the specific example of the data processing performed by a 1st path | route (FIG. 2). 図1のデータ処理系の構成において、画像回転を伴わない処理経路(第二の経路)を矢印で示す図である。In the configuration of the data processing system in FIG. 1, a processing path (second path) that does not involve image rotation is indicated by an arrow. 第二の経路(図4)で行うデータ処理の具体例を説明する図である。It is a figure explaining the specific example of the data processing performed by the 2nd path | route (FIG. 4). プロッタ出力時に第一の経路及び第二の経路を選択し、実行するデータ処理の制御フロー図(実施形態1)である。FIG. 10 is a control flow diagram of data processing for selecting and executing a first route and a second route at the time of plotter output (first embodiment). 本発明の実施形態2に係る複写機の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the copying machine which concerns on Embodiment 2 of this invention. 図7のデータ処理系の構成において、画像回転を伴う処理経路(第一の経路)を矢印で示す図である。In the configuration of the data processing system of FIG. 7, a processing path (first path) with image rotation is indicated by arrows. 図7のデータ処理系の構成において、画像回転を伴わない処理経路(第二の経路)を矢印で示す図である。In the configuration of the data processing system of FIG. 7, a processing path (second path) that does not involve image rotation is indicated by an arrow. 第二の経路(図9)で行うデータ処理の具体例を説明する図である。It is a figure explaining the specific example of the data processing performed by the 2nd path | route (FIG. 9). プロッタ出力時に第一の経路及び第二の経路を選択し、実行するデータ処理の制御フロー図(実施形態2)である。FIG. 12 is a control flow diagram of data processing for selecting and executing a first route and a second route at the time of plotter output (second embodiment). プロッタ出力データの処理経路である、第一の経路(A)、第二の経路(B)におけるメモリを使用するデータ量を示す図である。It is a figure which shows the data amount which uses the memory in the 1st path | route (A) and the 2nd path | route (B) which are the process paths of plotter output data. プロッタ出力時に第一の経路及び第二の経路を選択し、実行するデータ処理の制御フロー図(実施形態3)である。FIG. 11 is a control flow diagram of data processing for selecting and executing a first route and a second route at the time of plotter output (third embodiment). 処理を中断させるメモリの容量不足に対応する操作部の制御に係るフロー図である。It is a flowchart which concerns on control of the operation part corresponding to the memory capacity shortage which interrupts a process.

符号の説明Explanation of symbols

11・・スキャナ、12・・画像入力/圧縮処理手段、21・・CPU(Central Processing Unit)、22・・メモリ、23・・画像伸長手段、24・・画像転送手段、25・・画像処理手段、26・・画像回転手段,画像回転手段(1)、28・・画像回転手段(2)、31・・画像出力手段、32・・プロッタ。 11..Scanner, 12..Image input / compression processing means, 21..CPU (Central Processing Unit), 22..Memory, 23..Image decompression means, 24..Image transfer means, 25..Image processing means 26. Image rotating means, image rotating means (1), 28. Image rotating means (2), 31 Image output means, 32 Plotter.

Claims (11)

処理対象の入力画像を、圧縮、符号化された入力画像データに処理する画像入力/圧縮処理手段と、
前記画像入力/圧縮処理手段により処理された圧縮、符号化された入力画像データを伸長する符号伸長手段と、
前記符号伸長手段により伸長された入力画像データを出力用画像データとして加工処理する画像処理手段と、
前記符号伸長手段によって伸長された後の画像を縦横に回転させる画像回転手段と、
入力画像が出力用画像に処理される過程で、処理対象となる画像データに対し、バッファとして機能する記憶手段と、
前記符号伸長手段から前記画像処理手段へ直接画像データを転送する画像転送手段と、
入力画像を設定条件に従って処理し、出力用画像として出力するために、前記各手段を動作させる制御手段を有する画像形成装置であって、
前記画像処理手段は、画像を変倍処理する手段を備え、
前記制御手段は、変倍が設定された画像処理を行う際に、変倍後に前記画像処理手段で処理できない主走査幅となる画像に対し、前記符号伸長手段で当該画像の符号化されたデータを伸長し、前記記憶手段を介して前記画像回転手段を用いて縦横回転を行った後、前記画像処理手段で変倍を含む画像処理を行う第一の経路又は、変倍後に前記画像処理手段で処理できる主走査幅の画像に対し、前記符号伸長手段で当該画像の符号化されたデータを伸長した後、前記画像転送手段を用いて直接前記画像処理手段に転送し、変倍を含む画像処理を行う第二の経路を選択し、選択した経路の動作を行わせることを特徴とする画像形成装置。
Image input / compression processing means for processing an input image to be processed into compressed and encoded input image data;
Code decompression means for decompressing the compressed and encoded input image data processed by the image input / compression processing means ;
Image processing means for processing the input image data expanded by the code expansion means as output image data;
Image rotation means for rotating the image after being decompressed by the code decompression means vertically and horizontally;
Storage means that functions as a buffer for image data to be processed in a process in which an input image is processed into an output image;
Image transfer means for directly transferring image data from the code decompression means to the image processing means;
An image forming apparatus having a control unit that operates each unit to process an input image according to setting conditions and output the input image as an output image.
The image processing means includes means for scaling the image,
When performing image processing with scaling set, the control means performs data encoding the image by the code decompression means for an image having a main scanning width that cannot be processed by the image processing means after scaling. A first path in which image processing including image scaling is performed by the image processing means after the image is rotated and the image processing means performs image processing including scaling, or the image processing means after scaling For the image of the main scanning width that can be processed by the above, after the encoded data of the image is expanded by the code expansion unit, the image is transferred directly to the image processing unit by using the image transfer unit, and the image includes scaling. An image forming apparatus, wherein a second path for processing is selected and an operation of the selected path is performed.
請求項1に記載された画像形成装置において、
入力画像を処理し、出力用画像として出力する過程で制御に用いる情報として、入力画像の主走査方向の長さ及び設定された画像変倍率を取得する第一の制御用情報取得手段を有し、
前記制御手段は、前記第一の経路又は第二の経路のいずれかを選択するために、前記第一の制御用情報取得手段によって取得された入力画像の主走査方向の長さ及び設定された画像変倍率に基づき、画像変倍後に前記画像処理手段で処理できない主走査幅となる画像であるか、否かを判断することを特徴とする画像形成装置。
The image forming apparatus according to claim 1,
As the information used for control in the process of processing the input image and outputting it as the output image, there is a first control information acquisition means for acquiring the length of the input image in the main scanning direction and the set image magnification. ,
The control means sets and sets the length of the input image acquired by the first control information acquisition means in the main scanning direction to select either the first path or the second path. An image forming apparatus that determines whether or not an image has a main scanning width that cannot be processed by the image processing unit after image scaling, based on an image scaling ratio.
請求項1又は2に記載された画像形成装置において、
入力画像を処理し、出力用画像として出力する過程で制御に用いる情報として、出力用紙のサイズ及び縦横方向の各情報を取得する第二の制御用情報取得手段と、
前記画像処理手段により処理された後の画像に対し、縦横回転処理を行う処理後画像回転手段を有し、
前記制御手段は、前記第二の経路を選択した画像に対し、前記第二の制御用情報取得手段によって取得された出力用紙のサイズ及び縦横方向に基づき、前記画像処理手段で処理された画像データに前記処理後画像回転手段を適用し、該出力用紙と整合させるようにする処理経路の動作を行わせることを特徴とする画像形成装置。
The image forming apparatus according to claim 1 or 2,
A second control information acquisition means for acquiring the size of the output paper and each of the vertical and horizontal directions as information used for control in the process of processing the input image and outputting it as an output image;
A post-processing image rotation unit that performs vertical and horizontal rotation processing on the image processed by the image processing unit;
The control means is the image data processed by the image processing means based on the size and vertical / horizontal direction of the output paper obtained by the second control information obtaining means for the image for which the second route is selected. An image forming apparatus characterized in that the post-processing image rotation means is applied to a processing path so as to align with the output paper.
請求項1乃至3のいずれかに記載された画像形成装置において、
前記制御手段は、前記第一の経路を選択する際に、当該経路の動作を行わせるために用いる前記記憶手段の容量を実行条件として確認し、実行条件を満たさない場合に、実行を中止することを特徴とする画像形成装置。
The image forming apparatus according to any one of claims 1 to 3,
When the control unit selects the first path, the control unit checks the capacity of the storage unit used for performing the operation of the path as an execution condition, and stops execution when the execution condition is not satisfied. An image forming apparatus.
請求項4に記載された画像形成装置において、
表示部を持つ操作手段を前記制御手段の制御下に有し、
前記制御手段は、前記実行条件を満たさない場合に、前記表示部により、実行できない旨を知らせるとともに、実行キーの操作を無効化することを特徴とする画像形成装置。
The image forming apparatus according to claim 4.
Having an operation means having a display unit under the control of the control means;
The image forming apparatus, wherein when the execution condition is not satisfied, the control unit notifies the display unit that the execution is impossible and invalidates the operation of the execution key.
圧縮、符号化された入力画像データを、拡大変倍が含まれる設定条件に従って、出力用画像データとして処理する出力画像処理方法であって、
拡大変倍が設定された画像処理を行う際に、処理対象画像が画像処理部に必要な所定の主走査幅を拡大変倍後に超え、処理ができない画像であるか否かを判断し、
処理ができないと判断した画像に対し、当該画像の符号化されたデータを伸長し、バッファとして機能する記憶手段を介して縦横の画像回転を行った後、前記画像処理部で拡大変倍を含む画像処理を行う第一の経路又は、
処理ができると判断した画像に対し、当該画像の符号化されたデータを伸長した後、直接前記画像処理部に転送し、拡大変倍を含む画像処理を行う第二の経路を選択し、選択した経路の動作を実行することを特徴とする出力画像処理方法。
An output image processing method for processing compressed and encoded input image data as output image data in accordance with setting conditions including enlargement / magnification scaling,
When performing image processing with enlargement / reduction set, it is determined whether the processing target image is an image that exceeds a predetermined main scanning width necessary for the image processing unit after enlargement / reduction and cannot be processed,
For an image that is determined to be unprocessable, the encoded data of the image is expanded, rotated vertically and horizontally through storage means that functions as a buffer, and then the image processing unit includes enlargement / magnification A first path for image processing, or
For the image determined to be able to be processed, the encoded data of the image is expanded and then directly transferred to the image processing unit, and the second path for performing image processing including enlargement / reduction is selected and selected. An output image processing method characterized in that the operation of the route is executed.
請求項6に記載された出力画像処理方法において、
入力画像を出力用画像データとして処理する過程で動作の制御に用いる情報として、入力画像の主走査方向の長さ及び設定された画像変倍率を取得し、
前記第一の経路又は第二の経路のいずれかを選択するために、取得した入力画像の主走査方向の長さ及び設定された画像変倍率に基づき、画像変倍後に前記画像処理部で処理できない主走査幅となる画像であるか、否かを判断することを特徴とする出力画像処理方法。
The output image processing method according to claim 6, wherein
As the information used for controlling the operation in the process of processing the input image as output image data, the length of the input image in the main scanning direction and the set image magnification are acquired,
In order to select either the first path or the second path, the image processing unit performs processing after image scaling based on the length of the acquired input image in the main scanning direction and the set image scaling ratio. An output image processing method characterized by determining whether or not an image has a main scanning width that cannot be performed.
請求項6又は7に記載された出力画像処理方法において、
入力画像を出力用画像データとして処理する過程で動作の制御に用いる情報として、出力用紙のサイズ及び縦横方向の各情報を取得し、
前記第二の経路を選択した画像に対し、取得した出力用紙のサイズ及び縦横方向との整合を図るために、前記画像処理部で処理された画像データに縦横回転処理を適用することを特徴とする出力画像処理方法。
In the output image processing method according to claim 6 or 7,
As the information used for controlling the operation in the process of processing the input image as output image data, the size of the output paper and each information in the vertical and horizontal directions are acquired,
Applying vertical / horizontal rotation processing to the image data processed by the image processing unit in order to match the size and vertical / horizontal direction of the acquired output paper for the image selected for the second path, Output image processing method.
請求項6乃至8のいずれかに記載された出力画像処理方法において、
前記第一の経路を選択する際に、当該経路の動作を行わせるために用いる前記記憶手段の容量を実行条件として確認し、実行条件を満たさない場合に、実行を中止することを特徴とする出力画像処理方法。
The output image processing method according to any one of claims 6 to 8,
When the first path is selected, the capacity of the storage means used for performing the operation of the path is confirmed as an execution condition, and execution is stopped when the execution condition is not satisfied. Output image processing method.
コンピュータを請求項1乃至5のいずれかに記載された画像形成装置における前記制御手段として機能させるためのプログラム。   A program for causing a computer to function as the control unit in the image forming apparatus according to any one of claims 1 to 5. 請求項10に記載されたプログラムをコンピュータ読取り可能に記録した記録媒体。
A recording medium on which the program according to claim 10 is recorded so as to be readable by a computer.
JP2007318470A 2007-12-10 2007-12-10 Image forming apparatus, output image processing method, and program Expired - Fee Related JP4901705B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007318470A JP4901705B2 (en) 2007-12-10 2007-12-10 Image forming apparatus, output image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007318470A JP4901705B2 (en) 2007-12-10 2007-12-10 Image forming apparatus, output image processing method, and program

Publications (2)

Publication Number Publication Date
JP2009141862A JP2009141862A (en) 2009-06-25
JP4901705B2 true JP4901705B2 (en) 2012-03-21

Family

ID=40871980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007318470A Expired - Fee Related JP4901705B2 (en) 2007-12-10 2007-12-10 Image forming apparatus, output image processing method, and program

Country Status (1)

Country Link
JP (1) JP4901705B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5668285B2 (en) * 2009-12-21 2015-02-12 株式会社リコー Image processing apparatus, image processing method, and image processing program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3444955B2 (en) * 1994-03-24 2003-09-08 キヤノン株式会社 Facsimile machine
JPH08317188A (en) * 1995-05-15 1996-11-29 Fuji Xerox Co Ltd Image processing unit
JP3812222B2 (en) * 1999-06-11 2006-08-23 コニカミノルタホールディングス株式会社 Document reading apparatus and image forming apparatus
JP2001094753A (en) * 1999-09-24 2001-04-06 Ricoh Co Ltd Facsimile equipment
JP2007020235A (en) * 2006-10-20 2007-01-25 Fujifilm Corp Method, apparatus and program for image reproduction

Also Published As

Publication number Publication date
JP2009141862A (en) 2009-06-25

Similar Documents

Publication Publication Date Title
JP5287297B2 (en) Data processing circuit, power saving method, power saving program, recording medium and device
JP4976971B2 (en) Image forming system, image forming apparatus, and program
JP7073634B2 (en) Electronic devices and programs
JP6926622B2 (en) Image processing device
JP4901705B2 (en) Image forming apparatus, output image processing method, and program
JP2007174177A (en) Image forming apparatus
JP2009086989A (en) Image forming system, image forming apparatus and program
JP7422453B2 (en) Image forming apparatus and its control method
JP2009055226A (en) Image controller
JP5915670B2 (en) Image processing apparatus, image processing method and image processing program in the same
JP5145741B2 (en) Image processing device
JP2020110926A (en) Image formation apparatus, control method of image formation apparatus, image formation system and program
JP5563265B2 (en) Printing apparatus, control method therefor, and program
US8953213B2 (en) Image reading apparatus, control method thereof, and recording medium
JP5326882B2 (en) Image processing device
JP2006195888A (en) Print system
JP2010188598A (en) Printing apparatus, driver program and printing system
JPH11136496A (en) Image forming device
JP2008234543A (en) Image recording apparatus
JP2001157033A (en) Image processor
JP2007055086A (en) Printing device
JP2009042988A (en) Printing system
JP3897782B2 (en) Image forming apparatus
JP3936945B2 (en) Image forming apparatus and program
JP2003259097A (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100804

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111013

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111206

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111226

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111227

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4901705

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150113

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees