JP4650236B2 - Data compression apparatus, data compression method, and data compression program - Google Patents
Data compression apparatus, data compression method, and data compression program Download PDFInfo
- Publication number
- JP4650236B2 JP4650236B2 JP2005340975A JP2005340975A JP4650236B2 JP 4650236 B2 JP4650236 B2 JP 4650236B2 JP 2005340975 A JP2005340975 A JP 2005340975A JP 2005340975 A JP2005340975 A JP 2005340975A JP 4650236 B2 JP4650236 B2 JP 4650236B2
- Authority
- JP
- Japan
- Prior art keywords
- compression
- data
- image data
- expansion
- condition
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
本発明は、データ圧縮装置、データ圧縮方法、及びデータ圧縮プログラムに関し、特に、圧縮データの展開時の作業メモリ量を考慮して圧縮条件を設定することが可能なデータ圧縮装置、データ圧縮方法、及びデータ圧縮プログラムに関する。 The present invention relates to a data compression device, a data compression method, and a data compression program, and in particular, a data compression device, a data compression method, and a data compression device capable of setting a compression condition in consideration of a working memory amount when decompressing compressed data, And a data compression program.
近年、紙に印字されたドキュメントをスキャナ等で読み取って電子化する処理が活用されている。読み取った画像データはデータ量が大きいため、JPEGなどの画像圧縮方法で圧縮する必要がある。画像データをJPEGで圧縮する場合、写真画像では圧縮率や画質の点で良い結果を得ることができる。 In recent years, a process of reading and digitizing a document printed on paper with a scanner or the like has been utilized. Since the read image data has a large amount of data, it needs to be compressed by an image compression method such as JPEG. When the image data is compressed by JPEG, a good result can be obtained in terms of compression rate and image quality for a photographic image.
しかしながら、ビジネス文章などのドキュメントには、写真画像ばかりではなく、文字やグラフのような図形要素が含まれている。これらの図形要素を一律にJPEGなどの非可逆な圧縮方法で圧縮したのでは、例えば文字部分の画質が劣化して判読できなくなる、といった問題が発生する。 However, documents such as business sentences contain not only photographic images but also graphic elements such as letters and graphs. If these graphic elements are uniformly compressed by an irreversible compression method such as JPEG, there arises a problem that, for example, the image quality of the character portion deteriorates and cannot be read.
この問題を解決するために、特許文献1に開示された技術では、文字部と写真部を分離して、文字領域の位置やサイズや色を判別し、文字領域と、それ以外の領域で別々の圧縮を行う。このようにして処理した結果、文字部分では、文字用の所定の圧縮方法で圧縮された圧縮コード、文字の座標値、文字の色を出力し、文字以外の背景部分では、背景用の所定の圧縮方法で圧縮された1ページ全体のサイズの圧縮コードを出力する。 In order to solve this problem, in the technique disclosed in Patent Document 1, the character part and the photograph part are separated to determine the position, size, and color of the character area, and the character area and the other areas are separated. Perform compression. As a result of processing in this way, in the character portion, the compression code compressed by the character's predetermined compression method, the coordinate value of the character, and the color of the character are output. A compressed code having the size of the entire page compressed by the compression method is output.
この技術では、分離された文字部と背景部の各々について圧縮方式を任意に選択可能としたことで、全体として圧縮率が高く、また、高画質の画像を生成することができる。 In this technique, since the compression method can be arbitrarily selected for each of the separated character portion and background portion, the overall compression rate is high, and a high-quality image can be generated.
しかしながら、上記の技術では、選択された圧縮方式によっては、画像データの圧縮時または圧縮データの展開時に大きな作業メモリ量が必要となる場合がある。画像データの圧縮時(符号化時)にメモリ不足が発生した場合は、異なった圧縮方式や圧縮パラメータを選択することでエラーのリカバリー処理が可能となる。これに対し、圧縮データの受信側の処理環境は様々であり、圧縮データの展開時(復号化時)にメモリ不足が発生した場合には、圧縮データの展開、表示を行うことができない。 However, in the above technique, depending on the selected compression method, a large amount of working memory may be required when compressing image data or decompressing compressed data. If memory shortage occurs during image data compression (encoding), error recovery processing can be performed by selecting a different compression method or compression parameter. On the other hand, the processing environment on the receiving side of the compressed data is various, and if a memory shortage occurs at the time of decompressing (decoding) the compressed data, the decompressed and displayed compressed data cannot be performed.
例えば、2値画像の圧縮に、FAX−G4(MMR)圧縮に代わりITU−TのT.88勧告で示されるJBIG2圧縮を使用したとすると、文字などの記号が多く含まれるドキュメントでは、圧縮率は2倍から4倍になることが知られているが、復号化時には数倍から数十倍のメモリが必要となる場合がある。このため、例えば、圧縮データの受信者がPDA(Portable Data Assistance)を使用している場合には、PDAのRAM容量が小さいために、圧縮データを展開、表示できない問題が発生する。 For example, instead of FAX-G4 (MMR) compression for binary image compression, T.T. Assuming that JBIG2 compression shown in the 88 recommendation is used, it is known that the compression ratio is doubled to fourfold in a document containing many symbols such as characters. Double memory may be required. For this reason, for example, when a recipient of compressed data uses a PDA (Portable Data Assistance), a problem arises in that the compressed data cannot be expanded and displayed because the RAM capacity of the PDA is small.
本発明は、上記問題を解決すべく成されたものであり、本発明の目的は、圧縮データの展開時の作業メモリ量を考慮して圧縮条件を設定することで、メモリ不足により圧縮データの展開、表示を行うことができないという不都合を回避することができるデータ圧縮装置、データ圧縮方法、及びデータ圧縮プログラムを提供することにある。 The present invention has been made to solve the above problems, and an object of the present invention is to set compression conditions in consideration of the amount of working memory at the time of decompression of compressed data. An object of the present invention is to provide a data compression apparatus, a data compression method, and a data compression program that can avoid the inconvenience of being unable to perform expansion and display.
上記目的を達成するために本発明のデータ圧縮装置は、多層構造の画像データを入力するデータ入力手段と、前記画像データを圧縮するデータ圧縮手段と、前記画像データを圧縮する圧縮条件を複数生成する条件生成手段と、圧縮された前記多層構造の画像データを展開するデータ展開手段と、前記条件生成手段で生成された複数の圧縮条件の各々について、前記データ圧縮手段により圧縮された画像データを前記データ展開手段により展開し、展開時の作業メモリ量を計測して、圧縮された前記画像データを展開するときの展開時の作業メモリ量を取得し、取得された作業メモリ量と予め設定された許容メモリ量とを比較して、取得された作業メモリ量が許容メモリ量以下か否かを検査する展開用メモリ検査手段と、前記展開用メモリ検査手段での検査結果を参照し、複数生成された圧縮条件の中から展開時の作業メモリ量が許容メモリ量以下となる所定の圧縮条件を設定する条件設定手段と、前記条件設定手段により設定された圧縮条件で、前記データ圧縮手段により入力された前記画像データを圧縮して、圧縮された多層構造の画像データを出力するデータ出力手段と、を備えたことを特徴としている。 To achieve the above object, a data compression apparatus of the present invention generates a plurality of data input means for inputting multi-layered image data, data compression means for compressing the image data, and compression conditions for compressing the image data. a condition generating means for the data expansion means for expanding image data compressed the multilayer structure, for each of a plurality of compression conditions generated by the condition generation means, the image data compressed by said data compression means Expansion by the data expansion means, measure the amount of work memory at the time of expansion, acquire the amount of work memory at the time of expansion of the compressed image data, and is set in advance as the acquired amount of work memory An expansion memory inspection means for comparing the obtained allowable memory amount and inspecting whether or not the acquired working memory amount is less than or equal to the allowable memory amount, and the expansion memory inspection A condition setting means for setting a predetermined compression condition in which a working memory amount at the time of expansion is equal to or less than an allowable memory amount among a plurality of generated compression conditions with reference to the inspection result at the stage, and set by the condition setting means Data output means for compressing the image data inputted by the data compression means under the above-mentioned compression conditions and outputting compressed image data having a multilayer structure.
上記のデータ圧縮装置では、データ入力手段から多層構造の画像データが入力されると、条件生成手段が画像データを圧縮する圧縮条件を複数生成する。展開用メモリ検査手段は、条件生成手段で生成された複数の圧縮条件の各々について、圧縮された前記画像データを展開するときの展開時の作業メモリ量を取得し、取得された作業メモリ量と予め設定された許容メモリ量とを比較して、取得された作業メモリ量が許容メモリ量以下か否かを検査する。 In the above-described data compression apparatus, when multi-layered image data is input from the data input unit, the condition generation unit generates a plurality of compression conditions for compressing the image data. The expansion memory inspection unit acquires a working memory amount at the time of decompressing the compressed image data for each of the plurality of compression conditions generated by the condition generating unit, and the acquired working memory amount It is compared with a preset allowable memory amount to check whether the acquired working memory amount is less than or equal to the allowable memory amount.
条件設定手段は、展開用メモリ検査手段での検査結果を参照し、複数生成した圧縮条件の中から展開時の作業メモリ量が許容メモリ量以下となる所定の圧縮条件を設定し、データ出力手段は、条件設定手段により設定された圧縮条件で、データ圧縮手段により入力された画像データを圧縮して、圧縮された多層構造の画像データを出力する。従って、圧縮データの展開、表示を行うデバイスに応じて許容メモリ量を予め設定しておくことで、メモリ不足により圧縮データの展開、表示を行うことができないという不都合を回避することができる。 The condition setting means refers to the inspection result in the expansion memory inspection means, sets a predetermined compression condition in which the working memory amount at the time of expansion is equal to or less than the allowable memory amount from the plurality of generated compression conditions, and the data output means Compresses the image data input by the data compression means under the compression conditions set by the condition setting means, and outputs compressed image data having a multilayer structure. Therefore, by setting the allowable memory amount in advance according to the device that performs the decompression and display of the compressed data, it is possible to avoid the disadvantage that the compressed data cannot be decompressed and displayed due to a memory shortage.
以上説明したように本発明によれば、圧縮データの展開時の作業メモリ量を考慮して圧縮条件を設定することで、メモリ不足により圧縮データの展開、表示を行うことができないという不都合を回避することができる、という効果がある。 As described above, according to the present invention, by setting the compression condition in consideration of the working memory amount at the time of decompression of the compressed data, it is possible to avoid the inconvenience that the decompressed data cannot be decompressed and displayed due to insufficient memory. There is an effect that can be.
以下、図面を参照して本発明の実施の形態の一例を詳細に説明する。 Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.
<データ圧縮装置の概略構成>
図1は、本発明のデータ圧縮装置の概略構成を示す機能ブロック図である。
データ圧縮装置10には、入力されたレイヤ画像データ12の圧縮条件14を複数生成する圧縮条件取得処理部16と、生成された複数の圧縮条件14の各々について、展開時の作業メモリ量を取得し、取得された作業メモリ量が予め設定された許容メモリ量以下か否かを検査すると共に、展開時の作業メモリ量が許容メモリ量以下となる圧縮条件でレイヤ画像データ12を圧縮して、圧縮されたレイヤ画像データ20を出力する展開用メモリ検査部18と、が設けられている。
<Schematic configuration of data compression apparatus>
FIG. 1 is a functional block diagram showing a schematic configuration of a data compression apparatus according to the present invention.
The
展開用メモリ検査部18には、入力されたデータを一時的に保持する内部バッファ22と、入力されたレイヤ画像データ12を圧縮する圧縮処理部24と、圧縮されたレイヤ画像データを展開する展開処理部26と、が設けられている。内部バッファ22は、複数生成された圧縮条件の中から所定の圧縮条件を設定する条件設定手段としても機能する。
The expansion
上記のデータ圧縮装置10では、ユーザが図示しないユーザインタフェイス(UI)上で圧縮条件を指示すると、圧縮条件取得処理部16では指示された条件に基づいてレイヤ画像データ12の圧縮条件14が複数生成される。生成された圧縮条件は展開用メモリ検査部18に入力され、内部バッファ22に保持される。展開用メモリ検査部18では、内部バッファ22に保持された各々の圧縮条件について後述する「展開時メモリ検査処理」が実行され、複数生成された圧縮条件の中から作業メモリ量が許容メモリ量以下となる所定の圧縮条件が選択される。選択された圧縮条件は内部バッファ22に設定され、圧縮処理部24で設定された圧縮条件でレイヤ画像データ12が圧縮され、圧縮されたレイヤ画像データ20が出力される。
In the
<レイヤ画像データ>
ここで、レイヤ画像データについて説明する。レイヤ画像データは、MRC(Mixed Raster Content)構造を有する画像データであり、アプリケーションが作成した文書データを複数の層(レイヤ)に分離し、各層毎にラスタデータを作成することで生成される。レイヤ画像データは、各層毎にラスタデータに対して異なる方式の圧縮処理を施すことで、高い圧縮率を達成することができる。
<Layer image data>
Here, the layer image data will be described. The layer image data is image data having an MRC (Mixed Raster Content) structure, and is generated by separating document data created by an application into a plurality of layers (layers) and creating raster data for each layer. The layer image data can achieve a high compression rate by applying different types of compression processing to the raster data for each layer.
図2(A)乃至(C)はレイヤ画像データの一例を示す図である。例えば、図2(A)は文書データの構成例を示している。この文書データ30は、黒色で描かれたテキスト32とグラフィックス34、赤色で描かれたテキスト36とグラフィックス38、及び写真などの画像データを取り込んで作成されたイメージ40から構成されている。図2(B)はイメージを含む部分を1つのレイヤ42に集めた様子を示すものであり、このレイヤ42は多値画像データを圧縮する方式(例えばJPEG方式)で圧縮することができる。また、このレイヤ42は下地として扱われるのでBG(Background)レイヤ又は背景層と称される。
2A to 2C are diagrams illustrating an example of layer image data. For example, FIG. 2A shows a configuration example of document data. The
図2(C)はテキストやグラフィックスを含む部分を1つのレイヤ44に集めた様子を示すものであり、同じ色の領域毎にマスクデータ46、48を構成し、これらマスクデータ46、48の各々は二値画像データを圧縮する方式(例えばMMR方式)で圧縮することができる。また、このレイヤ44は下地上に上書きされるのでFG(Foreground)レイヤ又は前景層と称され、各マスクデータは、MMR圧縮された「2値データ」、「位置・サイズ」、及び「色情報」の組み合わせとして表現することができる。
FIG. 2C shows a state in which portions including text and graphics are collected in one
FGレイヤ44のMMR圧縮される領域に含まれる画像データは、テキストやグラフィックスの存在する部分が「黒」画素に相当している。「白」画素部分は復号時に透明な領域であるものとして扱うように定義しておくと、BGレイヤ42のJPEG圧縮データを展開した上に、FGレイヤ44のMMR圧縮データを展開して、指定された色情報を着色することで、元の文書データ30を再現することができる。
In the image data included in the MMR-compressed region of the
<圧縮条件の生成>
図3に圧縮条件の一例を示す。図3に示すように、レイヤ画像データ12の圧縮条件は、「解像度」、「画質パラメータ」、「背景圧縮方式」、及び「前景圧縮方式」の4つの要素の組み合わせによって表現されている。
<Generation of compression conditions>
FIG. 3 shows an example of compression conditions. As shown in FIG. 3, the compression condition of the
本実施の形態では、「解像度」は、300、400、600dpiから自動的に選択(自動選択)される。「画質パラメータ」は、圧縮方式に応じたパラメータが予め決定されており、この中から自動選択される。例えば、画質基準の例としては、JPEGの場合には、Quality値(0から100の値)に対し、圧縮優先は30、標準は55、画質優先は85などと予め設定しておくことができる。 In the present embodiment, the “resolution” is automatically selected (automatically selected) from 300, 400, and 600 dpi. The “image quality parameter” is determined in advance according to the compression method, and is automatically selected from these parameters. For example, as an example of the image quality standard, in the case of JPEG, the quality value (value from 0 to 100) can be set in advance such that compression priority is 30, standard is 55, and image quality is 85. .
「圧縮方式」は、レイヤ画像データの背景層及び前景層の各々について候補が予め設定されており、この中から自動選択される。「背景圧縮方式」は、多値画像用の圧縮方式であり、JPEG、JPEG2K、deflateが候補として設定されている。「前景圧縮方式」は、2値画像用の圧縮方式であり、MMR、JBIG2が候補として設定されている。なお、ここでは、PDFの1.5の仕様までで利用できる実際の圧縮形式を候補として例示している。 In the “compression method”, candidates are set in advance for each of the background layer and the foreground layer of the layer image data, and are automatically selected from these. The “background compression method” is a compression method for multi-valued images, and JPEG, JPEG2K, and deflate are set as candidates. The “foreground compression method” is a binary image compression method, and MMR and JBIG2 are set as candidates. Here, actual compression formats that can be used up to 1.5 specifications of PDF are illustrated as candidates.
圧縮条件取得処理部16では、上述した4つの要素の組み合わせの数だけ圧縮条件が生成される。例えば、図2に示す例では、3×3×3×2=54通りの圧縮条件が生成され、生成された複数の圧縮条件が展開用メモリ検査部18に入力される。
In the compression condition
<展開時メモリ検査処理>
図4は「展開時メモリ検査処理」の処理ルーチンを示すフローチャートである。この処理ルーチンは圧縮条件取得処理部16で実行される。
圧縮条件取得処理部16で生成された複数の圧縮条件が展開用メモリ検査部18に入力されると、まず、ステップ100で、複数の圧縮条件を展開用メモリ検査部18の内部バッファ22に保持する。次のステップ102で、所定の圧縮条件を選択する。即ち、上述した4つの要素の組み合わせの1つを選択する。次のステップ104で、選択された圧縮条件でレイヤ画像データ12を圧縮した場合に、圧縮データの圧縮率とその圧縮データを展開するのに必要な作業メモリ量とを計測する「作業メモリ量の計測処理」を実行する。
<Expansion memory inspection process>
FIG. 4 is a flowchart showing a processing routine of “development memory inspection processing”. This processing routine is executed by the compression condition
When a plurality of compression conditions generated by the compression condition
次に、ステップ106で、内部バッファ22に保持された許容メモリ量を読み出し、展開時の作業メモリ量と許容メモリ量とを比較して、展開時の作業メモリ量が許容メモリ量以下か否かを判断する。許容メモリ量は、圧縮データの展開、表示を実行するデバイスに応じて複数の候補値を予め設定しておき、ユーザが選択できるようにしてもよい。例えば、デバイスが携帯電話の場合は1メガバイト、PDAの場合は10メガバイト、パーソナルコンピュータの場合は無制限である。ここで否定判断の場合には、ステップ108に進み、対象とした圧縮条件を内部バッファから除いて、ステップ102に戻って次の圧縮条件を選択する。これにより、圧縮データを受信したデバイスにおいて、作業メモリ量の不足により圧縮データの展開、表示を行うことができない、という不都合を回避することができる。
Next, in
ここで肯定判断の場合には、ステップ110に進み、他の圧縮条件があるか否かを判断し、肯定判断の場合には、ステップ102に戻って次の圧縮条件を選択する。一方、否定判断の場合には、生成された複数の圧縮条件について「展開時メモリ検査処理」が完了したことを意味するので、次のステップ112に進み、内部バッファ22に保持された許容圧縮条件を全部読み出し、その中で圧縮率が最も高くなる許容圧縮条件を選択する。そして、選択された許容圧縮条件を実圧縮条件として内部バッファ22に設定し、ルーチンを終了する。
If the determination is affirmative, the process proceeds to step 110 to determine whether there is another compression condition. If the determination is affirmative, the process returns to step 102 to select the next compression condition. On the other hand, in the case of negative determination, it means that the “decompression memory check process” has been completed for the plurality of generated compression conditions, so that the process proceeds to the
<作業メモリ量の計測処理>
図5は「作業メモリ量の計測処理」のサブルーチンを示すフローチャートである。
ステップ200で、圧縮処理部24で選択された圧縮条件に従ってレイヤ画像データ12を圧縮する。ステップ202で、実際に圧縮処理を実施して得られた圧縮データから圧縮率を計測し、ステップ204で、計測した圧縮率を内部バッファ22に保存する。次に、ステップ206で、展開処理部26で圧縮データを展開する。ステップ208で、実際に展開処理に要した作業メモリ量を計測し、ステップ210で、計測した作業メモリ量を内部バッファ22に保存して、ルーチンを終了する。なお、展開時の作業メモリ使用量とは、展開プログラムが、展開時に動的に確保したメモリ量のうち、展開結果となる画像データを除くメモリ量を指す。
<Measurement processing of working memory amount>
FIG. 5 is a flowchart showing a subroutine of “measurement process of working memory amount”.
In
以上説明した通り、本実施の形態では、全部の圧縮条件についてレイヤ画像データの圧縮処理及び圧縮データの展開処理を行って圧縮率と展開時の作業メモリ量とを実際に計測し、レイヤ画像データの圧縮処理に使用する実圧縮条件として、複数生成された圧縮条件の中から展開時の作業メモリ量が予め設定された許容メモリ量以下で且つ圧縮率が最高となる圧縮条件を設定するので、作業メモリ量の不足により圧縮データの展開、表示を行うことができないという不都合を回避することができる。 As described above, in the present embodiment, the layer image data compression process and the compressed data decompression process are performed for all the compression conditions to actually measure the compression rate and the working memory amount at the decompression. As the actual compression condition used for the compression process, the compression condition is set so that the working memory amount at the time of decompression is equal to or less than the preset allowable memory amount and the compression rate is the highest among the plurality of generated compression conditions. It is possible to avoid the inconvenience that the compressed data cannot be expanded and displayed due to a lack of working memory.
なお、上記の実施の形態では、レイヤ画像データの圧縮処理及び圧縮データの展開処理の両方を実施して、圧縮率と展開時に必要な作業メモリ量とを実際に計測する例について説明したが、圧縮処理だけを実施して、圧縮率を実際に計測すると共に圧縮データから展開時の作業メモリ量を演算してもよい。また、圧縮処理及び展開処理のいずれも実施せずに、圧縮率と展開時の作業メモリ量とを演算してもよい。 In the above embodiment, an example has been described in which both the compression processing of the layer image data and the decompression processing of the compressed data are performed to actually measure the compression rate and the working memory amount necessary for decompression. Only the compression process may be performed to actually measure the compression rate and calculate the working memory amount at the time of decompression from the compressed data. Further, the compression rate and the working memory amount at the time of decompression may be calculated without performing any of the compression process and the decompression process.
また、上記の実施の形態では、生成された全部の圧縮条件について「展開時メモリ検査処理」が実行される例について説明したが、検査結果が予想できる場合には一部の組み合わせについて「展開時メモリ検査処理」を省略することができる。例えば、解像度について300dpiでメモリ不足となった場合、通常400dpi、600dpiでもメモリ不足となる事が予想される。このような場合は、400dpi、600dpiの処理を省略することができる。 In the above embodiment, an example in which “development memory inspection process” is executed for all the generated compression conditions has been described. The “memory inspection process” can be omitted. For example, when the memory becomes insufficient at 300 dpi, it is expected that the memory will normally become insufficient even at 400 dpi and 600 dpi. In such a case, 400 dpi and 600 dpi processing can be omitted.
また、上記の実施の形態では、圧縮条件の各要素が自動選択される例について説明したが、一部の要素を固定化してもよい。図6に圧縮条件の他の一例を示す。この圧縮条件も上述した4つの要素の組み合わせによって表現されている。この例では、「解像度」は固定値であり、300dpiである。「画質パラメータ」は固定値であり、圧縮優先である。「背景圧縮方式」は固定値であり、JPEGが設定されている。「前景圧縮方式」は、2値画像用の圧縮方式であり、MMR、JBIG2から自動選択される。固定化の例としては、UI上でユーザが「解像度」や「画質パラメータ」等を直接指定した場合が挙げられる。また、実際に動作する装置の仕様上、一部の要素が固定化されている場合もある。例えば、装置の解像度の上限が600dpiである場合等である。 In the above-described embodiment, an example in which each element of the compression condition is automatically selected has been described. However, some elements may be fixed. FIG. 6 shows another example of the compression condition. This compression condition is also expressed by a combination of the above four elements. In this example, “resolution” is a fixed value, which is 300 dpi. The “image quality parameter” is a fixed value and has compression priority. The “background compression method” is a fixed value, and JPEG is set. The “foreground compression method” is a compression method for binary images, and is automatically selected from MMR and JBIG2. As an example of immobilization, there is a case where the user directly designates “resolution”, “image quality parameter” or the like on the UI. Also, some elements may be fixed due to the specifications of the actually operating device. For example, the upper limit of the resolution of the apparatus is 600 dpi.
10 データ圧縮装置
12 レイヤ画像データ
14 圧縮条件
16 圧縮条件取得処理部
18 展開用メモリ検査部
20 レイヤ画像データ
22 内部バッファ
24 圧縮処理部
26 展開処理部
30 文書データ
32 テキスト
34 グラフィックス
36 テキスト
38 グラフィックス
40 イメージ
42 レイヤ
44 レイヤ
46 マスクデータ
DESCRIPTION OF
Claims (6)
前記画像データを圧縮するデータ圧縮手段と、
前記画像データを圧縮する圧縮条件を複数生成する条件生成手段と、
圧縮された前記多層構造の画像データを展開するデータ展開手段と、
前記条件生成手段で生成された複数の圧縮条件の各々について、前記データ圧縮手段により圧縮された画像データを前記データ展開手段により展開し、展開時の作業メモリ量を計測して、圧縮された前記画像データを展開するときの展開時の作業メモリ量を取得し、取得された作業メモリ量と予め設定された許容メモリ量とを比較して、取得された作業メモリ量が許容メモリ量以下か否かを検査する展開用メモリ検査手段と、
前記展開用メモリ検査手段での検査結果を参照し、複数生成された圧縮条件の中から展開時の作業メモリ量が許容メモリ量以下となる所定の圧縮条件を設定する条件設定手段と、
前記条件設定手段により設定された圧縮条件で、前記データ圧縮手段により入力された前記画像データを圧縮して、圧縮された多層構造の画像データを出力するデータ出力手段と、
を備えたデータ圧縮装置。 Data input means for inputting image data having a multilayer structure;
Data compression means for compressing the image data;
Condition generating means for generating a plurality of compression conditions for compressing the image data;
Data expansion means for expanding the compressed image data of the multilayer structure;
For each of the plurality of compression conditions generated by the condition generation means, the image data compressed by the data compression means is expanded by the data expansion means, the amount of working memory at the time of expansion is measured, and the compressed data Acquire the working memory amount when expanding image data, compare the acquired working memory amount with a preset allowable memory amount, and determine whether the acquired working memory amount is less than or equal to the allowable memory amount Expansion memory inspection means for inspecting
Condition setting means for referring to the inspection result in the expansion memory inspection means and setting a predetermined compression condition in which the working memory amount at the time of expansion is equal to or less than the allowable memory amount from among the plurality of generated compression conditions;
Data output means for compressing the image data input by the data compression means under the compression conditions set by the condition setting means, and outputting compressed image data having a multilayer structure;
A data compression apparatus comprising:
入力された多層構造の画像データを圧縮する圧縮条件を複数生成する条件生成ステップと、
圧縮された前記多層構造の画像データを展開するデータ展開ステップと、
前記条件生成ステップで生成された複数の圧縮条件の各々について、前記データ圧縮手段により圧縮された画像データを前記データ展開手段により展開し、展開時の作業メモリ量を計測して、圧縮された前記画像データを展開するときの展開時の作業メモリ量を取得し、取得された作業メモリ量と予め設定された許容メモリ量とを比較して、取得された作業メモリ量が許容メモリ量以下か否かを検査する展開用メモリ検査ステップと、
前記展開用メモリ検査ステップでの検査結果を参照し、複数生成された圧縮条件の中から展開時の作業メモリ量が許容メモリ量以下となる所定の圧縮条件を設定する条件設定ステップと、
前記条件設定ステップで設定された圧縮条件で、入力された前記画像データを圧縮し、圧縮された多層構造の画像データを出力するデータ出力ステップと、
を実行させるデータ圧縮プログラム。 By computer
A condition generation step for generating a plurality of compression conditions for compressing the input multilayered image data;
A data expansion step of expanding the compressed image data of the multilayer structure;
For each of the plurality of compression conditions generated in the condition generation step, the image data compressed by the data compression unit is expanded by the data expansion unit, the working memory amount at the time of expansion is measured, and the compressed Acquire the working memory amount when expanding image data, compare the acquired working memory amount with a preset allowable memory amount, and determine whether the acquired working memory amount is less than or equal to the allowable memory amount Expansion memory inspection step for inspecting
A condition setting step for setting a predetermined compression condition in which the amount of working memory at the time of expansion is equal to or less than an allowable memory amount from among a plurality of generated compression conditions with reference to the inspection result in the expansion memory inspection step;
A data output step of compressing the input image data under the compression conditions set in the condition setting step and outputting compressed image data of a multilayer structure;
Data compression program that executes
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005340975A JP4650236B2 (en) | 2005-11-25 | 2005-11-25 | Data compression apparatus, data compression method, and data compression program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005340975A JP4650236B2 (en) | 2005-11-25 | 2005-11-25 | Data compression apparatus, data compression method, and data compression program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2007150598A JP2007150598A (en) | 2007-06-14 |
| JP4650236B2 true JP4650236B2 (en) | 2011-03-16 |
Family
ID=38211492
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005340975A Expired - Fee Related JP4650236B2 (en) | 2005-11-25 | 2005-11-25 | Data compression apparatus, data compression method, and data compression program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4650236B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4934015B2 (en) * | 2007-12-25 | 2012-05-16 | 京セラミタ株式会社 | Image processing apparatus and image reading apparatus |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003309728A (en) * | 1994-10-28 | 2003-10-31 | Seiko Epson Corp | Apparatus and method for storing image data in memory |
| JP3399743B2 (en) * | 1996-05-31 | 2003-04-21 | シャープ株式会社 | Image compression data processing device |
| JPH09321992A (en) * | 1996-05-31 | 1997-12-12 | Canon Inc | Image processing apparatus and method |
| JP3463643B2 (en) * | 2000-01-27 | 2003-11-05 | 日本電気株式会社 | Compression device, compression method, recording medium recording compression method, printer |
| JP3928859B2 (en) * | 2002-11-11 | 2007-06-13 | 株式会社リコー | Image processing apparatus, image processing method, program, and recording medium |
-
2005
- 2005-11-25 JP JP2005340975A patent/JP4650236B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2007150598A (en) | 2007-06-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5132517B2 (en) | Image processing apparatus and image processing method | |
| MXPA03002793A (en) | MIXED FRAME CONTENT FILES. | |
| JP6708476B2 (en) | Document storage processing system | |
| JP5171733B2 (en) | Image processing apparatus and image processing method | |
| JP5893379B2 (en) | Image compression apparatus, image compression method, and computer program | |
| JP2004362541A (en) | Image processing apparatus, program, and storage medium | |
| JP2004334852A (en) | Image processing by pixel types | |
| JP2007174317A (en) | Image processor and program | |
| JP4650236B2 (en) | Data compression apparatus, data compression method, and data compression program | |
| US20060056713A1 (en) | Image coding apparatus and image coding method | |
| JP4747780B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP2008165381A (en) | Image processing apparatus and image processing method | |
| JP2008228168A (en) | Image processing apparatus and program | |
| US9137549B2 (en) | Compressing image data | |
| JP4400709B2 (en) | Image processing apparatus and image processing method | |
| US20110235927A1 (en) | Image processing apparatus and method | |
| JP3211545B2 (en) | Image processing device | |
| JP4936524B2 (en) | Image processing system and image processing method | |
| JP2007215001A (en) | Image processing apparatus, image processing system, and image processing method | |
| JP4957570B2 (en) | Image processing device | |
| JP4556582B2 (en) | Image printing device | |
| JP5315637B2 (en) | Image processing apparatus, electronic document system, and program | |
| JPH1051636A (en) | Print control device, information processing device, printing device, and print information processing method | |
| JP2004088195A (en) | Image processor and image processing program | |
| JP5880132B2 (en) | Image detection apparatus, information display apparatus, image forming apparatus, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20081022 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100817 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101018 |
|
| 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: 20101116 |
|
| 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: 20101129 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4650236 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131224 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |