JP2006174331A - Image compression apparatus, image compression method, and program therefor - Google Patents
Image compression apparatus, image compression method, and program therefor Download PDFInfo
- Publication number
- JP2006174331A JP2006174331A JP2004367379A JP2004367379A JP2006174331A JP 2006174331 A JP2006174331 A JP 2006174331A JP 2004367379 A JP2004367379 A JP 2004367379A JP 2004367379 A JP2004367379 A JP 2004367379A JP 2006174331 A JP2006174331 A JP 2006174331A
- Authority
- JP
- Japan
- Prior art keywords
- compression
- data amount
- image
- partial
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Image Processing (AREA)
Abstract
Description
本発明は、画像データを圧縮する画像圧縮装置に関する。 The present invention relates to an image compression apparatus that compresses image data.
例えば、特許文献1は、既定の量子化ステップで圧縮処理を行って第1のメモリ及び第2のメモリに格納し、第1のメモリに格納されているデータ量が所定量に達したとき、より高い圧縮率となるよう大きな量子化ステップを設定し、第2のメモリに格納されている符号データをこの量子化ステップで再符号化し、この符号データを第1のメモリに上書きする画像処理装置を開示する。
本発明は、上述した背景からなされたものであり、入力画像の符号量を制御する画像圧縮装置を提供することを目的とする。 The present invention has been made from the above-described background, and an object thereof is to provide an image compression apparatus that controls the code amount of an input image.
[画像圧縮装置]
上記目的を達成するために、本発明にかかる画像圧縮装置は、圧縮対象として入力された入力画像を、この入力画像の一部である部分画像毎に圧縮する圧縮手段と、前記圧縮手段により圧縮された部分画像のデータ量を検出する部分データ量検出手段と、前記部分データ量検出手段により検出された部分画像のデータ量と、部分画像について設定された基準部分データ量とを比較する部分データ量比較手段と、前記部分データ量比較手段による比較結果に応じて、前記圧縮手段による圧縮処理を規定する圧縮パラメータを設定するパラメータ設定手段とを有する。
[Image compression device]
In order to achieve the above object, an image compression apparatus according to the present invention compresses an input image input as a compression target for each partial image that is a part of the input image, and compression by the compression unit. Partial data amount detecting means for detecting the data amount of the partial image thus obtained, partial data for comparing the data amount of the partial image detected by the partial data amount detecting means and a reference partial data amount set for the partial image An amount comparison unit; and a parameter setting unit that sets a compression parameter that defines compression processing by the compression unit in accordance with a comparison result by the partial data amount comparison unit.
好適には、前記基準部分データ量は、部分画像の目標圧縮率及び入力画像全体の目標圧縮率のうち、より高い方の目標圧縮率に対応する値であり、前記パラメータ設定手段は、前記部分データ量比較手段により部分画像のデータ量がこの部分画像に対して設定された基準部分データ量を超えていると判定された場合に、設定されている圧縮パラメータよりも高い圧縮率を実現できる圧縮パラメータに変更する。 Preferably, the reference partial data amount is a value corresponding to a higher target compression ratio among the target compression ratio of the partial image and the target compression ratio of the entire input image, and the parameter setting means Compression that can achieve a higher compression ratio than the set compression parameter when the data amount comparison means determines that the data amount of the partial image exceeds the reference partial data amount set for this partial image. Change to parameter.
好適には、前記圧縮手段は、前記部分データ量比較手段により部分画像のデータ量が前記基準部分データ量を超えていると判定された場合に、前記パラメータ設定手段により変更された圧縮パラメータを適用して、この部分画像に対する圧縮処理をやり直す。 Preferably, the compression unit applies the compression parameter changed by the parameter setting unit when the partial data amount comparison unit determines that the data amount of the partial image exceeds the reference partial data amount. Then, the compression process for the partial image is performed again.
好適には、前記圧縮手段により圧縮された入力画像全体のデータ量を検出する全体データ量検出手段と、前記全体データ量検出手段により検出された入力画像全体のデータ量と、入力画像全体について設定された基準全体データ量とを比較する全体データ量比較手段とをさらに有し、前記パラメータ設定手段は、前記全体データ量比較手段による比較結果と、前記部分データ量比較手段による比較結果とに応じて、前記圧縮パラメータを設定する。 Preferably, the entire data amount detecting means for detecting the data amount of the entire input image compressed by the compressing means, the data amount of the entire input image detected by the entire data amount detecting means, and the entire input image are set. And an overall data amount comparison means for comparing the reference overall data amount, wherein the parameter setting means is responsive to the comparison result by the overall data amount comparison means and the comparison result by the partial data amount comparison means. To set the compression parameter.
好適には、前記基準部分データ量の初期値の総和は、入力画像の目標データ量よりも大きく、前記全体データ量比較手段による比較結果に応じて、各部分画像に対して設定される基準部分データ量を変更する基準値変更手段をさらに有し、前記部分データ量比較手段は、検出された部分画像のデータ量と、前記基準値変更手段により変更された基準部分データ量とを比較し、前記パラメータ設定手段は、前記部分データ量比較手段による比較結果に応じて、前記圧縮パラメータを変更する。 Preferably, the sum of the initial values of the reference partial data amount is larger than the target data amount of the input image, and the reference portion set for each partial image according to the comparison result by the overall data amount comparison unit Further comprising reference value changing means for changing the data amount, the partial data amount comparing means compares the data amount of the detected partial image with the reference partial data amount changed by the reference value changing means, The parameter setting means changes the compression parameter according to the comparison result by the partial data amount comparison means.
好適には、前記パラメータ設定手段は、前記部分データ量比較手段により部分画像のデータ量がこの部分画像に対して設定された基準部分データ量を超えると判定された場合に、設定されている圧縮パラメータよりも圧縮率が高くなるような圧縮パラメータに変更し、前記基準値変更手段は、前記全体データ量比較手段により入力画像全体のデータ量がこの入力画像全体に対して設定された基準全体データ量を超えると判定された場合に、各部分画像に対して設定される基準部分データ量を減少させる。 Preferably, when the partial data amount comparison unit determines that the data amount of the partial image exceeds the reference partial data amount set for the partial image, the parameter setting unit sets the compression that has been set. The reference value changing means changes the compression parameter so that the compression ratio is higher than the parameter, and the reference value changing means sets the whole reference amount data in which the entire input image data amount is set by the whole data amount comparison means. When it is determined that the amount exceeds the reference amount, the reference partial data amount set for each partial image is decreased.
好適には、前記基準全体データ量に対応する圧縮率をいずれの部分画像に対しても実現できる限界圧縮パラメータを少なくとも含むパラメータ記憶手段をさらに有し、前記パラメータ設定手段は、前記パラメータ記憶手段に記憶されている圧縮パラメータの中から、設定すべき圧縮バラメータを選択する。 Preferably, the apparatus further includes parameter storage means including at least a limit compression parameter capable of realizing a compression ratio corresponding to the reference overall data amount for any partial image, and the parameter setting means includes the parameter storage means. A compression parameter to be set is selected from the stored compression parameters.
好適には、前記パラメータ記憶手段は、実現可能な圧縮率が互いに異なる複数の圧縮パラメータを記憶し、前記パラメータ設定手段は、各部分画像について、複数の圧縮パラメータの中から、実現可能な圧縮率のより低い圧縮パラメータから、実現可能な圧縮率のより高い圧縮パラメータの順で選択する。 Preferably, the parameter storage means stores a plurality of compression parameters having different realizable compression ratios, and the parameter setting means stores a realizable compression ratio from among the plurality of compression parameters for each partial image. Are selected in the order of compression parameters having higher realizable compression ratios.
好適には、前記部分画像は、入力画像の1ラインに相当し、前記圧縮手段は、前記入力画像を、1ライン単位で圧縮し、前記部分データ量検出手段は、前記圧縮手段により圧縮された1ライン分のデータ量を検出し、前記部分データ量比較手段は、前記部分データ量検出手段により検出された1ライン分のデータ量と、1ライン分の基準部分データ量とを比較する。 Preferably, the partial image corresponds to one line of the input image, the compression means compresses the input image in units of one line, and the partial data amount detection means is compressed by the compression means. The data amount for one line is detected, and the partial data amount comparison unit compares the data amount for one line detected by the partial data amount detection unit with the reference partial data amount for one line.
[画像圧縮方法]
また、本発明にかかる画像圧縮方法は、圧縮対象として入力された入力画像を、この入力画像の一部である部分画像毎に圧縮し、圧縮された部分画像のデータ量を検出し、検出された部分画像のデータ量と、部分画像について設定された基準部分データ量とを比較し、部分画像のデータ量と基準部分データ量との比較結果に応じて、圧縮処理を規定する圧縮パラメータを変更する。
[Image compression method]
The image compression method according to the present invention compresses an input image input as a compression target for each partial image that is a part of the input image, and detects the data amount of the compressed partial image. Compare the partial image data amount with the reference partial data amount set for the partial image, and change the compression parameter that defines the compression process according to the comparison result between the partial image data amount and the reference partial data amount To do.
[プログラム]
また、本発明にかかるプログラムは、コンピュータを含む画像圧縮装置において、圧縮対象として入力された入力画像を、この入力画像の一部である部分画像毎に圧縮するステップと、圧縮された部分画像のデータ量を検出するステップと、検出された部分画像のデータ量と、部分画像について設定された基準部分データ量とを比較するステップと、部分画像のデータ量と基準部分データ量との比較結果に応じて、圧縮処理を規定する圧縮パラメータを変更するステップとを前記画像圧縮装置のコンピュータに実行させる。
[program]
The program according to the present invention includes a step of compressing an input image input as a compression target for each partial image that is a part of the input image in an image compression apparatus including a computer, The step of detecting the amount of data, the step of comparing the data amount of the detected partial image with the reference partial data amount set for the partial image, and the comparison result between the data amount of the partial image and the reference partial data amount In response, the computer of the image compression apparatus executes a step of changing a compression parameter that defines the compression process.
本発明の画像処理装置によれば、入力画像の符号量をフレキシブルに制御することができる。 According to the image processing apparatus of the present invention, the code amount of an input image can be flexibly controlled.
[背景]
まず、本発明の理解を助けるために、本発明がなされるに至った背景を説明する。
プリンタなどにおいて、印刷のプロセススピードを維持したままラスタデータを供給するためには、画像データのデータ量を制御する必要がある。データ量を制御する方法としては、各種圧縮処理により画素データを圧縮する方法がある。例えば、1ライン毎に画像を印刷するプリンタにおいては、画像のページ毎及びライン毎の符号量制御を行なう必要がある。すなわち、ページ毎及びライン毎の目標圧縮率がそれぞれ独立に設定され、両者を満足させる必要がある。
しかしながら、処理速度優先、画質優先、又はこれらの折衷など、プリンタごとの要求は様々であり、これらすべての要求には答えられていないのが現状である。
[background]
First, in order to help understanding of the present invention, the background that led to the present invention will be described.
In order to supply raster data while maintaining the printing process speed in a printer or the like, it is necessary to control the amount of image data. As a method of controlling the data amount, there is a method of compressing pixel data by various compression processes. For example, in a printer that prints an image for each line, it is necessary to perform code amount control for each page and each line of the image. That is, the target compression rate for each page and each line is set independently, and it is necessary to satisfy both.
However, there are various requests for each printer, such as processing speed priority, image quality priority, or a compromise between them, and all these requests are not answered at present.
また、例えば、特許文献1には、1パスでページ単位の符号量制御を行うために、画像を圧縮して所定の閾値までメモリを消費した場合に、先に格納した画像圧縮データの復号及び再量子化を新たなハードウェアを用いて行い、続きの画像圧縮を再開する手法が提案されている。この手法では、再びメモリが上記閾値を超えて消費された場合に、再量子化処理が繰り返され、1パスで決められたデータ量の符号を生成できる。
しかし、この手法では、搭載メモリ量、画像の絵柄、又は上記閾値によっては、画像の先頭になるほど再量子化の回数が増え、これに伴って量子化誤差が多くなり、画質劣化の起因となる。
また、画像符号化の最後の方で上記閾値を超えて再量子化処理が行われる場合などを想定すると、処理時間を低減させるために、新たなエントロピー復号及び再量子化処理のために多大なハードウェア資源が必要となる。
Further, for example, in Patent Document 1, in order to perform code amount control in units of pages in one pass, when the image is compressed and the memory is consumed up to a predetermined threshold, decoding of the previously stored image compressed data and A method has been proposed in which requantization is performed using new hardware and the subsequent image compression is resumed. In this method, when the memory is again consumed exceeding the threshold, the requantization process is repeated, and a code having a data amount determined in one pass can be generated.
However, with this method, depending on the amount of installed memory, the image pattern, or the threshold value, the number of re-quantizations increases as the head of the image increases, resulting in an increase in quantization error and causing deterioration in image quality. .
Also, assuming the case where the re-quantization process is performed exceeding the threshold at the end of image encoding, a large amount of new entropy decoding and re-quantization processes are required to reduce the processing time. Hardware resources are required.
そこで、本発明は、画質やハードウェア規模などをそれほど犠牲にせず、システムやユーザの要望に対してフレキシブルに対応可能な圧縮方法を提供する。 Therefore, the present invention provides a compression method that can flexibly respond to the demands of the system and the user without sacrificing image quality and hardware scale.
[実施形態]
次に、本発明の実施形態を説明する。
図1は、本発明にかかるプリンタ装置2(画像圧縮装置)のハードウェア構成を、制御装置20を中心に例示する図である。
図1に示すように、プリンタ装置2は、制御装置20及びプリンタ本体26から構成される。制御装置20は、CPU212及びメモリ214などを含む制御装置本体210、通信装置220、LCD表示装置あるいはCRT表示装置及びキーボード・タッチパネルなどを含むユーザインターフェース装置(UI装置)230、並びに、HDD・CD装置などの記録装置240から構成される。
[Embodiment]
Next, an embodiment of the present invention will be described.
FIG. 1 is a diagram illustrating a hardware configuration of a printer apparatus 2 (image compression apparatus) according to the present invention, centering on a control apparatus 20.
As shown in FIG. 1, the printer device 2 includes a control device 20 and a printer
[圧縮プログラム]
図2は、圧縮処理プログラム5の機能構成を例示する図である。
図2に示すように、圧縮プログラム5は、圧縮部500、パラメータ設定部540、ライン圧縮率算出部550、ライン圧縮率比較部560、ページ圧縮率算出部570、ページ圧縮率比較部580、及び基準値変更部590を有する。
圧縮プログラム5は、例えば記録媒体242(図1)を介して制御装置20に供給され、メモリ214にロードされて実行される。なお、圧縮プログラム5は、その一部がドライバソフトとしてクライアント端末にインストールされ、互いに協働して本実施形態で説明する機能を実現してもよい。
[Compression program]
FIG. 2 is a diagram illustrating a functional configuration of the compression processing program 5.
As shown in FIG. 2, the compression program 5 includes a
The compression program 5 is supplied to the control device 20 via, for example, the recording medium 242 (FIG. 1), loaded into the
圧縮プログラム5において、圧縮部500は、符号化対象として入力された入力画像を、部分画像毎に符号化する。本例では、入力画像が、印刷物1ページ分に相当するページ画像であり、部分画像が、このページ画像の1スキャンライン分の画像(ライン画像)である場合を具体例として説明する。なお、部分画像は、入力画像を均等に分割した画像であることが望ましい。
また、圧縮部500は、パラメータ設定部540(後述)によって設定される圧縮パラメータに応じて、非可逆な符号化方式により部分画像を符号化する。
In the compression program 5, the
In addition, the
パラメータ設定部540は、圧縮部500による圧縮処理を規定する圧縮パラメータを設定する。この圧縮パラメータは、圧縮処理による圧縮率を規定する。本例の圧縮パラメータは、圧縮処理における非可逆性を規定する情報(例えば、量子化ステップ、スケーリングファクタ等)である。
また、パラメータ設定部540は、ライン圧縮率比較部560による比較結果に応じて、圧縮パラメータを設定する。例えば、パラメータ設定部540は、1ライン毎の圧縮率(実測値)が1ラインに対して設定された基準値(以下、ライン基準値)よりも低い場合に、より高い圧縮率を実現できる圧縮パラメータに変更する。換言すると、パラメータ設定部540は、1ライン毎の符号量(実測値)が1ラインに対して設定されたライン基準値(上限となる符号量)を超えている場合に、より符号量を低減できる圧縮パラメータに変更する。
The
Further, the
ライン圧縮率算出部550は、圧縮部500により符号化された1ライン分の符号量を示す値を算出する。符号量を示す値とは、例えば、符号量そのもの、又は、圧縮率などである。本例のライン圧縮率算出部は、圧縮部500により符号化された1ライン分の符号データの圧縮率を算出する。
The line compression
ライン圧縮率比較部560は、ライン圧縮率算出部550により算出された1ライン分の圧縮率(実測値)と、1ラインに対して設定されたライン基準値とを比較し、比較結果をパラメータ設定部540に出力する。
The line compression
ページ圧縮率算出部570は、圧縮部500により符号化された1ページ(すなわち、入力画像全体)の符号量を示す値を算出する。本例のページ圧縮率算出部570は、圧縮部500により符号化された1ページ分の符号データの圧縮率を算出する。
The page compression
ページ圧縮率比較部580は、ページ圧縮率算出部570により算出された1ページ分の圧縮率(実測値)と、1ページに対して設定された基準値(以下、ページ基準値)とを比較し、比較結果を基準値変更部590に出力する。このページ基準値は、目標となる1ページ分の符号量又は圧縮率に相当する値である。
The page compression
基準値変更部590は、ページ圧縮率比較部580による比較結果に応じて、ライン基準値を変更する。例えば、基準値変更部590は、1ページ分の圧縮率(実測値)が、ページ基準値(目標圧縮率)よりも低い場合に、ライン基準値(1ライン毎の圧縮率の下限)を引き上げる。換言すると、基準値変更部590は、1ページ分の符号量(実測値)が、ページ基準値(目標符号量)を超えている場合に、ライン基準値(1ライン分の符号量の上限)を引き下げる。
The reference
図3は、圧縮部500の機能構成を例示する図である。
図3に示すように、圧縮部500は、フィルタ処理部510及び可逆圧縮部520を含む。
フィルタ処理部510は、圧縮パラメータに応じた画素値変換処理を行うブロックであり、第1予測部512a、第2予測部512b、画素値変更処理部514、及び誤差分配処理部516を有する。なお、本実施形態では、2つの予測部512(第1予測部512a及び第2予測部512b)を有する形態を説明するが、予測部512は1つ以上あればよく、例えば、5つの予測部512により構成されてもよい。
FIG. 3 is a diagram illustrating a functional configuration of the
As illustrated in FIG. 3, the
The filter processing unit 510 is a block that performs pixel value conversion processing according to the compression parameter, and includes a first prediction unit 512a, a
第1予測部512a及び第2予測部512bは、それぞれ所定の手法で画像データに基づいて注目画素の画素値を予測し、予測値として画素値変更処理部514に対して出力する。例えば、第1予測部512a及び第2予測部512bは、それぞれ異なる位置にある画素の画素値を、注目画素の予測値とする。
画素値変更処理部514は、注目画素の画素値と予測値とを比較し、その差が予め設定された変更許容値(本例における圧縮パラメータ)より小さい場合には予測値を、可逆圧縮部520に対して出力し、さらに、注目画素の画素値と予測値との差分(以下、誤差値)を誤差分配処理部516に対して出力する。一方、画素値変更処理部514は、注目画素の画素値と予測値との差が変更許容値以上の場合には、注目画素の画素値をそのまま可逆圧縮部520に対して出力し、誤差分配処理部516に対して0を出力する。すなわち、フィルタ処理部510は、誤差値が変更許容値以上の場合には、注目画素の画素値を変換せず、変更許容値以上の誤差値を誤差分配しない。換言すると、変更許容値(圧縮パラメータ)が大きいほど、入力画像の画素値が変更されて、後段の可逆圧縮部520による予測のヒット率が向上し、圧縮率が高くなる。
誤差分配処理部516は、画素値変更処理部514から入力された誤差値に基づいて、誤差分配値を生成し、画像データに含まれる所定の画素の画素値にこれを加算する。誤差分配値は、例えば、重み行列を用いた誤差拡散法や平均誤差最小法に従って、誤差値に重み行列の値を掛け合わせて算出される。
The first prediction unit 512a and the
The pixel value
The error
このように、フィルタ処理部510は、後段の可逆圧縮部520が画像データを圧縮しやすくなるように画像データに含まれる画素値を変換する。その際に、フィルタ処理部510は、画素値の変更により生じた真の画素値との差分を、周辺画素に分配して、画素値の変更を巨視的に目立たなくする。 In this way, the filter processing unit 510 converts pixel values included in the image data so that the subsequent lossless compression unit 520 can easily compress the image data. At that time, the filter processing unit 510 distributes the difference from the true pixel value generated by the change of the pixel value to the peripheral pixels, thereby making the change of the pixel value macroscopically inconspicuous.
可逆圧縮部520は、第1予測部522a、第2予測部522b、予測誤差算出部524、選択部526、ラン計数部528、及び符号生成部529を有する。
第1予測部522a及び第2予測部522bは、フィルタ処理部510における第1予測部512a及び第2予測部512bとほぼ同様に、それぞれ所定の手法で画像データに基づいて注目画素の画素値を予測し、予測値として選択部526に対して出力する。
予測誤差算出部524は、所定の手法で画像データに基づいて注目画素の画素値を予測し、その予測値を注目画素の実際の画素値から減算し、予測誤差値として選択部526に対して出力する。
選択部526は、画像データと予測値から注目画素における予測の一致/不一致を検出する。選択部526は、その結果、予測が的中した予測部522があればその識別番号を、いずれも的中しなかった場合は予測誤差値を、ラン計数部528及び符号生成部529に対して出力する。
The lossless compression unit 520 includes a
The
The prediction
The
ラン計数部528は、識別番号が第1予測部522aを指している場合には、内部カウンタを1だけ増やす。また識別番号が第1予測部522a以外を指している場合で、かつ内部カウンタが0でない場合には、内部カウンタの値をランデータとして符号生成部529に対して出力する。
符号生成部529は、ランデータ及び予測誤差値が同時に与えられた場合、まずランデータの符号を生成してから予測誤差値の符号を生成する。一方、符号生成部529は、識別番号又は予測誤差値のみが与えられた場合には、識別番号又は予測誤差値の符号を生成する。
The run counter 528 increments the internal counter by 1 when the identification number indicates the
When the run data and the prediction error value are given simultaneously, the
なお、上記ラン計数部528及び符号生成部529による符号生成処理は、第1予測部522aの的中確率が高いことを想定した形態であるが、他の圧縮方法を用いてもよい。例えば、高速復号等の目的から固定長符号を与えた場合、符号生成部529は、第1予測部522aが的中した旨を2進数「01」、第2予測部522bが的中した旨を2進数「10」、いずれの予測部も外れた旨を2進数「00」でそれぞれ圧縮し、予測誤差を符号+8bitの2進数で圧縮する。また、圧縮率を向上させたい場合には、符号生成部529は、Huffman圧縮、算術符号等の可変長符号を用いて符号を生成してもよい。例えば、発生確率の高そうな第1予測部522aに1bitの符号を与えたHuffman符号の場合、第1予測部522aが的中した旨を2進数「0」、第2予測部522bが的中した旨を2進数「10」、いずれの予測部522も予測が外れた旨を2進数「11」で符号化する。また、符号生成部529は、算術符号を用いて符号化してもよい。このように圧縮の手法はいくつも考えられる。
The code generation processing by the
次に、処理速度優先、画質優先、又は、これらの折衷が要求される場合の圧縮プログラム5の動作を説明する。 Next, the operation of the compression program 5 when processing speed priority, image quality priority, or a compromise between these is required will be described.
[処理速度優先]
まず、処理速度が優先される場合の符号化処理を説明する。
図4は、処理速度が優先される場合の圧縮プログラム5の動作(S10)を説明するフローチャートである。
この場合に、ライン基準値(ライン毎の圧縮率の下限)は、予め、ページの目標圧縮率又はラインの目標圧縮率の高い方と同じ値、あるいは、それ以上の値に設定される。
また、この場合に、ページ圧縮率算出部570、ページ圧縮率比較部580及び基準値変更部590は、動作する必要がないため、処理速度優先での動作のみを行うプリンタ装置2では、ページ圧縮率算出部570、ページ圧縮率比較部580及び基準値変更部590を要しない。
[Process speed priority]
First, encoding processing when processing speed is prioritized will be described.
FIG. 4 is a flowchart for explaining the operation (S10) of the compression program 5 when the processing speed is prioritized.
In this case, the line reference value (lower limit of the compression rate for each line) is set in advance to a value equal to or higher than the higher target compression rate of the page or the target compression rate of the line.
In this case, since the page compression
図4に示すように、ステップ100(S100)において、パラメータ設定部540は、圧縮部500に設定された圧縮パラメータを初期化する。より具体的には、パラメータ設定部540は、変更許容値の初期値を画素値変更処理部514(図3)に設定する。
As shown in FIG. 4, in step 100 (S100), the
ステップ110(S110)において、圧縮部500は、設定された圧縮パラメータに応じて、入力画像の1ライン(以下、注目ライン)を符号化する。
In step 110 (S110), the
ステップ140(S140)において、ライン圧縮率算出部550は、圧縮部500により符号化された注目ラインの圧縮率を算出する。
In step 140 (S140), the line compression
ステップ145(S145)において、ライン圧縮率比較部560は、ライン圧縮率算出部550により算出された注目ラインの圧縮率(実測値)と、予め設定されたライン基準値(ライン毎の圧縮率の下限)とを比較する。
圧縮プログラム5は、注目ラインの圧縮率(実測値)がライン基準値以上である場合に、S155の処理に移行し、注目ラインの圧縮率がライン基準値よりも小さい場合に、S150の処理に移行する。
In step 145 (S145), the line compression
The compression program 5 proceeds to the process of S155 when the compression rate (actually measured value) of the target line is equal to or greater than the line reference value, and performs the process of S150 when the compression rate of the target line is smaller than the line reference value. Transition.
ステップ150(S150)において、パラメータ設定部540は、現在設定されている圧縮パラメータよりも高い圧縮率の実現が可能な圧縮パラメータを圧縮部500に設定する。より具体的には、パラメータ設定部540は、画素値変更処理部514(図3)に設定された変更許容値の値を増加させる。
圧縮プログラム5は、S110の処理に戻り、変更された圧縮パラメータ(変更許容値)を適用して、この注目ラインの符号化処理を再度行う。すなわち、圧縮プログラム5は、注目ラインの圧縮率がライン基準値以上になるまで、圧縮パラメータ(変更許容値)を変更しながらこの注目ラインの符号化処理を繰り返す。
In step 150 (S150), the
The compression program 5 returns to the process of S110, applies the changed compression parameter (change allowable value), and performs the encoding process of the attention line again. That is, the compression program 5 repeats the encoding process of the target line while changing the compression parameter (change allowable value) until the compression rate of the target line becomes equal to or greater than the line reference value.
ステップ155(S155)において、圧縮プログラム5は、入力画像に含まれる全ラインの符号化処理が完了したか否かを判定し、全ラインの符号化処理が完了している場合に、符号化処理を終了し、これ以外の場合に、S100の処理に戻って、次のラインを注目ラインとして符号化処理を行う。 In step 155 (S155), the compression program 5 determines whether or not the encoding process for all lines included in the input image has been completed. If the encoding process for all lines has been completed, the encoding process is performed. In other cases, the process returns to S100, and the next line is set as the target line, and the encoding process is performed.
このように、圧縮プログラム5は、処理速度を優先させる場合に、ページ及びラインの目標圧縮率のうち、より厳しい方(目標圧縮率が高い方)をライン基準値とし、各ラインの実測圧縮率がこのライン基準値以上となるように監視しながら符号化処理を行う。これにより、1パスによる効率的な符号化処理が実現される。 Thus, when giving priority to the processing speed, the compression program 5 uses the stricter one (the higher target compression ratio) of the page and line target compression ratios as the line reference value, and the actual compression ratio of each line. The encoding process is performed while monitoring so that is equal to or greater than the line reference value. Thereby, efficient encoding processing by one pass is realized.
[画質優先]
次に、画質が優先される場合の符号化処理を説明する。
図5は、画質が優先される場合の圧縮プログラム5の動作(S12)を説明するフローチャートである。なお、本図に示された各処理のうち、図4に示された処理と実質的に同一のものには同一の符号が付されている。
なお、本例では、ページ全体の符号量に対する上限は存在するが、各ラインの符号量に対して上限がない場合を具体例として説明する。
[Image quality priority]
Next, an encoding process when image quality is given priority will be described.
FIG. 5 is a flowchart for explaining the operation (S12) of the compression program 5 when image quality is prioritized. It should be noted that among the processes shown in this figure, the same reference numerals are assigned to the processes that are substantially the same as those shown in FIG.
In this example, there is an upper limit for the code amount of the entire page, but a case where there is no upper limit for the code amount of each line will be described as a specific example.
図5に示すように、ステップ160(S160)において、ライン圧縮率比較部560は、ライン基準値を初期化する。このライン基準値(ライン毎の圧縮率の下限)の初期値は、ページの目標圧縮率及びラインの目標圧縮率の少なくとも一方よりも低い値(すなわち、緩い条件)に設定される。より好ましくは、ライン基準値(ライン毎の圧縮率の下限)の初期値は、ページの目標圧縮率及びラインの目標圧縮率のいずれよりも低い値に設定される。
As shown in FIG. 5, in step 160 (S160), the line compression
S100において、パラメータ設定部540は、圧縮部500に設定された圧縮パラメータを初期化する。
S110において、圧縮部500は、設定された圧縮パラメータに応じて、入力画像の1ライン(注目ライン)を符号化する。
S140において、ライン圧縮率算出部550は、圧縮部500により符号化された注目ラインの圧縮率を算出する。
In S100, the
In S110, the
In S140, the line compression
S145において、ライン圧縮率比較部560は、ライン圧縮率算出部550により算出された注目ラインの圧縮率(実測値)と、予め設定されたライン基準値(ライン毎の圧縮率の下限)とを比較し、圧縮プログラム5は、注目ラインの圧縮率(実測値)がライン基準値以上である場合に、S155の処理に移行し、注目ラインの圧縮率がライン基準値よりも小さい場合に、S150の処理に移行する。
S150において、パラメータ設定部540は、現在設定されている圧縮パラメータよりも高い圧縮率の実現が可能な圧縮パラメータを圧縮部500に設定し、圧縮プログラム5はS110の処理に戻る。
S155において、圧縮プログラム5は、入力画像に含まれる全ラインの符号化処理が完了したか否かを判定し、全ラインの符号化処理が完了している場合に、S165の処理に移行し、これ以外の場合に、S100の処理に戻って、次のラインを注目ラインとして符号化処理を行う。
In S145, the line compression
In S150, the
In S155, the compression program 5 determines whether or not the encoding process for all lines included in the input image has been completed. If the encoding process for all lines has been completed, the process proceeds to S165. In other cases, the process returns to the process of S100, and the encoding process is performed using the next line as the target line.
ステップ165(S165)において、ページ圧縮率算出部570は、圧縮部500により圧縮された1ページ分の圧縮率(実測値)を算出する。例えば、ページ圧縮率算出部570は、ライン圧縮率算出部550により算出された1ライン分の圧縮率に基づいて、1ページ分の圧縮率を算出する。
In step 165 (S165), the page compression
ステップ170(S170)において、ページ圧縮率比較部580は、ページ圧縮率算出部570により算出された1ページ分の圧縮率(実測値)と、予め設定されたページ基準値(1ページに対して設定された圧縮率の下限)とを比較する。例えば、ページ基準値は、このページの目標圧縮率である。
圧縮プログラム5は、1ページ全体の圧縮率(実測値)がページ基準値以上である場合に、符号化処理を終了し、1ページ全体の圧縮率がページ基準値よりも小さい場合に、S175の処理に移行する。
In step 170 (S170), the page compression
The compression program 5 terminates the encoding process when the compression ratio (actual value) of the entire page is equal to or greater than the page reference value, and when the compression ratio of the entire page is smaller than the page reference value, the process of S175 Transition to processing.
ステップ175(S175)において、基準値変更部590は、ライン圧縮率比較部560に設定されているライン基準値(ライン毎の圧縮率の下限)を引き上げる。
圧縮プログラム5は、S100の処理に戻り、変更されたライン基準値(ライン毎の圧縮率の下限)を適用して、この注目ラインの符号化処理を再度行う。すなわち、圧縮プログラム5は、1ページ全体の圧縮率がページ基準値以上になるまで、ライン毎の圧縮率の下限を徐々に引き上げながら、このページ全体の符号化処理を繰り返す。
In step 175 (S175), the reference
The compression program 5 returns to the process of S100, applies the changed line reference value (lower limit of the compression rate for each line), and performs the encoding process of the target line again. That is, the compression program 5 repeats the encoding process for the entire page while gradually increasing the lower limit of the compression ratio for each line until the compression ratio for the entire page becomes equal to or greater than the page reference value.
このように、圧縮プログラム5は、画質を優先させる場合に、ライン毎の圧縮率の下限(ライン基準値)を予め低く設定して、圧縮処理による画質劣化を抑制しつつ、ページ全体の圧縮率を監視しながら符号化処理を行う。これにより、ページに対する符号量の制限に留意しつつ、非可逆符号化による画質劣化を極力抑えることができる。
なお、各ラインの符号量に対しても上限が存在する場合に、圧縮プログラム5は、ライン基準値の初期値を、各ラインの目標圧縮率(各ラインの符号量の上限に対応する圧縮率)に設定することにより、各ラインの符号量の上限にも留意しつつ、画質劣化を抑えた符号化処理を行うことができる。
As described above, when giving priority to image quality, the compression program 5 sets the lower limit (line reference value) of the compression rate for each line low in advance, and suppresses image quality deterioration due to compression processing, while reducing the compression rate of the entire page. The encoding process is performed while monitoring. As a result, image quality deterioration due to lossy encoding can be suppressed as much as possible while paying attention to the limitation of the code amount for a page.
When there is an upper limit for the code amount of each line, the compression program 5 uses the initial value of the line reference value as the target compression rate of each line (the compression rate corresponding to the upper limit of the code amount of each line. ), It is possible to perform an encoding process while suppressing image quality deterioration while paying attention to the upper limit of the code amount of each line.
[折衷]
次に、上記処理速度優先及び画質優先を折衷する場合の符号化処理を説明する。
上記画質優先の符号化処理では、符号化処理のやり直し(フォールバック)回数に上限がなく、ページ全体の符号化処理が終了するまでの処理時間を見積もることができない。
そこで、処理速度優先及び画質優先を折衷する場合の圧縮プログラム5は、既定数の圧縮パラメータを予め用意して、選択可能な圧縮パラメータの数に上限を設けることにより、ページ全体の符号化処理が終了するまでの処理時間に上限を設定することができる。
[Eclectic]
Next, an encoding process when the processing speed priority and the image quality priority are compromised will be described.
In the image quality priority encoding process, there is no upper limit to the number of times the encoding process is re-executed (fallback), and the processing time until the encoding process for the entire page is completed cannot be estimated.
Therefore, the compression program 5 in the case where the processing speed priority and the image quality priority are compromised prepares a predetermined number of compression parameters in advance and sets an upper limit on the number of selectable compression parameters, so that the entire page can be encoded. An upper limit can be set for the processing time until completion.
図6は、パラメータ設定部540に記憶される圧縮パラメータテーブル542を例示する。
図6に例示するように、パラメータ設定部540は、複数の圧縮パラメータが登録された圧縮パラメータテーブル542を記憶する。圧縮パラメータテーブル542に登録される各圧縮パラメータは、同一の画像に対して互いに異なる圧縮率を実現するパラメータであり、圧縮率のレベルに対応付けられている。本例では、実現可能な圧縮率の最も低い「レベル1」は、「パラメータ1」に対応付けられている。換言すると、「パラメータ1」は、最も高画質に符号化できる圧縮パラメータ(例えば、最小の変更許容値)である。
また、「レベル5」に対応付けられた「パラメータ5」は、登録されている圧縮パラメータの中で、最も高い圧縮率を実現可能な圧縮パラメータ(例えば、最大の変更許容値)である。また、「パラメータ5」は、ラインの目標圧縮率及びページの目標圧縮率以上の圧縮率を必ず実現できる圧縮パラメータ(限界圧縮パラメータ)である。
本例の圧縮プログラム5は、圧縮パラメータテーブル542の中から、「レベル1」から順に圧縮パラメータを適用していくことにより、既定の回数以内で必ずラインの目標圧縮率及びページの目標圧縮率を実現することができる。
FIG. 6 illustrates a compression parameter table 542 stored in the
As illustrated in FIG. 6, the
Further, “parameter 5” associated with “level 5” is a compression parameter (for example, the maximum change allowable value) capable of realizing the highest compression rate among the registered compression parameters. “Parameter 5” is a compression parameter (limit compression parameter) that can always realize a compression ratio equal to or higher than the target compression ratio of the line and the target compression ratio of the page.
The compression program 5 of this example applies the compression parameters in order from “level 1” in the compression parameter table 542, so that the target compression rate of the line and the target compression rate of the page are always set within the predetermined number of times. Can be realized.
図7は、圧縮パラメータテーブル542が用いられる場合の圧縮プログラム5の動作(S14)を説明するフローチャートである。なお、本図に示された各処理のうち、図5に示された処理と実質的に同一のものには同一の符号が付されている。 FIG. 7 is a flowchart for explaining the operation (S14) of the compression program 5 when the compression parameter table 542 is used. Note that, among the processes shown in this figure, the same reference numerals are given to the processes that are substantially the same as those shown in FIG.
図7に示すように、S160において、ライン圧縮率比較部560は、ライン基準値を初期化する。このライン基準値(ライン毎の圧縮率の下限)の初期値は、ラインの目標圧縮率以上の値であって、ページの目標圧縮率よりも低い値に設定される。
As shown in FIG. 7, in S160, the line compression
ステップ180(S180)において、パラメータ設定部540は、圧縮部500に設定された圧縮パラメータを初期化する。より具体的には、パラメータ設定部540は、圧縮パラメータテーブル542の中から、圧縮率の最も低い圧縮パラメータ(すなわち、「レベル1」に対応する「パラメータ1」)を選択し、圧縮部500に設定する。
In step 180 (S180), the
S110において、圧縮部500は、設定された圧縮パラメータを適用して、入力画像の1ライン(注目ライン)を符号化する。
S140において、ライン圧縮率算出部550は、圧縮部500により符号化された注目ラインの圧縮率を算出する。
In S110, the
In S140, the line compression
S145において、ライン圧縮率比較部560は、ライン圧縮率算出部550により算出された注目ラインの圧縮率(実測値)と、予め設定されたライン基準値(ライン毎の圧縮率の下限)とを比較し、圧縮プログラム5は、注目ラインの圧縮率(実測値)がライン基準値以上である場合に、S155の処理に移行し、注目ラインの圧縮率がライン基準値よりも小さい場合に、S185の処理に移行する。
In S145, the line compression
ステップ185(S185)において、パラメータ設定部540は、現在設定されている圧縮パラメータの次のレベルの圧縮パラメータを、圧縮パラメータテーブル542の中から選択して圧縮部500に設定し、圧縮プログラム5はS110の処理に戻る。
In step 185 (S185), the
S155において、圧縮プログラム5は、入力画像に含まれる全ラインの符号化処理が完了したか否かを判定し、全ラインの符号化処理が完了している場合に、S165の処理に移行し、これ以外の場合に、S180の処理に戻って、次のラインを注目ラインとして符号化処理を行う。
S165において、ページ圧縮率算出部570は、圧縮部500により圧縮された1ページ分の圧縮率(実測値)を算出する。
S170において、ページ圧縮率比較部580は、ページ圧縮率算出部570により算出された1ページ分の圧縮率(実測値)と、予め設定されたページ基準値(1ページに対して設定された圧縮率の下限)とを比較し、圧縮プログラム5は、1ページ全体の圧縮率(実測値)がページ基準値以上である場合に、符号化処理を終了し、1ページ全体の圧縮率がページ基準値よりも小さい場合に、S190の処理に移行する。
In S155, the compression program 5 determines whether or not the encoding process for all lines included in the input image has been completed, and when the encoding process for all lines has been completed, the process proceeds to S165. In other cases, the process returns to the process of S180, and the encoding process is performed using the next line as the target line.
In step S165, the page compression
In S170, the page compression
ステップ190(S190)において、基準値変更部590は、初期値として選択する圧縮パラメータのレベルを一つ引き上げる。すなわち、基準値変更部590は、パラメータ設定部542に対して、現時点で選択可能な圧縮パラメータ(圧縮パラメータテーブル542に登録されているパラメータ群)のうち、最低レベルの圧縮パラメータの選択を禁止し、パラメータ設定部542は、これに応じて、次のレベル(選択が禁止された圧縮パラメータの次のレベル)の圧縮パラメータを選択し圧縮部500に設定する。
圧縮プログラム5は、S110の処理に戻り、設定された圧縮パラメータを初期値として適用して、この注目ラインの符号化処理を再度やり直す。
In step 190 (S190), the reference
The compression program 5 returns to the process of S110, applies the set compression parameter as an initial value, and redoes the encoding process of this attention line.
このように、圧縮プログラム5は、圧縮パラメータテーブル542に登録された既定数の圧縮パラメータの中から、順に適用すべき圧縮パラメータを選択することにより、フォールバック回数に上限を設定することができる。 Thus, the compression program 5 can set an upper limit for the number of fallbacks by selecting a compression parameter to be applied in order from a predetermined number of compression parameters registered in the compression parameter table 542.
次に、上記フローチャートにおける符号化処理(S110)をより詳細に説明する。
図8は、図4,図5及び図7のフローチャートにおける符号化処理(S110)をより詳細に説明するフローチャートである。
図8に示すように、ステップ112(S112)において、フィルタ処理部510(図3)の第1予測部512a及び第2予測部512bは、スキャン順に注目ライン上の画素を注目画素に設定し、注目画素の周辺にある周辺画素の画素値を参照して、注目画素の画素値を予測し、予測値として画素値変更処理部514に対して出力する。
ステップ114(S114)において、画素値変更処理部514は、注目画素の画素値と予測値との差分が変更許容値(圧縮パラメータ)以内であるか否かを判断する。圧縮プログラム5は、画素値と予測値との差分が既定値以内である場合に、S116の処理に移行し、これ以外の場合に、S122の処理に移行する。
ステップ116(S116)において、画素値変更処理部514は、注目画素の画素値と最も近い予測値を、この注目画素の画素値として可逆圧縮部520に対して出力し、注目画素の実際の画素値と、最も近い予測値との差分を誤差分配処理部516に対して出力する。
ステップ118(S118)において、誤差分配処理部516は、注目画素の画素値と、最も近い予測値との差分を周辺画素に分配する。
Next, the encoding process (S110) in the flowchart will be described in more detail.
FIG. 8 is a flowchart for explaining the encoding process (S110) in the flowcharts of FIGS. 4, 5, and 7 in more detail.
As shown in FIG. 8, in step 112 (S112), the first prediction unit 512a and the
In step 114 (S114), the pixel value
In step 116 (S116), the pixel value
In step 118 (S118), the error
ステップ122(S122)において、可逆圧縮部520における第1予測部522a及び第2予測部522bは、フィルタ処理部510から入力された画素値を予測する。また、予測誤差算出部524は、所定の予測部522による予測値と、実際の画素値との差分を算出し、予測誤差値として選択部526に対して出力する。
なお、図3に示したフィルタ処理部510において、画素値変更処理部514が、注目画素の画素値を、第1予測部512aによる予測値に変更した場合には、第1予測部522aの予測が的中し、第2予測部512bによる予測値に変更した場合には、第2予測部522bによる予測が的中する。すなわち、フィルタ処理部510によるフィルタ処理により、可逆圧縮部520による予測の的中率が向上する。したがって、可逆圧縮部520による圧縮処理の圧縮率を高めることができる。
In step 122 (S122), the
In the filter processing unit 510 illustrated in FIG. 3, when the pixel value
選択部526は、いずれの予測部522が的中したかを判断する。第1予測部522aが的中した場合(S123:Yes)、選択部526は、第1予測部522aの識別情報をラン計数部528に対して出力する(S125)。また、第2予測部522bが的中した場合(S123:NoかつS124:Yes)、選択部526は、第2予測部522bの識別情報をラン計数部528及び符号生成部529に対して出力する(S125)。また、いずれの予測部522も的中しなかった場合(S123:NoかつS124:No)、選択部526は、予測誤差算出部524が算出した予測誤差値をラン計数部528及び符号生成部529に対して出力する(S126)。
ステップ127(S127)において、符号生成部529は、第1予測部522aのラン情報の符号、第2予測部522bの識別情報の符号、又は、予測誤差値の符号を生成する。
ステップ128(S128)において、圧縮部500は、注目ラインに含まれる全ての画素に対して処理が完了したか否かを判断し、全ての画素に対して処理が完了したと判断した場合に符号化処理(S110)を完了し、これ以外の場合にS112の処理に戻って、次の画素に対して上記と同様にS112からS127までの処理を行う。
The
In step 127 (S127), the
In step 128 (S128), the
以上説明したように、本実施形態におけるプリンタ装置2は、上記のような簡易な構成により、処理速度優先、画質優先及びこれらの折衷という複数の要求に対して柔軟に対応することができる。 As described above, the printer device 2 according to the present embodiment can flexibly cope with a plurality of requests of processing speed priority, image quality priority, and compromise with the simple configuration as described above.
2・・・プリンタ装置
5・・・圧縮プログラム
500・・・圧縮部
510・・・フィルタ処理部
514・・・画素値変換処理部
520・・・可逆圧縮部
540・・・パラメータ設定部
542・・・圧縮パラメータテーブル
550・・・ライン圧縮率算出部
560・・・ライン圧縮率比較部
570・・・ページ圧縮率算出部
580・・・ページ圧縮率比較部
590・・・基準値変更部
DESCRIPTION OF SYMBOLS 2 ... Printer apparatus 5 ...
Claims (11)
前記圧縮手段により圧縮された部分画像のデータ量を検出する部分データ量検出手段と、
前記部分データ量検出手段により検出された部分画像のデータ量と、部分画像について設定された基準部分データ量とを比較する部分データ量比較手段と、
前記部分データ量比較手段による比較結果に応じて、前記圧縮手段による圧縮処理を規定する圧縮パラメータを設定するパラメータ設定手段と
を有する画像圧縮装置。 Compression means for compressing an input image input as a compression target for each partial image that is a part of the input image;
Partial data amount detection means for detecting the data amount of the partial image compressed by the compression means;
A partial data amount comparing means for comparing the data amount of the partial image detected by the partial data amount detecting means with a reference partial data amount set for the partial image;
An image compression apparatus comprising: a parameter setting unit that sets a compression parameter that defines a compression process by the compression unit according to a comparison result by the partial data amount comparison unit.
前記パラメータ設定手段は、前記部分データ量比較手段により部分画像のデータ量がこの部分画像に対して設定された基準部分データ量を超えていると判定された場合に、設定されている圧縮パラメータよりも高い圧縮率を実現できる圧縮パラメータに変更する
請求項1に記載の画像圧縮装置。 The reference partial data amount is a value corresponding to a higher target compression ratio among the target compression ratio of the partial image and the target compression ratio of the entire input image,
When the partial data amount comparison unit determines that the data amount of the partial image exceeds the reference partial data amount set for the partial image, the parameter setting unit uses a compression parameter that has been set. The image compression apparatus according to claim 1, wherein the compression parameter is changed to a compression parameter capable of realizing a high compression ratio.
請求項2に記載の画像圧縮装置。 The compression unit applies the compression parameter changed by the parameter setting unit when the partial data amount comparison unit determines that the data amount of the partial image exceeds the reference partial data amount. The image compression apparatus according to claim 2, wherein the compression processing for the partial image is performed again.
前記全体データ量検出手段により検出された入力画像全体のデータ量と、入力画像全体について設定された基準全体データ量とを比較する全体データ量比較手段と
をさらに有し、
前記パラメータ設定手段は、前記全体データ量比較手段による比較結果と、前記部分データ量比較手段による比較結果とに応じて、前記圧縮パラメータを設定する
請求項1に記載の画像圧縮装置。 An overall data amount detection means for detecting the data amount of the entire input image compressed by the compression means;
A total data amount comparing means for comparing the data amount of the entire input image detected by the total data amount detecting means with a reference overall data amount set for the entire input image;
The image compression apparatus according to claim 1, wherein the parameter setting unit sets the compression parameter according to a comparison result by the total data amount comparison unit and a comparison result by the partial data amount comparison unit.
前記全体データ量比較手段による比較結果に応じて、各部分画像に対して設定される基準部分データ量を変更する基準値変更手段
をさらに有し、
前記部分データ量比較手段は、検出された部分画像のデータ量と、前記基準値変更手段により変更された基準部分データ量とを比較し、
前記パラメータ設定手段は、前記部分データ量比較手段による比較結果に応じて、前記圧縮パラメータを変更する
請求項4に記載の画像圧縮装置。 The sum of the initial values of the reference partial data amount is larger than the target data amount of the input image,
Reference value changing means for changing a reference partial data amount set for each partial image according to a comparison result by the whole data amount comparing means;
The partial data amount comparison unit compares the data amount of the detected partial image with the reference partial data amount changed by the reference value changing unit,
The image compression apparatus according to claim 4, wherein the parameter setting unit changes the compression parameter in accordance with a comparison result by the partial data amount comparison unit.
前記基準値変更手段は、前記全体データ量比較手段により入力画像全体のデータ量がこの入力画像全体に対して設定された基準全体データ量を超えると判定された場合に、各部分画像に対して設定される基準部分データ量を減少させる
請求項5に記載の画像圧縮装置。 The parameter setting unit compresses more than the set compression parameter when the partial data amount comparison unit determines that the data amount of the partial image exceeds the reference partial data amount set for the partial image. Change the compression parameter so that the rate is high,
The reference value changing unit is configured to perform the processing for each partial image when the total data amount comparing unit determines that the data amount of the entire input image exceeds the reference total data amount set for the entire input image. The image compression apparatus according to claim 5, wherein the set reference partial data amount is reduced.
をさらに有し、
前記パラメータ設定手段は、前記パラメータ記憶手段に記憶されている圧縮パラメータの中から、設定すべき圧縮バラメータを選択する
請求項1〜6のいずれかに記載の画像圧縮装置。 Parameter storage means including at least a limit compression parameter capable of realizing a compression ratio corresponding to the reference overall data amount for any partial image;
The image compression apparatus according to any one of claims 1 to 6, wherein the parameter setting unit selects a compression parameter to be set from compression parameters stored in the parameter storage unit.
前記パラメータ設定手段は、各部分画像について、複数の圧縮パラメータの中から、実現可能な圧縮率のより低い圧縮パラメータから、実現可能な圧縮率のより高い圧縮パラメータの順で選択する
請求項7に記載の画像圧縮装置。 The parameter storage means stores a plurality of compression parameters having different realizable compression rates,
The parameter setting means selects, for each partial image, a plurality of compression parameters in order of a compression parameter having a lower realizable compression rate and a compression parameter having a higher realizable compression rate. The image compression apparatus described.
前記圧縮手段は、前記入力画像を、1ライン単位で圧縮し、
前記部分データ量検出手段は、前記圧縮手段により圧縮された1ライン分のデータ量を検出し、
前記部分データ量比較手段は、前記部分データ量検出手段により検出された1ライン分のデータ量と、1ライン分の基準部分データ量とを比較する
請求項1に記載の画像圧縮装置。 The partial image corresponds to one line of the input image,
The compression means compresses the input image in units of one line,
The partial data amount detection means detects the data amount for one line compressed by the compression means,
The image compression apparatus according to claim 1, wherein the partial data amount comparison unit compares the data amount for one line detected by the partial data amount detection unit with a reference partial data amount for one line.
圧縮された部分画像のデータ量を検出し、
検出された部分画像のデータ量と、部分画像について設定された基準部分データ量とを比較し、
部分画像のデータ量と基準部分データ量との比較結果に応じて、圧縮処理を規定する圧縮パラメータを変更する
画像圧縮方法。 The input image input as a compression target is compressed for each partial image that is a part of the input image,
Detect the amount of compressed partial image data,
Compare the data amount of the detected partial image with the reference partial data amount set for the partial image,
An image compression method for changing a compression parameter that defines a compression process in accordance with a comparison result between a partial image data amount and a reference partial data amount.
圧縮対象として入力された入力画像を、この入力画像の一部である部分画像毎に圧縮するステップと、
圧縮された部分画像のデータ量を検出するステップと、
検出された部分画像のデータ量と、部分画像について設定された基準部分データ量とを比較するステップと、
部分画像のデータ量と基準部分データ量との比較結果に応じて、圧縮処理を規定する圧縮パラメータを変更するステップと
を前記画像圧縮装置のコンピュータに実行させるプログラム。 In an image compression apparatus including a computer,
Compressing an input image input as a compression target for each partial image that is a part of the input image;
Detecting the amount of data of the compressed partial image;
Comparing the amount of data of the detected partial image with a reference partial data amount set for the partial image;
A program for causing the computer of the image compression apparatus to execute a step of changing a compression parameter defining compression processing according to a comparison result between the data amount of the partial image and the reference partial data amount.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004367379A JP2006174331A (en) | 2004-12-20 | 2004-12-20 | Image compression apparatus, image compression method, and program therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004367379A JP2006174331A (en) | 2004-12-20 | 2004-12-20 | Image compression apparatus, image compression method, and program therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006174331A true JP2006174331A (en) | 2006-06-29 |
Family
ID=36674563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004367379A Pending JP2006174331A (en) | 2004-12-20 | 2004-12-20 | Image compression apparatus, image compression method, and program therefor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006174331A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007148780A1 (en) | 2006-06-23 | 2007-12-27 | Japan Tobacco Inc. | 6-(heterocycle-substituted benzyl)-4-oxoquinoline compound and use of the same as hiv integrase inhibitor |
JP2009027664A (en) * | 2007-07-24 | 2009-02-05 | Fuji Xerox Co Ltd | Image processing unit and program |
JP2009027580A (en) * | 2007-07-23 | 2009-02-05 | Fuji Xerox Co Ltd | Information processor and program |
KR100946516B1 (en) | 2008-04-24 | 2010-03-11 | 엘지이노텍 주식회사 | Apparatus for encoding monitoring and method for operating the same |
JP2013162249A (en) * | 2012-02-02 | 2013-08-19 | Toshiba Corp | Image coding apparatus and method |
JP2016132105A (en) * | 2015-01-16 | 2016-07-25 | 京セラドキュメントソリューションズ株式会社 | Image formation device |
CN117708071A (en) * | 2024-02-06 | 2024-03-15 | 苔花科迈(西安)信息技术有限公司 | Processing method and device for coal mine equipment operation parameters based on big data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07236139A (en) * | 1994-02-21 | 1995-09-05 | Nippon Columbia Co Ltd | Data compressing device |
JP2002027256A (en) * | 2000-05-12 | 2002-01-25 | Xerox Corp | Method for compressing digital document by controlling picture quality undergoing various compression rate constraint |
JP2003101786A (en) * | 2001-09-25 | 2003-04-04 | Fuji Xerox Co Ltd | Picture processor |
JP2003333346A (en) * | 2002-03-07 | 2003-11-21 | Canon Inc | Image compression coding apparatus and control method therefor |
-
2004
- 2004-12-20 JP JP2004367379A patent/JP2006174331A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07236139A (en) * | 1994-02-21 | 1995-09-05 | Nippon Columbia Co Ltd | Data compressing device |
JP2002027256A (en) * | 2000-05-12 | 2002-01-25 | Xerox Corp | Method for compressing digital document by controlling picture quality undergoing various compression rate constraint |
JP2003101786A (en) * | 2001-09-25 | 2003-04-04 | Fuji Xerox Co Ltd | Picture processor |
JP2003333346A (en) * | 2002-03-07 | 2003-11-21 | Canon Inc | Image compression coding apparatus and control method therefor |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007148780A1 (en) | 2006-06-23 | 2007-12-27 | Japan Tobacco Inc. | 6-(heterocycle-substituted benzyl)-4-oxoquinoline compound and use of the same as hiv integrase inhibitor |
EP2368880A1 (en) | 2006-06-23 | 2011-09-28 | Japan Tobacco, Inc. | 6-(Heterocycle-Substituted Benzyl)-4-Oxoquinoline Compound and Use of the Same as HIV Integrase Inhibitor |
JP2009027580A (en) * | 2007-07-23 | 2009-02-05 | Fuji Xerox Co Ltd | Information processor and program |
JP2009027664A (en) * | 2007-07-24 | 2009-02-05 | Fuji Xerox Co Ltd | Image processing unit and program |
US8189936B2 (en) | 2007-07-24 | 2012-05-29 | Fuji Xerox Co., Ltd. | Image processing apparatus and computer readable medium storing program to encode data blocks based on feature indices |
KR100946516B1 (en) | 2008-04-24 | 2010-03-11 | 엘지이노텍 주식회사 | Apparatus for encoding monitoring and method for operating the same |
JP2013162249A (en) * | 2012-02-02 | 2013-08-19 | Toshiba Corp | Image coding apparatus and method |
JP2016132105A (en) * | 2015-01-16 | 2016-07-25 | 京セラドキュメントソリューションズ株式会社 | Image formation device |
US9549086B2 (en) | 2015-01-16 | 2017-01-17 | Kyocera Document Solutions Inc. | Image forming apparatus |
CN117708071A (en) * | 2024-02-06 | 2024-03-15 | 苔花科迈(西安)信息技术有限公司 | Processing method and device for coal mine equipment operation parameters based on big data |
CN117708071B (en) * | 2024-02-06 | 2024-05-28 | 苔花科迈(西安)信息技术有限公司 | Processing method and device for coal mine equipment operation parameters based on big data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4795161B2 (en) | Image processing apparatus, control method therefor, computer program, and computer-readable storage medium | |
JP4771288B2 (en) | Data processing apparatus and program | |
US6611620B1 (en) | Reversible coding method, reversible coding apparatus, and memory medium used therein | |
US20080010309A1 (en) | Data compression apparatus and data compressing program storage medium | |
JP4784810B2 (en) | Encoding apparatus and program | |
JP2798172B2 (en) | Image encoding / decoding device | |
JP2006174331A (en) | Image compression apparatus, image compression method, and program therefor | |
US20090028429A1 (en) | Image processing apparatus, computer readable medium storing program, method and computer data signal | |
US8189936B2 (en) | Image processing apparatus and computer readable medium storing program to encode data blocks based on feature indices | |
Hidayat et al. | Survey of performance measurement indicators for lossless compression technique based on the objectives | |
TW201313030A (en) | Coding device, decoding device, coding/decoding system, coding method, and decoding method | |
JP2005092858A (en) | Printing system, print request terminal, compression algorithm selecting program, and printing method | |
JP2004186934A (en) | Image processing system, image forming device, image processing method, and program | |
JP4622843B2 (en) | Image processing apparatus and program | |
JP2002369198A (en) | Encoding selection equipment, encoding equipment and its method | |
JP4600775B2 (en) | Image processing apparatus and program | |
JP4784814B2 (en) | Encoding apparatus, encoding method, and program | |
JP2005151382A (en) | Coding apparatus, coding method, and program thereof | |
JP2005151097A (en) | Coding apparatus, coding method, and program therefor | |
US6681049B1 (en) | Image encoding method and apparatus | |
JP2007281591A (en) | Image processing apparatus and program | |
US6801664B1 (en) | Method of image coding, image coding apparatus, and recording medium including image coding program | |
JP2005167552A (en) | Coding equipment, coding method, and program thereof | |
JP2007336056A (en) | Encoding device, encoding method and program | |
JP2006287487A (en) | Encoder, encoding method and program, and information recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20071120 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100204 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100209 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100408 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100423 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100618 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110307 |