JP2008079036A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2008079036A
JP2008079036A JP2006256221A JP2006256221A JP2008079036A JP 2008079036 A JP2008079036 A JP 2008079036A JP 2006256221 A JP2006256221 A JP 2006256221A JP 2006256221 A JP2006256221 A JP 2006256221A JP 2008079036 A JP2008079036 A JP 2008079036A
Authority
JP
Japan
Prior art keywords
compression
image data
unit
compressed
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2006256221A
Other languages
Japanese (ja)
Inventor
Atsushi Ito
淳 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konica Minolta Business Technologies Inc
Original Assignee
Konica Minolta Business Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Business Technologies Inc filed Critical Konica Minolta Business Technologies Inc
Priority to JP2006256221A priority Critical patent/JP2008079036A/en
Publication of JP2008079036A publication Critical patent/JP2008079036A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus capable of suppressing productivity deterioration to an image with lower compression ratio while avoiding image quality deterioration as far as possible. <P>SOLUTION: The image data input from a scanner part 11 are concurrently compressed by a first compression/expansion unit 13 of lossless compression system and a second compression/expansion unit 14 of non-lossless compression system, after that, compression ratio of lossless compression is compared with a predetermined threshold, and when the compression ratio of the lossless compression is below the threshold, the lossless-compressed image data are transferred from a first image memory 15 to a hard disk device 33 to be stored, and when the compression ratio of the lossless compression exceeds the threshold, the non-lossless-compressed image data are transmitted to the hard disk device 33 to be stored. The threshold and the specified compression ratio are made below a boundary value that data transfer relative to storage/reading of the compressed image data to the hard disk device 33 is not in time for input/output speed of the non-lossless-compressed image data at the scanner part 11 and a printer part 22. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、入出力される画像データを内部で圧縮して記憶する画像処理装置に係わり、特に、複数の圧縮方式を備えた画像処理装置に関する。   The present invention relates to an image processing apparatus that internally compresses and stores input / output image data, and more particularly to an image processing apparatus having a plurality of compression methods.

近年、デジタル複写機などの画像処理装置では、高速化・高解像度化・カラー化が進み、扱うデータ量が飛躍的に増大している。このため、画像データを保存する場合には、圧縮して保存すると共に、圧縮した画像データを半導体メモリからハードディスク装置などの大容量でビット単価が比較的安い記憶装置に転送して保存する方式が一般に採用されている。   In recent years, in an image processing apparatus such as a digital copying machine, the speed of data, resolution, and color have increased, and the amount of data handled has increased dramatically. For this reason, when storing image data, there is a method for compressing and storing the compressed image data, and transferring and storing the compressed image data from a semiconductor memory to a storage device such as a hard disk device and a relatively low bit unit price. Generally adopted.

圧縮方式には、大別すると可逆圧縮方式と非可逆圧縮方式があり、可逆圧縮方式は画質の劣化はないが、画像内容によっては圧縮率が低く、場合によっては圧縮率が1を超えて、元の画像よりデータ量が増えることがある。一方、非可逆圧縮方式は圧縮率を高くできるが、その分、画質は劣化する。このように、画像データを圧縮した場合の圧縮率や画質劣化は、圧縮方式および画像内容に応じて様々になる。   The compression methods are roughly classified into a lossless compression method and an irreversible compression method. The lossless compression method has no deterioration in image quality, but depending on the image content, the compression rate is low, and in some cases the compression rate exceeds 1, The amount of data may be larger than the original image. On the other hand, the lossy compression method can increase the compression rate, but the image quality is degraded accordingly. Thus, the compression rate and image quality degradation when image data is compressed vary depending on the compression method and the image content.

そこで、異なる圧縮方式で圧縮する複数の圧縮器を用意しておき、メモリの残容量に応じて最適な圧縮方式を選択したり、圧縮率が最も小さい圧縮方式を優先的に選択したりする技術が提案されている(たとえば、特許文献1参照。)。また、スループットの低下を招くことなく圧縮方式の異なる複数の画像ファイルを得るために、可逆圧縮方式による第1圧縮器と非可逆圧縮方式による第2圧縮器とを同時並行に作動させるようにしたデジタルスチルカメラなども提案されている(特許文献2参照。)。   Therefore, a technology that prepares multiple compressors to compress with different compression methods and selects the optimal compression method according to the remaining capacity of the memory or preferentially selects the compression method with the smallest compression rate Has been proposed (see, for example, Patent Document 1). In addition, in order to obtain a plurality of image files with different compression methods without causing a decrease in throughput, the first compressor based on the lossless compression method and the second compressor based on the lossy compression method are operated simultaneously in parallel. A digital still camera or the like has also been proposed (see Patent Document 2).

また、画像を文字、網点、写真などの領域に分け、あるいは階調数のヒストグラムを求めて領域分けし、領域毎にそれぞれの領域の画像内容に応じた圧縮方式を切り替えることで、圧縮率と画質の両立を図る技術などもある。   Also, by dividing the image into areas such as text, halftone dots, and photographs, or by dividing the area by obtaining a histogram of the number of gradations, switching the compression method according to the image contents of each area for each area, the compression rate There are also technologies to achieve both image quality and image quality.

特開2003−37739号公報JP 2003-37739 A 特開2003−101951号公報JP 2003-10951 A

圧縮した画像データをハードディスク装置に転送して保存するデジタル複写機などの画像処理装置では、圧縮率を最優先にするよりも、できるだけ画質の劣化を少なくしたいという要請がある。しかし、画質劣化のない可逆圧縮方式を常に採用すると、写真画像などの場合、圧縮後のデータ量が増加して、圧縮後の画像データを半導体メモリとハードディスク装置との間で転送するための時間が長くなり、この転送が、スキャナ部での画像読み取りやプリンタ部での印刷出力に間に合わなくなって、画像処理装置全体としての生産性が低下してしまうという問題が生じる。   In an image processing apparatus such as a digital copying machine that transfers compressed image data to a hard disk device and stores it, there is a demand for reducing the degradation of image quality as much as possible rather than making the compression rate the highest priority. However, if a reversible compression method without image quality degradation is always employed, in the case of photographic images, the amount of data after compression increases, and the time required to transfer the compressed image data between the semiconductor memory and the hard disk device However, this transfer is not in time for image reading by the scanner unit and print output by the printer unit, resulting in a problem that productivity of the entire image processing apparatus is lowered.

一方、画像内で文字、網点、写真などの領域を判別して領域毎に圧縮方式を切り替える方法では、伸張時にも個別に伸張した領域を1枚の画像に合成するなどの処理を要するため、ハードウェアの大幅な追加となって装置価格が高騰してしまう。   On the other hand, the method of distinguishing areas such as characters, halftone dots, and photographs in an image and switching the compression method for each area requires processing such as combining the individually expanded areas into a single image even during expansion. As a result, the price of the equipment will rise due to the significant addition of hardware.

本発明は、上記の問題を解決しようとするものであり、可能な限り画質劣化を避けながら、圧縮率の低い画像に対する生産性の低下を抑制することのできる画像処理装置を提供することを目的としている。   The present invention is intended to solve the above-described problem, and an object of the present invention is to provide an image processing apparatus that can suppress a decrease in productivity for an image with a low compression rate while avoiding image quality degradation as much as possible. It is said.

かかる目的を達成するための本発明の要旨とするところは、次の各項の発明に存する。   The gist of the present invention for achieving the object lies in the inventions of the following items.

[1]画像データを入力する入力手段と、
第1の圧縮方式で画像データの圧縮および伸張を行なう第1圧縮伸張器と、
第2の圧縮方式で画像データの圧縮および伸張を行なう第2圧縮伸張器と、
前記第1圧縮伸張器または前記第2圧縮伸張器で圧縮もしくは伸張された画像データを一時的に記憶するための第1記憶手段と、
第2記憶手段と、
前記第1記憶手段と前記第2記憶手段との間でデータ転送する転送手段と、
前記第1圧縮伸張器または前記第2圧縮伸張器で伸張された画像データを印刷出力する出力手段と、
制御手段と
を備え
前記制御手段は、前記入力手段から入力された画像データを前記第1圧縮伸張器と前記第2圧縮伸張器とで同時並行に圧縮させた後、前記第1圧縮伸張器で圧縮された画像データの圧縮率と予め定めた閾値とを比較し、前記圧縮率が前記閾値以下の場合は、前記第1圧縮伸張器で圧縮された画像データを前記転送手段で前記第1記憶手段から前記第2記憶手段に転送して前記第2記憶手段に記憶させ、前記圧縮率が前記閾値より大きい場合は前記第2圧縮伸張器で圧縮された画像データを前記転送手段で前記第1記憶手段から前記第2記憶手段に転送して前記第2記憶手段に記憶させる
ことを特徴とする画像処理装置。
[1] Input means for inputting image data;
A first compression / decompression unit that compresses and decompresses image data using a first compression method;
A second compression / decompression unit that compresses and decompresses image data using a second compression method;
First storage means for temporarily storing image data compressed or expanded by the first compression / decompression unit or the second compression / decompression unit;
A second storage means;
Transfer means for transferring data between the first storage means and the second storage means;
Output means for printing out the image data expanded by the first compression / decompression unit or the second compression / decompression unit;
The control means comprises: compressing the image data input from the input means in parallel by the first compression / decompression unit and the second compression / decompression unit; The compression rate of the compressed image data is compared with a predetermined threshold value. When the compression rate is equal to or lower than the threshold value, the image data compressed by the first compression / decompression unit is stored in the first storage by the transfer means. When the compression ratio is larger than the threshold value, the image data compressed by the second compression / decompression unit is transferred by the transfer unit to the first storage unit and transferred to the second storage unit. An image processing apparatus, wherein the image processing apparatus transfers the data from the storage means to the second storage means and stores it in the second storage means.

上記発明では、入力された画像データを、第1の圧縮方式と第2の圧縮方式とで同時並行に圧縮し、各圧縮方式で圧縮された画像データを第1記憶手段に一時記憶し、第1の圧縮方式での圧縮率が予め定めた閾値以下の場合は第1の圧縮方式で圧縮された画像データを第2記憶手段に転送して記憶し、第1の圧縮方式の圧縮率が閾値を超える場合は第2の圧縮方式で圧縮された画像データを第2記憶手段に転送して記憶する。   In the above invention, the input image data is compressed in parallel by the first compression method and the second compression method, and the image data compressed by each compression method is temporarily stored in the first storage means. When the compression rate of the first compression method is less than or equal to a predetermined threshold value, the image data compressed by the first compression method is transferred to the second storage means and stored, and the compression rate of the first compression method is the threshold value If the image data exceeds 1, the image data compressed by the second compression method is transferred to the second storage means and stored.

[2]画像データを入力する入力手段と、
第1の圧縮方式で画像データの圧縮および伸張を行なう第1圧縮伸張器と、
第2の圧縮方式で画像データの圧縮および伸張を行なう第2圧縮伸張器と、
前記第1圧縮伸張器または前記第2圧縮伸張器で圧縮もしくは伸張された画像データを一時的に記憶するための第1記憶手段と、
第2記憶手段と、
前記第1記憶手段と前記第2記憶手段との間でデータ転送する転送手段と、
前記第1圧縮伸張器または前記第2圧縮伸張器で伸張された画像データを印刷出力する出力手段と、
制御手段と
を備え
前記制御手段は、前記入力手段から入力された画像データを前記第1圧縮伸張器と前記第2圧縮伸張器とで同時並行に圧縮させた後、前記第1圧縮伸張器で圧縮された画像データと予め定めた閾値とを比較し、前記圧縮後画像データのサイズが前記閾値よりも小さい場合は前記第1圧縮伸張器で圧縮された画像データを前記転送手段で前記第1記憶手段から前記第2記憶手段に転送して前記第2記憶手段に記憶させ、前記圧縮後画像データのサイズが前記閾値より大きい場合は前記第2圧縮伸張器で圧縮された画像データを前記転送手段で前記第1記憶手段から前記第2記憶手段に転送して前記第2記憶手段に記憶させる
ことを特徴とする画像処理装置。
[2] input means for inputting image data;
A first compression / decompression unit that compresses and decompresses image data using a first compression method;
A second compression / decompression unit that compresses and decompresses image data using a second compression method;
First storage means for temporarily storing image data compressed or expanded by the first compression / decompression unit or the second compression / decompression unit;
A second storage means;
Transfer means for transferring data between the first storage means and the second storage means;
Output means for printing out the image data expanded by the first compression / decompression unit or the second compression / decompression unit;
And the control means compresses the image data input from the input means in parallel by the first compression / decompression unit and the second compression / decompression unit, and then uses the first compression / decompression unit. The compressed image data is compared with a predetermined threshold value. If the size of the compressed image data is smaller than the threshold value, the image data compressed by the first compression / decompression unit is transferred to the first transfer means by the transfer means. When the size of the compressed image data is larger than the threshold value, the image data compressed by the second compression / decompression device is transferred from the storage means to the second storage means and stored in the second storage means. An image processing apparatus, wherein the first storage unit transfers the data to the second storage unit and stores the second storage unit in the second storage unit.

