JP2004032434A - Image processing apparatus and control method thereof - Google Patents
Image processing apparatus and control method thereof Download PDFInfo
- Publication number
- JP2004032434A JP2004032434A JP2002186758A JP2002186758A JP2004032434A JP 2004032434 A JP2004032434 A JP 2004032434A JP 2002186758 A JP2002186758 A JP 2002186758A JP 2002186758 A JP2002186758 A JP 2002186758A JP 2004032434 A JP2004032434 A JP 2004032434A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- compression
- image
- input
- 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.)
- Withdrawn
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、画像データを好適に所定のデータ量以下に圧縮する画像処理装置及びその制御方法に関する。
【0002】
【従来の技術】
従来からカラー画像データを取り扱う際に、そのデータ量の大きさが問題となっている。例えば、白黒画像として表現可能な二値画像を、RGBそれぞれ8ビットからなる標準的なカラー画像として表現する場合、同じ大きさ(サイズ)であっても24倍のデータ量が必要になる。すなわち、上記白黒画像データをハードディスクやメモリ等の記憶装置に記憶させる場合に比べて、同じ枚数のカラー画像データを記憶させるためには白黒画像データの24倍の記憶容量が必要になる。
【0003】
上述したように、コンピュータ内でカラー画像データを取り扱う場合、単純に考えても、白黒画像を取り扱う場合の24倍のメモリ容量及びハードディスク容量が必要になる。このことは、大きなコストアップにつながる。そのため、通常、カラー画像データを取り扱う場合には圧縮処理を施して、取り扱われるデータ量を小さくすることで各種機器に搭載するメモリ容量及びハードディスク容量を小さくし、コストアップを押さえるという手法がとられている。
【0004】
上記技術を適応した一般的なカラー複写機の構成について説明する。図10は、画像メモリを備えた従来のカラー複写機の全体構成の構成を示すブロック図である。図10に示すように、カラー複写機は、大きくリーダー部102と、プリンタ部109と、制御装置101とから構成されている。リーダー部9は、原稿用紙を搬送するための機能を持つ原稿給紙ユニット107と、原稿を読み取るための機能を持つスキャナユニット108とから構成される。
【0005】
また、制御装置8は、リーダー部102の原稿給紙ユニット107及びスキャナユニット108を制御して原稿の画像データを読み込むとともに、プリンタ部109を制御して画像データを記録用紙に出力してコピー機能を提供する。尚、制御装置101は、画像データを蓄積するメモリ105、メモリ105に蓄積する前にデータを圧縮する符号化ユニット104及び圧縮された画像データを復号する復号化ユニット103を備える。
【0006】
図11は、制御装置101と原稿給紙ユニット107及びスキャナユニット108との制御タイミングを説明するためのシーケンス図である。尚、各ユニット間の通信は、シリアル通信によるコマンド送信等の公知の技術によるものとする。
【0007】
まず、図示しない操作部ユニットからコピー動作開始要求コマンドが制御装置8に与えられる(ステップS201)。これによって、制御装置101は、原稿給紙ユニット107に対して原稿給紙要求コマンドを発行する(ステップS202)。これに応じて、原稿給紙ユニット107は給紙動作を行い(ステップS203)、給紙動作が完了した場合、制御装置101に対して給紙完了コマンドを発行する(ステップS204)。
【0008】
これに応じて、制御装置101は、スキャナユニット108に対してスキャン開始要求コマンドを発行する(ステップS205)。スキャナユニット108は、スキャン開始要求コマンドに応じて、スキャン準備完了コマンドを発行する(ステップS206)。その後、スキャナユニット108は、スキャン動作を開始し(ステップS207)、原稿を読み取って画像データを制御装置101に転送する(ステップS208)。また、スキャナユニット108は、スキャン動作が完了し画像を転送し終わると、制御装置101及び原稿給紙ユニット107に対してスキャン動作完了コマンドを発行する(ステップS209、S210)。
【0009】
画像データ転送終了を意味するスキャン動作完了コマンドを受信した制御装置101は、原稿給紙ユニット107に対して2枚目の原稿に対する給紙要求コマンドを発行する(ステップS211)。2枚目の原稿に対する給紙要求コマンドを受信した原稿給紙ユニット107は、スキャン動作完了コマンドを受けて、1枚目の原稿を排紙すると同時に2枚目の原稿を給紙する動作を行うことができる(ステップS212)。原稿交換動作完了後、原稿給紙ユニット107は、制御装置101に対して、2枚目の原稿の給紙完了コマンドを発行する(ステップS213)。
【0010】
さらに、制御装置101は、2枚目の原稿に対する給紙完了コマンドを受けて、スキャナユニット108に対してスキャン開始要求コマンドを発行する(ステップS214)。以降のシーケンスは、原稿枚数分、上述したシーケンスを繰り返すこととなる。
【0011】
また、図11は、原稿給紙ユニット107にセットされた原稿が2枚しかない場合の制御装置101と原稿給紙ユニット107及びスキャナユニット108との制御タイミングを説明するためのシーケンス図である。従って、図11に示す例では、3枚目の原稿に対する給紙要求(ステップS220)に対して、原稿給紙ユニット107は、2枚目の原稿の排紙動作を行った後に(ステップS221)、制御装置8に対して原稿終了通知を発行し(ステップS222)、原稿読み取り動作が終了することになる。
【0012】
【発明が解決しようとする課題】
しかしながら、図10における符号化ユニット104での圧縮処理方式として、より高圧縮率でコストアップの抑制が可能なJPEG圧縮等の可変長圧縮方式が用いられる場合、実際に画像圧縮処理を行うまで圧縮処理後の画像データのデータ量が確定しない。そのため、実際に画像データを読み取って圧縮処理を行った場合、ユーザが所望するデータ量以下に圧縮されないという問題が生じ得る。
【0013】
図12は、画像データの圧縮処理を行って画像データサイズが確定した後、画像データの再スキャンを行う場合の制御装置101と原稿給紙ユニット107及びスキャナユニット108との制御タイミングを説明するためのシーケンス図である。図12に示すように、制御装置101は、スキャナユニット108からの画像転送終了を待つ(ステップS301)。そして、当該画像データのサイズが確定した後、そのサイズが所望のサイズを超えていた場合には、制御装置101は、符号化ユニット104の設定を変えて、より高い圧縮率で画像が圧縮されるようにしてから、次の原稿の給紙要求コマンドを発行する代わりに再度スキャン開始要求コマンドを発行する(ステップS302)。
【0014】
上述したように、従来のカラー複写機では、再度同じ原稿に対して画像読み取りが行われることになる。当然ながら、従来のカラー複写機は、再スキャンに要する時間分、コピーの生産性が悪くなってしまうという問題がある。さらに、図12で示される例は、再スキャンが1回の場合であるが、対象画像データが複雑な画像等であって圧縮率が悪い画像の場合、さらに複数回の再スキャンの繰り返しが発生し、さらにコピーの生産性が悪くなってしまうという問題も発生する。
【0015】
本発明は、このような事情を考慮してなされたものであり、余分な再スキャンの繰り返しを極力減らして、画像データを所望のデータ量以下に効率良く圧縮することができる画像処理装置及びその制御方法を提供することを目的とする。
【0016】
【課題を解決するための手段】
上記課題を解決するために、本発明は、画像データを入力する画像入力手段と、入力された画像データを圧縮する圧縮手段と、圧縮された画像データを出力する画像出力手段とを備える画像処理装置であって、前記圧縮手段による前記画像データの圧縮中に、圧縮後の画像データのデータ量を推定する推定手段と、前記画像データが所定データ量以下に圧縮されないと推定される場合、前記画像入力手段に前記画像データを再入力させる再入力制御手段と、前記画像データの圧縮状況に基づいて、再入力される画像データを再圧縮するときの圧縮率を決定する圧縮率決定手段とをさらに備え、前記圧縮手段が、決定された圧縮率を用いて、再入力された画像データを再圧縮することを特徴とする。
【0017】
また、本発明に係る画像処理装置は、前記画像データを所定領域ごとに圧縮したときの該画像データのデータ量を累積加算するデータ量累積手段をさらに備え、前記推定手段が、累積加算されたデータ量と圧縮された領域数に基づいて、前記画像データが所定データ量以下に圧縮可能か否かを推定することを特徴とする。
【0018】
さらに、本発明に係る画像処理装置は、前記圧縮手段が、複数の圧縮率によって前記画像データの圧縮を可能とし、前記圧縮率決定手段が、前記画像データを圧縮処理中の圧縮率と前記複数の圧縮率と累積加算されたデータ量とに基づいて、該画像データを再圧縮するときの圧縮率を決定することを特徴とする。
【0019】
さらにまた、本発明に係る画像処理装置は、前記画像データの再入力及び再圧縮を実行させるタイミングを設定する設定手段と、設定されたタイミングに基づいて、前記再入力制御手段及び圧縮率決定手段に対して所定の処理動作を実行させる制御手段とをさらに備えることを特徴とする。
【0020】
さらにまた、本発明に係る画像処理装置は、前記画像入力手段が、PDLコントローラであることを特徴とする。
【0021】
さらにまた、本発明に係る画像処理装置は、前記画像入力手段が、光学的読取装置であることを特徴とする。
【0022】
さらにまた、本発明に係る画像処理装置は、前記圧縮手段が、JPEG圧縮方式を用いて前記画像データを圧縮することを特徴とする。
【0023】
【発明の実施の形態】
以下、図面を参照して、本発明の一実施形態に係る画像処理装置について詳細に説明する。
【0024】
<第1の実施形態>
図1は、画像データの入力部、蓄積部及び出力部を備える画像処理装置の構成を示すブロック図である。図1に示すように、本実施形態による画像処理装置は、ページ記述言語(PDL)レンダリング部1、リーダー部2、制御装置3及びプリンタ部4とから構成される。
【0025】
図1において、ページ記述レンダリング部1及びリーダ−部2は、圧縮される画像データの入力部に相当する。リーダー部2は、原稿用紙を搬送するための機能を持つ原稿給紙ユニット5と、原稿を読み取るための機能を持つスキャナユニット6から構成される。
【0026】
また、制御装置3は、リーダー部2の原稿給紙ユニット5及びスキャナユニット6を制御して、原稿の画像データを読み込むとともに、プリンタ部4を制御して画像データを記録用紙等に形成することによってコピー機能を提供するものである。
【0027】
図1に示すように、制御装置3は、画像入力系(ページ記述言語レンダリング部1又はリーダー部2からの画像入力)を切り替えるセレクタ7、圧縮用ブロックラインバッファ8、カラー画像符号化器9、圧縮バッファ10、ハードディスク(HDD)11、圧縮バッファ12、カラー画像復号器13及び展開用ブロックラインバッファ14とから構成される。
【0028】
本実施形態では、入力部からの信号は、スキャナユニット6やページ記述言語レンダリング部1からの入力信号がある。そして、本実施形態による画像処理装置を複写機として使用する場合は、セレクタ7を切り替えることによって、スキャナユニット6から、プリンタとして使用する場合はページ記述言語レンダリング部1から入力するように、用途に応じてセレクタ7を切り替える。
【0029】
圧縮ブロックラインバッファ8では、セレクタ7で切り替えられて入力された画像をM×N(画素)の大きさのタイルに分割する。この分割は、圧縮ブロックラインバッファ8に接続するカラー画像符号化器9での処理のために行われる。すなわち、カラー画像符号化器9では、JPEG圧縮方式によって画像データの圧縮符号化が行われる。従って、カラー画像符号化器9では、M×N(画素)の大きさのタイルに対して離散コサイン変換が施されるため、M、Nは、離散コサイン変換のためウィンドウサイズの倍数とする。
【0030】
例えば、カラー画像符号化器9で使用されるJPEG圧縮において、圧縮のためのウィンドウサイズを8×8(画素)とし、M=N=32とすると、32×32(画素)のタイルをさらに16個の8×8(画素)の領域に分割して、8×8(画素)単位でのJPEG圧縮が行われる。尚、本実施形態では、M=N=32として説明するが、この値に限定されるわけではない。
【0031】
カラー画像符号化器9では、32×32画素のタイル画像に含まれる16個の8×8(画素)ウィンドウに対して、周知のDCT変換を施した後量子化が行われる。本実施形態では、このときに用いられる量子化係数(以降、「量子化マトリクス」と呼ぶ。)をタイルごとに切り替えて設定できるようになっているものとする。本実施形態における量子化マトリックスの切り替えは、図示しないCPUによって、予めカラー画像符号化器9内に保持されている複数の量子化マトリックスを選択する選択信号を発生してカラー画像符号化器9に送出することにより行われるようにする。
【0032】
カラー画像符号化器9において符号化された画像データは、圧縮バッファ10を経由して、圧縮画像データとしてハードディスク(HDD)11に記憶される。
【0033】
次に、ハードディスク11に記憶された圧縮画像をプリンタ部4から出力する際には、ハードディスク11に記憶されている圧縮画像データを読み出し、カラー画像復号器13において以下の手順で復号処理して出力する。
【0034】
まず、画像を圧縮した際の量子化マトリクスに応じて、圧縮して記憶された画像データの復号化パラメータ(以降、「逆量子化マトリクス」と呼ぶ。)を切り替えて画像データを復号処理し、その結果を展開用ブロックラインバッファ14に出力する。
【0035】
すなわち、本発明に係る画像処理装置は、画像データを入力する画像入力手段と、入力された画像データを圧縮するカラー画像符号化器9と、圧縮された画像データを出力する画像出力手段とを備え、これらは制御装置3で制御される。そして、制御装置3は、カラー画像符号化器9による画像データの圧縮中に、圧縮後の画像データのデータ量を推定し、画像データが所定データ量以下に圧縮されないと推定される場合、画像入力手段に画像データを再入力させ、画像データの圧縮状況に基づいて、再入力される画像データを再圧縮するときの圧縮率を決定し、決定された圧縮率を用いて、カラー画像符号化器9に再入力された画像データを再圧縮させることを特徴とする。
【0036】
また、本発明は、画像入力手段が、スキャナユニット6であることを特徴とする。さらに、本発明は、カラー画像符号化器9が、JPEG圧縮方式を用いて画像データを圧縮することを特徴とする。
【0037】
図2は、制御装置3を画像データの符号化処理及び復号処理を実行する符号化処理部及び復号処理部として見た場合の細部構成を示すブロック図である。図2において、符号200は、図示しない画像入力機器から入力された画像信号を示しており、カラー信号の場合は、赤(R)、緑(G)、青(B)の3色で256階調の信号である。画像信号200は色変換器21に入力され、RGB信号を輝度色差信号(YCbCr)に変換される。次いで、離散コサイン変換(DCT)器22において、輝度色差信号のそれぞれを8×8(画素)単位で空間周波数変換(DCT変換)が行われる。
【0038】
さらに、量子化器23において、設定された量子化マトリクスを用いてDCT係数を量子化することにより、データ量が削減される。そして、可変長符号化器(VLC)器24において、削減された量子化値をさらにハフマン符号化処理で削減する。以上が符号化処理部の構成及び各部の動作であり、これによって圧縮された画像データは圧縮メモリ又は大容量記憶装置等の記憶装置25に記憶される。
【0039】
次に、記憶されたデータは以下の手順で復号される。まず、圧縮された画像データに対して可変長復号器(VLD)26でハフマンデコード化される。次いで、逆量子化器27で、予め設定された逆量子化マトリクスによってDCT係数値に戻される。さらに、IDCT器28で逆DCT変換が行われ輝度色差信号に戻される。さらにまた、色変換器29で輝度色差信号をRGB信号に戻される。このようにして、外部に出力されるカラー画像信号201が得られる。
【0040】
図3は、本実施形態で使用される8×8のDCT係数に対する量子化マトリクスの一例を示す図である。図3(a)は、最初に適用される量子化マトリクスT1を示し、図3(b)が、圧縮率を高くするために適用される量子化マトリクスT2、T3、T4…の例を示している。
【0041】
本実施形態においては、まず、量子化マトリックスT1で圧縮符号化を行い、所望のデータ量以下に画像データを圧縮できない場合、量子化ステップを粗くするマトリクス、例えば、量子化マトリックスT2、T3、T4…のいずれかを用いて圧縮を行うようにする。ここで、量子化マトリックスT2、T3、T4…のいずれかの量子化マトリクスを選択するかは、量子化マトリックスT1での圧縮状況により判断することになる。この処理の詳細については後述する。
【0042】
上述したように、本実施形態では、量子化マトリクスT1、T2、T3、T4…及びそれらに対応する逆量子化マトリクスは、図2に示される量子化器23及び逆量子化器27にあらかじめ記憶されているものとし、図示しないCPUによって画像データの圧縮時の量子化マトリクスに従ってどちらを使うかを切り替えるようにする。
【0043】
図4は、圧縮された画像データが圧縮用ブロックラインバッファ8及びハードディスク11に記憶されるときのデータ構造を示す概念図である。図4に示すように、画像データの先頭から順に、第1のタイルのヘッダ情報41、DCT符号化された画像情報42が格納され、同じ構成で第2のタイルに関する情報、第3のタイルに関する情報…と連続してデータが書き込まれている。このようにして、1ページ全体に含まれる最後のタイルまでの情報が書き込まれる。
【0044】
尚、各タイルのヘッダ情報には、圧縮データのデータサイズやタイルの番号、等が記録される。また同時に、画像データの量子化マトリクスとして、量子化マトリックスT1を使用したか、量子化マトリックスT2、T3、T4…を使用したかの情報も記録される。
【0045】
従って、符号化して記録された画像データを復号する際には、このヘッダ情報を参照して、使用された量子化マトリックスがT1かT2、T3、T4…かの情報を読み取って、それぞれに見合った逆量子化マトリクスを選択して逆量子化を実行すればよい。
【0046】
すなわち、本発明に係る画像処理装置では、カラー画像符号化器9が、複数の圧縮率によって画像データの圧縮を可能とする。そして、画像処理装置は、画像データを圧縮処理中の圧縮率と複数の圧縮率と累積加算されたデータ量とに基づいて、画像データを再圧縮するときの圧縮率を決定することを特徴とする。
【0047】
本実施形態では、上述したように画像データを32(画素)×32(ライン)単位のタイルに分割して、個々のタイルに対して圧縮及び伸張処理を行うものである。従って、本来1ページ分の画像を用いて行われるJPEG圧縮等の圧縮方式によっても、所定のタイル数までの画像サイズを累積することによって、1ページの途中における圧縮された画像のサイズが判明する。これによって、当該ページの残りの分の画像データのサイズを推定することにより、1ページ分全体の圧縮後の画像サイズを推定することが可能になる。
【0048】
尚、式(1)によって、所定のタイル数まで画像を読み取った時点での圧縮しなかった場合の1ページ分の画像データのサイズ、目標とする圧縮率、画像全体のタイルの個数、圧縮後の1ページ分の画像サイズを推定する所定のタイル数、所定タイル数における画像データサイズの関係を表すことができる。
【0049】
Sn・Pt>α・(1−x/X)+x・Sc/X (1)
但し、式(1)において、Snは圧縮しなかった場合の1ページ分の画像データのサイズ、Ptは目標とする圧縮率(1.0が全く圧縮しない場合)、αはまだ読み取っていない部分の画像データが達成すべき圧縮率、xは圧縮後の画像サイズを推定するための所定のタイル数、Xは画像データ1ページ分のタイル数、Scは所定のタイル数(x個)を読み取った時点での画像データのサイズの累積値を示す。
【0050】
図5は、1ページが主走査方向に14個で副走査方向に10個のタイルから構成される画像データを説明するための概要図である。図5に示される1ページ分の画像データのうち斜線で示されたタイルの部分(126個)まで読み込んだ時点では、式(1)の各パラメータとして次に示されるような値を適用することができる。尚、説明を簡単にするため、1タイルの画像は圧縮しない場合1(MB)であるものとし、まだ読み取っていない部分の画像データについては、符号化処理を行っても全く圧縮されないものとしてScの値を算出する。
【0051】
すなわち、Sn=140(MB)、Pt=1/8、α=1.0(すなわち、まだ読み取っていない部分の画像データは全く圧縮されないものとする。)、x=126、X=140、Sc<3.89(MB)である。
【0052】
すなわち、この例では、1ページ分の画像データのタイル数140個のうち、126個目のタイルを読み取る時点までは、画像データのサイズの累積値が必ず3.89(MB)よりも小さくなければならず、もし、累積値がこ3.89(MB)よりも大きくなれば再スキャンを行うことになる。
【0053】
すなわち、本発明に係る画像処理装置は、画像データを所定領域ごとに圧縮したときの画像データのデータ量を累積加算し、累積加算されたデータ量と圧縮された領域数に基づいて、画像データが所定データ量以下に圧縮可能か否かを推定することを特徴とする。
【0054】
また、本発明に係る画像処理装置は、カラー画像符号化器9が複数の圧縮率によって画像データの圧縮を可能とする。そして、画像処理装置は、画像データを圧縮処理中の圧縮率と複数の圧縮率と累積加算されたデータ量とに基づいて、画像データを再圧縮するときの圧縮率を決定することを特徴とする。
【0055】
図6は、本実施形態による画像処理装置の制御装置3のスキャンシーケンスにおける画像読み取り制御手順について説明するためのフローチャートである。まず、制御装置3は、読取動作開始要求待ち状態になっている(ステップS1701)。制御装置3は、図示しない操作部ユニットからの読取動作開始要求を受信すると、原稿給紙ユニット5に対して1枚目の原稿の給紙要求コマンドを発行する(ステップS1702)。
【0056】
その後、制御装置3は、原稿給紙ユニット5からの給紙完了通知待ちの状態となる(ステップS1703)。そして、原稿給紙ユニット5から給紙完了通知を受信すると、制御装置3は、スキャン開始要求を発行して画像データを受信し、タイル画像ごとに符号化処理を施して圧縮し、次の原稿を読み取るのか、或いは同じ原稿を量子化マトリクスを変更して再度スキャンするのかを判断する(ステップS1704)。この処理の詳細については後述する。
【0057】
その後、制御装置3は、スキャナユニット6からの、画像データの転送終了を示すスキャン完了通知待ちの状態となる(ステップS1705)。そして、直前に読み込み終えた原稿が最終のものである場合は読取動作を終了し、まだ読み取るべき原稿が原稿給紙ユニット5に残っていれば、制御装置3は次の原稿の給紙完了通知待ちの状態に移行する(ステップS1706)。
【0058】
図7は、制御装置3の再スキャン処理及び圧縮処理における制御の手順を説明するためのフローチャートである。
【0059】
まず、制御装置3は、画像データを受信する前に、読み取った画像データサイズの累積値、受信した画像のタイル数を計数しておくカウンタの値を初期化する(ステップS1501)。次に、制御装置3は、次に行うスキャン動作が再スキャンかどうかを、再スキャン回数を計数するカウンタの値を参照して判断する(ステップS1502)。その結果、再スキャンであれば(Yes)、再スキャン回数が予め決められた回数以下であるかどうかチェックする(ステップS1503)。一方、再スキャンでない場合(No)、ステップS1505に進む。
【0060】
ステップS1503でのチェックの結果、再スキャン回数が所定回数よりも多い場合(No)、エラーとして読取動作を終了する。一方、所定回数以下の場合(Yes)、前回スキャンの圧縮状況に応じて量子化マトリクスを決定する(ステップS1504)。例えば、最初の読取スキャンにおいて、前述した126個目のタイルで、画像データサイズの累積値Scが3.89(MB)を超えたとすると、これより逆算して達成可能な圧縮率を予測する。
【0061】
例えば、140個中126個目のタイルまで圧縮できるようであれば、あと少し圧縮率を上げれば良く前述のT2の量子化マトリクスを選択する。また、例えば50個目のタイルで画像データサイズが足りなくなるようであれば大幅に上げる必要があり、より高圧縮になるT3やT4の量子化マトリクスを選択することになる。尚、量子化マトリクスに応じて、圧縮率を推定する所定のタイル数、そのタイル数における画像データの所定のサイズ等も決定する。
【0062】
一方、再スキャンでなく、当該原稿に対する最初の読取スキャンであれば、再スキャン回数を計数するカウンタを初期化し、量子化マトリクスも初期値にセットする(ステップS1505)。また、量子化マトリクスに応じて、圧縮率を推定する所定のタイル数、そのタイル数における画像データの所定のサイズを決定する。
【0063】
ステップS1504、S1505での処理の後、画像データを受信する準備が整うので、制御装置3は、スキャン開始要求コマンドをスキャナユニット6に対して発行する(ステップS1506)。その後、制御装置3は、スキャナユニット6からのスキャン準備完了通知待ちの状態となる(ステップS1507)。
【0064】
スキャン準備完了通知を受信すると、制御装置3は、タイル画像受信待ちの状態になる(ステップS1508)。そして、タイル画像を受信すると、制御装置3は、画像データのサイズを累積するカウンタに受信したタイル画像に符号化処理を施して圧縮した後のサイズを加算する(ステップS1509)。また、受信タイル数を計数するカウンタを1つ加算する(ステップS1510)。
【0065】
次いで、画像データサイズ累積値カウンタの値が、予め定められた所定のサイズを超えているかどうかを判定する(ステップS1511)。その結果、もし超えている場合(Yes)、制御装置3は再スキャン回数を計数するカウンタを加算し(ステップS1512)、スキャン完了通知待ちの状態になる(ステップS1513)。
【0066】
その結果、スキャン完了通知を受信した場合(Yes)、再スキャンのシーケンスに移行する。この場合、原稿給紙ユニット5に対して次の原稿の給紙要求コマンドを発行しないまま画像読取スキャンを行うことになるため、前回読み込んだ原稿と同じ原稿に対して画像読取スキャンを行う、すなわち再スキャンを行うことになる。
【0067】
一方、ステップS1511で超えていないと判定された場合(No)、次に受信タイル数が所定の個数を超えていないかどうかをチェックする(ステップS1514)。その結果、超えていない場合(No)、制御装置3はタイル画像受信待ち状態に移行する。一方、超えている場合(Yes)、所定個数のタイルを受信しても画像データの累積サイズが所定サイズ以下であったので、制御装置3は、残りのタイルを受信しなくても、その1ページの画像データはあるサイズ以下に収まるものと推定し、次の原稿の給紙要求コマンドを原稿給紙ユニットに対して発行する(ステップS1515)。
【0068】
上述したように、圧縮率未達のたびに量子化マトリクスをT1、T2、T3、T4、…と順次圧縮率を上げていくのではなく、前回の圧縮率に基づいて、T2、T3、T4…いずれかの量子化マトリクスを選択するので、余分な再スキャンの回数を減らすことが可能となる。
【0069】
図8及び図9は、それぞれ、再スキャンが発生しない場合、再スキャンが発生した場合の制御装置3による原稿給紙ユニット5とスキャナユニット6との間の動作シーケンスを示す図である。
【0070】
以下、図8を用いて、制御装置3による原稿給紙ユニット5とスキャナユニット6との制御タイミングを説明する。尚、ユニット間の通信は、シリアル通信によるコマンド送信等の公知の技術によるものとする。
【0071】
まず、図示しない操作部ユニットからコピー動作開始要求コマンドが制御装置3に与えられる(ステップS801)。これによって、制御装置3は、原稿給紙ユニット5に対して原稿給紙要求コマンドを発行する(ステップS802。これに応じて原稿給紙ユニット5は給紙動作を行い(ステップS803)、給紙動作が完了すると、制御装置3に対して給紙完了コマンドを発行する(ステップS804)。
【0072】
これに応じて制御装置3は、スキャナユニット6に対してスキャン開始要求コマンドを発行する(ステップS805)。スキャナユニット6は、スキャン開始要求コマンドに応じて、スキャン準備完了コマンドを発行した後(ステップS806)、スキャン動作を開始し(ステップS807)、原稿を読みとって画像データを制御装置に転送する(ステップS808)。
【0073】
尚、画像データ受信中、所定のタイル数の画像を受け取った時点で、画像データの累積サイズが所定サイズ以下であれば、制御装置3は原稿給紙ユニット5に対して、2枚目の原稿に対する給紙要求コマンドを発行する(ステップS809)。
【0074】
スキャナユニット5は、スキャン動作が完了し画像を転送し終わると、制御装置3および原稿給紙ユニット5に対してスキャン動作完了コマンドを発行する(ステップS810、S811)。
【0075】
すでに2枚目の原稿に対する給紙要求コマンドを受信済みの原稿給紙ユニット5は、スキャン動作完了コマンドを受けて、1枚目の原稿を排紙すると同時に2枚目の原稿を給紙する動作を行うことができる(ステップS812)。原稿交換動作完了後、原稿給紙ユニット5は、制御装置3に対して2枚目の原稿の給紙完了コマンドを発行する(ステップS813)。
【0076】
あらかじめ1枚目の原稿に対するスキャン動作完了コマンドを受信済みの制御装置3は、2枚目の原稿に対する給紙完了コマンドを受けて、スキャナユニット6に対してスキャン開始要求コマンドを発行する(ステップS814)。以下は、原稿枚数分上述したシーケンスを繰り返す。
【0077】
尚、図8に示した例では、原稿給紙ユニット5にセットされた原稿が2枚しかない場合を想定しているため、3枚目の原稿に対する給紙要求に対して、原稿給紙ユニット5は2枚目の原稿の排紙動作を行い(ステップS815)、その後、制御装置3に対して原稿終了通知を発行して(ステップS816)、読み取り動作が終了する。
【0078】
次に、再スキャンが発生した場合の制御装置3による原稿給紙ユニット5及びスキャナユニット6との制御タイミングについて図9を用いて説明する。
【0079】
まず、図示しない操作部ユニットからコピー動作開始要求コマンドが制御装置3に与えられる(ステップS901)。これによって、制御装置3は、原稿給紙ユニット5に対して原稿給紙要求コマンドを発行する(ステップS902)。そして、これに応じて原稿給紙ユニット5は給紙動作を行い(ステップS903)、給紙動作が完了すると、制御装置3に対して給紙完了コマンドを発行する(ステップS904)。
【0080】
これに応じて制御装置3は、スキャナユニット6に対してスキャン開始要求コマンドを発行する(ステップS905)。そして、スキャナユニット6は、スキャン開始要求コマンドに応じて、スキャン準備完了コマンドを発行し(ステップS906)、その後スキャン動作を開始し(ステップS907)、原稿を読みとって画像データを制御装置に転送する(ステップS908)。
【0081】
ここで、画像データ受信中、所定のタイル数の画像を受け取るまでに、画像データの累積サイズが所定サイズよりも大きくなれば、制御装置3は原稿給紙ユニット5に対して、2枚目の原稿に対する給紙要求コマンドを発行することなく、スキャン動作完了コマンドの受信待ち状態となる。
【0082】
そして、スキャン動作が完了し画像を転送し終わると、制御装置3及び原稿給紙ユニット5に対してスキャン動作完了コマンドを発行する(ステップS909、S910)。これを受けて制御装置3は、スキャナユニット6に対してスキャン開始要求コマンドを発行する(ステップS911)。ここで、2枚目の原稿に対する給紙要求コマンドは発行されていないので、原稿給紙ユニット5は、次の原稿の給紙を行っておらず、結果として1枚目の原稿を再度スキャンして読み込むことになる。以下は、図8で示されたシーケンスと同様である。
【0083】
<その他の実施形態>
また、上述した実施形態では、画像データの入力ソースがリーダー部2の場合の説明を行ったが、入力ソースが図1におけるページ記述言語レンダリング部1の場合でも、全く同様に再レンダリングの制御を行うことは可能である。すなわち、本発明に係る画像処理装置は、画像入力手段が、PDLコントローラであることを特徴とする。
【0084】
尚、本発明は、複数の機器(例えば、ホストコンピュータ、インタフェース機器、リーダー、プリンタ等)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置等)に適用してもよい。
【0085】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記録媒体(または記憶媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記録媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記録媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記録した記録媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0086】
さらに、記録媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0087】
本発明を上記記録媒体に適用する場合、その記録媒体には、先に説明したフローチャートに対応するプログラムコードが格納されることになる。
【0088】
上述したように、本発明によれば、再圧縮時には前回の圧縮時の圧縮状況を元に目標圧縮率を決定して符号量制御を行うので、余分な再スキャンの繰り返しを極力減らすことができ、機器の生産性悪化をできる限り抑制しつつ所望の圧縮率を達成することが可能である。また、本発明によれば、画像に応じてより適切な圧縮制御パラメータで圧縮を行い、パフォーマンスの低下を防止した上で、できるだけ高品質な画像を形成することができる。
【0089】
【発明の効果】
以上説明したように、本発明によれば、余分な再スキャンの繰り返しを極力減らして、画像データを所望のデータ量以下に効率良く圧縮することができる。
【図面の簡単な説明】
【図1】画像データの入力部、蓄積部及び出力部を備える画像処理装置の構成を示すブロック図である。
【図2】制御装置3を画像データの符号化処理及び復号処理を実行する符号化処理部及び復号処理部として見た場合の細部構成を示すブロック図である。
【図3】本実施形態で使用される8×8のDCT係数に対する量子化マトリクスの一例を示す図である。
【図4】圧縮された画像データが圧縮用ブロックラインバッファ8及びハードディスク11に記憶されるときのデータ構造を示す概念図である。
【図5】1ページが主走査方向に14個で副走査方向に10個のタイルから構成される画像データを説明するための概要図である。
【図6】本実施形態による画像処理装置の制御装置3のスキャンシーケンスにおける画像読み取り制御手順について説明するためのフローチャートである。
【図7】制御装置3の再スキャン処理及び圧縮処理における制御の手順を説明するためのフローチャートである。
【図8】再スキャンが発生しない場合の制御装置3による原稿給紙ユニット5とスキャナユニット6との間の動作シーケンスを示す図である。
【図9】再スキャンが発生した場合の制御装置3による原稿給紙ユニット5とスキャナユニット6との間の動作シーケンスを示す図である。
【図10】画像メモリを備えた従来のカラー複写機の全体構成の構成を示すブロック図である。
【図11】制御装置101と原稿給紙ユニット107及びスキャナユニット108との制御タイミングを説明するためのシーケンス図である。
【図12】画像データの圧縮処理を行って画像データサイズが確定した後、画像データの再スキャンを行う場合の制御装置101と原稿給紙ユニット107及びスキャナユニット108との制御タイミングを説明するためのシーケンス図である。
【符号の説明】
1 ページ記述言語レンダリング部
2 リーダー部
3 制御装置
4 プリンタ部
5 原稿給紙ユニット
6 スキャナユニット
7 セレクタ
8 圧縮用ブロックラインバッファ
9 カラー画像符号化器
11 ハードディスク
13 カラー画像復号化器
14 展開用ブロックラインバッファ[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus for suitably compressing image data to a predetermined data amount or less and a control method thereof.
[0002]
[Prior art]
Conventionally, when handling color image data, the size of the data has been a problem. For example, when a binary image that can be expressed as a black and white image is expressed as a standard color image composed of 8 bits for each of RGB, a data amount that is 24 times as large as the same size (size) is required. That is, compared to the case where the black-and-white image data is stored in a storage device such as a hard disk or a memory, storing the same number of color image data requires a
[0003]
As described above, when color image data is handled in a computer, a memory capacity and a hard disk capacity that are 24 times larger than when a monochrome image is handled are required. This leads to a large cost increase. Therefore, when color image data is handled, usually, a compression process is performed to reduce the amount of data to be handled, thereby reducing a memory capacity and a hard disk capacity mounted on various devices and suppressing a cost increase. ing.
[0004]
The configuration of a general color copying machine to which the above technique is applied will be described. FIG. 10 is a block diagram showing the configuration of the overall configuration of a conventional color copying machine having an image memory. As shown in FIG. 10, the color copying machine mainly includes a
[0005]
The
[0006]
FIG. 11 is a sequence diagram for explaining control timings of the
[0007]
First, a copy operation start request command is given to the
[0008]
In response, the
[0009]
The
[0010]
Further, the
[0011]
FIG. 11 is a sequence diagram for explaining control timings of the
[0012]
[Problems to be solved by the invention]
However, when a variable-length compression method such as JPEG compression is used as a compression processing method in the
[0013]
FIG. 12 illustrates control timings of the
[0014]
As described above, in the conventional color copying machine, the image is read again from the same document. As a matter of course, the conventional color copying machine has a problem in that the productivity of copying is deteriorated by the time required for rescanning. Further, the example shown in FIG. 12 is a case where rescanning is performed once. However, if the target image data is a complex image or the like and an image having a low compression ratio, rescanning is repeated a plurality of times. In addition, there arises a problem that the productivity of copying is further reduced.
[0015]
The present invention has been made in view of such circumstances, and an image processing apparatus and an image processing apparatus capable of efficiently reducing image data to a desired data amount or less by minimizing redundant rescanning as much as possible. It is an object to provide a control method.
[0016]
[Means for Solving the Problems]
In order to solve the above problem, the present invention provides an image processing apparatus comprising: an image input unit that inputs image data; a compression unit that compresses the input image data; and an image output unit that outputs the compressed image data. An apparatus, wherein during the compression of the image data by the compression unit, an estimation unit for estimating a data amount of the compressed image data, and when it is estimated that the image data is not compressed to a predetermined data amount or less, Re-input control means for re-inputting the image data to the image input means, and compression rate determining means for determining a compression rate when re-compressing the re-input image data based on the compression state of the image data. The image processing apparatus further includes a compression unit that recompresses the re-input image data using the determined compression ratio.
[0017]
Further, the image processing apparatus according to the present invention further includes a data amount accumulating means for accumulating and adding a data amount of the image data when the image data is compressed for each predetermined region, and wherein the estimating means includes It is characterized by estimating whether or not the image data can be compressed to a predetermined data amount or less based on the data amount and the number of compressed areas.
[0018]
Further, in the image processing apparatus according to the present invention, the compression unit enables the compression of the image data by a plurality of compression ratios, and the compression ratio determination unit determines the compression ratio during the compression processing of the image data and the plurality of compression ratios. The compression ratio when re-compressing the image data is determined on the basis of the compression ratio and the accumulated data amount.
[0019]
Still further, the image processing apparatus according to the present invention further comprises a setting unit for setting a timing for executing the re-input and re-compression of the image data, and the re-input control unit and the compression ratio determining unit based on the set timing. And a control unit for executing a predetermined processing operation on the control unit.
[0020]
Still further, in the image processing apparatus according to the present invention, the image input unit is a PDL controller.
[0021]
Furthermore, an image processing apparatus according to the present invention is characterized in that the image input means is an optical reading device.
[0022]
Still further, the image processing apparatus according to the present invention is characterized in that the compression means compresses the image data using a JPEG compression method.
[0023]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an image processing apparatus according to an embodiment of the present invention will be described in detail with reference to the drawings.
[0024]
<First embodiment>
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus including an image data input unit, a storage unit, and an output unit. As shown in FIG. 1, the image processing apparatus according to the present embodiment includes a page description language (PDL)
[0025]
In FIG. 1, a page
[0026]
The
[0027]
As shown in FIG. 1, the
[0028]
In the present embodiment, signals from the input unit include input signals from the
[0029]
The compressed
[0030]
For example, in JPEG compression used in the
[0031]
The
[0032]
The image data encoded by the
[0033]
Next, when outputting the compressed image stored in the
[0034]
First, in accordance with the quantization matrix at the time of compressing the image, the decoding parameter of the compressed and stored image data (hereinafter, referred to as “inverse quantization matrix”) is switched to decode the image data. The result is output to the development
[0035]
That is, the image processing apparatus according to the present invention includes image input means for inputting image data, a
[0036]
Further, the present invention is characterized in that the image input means is the
[0037]
FIG. 2 is a block diagram illustrating a detailed configuration when the
[0038]
Further, the
[0039]
Next, the stored data is decoded in the following procedure. First, Huffman decoding is performed on the compressed image data by a variable length decoder (VLD) 26. Next, in the
[0040]
FIG. 3 is a diagram illustrating an example of a quantization matrix for 8 × 8 DCT coefficients used in the present embodiment. 3A shows an example of the quantization matrix T1 applied first, and FIG. 3B shows an example of the quantization matrices T2, T3, T4... Applied to increase the compression ratio. I have.
[0041]
In the present embodiment, first, compression encoding is performed using the quantization matrix T1, and if image data cannot be compressed to a desired data amount or less, a matrix for coarsening the quantization step, for example, quantization matrices T2, T3, T4 The compression is performed using any one of. Here, which one of the quantization matrices T2, T3, T4,... Is selected depends on the compression state of the quantization matrix T1. Details of this processing will be described later.
[0042]
As described above, in the present embodiment, the quantization matrices T1, T2, T3, T4... And the corresponding inverse quantization matrices are stored in the
[0043]
FIG. 4 is a conceptual diagram showing a data structure when the compressed image data is stored in the compression
[0044]
The header information of each tile records the data size of the compressed data, the number of the tile, and the like. At the same time, information as to whether the quantization matrix T1 is used or the quantization matrices T2, T3, T4,.
[0045]
Therefore, when decoding the encoded and recorded image data, the information of whether the used quantization matrix is T1, T2, T3, T4,... The inverse quantization may be performed by selecting the inverse quantization matrix.
[0046]
That is, in the image processing device according to the present invention, the
[0047]
In the present embodiment, as described above, image data is divided into tiles of 32 (pixel) × 32 (line) units, and compression and decompression processing is performed on each tile. Therefore, the size of the compressed image in the middle of one page can be determined by accumulating the image size up to a predetermined number of tiles even by a compression method such as JPEG compression that is originally performed using an image for one page. . This makes it possible to estimate the compressed image size of the entire page by estimating the size of the remaining image data of the page.
[0048]
According to the equation (1), the size of the image data for one page, the target compression ratio, the number of tiles of the entire image, and the A predetermined number of tiles for estimating the image size of one page, and the relationship between the image data size at the predetermined number of tiles can be represented.
[0049]
Sn · Pt> α · (1-x / X) + x · Sc / X (1)
In equation (1), Sn is the size of image data for one page when not compressed, Pt is a target compression ratio (1.0 is not compressed at all), and α is a part that has not been read yet. X is a predetermined number of tiles for estimating the image size after compression, X is a number of tiles for one page of image data, and Sc is a predetermined number of tiles (x). It shows the cumulative value of the size of the image data at the point in time.
[0050]
FIG. 5 is a schematic diagram for explaining image data in which one page includes 14 tiles in the main scanning direction and 10 tiles in the sub-scanning direction. At the time when up to the tiled portion (126 pieces) indicated by hatching in the image data for one page shown in FIG. 5, the following values are applied as the parameters of the equation (1). Can be. For simplicity of explanation, it is assumed that the image of one tile is 1 (MB) when not compressed, and that the image data of the part that has not been read is not compressed at all even if the encoding process is performed. Is calculated.
[0051]
That is, Sn = 140 (MB), Pt = 1/8, α = 1.0 (that is, image data of a part that has not been read is not compressed at all), x = 126, X = 140, Sc <3.89 (MB).
[0052]
That is, in this example, the cumulative value of the size of the image data must be smaller than 3.89 (MB) until the 126th tile is read out of the 140 tiles of the image data for one page. If the cumulative value is larger than 3.89 (MB), rescanning is performed.
[0053]
That is, the image processing apparatus according to the present invention cumulatively adds the data amount of the image data when the image data is compressed for each predetermined region, and based on the cumulatively added data amount and the number of compressed regions, Is estimated to be able to be compressed to a predetermined data amount or less.
[0054]
Further, the image processing device according to the present invention enables the
[0055]
FIG. 6 is a flowchart for explaining an image reading control procedure in the scan sequence of the
[0056]
Thereafter, the
[0057]
After that, the
[0058]
FIG. 7 is a flowchart for explaining a control procedure in the re-scanning process and the compression process of the
[0059]
First, before receiving the image data, the
[0060]
If the result of the check in step S1503 is that the number of rescans is greater than the predetermined number (No), the reading operation is terminated as an error. On the other hand, if the number is equal to or less than the predetermined number (Yes), the quantization matrix is determined according to the compression state of the previous scan (step S1504). For example, in the first reading scan, if the cumulative value Sc of the image data size exceeds 3.89 (MB) in the 126th tile described above, the achievable compression ratio is predicted by performing an inverse calculation.
[0061]
For example, if it is possible to compress up to the 126th tile out of 140, the compression ratio may be increased a little more, and the above-described T2 quantization matrix is selected. Further, if the image data size becomes insufficient for the 50th tile, for example, it is necessary to greatly increase the size of the image data, and a T3 or T4 quantization matrix with higher compression is selected. The predetermined number of tiles for estimating the compression ratio, the predetermined size of the image data at the number of tiles, and the like are also determined according to the quantization matrix.
[0062]
On the other hand, if the scan is not the rescan but the first scan for the document, the counter for counting the number of rescans is initialized, and the quantization matrix is also set to the initial value (step S1505). Further, a predetermined number of tiles for estimating a compression ratio and a predetermined size of image data at the number of tiles are determined according to the quantization matrix.
[0063]
After the processing in steps S1504 and S1505, preparation for receiving the image data is ready, so the
[0064]
Upon receiving the scan preparation completion notification, the
[0065]
Next, it is determined whether or not the value of the image data size cumulative value counter exceeds a predetermined size (step S1511). As a result, if it exceeds (Yes), the
[0066]
As a result, when a scan completion notification is received (Yes), the process shifts to a rescan sequence. In this case, since the image reading scan is performed without issuing the next document feed request command to the
[0067]
On the other hand, if it is determined in step S1511 that the number does not exceed (No), it is next checked whether the number of received tiles does not exceed a predetermined number (step S1514). As a result, if not exceeded (No), the
[0068]
As described above, instead of sequentially increasing the compression ratio of the quantization matrix to T1, T2, T3, T4,... Each time the compression ratio has not been reached, T2, T3, T4 is determined based on the previous compression ratio. ... Since one of the quantization matrices is selected, the number of unnecessary rescans can be reduced.
[0069]
FIGS. 8 and 9 are diagrams showing an operation sequence between the
[0070]
Hereinafter, the control timing of the
[0071]
First, a copy operation start request command is given from the operation unit (not shown) to the control device 3 (step S801). As a result, the
[0072]
In response, the
[0073]
If the accumulated size of the image data is equal to or smaller than the predetermined size at the time when the image of the predetermined number of tiles is received during the reception of the image data, the
[0074]
When the scanning operation is completed and the image transfer is completed, the
[0075]
The
[0076]
The
[0077]
In the example shown in FIG. 8, it is assumed that there are only two originals set in the
[0078]
Next, the control timing of the
[0079]
First, a copy operation start request command is given from the operation unit (not shown) to the control device 3 (step S901). As a result, the
[0080]
In response, the
[0081]
Here, if the accumulated size of the image data is larger than the predetermined size before the image of the predetermined number of tiles is received during the reception of the image data, the
[0082]
Then, when the scanning operation is completed and the image transfer is completed, a scanning operation completion command is issued to the
[0083]
<Other embodiments>
Further, in the above-described embodiment, the case where the input source of the image data is the
[0084]
Note that the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but a device including one device (for example, a copying machine, a facsimile machine, etc.). May be applied.
[0085]
Further, an object of the present invention is to supply a recording medium (or a recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or an apparatus, and a computer (or a CPU or a CPU) of the system or the apparatus. Needless to say, the present invention can also be achieved by the MPU) reading and executing the program code stored in the recording medium. In this case, the program code itself read from the recording medium implements the functions of the above-described embodiment, and the recording medium on which the program code is recorded constitutes the present invention. When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.
[0086]
Further, after the program code read from the recording medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the card or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[0087]
When the present invention is applied to the recording medium, the recording medium stores program codes corresponding to the flowcharts described above.
[0088]
As described above, according to the present invention, at the time of recompression, the code amount control is performed by determining the target compression rate based on the compression state at the time of the previous compression, so that unnecessary rescanning can be minimized. In addition, it is possible to achieve a desired compression ratio while minimizing deterioration of the productivity of the device. Further, according to the present invention, it is possible to form an image of as high quality as possible while performing compression with a more appropriate compression control parameter according to an image to prevent a decrease in performance.
[0089]
【The invention's effect】
As described above, according to the present invention, image data can be efficiently compressed to a desired data amount or less by minimizing unnecessary rescanning.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus including an input unit, an accumulation unit, and an output unit for image data.
FIG. 2 is a block diagram illustrating a detailed configuration when the
FIG. 3 is a diagram illustrating an example of a quantization matrix for 8 × 8 DCT coefficients used in the present embodiment.
FIG. 4 is a conceptual diagram showing a data structure when compressed image data is stored in a compression
FIG. 5 is a schematic diagram for explaining image data in which one page includes 14 tiles in the main scanning direction and 10 tiles in the sub-scanning direction.
FIG. 6 is a flowchart for explaining an image reading control procedure in a scan sequence of the
FIG. 7 is a flowchart illustrating a control procedure in a rescan process and a compression process performed by the
FIG. 8 is a diagram showing an operation sequence between the
FIG. 9 is a diagram showing an operation sequence between the
FIG. 10 is a block diagram showing an overall configuration of a conventional color copying machine provided with an image memory.
FIG. 11 is a sequence diagram for explaining control timings of a
12 illustrates control timings of the
[Explanation of symbols]
1 Page description language rendering unit
2 Leader Club
3 control device
4 Printer section
5 Document feeding unit
6 Scanner unit
7 Selector
8 Block line buffer for compression
9 Color image encoder
11 Hard Disk
13 Color image decoder
14 Block line buffer for expansion
Claims (16)
前記圧縮手段による前記画像データの圧縮中に、圧縮後の画像データのデータ量を推定する推定手段と、
前記画像データが所定データ量以下に圧縮されないと推定される場合、前記画像入力手段に前記画像データを再入力させる再入力制御手段と、
前記画像データの圧縮状況に基づいて、再入力される画像データを再圧縮するときの圧縮率を決定する圧縮率決定手段とをさらに備え、
前記圧縮手段が、決定された圧縮率を用いて、再入力された画像データを再圧縮することを特徴とする画像処理装置。An image processing apparatus comprising: image input means for inputting image data, compression means for compressing input image data, and image output means for outputting compressed image data,
Estimating means for estimating the data amount of the compressed image data during the compression of the image data by the compression means,
When it is estimated that the image data is not compressed to a predetermined data amount or less, re-input control means for re-inputting the image data to the image input means,
A compression ratio determining unit that determines a compression ratio when re-compressing the re-input image data based on the compression state of the image data,
An image processing apparatus, wherein the compression unit re-compresses re-input image data using the determined compression ratio.
前記推定手段が、累積加算されたデータ量と圧縮された領域数に基づいて、前記画像データが所定データ量以下に圧縮可能か否かを推定する
ことを特徴とする請求項1記載の画像処理装置。Data amount accumulating means for accumulating and adding the data amount of the image data when the image data is compressed for each predetermined area,
2. The image processing apparatus according to claim 1, wherein the estimating unit estimates whether or not the image data can be compressed to a predetermined data amount or less based on the cumulatively added data amount and the number of compressed regions. apparatus.
前記圧縮率決定手段が、前記画像データを圧縮処理中の圧縮率と前記複数の圧縮率と累積加算されたデータ量とに基づいて、該画像データを再圧縮するときの圧縮率を決定する
ことを特徴とする請求項2記載の画像処理装置。The compression means enables compression of the image data by a plurality of compression ratios,
The compression ratio determining means determines a compression ratio when re-compressing the image data based on a compression ratio during compression processing of the image data and the data amount obtained by cumulatively adding the plurality of compression ratios. The image processing apparatus according to claim 2, wherein:
設定されたタイミングに基づいて、前記再入力制御手段及び圧縮率決定手段に対して所定の処理動作を実行させる制御手段と
をさらに備えることを特徴とする請求項1記載の画像処理装置。Setting means for setting the timing for executing the re-input and re-compression of the image data,
2. The image processing apparatus according to claim 1, further comprising control means for causing said re-input control means and compression ratio determining means to execute predetermined processing operations based on the set timing.
前記圧縮手段による前記画像データの圧縮中に、圧縮後の画像データのデータ量を推定する推定工程と、
前記画像データが所定データ量以下に圧縮されないと推定される場合、前記画像入力手段に前記画像データを再入力させる再入力制御工程と、
前記画像データの圧縮状況に基づいて、再入力される画像データを再圧縮するときの圧縮率を決定する圧縮率決定工程と、
決定された圧縮率を用いて、前記圧縮手段に再入力された画像データを再圧縮させる再圧縮制御工程と
を有することを特徴とする画像処理装置の制御方法。An image input unit for inputting image data, a compression unit for compressing the input image data, and a control method of an image processing apparatus including an image output unit for outputting compressed image data,
An estimating step of estimating a data amount of the compressed image data during the compression of the image data by the compression unit;
When it is estimated that the image data is not compressed to a predetermined data amount or less, a re-input control step of causing the image input means to re-input the image data,
Based on the compression state of the image data, a compression ratio determination step of determining a compression ratio when re-compressing the re-input image data,
A recompression control step of recompressing the image data re-input to the compression means using the determined compression ratio.
前記推定工程が、累積加算されたデータ量と圧縮された領域数に基づいて、前記画像データが所定データ量以下に圧縮可能か否かを推定する
ことを特徴とする請求項8記載の画像処理装置の制御方法。A data amount accumulating step of accumulatively adding a data amount of the image data when the image data is compressed for each predetermined region,
9. The image processing apparatus according to claim 8, wherein the estimating step estimates whether or not the image data can be compressed to a predetermined data amount or less based on the cumulatively added data amount and the number of compressed regions. How to control the device.
前記圧縮率決定工程が、前記画像データを圧縮処理中の圧縮率と前記複数の圧縮率と累積加算されたデータ量とに基づいて、該画像データを再圧縮するときの圧縮率を決定する
ことを特徴とする請求項9記載の画像処理装置の制御方法。A control method of the image processing apparatus, wherein the compression unit enables compression of the image data by a plurality of compression ratios,
The compression ratio determining step determines a compression ratio for recompressing the image data based on a compression ratio during the compression processing of the image data and the data amount obtained by cumulatively adding the plurality of compression ratios. The method for controlling an image processing apparatus according to claim 9, wherein:
設定されたタイミングに基づいて、前記再入力制御手段及び圧縮率決定手段に対して所定の処理動作を実行させる制御工程と
をさらに有することを特徴とする請求項8記載の画像処理装置の制御方法。A setting step of setting a timing for executing the re-input and re-compression of the image data,
9. The control method for an image processing apparatus according to claim 8, further comprising a control step of causing said re-input control means and said compression ratio determining means to execute a predetermined processing operation based on the set timing. .
前記圧縮手段による前記画像データの圧縮中に、圧縮後の画像データのデータ量を推定する推定工程と、
前記画像データが所定データ量以下に圧縮されないと推定される場合、前記画像入力手段に前記画像データを再入力させる再入力制御工程と、
前記画像データの圧縮状況に基づいて、再入力される画像データを再圧縮するときの圧縮率を決定する圧縮率決定工程と、
決定された圧縮率を用いて、前記圧縮手段に再入力された画像データを再圧縮させる再圧縮制御工程と
をコンピュータに実行させるためのコンピュータプログラム。A computer program for controlling an image processing apparatus including image input means for inputting image data, compression means for compressing input image data, and image output means for outputting compressed image data,
An estimating step of estimating a data amount of the compressed image data during the compression of the image data by the compression unit;
When it is estimated that the image data is not compressed to a predetermined data amount or less, a re-input control step of causing the image input means to re-input the image data,
Based on the compression state of the image data, a compression ratio determination step of determining a compression ratio when re-compressing the re-input image data,
A computer program for causing a computer to execute a recompression control step of recompressing image data re-input to the compression unit using the determined compression ratio.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002186758A JP2004032434A (en) | 2002-06-26 | 2002-06-26 | Image processing apparatus and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002186758A JP2004032434A (en) | 2002-06-26 | 2002-06-26 | Image processing apparatus and control method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004032434A true JP2004032434A (en) | 2004-01-29 |
Family
ID=31182017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002186758A Withdrawn JP2004032434A (en) | 2002-06-26 | 2002-06-26 | Image processing apparatus and control method thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004032434A (en) |
-
2002
- 2002-06-26 JP JP2002186758A patent/JP2004032434A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7194140B2 (en) | Image processing apparatus and method which compresses image data of each region using a selected encoding method | |
JP4533043B2 (en) | Image encoding apparatus and method, computer program, and computer-readable storage medium | |
US7499592B2 (en) | Image decoding apparatus and its control method | |
CA2775691C (en) | System and method for progressively transforming and coding digital data | |
US8224101B2 (en) | Image processing apparatus and control method thereof with color data and monochrome data selection | |
JP2000278685A (en) | Method for processing variable length encoded binary bit stream | |
KR0154352B1 (en) | Image processing method and apparatus | |
US8094952B2 (en) | Image processing apparatus and image processing method | |
JP2006080792A (en) | Image coder, method, computer program, and computer readable storage medium | |
JP2006101010A (en) | Image processing apparatus, image processing method, and program, and storage medium | |
JP2004080520A (en) | Image processing apparatus, image reading apparatus and image forming apparatus | |
JP3984817B2 (en) | Image processing apparatus and method, medium, and program | |
JP3469438B2 (en) | Image signal processing method and apparatus, recording medium | |
JP2003046789A (en) | Image coding apparatus and image decoding apparatus | |
US7373000B2 (en) | Image processing apparatus | |
US20110228306A1 (en) | Image processing device and program | |
JP2004032434A (en) | Image processing apparatus and control method thereof | |
US6778707B1 (en) | Method for decompressing JPEG files using a variable block size inverse discrete cosine transform | |
JP2000307818A (en) | Scanner and method for selecting scanner resolution | |
JP3227181B2 (en) | Image processing device | |
JP2007251521A (en) | Image processing apparatus, control method of image processing apparatus, program, and storage medium | |
JP4164388B2 (en) | Image processing apparatus, image processing apparatus control method, and computer-readable control program | |
JP2004159069A (en) | Control method for image processor | |
JP4195624B2 (en) | Image processing apparatus, image forming apparatus, image reading apparatus, program, and storage medium | |
US20040258315A1 (en) | Image processing system, image forming apparatus, image processing method, program and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20050906 |