JP2004120640A - Image processing method and image processing device - Google Patents
Image processing method and image processing device Download PDFInfo
- Publication number
- JP2004120640A JP2004120640A JP2002284242A JP2002284242A JP2004120640A JP 2004120640 A JP2004120640 A JP 2004120640A JP 2002284242 A JP2002284242 A JP 2002284242A JP 2002284242 A JP2002284242 A JP 2002284242A JP 2004120640 A JP2004120640 A JP 2004120640A
- Authority
- JP
- Japan
- Prior art keywords
- image
- unit
- image data
- data
- 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.)
- Pending
Links
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
【0001】
【発明の技術分野】
本発明は、画像データの入力及び出力を効率よく、かつ高画質で行う画像処理方法に関する。
【0002】
【従来の技術】
従来、カラー原稿画像をディジタル画像として読み取って複写画像を生成する画像処理装置として、いわゆるカラー原稿複写装置が知られている。図11は、従来の画像処理装置としてのカラー原稿複写装置の細部構成を示すブロック図である。
【0003】
図11において、1101はイメージスキャナ部であり、原稿画像を読み取ってディジタル信号処理を行う部分である。また、1102は、プリンタ部であり、イメージスキャナ部1101によって読み取られた原稿画像に対応した画像を用紙にフルカラーでプリント出力する部分である。
【0004】
イメージスキャナ部1101において、1100は鏡面圧板である。そして、原稿台ガラス(プラテン)1103上の原稿1104は、ランプ1105で照射され、ミラー1106、1107、1108に導かれ、レンズ1109によって、3ラインの個体撮像素子センサ(以下、「CCDセンサ」と称す。)1110上に像を結び、フルカラー情報としてのレッド(R)、グリーン(G)、ブルー(B)の3つの画像信号が信号処理部1111に送られる。
【0005】
尚、ランプ1105、ミラー1106は速度vで、ミラー1107、1108は速度1/2vで、ラインセンサの電気的走査(主走査)方向に対して垂直方向に機械的に動くことによって、原稿全面を走査(副走査)する。ここで、原稿1104は、主走査及び副走査ともに400dpi(dots/inch)の解像度で読み取られる。
【0006】
信号処理部1111は、読み取られた画像信号を電気的に処理し、マゼンタ(M)、シアン(C)、イエロ(Y)、ブラック(Bk)の各成分に分解し、プリンタ部1102に送る。また、イメージスキャナ部1101における1回の原稿走査につき、M、C、Y、Bkのうちの一つの成分に関する画像信号がプリンタ部1102に送られ、計4回の原稿走査によって、1回のプリントアウトが完成する。
【0007】
イメージスキャナ部1101よりプリンタ部1102に送られてくるM、C、Y、Bkの各画像信号は、まずレーザドライバ1112に送られる。レーザドライバ1112は、送られてきた画像信号に応じ、半導体レーザ1113を変調駆動する。レーザ光は、ポリゴンミラー1114、f・θレンズ1115、ミラー1116を介して、感光ドラム1117上を走査する。ここで、読み取りと同様に主走査及び副走査ともに、例えば400dpiや600dpi等の解像度で書き込まれる。
【0008】
1118は回転現像器であり、マゼンタ現像部1119、シアン現像部1120、イエロー現像部1121、ブラック現像部1122より構成され、4つの現像部が交互に感光ドラム1117に接し、感光ドラム1117上に形成された静電現像をトナーで現像する。
【0009】
1123は転写ドラムである。そこで、用紙カセット1124又は1125より供給される用紙は、転写ドラム1123に巻き付けられ、感光ドラム1117上に現像された像を用紙に転写する。
【0010】
このようにして、M、C、Y、Bkの4色が順次転写された後に、用紙は、定着ユニット1126を通過して、トナーが用紙に定着された後にカラー原稿複写装置外部に排紙される。
【0011】
【発明が解決しようとする課題】
しかしながら、上述したような従来の画像処理装置では、基本的に、原稿を読みとるイメージスキャナ部1101と複写画像を出力するプリンタ部1102とを同期して動作させる必要がある。
【0012】
上述した従来のカラー原稿複写装置では、CCDセンサ1110で読みとられたR、G、Bの画像信号は一画素ごとに信号処理部1111で処理されてM、C、Y、Bkに変換される。そして、逐次プリンタ部1102に送られて感光ドラム1117上にレーザで書き込まれて複写画像が形成される。すなわち、従来の画像処理装置における画像形成は、M、C、Y、Bkのいずれか一つずつに行われており、各々について画像形成プロセスを繰り返すので、原稿の読み取りを4回連続で行う必要がある。
【0013】
従って、このような4回連続して原稿の読み取り動作を行う画像処理装置では、読み取られた画像データを記憶手段に記憶しておく必要はないものの、イメージスキャナ部1101とプリンタ部1102とを同時に動作させる必要がある。そのため、例えば、プリンタ部1102の定着ユニット1126(通常の加熱定着タイプの場合)のヒーター部が十分に加熱されていない場合は、プリンタ部1102が待機状態となっているため、複写動作及び原稿読み取り動作を行うことができない。
【0014】
また、従来の4回連続して原稿の読み取り動作を行う画像処理装置では、複数の原稿を各々複数部複写するような場合、一つの原稿を複数部出力することに対応して複数回読み取るという動作を行う必要がある。そのため、この動作を複数原稿のそれぞれについて行わなければならず、そのために使用者が費やさなければならない時間は多大なものとなる。
【0015】
一方で、原稿の読み取り動作を4回連続して行うのではなく、画像データを1回だけ読み取って一時的に記憶手段に記憶して、M、C、Y、Bkそれぞれの画像形成に同期して記憶された画像データを読み出し出力するような構成の画像処理装置も考えられる。
【0016】
このような構成の画像処理装置では、原稿読み取り動作をプリンタ部とは同期せずに行うことができ、また複数部の複写出力の場合も原稿読み取り動作は一つの原稿に対し1回行えばよいことになる。しかし、記憶手段に蓄積すべき画像データの容量が非常に膨大となるため、複数の原稿画像を同時に記憶することは困難である。従って、複数の原稿画像を一括して読み込み、読み込み終了後にページの入れ替えや複数原稿画像の合成出力等を実現させようとすると膨大な記憶装置が必要となり現実的ではなくなる。
【0017】
本発明は、このような事情を考慮してなされたものであり、スキャナ部とプリンタ部の独立動作を可能とし、複数部出力する場合であっても1回の読み取り動作での出力を可能とするとともに、読み取った画像データを圧縮して記憶容量の増加を回避し、その圧縮に伴う画像劣化を最小限に抑えて高画質の画像出力を実現することができる画像処理方法を提供することを目的とする。
【0018】
【課題を解決するための手段】
この課題を解決するため本発明は、後述する実施態様に従えば以下の構成を特徴とする。
【0019】
[発明1] 画像データの色補正処理を行う色補正処理工程と、
前記色補正処理工程において色補正処理が行われた前記画像データを所定の圧縮率で圧縮する画像圧縮工程と、
前記画像圧縮工程において圧縮された前記画像データを所定の記憶媒体に記憶する記憶工程と、
前記記憶媒体に記憶された前記画像データを解凍する解凍工程と、
前記解凍工程において解凍された前記画像データを所定の変倍率で変倍する変倍工程と、
前記変倍工程において変倍された前記画像データを出力する画像出力工程と
を有し、
前記圧縮工程における前記圧縮率は、前記変倍工程において前記変倍率で変倍され、前記画像出力工程において出力させる前記画像データのデータ量に基づいて決定される
ことを特徴とする画像処理方法。
【0020】
[発明2] 画像データの色補正処理を行う色補正処理工程と、
前記画像データの各画素の属性情報を示す属性フラグデータを生成する属性フラグデータ生成工程と、
前記色補正処理工程において色補正処理が行われた前記画像データを前記属性フラグデータに基づいて所定の圧縮率で圧縮する画像圧縮工程と、
前記属性フラグデータ生成工程において生成された前記属性フラグデータを圧縮するフラグ圧縮工程と、
前記画像圧縮工程において圧縮された前記画像データと前記フラグ圧縮工程において圧縮された前記属性フラグデータとを所定の記憶媒体に記憶する記憶工程と、
前記記憶媒体に記憶された前記属性フラグデータを解凍するフラグ解凍工程と、
前記記憶工程において記憶させた前記画像データを前記属性フラグデータに基づいて解凍する画像解凍工程と、
前記画像解凍工程において解凍された前記画像データを所定の変倍率で変倍する変倍工程と、
前記変倍工程において変倍された前記画像データを出力する画像出力工程と
を有し、
前記画像圧縮工程における前記圧縮率は、前記変倍工程において前記変倍率で変倍され、前記画像出力工程から出力される前記画像データのデータ量に基づいて決定される
ことを特徴とする画像処理方法。
【0021】
[発明3] 前記変倍工程において拡大処理が行われた後の前記画像データのデータ量が所定容量を越える場合、
前記記憶工程は、該所定容量の範囲内で前記画像データの所定部分の画像データのみを前記記憶媒体に記憶する
ことを特徴とする発明1又は2に記載の画像処理方法。
【0022】
[発明4] 印刷媒体上に前記画像データを画像形成する画像形成工程をさらに有し、
前記記憶工程が、前記画像データのうち、前記印刷媒体上に画像形成される部分の画像データのみを前記記憶媒体に記憶することを特徴とする発明3記載の画像処理方法。
【0023】
[発明5] 画像データを入力する画像入力手段と、
前記画像データの色補正処理を行う色補正処理手段と、
前記色補正処理手段によって色補正処理が行われた前記画像データを所定の圧縮率で圧縮する画像圧縮手段と、
前記画像圧縮手段によって圧縮された前記画像データを記憶する記憶手段と、
前記記憶手段に記憶された前記画像データを解凍する解凍手段と、
前記解凍手段によって解凍された前記画像データを所定の変倍率で変倍する変倍手段と、
前記変倍手段によって変倍された前記画像データを出力する画像出力手段と
を備え、
前記圧縮手段における前記圧縮率は、前記変倍手段において前記変倍率で変倍され、前記画像出力手段から出力される前記画像データのデータ量に基づいて決定される
ことを特徴とする画像処理装置。
【0024】
[発明6] 画像データを入力する画像入力手段と、
前記画像データの色補正処理を行う色補正処理手段と、
前記画像データの各画素の属性情報を示す属性フラグデータを生成する属性フラグデータ生成手段と、
前記色補正処理手段によって色補正処理が行われた前記画像データを前記属性フラグデータに基づいて所定の圧縮率で圧縮する画像圧縮手段と、
前記属性フラグデータ生成手段によって生成された前記属性フラグデータを圧縮するフラグ圧縮手段と、
前記画像圧縮手段によって圧縮された前記画像データと前記フラグ圧縮手段で圧縮された前記属性フラグデータとを記憶する記憶手段と、
前記記憶手段に記憶された前記属性フラグデータを解凍するフラグ解凍手段と、
前記記憶手段に記憶された前記画像データを前記属性フラグデータに基づいて解凍する画像解凍手段と、
前記画像解凍手段によって解凍された前記画像データを所定の変倍率で変倍する変倍手段と、
前記変倍手段によって変倍された前記画像データを出力する画像出力手段と
を備え、
前記画像圧縮手段における前記圧縮率は、前記変倍手段において前記変倍率で変倍され、前記画像出力手段から出力される前記画像データのデータ量に基づいて決定される
ことを特徴とする画像処理装置。
【0025】
[発明7] 前記変倍手段によって拡大処理が行われた後の前記画像データのデータ量が所定容量を越える場合、
前記記憶手段は、該所定容量の範囲内で前記画像データの所定部分の画像データのみを記憶する
ことを特徴とする発明5又は6に記載の画像処理装置。
【0026】
[発明8] 印刷媒体上に前記画像データを画像形成する画像形成手段をさらに備え、
前記記憶手段が、前記画像データのうち、前記印刷媒体上に画像形成される部分の画像データのみを記憶することを特徴とする発明7記載の画像処理装置。
【0027】
[発明9] 前記色補正処理手段が、
前記画像データの主走査方向の色ズレを補正する主走査色ズレ補正手段と、
前記画像データの副走査方向の色ズレを補正する副走査色ズレ補正手段と、
前記画像データの空間周波数を補正する空間周波数補正手段と、
前記画像データの色味を補正する入力色補正手段と
の少なくとも1つを備えることを特徴とする発明5から8までのいずれか1項に記載の画像処理装置。
【0028】
[発明10] 印刷媒体上に前記画像データを画像形成する画像形成手段をさらに備え、
前記画像出力手段が、
前記画像データの地色を飛ばして画像形成時に不要となる下地のカブリ除去を行う下地飛ばし手段と、
前記画像データをモノクロデータに変換するモノクロ生成手段と、
前記画像形成手段の特性に合わせて前記画像データの色補正を行う出力色補正手段と、
前記画像形成手段の特性に合わせて前記画像データをガンマ補正するガンマ補正手段と、
前記画像形成手段で画像形成可能な階調数に合わせて前記画像データの中間調処理を行う中間調処理手段と
の少なくとも1つを備えることを特徴とする発明5から9までのいずれか1項に記載の画像処理装置。
【0029】
[発明11] 前記画像圧縮手段が、
前記画像データをラインごとに記憶するライン記憶手段と、
所定ライン分の前記画像データを1単位として符号化する符号化手段と、
所定単位分の前記画像データを1タイルとして、該画像データに関する属性フラグデータに基づいて該タイルの属性を判定する判定手段と
を備え、
前記符号化手段は、前記判定手段で判定されたタイルの属性に基づいて、該タイル内の1単位の前記画像データを符号化する
ことを特徴とする発明6記載の画像処理装置。
【0030】
[発明12] 前記画像解凍手段が、
圧縮された前記画像データにおける所定単位分の前記圧縮画像データを1タイルとして、該圧縮画像データに関する属性フラグデータに基づいて該タイルの属性を判定する判定手段と、
前記判定手段で判定された前記タイルの属性に基づいて、前記圧縮画像データを復号化する復号化手段と
を備えることを特徴とする発明10記載の画像処理装置。
【0031】
[発明13] 前記フラグ圧縮手段が、前記属性フラグデータをランレングス符号化することを特徴とする発明6記載の画像処理装置。
【0032】
[発明14] コンピュータに、
画像データの色補正処理を行う色補正処理手順と、
色補正処理が行われた前記画像データを所定の圧縮率で圧縮する画像圧縮手順と、
圧縮された前記画像データを所定の記憶媒体に記憶する記憶手順と、
前記記憶媒体に記憶された前記画像データを解凍する解凍手順と、
解凍された前記画像データを所定の変倍率で変倍する変倍手順と、
変倍された前記画像データを出力する画像出力手順と
を実行させるためのプログラムであって、
前記圧縮手順における前記圧縮率は、前記変倍手順において前記変倍率で変倍され、前記画像出力手順において出力される前記画像データのデータ量に基づいて決定される
ことを特徴とするプログラム。
【0033】
[発明15] 発明14記載のプログラムを格納したことを特徴とするコンピュータ読み取り可能な記録媒体。
【0034】
上記本発明の構成にかかる理由は以下の記載から明らかになるであろう。
【0035】
【発明の実施の形態】
以下、図面を参照して、本発明の一実施形態に係る画像処理方法を実行する、カラー原稿複写装置としての機能を備えた画像処理装置の詳細について説明する。
【0036】
<第1の実施形態>
図1は、本発明の第1の実施形態に係る画像の入力、蓄積、出力手段を備える画像処理装置の構成を示すブロック図である。図1において、120は画像入力系を切り替えるセレクタ、200は後述する所定の画像処理を施す入力画像処理部、300は後述する所定の画像処理を施す中間画像処理部、400は後述する所定の画像処理を施す出力画像処理部である。
【0037】
画像データの入力は、図11のイメージスキャナ部1101に相当するイメージスキャナ部100やページ記述言語(PDL)レンダリング部110で行われる。例えば、複写機の場合はイメージスキャナ部100から、パーソナルコンピュータ等の画像信号を扱うコントローラの場合はページ記述言語レンダリング部110から等、用途に応じてセレクタ120を切り替えて使われる。130は紙等の印刷媒体上に画像を形成するプリンタ部であり、図11のプリンタ部1102に相当する。
【0038】
図2は、本発明の第1の実施形態に係る画像処理装置の入力画像処理部200の細部構成を示すブロック図である。
【0039】
201は、入力画像の副走査方向の色ズレを補正する副走査色ズレ補正部であり、例えば、画像データの色ごとに1×5のマトリクス演算を行う処理が行われる。202は、入力画像の主走査方向の色ズレを補正する主走査色ズレ補正部であり、例えば、画像データの色ごとに5×1のマトリクス演算を行う処理が行われる。
【0040】
203は、入力画像中の画像種類を識別する像域判定部であり、例えば、入力画像中の、写真部分/文字部分、有彩色部分/無彩色部分等、それぞれの画像種類を構成する画素を識別し、その種別を示す属性フラグデータを画素単位で生成する。204は、入力画像の空間周波数を任意に補正するフィルタ処理部であり、例えば、9×9のマトリクス演算を行う処理が行われる。
【0041】
205は、入力画像中の画像信号データのヒストグラムをサンプリングするヒストグラム処理部であり、例えば、入力画像がカラーであるのか、モノクロ画像であるのかを判別したり、入力画像の下地レベルの判定が行われる。206は、入力画像の色味の補正を行う入力色補正部であり、例えば、入力画像の色空間を任意の色空間に変換したり、入力系の色味に関する補正処理が行われる。
【0042】
入力画像処理部200で処理された画像データと、像域判定部203で生成された属性フラグデータは、中間画像処理部300へ転送される。
【0043】
尚、ページ記述言語(PDL)レンダリング部110からの画像信号に関しては、上述のように入力画像処理部200における各画像処理及び像域判定部203を通して所定の処理を施しても良いし、すでにパーソナルコンピュータ等で処理済みの場合には、ここをスルーさせても良い。
【0044】
また、図1に示す画像処理装置の構成に対して、ページ記述言語レンダリング部110からの画像データと属性フラグデータを、入力画像処理部200の画像処理及び像域判定部203を通さずに、中間画像処理部300に入力させる構成にしても良い。
【0045】
また、入力画像処理部200内の処理は、上述した副走査色ずれ補正部201〜入力色補正部206の全てを用いる処理だけに限られるものではなく、他の画像処理モジュールが追加されても良いし、削除されても良い。さらに、副走査色ずれ補正部201〜入力色補正部206の処理順に関しても、これだけに限られるものではない。
【0046】
すなわち、本実施形態における画像処理装置では、色補正処理手段(入力画像処理部200)が、画像データの主走査方向の色ズレを補正する主走査色ズレ補正手段(主走査色ズレ補正部202)、画像データの副走査方向の色ズレを補正する副走査色ズレ補正手段(副走査色ズレ補正部201)、画像データの空間周波数を補正する空間周波数補正手段(フィルタ処理部204)、画像データの色味を補正する入力色補正手段(入力色補正部206)の少なくとも1つを備えることを特徴とする。
【0047】
図3は、本発明の第1の実施形態に係る画像処理装置の中間画像処理部300の細部構成を示すブロック図である。入力画像処理部200によって前述したような補正処理等を施された画像データは、属性フラグデータと共に、中間画像処理部300に転送された後、以下の構成の各処理部で細部処理が施される。
【0048】
310は圧縮処理部であり、画像データと属性フラグデータを各々所定の圧縮方法により圧縮処理が行われる。尚、圧縮処理部310における詳細処理については、図5を用いて後述する。320は記憶部であり、圧縮処理部310で圧縮された画像データと属性フラグデータとを記憶するものであり、大容量ハードディスク等で構成される。330は解凍処理部であり、圧縮されている画像データと属性フラグデータを各々所定の解凍方法により解凍処理が行われる。尚、解凍処理部330における詳細な処理については、図6を用いて後述する。
【0049】
340は、拡大・縮小処理部であり、画像データに対して、図示しない操作パネル上若しくは操作画面上で、予め設定を行った倍率で拡大・縮小処理を行う処理が行われる。拡大・縮小処理には、既知の注目画素に対して近傍画素の値を割り当てて置き換えを行うニヤレストネイバー処理による変倍、注目画素と近傍画素との間の補間値を割り当てるバイリニア処理による変倍、近傍画素に対して関数処理を行うことにより割り当てるバイキュービック処理による変倍を使用する。
【0050】
すなわち、本実施形態に係る画像処理装置は、画像データを入力する画像入力手段(イメージスキャナ部100、ページ記述言語レンダリング部110、セレクタ120)と、画像データの色補正処理を行う色補正処理手段(入力画像処理部200)と、入力画像処理部200によって色補正処理が行われた画像データを所定の圧縮率で圧縮する画像圧縮手段(圧縮処理部310)と、圧縮処理部310によって圧縮された画像データを記憶する記憶手段(記憶部320)と、記憶部320に記憶された画像データを解凍する解凍手段(解凍処理部330)と、解凍処理部330によって解凍された画像データを所定の変倍率で変倍(拡大又は縮小)する変倍手段(拡大・縮小処理部340)と、拡大・縮小処理部340によって変倍された画像データを出力する画像出力手段(出力画像処理部400)とを備える。そして、圧縮処理部310における圧縮率は、拡大・縮小処理部340において前記変倍率で変倍され、出力画像処理部400から出力される画像データのデータ量に基づいて決定されることを特徴とする。
【0051】
図4は、本発明の第1の実施形態に係る画像処理装置の出力画像処理部400の細部構成を示すブロック図である。
【0052】
401は下地飛ばし部であり、画像データの地色を飛ばし、不要な下地のカブリ除去を行う。例えば、3×8のマトリクス演算や、1次元ルックアップテーブル(LUT)により下地飛ばしを行う。402はモノクロ生成部であり、カラー画像データをモノクロデータに変換し、単色としてプリントする際に、カラー画像データ、例えばRGBデータを、グレイ(Gray)単色に変換する。例えば、RGBに任意の定数を掛け合わせ、グレイ信号とする1×3のマトリクス演算が行われる。
【0053】
403は画像データを出力するプリンタ部130の特性に合わせて色補正を行う出力色補正部である。例えば、4×8のマトリクス演算や、ダイレクトマッピングによる処理が行われる。
【0054】
404は画像データの空間周波数を任意に補正するフィルタ処理部であり、例えば9×9のマトリクス演算処理が行われる。405は出力するプリンタ部130の特性に合わせて、ガンマ補正を行うガンマ補正部であり、通常1次元のLUTが用いられる。406は出力するプリンタ部130の階調数に合わせて任意の中間調処理を行う中間調処理部であり、2値化や32値化等の任意のスクリーン処理や誤差拡散処理が行われる。
【0055】
尚、出力画像処理部400内の処理は、上述した下地飛ばし部401〜中間調処理部406の全てを用いる処理だけに限られるものではなく、他の画像処理モジュールが追加されても良いし、削除されても良い。さらに、下地飛ばし部401〜中間調処理部406の処理順に関しても、この順序だけに限られるものではない。
【0056】
すなわち、本実施形態に係る画像処理装置は、印刷媒体上に画像データを画像形成する画像形成手段(プリンタ部130)を備えており、画像出力手段(出力画像処理部)が、画像データの地色を飛ばして画像形成時に不要となる下地のカブリ除去を行う下地飛ばし手段(下地飛ばし部401)、画像データをモノクロデータに変換するモノクロ生成手段(モノクロ生成部402)、プリンタ部130の特性に合わせて画像データの色補正を行う出力色補正手段(出力色補正部403)、プリンタ部130の特性に合わせて画像データをガンマ補正するガンマ補正手段(ガンマ補正部404)、プリンタ部130で画像形成可能な階調数に合わせて画像データの中間調処理を行う中間調処理手段(中間調処理部406)の少なくとも1つを備えることを特徴とする。
【0057】
上述したように、図2、図3、図4とに示される、入力画像処理部200、中間画像処理部300、出力画像処理部400各々の画像処理部には、画像データと共に、図2を用いて説明を行った入力画像中の画像種類を識別する像域判定部203で生成された属性フラグデータも、像域判定部203以降では一緒に各画像処理部に入力される。そして、各画像処理部では、その属性フラグデータに従って、各々の画像領域に対して最適な処理係数による画像処理が施される。
【0058】
例えば、図4の出力画像処理部400のフィルタ処理部404では、文字領域に対して画像の高周波成分を強調して文字の鮮鋭度を強調し、また網点領域に対してはいわゆるローパスフィルタ処理を行い、ディジタル画像に特有のモアレ成分を除去する、といった処理を行うことができる。
【0059】
このようにして各処理モジュールで、属性フラグデータに従って、画像領域に対して最適な処理を行うことで、高画質化を行うことができる。
【0060】
図5は、本発明の第1の実施形態に係る画像処理装置における中間画像処理部300内の圧縮処理部310の細部構成を示すブロック図である。
【0061】
ラインバッファ311は、入力される画像データと属性フラグデータをラインごとに蓄積し、所定のライン分蓄積された後、M×Nのタイル上のデータに分割する。例えば、ウィンドウサイズを8×8画素とする場合、8ライン分蓄積された後、8×8のタイルデータとしてラインバッファ311より出力する。
【0062】
このタイルM×N画素を一つの単位(パケット)として、パケット毎に、画像データは画像データ符号化部312において離散コサイン変換符号化(JPEG)を行い、属性フラグデータは属性フラグ符号化部315においてランレングス符号化を行う。
【0063】
但し、M、Nは離散コサイン変換符号化のためのウィンドウサイズの倍数でなければならない。本実施形態では、JPEG圧縮方式の場合について説明する。JPEG圧縮方式では、圧縮のためのウィンドウサイズは8×8画素である。そこで、例えば、M=N=32とすると、32×32画素タイルの中をさらに16個の8×8画素に分割して、8×8画素単位でJPEG圧縮を行う。以後、M=N=32として説明するが、もちろんその値に限定されるわけではない。
【0064】
画像データ符号化部312では、32×32画素のタイル画像に含まれる16個の8×8画素ウィンドウに対し、周知のDCT変換を施して量子化する。このときに用いる量子化係数(以下、「量子化マトリクス」と呼ぶ。)は、タイルごとに切り替えて設定できるようになっている。切り替えは、まず、ある所定の32×32画素の画像データ(1タイル)に対応した32×32画素の属性フラグデータを判定部313で参照する。例えば、32×32画素の属性フラグデータの中に1画素でも文字を示す属性フラグデータが入っていた場合には、その32×32画素から構成される画像データ1タイルを文字タイルとみなし、その画像データ1タイルは文字用の符号化係数により、圧縮を行うよう量子化マトリクス選択部314に指令を出す。
【0065】
一方、1画素も文字を示す属性が入っていなかった場合には、その画像データ1タイルを写真タイルとみなし、その画像データ1タイルは、写真用の符号化係数により圧縮を行うよう量子化マトリクス選択部314に指令を出す。量子化マトリクス選択部314では、所定の符号化係数を選択し、画像データ符号化部312へ設定し、タイルごとに異なる圧縮係数により、画像データの圧縮を行う。
【0066】
符号化された画像データ及び属性フラグデータは、圧縮メモリ316を経由して記憶部320に、圧縮画像データ及び圧縮属性フラグデータとして記憶される。
【0067】
すなわち、本実施形態に係る画像処理装置では、画像圧縮手段(圧縮処理部310)が、画像データをラインごとに記憶するライン記憶手段(ラインバッファ311)、所定ライン分(例えば、8ライン分)の画像データを1単位(パケット)として符号化する符号化手段(画像データ符号化部312)、所定単位分(例えば、32×32画素)の画像データを1タイルとして、画像データに関する属性フラグデータに基づいてタイルの属性を判定する判定手段(判定部313)を備え、画像データ符号化部312は、判定部313で判定されたタイルの属性(例えば、写真タイルや文字タイルの判定)に基づいて、当該タイル内の1単位の画像データを符号化することを特徴とする。
【0068】
図6は、本発明の第1の実施形態に係る画像処理装置における中間画像処理部300内の解凍処理部330の細部構成を示すブロック図である。記憶部320に記憶された圧縮画像データをプリンタ部130から出力する際には、記憶部320に記憶されている圧縮画像データ及び圧縮属性フラグデータを読み出し、以下の手順で復号化して出力する。
【0069】
まず、圧縮して記憶された画像データと属性フラグを記憶部320より圧縮メモリ331に取り出し、属性フラグデータのM×N画素分のデータを属性フラグ復号化部335で復号する。
【0070】
次に、属性フラグデータの復号結果により、判定部333で属性判定処理を行う。すなわち、上述したように、各画像データ1タイルが文字タイルであるのか写真タイルであるのかを属性フラグデータから判定し、量子化マトリクス選択部334に対してタイル毎の複号化係数を選択するよう指令を送る。量子化マトリクス選択部334においては、タイル毎に使用する複号化係数を選択し、画像データ復号化部332へと送り、画像データ復号化部332では、タイル毎に係数を切り替えて画像データを復号化処理し、その後ラインバッファ336に出力する。
【0071】
判定部313、333では全く同じ判定が行われ、また属性フラグデータはデータの劣化しないランレングス符号化のような可逆圧縮方式で圧縮されているので、符号化時と復号化時で同一タイルに対応する判定結果は全く等しいものとなる。従って、タイルごとに異なる量子化係数で量子化されている場合であっても、復号時にはそれぞれに適した逆量子化係数が設定されるので、正しい復号画像データが得られることになる。
【0072】
すなわち、本実施形態に係る画像処理装置では、画像解凍手段(解凍処理部330)が、圧縮された画像データにおける所定単位分の圧縮画像データを1タイルとして、圧縮画像データに関する属性フラグデータに基づいてタイルの属性を判定する判定手段(判定部333)、判定部333で判定されたタイルの属性に基づいて、圧縮画像データを復号化する復号化手段(画像データ復号化部332)を備えることを特徴とする。
【0073】
画像データ符号化部312及び画像データ復号化部332に関しては図7、属性フラグデータ符号化部315に関しては図8を用いて、それらの構成をさらに詳細に説明する。
【0074】
図7は、図5を用いて説明した画像データ符号化部312及び画像データ復号化部332の細部構成を説明するためのブロック図である。同図において、700は入力された画像データ信号で、カラー信号の場合は、赤(R)、緑(G)、青(B)の3色の画像データ信号である。
【0075】
701は色変換器で、RGB信号を輝度色差信号(YCbCr)に変換する。702は離散コサイン変換(DCT)で、輝度色差信号のそれぞれを8x8画素単位で空間周波数変換(DCT変換)を行う。703は量子化器で、設定された量子化マトリクスを用いてDCT係数を量子化することにより、データ量を削減する。704は可変長符号化(VLC)器で、量子化値をハフマン符号化処理でデータをさらに削減する。以上が画像データ符号化部312の細部構成である。
【0076】
尚、画像データ符号化部312で圧縮された画像データは、圧縮メモリ(Memory)705に記憶される。ここで示す圧縮メモリ705は、図5、図6で示した圧縮メモリ316、331に相当する。圧縮メモリ705に記憶されたデータは以下の構成を用いて復号される。
【0077】
706は可変長復号(VLD)器でハフマンデコードをする。707は逆量子化器であり、設定された逆量子化マトリクスによりDCT係数値に戻す。708はIDCT器であり、DCT逆変換を行い、輝度色差信号に戻す。709は色変換器であり、輝度色差信号をRGB信号に戻す。710は以上の圧縮、復号処理の結果外部に出力されるカラー画像信号である。
【0078】
図8は、図6で説明した属性フラグデータのランレングス符号化器である属性フラグデータ符号化部315の細部構成を示すブロック図である。
【0079】
図8において、判定部800では入力される属性フラグデータの前画素の値と現画素の値とが同一か否かが判定される。その結果、同じ場合はRLコード生成部801に、違う場合はLTコード生成部802にデータを送るように切り替えられる。
【0080】
RLコード生成部801では、前画素データと同じ場合の回数を違うデータが出てくるまでカウントし、最後に、繰返したデータを出力する。LTコード生成部802では、データが前画素と異なる場合の数をカウントして、カウント数に対応する符号語と、実際データの最小構成ビット数をカウント数分だけ出力する。合成部803では、RLコード生成部801の出力データとLTコード生成部802の出力データを合成してコード804として出力する。
【0081】
図9は、本発明の第1の実施形態に係る画像処理装置でプリンタ部130から出力する際に、変倍処理を行わない場合の入力画像に対する処理の流れを説明するためのフローチャートである。すなわち、A4サイズの原稿画像をイメージスキャナ部100から入力し、入力画像処理部200、中間画像処理部300、出力画像処理部400上で各種の画像処理を施し、プリンタ部130から出力する際に、変倍処理を行わない場合の入力画像に対する処理の流れについて以下に説明する。
【0082】
まず、イメージスキャナ部100により画像データが入力される(ステップS901)。画像データは入力画像処理部200に入力されると、図2で説明した各種画像処理が施される(ステップS902)。次に、中間画像処理部300における圧縮処理部310で圧縮が行われる(ステップS903)。例えば、ここでの圧縮係数は、A4サイズ画像容量の1/32になるような圧縮係数を使用して圧縮処理が施される。その後、記憶部320に記憶され(ステップS904)、解凍処理部330で解凍が行われる(ステップS905)。
【0083】
図9に示されるフローチャートは変倍処理を行わない場合の説明であるので、拡大・縮小処理部340では変倍処理は行わず(ステップS906)、その後、出力画像処理部400において図4で説明した各種画像処理が施される(ステップS907)。そして、すべての処理が終わった画像データは、プリント部130から出力される(ステップS908)。
【0084】
図10は、本発明の第1の実施形態に係る画像処理装置でプリンタ部130から出力する際に、変倍処理を行う場合の入力画像に対する処理の流れを説明するためのフローチャートである。すなわち、A4サイズの原稿画像をイメージスキャナ部100から入力し、入力画像処理部200、中間画像処理部300、出力画像処理部400上で各種の画像処理を施し、プリンタ部130から出力する際に、変倍処理を行う場合の入力画像に対する処理の流れについて以下に説明する。
【0085】
まず、イメージスキャナ部100に画像データが入力される(ステップS1001)。これにより画像データは入力画像処理部200に入力され、図2で説明した各種画像処理が施される(ステップS1002)。次に、中間画像処理部300に入力され、圧縮処理部310で圧縮が行われる(ステップS1003)。ここでの圧縮係数は変倍率に応じて可変する。図12は、圧縮処理部310で圧縮する際の変倍率に応じて可変させる圧縮率の一例を示す図である。
【0086】
図9に示される変倍しない処理の場合(すなわち100%の場合)、例えば、A4サイズ画像容量の1/32になるような圧縮係数を使用する。これに対して、例えば、141%拡大を指定した場合には、A4サイズ画像容量の1/16になるような圧縮係数を使用して100%時よりも低い圧縮処理を施すようにする。
【0087】
これは、圧縮によるモスキートノイズや色味の変化などの画像劣化を、拡大することによってより目立たせてしまうことを回避するためである。このように圧縮率を下げることで、圧縮劣化を少なくし、拡大しても目立たなくさせることができるが、その分、必要とする記憶容量は増えてしまう。
【0088】
しかしながら、141%拡大により、A4サイズからはみ出てしまう領域に関しては、画像データ及び属性フラグデータ共に、圧縮処理部310に入る際に破棄してしまうことで、記憶容量が増加することを防ぐことができる。すなわち、A4サイズ141%は、A4サイズ100%の面積2倍拡大になるので、141%拡大の際には、A4サイズ100%の面積の1/2がはみ出てしまう領域となる。ここで、記憶する画素数としては半分になるため、記憶部320の容量はA4サイズ100%の半分で済むことになる。従って、1/16圧縮を行ってもA4サイズ100%時と同じ容量になるため、記憶容量を増やさなくても141%拡大時には1/16圧縮が可能になる。
【0089】
その後、記憶部320において記憶され(ステップS1004)、解凍処理部330で解凍が行われる(ステップS1005)。この時点では、先に述べたように拡大することでA4サイズからはみ出てしまう画素を破棄してしまったままであり、画像データの画素数はA4サイズの半分しかない。図10は、変倍処理を行う場合のフローチャートであるので、拡大・縮小処理部340において予め設定された倍率に応じて変倍処理は行う(ステップS1006)。これによって、A4サイズの半分の画素数であった画像データが、141%拡大処理されA4サイズの画素数を持つことになる。
【0090】
その後、出力画像処理部400において図4で説明した各種画像処理が施される(ステップS1007)。そして、すべての処理が終わった画像データは、プリント部130から出力される(ステップS1008)。
【0091】
図9及び図10のフローチャートを用いて説明したように、本実施形態では、A4サイズの原稿画像の例で説明を行ったが、他のサイズ、すなわちA5、A3サイズなどでも同様である。また、画像データの拡大・縮小に伴って、属性フラグデータに関しても同様に拡大・縮小処理される。さらに、画像データ中の不必要な画素を破棄する場合には、それに対応する属性フラグデータに関しても破棄される。
【0092】
すなわち、本実施形態に係る画像処理装置は、画像データを入力する画像入力手段(イメージスキャナ部100、ページ記述言語レンダリング部110、セレクタ120と、画像データの色補正処理を行う色補正処理手段(入力画像処理部200)と、画像データの各画素の属性情報を示す属性フラグデータを生成する属性フラグデータ生成手段(像域判定部203)と、色補正処理が行われた画像データを属性フラグデータに基づいて所定の圧縮率で圧縮する画像圧縮手段(圧縮処理部310内の画像データ符号化部312)と、生成された属性フラグデータを圧縮するフラグ圧縮手段(圧縮処理部310内の属性フラグ符号化部315)と、圧縮された画像データと圧縮された属性フラグデータとを記憶する記憶手段(記憶部320)と、記憶部320に記憶された属性フラグデータを解凍するフラグ解凍手段(解凍処理部330内の属性フラグ復号化部335)と、記憶部320に記憶された画像データを属性フラグデータに基づいて解凍する画像解凍手段(解凍処理部330内の画像データ復号化部332)と、解凍された画像データを所定の変倍率で変倍する変倍手段(拡大・縮小処理部340)と、変倍された画像データを出力する画像出力手段(出力画像処理部400)とを備える。そして、画像データ符号化部312における圧縮率は、拡大・縮小処理部340において変倍され、出力画像処理部400から出力される画像データのデータ量に基づいて決定されることを特徴とする。
【0093】
また、本実施形態に係る画像処理装置では、変倍手段(拡大・縮小処理部340)によって拡大処理が行われた後の画像データのデータ量が所定容量を越える場合、記憶手段(記憶部320)は、当該所定容量の範囲内で画像データの所定部分の画像データのみを記憶することを特徴とする。
【0094】
また、本実施形態に係る画像処理装置では、印刷媒体上に画像データを画像形成する画像形成手段(プリンタ部130)をさらに備え、記憶部320が、画像データのうち、印刷媒体上(例えば、A4サイズの用紙上)に画像形成される部分の画像データのみを記憶することを特徴とする。
【0095】
<第2の実施形態>
第1の実施形態では、前述したように、画像データを拡大・縮小処理部340において拡大・縮小処理した後、出力画像処理部400において所定の画像処理を施す内容の説明を行った。そこで、第2の実施形態においては、拡大・縮小処理部340で拡大・縮小処理を行った後、再度、圧縮処理部310において圧縮を施し、記憶部320にスプールする構成とする。
【0096】
この場合には、すでに画像データ及び属性フラグデータに対して拡大・縮小処理を施した後なので、図10のフローチャートを用いて説明したように、1/16圧縮係数ではなく、1/32圧縮係数での圧縮処理になる。しかしながら、すでに拡大されている画像に対して1/32圧縮係数をかけるので、1/32圧縮係数をかけた後に、それを拡大した場合と比較して画像劣化は抑えることが可能となる。
【0097】
<その他の実施形態>
尚、本発明は、複数の機器(例えば、ホストコンピュータ、インタフェース機器、リーダ、プリンタ等)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置等)に適用してもよい。
【0098】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記録媒体(または記憶媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記録媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記録媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記録した記録媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0099】
さらに、記録媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0100】
本発明を上記記録媒体に適用する場合、その記録媒体には、先に説明したフローチャートに対応するプログラムコードが格納されることになる。
【0101】
【発明の効果】
以上説明したように、本発明によれば、スキャナ部とプリンタ部の独立動作を可能とし、複数部出力する場合であっても1回の読み取り動作での出力を可能とするとともに、読み取った画像データを圧縮して記憶容量の増加を回避し、その圧縮に伴う画像劣化を最小限に抑えて高画質の画像出力を実現することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施形態に係る画像の入力、蓄積、出力手段を備える画像処理装置の構成を示すブロック図である。
【図2】本発明の第1の実施形態に係る画像処理装置の入力画像処理部200の細部構成を示すブロック図である。
【図3】本発明の第1の実施形態に係る画像処理装置の中間画像処理部300の細部構成を示すブロック図である。
【図4】本発明の第1の実施形態に係る画像処理装置の出力画像処理部400の細部構成を示すブロック図である。
【図5】本発明の第1の実施形態に係る画像処理装置における中間画像処理部300内の圧縮処理部310の細部構成を示すブロック図である。
【図6】本発明の第1の実施形態に係る画像処理装置における中間画像処理部300内の解凍処理部330の細部構成を示すブロック図である。
【図7】図5を用いて説明した画像データ符号化部312及び画像データ復号化部332の細部構成を説明するためのブロック図である。
【図8】図6で説明した属性フラグデータのランレングス符号化器である属性フラグデータ符号化部315の細部構成を示すブロック図である。
【図9】本発明の第1の実施形態に係る画像処理装置でプリンタ部130から出力する際に、変倍処理を行わない場合の入力画像に対する処理の流れを説明するためのフローチャートである。
【図10】本発明の第1の実施形態に係る画像処理装置でプリンタ部130から出力する際に、変倍処理を行う場合の入力画像に対する処理の流れを説明するためのフローチャートである
【図11】従来の画像処理装置としてのカラー原稿複写装置の細部構成を示すブロック図である。
【図12】圧縮処理部310で圧縮する際の変倍率に応じて可変させる圧縮率の一例を示す図である。
【符号の説明】
100 イメージスキャナ部
110 ページ記述言語レンダリング部
120 セレクタ
130 プリンタ部
200 入力画像処理部
201 副走査色ズレ補正部
202 主走査色ズレ補正部
203 像域判定部
204、404 フィルタ処理部
205 ヒストグラム処理部
206 入力色補正部
300 中間画像処理部
310 圧縮処理部
312 画像データ符号化部
315 属性フラグ符号化部
320 記憶部
330 解凍処理部
332 画像データ復号化部
335 属性フラグ復号化部
340 拡大・縮小処理部
400 出力画像処理部
401 下地飛ばし部
402 モノクロ生成部
403 出力色補正部
405 ガンマ補正部
406 中間調処理部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing method for efficiently inputting and outputting image data with high image quality.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, a so-called color document copying apparatus has been known as an image processing apparatus that reads a color document image as a digital image and generates a copy image. FIG. 11 is a block diagram showing a detailed configuration of a color document copying apparatus as a conventional image processing apparatus.
[0003]
In FIG. 11,
[0004]
In the
[0005]
Note that the
[0006]
The
[0007]
The M, C, Y, and Bk image signals sent from the
[0008]
[0009]
1123 is a transfer drum. Therefore, the sheet supplied from the
[0010]
After the four colors M, C, Y, and Bk are sequentially transferred in this manner, the sheet passes through the
[0011]
[Problems to be solved by the invention]
However, in the above-described conventional image processing apparatus, basically, it is necessary to operate the
[0012]
In the above-described conventional color original copying apparatus, the R, G, and B image signals read by the
[0013]
Therefore, in such an image processing apparatus that performs a document reading operation four times in a row, it is not necessary to store the read image data in the storage unit, but the
[0014]
Further, in a conventional image processing apparatus that performs an original reading operation four times in a row, when a plurality of originals are copied in a plurality of copies, a plurality of copies of a single original are read a plurality of times. Action is required. Therefore, this operation must be performed for each of a plurality of originals, and the time that the user must spend for that operation is enormous.
[0015]
On the other hand, instead of performing the document reading operation four times in succession, the image data is read only once and temporarily stored in the storage unit, and is synchronized with the image formation of each of M, C, Y, and Bk. An image processing apparatus configured to read and output the image data stored and stored is also conceivable.
[0016]
In the image processing apparatus having such a configuration, the original reading operation can be performed without synchronizing with the printer unit. In the case of copying and outputting a plurality of copies, the original reading operation may be performed once for one original. Will be. However, since the capacity of the image data to be stored in the storage means becomes very large, it is difficult to store a plurality of document images at the same time. Therefore, if a plurality of document images are read in a batch, and after the reading is completed, a page exchange, a composite output of the plurality of document images, and the like are required, an enormous storage device is required, which is not practical.
[0017]
The present invention has been made in view of such circumstances, and enables an independent operation of a scanner unit and a printer unit, and enables output in one reading operation even when outputting a plurality of units. To provide an image processing method capable of compressing read image data to avoid an increase in storage capacity, and realizing high-quality image output while minimizing image deterioration due to the compression. Aim.
[0018]
[Means for Solving the Problems]
In order to solve this problem, the present invention is characterized by the following configuration according to an embodiment described later.
[0019]
[Invention 1] A color correction processing step of performing color correction processing of image data;
An image compression step of compressing the image data subjected to the color correction processing in the color correction processing step at a predetermined compression ratio;
A storage step of storing the image data compressed in the image compression step in a predetermined storage medium,
A decompression step of decompressing the image data stored in the storage medium,
A scaling step of scaling the image data decompressed in the decompression step at a predetermined scaling factor;
An image output step of outputting the image data scaled in the scaling step;
Has,
The compression ratio in the compression step is determined based on the data amount of the image data to be output in the image output step, with the magnification being changed in the magnification step.
An image processing method comprising:
[0020]
[Invention 2] A color correction processing step of performing color correction processing of image data;
An attribute flag data generating step of generating attribute flag data indicating attribute information of each pixel of the image data,
An image compression step of compressing the image data on which the color correction processing has been performed in the color correction processing step at a predetermined compression rate based on the attribute flag data;
A flag compression step of compressing the attribute flag data generated in the attribute flag data generation step,
A storage step of storing the image data compressed in the image compression step and the attribute flag data compressed in the flag compression step in a predetermined storage medium,
A flag decompression step of decompressing the attribute flag data stored in the storage medium,
An image decompression step of decompressing the image data stored in the storage step based on the attribute flag data;
A scaling step of scaling the image data decompressed in the image decompression step at a predetermined scaling factor;
An image output step of outputting the image data scaled in the scaling step;
Has,
The compression ratio in the image compression step is determined based on a data amount of the image data output from the image output step, the magnification being changed in the scaling step in the magnification step.
An image processing method comprising:
[0021]
[Invention 3] When the data amount of the image data after the enlargement process is performed in the scaling step exceeds a predetermined capacity,
The storage step stores only image data of a predetermined portion of the image data within the range of the predetermined capacity in the storage medium.
The image processing method according to the
[0022]
[Invention 4] An image forming step of forming the image data on a print medium is further provided.
4. The image processing method according to claim 3, wherein the storing step stores, in the storage medium, only image data of a portion of the image data on which an image is formed on the print medium.
[0023]
[Invention 5] Image input means for inputting image data,
Color correction processing means for performing color correction processing of the image data,
Image compression means for compressing the image data subjected to the color correction processing by the color correction processing means at a predetermined compression ratio,
Storage means for storing the image data compressed by the image compression means,
Decompression means for decompressing the image data stored in the storage means,
Scaling means for scaling the image data decompressed by the decompression means at a predetermined magnification,
Image output means for outputting the image data scaled by the scaling means;
With
The compression ratio in the compression unit is scaled by the scaling unit in the scaling unit, and is determined based on the data amount of the image data output from the image output unit.
An image processing apparatus comprising:
[0024]
[Invention 6] Image input means for inputting image data;
Color correction processing means for performing color correction processing of the image data,
Attribute flag data generating means for generating attribute flag data indicating attribute information of each pixel of the image data,
Image compression means for compressing the image data subjected to the color correction processing by the color correction processing means at a predetermined compression rate based on the attribute flag data;
Flag compression means for compressing the attribute flag data generated by the attribute flag data generation means,
Storage means for storing the image data compressed by the image compression means and the attribute flag data compressed by the flag compression means,
Flag decompression means for decompressing the attribute flag data stored in the storage means,
Image decompression means for decompressing the image data stored in the storage means based on the attribute flag data,
Scaling means for scaling the image data decompressed by the image decompression means at a predetermined scaling factor;
Image output means for outputting the image data scaled by the scaling means;
With
The compression ratio in the image compression unit is scaled by the scaling ratio in the scaling unit, and is determined based on a data amount of the image data output from the image output unit.
An image processing apparatus comprising:
[0025]
[Invention 7] When the data amount of the image data after the enlargement process is performed by the scaling unit exceeds a predetermined capacity,
The storage means stores only image data of a predetermined portion of the image data within the range of the predetermined capacity.
The image processing apparatus according to the invention 5 or 6, characterized in that:
[0026]
[Invention 8] The image forming apparatus further includes an image forming unit that forms the image data on a print medium,
The image processing apparatus according to claim 7, wherein the storage unit stores only image data of a portion of the image data on which an image is formed on the print medium.
[0027]
[Invention 9] The color correction processing means includes:
Main scanning color shift correction means for correcting a color shift in the main scanning direction of the image data,
Sub-scanning color shift correction means for correcting a color shift in the sub-scanning direction of the image data,
Spatial frequency correction means for correcting the spatial frequency of the image data,
Input color correction means for correcting the color of the image data;
The image processing apparatus according to any one of inventions 5 to 8, comprising at least one of the following.
[0028]
[Invention 10] The image forming apparatus further includes an image forming unit that forms the image data on a print medium.
The image output means,
Background removal means for removing background color unnecessary for image formation by skipping the background color of the image data,
Monochrome generating means for converting the image data into monochrome data,
Output color correction means for performing color correction of the image data according to the characteristics of the image forming means,
Gamma correction means for gamma correcting the image data in accordance with the characteristics of the image forming means,
Halftone processing means for performing halftone processing of the image data in accordance with the number of tones for which an image can be formed by the image forming means;
The image processing apparatus according to any one of inventions 5 to 9, comprising at least one of the following.
[0029]
[Invention 11] The image compression means includes:
Line storage means for storing the image data line by line,
Encoding means for encoding the image data for a predetermined line as one unit;
Determining means for setting the image data of a predetermined unit as one tile and determining an attribute of the tile based on attribute flag data relating to the image data;
With
The encoding unit encodes one unit of the image data in the tile based on the attribute of the tile determined by the determination unit.
An image processing apparatus according to a sixth aspect of the present invention.
[0030]
[Invention 12] The image decompression means includes:
Determining means for setting the compressed image data of a predetermined unit in the compressed image data as one tile and determining an attribute of the tile based on attribute flag data relating to the compressed image data;
Decoding means for decoding the compressed image data based on the attribute of the tile determined by the determination means; and
An image processing apparatus according to invention 10, comprising:
[0031]
[Invention 13] The image processing apparatus according to Invention 6, wherein the flag compression unit performs run-length encoding on the attribute flag data.
[0032]
[Invention 14] In a computer,
A color correction processing procedure for performing color correction processing of image data;
An image compression procedure of compressing the image data subjected to the color correction processing at a predetermined compression ratio,
A storage procedure for storing the compressed image data in a predetermined storage medium,
A decompression procedure for decompressing the image data stored in the storage medium,
A scaling procedure for scaling the decompressed image data at a predetermined scaling factor;
An image output procedure for outputting the scaled image data;
Is a program for executing
The compression ratio in the compression step is determined based on the data amount of the image data output in the image output step, the magnification being changed in the scaling step.
A program characterized by the following.
[0033]
[Invention 15] A computer-readable recording medium storing the program according to Invention 14.
[0034]
The reason for the configuration of the present invention will be apparent from the following description.
[0035]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, the details of an image processing apparatus having a function as a color original copying apparatus that executes an image processing method according to an embodiment of the present invention will be described with reference to the drawings.
[0036]
<First embodiment>
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus including an image input, storage, and output unit according to the first embodiment of the present invention. In FIG. 1,
[0037]
The input of the image data is performed by the
[0038]
FIG. 2 is a block diagram illustrating a detailed configuration of the input
[0039]
[0040]
An image
[0041]
A
[0042]
The image data processed by the input
[0043]
The image signal from the page description language (PDL)
[0044]
Further, with respect to the configuration of the image processing apparatus shown in FIG. 1, the image data and the attribute flag data from the page description
[0045]
Further, the processing in the input
[0046]
That is, in the image processing apparatus according to the present embodiment, the color correction processing unit (input image processing unit 200) is a main scanning color deviation correction unit (main scanning color deviation correction unit 202) that corrects color deviation of image data in the main scanning direction. ), A sub-scanning color shift correcting unit (sub-scanning color shift correcting unit 201) for correcting a color shift in the sub-scanning direction of image data, a spatial frequency correcting unit (filter processing unit 204) for correcting a spatial frequency of image data, It is characterized by including at least one input color correction means (input color correction unit 206) for correcting the tint of data.
[0047]
FIG. 3 is a block diagram illustrating a detailed configuration of the intermediate
[0048]
[0049]
[0050]
That is, the image processing apparatus according to the present embodiment includes image input means (
[0051]
FIG. 4 is a block diagram illustrating a detailed configuration of the output
[0052]
[0053]
An output
[0054]
A
[0055]
Note that the processing in the output
[0056]
That is, the image processing apparatus according to the present embodiment includes an image forming unit (printer unit 130) for forming image data on a print medium, and an image output unit (output image processing unit) The characteristics of the
[0057]
As described above, each of the image processing units of the input
[0058]
For example, the
[0059]
In this way, each processing module performs an optimum process on the image area according to the attribute flag data, thereby achieving high image quality.
[0060]
FIG. 5 is a block diagram illustrating a detailed configuration of the
[0061]
The
[0062]
With the tile M × N pixels as one unit (packet), the image data is subjected to discrete cosine transform encoding (JPEG) in the image
[0063]
However, M and N must be multiples of the window size for discrete cosine transform coding. In the present embodiment, the case of the JPEG compression method will be described. In the JPEG compression method, the window size for compression is 8 × 8 pixels. Thus, for example, if M = N = 32, the 32 × 32 pixel tile is further divided into 16 8 × 8 pixels, and JPEG compression is performed in units of 8 × 8 pixels. Hereinafter, the description will be made assuming that M = N = 32, but of course the value is not limited to this.
[0064]
The image
[0065]
On the other hand, when no pixel indicates an attribute indicating a character, one tile of the image data is regarded as a photo tile, and the one tile of the image data is quantized by a compression matrix so as to be compressed by a coding coefficient for a photo. It issues a command to the
[0066]
The encoded image data and attribute flag data are stored as compressed image data and compressed attribute flag data in the
[0067]
That is, in the image processing apparatus according to the present embodiment, the image compression unit (compression processing unit 310) includes a line storage unit (line buffer 311) that stores image data for each line, and a predetermined number of lines (for example, eight lines). Encoding means (image data encoding unit 312) for encoding the image data of the image data as one unit (packet), and attribute flag data relating to the image data using image data of a predetermined unit (for example, 32 × 32 pixels) as one tile The image
[0068]
FIG. 6 is a block diagram illustrating a detailed configuration of the
[0069]
First, the compressed image data and the attribute flag are extracted from the
[0070]
Next, based on the decoding result of the attribute flag data, the
[0071]
The
[0072]
That is, in the image processing apparatus according to the present embodiment, the image decompression means (decompression processing unit 330) sets the compressed image data of a predetermined unit in the compressed image data as one tile, based on the attribute flag data regarding the compressed image data. (Determination unit 333) that determines compressed tile image data based on the attribute of the tile determined by the
[0073]
The configuration of the image
[0074]
FIG. 7 is a block diagram for explaining a detailed configuration of the image
[0075]
A
[0076]
The image data compressed by the image
[0077]
A variable length decoding (VLD)
[0078]
FIG. 8 is a block diagram showing a detailed configuration of the attribute flag
[0079]
In FIG. 8, a
[0080]
The RL
[0081]
FIG. 9 is a flowchart for explaining the flow of processing on an input image when scaling processing is not performed when outputting from the
[0082]
First, image data is input by the image scanner unit 100 (step S901). When the image data is input to the input
[0083]
Since the flowchart shown in FIG. 9 describes the case where the scaling process is not performed, the scaling process is not performed by the enlargement / reduction processing unit 340 (step S906), and then the output
[0084]
FIG. 10 is a flowchart for explaining the flow of processing on an input image when scaling processing is performed when outputting from the
[0085]
First, image data is input to the image scanner unit 100 (step S1001). As a result, the image data is input to the input
[0086]
In the case of the non-magnification processing shown in FIG. 9 (that is, 100%), for example, a compression coefficient that is 1/32 of the A4 size image capacity is used. On the other hand, for example, when 141% enlargement is designated, a compression process lower than 100% is performed by using a compression coefficient that is 1/16 of the A4 size image capacity.
[0087]
This is to prevent image degradation such as mosquito noise and color change due to compression from being made more conspicuous by enlarging. By lowering the compression ratio in this way, compression deterioration can be reduced and made inconspicuous even when enlarged, but the required storage capacity increases accordingly.
[0088]
However, an area that exceeds the A4 size due to the 141% enlargement is prevented from increasing the storage capacity by discarding both the image data and the attribute flag data when entering the
[0089]
Thereafter, the data is stored in the storage unit 320 (step S1004), and decompression is performed by the decompression processing unit 330 (step S1005). At this point, as described above, the pixels that extend beyond the A4 size due to the enlargement have been discarded, and the number of pixels of the image data is only half of the A4 size. FIG. 10 is a flowchart in the case of performing the scaling process, so that the scaling process is performed in the enlargement /
[0090]
Thereafter, the output
[0091]
As described with reference to the flowcharts of FIGS. 9 and 10, in the present embodiment, an example of an A4 size document image has been described, but the same applies to other sizes, such as A5 and A3 sizes. In addition, as the image data is enlarged or reduced, the attribute flag data is similarly enlarged or reduced. Further, when an unnecessary pixel in the image data is discarded, the attribute flag data corresponding thereto is also discarded.
[0092]
That is, the image processing apparatus according to the present embodiment includes an image input unit (an
[0093]
In the image processing apparatus according to the present embodiment, when the data amount of the image data after the enlargement process is performed by the scaling unit (enlargement / reduction processing unit 340) exceeds a predetermined capacity, the storage unit (the storage unit 320) ) Stores only image data of a predetermined portion of the image data within the range of the predetermined capacity.
[0094]
Further, the image processing apparatus according to the present embodiment further includes an image forming unit (printer unit 130) for forming image data on a print medium, and the
[0095]
<Second embodiment>
In the first embodiment, as described above, the content of performing predetermined image processing in the output
[0096]
In this case, since the enlargement / reduction processing has already been performed on the image data and the attribute flag data, as described with reference to the flowchart of FIG. 10, not the 1/16 compression coefficient but the 1/32 compression coefficient Compression processing. However, since the already enlarged image is multiplied by the 1/32 compression coefficient, it is possible to suppress the image deterioration compared to the case where the 1/32 compression coefficient is multiplied and then enlarged.
[0097]
<Other embodiments>
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.
[0098]
Further, an object of the present invention is to supply a recording medium (or a storage medium) recording a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide 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.
[0099]
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.
[0100]
When the present invention is applied to the recording medium, the recording medium stores program codes corresponding to the flowcharts described above.
[0101]
【The invention's effect】
As described above, according to the present invention, the scanner unit and the printer unit can be operated independently, and even when a plurality of copies are output, the output can be performed by one reading operation, and the read image can be read. By compressing the data, it is possible to avoid an increase in the storage capacity, and to minimize the image deterioration due to the compression, thereby realizing a high-quality image output.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus including an image input, accumulation, and output unit according to a first embodiment of the present invention.
FIG. 2 is a block diagram illustrating a detailed configuration of an input
FIG. 3 is a block diagram illustrating a detailed configuration of an intermediate
FIG. 4 is a block diagram illustrating a detailed configuration of an output
FIG. 5 is a block diagram showing a detailed configuration of a
FIG. 6 is a block diagram showing a detailed configuration of a
FIG. 7 is a block diagram for describing a detailed configuration of an image
8 is a block diagram illustrating a detailed configuration of an attribute flag
FIG. 9 is a flowchart for explaining a flow of processing on an input image when scaling processing is not performed when outputting from the
FIG. 10 is a flowchart illustrating a flow of processing on an input image when performing scaling processing when outputting from the
FIG. 11 is a block diagram showing a detailed configuration of a color document copying apparatus as a conventional image processing apparatus.
FIG. 12 is a diagram illustrating an example of a compression ratio that is varied according to a scaling factor when compression is performed by a
[Explanation of symbols]
100 Image Scanner
110 Page Description Language Rendering Unit
120 selector
130 Printer section
200 input image processing unit
201 Sub-scan color shift correction unit
202 Main scanning color shift correction unit
203 Image area determination unit
204, 404 Filter processing unit
205 Histogram processing unit
206 input color correction unit
300 Intermediate image processing unit
310 Compression processing unit
312 Image data encoding unit
315 Attribute flag encoder
320 storage unit
330 Decompression processing unit
332 image data decoding unit
335 attribute flag decoding unit
340 Enlargement / reduction processing unit
400 output image processing unit
401 Substrate removal section
402 monochrome generator
403 Output color correction unit
405 Gamma correction unit
406 Halftone processing unit
Claims (1)
前記色補正処理工程において色補正処理が行われた前記画像データを所定の圧縮率で圧縮する画像圧縮工程と、
前記画像圧縮工程において圧縮された前記画像データを所定の記憶媒体に記憶する記憶工程と、
前記記憶媒体に記憶された前記画像データを解凍する解凍工程と、
前記解凍工程において解凍された前記画像データを所定の変倍率で変倍する変倍工程と、
前記変倍工程において変倍された前記画像データを出力する画像出力工程と
を有し、
前記圧縮工程における前記圧縮率は、前記変倍工程において前記変倍率で変倍され、前記画像出力工程において出力させる前記画像データのデータ量に基づいて決定される
ことを特徴とする画像処理方法。A color correction processing step of performing color correction processing of the image data;
An image compression step of compressing the image data subjected to the color correction processing in the color correction processing step at a predetermined compression ratio;
A storage step of storing the image data compressed in the image compression step in a predetermined storage medium,
A decompression step of decompressing the image data stored in the storage medium,
A scaling step of scaling the image data decompressed in the decompression step at a predetermined scaling factor;
An image output step of outputting the image data that has been scaled in the scaling step,
The image processing method according to claim 1, wherein the compression ratio in the compression step is scaled by the scaling ratio in the scaling step, and is determined based on a data amount of the image data to be output in the image output step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002284242A JP2004120640A (en) | 2002-09-27 | 2002-09-27 | Image processing method and image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002284242A JP2004120640A (en) | 2002-09-27 | 2002-09-27 | Image processing method and image processing device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004120640A true JP2004120640A (en) | 2004-04-15 |
Family
ID=32277867
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002284242A Pending JP2004120640A (en) | 2002-09-27 | 2002-09-27 | Image processing method and image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004120640A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7646925B2 (en) | 2004-09-28 | 2010-01-12 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, program, and storage medium |
-
2002
- 2002-09-27 JP JP2002284242A patent/JP2004120640A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7646925B2 (en) | 2004-09-28 | 2010-01-12 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, program, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5552898A (en) | Lossy and lossless compression in raster image processor | |
US7646925B2 (en) | Image processing apparatus, image processing method, program, and storage medium | |
JP3927388B2 (en) | Image processing apparatus, image processing method, and recording medium | |
JPH11298744A (en) | Color image processor | |
US20090147287A1 (en) | Image processing apparatus, image processing method, and medium | |
JP2007081747A (en) | Image processing apparatus | |
JP2004080520A (en) | Image processing apparatus, image reading apparatus and image forming apparatus | |
JP5225201B2 (en) | Image processing device | |
JPH0514562A (en) | Digital copying machine | |
JP2004112695A (en) | Image processing apparatus and processing method thereof | |
JP3984817B2 (en) | Image processing apparatus and method, medium, and program | |
JP2003046789A (en) | Image coding apparatus and image decoding apparatus | |
JP4497684B2 (en) | Image processing apparatus and method | |
JP5052562B2 (en) | Image processing device | |
JP2004128664A (en) | Image processor and processing method | |
JP2004120640A (en) | Image processing method and image processing device | |
JP2001309183A (en) | Image processing unit and method | |
JP2004112140A (en) | Image processing apparatus | |
JP3538352B2 (en) | Image encoding method, image decoding method and color facsimile apparatus | |
JP4926128B2 (en) | Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method | |
JP5072907B2 (en) | Image processing device | |
JP4281242B2 (en) | Image processing apparatus and method, printer apparatus having the image processing apparatus, and storage medium storing computer-readable program | |
JP2002158879A (en) | Method for compressing/uncompressing image with gradation and compressing/uncompressing device | |
JP2002247386A (en) | Color image-processing device | |
JP4195624B2 (en) | Image processing apparatus, image forming apparatus, image reading apparatus, program, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050720 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050801 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050930 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20051118 |