上記発明では、入力された画像データを、第1の圧縮方式と第2の圧縮方式とで同時並行に圧縮し、各圧縮方式で圧縮された画像データを第1記憶手段に一時記憶し、第1の圧縮方式で圧縮した圧縮後画像データのサイズが予め定めた閾値より小さい場合は第1の圧縮方式で圧縮された画像データを第2記憶手段に転送して記憶し、第1の圧縮方式で圧縮した圧縮後画像データのサイズが閾値より大きい場合は第2の圧縮方式で圧縮された画像データを第2記憶手段に転送して記憶する。   In the above invention, the input image data is compressed in parallel by the first compression method and the second compression method, and the image data compressed by each compression method is temporarily stored in the first storage means. If the size of the compressed image data compressed by the first compression method is smaller than a predetermined threshold value, the image data compressed by the first compression method is transferred to the second storage means and stored, and the first compression method If the size of the compressed image data compressed in step 2 is larger than the threshold value, the image data compressed by the second compression method is transferred to the second storage means and stored.

[3]前記第1の圧縮方式は、可逆圧縮方式であり、
前記第2の圧縮方式は、非可逆圧縮方式である
ことを特徴とする[1]または[2]に記載の画像処理装置。
[3] The first compression method is a lossless compression method,
The image processing apparatus according to [1] or [2], wherein the second compression method is an irreversible compression method.

上記発明では、可逆圧縮方式での圧縮率が閾値以下の場合は、画質劣化のない可逆圧縮方式で圧縮した画像データを第2記憶手段に転送して記憶し、可逆圧縮方式での圧縮率が閾値より大きい場合は、可逆圧縮方式に比べて画質劣化は生じるが圧縮率を小さくできる非可逆圧縮方式で圧縮した画像データを第2記憶手段に転送して記憶する。   In the above invention, when the compression rate in the lossless compression method is less than or equal to the threshold value, the image data compressed in the lossless compression method without image quality deterioration is transferred to the second storage means and stored, and the compression rate in the lossless compression method is If it is larger than the threshold value, the image data compressed by the irreversible compression method capable of reducing the compression rate although the image quality is deteriorated as compared with the reversible compression method is transferred to the second storage means and stored.

[4]前記第1の圧縮方式で圧縮された画像データは、前記第2記憶手段に予め確保した第1領域に転送して記憶し、
前記閾値は、前記第1記憶手段と前記第1領域との間で前記転送手段が転送可能な単位時間あたりのデータ量の最悪値の2分の1を、前記出力手段で印刷出力する1ページ分の画像データのデータ量と前記出力手段による単位時間あたりの印刷枚数とを乗じた値で除した値以下に設定する
ことを特徴とする[1]に記載の画像処理装置。
[4] The image data compressed by the first compression method is transferred and stored in a first area secured in advance in the second storage means,
The threshold value is one page at which the output unit prints out half the worst value of the data amount per unit time that can be transferred by the transfer unit between the first storage unit and the first area. The image processing apparatus according to [1], wherein the image processing apparatus is set to a value equal to or less than a value obtained by multiplying a data amount of image data by a value obtained by multiplying the number of prints per unit time by the output unit.

上記発明では、第1の圧縮方式で圧縮した画像データは第2記憶手段に予め確保された第1領域に転送されて記憶される。また、閾値は、圧縮された画像データを転送手段が単位時間に第1記憶手段と第2記憶手段の第1領域との間で転送可能なデータ量の最悪値の2分の1を、出力手段で印刷出力する1ページ分の画像データのデータ量に単位時間あたりの印刷枚数を乗じた値で除した値以下に設定する。   In the above invention, the image data compressed by the first compression method is transferred and stored in the first area reserved in advance in the second storage means. Further, the threshold value is output as one half of the worst value of the amount of data that can be transferred between the first storage unit and the first area of the second storage unit by the transfer unit per unit time for the compressed image data. The value is set to a value equal to or less than the value obtained by multiplying the data amount of image data for one page to be printed out by means by the number of printed sheets per unit time.

印刷出力する1ページ分の画像データのデータ量に単位時間あたりの印刷枚数を乗じた値は、出力手段で連続的な印刷を行なう場合に単位時間に処理される非圧縮の画像データのデータ量である。該データ量分の非圧縮の画像データを圧縮した後のデータ量が、転送手段が単位時間に第1記憶領域と第1領域との間で転送可能なデータ量の最悪値の2分の1以下になれば、第1記憶手段と第2記憶手段との間でのデータ転送は、印刷出力に間に合っており、生産性の低下要因にならない。そこで、そのような圧縮率を閾値に設定している。   The value obtained by multiplying the data amount of image data for one page to be printed by the number of prints per unit time is the data amount of uncompressed image data processed per unit time when the output means performs continuous printing. It is. The amount of data after compressing the uncompressed image data corresponding to the amount of data is one half of the worst value of the amount of data that the transfer means can transfer between the first storage area and the first area per unit time. In the following case, the data transfer between the first storage means and the second storage means is in time for the print output, and does not cause a decrease in productivity. Therefore, such a compression rate is set as a threshold value.

なお、転送可能なデータ量の最悪値を2分の1にするのは、印刷出力中に、第1記憶手段から第1領域への転送(書込)とその逆方向の転送(読み出し)とを行なうことによる。第1領域は、第2記憶手段の記憶領域の一部であっても全部であってもかまわない。   Note that the worst value of the amount of data that can be transferred is halved during the printing output from the first storage means to the first area (writing) and in the opposite direction (reading). By doing. The first area may be a part or all of the storage area of the second storage means.

単位時間に転送可能なデータ量(データ転送速度)は、たとえば、第2記憶装置がハードディスク装置の場合、確保された領域がディスクの内周寄りか外周寄りかに依存して変化する。また、転送経路がバスの場合は、バスの混雑状況やバス使用の優先度などによっても変動する。そこで、第1の圧縮方式で圧縮した画像データが記憶される第1領域と第1記憶領域との間での転送の最悪値(単位時間に転送可能なデータ量の最少値)を基準に閾値を設定している。   For example, when the second storage device is a hard disk device, the amount of data that can be transferred per unit time (data transfer speed) varies depending on whether the reserved area is closer to the inner or outer periphery of the disk. In addition, when the transfer path is a bus, the transfer path also varies depending on the congestion status of the bus and the priority of bus use. Therefore, the threshold value is based on the worst value of transfer between the first area in which the image data compressed by the first compression method is stored and the first storage area (the minimum value of the amount of data that can be transferred per unit time). Is set.

