JP2004134962A - Image compression method - Google Patents
Image compression method Download PDFInfo
- Publication number
- JP2004134962A JP2004134962A JP2002296303A JP2002296303A JP2004134962A JP 2004134962 A JP2004134962 A JP 2004134962A JP 2002296303 A JP2002296303 A JP 2002296303A JP 2002296303 A JP2002296303 A JP 2002296303A JP 2004134962 A JP2004134962 A JP 2004134962A
- Authority
- JP
- Japan
- Prior art keywords
- attribute
- information
- block
- image
- compression
- 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
- Record Information Processing For Printing (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は画像圧縮の技術に関し、特に、1ページの画像について、その画素ごとの属性情報を示す情報プレーンを圧縮する画像圧縮技術に関する。
【0002】
【従来の技術】
従来の画像形成装置においては、形成後の画像上に存在する文字・図形・イメージを判別するために、各ピクセルに対して属性情報を付加しており、この属性情報の付加により画像形成装置が必要とするメモリサイズは必然的に増加する。したがって画像形成装置においては、メモリが足りなくなった場合には属性情報を圧縮することにより、必要メモリサイズを小さくする工夫がなされている。
【0003】
しかしながら、例えば文字や複雑な図形等は属性情報が複雑に入り組んだ状態で存在するために、期待通りの圧縮結果が得られない場合がある。そこで、属性情報が所定のサイズにおさまらない場合は、この属性情報を破棄し、ページ全体に対して決められた1つの属性情報を設定する方式がとられていた。
【0004】
【発明が解決しようとしている課題】
しかしながら、上述したようにページ全体に1つの属性情報を設定すると、画像形成の際に文字、図形、イメージのどの部分に対しても一様の処理がなされてしまうことになり、属性情報の本来の用途が果たせなかった。
【0005】
本発明は上記問題を解決するためになされたものであり、画素ごとの属性情報を示す情報プレーンを圧縮する際に、属性情報の喪失を最低限に留めつつ、より小さな圧縮サイズを実現する画像圧縮技術を提供することを目的とする。
【0006】
【課題を解決するための手段】
上記目的を達成するための一手法として、本発明の画像圧縮方法は以下の工程を備える。
【0007】
すなわち、画素ごとの属性情報を示す情報プレーンを圧縮する画像圧縮方法であって、前記情報プレーンを圧縮する第1の圧縮工程と、前記第1圧縮工程によって得られた圧縮データが所定のサイズに収まらない場合に、前記情報プレーンを圧縮する第2の圧縮工程と、を有し、前記第2の圧縮工程においては、前記情報プレーンを所定サイズのブロック単位で同一の属性情報に置き換えた後、前記ブロック単位で圧縮することを特徴とする。
【0008】
【発明の実施の形態】
以下、本発明に係る一実施形態について、図面を参照して詳細に説明する。
【0009】
本発明は、画素ごとの属性情報を示す情報プレーンを圧縮する画像圧縮方法であって、情報プレーンを圧縮する第1の圧縮工程と、第1圧縮工程によって得られた圧縮データが所定のサイズに収まらない場合に、情報プレーンを圧縮する第2の圧縮工程と、を有し、該第2の圧縮工程においては、情報プレーンを前記ブロック単位で同一の属性情報に置き換えた後、所定サイズのブロック単位で圧縮することを特徴とする画像圧縮方法として実施可能である。
【0010】
また、第2の圧縮工程において、情報プレーンを所定サイズのブロック単位で第1の圧縮工程と同様の圧縮方法によって圧縮することを特徴とする。
【0011】
このような本発明は、具体的に図1〜図15に示す構成において、以下の第1〜第3実施形態と対応して表現できる。
【0012】
<第1実施形態>
本実施形態を、レーザビームプリンタ(以下、LBPと略す)に適用する例について説明する。まず図1を参照して、本実施形態を適用するLBPの構成について説明する。
【0013】
図1は、LBPの内部構造を示す断面図である。同図において、100はLBP本体であり、外部に接続されているホストコンピュータ(図2の201)から供給される文字印字命令、各種図形描画命令、イメージ描画命令及び色指定命令等に従って対応する文字パターンや図形、イメージ等を作成し、記録媒体である記録用紙上に像を形成する。151は操作のためのスイッチ及びプリンタの状態を表示するLED表示器やLCD表示器等が配されている操作パネル、101はLBP100全体の制御及びホストコンピュータから供給される文字印字命令等を解析するプリンタ制御ユニットである。
【0014】
尚、本実施形態におけるLBPはRGBの色情報をM(マゼンタ),C(シアン),Y(イエロー),K(ブラック)に変換し、それらを並列で像形成・現像するため、MCYKそれぞれが像形成・現像機構を持つ。プリンタ制御ユニット101はMCYKそれぞれの印字イメージを生成し、ビデオ信号に変換してMCYKそれぞれのレーザドライバに出力する。
【0015】
M(マゼンタ)のレーザドライバ110は半導体レーザ111を駆動するための回路であり、入力されたビデオ信号に応じて半導体レーザ111から発射されるレーザ光112をオン/オフ切替する。レーザ光112は回転多面鏡113で左右方向に振られて静電ドラム114上を走査する。これにより、静電ドラム114上には文字や図形のパターンの静電潜像が形成される。この潜像は静電ドラム114周囲の現像ユニット(トナーカートリッジ)115によって現像された後、記録用紙に転写される。
【0016】
C,Y,Kに関してもMと同様の像形成・現像機構を持ち、120,121,122,123、124,125はC用の像形成・現像機構、130,131,132,133、134,135はY用の像形成・現像機構、140,141,142,143、144,145はK用の像形成・現像機構である。これら個々の機能はMの像形成・現像機構と同じであるので、説明は省略する。
【0017】
記録用紙にはカットシートを用い、カットシート記録紙はLBPに装着した給紙カセット102に収納されバネ103で一定の高さに保たれており、給紙ローラ104及び搬送ローラ105と106とにより装置内に取り込まれ、用紙搬送ベルト107に乗せられてMCYKの各像形成・現像機構を通過する。
【0018】
記録用紙に転写されたMCYKの各トナー(粉末インク)は定着器108で熱と圧力により記録用紙に固定され、記録用紙は搬送ローラ109と150によってLBP本体上部に出力される。
【0019】
図2は、図1に示したLBPのプリンタ制御ユニット101の概略構成を示すブロック図である。
【0020】
プリンタ制御ユニット101では、印刷情報の発生源であるホストコンピュータ201より送られてきた文字、図形、イメージの各描画命令及び色情報等からなるデータ214を入力し、ページ単位で文書情報等を印刷する。
【0021】
202はホストコンピュータ201と各種情報をやりとりする入出力インタフェース部、203は入出力インタフェース部202を介して入力された各種情報を一時記憶する入力バッファである。204は文字パターン発生器で、文字の幅や高さ等の属性や実際の文字パターンのアドレスが格納されているフォント情報部218、文字パターン自身が格納されている文字パターン部219、及びその読みだし制御プログラムから成る。読みだし制御プログラムはROM215に含まれ、文字コードを入力するとそのコードに対応する文字パターンのアドレスを算出するコードコンバート機能をも有している。
【0022】
205はRAMであり、文字パターン発生器204より出力された文字パターンを記憶するフォントキャッシュ領域207、ホストコンピュータ201より送られてきた外字フォントやフォーム情報及び現在の印字環境等を記憶する記憶領域206を含んでいる。このように、一旦文字パターンに展開したパターン情報をフォントキャッシュとしてフォントキャッシュ領域207に記憶しておくことにより、同じ文字を印刷する時に再度同じ文字を復号してパターン展開する必要がなくなるため、文字パターンへの展開が速くなる。
【0023】
208はプリンタの制御系全体を制御するためのCPUであり、ROM215に記憶された制御プログラムにより装置全体の制御を行なっている。209は入力データ214を元に生成される内部的なデータ群である中間バッファである。1ページ分のデータの受信が完了し、それらがよりシンプルな中間データに変換されて中間バッファに蓄えられた後、レンダラ210によりバンド単位でレンダリングされ、印字イメージとしてバンドバッファ211に出力される。
【0024】
尚、レンダラ210にはレンダラA,レンダラB,レンダラCと、機能的に全く同等のものが3つ存在し、それぞれが独立に動作することができる。即ち、本実施形態のLBPでは最大で3つのバンドを同時にレンダリングすることができる。
【0025】
レンダラ210において、描画プレーンRGB24ビットと情報プレーン3ビットが生成され、バンドバッファ211からレンダラ212へデータを送る際に、描画プレーンと情報プレーンを用いてRGB24ビットからCMYK32ビットへの色空間変換を行う。
【0026】
バンドバッファ211には少なくとも8バンド分の印字イメージを記憶することができ、バンドバッファ211に出力された印字イメージは、出力インタフェース部212でビデオ信号に変換されてプリンタ印字部213に出力される。213は出力インタフェース部212からのビデオ信号に基づいた画像情報を印刷するページプリンタの印刷機構部分である。
【0027】
先に図1を用いて説明したように、本実施形態におけるLBPではMCYKの像形成・現像を並列で行うため、出力インタフェース部212は、M出力インタフェース部,C出力インタフェース部,Y出力インタフェース部,K出力インタフェース部の4つのインタフェース部で構成され、それぞれが独立にバンドバッファ211からドットデータを読み出し、ビデオ信号に変換して各プレーンのレーザドライバ110,120,130,140へ出力する。
【0028】
216は一般のEEPROM等で構成する不揮発性メモリであり、以後NVRAM(Non Volatile RAM)と称す。NVRAM216には操作パネル151より指定されるパネル設定値などが記憶される。
【0029】
217は、LBPからホストコンピュータ201に送信されるデータである。
【0030】
尚、ROM215にはホストコンピュータ201から入力されるデータの解析、中間データの生成、印刷機構本体部213の制御プログラム、及びRGB色空間からMCYK色空間への色変換テーブル等も含まれる。
【0031】
一般に、印刷装置が印刷対象となる像をRGB色空間で扱うとき、各ピクセルは属性情報を有する。属性情報は、例えば文字印字命令で処理されるピクセルは「文字」、図形描画命令で処理されるピクセルは「図形(グラフィック)」というように、ホストコンピュータから供給される描画コマンドによって決められる。本実施形態において扱うピクセルは、図3に示すように、イメージ301,図形302,文字303という3つの属性情報のいずれかを有するとする。
【0032】
属性情報は、図2に示したバンドバッファ211からレンダラ212へデータを送る際の、RGB色空間からCMYK色空間等への色変換処理に用いるLUT(Look Up Table)の切り替えや、描画する際のディザ処理の切り替えに利用できる。例えば、同じ黒であっても、写真に存在する陰等の黒に対しては色の変化を緩やかにするためにCMYを用いて表現し、図形や文字におけるライン等の黒に対してははっきり表現させる必要があるのでK単色を用いる、という様な切り替えに利用できる。
【0033】
本実施形態においては、属性情報のプレーンである情報プレーンを、第1の圧縮方法を用いて圧縮する。該圧縮により得られた圧縮データが所定のサイズに収まらない場合には、さらに第2の圧縮方法を用いて再圧縮する。
【0034】
以下、本実施形態における第2の圧縮方法について説明する。
【0035】
本実施形態においては、第1の圧縮方法では情報プレーンが所望サイズまで到達しなかった場合、第2の圧縮方法として、まず情報プレーンを所定サイズのブロックに分割し、該ブロック内を同一の像域信号で置き換えた後に、第1の圧縮方法による圧縮を行う。
【0036】
ここで、本実施形態におけるブロック単位での像域信号の置き換えについて、図4乃至図8を参照して説明する。
【0037】
本実施形態では例えば図4に示す様に、イメージ属性402,図形属性403,文字属性404からなる情報プレーン401を、矩形ブロック405に示す単位で、例えばブロック406に示す様に同一の像域信号とする。この例では、イメージ属性402と文字属性404を含む矩形ブロック405の像域信号を、ブロック406のようにイメージ属性で統一した例を示す。
【0038】
本実施形態におけるブロック単位での像域信号は、基本的にブロック内にある属性情報で統一するとする。例えば図5に示す矩形ブロック505の様に、文字属性が含まれる場合はブロック506のように文字属性で統一し、図6に示す矩形ブロック605の様に、図形属性が含まれる場合はブロック606のように図形属性で統一する。また、図7に示す矩形ブロック705の様に、イメージ属性が含まれる場合はブロック706のようにイメージ属性で統一する。
【0039】
そしてさらに、ブロック内に複数の属性が混在する場合には、それぞれに優先順位を付して、置き換えを行えば良い。例えば図4に示す例においては、イメージ属性402と文字属性404が混在した矩形ブロック405について、その像域信号をブロック406のようにイメージ属性で統一したが、本実施形態はもちろんこの例に限定されない。
【0040】
例えば図8に示す例において、文字属性804,図形属性803,イメージ属性802の順に優先度を高くとれば、矩形ブロック805の様にブロック内に文字属性804,図形属性803,イメージ属性802が混在する場合には、ブロック806の様に文字属性が有効となり、また矩形ブロック807の様に図形属性803とイメージ属性802が混在する場合には、ブロック808の様に図形属性が有効となる。
【0041】
このように本発明の第1の実施形態における画像圧縮方法では、第2の圧縮工程において、ブロック内に複数種類の属性情報が混在する場合に、所定の優先度に従って該ブロックを同一の属性情報に置き換えることを特徴とするものである。
【0042】
また、属性情報は、画素に対する描画命令に応じて、イメージ、図形、文字のいずれかであることを特徴とするものである。
【0043】
以上説明したように本実施形態によれば、画素ごとの属性情報を示す情報プレーンが、所定の圧縮方法による圧縮では所定のサイズに収まらない場合に、該情報プレーンのブロック単位で属性情報を統一した後に、再度圧縮する。
【0044】
これにより、ページ全体を同じ属性情報とせず、すなわち、ページ内における属性情報の喪失を最低限に留めつつ、所望のサイズ以下の圧縮データを得ることができる。
【0045】
なお、本実施形態においては属性情報として文字、図形、イメージの3種類を例として説明したが、本発明はこの3種の属性に限定されないことはもちろんであり、他の属性情報を考慮することも可能である。例えば、入力されたR,G,B値が全て等しい場合に、Kトナーのみでの印字(グレイ補償)を行うか否か、等の属性情報をさらに付加しても良い。
【0046】
<第2実施形態>
以下、本発明に係る第2実施形態について説明する。
【0047】
上述した第1実施形態において、情報プレーンについてブロック単位で属性情報の統一した後に再圧縮を行っても、所定の圧縮サイズに収まらない場合が考えられる。第2実施形態ではこのような場合に、ブロックサイズを拡大する。すなわち、第1実施形態で説明したブロック単位での像域信号の置き換えを、ブロックサイズを大きくして同様に行う。
【0048】
例えば図9に示すように、所定のブロックサイズ905では所望する圧縮サイズに至らない場合、さらに大きなブロックサイズ906を単位として属性情報の統一をし、再圧縮を試みる。
【0049】
また、このようなブロックサイズの拡大及び再圧縮を、複数回行うことによってより小さな圧縮サイズが得られるが、像域情報の喪失を抑えるために、再圧縮の回数を制限しても良い。
【0050】
例えば再圧縮回数を5回に設定した場合、図10に示す様に、第1の再圧縮として、3ピクセル×3ピクセルのブロック単位1005で同一の像域信号へ置き換えた後に再圧縮を行う。そして第2の再圧縮としては、5ピクセル×5ピクセルのブロック単位1006で同一の像域信号へ置き換えた後に再圧縮を行う。そして同様に、第3の再圧縮として7ピクセル×7ピクセルのブロック単位1007で、第4の再圧縮として9ピクセル×9ピクセルのブロック単位1008で、第5の再圧縮として15ピクセル×15ピクセルのブロック単位1009で、同一の像域信号への置き換え及び再圧縮を行う。
【0051】
また、再圧縮回数を3回に設定した場合には、図11に示す様に、第1の再圧縮として3ピクセル×3ピクセルのブロック単位1105で、第2の再圧縮として7ピクセル×7ピクセルのブロック単位1106で、第3の再圧縮として15ピクセル×15ピクセルのブロック単位1107で、同一の像域信号への置き換え及び再圧縮を行う。
【0052】
このように本発明の第2の実施形態における画像圧縮方法では、第2の圧縮工程においては、前記情報プレーンの圧縮サイズが所定のサイズに収まるように、前記ブロックサイズを調整することを特徴とするものである。
【0053】
また、第2の圧縮工程においては、前記情報プレーンの圧縮サイズが所定のサイズに収まるまで、前記ブロックサイズを拡大して圧縮することを繰り返すことを特徴とするものである。
【0054】
また、第2の圧縮工程における圧縮回数を所定回数に制限し、該圧縮回数目ごとにブロックサイズを決定することを特徴とするものである。
【0055】
以上説明したように第2実施形態によれば、上述した第1実施形態におけるブロック単位での圧縮を行う際に、ブロックサイズを適宜拡大して再圧縮を行うことによって、所望するサイズ以下の圧縮データを得ることができる。
【0056】
また、再圧縮回数に応じてブロックサイズを決定することにより、圧縮後の像域信号の品位や圧縮サイズ、及び所定の圧縮サイズへの到達時間等を調整することができる。
【0057】
<第3実施形態>
以下、本発明に係る第3実施形態について説明する。
【0058】
第3実施形態においては、上述した第2実施形態で所定回数の再圧縮を行っても所望する圧縮サイズに到達しない場合に、ページ全体を同一の像域信号で置き換え、再圧縮することを特徴とする。
【0059】
以下、第3実施形態における情報プレーンの圧縮処理を、図12乃至図15のフローチャートを用いて説明する。
【0060】
図12は、第3実施形態における情報プレーン圧縮処理のメイン処理を示すフローチャートである。
【0061】
まずステップS1201においてブロックサイズ設定を初期化し、ステップS1202で情報プレーンの圧縮処理を行う。そしてステップS1203において、圧縮データが所定の圧縮サイズに収まるか否かを判断し、収まる場合は処理を終了する。
【0062】
一方、所定の圧縮サイズに収まらない場合はステップS1204に進み、ブロックサイズ設定処理を行った後、ステップS1205においてブロック内属性決定処理を行う。なお、これらの処理の詳細については、後述する。
【0063】
そしてステップS1206において、ブロック内の属性が決定された情報プレーンを圧縮した後、ステップS1203に進んで圧縮サイズを検討する。以上の処理を繰り返すことによって、ステップS1203で所定の圧縮サイズに収まるまで、再圧縮が続けられる。
【0064】
図13は、図12のステップS1201に示したブロックサイズ設定初期化処理の詳細を示すフローチャートである。まずステップS1301で圧縮回数カウンタを初期化し、ステップS1302で再圧縮上限回数を獲得する。ここで、最終的にはページサイズがブロックサイズとなるように、再圧縮の上限回数を設定するとする。これにより、圧縮サイズが所望サイズに満たない場合に、ページ全体に同じ像域信号が指定されることになる。そしてステップS1303において、各再圧縮回数目に対応するブロックサイズを設定し、図12のステップS1201に戻る。
【0065】
図14は、図12のステップS1204に示したブロックサイズ設定処理の詳細を示すフローチャートである。まずステップS1401において、現在の圧縮回数カウンタに対するブロックサイズを獲得し、次にステップS1402において圧縮回数カウンタを更新し、図12に示すステップS1204に戻る。
【0066】
図15は、図12のステップS1205に示したブロック内属性決定処理の詳細を示すフローチャートである。
【0067】
まずステップS1501において、ブロック内に文字属性があるか否かを判断し、文字属性が存在する場合はステップS1502に進んでブロック内を文字属性に統一した後、図12のステップS1205に戻る。
【0068】
一方、ステップS1501においてブロック内に文字属性が存在しない場合は、ステップS1503に進んでブロック内に図形属性があるか否かを判断し、図形属性が存在する場合はステップS1504に進んでブロック内を図形属性に統一した後、図12のステップS1205に戻る。
【0069】
一方、ステップS1503においてブロック内に図形属性が存在しない場合は、ステップS1505に進んでブロック内にイメージ属性があるか否かを判断し、イメージ属性が存在する場合はステップS1506に進んでブロック内をイメージ属性に統一した後、図12のステップS1205に戻る。
【0070】
一方、ステップS1505においてブロック内にイメージ属性が存在しない場合は、ステップS1507に進んでブロック内を初期属性に統一し、図12のステップS1205に戻る。
【0071】
このように本発明の第3の実施形態における画像圧縮方法では、第2の圧縮工程においては、前記所定回数の圧縮終了後に前記情報プレーンの圧縮サイズが前記所定のサイズに収まらない場合に、該情報プレーンの1ページ全体を1ブロックとして圧縮することを特徴とするものである。
【0072】
以上説明したように第3実施形態によれば、上述した第2実施形態で所定回数の再圧縮を行っても所望する圧縮サイズに到達しない場合に、ページ全体を同一の像域信号で置き換えて再圧縮することによって、最大限の圧縮率を得ることができる。
【0073】
なお、上述した各実施形態で示した画像圧縮方法を画像形成装置に適用することによって、入力された描画コマンドに基づいて描画プレーンを生成し、描画コマンドに基づいて画像全体の各画素に対する属性情報を示す情報プレーンを生成し、情報プレーンを、上記各実施形態で説明した画像圧縮方法によって圧縮し、該圧縮された情報プレーンに基づいて、画素ごとの属性情報に応じた画像形成を行うことができる。これにより例えばLBPにおいて、圧縮された情報プレーンを用いて属性情報に応じた画像形成を行う場合に、属性に応じたより効果的な画像処理を行うことができ、ページ全体に対して同一の画像処理を行ってしまうことが回避できる。
【0074】
【他の実施形態】
なお、本発明は、例えばシステム、装置、方法、プログラムもしくは記憶媒体等としての実施態様をとることが可能であり、具体的には、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用しても良い。
【0075】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUまたはMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても達成されることは言うまでもない。
【0076】
この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
【0077】
プログラムコードを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROMなどを用いることが出来る。
【0078】
また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)などが実際の処理の一部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0079】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0080】
【発明の効果】
以上説明したように本発明によれば、画素ごとの属性情報を示す情報プレーンを圧縮する際に、属性情報の喪失を最低限に留めつつ、より小さな圧縮サイズを実現することができる。
【図面の簡単な説明】
【図1】本発明に係る一実施形態におけるレーザビームプリンタの側断面図である。
【図2】図1に示したLBP本体の制御構成を示すブロック図である。
【図3】本実施形態において扱うピクセルの属性情報を示す表である。
【図4】本実施形態におけるブロック単位での像域信号の置き換え処理の概念を示す図である。
【図5】本実施形態においてブロック内に文字属性が存在する場合の処理例を示す図である。
【図6】本実施形態においてブロック内に図形属性が存在する場合の処理例を示す図である。
【図7】本実施形態においてブロック内にイメージ属性が存在する場合の処理例を示す図である。
【図8】本実施形態においてブロック内に文字属性、図形属性、イメージ属性が混在する場合の処理例を示す図である。
【図9】第2実施形態におけるブロックサイズの変更例を示す図である。
【図10】第2実施形態において5回のブロックサイズ調整を行う例を示す図である。
【図11】第2実施形態において3回のブロックサイズ調整を行う例を示す図である。
【図12】第3実施形態における情報プレーン圧縮処理のメイン処理を示すフローチャートである。
【図13】第3実施形態におけるブロックサイズ設定の初期化処理を示すフローチャートである。
【図14】第3実施形態におけるブロックサイズ設定処理を示すフローチャートである。
【図15】第3実施形態におけるブロック内属性決定処理を示すフローチャートである。
【符号の説明】
100 プリンタ本体
101 プリンタ制御ユニット
102 給紙カセット
103 バネ
104 給紙ローラ
105 用紙搬送ローラ
106 用紙搬送ローラ
107 用紙搬送ベルト
108 定着器
109 用紙搬送ローラ
110,120,130,140 レーザドライバ
111,121,131,141 半導体レーザ発射装置
112.122.132.142 レーザビーム
113,123,133,143 回転多面鏡
114,124,134,144 静電ドラム
115,125,135,145 トナーカートリッジ
150 用紙搬送ローラ
151 操作パネル
202 ホストコンピュータ
202 入出力インタフェース部
203 入力バッファ
204 文字パターン発生器
205 RAM
206,209 記憶領域
207 フォントキャッシュ領域
208 CPU
210 レンダラ
211 バンドバッファ
212 の出力インタフェース部
213 印刷機構部
215 ROM
216 NVRAM
218 フォント情報部
219 文字パターン部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image compression technique, and more particularly to an image compression technique for compressing an information plane indicating attribute information for each pixel of an image of one page.
[0002]
[Prior art]
In a conventional image forming apparatus, attribute information is added to each pixel in order to determine characters, figures, and images existing on an image after formation. The required memory size inevitably increases. Therefore, in the image forming apparatus, when memory is insufficient, attribute information is compressed to reduce the required memory size.
[0003]
However, for example, characters, complicated figures, and the like exist in a state where attribute information is complicated and complicated, so that a desired compression result may not be obtained. Therefore, when the attribute information does not fit in a predetermined size, a method of discarding the attribute information and setting one set of attribute information for the entire page has been adopted.
[0004]
[Problems to be solved by the invention]
However, if one piece of attribute information is set for the entire page as described above, uniform processing is performed on any part of characters, graphics, and images during image formation. Could not be used.
[0005]
The present invention has been made in order to solve the above-described problem, and when compressing an information plane indicating attribute information for each pixel, an image realizing a smaller compression size while minimizing loss of attribute information. It is intended to provide a compression technique.
[0006]
[Means for Solving the Problems]
As one technique for achieving the above object, the image compression method of the present invention includes the following steps.
[0007]
That is, an image compression method for compressing an information plane indicating attribute information for each pixel, wherein a first compression step of compressing the information plane, and the compressed data obtained in the first compression step is reduced to a predetermined size And a second compression step of compressing the information plane when the information plane does not fit. In the second compression step, after replacing the information plane with the same attribute information in block units of a predetermined size, The compression is performed on a block-by-block basis.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
[0009]
The present invention relates to an image compression method for compressing an information plane indicating attribute information of each pixel, wherein a first compression step of compressing the information plane and compressed data obtained in the first compression step are reduced to a predetermined size. And a second compression step of compressing the information plane when the information plane does not fit. In the second compression step, after replacing the information plane with the same attribute information in the block unit, a block of a predetermined size The present invention can be implemented as an image compression method characterized by performing compression in units.
[0010]
Further, in the second compression step, the information plane is compressed in units of blocks of a predetermined size by the same compression method as in the first compression step.
[0011]
The present invention as described above can be specifically expressed in the configurations shown in FIGS. 1 to 15 in correspondence with the following first to third embodiments.
[0012]
<First embodiment>
An example in which this embodiment is applied to a laser beam printer (hereinafter abbreviated as LBP) will be described. First, a configuration of an LBP to which the present embodiment is applied will be described with reference to FIG.
[0013]
FIG. 1 is a sectional view showing the internal structure of the LBP. In the figure,
[0014]
Note that the LBP in the present embodiment converts RGB color information into M (magenta), C (cyan), Y (yellow), and K (black), and forms and develops them in parallel. It has an image forming and developing mechanism. The
[0015]
An M (magenta)
[0016]
C, Y and K have the same image forming and developing mechanism as M, and 120, 121, 122, 123, 124 and 125 are image forming and developing mechanisms for C, 130, 131, 132, 133, 134, 135 is an image forming / developing mechanism for Y, and 140, 141, 142, 143, 144, and 145 are image forming / developing mechanisms for K. These individual functions are the same as those of the image forming / developing mechanism of M, and the description thereof is omitted.
[0017]
A cut sheet is used as a recording sheet, and the cut sheet recording sheet is stored in a
[0018]
The MCYK toner (powder ink) transferred to the recording paper is fixed to the recording paper by heat and pressure by a
[0019]
FIG. 2 is a block diagram showing a schematic configuration of the
[0020]
The
[0021]
An input /
[0022]
[0023]
A
[0024]
There are three
[0025]
In the
[0026]
A print image for at least eight bands can be stored in the
[0027]
As described above with reference to FIG. 1, in the LBP in this embodiment, since MCYK image formation and development are performed in parallel, the
[0028]
[0029]
[0030]
Note that the
[0031]
Generally, when a printing apparatus handles an image to be printed in an RGB color space, each pixel has attribute information. The attribute information is determined by a drawing command supplied from the host computer, for example, a pixel processed by a character printing command is a "character", and a pixel processed by a graphic drawing command is a "graphic". It is assumed that a pixel handled in the present embodiment has any one of three pieces of attribute information of an
[0032]
The attribute information is used when LUT (Look Up Table) used for color conversion processing from an RGB color space to a CMYK color space or the like when data is transmitted from the
[0033]
In the present embodiment, an information plane that is a plane of attribute information is compressed using the first compression method. If the compressed data obtained by the compression does not fit in a predetermined size, it is re-compressed using the second compression method.
[0034]
Hereinafter, a second compression method according to the present embodiment will be described.
[0035]
In the present embodiment, when the information plane does not reach the desired size in the first compression method, the information plane is first divided into blocks of a predetermined size as a second compression method. After the replacement with the area signal, compression is performed by the first compression method.
[0036]
Here, replacement of the image area signal in block units in the present embodiment will be described with reference to FIGS.
[0037]
In the present embodiment, for example, as shown in FIG. 4, an
[0038]
It is assumed that image area signals in block units in the present embodiment are basically unified with attribute information in blocks. For example, when a character attribute is included as in a
[0039]
Further, when a plurality of attributes are mixed in a block, replacement may be performed by assigning a priority to each attribute. For example, in the example illustrated in FIG. 4, the image area signals of the
[0040]
For example, in the example shown in FIG. 8, if the priority is set higher in the order of the
[0041]
As described above, in the image compression method according to the first embodiment of the present invention, when a plurality of types of attribute information are mixed in a block in the second compression step, the block is assigned the same attribute information according to a predetermined priority. It is characterized by being replaced with
[0042]
The attribute information is one of an image, a graphic, and a character according to a drawing command for a pixel.
[0043]
As described above, according to the present embodiment, when the information plane indicating the attribute information for each pixel does not fit in a predetermined size by compression using a predetermined compression method, the attribute information is unified in block units of the information plane. After that, compress again.
[0044]
As a result, it is possible to obtain compressed data of a desired size or less without making the entire page the same attribute information, that is, while minimizing the loss of attribute information in the page.
[0045]
In the present embodiment, three types of attribute information, such as a character, a graphic, and an image, have been described as examples. However, the present invention is not limited to these three types of attributes, and other attribute information may be considered. Is also possible. For example, when the input R, G, and B values are all equal, attribute information such as whether or not to perform printing with only K toner (gray compensation) may be added.
[0046]
<Second embodiment>
Hereinafter, a second embodiment according to the present invention will be described.
[0047]
In the first embodiment described above, even if re-compression is performed after unifying the attribute information of the information plane in units of blocks, the information plane may not be within the predetermined compression size. In such a case, the second embodiment increases the block size. That is, the replacement of the image area signal in the unit of a block described in the first embodiment is performed in a similar manner by increasing the block size.
[0048]
For example, as shown in FIG. 9, if the desired compression size is not reached with the
[0049]
A smaller compressed size can be obtained by performing such block size expansion and recompression a plurality of times, but the number of recompressions may be limited in order to suppress loss of image area information.
[0050]
For example, when the number of times of recompression is set to 5, as shown in FIG. 10, as the first recompression, recompression is performed after replacing with the same image area signal in a
[0051]
When the number of times of recompression is set to 3, as shown in FIG. 11, a
[0052]
As described above, in the image compression method according to the second embodiment of the present invention, in the second compression step, the block size is adjusted so that the compressed size of the information plane falls within a predetermined size. Is what you do.
[0053]
In the second compression step, the block size is repeatedly expanded and compressed until the compressed size of the information plane falls within a predetermined size.
[0054]
Further, the number of times of compression in the second compression step is limited to a predetermined number of times, and a block size is determined for each number of times of compression.
[0055]
As described above, according to the second embodiment, when performing compression in units of blocks in the above-described first embodiment, the block size is appropriately expanded and recompression is performed, thereby achieving compression of a desired size or less. Data can be obtained.
[0056]
Further, by determining the block size according to the number of times of recompression, it is possible to adjust the quality and compression size of the compressed image area signal, the time required to reach a predetermined compression size, and the like.
[0057]
<Third embodiment>
Hereinafter, a third embodiment according to the present invention will be described.
[0058]
The third embodiment is characterized in that if a desired compression size is not reached even after performing re-compression a predetermined number of times in the above-described second embodiment, the entire page is replaced with the same image area signal and re-compressed. And
[0059]
Hereinafter, the information plane compression processing according to the third embodiment will be described with reference to the flowcharts of FIGS.
[0060]
FIG. 12 is a flowchart showing the main processing of the information plane compression processing in the third embodiment.
[0061]
First, block size setting is initialized in step S1201, and information plane compression processing is performed in step S1202. Then, in step S1203, it is determined whether or not the compressed data fits in a predetermined compressed size, and if so, the process ends.
[0062]
On the other hand, if the size does not fit in the predetermined compressed size, the process proceeds to step S1204, where the block size setting process is performed, and then the in-block attribute determination process is performed in step S1205. The details of these processes will be described later.
[0063]
Then, in step S1206, after compressing the information plane in which the attribute in the block is determined, the process proceeds to step S1203, and the compression size is examined. By repeating the above processing, recompression is continued until the compression size is reduced to the predetermined compression size in step S1203.
[0064]
FIG. 13 is a flowchart showing details of the block size setting initialization process shown in step S1201 of FIG. First, in step S1301, the number-of-compression counter is initialized, and in step S1302, the upper limit number of recompressions is acquired. Here, it is assumed that the upper limit of recompression is set so that the page size eventually becomes the block size. As a result, when the compressed size is less than the desired size, the same image area signal is designated for the entire page. In step S1303, a block size corresponding to each recompression count is set, and the process returns to step S1201 in FIG.
[0065]
FIG. 14 is a flowchart showing details of the block size setting process shown in step S1204 of FIG. First, in step S1401, the block size for the current compression number counter is obtained, then in step S1402, the compression number counter is updated, and the flow returns to step S1204 shown in FIG.
[0066]
FIG. 15 is a flowchart showing details of the in-block attribute determination processing shown in step S1205 of FIG.
[0067]
First, in step S1501, it is determined whether or not there is a character attribute in the block. If there is a character attribute, the process proceeds to step S1502 to unify the inside of the block with the character attribute, and then returns to step S1205 in FIG.
[0068]
On the other hand, if the character attribute does not exist in the block in step S1501, the flow advances to step S1503 to determine whether or not there is a graphic attribute in the block. If the graphic attribute exists, the flow advances to step S1504 and the flow advances to step S1504. After unifying the graphics attributes, the process returns to step S1205 in FIG.
[0069]
On the other hand, if there is no graphic attribute in the block in step S1503, the flow advances to step S1505 to determine whether or not there is an image attribute in the block. After unifying the image attributes, the process returns to step S1205 in FIG.
[0070]
On the other hand, if the image attribute does not exist in the block in step S1505, the process proceeds to step S1507 to unify the inside of the block with the initial attribute, and returns to step S1205 in FIG.
[0071]
As described above, in the image compression method according to the third embodiment of the present invention, in the second compression step, when the compression size of the information plane does not fall within the predetermined size after the predetermined number of compressions is completed, It is characterized in that one page of the information plane is compressed as one block.
[0072]
As described above, according to the third embodiment, if the desired compression size is not reached after performing the re-compression a predetermined number of times in the above-described second embodiment, the entire page is replaced with the same image area signal. By recompressing, a maximum compression ratio can be obtained.
[0073]
By applying the image compression method described in each of the above embodiments to the image forming apparatus, a drawing plane is generated based on the input drawing command, and the attribute information for each pixel of the entire image is generated based on the drawing command. Is generated, the information plane is compressed by the image compression method described in each of the above embodiments, and an image is formed based on the compressed information plane in accordance with the attribute information of each pixel. it can. Thus, for example, in LBP, when performing image formation according to attribute information using a compressed information plane, more effective image processing according to the attribute can be performed, and the same image processing can be performed on the entire page. Can be avoided.
[0074]
[Other embodiments]
Note that the present invention can take the form of, for example, a system, an apparatus, a method, a program, a storage medium, and the like. Specifically, a plurality of devices (for example, a host computer, an interface device, a reader, and a printer) Etc.), or may be applied to an apparatus (for example, a copying machine, a facsimile machine, etc.) including one device.
[0075]
Further, an object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and a computer (or CPU or MPU) of the system or apparatus to store the storage medium. Needless to say, this can also be achieved by reading out and executing the program code stored in the.
[0076]
In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
[0077]
As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, or the like is used. I can do it.
[0078]
When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an OS (Operating System) running on the computer based on the instruction of the program code. It goes without saying that a case where a part of the actual processing is performed and the function of the above-described embodiment is realized by the processing is also included.
[0079]
Further, after the program code read from the storage medium is written into a memory provided on a function expansion board 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 a CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[0080]
【The invention's effect】
As described above, according to the present invention, when compressing the information plane indicating the attribute information for each pixel, it is possible to realize a smaller compression size while minimizing the loss of the attribute information.
[Brief description of the drawings]
FIG. 1 is a side sectional view of a laser beam printer according to an embodiment of the present invention.
FIG. 2 is a block diagram showing a control configuration of an LBP main body shown in FIG.
FIG. 3 is a table showing attribute information of pixels handled in the embodiment.
FIG. 4 is a diagram illustrating the concept of image area signal replacement processing in block units according to the present embodiment.
FIG. 5 is a diagram illustrating a processing example when a character attribute exists in a block according to the embodiment;
FIG. 6 is a diagram illustrating a processing example when a graphic attribute exists in a block according to the present embodiment.
FIG. 7 is a diagram illustrating a processing example when an image attribute exists in a block according to the embodiment;
FIG. 8 is a diagram illustrating a processing example in a case where a character attribute, a graphic attribute, and an image attribute are mixed in a block according to the embodiment;
FIG. 9 is a diagram illustrating an example of changing a block size in the second embodiment.
FIG. 10 is a diagram illustrating an example of performing block size adjustment five times in the second embodiment.
FIG. 11 is a diagram illustrating an example in which three block size adjustments are performed in the second embodiment.
FIG. 12 is a flowchart illustrating a main process of an information plane compression process according to the third embodiment.
FIG. 13 is a flowchart illustrating initialization processing of block size setting according to the third embodiment.
FIG. 14 is a flowchart illustrating a block size setting process according to the third embodiment.
FIG. 15 is a flowchart illustrating an in-block attribute determination process according to the third embodiment.
[Explanation of symbols]
REFERENCE SIGNS
206, 209
210
216 NVRAM
218
Claims (1)
前記情報プレーンを圧縮する第1の圧縮工程と、
前記第1圧縮工程によって得られた圧縮データが所定のサイズに収まらない場合に、前記情報プレーンを圧縮する第2の圧縮工程と、を有し、
前記第2の圧縮工程においては、前記情報プレーンを所定サイズのブロック単位で同一の属性情報に置き換えた後、前記ブロック単位で圧縮することを特徴とする画像圧縮方法。An image compression method for compressing an information plane indicating attribute information for each pixel,
A first compression step of compressing the information plane;
A second compression step of compressing the information plane when the compressed data obtained in the first compression step does not fit in a predetermined size;
The image compression method according to claim 2, wherein, in the second compression step, the information plane is replaced with the same attribute information in units of blocks of a predetermined size and then compressed in units of blocks.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002296303A JP2004134962A (en) | 2002-10-09 | 2002-10-09 | Image compression method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002296303A JP2004134962A (en) | 2002-10-09 | 2002-10-09 | Image compression method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004134962A true JP2004134962A (en) | 2004-04-30 |
Family
ID=32286330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002296303A Withdrawn JP2004134962A (en) | 2002-10-09 | 2002-10-09 | Image compression method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004134962A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006343831A (en) * | 2005-06-07 | 2006-12-21 | Ricoh Co Ltd | Image processor, method, program and storage medium |
US8452083B2 (en) | 2010-06-09 | 2013-05-28 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and computer-readable medium |
US8509532B2 (en) | 2010-04-28 | 2013-08-13 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and computer-readable medium |
-
2002
- 2002-10-09 JP JP2002296303A patent/JP2004134962A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006343831A (en) * | 2005-06-07 | 2006-12-21 | Ricoh Co Ltd | Image processor, method, program and storage medium |
JP4743596B2 (en) * | 2005-06-07 | 2011-08-10 | 株式会社リコー | Image processing apparatus, method, program, and recording medium |
US8509532B2 (en) | 2010-04-28 | 2013-08-13 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and computer-readable medium |
US8452083B2 (en) | 2010-06-09 | 2013-05-28 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and computer-readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7679795B2 (en) | Image processing apparatus and method thereof | |
US7697772B2 (en) | Apparatus, method and computer program product for performing image compression of image data | |
US7612910B2 (en) | Information processing apparatus, information processing system, information output control method, storage medium and program | |
EP1471723B1 (en) | Image processing method for superimposing high-resolution character data on low-resolution image data | |
US6348975B1 (en) | Image processing apparatus, image processing method, and storage medium | |
JP3902907B2 (en) | Image processing apparatus and method, and image forming apparatus | |
US7038815B2 (en) | Image processing apparatus and its method, and image processing system and its control method | |
JP2006044169A (en) | Printing device and method of controlling the same | |
JP4323742B2 (en) | Image processing apparatus, image processing apparatus control method, and program | |
JP4115294B2 (en) | Image processing apparatus and method | |
JP2004134962A (en) | Image compression method | |
JP3728183B2 (en) | Printing control apparatus, drawing control apparatus, data processing method, and storage medium | |
US8437046B2 (en) | Image processing apparatus and method for outputting an image subjected to pseudo-halftone processing | |
JP2006140597A (en) | Device and method for printing control, computer program, and storage medium | |
JP2006205507A (en) | Printer | |
JP4054661B2 (en) | Print control method, print data processing method, print system, information processing apparatus, and control program | |
JP2006129007A (en) | Print controller, data processing method of print controller, and storage medium having computer readable program stored therein | |
JP2006245920A (en) | Image forming device and image processing method | |
JP2004174964A (en) | Printing control device, method for processing data thereof, and memory medium housing computer readable program | |
JP2004243569A (en) | Image forming apparatus | |
JP3826091B2 (en) | Information processing apparatus, information processing method, printing apparatus, and printing method | |
JP2008055914A (en) | Printing apparatus, control method therefor, and control program | |
JP2002312141A (en) | Printing control device, printing information preparation method, program and recording medium | |
JP2006244132A (en) | Printing system | |
JP2008103918A (en) | Image forming apparatus, image forming method and program for performing image forming method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20060110 |