JP2004120640A - Image processing method and image processing device - Google Patents

Image processing method and image processing device Download PDF

Info

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
Application number
JP2002284242A
Other languages
Japanese (ja)
Inventor
Shinichi Kato
加藤 進一
Hiroyuki Yaguchi
矢口 博之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2002284242A priority Critical patent/JP2004120640A/en
Publication of JP2004120640A publication Critical patent/JP2004120640A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method, capable of individually operating a scanner section and a printer section, outputting image data with one read-out operation, even when outputting a plural number of copies, compressing the read out image data to avoid increasing in the storage capacity, and minimizing image deterioration accompanying compression. <P>SOLUTION: An input image processing section 200 performs color correction processing on the image data input from an image scanner section 100 or the like. Then, the image data are compressed by a compression processing section 310 at a predetermined compression rate and stored in a storage section 320. Further, the image data are decompressed by a decompression processing section 330, scaling is conducted by a magnification/reduction processing section 340 with a predetermined scaling ratio, and the data are output from an output image processing section 400. Note that the compression rate in the compression processing section 310 is determined, based on the data amount of the image data, to which magnification zoom is conducted and which are output from the output image processing section 400. <P>COPYRIGHT: (C)2004,JPO

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, reference numeral 1101 denotes an image scanner unit which reads a document image and performs digital signal processing. Reference numeral 1102 denotes a printer unit that prints out an image corresponding to the document image read by the image scanner unit 1101 on a sheet in full color.
[0004]
In the image scanner unit 1101, reference numeral 1100 denotes a mirror surface pressure plate. A document 1104 on a platen glass (platen) 1103 is illuminated by a lamp 1105, guided to mirrors 1106, 1107, and 1108, and three-line solid-state image sensor (hereinafter referred to as “CCD sensor”) by a lens 1109. An image is formed on 1110, and three image signals of red (R), green (G), and blue (B) as full-color information are sent to the signal processing unit 1111.
[0005]
Note that the lamp 1105 and the mirror 1106 are moved at a speed v, and the mirrors 1107 and 1108 are moved at a speed of 1/2 v mechanically in the direction perpendicular to the electrical scanning (main scanning) direction of the line sensor. Scan (sub-scan). Here, the original 1104 is read at a resolution of 400 dpi (dots / inch) in both main scanning and sub scanning.
[0006]
The signal processing unit 1111 electrically processes the read image signal, decomposes the read image signal into magenta (M), cyan (C), yellow (Y), and black (Bk) components, and sends the components to the printer unit 1102. Further, with respect to one original scan in the image scanner unit 1101, an image signal relating to one component of M, C, Y, and Bk is sent to the printer unit 1102, and one print scan is performed by a total of four original scans. Out is completed.
[0007]
The M, C, Y, and Bk image signals sent from the image scanner unit 1101 to the printer unit 1102 are first sent to the laser driver 1112. The laser driver 1112 modulates and drives the semiconductor laser 1113 according to the sent image signal. The laser beam scans on the photosensitive drum 1117 via the polygon mirror 1114, the f · θ lens 1115, and the mirror 1116. Here, similarly to the reading, both the main scanning and the sub-scanning are written at a resolution of, for example, 400 dpi or 600 dpi.
[0008]
Reference numeral 1118 denotes a rotary developing device, which includes a magenta developing unit 1119, a cyan developing unit 1120, a yellow developing unit 1121, and a black developing unit 1122. The four developing units alternately contact the photosensitive drum 1117 and are formed on the photosensitive drum 1117. The developed electrostatic development is developed with toner.
[0009]
1123 is a transfer drum. Therefore, the sheet supplied from the sheet cassette 1124 or 1125 is wound around the transfer drum 1123, and the image developed on the photosensitive drum 1117 is transferred to the sheet.
[0010]
After the four colors M, C, Y, and Bk are sequentially transferred in this manner, the sheet passes through the fixing unit 1126, and is discharged outside the color original copying apparatus after the toner is fixed on the sheet. You.
[0011]
[Problems to be solved by the invention]
However, in the above-described conventional image processing apparatus, basically, it is necessary to operate the image scanner unit 1101 for reading a document and the printer unit 1102 for outputting a copy image in synchronization.
[0012]
In the above-described conventional color original copying apparatus, the R, G, and B image signals read by the CCD sensor 1110 are processed by the signal processing unit 1111 for each pixel and converted into M, C, Y, and Bk. . Then, the image is sequentially sent to the printer unit 1102 and is written on the photosensitive drum 1117 by a laser to form a copied image. That is, image formation in the conventional image processing apparatus is performed for each of M, C, Y, and Bk, and the image forming process is repeated for each of them. There is.
[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 image scanner unit 1101 and the printer unit 1102 are simultaneously operated. Need to work. Therefore, for example, when the heater unit of the fixing unit 1126 of the printer unit 1102 (in the case of the normal heat-fixing type) is not sufficiently heated, the printer unit 1102 is in a standby state, so that the copying operation and the original reading are performed. No action can be taken.
[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 invention 1 or 2, characterized in that:
[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, reference numeral 120 denotes a selector for switching an image input system, 200 denotes an input image processing unit that performs predetermined image processing described later, 300 denotes an intermediate image processing unit that performs predetermined image processing described below, and 400 denotes a predetermined image processing described below. An output image processing unit that performs processing.
[0037]
The input of the image data is performed by the image scanner unit 100 or the page description language (PDL) rendering unit 110 corresponding to the image scanner unit 1101 in FIG. For example, the selector 120 is switched and used depending on the purpose, such as from the image scanner unit 100 in the case of a copying machine, from the page description language rendering unit 110 in the case of a controller that handles image signals such as a personal computer, etc. A printer unit 130 forms an image on a print medium such as paper, and corresponds to the printer unit 1102 in FIG.
[0038]
FIG. 2 is a block diagram illustrating a detailed configuration of the input image processing unit 200 of the image processing apparatus according to the first embodiment of the present invention.
[0039]
Reference numeral 201 denotes a sub-scanning color shift correction unit that corrects a color shift in the sub-scanning direction of an input image. Reference numeral 202 denotes a main scanning color shift correction unit that corrects a color shift of the input image in the main scanning direction. For example, a process of performing a 5 × 1 matrix operation for each color of image data is performed.
[0040]
An image area determination unit 203 identifies an image type in the input image. For example, the image area determination unit 203 determines pixels constituting each image type, such as a photograph part / character part, a chromatic part / achromatic part, in the input image. Identify and generate attribute flag data indicating the type for each pixel. A filter processing unit 204 arbitrarily corrects the spatial frequency of the input image, and performs, for example, a process of performing a 9 × 9 matrix operation.
[0041]
A histogram processing unit 205 samples a histogram of the image signal data in the input image. For example, the histogram processing unit 205 determines whether the input image is a color image or a monochrome image, and determines the background level of the input image. Is An input color correction unit 206 corrects the color of the input image. For example, the input color correction unit 206 converts the color space of the input image into an arbitrary color space, and performs a correction process on the color of the input system.
[0042]
The image data processed by the input image processing unit 200 and the attribute flag data generated by the image area determination unit 203 are transferred to the intermediate image processing unit 300.
[0043]
The image signal from the page description language (PDL) rendering unit 110 may be subjected to predetermined processing through the image processing and the image area determination unit 203 in the input image processing unit 200 as described above, or may be already personalized. If it has been processed by a computer or the like, it may be passed through here.
[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 language rendering unit 110 are not passed through the image processing and image area determination unit 203 of the input image processing unit 200. The configuration may be such that the image is input to the intermediate image processing unit 300.
[0045]
Further, the processing in the input image processing unit 200 is not limited to the processing using all of the sub-scanning color misregistration correction units 201 to the input color correction unit 206 described above, and even if another image processing module is added. Good and may be deleted. Further, the processing order of the sub-scanning color shift correction unit 201 to the input color correction unit 206 is not limited to this.
[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 image processing unit 300 of the image processing apparatus according to the first embodiment of the present invention. The image data that has been subjected to the above-described correction processing and the like by the input image processing unit 200 is transferred to the intermediate image processing unit 300 together with the attribute flag data, and then subjected to detailed processing by each processing unit having the following configuration. You.
[0048]
Reference numeral 310 denotes a compression processing unit which performs compression processing on image data and attribute flag data by a predetermined compression method. The detailed processing in the compression processing section 310 will be described later with reference to FIG. A storage unit 320 stores the image data and the attribute flag data compressed by the compression processing unit 310, and includes a large-capacity hard disk or the like. A decompression unit 330 decompresses each of the compressed image data and attribute flag data by a predetermined decompression method. The detailed processing in the decompression processing unit 330 will be described later with reference to FIG.
[0049]
Reference numeral 340 denotes an enlargement / reduction processing unit that performs enlargement / reduction processing on image data at a preset magnification on an operation panel or an operation screen (not shown). For the scaling process, scaling is performed by a nearest neighbor process that assigns and replaces the value of a neighboring pixel to a known pixel of interest, and is scaled by a bilinear process that allocates an interpolation value between the pixel of interest and a neighboring pixel. In this case, scaling by bicubic processing, which is assigned by performing function processing on neighboring pixels, is used.
[0050]
That is, the image processing apparatus according to the present embodiment includes image input means (image scanner unit 100, page description language rendering unit 110, selector 120) for inputting image data, and color correction processing means for performing color correction processing on image data. (Input image processing unit 200), image compression means (compression processing unit 310) for compressing the image data on which color correction processing has been performed by input image processing unit 200 at a predetermined compression ratio, and compression by compression processing unit 310. Storage means (storage section 320) for storing the extracted image data; decompression means (decompression processing section 330) for decompressing the image data stored in storage section 320; Magnification means (enlargement / reduction processing unit 340) for changing the magnification (enlargement or reduction) at the magnification ratio, and magnification by the enlargement / reduction processing unit 340 And an image output means for outputting the image data (output image processing unit 400). The compression ratio in the compression processing unit 310 is determined based on the data amount of the image data output from the output image processing unit 400 after being scaled by the scaling factor in the enlargement / reduction processing unit 340. I do.
[0051]
FIG. 4 is a block diagram illustrating a detailed configuration of the output image processing unit 400 of the image processing apparatus according to the first embodiment of the present invention.
[0052]
Reference numeral 401 denotes a background removal unit that removes a background color of image data and removes unnecessary background fog. For example, background removal is performed by a 3 × 8 matrix operation or a one-dimensional lookup table (LUT). Reference numeral 402 denotes a monochrome generation unit which converts color image data into monochrome data and converts color image data, for example, RGB data into a single gray color when printing as a single color. For example, a 1 × 3 matrix operation is performed by multiplying RGB by an arbitrary constant to obtain a gray signal.
[0053]
An output color correction unit 403 performs color correction according to the characteristics of the printer unit 130 that outputs image data. For example, processing by a 4 × 8 matrix operation or direct mapping is performed.
[0054]
A filter processing unit 404 arbitrarily corrects the spatial frequency of the image data, and performs, for example, a 9 × 9 matrix operation process. Reference numeral 405 denotes a gamma correction unit that performs gamma correction in accordance with the characteristics of the printer unit 130 that outputs the image data. Normally, a one-dimensional LUT is used. Reference numeral 406 denotes a halftone processing unit that performs an arbitrary halftone process in accordance with the number of gradations of the output printer unit 130, and performs an arbitrary screen process such as binarization or 32 value conversion or an error diffusion process.
[0055]
Note that the processing in the output image processing unit 400 is not limited to the processing using all of the above-described background removal unit 401 to the halftone processing unit 406, and other image processing modules may be added, It may be deleted. Further, the processing order of the background removal unit 401 to the halftone processing unit 406 is not limited to this order.
[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 printer unit 130 include a background removal unit (substrate removal unit 401) that removes unnecessary background fog during image formation by skipping colors, a monochrome generation unit (monochrome generation unit 402) that converts image data into monochrome data, and An output color correction unit (output color correction unit 403) for performing color correction of image data in combination with the gamma correction unit (gamma correction unit 404) for gamma correction of image data according to the characteristics of the printer unit 130; At least one halftone processing unit (halftone processing unit 406) that performs halftone processing of image data in accordance with the number of gradations that can be formed is provided. And wherein the Rukoto.
[0057]
As described above, each of the image processing units of the input image processing unit 200, the intermediate image processing unit 300, and the output image processing unit 400 shown in FIG. 2, FIG. 3, and FIG. The attribute flag data generated by the image area determining unit 203 for identifying the type of the image in the input image, which has been described with reference to the above, is also input to each image processing unit together after the image area determining unit 203. Then, in each image processing unit, image processing is performed on each image region using an optimal processing coefficient according to the attribute flag data.
[0058]
For example, the filter processing unit 404 of the output image processing unit 400 in FIG. 4 emphasizes the sharpness of the character by emphasizing the high-frequency components of the image for the character area, and the so-called low-pass filter processing for the halftone area. To remove moiré components peculiar to the digital image.
[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 compression processing unit 310 in the intermediate image processing unit 300 in the image processing device according to the first embodiment of the present invention.
[0061]
The line buffer 311 accumulates input image data and attribute flag data for each line, and after accumulating a predetermined number of lines, divides the data into data on M × N tiles. For example, when the window size is 8 × 8 pixels, the data is accumulated from 8 lines and then output from the line buffer 311 as 8 × 8 tile data.
[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 data encoding unit 312 for each packet, and the attribute flag data is attributed to the attribute flag encoding unit 315 Perform run-length encoding.
[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 data encoding unit 312 subjects the 16 8 × 8 pixel windows included in the 32 × 32 pixel tile image to DCT transform and quantizes them. The quantization coefficient (hereinafter, referred to as “quantization matrix”) used at this time can be switched and set for each tile. For the switching, first, the determination unit 313 refers to attribute flag data of 32 × 32 pixels corresponding to certain predetermined 32 × 32 pixel image data (one tile). For example, if the attribute flag data of 32 × 32 pixels includes attribute flag data indicating even a single character, one tile of image data composed of the 32 × 32 pixels is regarded as a character tile. One tile of the image data issues a command to the quantization matrix selection unit 314 to perform compression using a character encoding coefficient.
[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 selection unit 314. The quantization matrix selection unit 314 selects a predetermined coding coefficient, sets the selected coding coefficient in the image data coding unit 312, and compresses the image data using a different compression coefficient for each tile.
[0066]
The encoded image data and attribute flag data are stored as compressed image data and compressed attribute flag data in the storage unit 320 via the compression memory 316.
[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 data encoding unit 312 includes a determining unit (determining unit 313) that determines the attribute of the tile based on the attribute of the tile based on the attribute of the tile (for example, determining a photo tile or a character tile) determined by the determining unit 313. Thus, one unit of image data in the tile is encoded.
[0068]
FIG. 6 is a block diagram illustrating a detailed configuration of the decompression processing unit 330 in the intermediate image processing unit 300 in the image processing device according to the first embodiment of the present invention. When the compressed image data stored in the storage unit 320 is output from the printer unit 130, the compressed image data and the compressed attribute flag data stored in the storage unit 320 are read, and decoded and output in the following procedure.
[0069]
First, the compressed image data and the attribute flag are extracted from the storage unit 320 to the compression memory 331, and the attribute flag data of M × N pixels is decoded by the attribute flag decoding unit 335.
[0070]
Next, based on the decoding result of the attribute flag data, the determination unit 333 performs attribute determination processing. That is, as described above, whether one tile of each image data is a character tile or a photographic tile is determined from the attribute flag data, and a decoding coefficient for each tile is selected by the quantization matrix selection unit 334. To send instructions. The quantization matrix selection unit 334 selects a decoding coefficient to be used for each tile and sends it to the image data decoding unit 332. The image data decoding unit 332 switches the coefficient for each tile and converts the image data. The data is decoded, and then output to the line buffer 336.
[0071]
The determination units 313 and 333 perform exactly the same determination, and the attribute flag data is compressed by a lossless compression method such as run-length encoding that does not deteriorate data. The corresponding determination results are completely equal. Therefore, even if the quantization is performed with a different quantization coefficient for each tile, a correct decoded image data can be obtained because an appropriate inverse quantization coefficient is set at the time of decoding.
[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 determination unit 333, and an image data decoding unit 332 that decodes compressed image data based on the tile attribute determined by the determination unit 333. It is characterized by.
[0073]
The configuration of the image data encoding unit 312 and the image data decoding unit 332 will be described in detail with reference to FIG. 7, and the attribute flag data encoding unit 315 will be described in detail with reference to FIG.
[0074]
FIG. 7 is a block diagram for explaining a detailed configuration of the image data encoding unit 312 and the image data decoding unit 332 described with reference to FIG. In the figure, reference numeral 700 denotes an input image data signal, and in the case of a color signal, image data signals of three colors of red (R), green (G), and blue (B).
[0075]
A color converter 701 converts an RGB signal into a luminance / color difference signal (YCbCr). Reference numeral 702 denotes a discrete cosine transform (DCT), which performs spatial frequency transform (DCT transform) on each of the luminance and color difference signals in units of 8 × 8 pixels. A quantizer 703 quantizes DCT coefficients using a set quantization matrix, thereby reducing the data amount. A variable length coding (VLC) unit 704 further reduces data by a Huffman coding process on a quantized value. The above is the detailed configuration of the image data encoding unit 312.
[0076]
The image data compressed by the image data encoding unit 312 is stored in a compression memory (Memory) 705. The compression memory 705 shown here corresponds to the compression memories 316 and 331 shown in FIGS. The data stored in the compression memory 705 is decoded using the following configuration.
[0077]
A variable length decoding (VLD) unit 706 performs Huffman decoding. Reference numeral 707 denotes an inverse quantizer, which returns a DCT coefficient value according to the set inverse quantization matrix. Reference numeral 708 denotes an IDCT unit that performs DCT inverse transform to return to a luminance / color difference signal. Reference numeral 709 denotes a color converter that converts a luminance / color difference signal into an RGB signal. A color image signal 710 is output to the outside as a result of the compression and decoding processing.
[0078]
FIG. 8 is a block diagram showing a detailed configuration of the attribute flag data encoding unit 315, which is a run-length encoder for attribute flag data described in FIG.
[0079]
In FIG. 8, a determination unit 800 determines whether or not the value of the previous pixel and the value of the current pixel of the input attribute flag data are the same. As a result, it is switched to send data to the RL code generation unit 801 if they are the same and to the LT code generation unit 802 if they are different.
[0080]
The RL code generation unit 801 counts the number of times of the same case as the previous pixel data until different data comes out, and finally outputs the repeated data. The LT code generation unit 802 counts the number of cases where the data is different from the previous pixel, and outputs a code word corresponding to the count and the minimum number of constituent bits of the actual data for the count. The combining unit 803 combines the output data of the RL code generation unit 801 and the output data of the LT code generation unit 802 and outputs the result as a code 804.
[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 printer unit 130 in the image processing apparatus according to the first embodiment of the present invention. That is, when a document image of A4 size is input from the image scanner unit 100, various image processes are performed on the input image processing unit 200, the intermediate image processing unit 300, and the output image processing unit 400, and the image is output from the printer unit 130. The flow of processing on an input image when no scaling processing is performed will be described below.
[0082]
First, image data is input by the image scanner unit 100 (step S901). When the image data is input to the input image processing unit 200, the various image processing described with reference to FIG. 2 is performed (step S902). Next, compression is performed by the compression processing unit 310 in the intermediate image processing unit 300 (step S903). For example, the compression processing is performed using a compression coefficient that is 1/32 of the A4 size image capacity. Thereafter, the data is stored in the storage unit 320 (step S904), and decompression is performed by the decompression processing unit 330 (step S905).
[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 image processing unit 400 is described with reference to FIG. Various image processing is performed (step S907). Then, the image data on which all the processes have been completed is output from the print unit 130 (step S908).
[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 printer unit 130 in the image processing apparatus according to the first embodiment of the present invention. That is, when a document image of A4 size is input from the image scanner unit 100, various image processes are performed on the input image processing unit 200, the intermediate image processing unit 300, and the output image processing unit 400, and the image is output from the printer unit 130. The flow of processing on an input image in the case of performing a scaling process will be described below.
[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 image processing unit 200, and the various image processes described with reference to FIG. 2 are performed (step S1002). Next, the image data is input to the intermediate image processing unit 300 and compressed by the compression processing unit 310 (step S1003). The compression coefficient here is variable according to the magnification. FIG. 12 is a diagram illustrating an example of a compression ratio that is varied in accordance with a scaling factor when compression is performed by the compression processing unit 310.
[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 compression processing unit 310. it can. That is, since the area of A4 size 141% is twice as large as the area of A4 size 100%, when the area is enlarged by 141%, a half of the area of A4 size 100% is protruded. Here, since the number of pixels to be stored is halved, the capacity of the storage unit 320 is half that of the A4 size 100%. Therefore, even if the 1/16 compression is performed, the capacity is the same as that when the A4 size is 100%, so that the 1/16 compression can be performed at the time of 141% enlargement without increasing the storage capacity.
[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 / reduction processing unit 340 according to a preset magnification (step S1006). As a result, the image data having half the number of pixels of the A4 size is enlarged by 141% to have the number of pixels of the A4 size.
[0090]
Thereafter, the output image processing unit 400 performs the various image processes described with reference to FIG. 4 (step S1007). Then, the image data on which all the processes have been completed is output from the print unit 130 (step S1008).
[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 image scanner unit 100, a page description language rendering unit 110, a selector 120, a color correction processing unit that performs a color correction process on image data, An input image processing unit 200); an attribute flag data generating unit (image area determining unit 203) for generating attribute flag data indicating attribute information of each pixel of the image data; Image compression means (image data encoding section 312 in compression processing section 310) for compressing data at a predetermined compression rate based on data, and flag compression means (attribute in compression processing section 310) for compressing generated attribute flag data A flag encoding unit 315), and a storage unit (storage unit 320) that stores the compressed image data and the compressed attribute flag data. Flag decompression means (the attribute flag decoding unit 335 in the decompression processing unit 330) for decompressing the attribute flag data stored in the storage unit 320, and decompresses the image data stored in the storage unit 320 based on the attribute flag data. Image decompressing means (image data decoding section 332 in decompression processing section 330); scaling means (zoom processing section 340) for scaling the decompressed image data at a predetermined scaling factor; And an image output unit (output image processing unit 400) for outputting image data.The compression ratio in the image data encoding unit 312 is scaled by the enlargement / reduction processing unit 340 and output from the output image processing unit 400. It is determined based on the data amount of the image data to be performed.
[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 storage unit 320 stores the image data on the print medium (for example, It is characterized by storing only image data of a portion where an image is formed on A4 size paper).
[0095]
<Second embodiment>
In the first embodiment, as described above, the content of performing predetermined image processing in the output image processing unit 400 after the image data is subjected to the enlargement / reduction processing in the enlargement / reduction processing unit 340 has been described. Therefore, in the second embodiment, after the enlargement / reduction processing is performed by the enlargement / reduction processing unit 340, the compression processing unit 310 performs compression again and spools the data in the storage unit 320.
[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 image processing unit 200 of the image processing apparatus according to the first embodiment of the present invention.
FIG. 3 is a block diagram illustrating a detailed configuration of an intermediate image processing unit 300 of the image processing apparatus according to the first embodiment of the present invention.
FIG. 4 is a block diagram illustrating a detailed configuration of an output image processing unit 400 of the image processing apparatus according to the first embodiment of the present invention.
FIG. 5 is a block diagram showing a detailed configuration of a compression processing unit 310 in the intermediate image processing unit 300 in the image processing device according to the first embodiment of the present invention.
FIG. 6 is a block diagram showing a detailed configuration of a decompression processing unit 330 in the intermediate image processing unit 300 in the image processing device according to the first embodiment of the present invention.
FIG. 7 is a block diagram for describing a detailed configuration of an image data encoding unit 312 and an image data decoding unit 332 described with reference to FIG.
8 is a block diagram illustrating a detailed configuration of an attribute flag data encoding unit 315 that is a run-length encoder for attribute flag data described in FIG.
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 printer unit 130 in the image processing apparatus according to the first embodiment of the present invention.
FIG. 10 is a flowchart illustrating a flow of processing on an input image when performing scaling processing when outputting from the printer unit 130 in the image processing apparatus according to the first embodiment of the present invention.
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 compression processing unit 310.
[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.
JP2002284242A 2002-09-27 2002-09-27 Image processing method and image processing device Pending JP2004120640A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
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