[5]前記第2の圧縮方式は、指定の圧縮率で画像データを圧縮する非可逆圧縮方式である
ことを特徴とする[1乃至[4]のいずれかに記載の画像処理装置。
[5] The image processing apparatus according to any one of [1 to [4], wherein the second compression method is an irreversible compression method that compresses image data at a specified compression rate.

上記発明では、第2の圧縮方式で圧縮した場合は、画像内容によって圧縮率が変動することなく、指定の圧縮率で圧縮される。指定の圧縮率を、生産性の低下が生じない圧縮率に設定しておけば、第2の圧縮方式で圧縮された画像データを転送対象に選択した場合には、転送に起因した生産性の低下を回避することができる。   In the above invention, when the compression is performed by the second compression method, the compression is performed at the designated compression rate without changing the compression rate depending on the image content. If the specified compression rate is set to a compression rate that does not cause a decrease in productivity, when image data compressed by the second compression method is selected as a transfer target, the productivity caused by the transfer is reduced. A decrease can be avoided.

[6]前記指定の圧縮率が、前記閾値より小さい
ことを特徴とする[5]に記載の画像処理装置。
[6] The image processing apparatus according to [5], wherein the specified compression rate is smaller than the threshold value.

上記発明では、第1の圧縮方式での圧縮率が閾値より大きい場合、該閾値より小さい指定の圧縮率で圧縮された画像データ(第2の圧縮方式で圧縮された画像データ)が第2記憶手段に転送されて記憶される。   In the above invention, when the compression rate in the first compression method is larger than the threshold value, the image data (image data compressed in the second compression method) compressed at the specified compression rate smaller than the threshold value is stored in the second storage. It is transferred to the means and stored.

[7]前記第2の圧縮方式で圧縮された画像データは、前記第2記憶手段に予め確保した第2領域に転送して記憶し、
前記指定の圧縮率は、前記第1記憶手段と前記第2領域との間で前記転送手段が転送可能な単位時間あたりのデータ量の最悪値の2分の1を、前記出力手段で印刷出力する1ページ分の画像データのデータ量と前記出力手段による単位時間あたりの印刷枚数とを乗じた値で除した値以下に設定する
ことを特徴とする[5]に記載の画像処理装置。
[7] The image data compressed by the second compression method is transferred and stored in a second area secured in advance in the second storage means,
The specified compression rate is printed out by the output unit at one half of the worst value of the data amount per unit time that can be transferred by the transfer unit between the first storage unit and the second area. The image processing apparatus according to [5], wherein the image processing apparatus is set to a value equal to or less than a value obtained by multiplying a data amount of image data for one page to be multiplied by the number of printed sheets per unit time by the output unit.

上記発明では、第2の圧縮方式で圧縮した画像データは第2記憶手段に予め確保された第2領域に転送されて記憶される。指定の圧縮率は、圧縮された画像データを転送手段が単位時間に第1記憶手段と第2記憶手段の第2領域との間で転送可能なデータ量の最悪値の2分の1を、出力手段で印刷出力する1ページ分の画像データのデータ量に単位時間あたりの印刷枚数を乗じた値で除した値以下に設定する。   In the above invention, the image data compressed by the second compression method is transferred to and stored in the second area secured in advance in the second storage means. The designated compression rate is a half of the worst value of the amount of data that can be transferred between the first storage means and the second area of the second storage means in unit time by the transfer means for the compressed image data. The value is set to a value obtained by dividing the data amount of one page of image data to be printed out by the output means by the value obtained by multiplying the number of prints per unit time.

このような値に指定の圧縮率を設定することで、第1の圧縮方式での圧縮率が閾値より大きい場合に、第2の圧縮方式で圧縮した画像データを第2記憶手段の第2領域に転送して記憶すれば、該転送は必ず印刷出力に間に合うので、第1記憶手段と第2記憶手段との間の転送が要因で印刷出力の生産性を低下させることはない。   By setting the designated compression rate to such a value, when the compression rate in the first compression method is larger than the threshold value, the image data compressed in the second compression method is stored in the second area of the second storage unit. Since the transfer is always in time for the print output, the transfer between the first storage means and the second storage means does not reduce the productivity of the print output.

[8]前記第1の圧縮方式で圧縮された画像データと前記第2の圧縮方式で圧縮された画像データとを、前記第2記憶手段に予め確保した同一領域内に転送して記憶する
ことを特徴とする[1]乃至[7]のいずれかに記載の画像処理装置。
[8] Transfer and store the image data compressed by the first compression method and the image data compressed by the second compression method in the same area secured in advance in the second storage means. The image processing device according to any one of [1] to [7].

[9]前記第1の圧縮方式で圧縮されたデータは、前記第2記憶手段に予め確保した第1領域に転送して記憶し、前記第2の圧縮方式で圧縮された画像データは、前記第2記憶手段に予め確保した、前記第1領域と異なる第2領域に転送して記憶する
ことを特徴とする[1]乃至[7]のいずれかに記載の画像処理装置。
[9] The data compressed by the first compression method is transferred to and stored in a first area secured in advance in the second storage means, and the image data compressed by the second compression method is The image processing apparatus according to any one of [1] to [7], wherein the image processing apparatus transfers and stores in a second area different from the first area, which is secured in advance in a second storage unit.

[10]前記第1記憶手段は半導体メモリであり、前記第2記憶手段はハードディスク装置である
ことを特徴とする[1]乃至[9]のいずれかに記載の画像処理装置。
[10] The image processing apparatus according to any one of [1] to [9], wherein the first storage unit is a semiconductor memory, and the second storage unit is a hard disk device.

本発明に係わる画像処理装置によれば、入力された画像データを、第1の圧縮方式と第2の圧縮方式とで同時並行に圧縮し、各圧縮方式で圧縮された画像データを第1記憶手段に一時的に記憶し、第1の圧縮方式での圧縮率あるいは圧縮後画像データのサイズが予め定めた閾値以下の場合は第1の圧縮方式で圧縮された画像データを優先的に第2記憶手段に転送して記憶するので、たとえば、第1の圧縮方式を画質劣化のない可逆圧縮方式にし、第2の圧縮方式を圧縮率の高い非可逆圧縮方式にすれば、圧縮による画質劣化をできるだけ避けながら、第1の圧縮方式による圧縮率の低い画像の場合でも、第1記憶手段と第2記憶手段との間のデータ転送が印刷出力に間に合わなくなって生産性が低下することを回避することができる。   According to the image processing apparatus of the present invention, the input image data is compressed in parallel by the first compression method and the second compression method, and the image data compressed by each compression method is stored in the first memory. If the compression rate in the first compression method or the size of the image data after compression is equal to or less than a predetermined threshold value, the image data compressed in the first compression method is preferentially stored in the second means. Since the data is transferred to the storage means and stored, for example, if the first compression method is a lossless compression method without image quality deterioration and the second compression method is an irreversible compression method with a high compression rate, image quality deterioration due to compression will be reduced. While avoiding as much as possible, even in the case of an image with a low compression rate by the first compression method, it is avoided that the data transfer between the first storage unit and the second storage unit is not in time for the print output and the productivity is lowered. be able to.

以下、図面に基づき本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の第1の実施の形態に係わる画像処理装置10の概略構成を示すブロック図である。画像処理装置10は、原稿を光学的に読み取って得た画像データを取得し、該画像データを記録紙上に画像形成して印刷出力する、コピー機能などを備えたデジタル複写機として構成されている。 FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus 10 according to the first embodiment of the present invention. The image processing apparatus 10 is configured as a digital copying machine having a copy function that acquires image data obtained by optically reading a document, forms an image on the recording paper, and prints out the image data. .

画像処理装置10は、原稿を光学的に読み取る入力手段としてのスキャナ部11と、スキャナ部11で原稿を読み取って得た画像データに対して各種の画像処理を施すスキャナ系画像処理回路12と、第1の圧縮方式で画像データの圧縮および伸張を行なう第1圧縮伸張器13と、第2の圧縮方式で画像データの圧縮および伸張を行なう第2圧縮伸張器14と、第1圧縮伸張器13で圧縮もしくは伸張された画像データを一時的に記憶するための第1画像メモリ15と、第2圧縮伸張器14で圧縮もしくは伸張された画像データを一時的に記憶するための第2画像メモリ16と、第1圧縮伸張器13および第1画像メモリ15が配下に接続された第1のメモリ/圧縮伸張コントローラ17と、第2圧縮伸張器14および第2画像メモリ16が配下に接続された第2のメモリ/圧縮伸張コントローラ18とを備えている。   The image processing apparatus 10 includes a scanner unit 11 as an input unit that optically reads a document, a scanner image processing circuit 12 that performs various types of image processing on image data obtained by reading the document with the scanner unit 11, and A first compression / decompression unit 13 that compresses and decompresses image data by the first compression method, a second compression / decompression unit 14 that compresses and decompresses image data by the second compression method, and a first compression / decompression unit 13 A first image memory 15 for temporarily storing the image data compressed or expanded by the second image memory 16 and a second image memory 16 for temporarily storing the image data compressed or expanded by the second compression / decompression unit 14. A first memory / compression decompression controller 17 to which the first compression / decompression device 13 and the first image memory 15 are connected, and a second compression / decompression device 14 and a second image memory 16. And a second memory / decompression controller 18 connected to the bottom.

さらに画像処理装置10は、画像データに対して印刷出力のための各種画像処理を施すプリンタ系画像処理回路21と、プリンタ系画像処理回路21からの画像データに基づいて記録紙上に画像形成して印刷出力する出力手段としてのプリンタ部22とを備えている。   Furthermore, the image processing apparatus 10 forms an image on a recording sheet based on the image data from the printer image processing circuit 21 and the image data from the printer image processing circuit 21 that performs various image processing for print output on the image data. And a printer unit 22 as output means for printing out.

また、画像処理装置10は、PCI(Peripheral Component Interconnect)バスなどで構成されたシステムバス31を有している。該システムバス31には、画像処理装置10の動作を制御する制御手段としての機能を果たすCPU(Central Processing Unit)32と、第2記憶手段としてのハードディスク装置33(図中、HDDと表示)が配下に接続されたHDD−I/F(Hard Disk Drive−Interface)34と、NIC/プリンタコントローラ35と、第1のメモリ/圧縮伸張コントローラ17および第2のメモリ/圧縮伸張コントローラ18とが接続されている。   Further, the image processing apparatus 10 includes a system bus 31 configured by a PCI (Peripheral Component Interconnect) bus or the like. The system bus 31 includes a CPU (Central Processing Unit) 32 that functions as a control unit that controls the operation of the image processing apparatus 10 and a hard disk device 33 (denoted as HDD in the figure) as a second storage unit. The HDD-I / F (Hard Disk Drive-Interface) 34, the NIC / printer controller 35, the first memory / compression / decompression controller 17 and the second memory / compression / decompression controller 18 connected under the control are connected. ing.

NIC/プリントコントローラ35は、ネットワークコントローラ(NIC…Network Interface Card)の機能を備えており、LAN(Local Area Network)2などと接続され、外部とデータの授受を行なう。また、NIC/プリントコントローラ35は文字コードなどで構成された印刷データを図示しない外部端末からLAN2を通じて受信し、該印刷データをイメージデータ(画像データ)に展開する機能を備えており、スキャナ部11と同様に画像データの入力手段としての機能を果たす。   The NIC / print controller 35 has a function of a network controller (NIC: Network Interface Card), is connected to a LAN (Local Area Network) 2 and the like, and exchanges data with the outside. The NIC / print controller 35 has a function of receiving print data composed of character codes or the like from an external terminal (not shown) via the LAN 2 and developing the print data into image data (image data). The function as an input means of image data is fulfilled similarly to the above.

CPU32はさらに、システムバス31とは別のホストバス36に接続されている。ホストバス36にはCPU32が実行する各種プログラムが格納されたフラッシュメモリやCPU32のワークメモリとなるRAM(Random Access Memory)などのメモリ37が接続されている。またスキャナ系画像処理回路12およびプリンタ系画像処理回路21はホストバス36を介してCPU32と接続されており、CPU32から画像処理に関する設定を含む各種動作設定を受けるようになっている。   The CPU 32 is further connected to a host bus 36 different from the system bus 31. A memory 37 such as a flash memory storing various programs executed by the CPU 32 and a RAM (Random Access Memory) serving as a work memory of the CPU 32 is connected to the host bus 36. The scanner image processing circuit 12 and the printer image processing circuit 21 are connected to the CPU 32 via the host bus 36, and receive various operation settings including settings relating to image processing from the CPU 32.

スキャナ部11は、図1では内部を図示省略してあるが、原稿を照射する光源、原稿を幅方向に1ライン分読み取るラインイメージセンサ、ライン単位の読取位置を原稿の長さ方向に移動させる移動機構、原稿からの反射光をラインイメージセンサに導いて結像させるレンズやミラーからなる光学部品などを備えている。ラインイメージセンサはCCD(Charge Coupled Device)で構成される。また、ラインイメージセンサが出力するアナログ画像信号をデジタルの画像データに変換するA/D変換器を備えている。さらにスキャナ部11は、複数枚の原稿を順次連続的に読み取るための図示しない自動原稿送り装置を備えている。   Although not shown in FIG. 1, the scanner unit 11 has a light source that irradiates the document, a line image sensor that reads the document for one line in the width direction, and a reading position in units of lines is moved in the length direction of the document. It includes a moving mechanism, an optical component such as a lens and a mirror that guides reflected light from the original to a line image sensor and forms an image. The line image sensor is composed of a CCD (Charge Coupled Device). Further, an A / D converter that converts an analog image signal output from the line image sensor into digital image data is provided. The scanner unit 11 further includes an automatic document feeder (not shown) for sequentially reading a plurality of documents.

スキャナ系画像処理回路12は、シーディング補正/輝度濃度変換、画像遅延用FIFO(First-In First-Out)、領域判別、倍率変換などを行なうための空間フィルタ、濃度γ変換、傾き補正/誤差拡散などの画像処理を施す回路を備えている。スキャナ系画像処理回路12の出力は第1のメモリ/圧縮伸張コントローラ17と第2のメモリ/圧縮伸張コントローラ18の双方に入力される。なお、設定によりスキャナ系画像処理回路12は画像処理を行なうことなく画像データをスルー出力することも可能になっている。   The scanner system image processing circuit 12 is a spatial filter for performing seeding correction / luminance density conversion, image delay FIFO (First-In First-Out), area discrimination, magnification conversion, density γ conversion, inclination correction / error. A circuit for performing image processing such as diffusion is provided. The output of the scanner image processing circuit 12 is input to both the first memory / compression / decompression controller 17 and the second memory / compression / decompression controller 18. Depending on the setting, the scanner system image processing circuit 12 can also output the image data without performing image processing.

第1圧縮伸張器13は、第1の圧縮方式として可逆圧縮方式で画像データを圧縮・伸張する。第2圧縮伸張器14は、第2の圧縮方式として非可逆圧縮方式で画像データを圧縮・伸張する。また、第2圧縮伸張器14は指定された圧縮率で非可逆圧縮を行なう。圧縮率を指定可能な非可逆圧縮方式には、たとえば、JPEG(Joint Photographic Experts Group)2000などがある。   The first compression / decompression unit 13 compresses / decompresses image data by a reversible compression method as a first compression method. The second compression / decompression unit 14 compresses / decompresses image data by a lossy compression method as a second compression method. The second compression / decompression unit 14 performs irreversible compression at a designated compression rate. For example, JPEG (Joint Photographic Experts Group) 2000 is an irreversible compression method that can specify the compression rate.

可逆圧縮方式は、圧縮伸張による画質劣化がなく、伸張時に元の画像を完全に復元できる圧縮方式である。圧縮率は画像内容に応じて変動し、画像内容によっては圧縮率が「1」を超え、圧縮後のデータ量が圧縮前より増加する場合もある。一方、非可逆圧縮方式は、伸張した場合に元の画像を完全に復元することはできないが、圧縮率を高める(小さくする)ことのできる圧縮方式である。圧縮率を高めるほど画質劣化は多くなる。   The lossless compression method is a compression method in which there is no deterioration in image quality due to compression / expansion, and the original image can be completely restored at the time of expansion. The compression rate varies depending on the image content. Depending on the image content, the compression rate may exceed “1”, and the amount of data after compression may increase from before compression. On the other hand, the irreversible compression method is a compression method capable of increasing (decreasing) the compression rate, although the original image cannot be completely restored when decompressed. The higher the compression rate, the more image quality degradation.

なお、圧縮率の高低と圧縮率の数値の大小との関係は、図4に例示するように、「圧縮率が高い(圧縮後の画像データサイズが小さい)と圧縮率の数値は小さくなる」という関係になっている。   As shown in FIG. 4, the relationship between the level of the compression rate and the size of the compression rate is as follows: “The compression rate is high (the image data size after compression is small) and the compression rate is small”. It is a relationship.

第1画像メモリ15および第2画像メモリ16は、第1記憶手段としての機能を果たす半導体メモリである。第1のメモリ/圧縮伸張コントローラ17は、スキャナ系画像処理回路12、第1圧縮伸張器13、第1画像メモリ15、システムバス31、プリンタ系画像処理回路21の間でのデータの受け渡しを管理し制御する機能を備えている。詳細には、スキャナ系画像処理回路12から出力される画像データを入力する機能、第1画像メモリ15に対してアドレス信号やタイミング信号などを与え第1画像メモリ15へのデータの書き込み及び読み出しを制御する機能、第1圧縮伸張器13との間でデータを授受する機能、第1画像メモリ15とHDD−I/F34を介してハードディスク装置33との間でデータ転送する転送手段としての機能、第1画像メモリ15に記憶されている画像データをプリンタ系画像処理回路21に出力する機能などを果たす。   The first image memory 15 and the second image memory 16 are semiconductor memories that function as first storage means. The first memory / compression / decompression controller 17 manages the exchange of data among the scanner image processing circuit 12, the first compression / decompression device 13, the first image memory 15, the system bus 31, and the printer image processing circuit 21. It has a function to control. Specifically, a function for inputting image data output from the scanner image processing circuit 12, an address signal, a timing signal, and the like are given to the first image memory 15 to write and read data to and from the first image memory 15. A function to control, a function to transfer data to and from the first compression / decompression unit 13, a function to transfer data between the first image memory 15 and the hard disk device 33 via the HDD-I / F 34, It fulfills the function of outputting the image data stored in the first image memory 15 to the printer image processing circuit 21.

第2のメモリ/圧縮伸張コントローラ18は、第1圧縮伸張器13、第1画像メモリ15に代えて第2圧縮伸張器14、第2画像メモリ16を対象にして第1のメモリ/圧縮伸張コントローラ17と同様の機能を果たす。第1のメモリ/圧縮伸張コントローラ17、第2のメモリ/圧縮伸張コントローラ18はASIC(Application Specific Integrated Circuit)などの半導体集積回路で構成される。   The second memory / compression / decompression controller 18 is a first memory / compression / decompression controller for the second compression / decompression unit 14 and the second image memory 16 instead of the first compression / decompression unit 13 and the first image memory 15. Performs the same function as 17. The first memory / compression / decompression controller 17 and the second memory / compression / decompression controller 18 are configured by a semiconductor integrated circuit such as an ASIC (Application Specific Integrated Circuit).

プリンタ系画像処理回路21は、第1のメモリ/圧縮伸張コントローラ17からの画像データと第2のメモリ/圧縮伸張コントローラ18からの画像データのいずれを入力するかを切り替えるセレクタ21aと、セレクタ21aを通じて入力された画像データに対して、セル平均化、解像度変換、プリンタγ変換、微小変倍、スクリーン処理などの画像処理を施す回路とを備えている。CPU32はホストバス36を通じてセレクタ21aに対して切り替えの設定を行ない、セレクタ21aは該設定に従って画像データの入力先を切り替える。プリンタ系画像処理回路21から出力される画像データはプリンタ部22に入力されて印刷出力される。なお、設定によりプリンタ系画像処理回路21はセレクタ21aを通じて入力された画像データに対して画像処理を行なうことなくスルーでプリンタ部22へ出力することも可能になっている。   The printer-type image processing circuit 21 has a selector 21a for switching between input of image data from the first memory / compression / decompression controller 17 and image data from the second memory / compression / decompression controller 18, and the selector 21a. And a circuit for performing image processing such as cell averaging, resolution conversion, printer γ conversion, minute scaling, and screen processing on the input image data. The CPU 32 performs switching setting for the selector 21a through the host bus 36, and the selector 21a switches the input destination of the image data according to the setting. Image data output from the printer image processing circuit 21 is input to the printer unit 22 and printed out. Depending on the setting, the printer system image processing circuit 21 can also output to the printer unit 22 without performing image processing on the image data input through the selector 21a.

プリンタ部22は、プリンタ系画像処理回路21から入力された画像データに対応する画像を電子写真プロセスによって記録紙上に形成して出力するものであり、図示しない、記録紙の搬送装置と、感光体ドラムと、帯電装置と、レーザーユニットと、現像装置と、転写分離装置と、クリーニング装置と、定着装置とを有する、いわゆるレーザープリンタとして構成されている。レーザ光に代えてLED(Light Emitting Diode)で感光体ドラムを照射するLEDプリンタのほか他の方式のプリンタであってもかまわない。   The printer unit 22 forms an image corresponding to the image data input from the printer image processing circuit 21 on a recording sheet by an electrophotographic process and outputs the image. It is configured as a so-called laser printer having a drum, a charging device, a laser unit, a developing device, a transfer separation device, a cleaning device, and a fixing device. Instead of an LED printer that irradiates a photosensitive drum with an LED (Light Emitting Diode) instead of a laser beam, other types of printers may be used.

次に、画像データの入力から出力に至る動作の流れを説明する。   Next, the flow of operations from input to output of image data will be described.

図2は、画像データの入力から出力に至る動作の中で圧縮・伸張に関連する部分のデータフローを示している。動作はページ単位に行なわれる。第1画像メモリ15および第2画像メモリ16はそれぞれ図2に示すように圧縮中継領域15a、16aと、再生中継領域15b、16bと、ページメモリ15c、16cに分けて使用される。CPU32は動作に先立って第1のメモリ/圧縮伸張コントローラ17および第2のメモリ/圧縮伸張コントローラ18に対して処理内容を指示する設定を行ない、第1のメモリ/圧縮伸張コントローラ17および第2のメモリ/圧縮伸張コントローラ18が該設定に従って動作する。たとえば、第2圧縮伸張器14での圧縮率Xの指定、1ページの画像を構成するライン数、1ラインを構成する画素数、階調数、画像データの格納先アドレス情報などが設定される。   FIG. 2 shows a data flow of a portion related to compression / decompression in the operation from input to output of image data. The operation is performed in units of pages. As shown in FIG. 2, the first image memory 15 and the second image memory 16 are divided into compression relay areas 15a and 16a, regeneration relay areas 15b and 16b, and page memories 15c and 16c, respectively. Prior to the operation, the CPU 32 performs a setting for instructing the processing contents to the first memory / compression / decompression controller 17 and the second memory / compression / decompression controller 18, and the first memory / compression / decompression controller 17 and the second memory / compression controller 17. The memory / compression / decompression controller 18 operates according to the setting. For example, the designation of the compression ratio X in the second compression / decompression unit 14, the number of lines constituting an image of one page, the number of pixels constituting the line, the number of gradations, storage address information of image data, and the like are set. .

画像データの入力はスキャナ部11もしくはNIC/プリントコントローラ35から行なわれる。入力された画像データは第1のメモリ/圧縮伸張コントローラ17と第2のメモリ/圧縮伸張コントローラ18の双方に順次入力される。第1のメモリ/圧縮伸張コントローラ17は入力された画像データを第1圧縮伸張器13へ順次引き渡し、第1圧縮伸張器13はこれを第1の圧縮方式(可逆圧縮方式)で圧縮する。第1のメモリ/圧縮伸張コントローラ17は圧縮された画像データを第1圧縮伸張器13から順次受け取り、これを第1画像メモリ15の圧縮中継領域15aに順次格納する(図2のP1a)。   Image data is input from the scanner unit 11 or the NIC / print controller 35. The input image data is sequentially input to both the first memory / compression / decompression controller 17 and the second memory / compression / decompression controller 18. The first memory / compression / decompression controller 17 sequentially transfers the input image data to the first compression / decompression unit 13, and the first compression / decompression unit 13 compresses the image data by the first compression method (reversible compression method). The first memory / compression / decompression controller 17 sequentially receives the compressed image data from the first compression / decompression unit 13 and sequentially stores them in the compression relay area 15a of the first image memory 15 (P1a in FIG. 2).

第2のメモリ/圧縮伸張コントローラ18は入力された画像データを第2圧縮伸張器14へ順次引き渡し、第2圧縮伸張器14はこれを第2の圧縮方式(指定の圧縮率Xによる非可逆圧縮方式)で圧縮する。第2のメモリ/圧縮伸張コントローラ18は圧縮された画像データを第2圧縮伸張器14から順次受け取り、これを第2画像メモリ16の圧縮中継領域16aに順次格納する(図2のP1b)。上記の動作P1a、P1bは同時並行に実行され、これに伴い、第1圧縮伸張器13による可逆圧縮方式による圧縮と第2圧縮伸張器14による非可逆圧縮方式による圧縮は同時並行に実行される。   The second memory / compression / decompression controller 18 sequentially transfers the input image data to the second compression / decompression unit 14, and the second compression / decompression unit 14 transfers the image data to the second compression method (irreversible compression with a designated compression ratio X). Method). The second memory / compression / decompression controller 18 sequentially receives the compressed image data from the second compression / decompression unit 14, and sequentially stores them in the compression relay area 16a of the second image memory 16 (P1b in FIG. 2). The above operations P1a and P1b are executed in parallel, and accordingly, the compression by the lossless compression method by the first compression / decompression unit 13 and the compression by the irreversible compression method by the second compression / decompression unit 14 are executed in parallel. .

上記の動作P1aを行なう際に第1のメモリ/圧縮伸張コントローラ17は圧縮された画像データのデータ量を計数しており、第1圧縮伸張器13および第2圧縮伸張器14で1ページ分の圧縮動作が完了すると、CPU32は、第1圧縮伸張器13で圧縮された画像データ(圧縮後の1ページ分の画像データ)のデータ量を第1のメモリ/圧縮伸張コントローラ17から取得する。圧縮処理の終了は、たとえば、割り込み信号によりCPU32へ通知される。CPU32は今回圧縮されたページのライン数および1ラインの画素数、階調数などの情報から当該ページの圧縮前の画像データのデータ量を認識し、該データ量で、第1のメモリ/圧縮伸張コントローラ17から取得した圧縮後のデータ量を除して第1圧縮伸張器13での圧縮率Rを求める。   When the operation P1a is performed, the first memory / compression / decompression controller 17 counts the data amount of the compressed image data, and the first compression / decompression unit 13 and the second compression / decompression unit 14 serve for one page. When the compression operation is completed, the CPU 32 acquires the data amount of the image data (image data for one page after compression) compressed by the first compression / decompression unit 13 from the first memory / compression / decompression controller 17. The end of the compression process is notified to the CPU 32 by an interrupt signal, for example. The CPU 32 recognizes the data amount of the image data before compression of the page from information such as the number of lines of the page compressed this time, the number of pixels of one line, the number of gradations, and the like, and the first memory / compression is performed with the data amount. The compression rate R in the first compression / decompression unit 13 is obtained by dividing the data amount after compression acquired from the expansion controller 17.

そして、この圧縮率Rと予め定めた閾値Yとを比較し、圧縮率Rが閾値Y以下の場合は、第1圧縮伸張器13により可逆圧縮方式で圧縮された画像データを第1画像メモリ15の圧縮中継領域15aからハードディスク装置33の指定領域に転送して記憶させる旨の指示を第1のメモリ/圧縮伸張コントローラ17に対して出力する。第1のメモリ/圧縮伸張コントローラ17はCPU32からの指示に従って圧縮中継領域15aに格納されている圧縮された画像データをハードディスク装置33に転送し、ハードディスク装置33は転送されてきた画像データを指定領域に記憶する(P2a)。   Then, the compression rate R is compared with a predetermined threshold value Y. When the compression rate R is equal to or less than the threshold value Y, the image data compressed by the first compression / decompression unit 13 by the lossless compression method is stored in the first image memory 15. Is sent to the first memory / compression / decompression controller 17 from the compression relay area 15a to the designated area of the hard disk device 33 for storage. The first memory / compression / decompression controller 17 transfers the compressed image data stored in the compression relay area 15a to the hard disk device 33 according to an instruction from the CPU 32, and the hard disk device 33 transfers the transferred image data to the designated area. (P2a).

一方、圧縮率Rが閾値Yを超える場合は、第2圧縮伸張器14により圧縮された画像データを第2画像メモリ16の圧縮中継領域16aからハードディスク装置33の指定領域に転送して記憶させる旨の指示を第2のメモリ/圧縮伸張コントローラ18に対して出力する。第2のメモリ/圧縮伸張コントローラ18はCPU32からの指示に従って圧縮中継領域16aに格納されている圧縮された画像データをハードディスク装置33に転送し、ハードディスク装置33は転送されてきた画像データを指定領域に記憶する(P2b)。   On the other hand, if the compression ratio R exceeds the threshold Y, the image data compressed by the second compression / decompression unit 14 is transferred from the compression relay area 16a of the second image memory 16 to the designated area of the hard disk device 33 and stored. Is output to the second memory / compression / decompression controller 18. The second memory / compression / decompression controller 18 transfers the compressed image data stored in the compression relay area 16a to the hard disk device 33 in accordance with an instruction from the CPU 32, and the hard disk device 33 transmits the transferred image data to the designated area. (P2b).

複数ページの画像データを入力する場合には、上記の一連の動作が繰り返し行なわれ、各ページの第1または第2圧縮伸張器13、14のいずれかで圧縮された画像データが順次ハードディスク装置33に格納される。なお、圧縮された画像データをハードディスク装置33に転送して記憶させる際には、そのヘッダ情報に圧縮方式を表わす情報が付加される。また、ハードディスク装置33への画像データの転送完了後、それぞれの画像データは圧縮中継領域15a、16aから削除する。   When inputting image data of a plurality of pages, the above-described series of operations is repeated, and the image data compressed by either the first or second compression / decompression device 13 or 14 of each page is sequentially stored in the hard disk device 33. Stored in When the compressed image data is transferred to the hard disk device 33 and stored, information indicating the compression method is added to the header information. Further, after the transfer of the image data to the hard disk device 33 is completed, the respective image data is deleted from the compression relay areas 15a and 16a.

ハードディスク装置33に格納された画像データに基づく印刷出力時には、CPU32は、圧縮された画像データの圧縮方式をヘッダ情報によって認識し、認識した圧縮方式に応じて以下の動作を行なうように、第1のメモリ/圧縮伸張コントローラ17、第2のメモリ/圧縮伸張コントローラ18、プリンタ系画像処理回路21などに対して処理内容を指示し、以下の処理を実行させる。   At the time of print output based on the image data stored in the hard disk device 33, the CPU 32 recognizes the compression method of the compressed image data from the header information, and performs the following operation according to the recognized compression method. The memory / compression / decompression controller 17, the second memory / compression / decompression controller 18, the printer image processing circuit 21, and the like are instructed to execute the following processing.

印刷出力対象の画像データが第1の圧縮方式(可逆圧縮方式)で圧縮されている場合は、該画像データをハードディスク装置33から第1画像メモリ15の再生中継領域15bへ転送(図2のP3a)した後、第1圧縮伸張器13によって伸張し、伸張された画像データは、第1のメモリ/圧縮伸張コントローラ17を経てプリンタ系画像処理回路21へ出力される(P4a)。   When the image data to be printed is compressed by the first compression method (reversible compression method), the image data is transferred from the hard disk device 33 to the reproduction relay area 15b of the first image memory 15 (P3a in FIG. 2). ), The image data decompressed by the first compression / decompression unit 13 is output to the printer image processing circuit 21 via the first memory / compression decompression controller 17 (P4a).

なお、ローテーションやオーバーレイなどの画像編集がある場合は、伸張後の画像データを一旦、ページメモリ15cに格納して画像編集が行なわれ、その後、ページメモリ15cから第1のメモリ/圧縮伸張コントローラ17を経てプリンタ系画像処理回路21へ画像データが出力される(P5a)。プリンタ系画像処理回路21は第1のメモリ/圧縮伸張コントローラ17からの画像データをセレクタ21aで選択して入力する。入力された画像データは印刷出力用の画像処理を施された後プリンタ部22で印刷出力される。   When image editing such as rotation or overlay is performed, the decompressed image data is temporarily stored in the page memory 15c, and image editing is performed. Thereafter, the first memory / compression decompression controller 17 is transferred from the page memory 15c. Then, the image data is output to the printer image processing circuit 21 (P5a). The printer image processing circuit 21 selects and inputs the image data from the first memory / compression / decompression controller 17 with the selector 21a. The input image data is subjected to print output image processing and then printed out by the printer unit 22.

印刷出力対象の画像データが第2の圧縮方式(非可逆圧縮方式)で圧縮されている場合は、該画像データをハードディスク装置33から第2画像メモリ16の再生中継領域16bへ転送(図2のP3b)した後、第2圧縮伸張器14によって伸張し、伸張された画像データは、第2のメモリ/圧縮伸張コントローラ18からプリンタ系画像処理回路21へ出力される(P4b)。   When the image data to be printed is compressed by the second compression method (lossy compression method), the image data is transferred from the hard disk device 33 to the reproduction relay area 16b of the second image memory 16 (see FIG. 2). Then, the image data expanded by the second compression / decompression device 14 is output from the second memory / compression / decompression controller 18 to the printer image processing circuit 21 (P4b).

ローテーションやオーバーレイなどの画像編集がある場合は、伸張後の画像データを一旦、ページメモリ16cに格納して画像編集が行なわれ、その後、ページメモリ16cから第2のメモリ/圧縮伸張コントローラ18を経てプリンタ系画像処理回路21へ画像データが出力される(P5b)。プリンタ系画像処理回路21は第2のメモリ/圧縮伸張コントローラ18からの画像データをセレクタ21aで選択して入力する。該画像データは印刷出力用の画像処理を施された後プリンタ部22で印刷出力される。   When there is image editing such as rotation or overlay, the decompressed image data is temporarily stored in the page memory 16c and image editing is performed, and then the page memory 16c passes through the second memory / compression / decompression controller 18. Image data is output to the printer image processing circuit 21 (P5b). The printer image processing circuit 21 selects and inputs the image data from the second memory / compression / decompression controller 18 with the selector 21a. The image data is subjected to image processing for print output and then printed out by the printer unit 22.

なお、第1画像メモリ15または第2画像メモリ16とハードディスク装置33との間(図2のP2a、P2b、P3a、P3b)のデータ転送速度は、第1のメモリ/圧縮伸張コントローラ17や第2のメモリ/圧縮伸張コントローラ18の処理速度、システムバス31の速度、HDD−I/F34の速度(SATA…Serial ATA(Advanced Technology Attachment))やハードディスク装置33の内部転送速度などのうち、ボトルネックとなる部分によって制限される。   Note that the data transfer rate between the first image memory 15 or the second image memory 16 and the hard disk device 33 (P2a, P2b, P3a, P3b in FIG. 2) depends on the first memory / compression / decompression controller 17 and the second Among the processing speed of the memory / compression / decompression controller 18, the speed of the system bus 31, the speed of the HDD-I / F 34 (SATA: Serial ATA (Advanced Technology Attachment)), the internal transfer speed of the hard disk device 33, etc. Is limited by

次に、閾値Yおよび指定の圧縮率Xの設定方法について説明する。   Next, a method for setting the threshold value Y and the specified compression rate X will be described.

閾値Yおよび指定の圧縮率Xは、Y=X≦(A/2)/(B×C/60) …(1)式により簡易的に求める。ここで、Aは第1画像メモリ15または第2画像メモリ16と圧縮された画像データの格納用にハードディスク装置33内に予め確保した領域との間で1秒間に転送可能なデータ量(データ転送速度)の最悪値であり、Bはプリンタ部22で印刷出力する1ページ分の画像データのデータ量であり、Cはプリンタ部22による1分間当たりの印刷枚数である。なお、最悪値のデータ転送速度Aを2分の1にするのは、印刷出力中に、第1画像メモリ15または第2画像メモリ16からハードディスク装置33への転送(書込)とその逆方向の転送(読み出し)とが行なわれることによる。   The threshold value Y and the designated compression ratio X are simply obtained from the equation Y = X ≦ (A / 2) / (B × C / 60) (1). Here, A is the amount of data that can be transferred per second (data transfer) between the first image memory 15 or the second image memory 16 and an area reserved in advance in the hard disk device 33 for storing compressed image data. (Speed) is the worst value, B is the data amount of image data for one page printed out by the printer unit 22, and C is the number of prints per minute by the printer unit 22. Note that the worst-case data transfer speed A is halved during printing output from the first image memory 15 or the second image memory 16 to the hard disk device 33 and vice versa. Is transferred (read).

ところで、第1画像メモリ15または第2画像メモリ16とハードディスク装置33との間のデータ転送速度は、ハードディスク装置33内でのアクセス位置がハードディスクの内周部か外周部かによって相違する。図3は、ハードディスク装置へシーケンシャルライトするときのデータ転送速度とハードディスク上でのアクセス位置との関係の一例を示している。図中、横軸はLBA(Logical Block Addressing)を示し、LBAの値が小さいほどアクセス位置はディスクの外周側に存在する。図3から分かるように、ディスクの外周側ほどデータ転送速度が速く、内周に近づくほどデータ転送速度は低下する。   Incidentally, the data transfer speed between the first image memory 15 or the second image memory 16 and the hard disk device 33 differs depending on whether the access position in the hard disk device 33 is the inner peripheral portion or the outer peripheral portion of the hard disk. FIG. 3 shows an example of the relationship between the data transfer rate and the access position on the hard disk when sequential writing to the hard disk device is performed. In the figure, the horizontal axis indicates LBA (Logical Block Addressing), and the smaller the LBA value, the more the access position is located on the outer periphery side of the disk. As can be seen from FIG. 3, the data transfer rate is faster toward the outer periphery of the disk, and the data transfer rate decreases as it approaches the inner periphery.

ハードディスク装置33をシステム側のデータを格納するシステム領域と圧縮された画像データを格納するための圧縮画像領域とにパーティション分けして使用する場合、圧縮画像領域の確保された位置がディスクの外周部に近いほど、上記(1)式におけるデータ転送速度Aは大きくなる。最悪値は、圧縮画像領域として確保したパーティションの中で最内周に位置するセクタへのデータ転送速度を基準に定める。たとえば、図3の示す特性のハードディスク装置において、LBA「1」から「36×1000000」までの領域Eを圧縮画像領域として確保した場合、同図のグラフより、データ転送速度の最悪値は50MB/s(MegaByte/Sec)程度になる。   When the hard disk device 33 is partitioned into a system area for storing data on the system side and a compressed image area for storing compressed image data, the position where the compressed image area is secured is the outer peripheral portion of the disk. The closer to, the higher the data transfer rate A in the above equation (1). The worst value is determined based on the data transfer rate to the sector located at the innermost periphery in the partition secured as the compressed image area. For example, in the hard disk device having the characteristics shown in FIG. 3, when the area E from LBA “1” to “36 × 1000000” is secured as the compressed image area, the worst value of the data transfer rate is 50 MB / It becomes about s (MegaByte / Sec).

圧縮画像領域がハードディスク装置33の最外周セクタを含むパーティションに確保されている場合、(1)式において、
A=ハードディスク装置33の最外周セクタのあるパーティションへのシーケンシャルリード/ライト速度の最悪値[MB/s]、
B=非圧縮時の画像データのデータ量[MB]=主走査方向画素数×副走査方向画素数×1画素あたりのビット数、
C=画像処理装置10の最大出力速度[コピー枚数/分]、
として閾値Yや指定の圧縮率Xを設定することができる。なお、1画素あたりのビット数は階調数に依存し、たとえば、256階調であれば8ビットになる。実際の閾値Yおよび指定の圧縮率Xは、(A/2)/(B×C/60)の値よりもある程度のマージン分だけ小さい値に設定する。
When the compressed image area is secured in the partition including the outermost peripheral sector of the hard disk device 33,
A = the worst value [MB / s] of the sequential read / write speed to the partition having the outermost peripheral sector of the hard disk device 33,
B = data amount of uncompressed image data [MB] = number of pixels in the main scanning direction × number of pixels in the sub-scanning direction × number of bits per pixel,
C = maximum output speed of the image processing apparatus 10 [number of copies / minute],
Threshold value Y and designated compression rate X can be set as The number of bits per pixel depends on the number of gradations. For example, 256 bits is 8 bits. The actual threshold value Y and the specified compression rate X are set to values that are smaller by a certain margin than the value of (A / 2) / (B × C / 60).

より具体的な例を説明する。   A more specific example will be described.

画像処理装置10が、1200dpi(Dot Per Inch)の解像度で1画素1ビットのA4サイズの画像を1分間に120枚出力する場合において、ハードディスク装置33の最外周セクタのパーティションを圧縮画像領域として予め確保し、該領域のシーケンシャルリード/ライト速度の最悪値が30MB/sであったものとする。   When the image processing apparatus 10 outputs 120 A4-size images of 1 pixel per bit with a resolution of 1200 dpi (Dot Per Inch) per minute, the partition of the outermost peripheral sector of the hard disk device 33 is set in advance as a compressed image area. It is assumed that the worst value of the sequential read / write speed in this area is 30 MB / s.

このとき、(1)式における、Aは30[MB/s]、Bは18[MB]、Cは120[コピー枚数/分]になり、閾値Y、指定の圧縮率Xを(1)式で取り得る範囲の最大値とすると、閾値Y=指定の圧縮率X=(30/2)/(18×120/60)=約0.417 となる。第1圧縮伸張器13により可逆圧縮方式で圧縮した場合の圧縮率が閾値Y(41.7%)を超える画像の場合は、第1画像メモリ15とハードディスク装置33内に確保した圧縮画像領域との間のデータ転送速度が、印刷出力に間に合わなくなり、生産性が低下する恐れがある。そこで、第2圧縮伸張器14による非可逆圧縮方式で圧縮する際の指定の圧縮率Xを41.7%以下に設定しておけば、第1圧縮伸張器13での圧縮率が閾値Y(41.7%)を超えた場合に、第2圧縮伸張器14で圧縮した画像データを採用してハードディスク装置33に転送し格納することで、転送に起因した生産性の低下を回避することができる。   At this time, in the equation (1), A is 30 [MB / s], B is 18 [MB], C is 120 [number of copies / minute], and the threshold Y and the specified compression rate X are expressed by the equation (1). Assuming that the maximum value of the range that can be taken in is, threshold Y = specified compression ratio X = (30/2) / (18 × 120/60) = about 0.417. In the case of an image in which the compression ratio when the first compression / decompression unit 13 compresses by the lossless compression method exceeds the threshold Y (41.7%), the compressed image area secured in the first image memory 15 and the hard disk device 33, and The data transfer speed during the period may not be in time for print output, and productivity may be reduced. Therefore, if the designated compression rate X for compression by the irreversible compression method by the second compression / decompression unit 14 is set to 41.7% or less, the compression rate in the first compression / decompression unit 13 becomes the threshold value Y ( 41.7%), the image data compressed by the second compressor / decompressor 14 is adopted and transferred to the hard disk device 33 to be stored, thereby avoiding a decrease in productivity due to the transfer. it can.

実際の閾値Yや指定の圧縮率Xの設定は、ハードディスク装置33の回転待ち時間やシステムバス31の使用に関するプライオリティやオーバーヘッド分などを考慮してある程度のマージンを確保する事が望ましい。たとえば、マージンを1割とる場合、マージンなしの41.7%に対して、閾値Yおよび指定の圧縮率Xを37.5%にすればよい。また、閾値Yと指定の圧縮率Xは同じ値に設定する必要はなく、マージンを持たせるために非可逆圧縮方式の圧縮率Xは、Y≧Xとすることが好ましい。   It is desirable to secure a certain margin for setting the actual threshold value Y and the specified compression ratio X in consideration of the rotation waiting time of the hard disk device 33, the priority and overhead associated with the use of the system bus 31, and the like. For example, when the margin is 10%, the threshold Y and the specified compression rate X may be 37.5% with respect to 41.7% without the margin. Further, the threshold Y and the designated compression rate X do not need to be set to the same value, and the compression rate X of the lossy compression method is preferably Y ≧ X in order to have a margin.

上記のように本実施の形態に係わる画像処理装置10では、閾値Y、指定の圧縮率Xを設定しておき、第1圧縮伸張器13による可逆圧縮方式での圧縮率が閾値Y以下の場合は可逆圧縮方式で圧縮された画像データをハードディスク装置に転送して記憶し、可逆圧縮方式での圧縮率が閾値Yを超える場合、第2圧縮伸張器14により閾値Y以下の圧縮率Xで非可逆圧縮された画像データをハードディスク装置に転送して記憶する。これにより、画像劣化を避けるために可能な限り可逆圧縮方式で圧縮された画像データを採用しながら、可逆圧縮方式の短所である写真や網点などが多く含まれるような画像が入力されて圧縮率が悪化した場合には非可逆圧縮方式で圧縮した画像データを採用することでハードディスク装置33への転送遅れによる画像処理装置10の生産性低下を避けることができる。   As described above, in the image processing apparatus 10 according to the present embodiment, the threshold Y and the designated compression rate X are set, and the compression rate in the lossless compression method by the first compression / decompression unit 13 is equal to or less than the threshold Y. The image data compressed by the lossless compression method is transferred to the hard disk device and stored, and when the compression rate by the lossless compression method exceeds the threshold value Y, the second compression / decompression unit 14 uses the compression rate X equal to or lower than the threshold value Y. The reversibly compressed image data is transferred to the hard disk device and stored. In this way, image data that is compressed using the lossless compression method as much as possible to avoid image degradation, and is compressed by inputting images that contain many of the disadvantages of the lossless compression method, such as photographs and halftone dots. When the rate is deteriorated, it is possible to avoid a decrease in productivity of the image processing apparatus 10 due to a delay in transfer to the hard disk device 33 by adopting image data compressed by the lossy compression method.

上記の例では、第1圧縮伸張器13によって第1の圧縮方式(可逆圧縮方式)で圧縮された画像データを格納するためにハードディスク装置33に予め確保する圧縮画像領域(第1領域)と、第2圧縮伸張器14によって第2の圧縮方式(非可逆圧縮方式)で圧縮された画像データを格納するためにハードディスク装置33に予め確保する圧縮画像領域(第2領域)とを区別せず、これらを同一領域としたが、第1領域と第2領域とを別々の領域(パーティション)に設定してもよい。   In the above example, a compressed image area (first area) secured in advance in the hard disk device 33 for storing image data compressed by the first compression / decompression unit 13 using the first compression method (reversible compression method); Without distinguishing from the compressed image area (second area) reserved in advance in the hard disk device 33 in order to store the image data compressed by the second compression / decompression device 14 by the second compression method (lossy compression method), Although these are the same area, the first area and the second area may be set as separate areas (partitions).

この場合、第1領域として確保したパーティションのシーケンシャルリード/ライト速度Jを測定し、この値Jを(1)式のAに代入し、閾値Yは、Y≦(J/2)/(B×C/60)により求める。また、第2領域として確保したパーティションのシーケンシャルリード/ライト速度Kを測定し、この値Kを(1)式のAに代入し、指定の圧縮率Xは、X≦(K/2)/(B×C/60)により求める。   In this case, the sequential read / write speed J of the partition secured as the first area is measured, and this value J is substituted into A in the equation (1), and the threshold Y is Y ≦ (J / 2) / (B × C / 60). Further, the sequential read / write speed K of the partition secured as the second area is measured, and this value K is substituted into A in the equation (1), and the designated compression ratio X is X ≦ (K / 2) / ( B × C / 60).

このように第1領域と第2領域を別々の領域に確保し、それぞれの領域におけるデータ転送速度の最悪値に基づいて閾値Yと指定の圧縮率Xとを個々に設定することで、複数のパーティション構造を持つハードディスク装置の採用やハードディスク装置の複数化などにより、圧縮された画像データを圧縮方式毎に別のパーティションに保存する要請が生じた場合にも対応することができる。   Thus, by securing the first area and the second area in separate areas and individually setting the threshold value Y and the designated compression ratio X based on the worst value of the data transfer speed in each area, a plurality of It is possible to cope with a case where a request for storing compressed image data in a different partition is made for each compression method by adopting a hard disk device having a partition structure or by using a plurality of hard disk devices.

第1領域と第2領域とを別々の領域(パーティション)に設定した場合の具体例を示す。画像処理装置10が、1200dpiの解像度で1画素1ビットのA4サイズの画像を1分間に120枚出力する場合において、最悪値で30MB/sのデータ転送速度Jが確保できるパーティションを可逆圧縮方式で圧縮された画像データを格納するための第1領域に確保し、最悪値で20MB/sのデータ転送速度Kが確保できるパーティションを非可逆圧縮方式で圧縮された画像データを格納するための第2領域に確保する。この場合、閾値Y=(J/2)/(B×C/60)=(30/2)/(18×120/60)=約0.417、指定の圧縮率X=(K/2)/(B×C/60)=(20/2)/(18×120/60)=約0.278になる。   A specific example when the first area and the second area are set as separate areas (partitions) is shown. When the image processing apparatus 10 outputs 120 A4-size images of 1 pixel and 1 bit per minute at a resolution of 1200 dpi, a partition that can secure a data transfer speed J of 30 MB / s at the worst value is obtained by the lossless compression method. A second area for storing image data compressed in an irreversible compression scheme in a first area for storing compressed image data and a partition that can secure a data transfer rate K of 20 MB / s at the worst value. Secure in the area. In this case, the threshold Y = (J / 2) / (B × C / 60) = (30/2) / (18 × 120/60) = about 0.417, the designated compression ratio X = (K / 2) / (B × C / 60) = (20/2) / (18 × 120/60) = about 0.278.

したがって、第1圧縮伸張器13による可逆圧縮方式での画像データの圧縮率が41.7%(閾値Y)以下の場合は可逆圧縮された画像データをハードディスク装置33へ転送し、第1圧縮伸張器13による可逆圧縮方式での画像データの圧縮率が41.7%を超えた場合は第2圧縮伸張器14により27.8%以下の圧縮率Xで非可逆圧縮された画像データをハードディスク装置33へ転送することなる。   Therefore, when the compression rate of the image data in the lossless compression method by the first compression / decompression unit 13 is 41.7% (threshold Y) or less, the losslessly compressed image data is transferred to the hard disk device 33, and the first compression / decompression is performed. When the compression rate of the image data in the lossless compression method by the device 13 exceeds 41.7%, the hard disk device stores the image data irreversibly compressed by the second compression / decompression device 14 with the compression rate X of 27.8% or less. 33.

また、この場合、確保した第1領域、第2領域それぞれにおける最悪値のデータ転送速度に応じて閾値Yおよび指定の圧縮率Xが個別に定まるので、必ずしもY≧Xという関係にはならない。   Further, in this case, the threshold Y and the designated compression rate X are individually determined in accordance with the worst data transfer speed in each of the secured first area and second area, so that the relationship of Y ≧ X does not necessarily exist.

逆に、非可逆圧縮画像の画像をなるべく高画質にしたい場合には、指定の圧縮率X≧閾値Yの関係となってもかまわない。たとえば、上記の第1領域、第2領域を確保する位置を入れ替え、最悪値で30MB/sのデータ転送速度が確保できるパーティションを非可逆圧縮方式で圧縮された画像データを格納するための第2領域に確保し、最悪値で20MB/sのデータ転送速度が確保できるパーティションを可逆圧縮方式で圧縮された画像データを格納するための第1領域に確保すると、閾値Y=約0.278、指定の圧縮率X=約0.417になる。   Conversely, when it is desired to make the lossy-compressed image as high as possible, the specified compression ratio X ≧ threshold Y may be satisfied. For example, the second area for storing the image data compressed by the irreversible compression method in the partition that can secure the data transfer rate of 30 MB / s at the worst value by switching the positions for securing the first area and the second area. When a partition that can be secured in the area and can secure a data transfer rate of 20 MB / s at the worst value is secured in the first area for storing image data compressed by the lossless compression method, the threshold value Y = 0.278 is designated. The compression ratio X is about 0.417.

次に、第2の実施の形態を説明する。   Next, a second embodiment will be described.

第1の実施の形態では、圧縮率と閾値とを比較したが、第2の実施の形態では圧縮後画像データのサイズ(データ量)と閾値とを比較するようになっている、他の点は第1の実施の形態と同様である。   In the first embodiment, the compression rate is compared with the threshold value, but in the second embodiment, the size (data amount) of the compressed image data is compared with the threshold value. Is the same as in the first embodiment.

詳細には、第1圧縮伸張器13および第2圧縮伸張器14で1ページ分の圧縮動作が完了すると、CPU32は、第1圧縮伸張器13で圧縮された画像データ(圧縮後の1ページ分の画像データ)のデータ量(圧縮後画像データのサイズ)Vを第1のメモリ/圧縮伸張コントローラ17から取得し、該データ量Vと予め定めた閾値Y´とを比較する。そして、圧縮後画像データのサイズVが閾値Y´より小さい場合は、第1圧縮伸張器13により可逆圧縮方式で圧縮された画像データを第1画像メモリ15の圧縮中継領域15aからハードディスク装置33の指定領域に転送して記憶させる。   Specifically, when the compression operation for one page is completed by the first compression / decompression unit 13 and the second compression / decompression unit 14, the CPU 32 displays the image data (one page after compression) compressed by the first compression / decompression unit 13. Data amount (compressed image data size) V is obtained from the first memory / compression / decompression controller 17, and the data amount V is compared with a predetermined threshold Y ′. If the size V of the compressed image data is smaller than the threshold Y ′, the image data compressed by the first compression / decompression unit 13 by the lossless compression method is transferred from the compression relay area 15a of the first image memory 15 to the hard disk device 33. Transfer it to the specified area and store it.

一方、第1圧縮伸張器13による圧縮後画像データのサイズVが閾値Y´より大きい場合は、第2圧縮伸張器14により圧縮された画像データを第2画像メモリ16の圧縮中継領域16aからハードディスク装置33の指定領域に転送して記憶させる。   On the other hand, when the size V of the image data compressed by the first compression / decompression unit 13 is larger than the threshold Y ′, the image data compressed by the second compression / decompression unit 14 is transferred from the compression relay area 16a of the second image memory 16 to the hard disk. The data is transferred to the designated area of the device 33 and stored.

この際、生産性を落さないための画像サイズの閾値Y´は、
Y´=(A/2)×(C/60) …(2)式
により定める。ここで、(1)式の場合と同様に、Aはデータ転送速度の最悪値、Cはプリンタ部22による1分間当たりの印刷枚数である。
At this time, the threshold Y ′ of the image size for not reducing productivity is
Y ′ = (A / 2) × (C / 60): determined by the formula (2) Here, as in the case of equation (1), A is the worst value of the data transfer speed, and C is the number of printed sheets per minute by the printer unit 22.

具体例を示すと、Aが50MB/S(MegaByte/Sec)、Cが120ppm(Paper/minute) の場合、生産性を落さないための画像データサイズの閾値Y´は、Y´=(50/2)/(120/60)=12.5MB になる。また、コピー出力枚数(ppm)が少ない低速の機械の場合、たとえば、Aが50MB/S、Cが30ppmの場合には、生産性を落さないための画像データサイズの閾値Y´は、Y´=(50/2)/(30/60)=50MB になる。   As a specific example, when A is 50 MB / S (MegaByte / Sec) and C is 120 ppm (Paper / minute), the threshold Y ′ of the image data size for preventing the productivity from dropping is Y ′ = (50 /2)/(120/60)=12.5 MB. In the case of a low-speed machine with a small number of copy output sheets (ppm), for example, when A is 50 MB / S and C is 30 ppm, the threshold Y ′ of the image data size for preventing the productivity from dropping is Y '= (50/2) / (30/60) = 50 MB.

このように、圧縮後画像データサイズVと閾値Y´との比較を行なう場合にも、圧縮率を比較する第1の実施の形態の場合と同様の効果を得ることができる。また、データサイズから圧縮率を求める演算が不要になり、その分の処理負担が軽減される。   As described above, even when comparing the post-compression image data size V with the threshold value Y ′, the same effect as in the first embodiment for comparing the compression rates can be obtained. Further, the calculation for obtaining the compression rate from the data size becomes unnecessary, and the processing load corresponding to that is reduced.

以上、本発明の実施の形態を図面によって説明してきたが、具体的な構成は実施の形態に示したものに限られるものではなく、本発明の要旨を逸脱しない範囲における変更や追加があっても本発明に含まれる。   The embodiment of the present invention has been described with reference to the drawings. However, the specific configuration is not limited to that shown in the embodiment, and there are changes and additions within the scope of the present invention. Are also included in the present invention.

たとえば、実施の形態では制御手段としての機能をCPU32が果たすように構成したが、第1のメモリ/圧縮伸張コントローラ17および第2のメモリ/圧縮伸張コントローラ18が制御手段の一部の機能もしくは全部の機能を果たすように構成されてもよい。   For example, in the embodiment, the CPU 32 is configured to perform the function as the control unit. However, the first memory / compression / decompression controller 17 and the second memory / compression / decompression controller 18 may be part or all of the functions of the control unit. It may be configured to perform the following functions.

また、実施の形態では第1画像メモリ15と第2画像メモリ16とを個別のメモリとしたが、1つのメモリ素子で兼用されてもよい。転送手段の機能は第1のメモリ/圧縮伸張コントローラ17、第2のメモリ/圧縮伸張コントローラ18に加えてHDD−I/F34が一部を担うように構成されてもよい。たとえば、HDD−I/F34と第1のメモリ/圧縮伸張コントローラ17または第2のメモリ/圧縮伸張コントローラ18との間のデータ転送をHDD−I/F34が行ない、第1のメモリ/圧縮伸張コントローラ17および第2のメモリ/圧縮伸張コントローラ18は自身と第1画像メモリ15または第2画像メモリ16との間のデータ転送を担うように構成されてもよい。   In the embodiment, the first image memory 15 and the second image memory 16 are separate memories, but a single memory element may be used. In addition to the first memory / compression / decompression controller 17 and the second memory / compression / decompression controller 18, the HDD-I / F 34 may be configured so that the transfer means functions partially. For example, the HDD-I / F 34 performs data transfer between the HDD-I / F 34 and the first memory / compression / decompression controller 17 or the second memory / compression / decompression controller 18, and the first memory / compression / decompression controller 17 and the second memory / compression / decompression controller 18 may be configured to perform data transfer between itself and the first image memory 15 or the second image memory 16.

このほか、ハードディスク装置33はシステム領域と圧縮画像領域とを区分けするようにパーティションを設定して使用することが好ましいが、パーティションを設定しない状態でハードディスク装置33を使用してもかまわない。また、第2記憶手段はハードディスク装置に限定されるものではない。第2記憶手段は大容量の記憶装置が好ましい。   In addition, the hard disk device 33 is preferably used by setting a partition so as to separate the system area and the compressed image area, but the hard disk device 33 may be used without setting the partition. Further, the second storage means is not limited to the hard disk device. The second storage means is preferably a large capacity storage device.

実施の形態では第1の圧縮方式を可逆圧縮方式、第2の圧縮方式を非可逆圧縮方式としたが、両者とも非可逆圧縮方式としてもよい。たとえば、圧縮率を指定しない非可逆圧縮方式を第1の圧縮方式にし、圧縮率を指定した非可逆圧縮方式を第2の圧縮方式としてもよい。   In the embodiment, the first compression method is the reversible compression method and the second compression method is the irreversible compression method, but both may be irreversible compression methods. For example, the lossy compression method that does not specify the compression rate may be the first compression method, and the lossy compression method that specifies the compression rate may be the second compression method.

また、実施の形態では、コピー動作など画像データを入力しながら印刷出力する動作を例に説明したが、画像処理装置10による動作はこれに限定されず、画像を入力し圧縮してハードディスク装置33に転送して保存する入力動作と、保存されている圧縮された画像データをハードディスク装置33から読み出し、伸張して印刷出力する出力動作とは別々のタイミングで行なわれてもよい。この場合、閾値Yや指定の圧縮率Xの値は、入力動作もしくは出力動作の一方を対象にし、Y=X≦A/(B×C/60)に基づいて設定してもよい。   Further, in the embodiment, the operation of printing out while inputting image data such as a copy operation has been described as an example. However, the operation by the image processing apparatus 10 is not limited to this, and the hard disk device 33 is input and compressed to compress the image. The input operation for transferring to and storing the image data and the output operation for reading the compressed image data stored from the hard disk device 33, decompressing it, and printing it out may be performed at different timings. In this case, the threshold Y and the value of the specified compression rate X may be set based on Y = X ≦ A / (B × C / 60) for one of the input operation and the output operation.

このほか、実施の形態では、1ページ単位に実際の圧縮率と閾値Yとを比較するようにしたが、複数ページ単位に圧縮率を閾値と比較して圧縮方式を選択してもよいし、逆に1ページを複数のブロックに分割し、ブロック単位に圧縮方式の選択を行なうように構成されてもよい。圧縮後画像データのサイズと閾値Y´とを比較する場合も同様に、複数ページ単位あるいはブロック単位に閾値と比較して圧縮方式の選択を行なうように構成されてもよい。   In addition, in the embodiment, the actual compression rate is compared with the threshold Y for each page, but the compression method may be selected by comparing the compression rate with the threshold for a plurality of pages. Conversely, one page may be divided into a plurality of blocks, and the compression method may be selected in units of blocks. Similarly, when comparing the size of the image data after compression and the threshold value Y ′, the compression method may be selected by comparing the threshold value with a plurality of pages or blocks.

本発明の実施の形態に係わる画像処理装置10の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus 10 according to an embodiment of the present invention. 本発明の実施の形態に係わる画像処理装置が行なう画像データの入力から出力に至る動作の中で、圧縮・伸張に関連する部分のデータフローを示す説明図である。It is explanatory drawing which shows the data flow of the part relevant to compression and expansion | extension in the operation | movement from the input of an image data to an output which the image processing apparatus concerning embodiment of this invention performs. ハードディスク装置へシーケンシャルライトするときのデータ転送速度とハードディスク上でのアクセス位置(LBA)との関係の一例を示す説明図である。It is explanatory drawing which shows an example of the relationship between the data transfer speed at the time of sequential writing to a hard-disk apparatus, and the access position (LBA) on a hard disk. 圧縮率の高低と圧縮率の数値との関係を示す説明図である。It is explanatory drawing which shows the relationship between the level of a compression rate, and the numerical value of a compression rate.

符号の説明Explanation of symbols

2…LAN
10…画像処理装置
11…スキャナ部
11a…ラインイメージセンサ
11b…A/D変換器
12…スキャナ系画像処理回路
13…第1圧縮伸張器
14…第2圧縮伸張器
15…第1画像メモリ
15a…圧縮中継領域
15b…再生中継領域
15c…ページメモリ
16…第2画像メモリ
16a…圧縮中継領域
16b…再生中継領域
16c…ページメモリ
17…第1のメモリ/圧縮伸張コントローラ
18…第2のメモリ/圧縮伸張コントローラ
21…プリンタ系画像処理回路
21a…セレクタ
22…プリンタ部
31…システムバス
32…CPU
33…ハードディスク装置
34…HDD−I/F
35…NIC/プリンタコントローラ
36…ホストバス
37…メモリ
2 ... LAN
DESCRIPTION OF SYMBOLS 10 ... Image processing apparatus 11 ... Scanner part 11a ... Line image sensor 11b ... A / D converter 12 ... Scanner system image processing circuit 13 ... 1st compression / decompression device 14 ... 2nd compression / decompression device 15 ... 1st image memory 15a ... Compression relay area 15b ... Reproduction relay area 15c ... Page memory 16 ... Second image memory 16a ... Compression relay area 16b ... Reproduction relay area 16c ... Page memory 17 ... First memory / compression decompression controller 18 ... Second memory / compression Decompression controller 21 ... Printer image processing circuit 21a ... Selector 22 ... Printer unit 31 ... System bus 32 ... CPU
33 ... Hard disk device 34 ... HDD-I / F
35 ... NIC / printer controller 36 ... Host bus 37 ... Memory

Claims (10)

画像データを入力する入力手段と、
第1の圧縮方式で画像データの圧縮および伸張を行なう第1圧縮伸張器と、
第2の圧縮方式で画像データの圧縮および伸張を行なう第2圧縮伸張器と、
前記第1圧縮伸張器または前記第2圧縮伸張器で圧縮もしくは伸張された画像データを一時的に記憶するための第1記憶手段と、
第2記憶手段と、
前記第1記憶手段と前記第2記憶手段との間でデータ転送する転送手段と、
前記第1圧縮伸張器または前記第2圧縮伸張器で伸張された画像データを印刷出力する出力手段と、
制御手段と
を備え
前記制御手段は、前記入力手段から入力された画像データを前記第1圧縮伸張器と前記第2圧縮伸張器とで同時並行に圧縮させた後、前記第1圧縮伸張器で圧縮された画像データの圧縮率と予め定めた閾値とを比較し、前記圧縮率が前記閾値以下の場合は、前記第1圧縮伸張器で圧縮された画像データを前記転送手段で前記第1記憶手段から前記第2記憶手段に転送して前記第2記憶手段に記憶させ、前記圧縮率が前記閾値より大きい場合は前記第2圧縮伸張器で圧縮された画像データを前記転送手段で前記第1記憶手段から前記第2記憶手段に転送して前記第2記憶手段に記憶させる
ことを特徴とする画像処理装置。
Input means for inputting image data;
A first compression / decompression unit that compresses and decompresses image data using a first compression method;
A second compression / decompression unit that compresses and decompresses image data using a second compression method;
First storage means for temporarily storing image data compressed or expanded by the first compression / decompression unit or the second compression / decompression unit;
A second storage means;
Transfer means for transferring data between the first storage means and the second storage means;
Output means for printing out the image data expanded by the first compression / decompression unit or the second compression / decompression unit;
And the control means compresses the image data input from the input means in parallel by the first compression / decompression unit and the second compression / decompression unit, and then uses the first compression / decompression unit. The compression rate of the compressed image data is compared with a predetermined threshold value. When the compression rate is equal to or lower than the threshold value, the image data compressed by the first compression / decompression unit is stored in the first storage by the transfer means. When the compression ratio is larger than the threshold value, the image data compressed by the second compression / decompression unit is transferred by the transfer means to the first storage means and transferred to the second storage means. An image processing apparatus, wherein the image processing apparatus transfers the data from the storage means to the second storage means and stores it in the second storage means.
画像データを入力する入力手段と、
第1の圧縮方式で画像データの圧縮および伸張を行なう第1圧縮伸張器と、
第2の圧縮方式で画像データの圧縮および伸張を行なう第2圧縮伸張器と、
前記第1圧縮伸張器または前記第2圧縮伸張器で圧縮もしくは伸張された画像データを一時的に記憶するための第1記憶手段と、
第2記憶手段と、
前記第1記憶手段と前記第2記憶手段との間でデータ転送する転送手段と、
前記第1圧縮伸張器または前記第2圧縮伸張器で伸張された画像データを印刷出力する出力手段と、
制御手段と
を備え
前記制御手段は、前記入力手段から入力された画像データを前記第1圧縮伸張器と前記第2圧縮伸張器とで同時並行に圧縮させた後、前記第1圧縮伸張器で圧縮された画像データと予め定めた閾値とを比較し、前記圧縮後画像データのサイズが前記閾値よりも小さい場合は前記第1圧縮伸張器で圧縮された画像データを前記転送手段で前記第1記憶手段から前記第2記憶手段に転送して前記第2記憶手段に記憶させ、前記圧縮後画像データのサイズが前記閾値より大きい場合は前記第2圧縮伸張器で圧縮された画像データを前記転送手段で前記第1記憶手段から前記第2記憶手段に転送して前記第2記憶手段に記憶させる
ことを特徴とする画像処理装置。
Input means for inputting image data;
A first compression / decompression unit that compresses and decompresses image data using a first compression method;
A second compression / decompression unit that compresses and decompresses image data using a second compression method;
First storage means for temporarily storing image data compressed or expanded by the first compression / decompression unit or the second compression / decompression unit;
A second storage means;
Transfer means for transferring data between the first storage means and the second storage means;
Output means for printing out the image data expanded by the first compression / decompression unit or the second compression / decompression unit;
And the control means compresses the image data input from the input means in parallel by the first compression / decompression unit and the second compression / decompression unit, and then uses the first compression / decompression unit. The compressed image data is compared with a predetermined threshold value. If the size of the compressed image data is smaller than the threshold value, the image data compressed by the first compression / decompression unit is transferred to the first transfer means by the transfer means. When the size of the compressed image data is larger than the threshold value, the image data compressed by the second compression / decompression device is transferred from the storage means to the second storage means and stored in the second storage means. An image processing apparatus, wherein the first storage unit transfers the data to the second storage unit and stores the second storage unit in the second storage unit.
前記第1の圧縮方式は、可逆圧縮方式であり、
前記第2の圧縮方式は、非可逆圧縮方式である
ことを特徴とする請求項1または2に記載の画像処理装置。
The first compression method is a lossless compression method,
The image processing apparatus according to claim 1, wherein the second compression method is an irreversible compression method.
前記第1の圧縮方式で圧縮された画像データは、前記第2記憶手段に予め確保した第1領域に転送して記憶し、
前記閾値は、前記第1記憶手段と前記第1領域との間で前記転送手段が転送可能な単位時間あたりのデータ量の最悪値の2分の1を、前記出力手段で印刷出力する1ページ分の画像データのデータ量と前記出力手段による単位時間あたりの印刷枚数とを乗じた値で除した値以下に設定する
ことを特徴とする請求項1に記載の画像処理装置。
The image data compressed by the first compression method is transferred and stored in a first area secured in advance in the second storage means,
The threshold value is one page at which the output unit prints out half the worst value of the data amount per unit time that can be transferred by the transfer unit between the first storage unit and the first area. 2. The image processing apparatus according to claim 1, wherein the image processing apparatus is set to a value equal to or less than a value obtained by multiplying a data amount of image data by a value obtained by multiplying the number of prints per unit time by the output unit.
前記第2の圧縮方式は、指定の圧縮率で画像データを圧縮する非可逆圧縮方式である
ことを特徴とする請求項1乃至4のいずれかに記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the second compression method is a lossy compression method that compresses image data at a specified compression rate.
前記指定の圧縮率が、前記閾値より小さい
ことを特徴とする請求項5に記載の画像処理装置。
The image processing apparatus according to claim 5, wherein the designated compression rate is smaller than the threshold value.
前記第2の圧縮方式で圧縮された画像データは、前記第2記憶手段に予め確保した第2領域に転送して記憶し、
前記指定の圧縮率は、前記第1記憶手段と前記第2領域との間で前記転送手段が転送可能な単位時間あたりのデータ量の最悪値の2分の1を、前記出力手段で印刷出力する1ページ分の画像データのデータ量と前記出力手段による単位時間あたりの印刷枚数とを乗じた値で除した値以下に設定する
ことを特徴とする請求項5に記載の画像処理装置。
The image data compressed by the second compression method is transferred and stored in a second area secured in advance in the second storage means,
The specified compression rate is printed out by the output unit at one half of the worst value of the data amount per unit time that can be transferred by the transfer unit between the first storage unit and the second area. The image processing apparatus according to claim 5, wherein the image processing apparatus is set to a value equal to or less than a value obtained by multiplying a data amount of image data for one page to be multiplied by the number of printed sheets per unit time by the output unit.
前記第1の圧縮方式で圧縮された画像データと前記第2の圧縮方式で圧縮された画像データとを、前記第2記憶手段に予め確保した同一領域内に転送して記憶する
ことを特徴とする請求項1乃至7のいずれかに記載の画像処理装置。
The image data compressed by the first compression method and the image data compressed by the second compression method are transferred and stored in the same area secured in advance in the second storage means. The image processing apparatus according to claim 1.
前記第1の圧縮方式で圧縮されたデータは、前記第2記憶手段に予め確保した第1領域に転送して記憶し、前記第2の圧縮方式で圧縮された画像データは、前記第2記憶手段に予め確保した、前記第1領域と異なる第2領域に転送して記憶する
ことを特徴とする請求項1乃至7のいずれかに記載の画像処理装置。
The data compressed by the first compression method is transferred and stored in a first area secured in advance in the second storage means, and the image data compressed by the second compression method is stored in the second storage The image processing apparatus according to claim 1, wherein the image processing apparatus transfers and stores in a second area different from the first area, which is secured in advance by the means.
前記第1記憶手段は半導体メモリであり、前記第2記憶手段はハードディスク装置である
ことを特徴とする請求項1乃至9のいずれかに記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the first storage unit is a semiconductor memory, and the second storage unit is a hard disk device.
JP2006256221A 2006-09-21 2006-09-21 Image processing apparatus Withdrawn JP2008079036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006256221A JP2008079036A (en) 2006-09-21 2006-09-21 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006256221A JP2008079036A (en) 2006-09-21 2006-09-21 Image processing apparatus

Publications (1)

Publication Number Publication Date
JP2008079036A true JP2008079036A (en) 2008-04-03

Family

ID=39350623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006256221A Withdrawn JP2008079036A (en) 2006-09-21 2006-09-21 Image processing apparatus

Country Status (1)

Country Link
JP (1) JP2008079036A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11303882B2 (en) * 2014-12-15 2022-04-12 Samsung Electronics Co., Ltd Image data compression considering visual characteristic

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11303882B2 (en) * 2014-12-15 2022-04-12 Samsung Electronics Co., Ltd Image data compression considering visual characteristic

Similar Documents

Publication Publication Date Title
US8842325B2 (en) Image processing apparatus, control method thereof, and storage medium
US8059299B2 (en) Apparatus and method for controlling an image-data imput/output process performed by an image forming apparatus connected to an image data input unit and an image data output unit
US7813565B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP4027133B2 (en) Image processing device
JP4099725B2 (en) Image forming apparatus
JP2008079036A (en) Image processing apparatus
JP4450810B2 (en) Image processing apparatus and image forming apparatus
JP4223049B2 (en) Image processing apparatus and image forming apparatus
JP2011018157A (en) Image forming system and image forming method
JP4071809B2 (en) Image processing device
JP4901781B2 (en) Image forming apparatus
JP4024749B2 (en) Image processing apparatus and image transfer control method
JP2013016005A (en) Information processing device, control method therefor, and control program
JP3912372B2 (en) Color image processing device
JP5742320B2 (en) Image forming apparatus, image forming method, program, and recording medium
JPH11313182A (en) Image forming device
JP4225455B2 (en) Information processing apparatus and image forming apparatus
JP4499590B2 (en) Image reading device
JP3982982B2 (en) Image processing device
JP5132696B2 (en) MEMORY CONTROL DEVICE, IMAGE FORMING DEVICE, AND MEMORY CONTROL METHOD
JP2010147818A (en) Image processing apparatus and image processing module
JP2003072167A (en) Imaging apparatus
JP2007043586A (en) Image input preservation device
JP2000165576A (en) Digital image copying system
JP2006001195A (en) Image formation device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20091201