Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3846524B2 - Image data background determination method, image data background determination device, and medium storing image data background determination program - Google Patents
[go: Go Back, main page]

JP3846524B2 - Image data background determination method, image data background determination device, and medium storing image data background determination program - Google Patents

Image data background determination method, image data background determination device, and medium storing image data background determination program Download PDF

Info

Publication number
JP3846524B2
JP3846524B2 JP05428599A JP5428599A JP3846524B2 JP 3846524 B2 JP3846524 B2 JP 3846524B2 JP 05428599 A JP05428599 A JP 05428599A JP 5428599 A JP5428599 A JP 5428599A JP 3846524 B2 JP3846524 B2 JP 3846524B2
Authority
JP
Japan
Prior art keywords
image data
background
image
frequency distribution
background determination
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.)
Expired - Fee Related
Application number
JP05428599A
Other languages
Japanese (ja)
Other versions
JP2000253250A (en
Inventor
英邦 守屋
直樹 鍬田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP05428599A priority Critical patent/JP3846524B2/en
Priority to PCT/JP2000/001216 priority patent/WO2000052922A1/en
Priority to US09/674,638 priority patent/US7099041B1/en
Priority to DE60042257T priority patent/DE60042257D1/en
Priority to EP00906615A priority patent/EP1085747B1/en
Priority to AT00906615T priority patent/ATE432589T1/en
Publication of JP2000253250A publication Critical patent/JP2000253250A/en
Application granted granted Critical
Publication of JP3846524B2 publication Critical patent/JP3846524B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、画像データ下地判定方法、画像データ下地判定装置および画像データ下地判定制御プログラムを記録した媒体に関し、特に、画像における下地の有無を同画像を構成する画像データの所定の度数分布に基づいて判定する画像データ下地判定方法、画像データ下地判定装置および画像データ下地判定制御プログラムを記録した媒体に関する。
【0002】
【従来の技術】
コンピュータなどで画像を扱う際には、スキャナやデジタルカメラなどの画像入力機器から取得した入力画像の画像データをドットマトリクス状の画素で表現し、各画素を階調値で表している。かかる場合、コンピュータのCRT画面で水平方向に640ドット、垂直方向に480ドットの画素で画像を表示することが多い。また、各画素ごとに色や明るさを階調値で表わしたデータを持つことになるため、このデータを変化させて画像処理が行われている。この画像処理として、文書画像などに対しては、下地を除去する画像処理が行われている。ここで、文書画像の下地とは、文書用紙の紙の領域を表わす画素の集合を指し、背景や裏うつりともいう。また、下地の除去とは、紙の領域を表わす画素の階調を最大に変化させることをいう。すなわち、この画像処理後に文書画像を印刷する場合、上述したように階調を最大にした画素は印刷されず、この画素の部分は紙の地のままになる。従って、見かけ上、紙の領域を表わす部分の画素が除去されたようになり、下地と文字とにおいてメリハリのある印刷物を得ることが可能になる。かかる場合、下地の有無に関わらず、一律に所定のしきい値以上の階調を有する画素の階調を最大にしている。適用事例として、両面に印刷が施された文書用紙をスキャナで読み取った場合に、この文書画像の表面の画像データに裏面の画像データが裏映りしまうことを防止するために利用されている。この裏映りは、表面の何も印刷されないはずの領域に表れるため、この領域の画素の階調を最大にしてしまうことにより、裏映りを除去している。
【0003】
【発明が解決しようとする課題】
上述した従来の下地を除去する画像処理においては、次のような課題がある。すなわち、この下地除去処理は、下地の有無に関わらず、下地があると仮定して画像全体に対して一律に画像処理を実施する。従って、入力した画像に下地があり、この下地の輝度の階調が比較的低い場合は、下地部分を除去することができないという課題がある。また、この下地除去処理を実施しても、一律の画像処理であるため、入力する画像ごとに最適な下地除去処理を実施することがでないため、下地部分が残ったり、下地と下地以外の画像にめりはりがなくなったりするという課題がある。
【0004】
本発明は、上記課題にかんがみてなされたもので、画像における下地の有無を同画像を構成する画像データの所定の度数分布に基づいて判定するとともに、下地があると、下地に応じた所定の画像データ修整処理を実施し、画像データにより再生される画像の下地と下地以外の画像とのめりはりをつけることが可能な画像データ下地判定方法、画像データ下地判定装置および画像データ下地判定制御プログラムを記録した媒体の提供を目的とする。
【0005】
【課題を解決するための手段】
上記目的を達成するため、請求項1にかかる発明は、画像における下地を構成する領域を画像データの所定の度数分布に基づいて判定する画像データ下地判定方法であって、画像をドットマトリクス状の画素で多階調表現した画像データを取得する画像データ取得工程と、上記画像データ取得工程にて取得した画像データの各画素について階調を集計し、度数分布を作成する度数分布作成工程と、上記度数分布の最頻値が属する所定幅の領域の相対度数が所定のしきい値以上である場合、上記画像に下地を構成する領域が存在すると判定する下地判定工程とを行う構成としてある。
【0006】
上記のように構成した請求項1にかかる発明において、画像下地判定方法は、画像における下地を構成する領域を画像データを構成する各画素により所定の度数分布に基づいて判定する。かかる場合、画像データ取得工程は、画像をドットマトリクス状の画素で多階調表現した画像データを取得する。次に、度数分布作成工程は、画像データ取得工程にて取得した画像データの各画素が備える画像データを解析し、各画素の画像データについての階調を集計する。そして、集計結果を階調と、各階調の度数とによる度数分布を作成する。ここで、下地判定工程は、上述した度数分布において、最頻値が属する所定幅の領域の特性を表示する相対度数を算出する。そして、この相対度数が所定のしきい値以上である場合、上記画像に下地が存在すると判定する。すなわち、画像データを構成する各画素の階調の度数分布から最頻値が属する所定幅の領域の特性を表示する相対度数を算出し、この相対度数が所定のしきい値以上であれば、入力した画像に下地が存在すると判定する。具体的には、この所定の階調にて区分した領域の相対度数が所定のしきい値以上であり圧倒的に大きい場合に下地が存在すると判定する。上述した相対度数が圧倒的に大きい場合とは、下地とみなせる範囲において圧倒的に大きいことを示し、数値的な感覚から捕らえられる圧倒的な大きさとは異なることは言うまでもない。例えば、所定の階調にて区分された領域の相対度数が15パーセントであっても、画像を構成する部分から判断すると圧倒的に大きいと捕らえる場合もある。この所定のしきい値は、所定の固定値であってもよいし、入力した画像の画像データの階調の度数分布に応じて適宜変更してもよい。ここで、上述した入力画像における下地とは、例えば、入力画像が文書画像である場合、文書用紙の領域を表わす画素の集合、すなわち、下地や裏うつりのことを指すものである。また、下地の色成分は、上述したように判定する下地に応じて適宜変更されるため、特に限定されない。
【0007】
画像データ取得工程は、画像をドットマトリクス状の画素で多階調表現した画像データを取得することができればよい。従って、画像の入力元は、スキャナであってもよいし、デジタルカメラであってもよく、ドットマトリクス状の画素で多階調表現した画像データを取得可能であれば、適宜変更可能である。また、度数分布作成工程は、上記画像データ取得工程にて取得した画像データの各画素について階調を集計し、画像の階調傾向を認識できる度数分布を作成することが可能であればよい。従って、階調を集計する画素は、入力した画像の全画素について実施してもよいし、適宜サンプリングして実施してもよい。むろん、サンプリングを利用すれば、計算時間の短縮を図ることが可能になることはいうまでもない。また、かかる場合、上述した画像データ取得工程の段階においてサンプリング画像を取得するようにしてもよい。下地判定工程は、度数分布作成工程にて作成した度数分布の最頻値が属する所定幅の領域の相対度数を算出し、この相対度数に基づいて画像データ取得工程にて取得した画像に存在する下地を判定することができればよい。
【0008】
各画素は、入力画像がカラー画像であれば、R(赤)G(緑)B(青)ごとの階調値をデータとして備え、二値画像であれば、濃淡の階調値をデータとして備えている。度数分布作成工程は、前者であれば、各画素のRGBの階調値を階調ごとに集計し、度数分布を作成するし、後者であれば、各画素の輝度の階調を集計し、度数分布を作成する。また、RGBのカラー画像についてもRGBのデータから輝度を算出し、輝度の階調を集計し度数分布を作成してもよい。ここで、後者の一例として、請求項2にかかる発明は、請求項1に記載の画像データ下地判定方法において、上記度数分布作成工程は、各画素の輝度を算出するとともに、同輝度の階調を集計し、度数分布を作成する構成としてある。上記のように構成した請求項2にかかる発明において、度数分布作成工程は、入力した画像がカラー画像であれば、各画素のRGBのデータから各画素の輝度を算出し、濃淡を示す階調値を取得する。また、入力した画像が二値画像であれば、画素の濃淡を示す階調値を取得する。そして、各輝度の階調を集計し、度数分布を作成する。
【0009】
上述した度数分布を作成する前者の一例として、請求項3にかかる発明は、上記請求項1に記載の画像データ下地判定方法において、上記度数分布作成工程は、各画素の色合いを示す各要素色の濃度階調を集計し、各要素色ごとの濃度階調の度数分布を作成する構成としてある。上記のように構成した請求項3にかかる発明において、度数分布作成工程は、入力したカラー画像の各画素を要素色、すなわち、各画素の画像データをRGBの要素色に色分解するとともに、各要素色ごとに階調を集計し、度数分布を作成する。
【0010】
ここで、下地判定工程は、上述した方法によって作成された画像データを構成する各画素の輝度または要素色の階調による度数分布に基づいて、画像に下地が存在するか否かを判定する。
【0011】
【0012】
【0013】
【0014】
ここで、度数分布には入力した画像に含まれるノイズ成分の画素の階調についても度数に表れるため、統計量の算出結果に、このノイズ成分が影響を及ぼすことが有り得る。そこで、この度数分布に入り込んだノイズ成分を低減することができる好適な手法として、請求項4にかかる発明は、請求項1〜請求項3のいずれかに記載の画像データ下地判定方法において、上記下地判定工程は、度数分布の所定の階調にて区分された領域の統計値を算出するにあたり、同度数分布に対して平滑化処理を実施する構成としてある。上記のように構成した請求項4にかかる発明において、下地判定工程は、度数分布の所定の階調にて区分された領域の統計値を算出するにあたり、同度数分布に対して平滑化処理を実施する。これによって、ノイズ成分を除去した度数分布に基づいて統計量を算出するため、算出結果がノイズ成分に影響を受けない。
【0015】
このように、判定された下地を構成する各画素に対して所定の画像処理を施すことによって、下地と下地以外の画像についてめりはりをつけることが可能になる。そこで、請求項5にかかる発明は、上記請求項1〜請求項4に記載の画像データ下地判定方法において、上記下地判定工程が画像に下地を構成する領域が存在すると判定した場合、同下地を構成する領域に属する画素の階調の平均値に応じた補正曲線により各画素の階調を補正する修整処理を実施する画像データ修整工程を備える構成としてある。上記のように構成した請求項5にかかる発明において、画像データ修整工程は、上記下地判定工程が画像に下地を構成する領域が存在すると判定した場合、同下地を構成する領域に属する画素の階調の平均値に応じた補正曲線により各画素の階調を補正する。また、請求項6にかかる発明は、上記請求項1〜請求項5に記載の画像データ下地判定方法において、上記下地判定工程が画像に下地を構成する領域が存在すると判定した場合、同下地を構成する領域に属する画素の階調のばらつきに応じた補正曲線により各画素の階調を補正する修整処理を実施する画像データ修整工程を備える構成としてある。
【0016】
【0017】
【0018】
このように、画像における下地を構成する領域の存在を画像データの所定の度数分布に基づいて判定する手法は必ずしも方法に限られる必要はなく、その方法を実体に組み込んで動作させることにより、機能を実現する装置として利用することが可能なことは容易に理解できる。このため、請求項7にかかる発明は、画像における下地を構成する領域を画像データの所定の度数分布に基づいて判定する画像データ下地判定装置であって、画像をドットマトリクス状の画素で多階調表現した画像データを取得する画像データ取得手段と、上記画像データ取得手段にて取得した画像データの各画素について階調を集計し、度数分布を作成する度数分布作成手段と、上記度数分布の最頻値が属する所定幅の領域の相対度数が所定のしきい値以上である場合、上記画像に下地を構成する領域が存在すると判定する下地判定手段とを具備する構成としてある。すなわち、必ずしも方法に限定されず実体のある装置としても有効であることに相違はない。
【0019】
ところで、このような画像における下地を構成する領域の存在を画像データの所定の度数分布に基づいて判定する画像データ下地判定装置は単独で存在する場合もあるし、ある機器に組み込まれた状態で利用されることもあるなど、発明の思想としてはこれに限らず、各種の態様を含むものである。従って、ソフトウェアであったりハードウェアであったりするなど、適宜変更可能である。発明の思想の具現化例として画像における下地を構成する領域を画像データの所定の度数分布に基づいて判定する画像データ下地判定装置のソフトウェアとなる場合には、かかるソフトウェアを記録した記録媒体上においても当然に存在し、利用されるといわざるをえない。
【0020】
その一例として、請求項8にかかる発明は、画像における下地を構成する領域を画像データの所定の度数分布に基づいて判定する機能をコンピュータに実行させる画像データ下地判定制御プログラムを記録した媒体であって、画像をドットマトリクス状の画素で多階調表現した画像データを取得する画像データ取得機能と、上記画像データ取得機能にて取得した画像データの各画素について階調を集計し、度数分布を作成する度数分布作成機能と、上記度数分布の最頻値が属する所定幅の領域の相対度数が所定のしきい値以上である場合、上記画像に下地を構成する領域が存在すると判定する下地判定機能とをコンピュータに実行させる構成としてある。
【0021】
むろん、その記録媒体は、磁気記録媒体であってもよいし光磁気記録媒体であってもよいし、今後開発されるいかなる記録媒体においても全く同様に考えることができる。また、一次複製品、二次複製品などの複製段階については全く問う余地無く同等である。その他、供給方法として通信回線を利用して行なう場合でも本発明が利用されていることにはかわりない。さらに、一部がソフトウェアであって、一部がハードウェアで実現されている場合においても発明の思想において全く異なるものではなく、一部を記録媒体上に記憶しておいて必要に応じて適宜読み込まれるような形態のものとしてあってもよい。
【0022】
【発明の効果】
以上説明したように本発明は、画像における下地を構成する領域を画像データの所定の度数分布に基づいて判定するとともに、下地の領域が存在すると、下地に応じた所定の修整処理を実施し、画像データにより再生される画像の下地と下地以外の画像とのめりはりをつけることが可能な画像データ下地判定方法を提供することができる。
【0023】
【0024】
【発明の実施の形態】
以下、図面にもとづいて本発明の実施形態を説明する。図1は、本発明の一実施形態にかかる画像データ下地判定方法のクレーム対応図を示している。同図において、本画像データ下地判定方法は、概略、画像における下地を構成する領域の存在を、同画像を構成する画像データの所定の度数分布に基づいて判定する。具体的には、画像データ取得工程A1において、下地判定の対象となる画像をドットマトリクス状の画素で多階調表現した画像データを取得する。次に、度数分布作成工程A2は、画像データ取得工程A1にて取得した画像データの各画素について階調を集計し、度数分布を作成する。そして、下地判定工程A3は、度数分布の所定の階調により区分された領域の特性を表示する統計量を算出し、同統計量が下地を構成するに十分な値を示す場合、上記画像に下地を構成する領域が存在すると判定する。ここで、下地判定工程A3は、画像の高階調付近に下地を構成する領域が存在する場合、同下地を構成する領域に応じて各画素の画像データを修整する修整処理を実施する画像データ修整工程A4を備える。この画像データ修整工程A4は、上記高階調付近、すなわち、略白色を形成する各画素の階調を最大階調、すなわち、白色にするパラメータを備えた補正曲線を生成し、同補正曲線に基づいて画像データ取得工程にて取得した各画素の階調を補正する。
【0025】
次に、本画像データ下地判定方法を実体化した画像データ下地判定装置を構成するために適用したカラー複写装置の外観斜視図を図2に示す。本カラー複写装置10は、カラースキャナ20と、コピーサーバ30と、カラープリンタ40とから構成されており、コピーサーバ30による制御に基づいてカラースキャナ20にて画像をスキャンすると、スキャンにより読み込まれた画像データに対して同コピーサーバ30が画像処理を実施して印刷データを生成し、この印刷データに基づいてカラープリンタ40が印刷を行う。
【0026】
図3はカラースキャナ20の概略構成を示しており、フラットベッドタイプを採用している。同図において、スキャン対象物を載置する透明板材21の下方には照明ランプ22とラインセンサ23とが往復スライド移動可能に支持されるとともに、これらを駆動するための駆動ベルト24aとプーリ24bと駆動モータ24cとが配置され、制御回路25に接続されている。画像を読み込むときには、制御回路25からの制御信号に基づいて照明ランプ22が点灯すると、透明板材21を介してスキャン対象物を照明するので、同スキャン対象物からの反射光が同透明板材21を介してラインセンサ23に照射される。
【0027】
ここで、ラインセンサ23には光の三原色に対応するRGBフィルタとCCD素子とが一色につき一列、通常三列配置されており、この三列のCCD素子によりスキャン対象物の水平方向にわたる一列分の色配置を読み込み、画像データとして出力する。一方、制御回路25は駆動モータ24cを駆動させることにより、これらの照明ランプ22とラインセンサ24とを一体的にスキャン対象物の垂直方向に向かって移動させ、微少距離分だけ移動させる毎にラインセンサ23から画像データを取得して出力する。これにより、外部的にはスキャン対象物を水平方向に主走査しながら垂直方向に副走査し二次元の画像データを生成していくことになる。
【0028】
図4および図5はコピーサーバ30を概略ブロック図により示している。同コピーサーバ30は概略的にはコンピュータと同等であり、CPU31のバス32に対してRAM33とROM34と操作パネル35とハードディスク36とI/F37とが接続される構成になっている。ここで、カラースキャナ20やカラープリンタ40はI/F37を介して接続されている。また、ROM34には基本的な演算プログラムや変換テーブルが書き込まれており、CPU31はRAM33をワークエリアとして使用しながら同演算プログラムを実行するし、必要に応じて上記変換テーブルを参照する。本実施形態においてはI/F37を特定していないが、同I/F37はカラースキャナ20やカラープリンタ40をコピーサーバ30に接続可能であればよく、LPTポートにより接続する形態であってもよいし、USBポートやSCSIにより接続する形態であっても構わない。
【0029】
また、ハードディスク36は、カラースキャナ20を駆動するスキャナドライバ38aやプリンタ40を駆動するプリンタドライバ38bを備え、同スキャナドライバ38aはカラースキャナ20から画像データを同プリンタドライバ38bはカラープリンタ40へ画像データをそれぞれ入出力可能になっている。そして、ハードディスク36はこの画像データを一時的に蓄えるようなバッファとして使用したり、スキャナドライバ38aが入力した画像データを読み込み、同画像データに含まれる下地を構成する領域を検出し、この検出した下地の領域に対応する画像データ修整処理を実施するとともに、この画像データ修整処理を実施した画像データをプリンタドライバ38bに出力し、カラープリンタ40に印刷を実行させる画像データ下地判定制御プログラム39などを格納している。この他、操作パネル35にはスキャン開始ボタン35aであるとか、印刷枚数を入力したり、画像を修整する項目を設定するテンキー35bなどの各種の操作ボタンとともに、操作情報を確認するための液晶表示器35cなども備えられ、CPU31はバス32を介して同操作パネル35の操作状況を監視可能となっている。
【0030】
図6はカラープリンタ40の構成を概略的に示しており、記録紙上に対してドットマトリクス状に色インクを吐出して印字を行うインクジェット方式を採用している。より詳細には、三つの印字ヘッドユニット41aからなる印字ヘッド41と、この印字ヘッド41を制御する印字ヘッドコントローラ42と、同印字ヘッド41を桁方向に移動させる印字ヘッド桁移動モータ43と、印字用紙を行方向に送る紙送りモータ44と、これらの印字ヘッドコントローラ42と印字ヘッド桁移動モータ43と紙送りモータ44における外部機器とのインターフェイスにあたるプリンタコントローラ45とから構成されている。
【0031】
このカラープリンタ40は印字インクとして四色の色インクを使用するものであり、各印字ヘッドユニット41aにはそれぞれ独立した二列の印字ノズルが形成されている。供給する色インクは印字ノズルの列単位で変えることができ、この場合は図示左方の印字ヘッドユニット41aについては二列とも黒色インク(K)を供給し、図示右方の印字ヘッドユニット41aについては左列にマゼンタ色インク(M)を供給するとともに右列にイエロー色インク(Y)を供給し、図示真ん中の印字ヘッドユニット41aについては左列にシアン色インク(C)を供給するとともに右列は不使用としている。
【0032】
なお、本実施形態においては、四色の色インクを使用しているが、三つの印字ヘッドユニット41aにおける二列の印字ノズルを最大限に利用して六色の色インクを使用することも可能である。この場合、シアンとマゼンタについては濃色インクと淡色インクとを使用するものとし、さらにイエローとブラックとを使用して合計六色とすることができる。本実施形態においては、このようなコピーサーバ30を核とする一体型に形成した専用のカラー複写装置10として本画像データ下地判定装置を適用しているが、図6に示すようなカラースキャナ51とカラープリンタ52を備えたパソコン53によって、カラー複写システムを採用したとしても同様に実現できることはいうまでもない。
【0033】
図8は、上述したコピーサーバ30が実行するカラー複写処理のうち、本発明にかかる画像データ下地判定処理の処理内容について概略をフローチャートにより示している。同図において、本カラー複写装置10の操作者は、カラースキャナ20のフラットベッド21にスキャン対象物の文書を載置すると、操作パネル35aにてスキャン開始ボタン35aを押し下げる。これによりカラースキャナ20はスキャンを開始する。最初に、上記文書の画像を含むフラットベッド21全体の画像について低解像度の画素からなる画像データを生成するために、プレスキャンを実行する(ステップS100)。そして、生成された画像データから所定の手法に基づいて文書画像の画像データに下地を構成する領域が存在するか否かを判定する(ステップS200)。次に、カラースキャナ20は、判定結果に基づいて後述する所定の画像データ修整処理を実行するために、フラットベッド21を動作させ、上記文書画像の詳細な画像データを取得する高解像度の本スキャンを開始する(ステップS300)。そして、この本スキャンによって読み込まれた画像データに対して、ステップS200にて下地と判定した領域の所定の統計値に基づく補正曲線により画像データ修整処理を実行する(ステップS400)。この画像データ修整処理が完了すると、カラープリンタ40に出力する印刷データを生成する画像データ変換処理を実行する(ステップS500)。これにより上記ステップS100にて入力した文書画像の画像データに対して同文書画像の下地の領域を考慮した画像データ修整処理を実行することになる。
【0034】
本実施形態においては、ステップS100においてプレスキャン処理を実行し、低解像度のサンプリング画像データに基づいてステップS200にて画像の下地を構成する領域を判定し、ステップS300の本スキャン処理にて取得した詳細な画像データに対してステップS400の画像データ修整処理を実行する構成を採用しているが、むろん、ステップS100のプレスキャン処理を取り外し、本スキャン処理によって取得した画像データに基づいて画像の下地を構成する領域を判定するとともに、画像データ修整処理を実行する構成を採用してもかまわない。
【0035】
次に、ステップS100〜S500の各処理について、より具体的な処理内容を図9〜図17のフローチャートを使用して説明する。図9のフローチャートはステップS100のプレスキャン処理の処理内容を示している。上述したように本カラー複写装置の操作者がフラットベッド21に文書をスキャン対象物として載置し、スキャナ開始ボタン35aを押し下げると、I/O37を介してカラースキャナ20に対して画像読み取り指令が送出されスキャンが開始される(ステップS101)。そして、操作者がテンキー35bにて設定したプレスキャンの解像度を読み出す(ステップS105)。ここで、カラースキャナ20の制御回路25は照明ランプ22を点灯させ、駆動モータ24cに駆動指令を出力して同照明ランプ22とラインセンサ23とをスライド移動させることにより画像の走査を開始する(ステップS110)。そして、所定距離分を移動するごとに制御回路25は、ラインセンサ23が読み取った画像を解像度により分割された画素の画像データを生成し(ステップS115)、コピーサーバ30に送信する。コピーサーバ30の側ではこの画像データをI/F37を介して受け取り、ハードディスク36にスプールする。ここで、上記分割された画素について全ての走査が終了したと判定すると(ステップS120)、上記スプールされた画像データをハードディスク36に格納する(ステップS125)。
【0036】
従って、このように低解像度のスキャンを実行して画像データを取得しつつ格納するプレスキャン処理は、画像データ取得工程A1を構成する。本実施形態においては、プレスキャンを所定の低解像度により実行する構成を採用しているが、具体的な解像度は50dpiであってもよく、60dpiであってもよい。また、同解像度は予めRAM34やROM35やハードディスク36に格納されているものであってもよいし、上述したように操作パネル35あるいはパソコン53が備えるキーボードやマウスから所定の方法により適宜設定可能であってもよい。
【0037】
そして、この画像データから図10に示すステップS200の下地判定処理のフローチャートに従って同画像データに含まれる各画素の度数分布を作成し、同度数分布より画像の下地の領域の存在を判定する。同図において、最初に、ステップS125にてハードディスク36に格納された画像データを読み出す(ステップS201)。ここで、同画像データの各画素の色あいを構成するR(赤)G(緑)B(青)データの色成分を抽出する。各色成分は、階調0〜255の濃度を備えているため、各画素について、このRGBデータの階調0〜255を次式(1)に代入し、輝度Yを算出する(ステップS205)。
Y=0.30R+0.59G+0.11B ・・・(1)
この式(1)により画像データの全画素について輝度を算出すると、輝度の階調0〜255ごとに画素数を集計し、図11に示す度数分布を作成する。次に、各階調0〜255における相対度数を算出する。各階調の度数Iは次式(2)にて表わされる。
I=f(n) n=0〜255 ・・・(2)
従って、各階調における相対度数は、次式(3)によって算出することができる(ステップS210)。

Figure 0003846524
そして、この度数分布において画像の下地を構成する領域である下地分布の抽出区間を設定する(ステップS215)。この下地分布の区間を設定するにあたり、最初に、同度数分布における最大度数を次式(4)によって決定する。
fmod=max[f(n)]n=0〜255 ・・・(4)
そして、この最大度数fmodに該当する階調を最頻値nmodとする。この最頻値nmodは、図11に示すように度数分布の最頂部を形成する階調となる。そして、この最頻値nmodを利用して下地分布の抽出区間を決定する階調M1およびM2を次式(5)に基づいて算出する。
【0038】
M1=nmod−N N<=nmod =0
N>nmod ・・・(5)
M2=nmod+N−1 N<=256−nmod
=255 N>256−nmod
ここで、定数Nは、予め決められた正の整数とする。具体的には、Nは10前後であればよい。この階調M1およびM2により、図11に示すように下地分布の抽出区間が区間[M1,M2]に決定される。次に、上記のように決定した下地分布の抽出区間における各画素の相対度数の累積を算出する(ステップS220)。この相対度数は、上記式(3)を利用して、次式(6)により算出することができる。
Figure 0003846524
この相対度数Rは、図11に示す区間[M1,M2]と度数分布によって囲まれる斜線部分の面積によって示すことができる。このように、算出された下地分布の抽出区間における相対度数Rと、度数分布における最頻値nmodを使用して、下地分布の存在を判定する(ステップS225)。かかる場合、次式(7)の条件を満たすときに、画像に下地を構成する領域が存在すると判定する。
【0039】
R>Rth かつ nmod>nth ・・・(7)
ここで、Rthおよびnthは予め決められた正の整数であって、所定のしきい値を構成する。具体的には、Rthは、0.15程度となるとともに、nthは、180程度となる。むろん、これらの数値は、一例にすぎず、適宜変更可能である。このようにして、下地を構成する領域が存在するか否かが判定される。本実施形態においては、輝度を算出し、略白色を構成する部分を下地と判定する処理を構成しているが、各色成分の度数分布に基づいて各色成分について本処理を実施し、それぞれの度数分布の傾向を考慮すれば、各色やその混合色によって形成される下地を判定することも可能である。従って、各画素の色成分を形成する階調より輝度を算出し、画像データの度数分布を作成するとともに、同度数分布より画像の下地を構成する領域を判定する下地分布を作成し、この下地分布の所定の統計量に基づいて画像に下地が存在するか否かを判定することから、ステップS210〜S225の下地判定処理が度数分布作成工程A2および下地判定工程A3を構成する。
【0040】
次に、画像に下地、すなわち、所定量の文書の用紙の紙の地により形成される略白色の領域が存在すると判定された場合に、この下地の領域に対応して後述する画像データ修整処理を実施するため、カラースキャナ20に載置されているスキャン対象物の文書画像について本スキャン処理を実行する。この本スキャン処理の処理内容を図12のフローチャートに示す。最初に、操作者がテンキー35bにて設定した本スキャンの解像度を読み出す(ステップS301)。かかる解像度は上述したプレスキャン処理の解像度より密なものに設定されることは言うまでもない。そして、カラースキャナ20の制御回路25は照明ランプ22を点灯させ、駆動モータ24cに駆動指令を出力して同照明ランプ22とラインセンサ23とをスライド移動させることにより画像の走査を開始し(ステップS305)、所定距離分を移動するごとに制御回路25はラインセンサ23は読み取った画像を解像度により分割された画素の画像データを生成し(ステップS310)、コピーサーバ30に送信する。コピーサーバ30の側ではこの画像データをI/F37を介して受け取り、ハードディスク36にスプールする。ここで、上記分割された画素について全ての走査が終了したと判定すると(ステップS315)、上記スプールされた画像データをハードディスク36に格納する(ステップS320)。従って、このように高解像度による本スキャンを実行して文書画像の画像データを取得しつつ格納する本スキャン処理は、上記プレスキャン処理とともに画像データ取得工程A1を構成する。
【0041】
このように、下地を構成する領域が存在すると判定された場合、略白色付近の各画素を画像データ修整処理において、白色、つまり、最大階調にクランプする。すると、このクランプした部分は、カラープリンタ40の印刷において、インクが印刷媒体に塗布されないため、白色の紙の地のままの領域となる。従って、文書の画像においては、下地の紙の領域と文字の黒色部分のコントラストがはっきりとするようになり、めりはりの有る見栄えの良い画像に修整することが可能になる。
【0042】
次に、図13のフローチャートに示した上記画像データ修整処理の概略処理内容を説明するとともに、以下、各処理について詳細を説明する。同図において、最初に、画像データの各画素に対して修整を実施する対応関係を示す補正曲線を決定する補正曲線決定処理を実行し(ステップS401)、次に、この補正曲線に基づいて各画素の各色成分の階調を順次修整し(ステップS450)、画像データを生成する。
【0043】
図14は、ステップS401にて実行する補正曲線決定処理の処理内容をフローチャートにより示している。同図において、式(4)にて決定した度数分布の最頻値nmodを取得する(ステップS405)。そして、この最頻値nmodの階調が階調255、すなわち、最大階調であるか否かを判定する(ステップS410)。次に、下地分布の統計量を算出する区間を設定する(ステップS415)。ここで設定する下地分布は、上記区間[M1,M2]であってもよいし、下地とする領域を略白色部分とする場合は、領域を区分する階調について、一方を階調255に設定し、他方を次式(8)より算出して設定してもよい。
A=nmod−B*(255−nmod) ・・・(8)
ここで、定数Bは、予め決定された変数で、次式(9)の条件を満たすように決定されている。
0<B<nmod/(255−nmod) ・・・(9)
この変数Bは、具体的に、2前後であればよい。以上より下地分布の統計量を算出する区間は、区間[A,255]と決定される。次に、この区間[A,255]における平均値naveを次式(10)により算出するとともに、標準偏差nstdを次式(11)により算出する(ステップS420)。
Figure 0003846524
Figure 0003846524
【0044】
そして、この平均値naveおよび標準偏差nstdを利用して、補正曲線のしきい値Tを次式(12)に基づいて算出する(ステップS425)。
T=nave−Cnstd ・・・(12)
ここで、定数Cは、次式(13)の条件を満たすように設定される。
C=C2 1−R>=Cth2 ・・・(13)
=C1 Cth1<=1−R<Cth2
また、このC1およびC2は、予め決定された正の整数であり、Cth1は、Rthを利用して次式(14)によって設定されている。
Cth2=1−Rth ・・・(14)
【0045】
本実施形態においては、C1は4程度に、C2は2程度に、そして、Cth1は0.7程度に設定されている。このようにして、しきい値Tが算出されると、補正曲線が決定される。本実施形態において、補正曲線は、図15に示すように、しきい値T以降の入力階調を出力階調255にクランプするとともに、入力階調0〜Tの間を傾き255/Tを有する一次直線によって形成している。むろん、しきい値Tから階調255の入力階調を出力階調255にクランプすることができればよく、入力階調0〜Tの間を二次曲線にして良いし、傾きが異なる一次直線にしてもよく、適宜変更可能である。この補正曲線をRGBデータごとに作成する。また、ステップS410にて最頻値nmodが255であった場合は、入力階調と出力階調において(0,0)と(255,255)を結ぶ傾き1の一次直線を生成させる。すなわち、しきい値Tの階調を255にする。
【0046】
次に、ステップS450の画像データ修整処理の処理内容を図16のフローチャートにより示す。同図において、最初に、本スキャン処理によって生成された画像データを取得する(ステップS455)。そして、画像データの各画素を走査し、各画素の備える各色成分の階調を入力階調とし、補正曲線に代入し、出力階調を算出する(ステップS460)。ステップS455にて取得した画像データの全画素について補正曲線に基づく修整処理が完了しているか否かを判定し(ステップS465)、完了していない場合は、ステップS460に戻り次の画素を走査して順次補正曲線に基づいて修整処理を実行する。全画素について修整処理が完了していれば、出力階調から構成される画像データをハードディスク36に格納する(ステップS470)。
【0047】
このように画像データ修整処理が実施され生成された画像データは、色変換処理などが施されてカラープリンタ40に送出され印刷が実行される。ここで、修整後の画像データに対してカラープリンタ40に送出される前に実行される画像データ変換処理の処理内容を図17のフローチャートに示す。同図において、最初に、画像データ修整処理が実行され、各画素が出力階調により構成されている画像データを入力し(ステップS501)、色変換する(ステップS505)。画像データが一般的なRGB256階調であるとするとプリンタ50ではCMYK2階調の印刷用色画像データが必要となるので、色変換と階調変換が必要になる。従って、ステップ505では、RGB256階調の色画像データをCMYK256階調の色画像データに変換する。このとき標準的は手法に基づいてLUTを利用して色変換処理を実行すればよい。次に、CMYK256階調をCMYK2階調へとハーフトーン化し(ステップS510)、ハーフトーン化したデータをパラレル通信でパソコン10からプリンタ50へと送信する(ステップS515)。
【0048】
ここで、画像データ修整処理における実行前と実行後との画像データの状態の変化を図18に示す。実行前の画像データは図18(a)に示し、実行後の画像データは図18(b)に示す。なお、同図は、各小区画によって画像データを構成する各画素を示し、階調0の画素は画像において黒色となる箇所を示している。一方、階調255の画素は画像において白色、すなわち、文書画像の紙の領域を示している。ここで、図18(a)においては、黒色の部分と、紙の領域の境界に斜線で示したグレーの画素が存在していることが分かる。かかる画素があるために黒色と白色部分の境界があいまいになり、図19(a)に示すように、文書を表示した画像において、めりはりのない画像になってしまう。一方、上述した画像データ修整処理を実行した場合、図18(b)に示すように、このグレーの部分を最大階調255にクランプするため、黒色と白色部分についてはっきりと境界を作ることができ、図19(b)に示すようにめりはりの付いた画像になることが分かる。
【0049】
このように、文書をカラースキャナ40にてスキャンし、同文書の画像における下地を構成する紙の地の領域、すなわち、略白色の領域を、同画像を構成する画像データの所定の度数分布に基づいて判定することが可能になる。また、下地の存在を判定すると、補正曲線により略白色の下地領域を画像データ修整処理によって白色、すなわち、最大階調に修整するため、画像データにより再生される画像の下地と下地以外の画像とのめりはりをつけることができ、裏うつりなど下地に表れるノイズ成分を除去することが可能になる。
【図面の簡単な説明】
【図1】 本発明の一実施形態にかかる画像データ下地判定方法のクレーム対応図である。
【図2】 本画像データ下地判定方法を実体化するために適用したカラー複写装置の概略外観図である。
【図3】 本カラー複写装置のスキャナの構成を示した概略図である。
【図4】 本カラー複写装置のコピーサーバの構成を示した概略ブロック図である。
【図5】 同コピーサーバの構成を示した概略ブロック図である。
【図6】 本カラー複写装置のカラープリンタの構成を示した概略図である。
【図7】 本カラー複写装置の変形例を示したコンピュータシステムの概略外観図である。
【図8】 同コピーサーバが実行するカラー複写処理の概略の処理内容を示したフローチャートである。
【図9】 同コピーサーバが実行するプレスキャン処理の処理内容を示したフローチャートである。
【図10】 同コピーサーバが実行する下地判定処理の処理内容を示したフローチャートである。
【図11】 同下地判定処理により作成された画像データの度数分布を示した図である。
【図12】 同コピーサーバが実行する本スキャン処理の処理内容を示したフローチャートである。
【図13】 同コピーサーバが実行する画像データ修整処理の処理内容を示したフローチャートである。
【図14】 同コピーサーバが実行する補正曲線決定処理の処理内容を示したフローチャートある。
【図15】 同補正曲線決定処理にて決定された補正曲線の一例を示した図である。
【図16】 同コピーサーバが実行する画像データ修整処理の処理内容を示したフローチャートである。
【図17】 同コピーサーバが実行する画像データ変換処理の処理内容を示したフローチャートである。
【図18】 同画像データ修整処理によって修整される画像データ修整処理の実行前と実行後の画素の構成を示した図である。
【図19】 同画像データ修整処理によってめりはりが付いた画像になる様子を示した図である。
【符号の説明】
A1…画像データ取得工程
A2…度数分布作成工程
A3…下地判定工程
A4…画像データ修整工程[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image data background determination method, an image data background determination device, and a medium on which an image data background determination control program is recorded. In particular, the presence or absence of a background in an image is based on a predetermined frequency distribution of image data constituting the image. The present invention relates to an image data background determination method, an image data background determination device, and a medium on which an image data background determination control program is recorded.
[0002]
[Prior art]
When an image is handled by a computer or the like, image data of an input image acquired from an image input device such as a scanner or a digital camera is represented by a dot matrix pixel, and each pixel is represented by a gradation value. In such a case, an image is often displayed with 640 dots in the horizontal direction and 480 dots in the vertical direction on the CRT screen of the computer. In addition, since each pixel has data representing color and brightness with gradation values, image processing is performed by changing this data. As this image processing, image processing for removing a background is performed on a document image or the like. Here, the background of the document image refers to a set of pixels representing a paper area of the document paper, and is also referred to as a background or a back side. The removal of the background means changing the gradation of the pixel representing the paper area to the maximum. In other words, when the document image is printed after this image processing, the pixel having the maximum gradation is not printed as described above, and the pixel portion remains on the paper. Accordingly, the pixels of the portion representing the paper area are apparently removed, and it is possible to obtain a printed material with sharpness in the background and characters. In such a case, the gradation of pixels having gradations equal to or higher than a predetermined threshold value is uniformly maximized regardless of the presence or absence of the background. As an application example, when a document sheet printed on both sides is read by a scanner, it is used to prevent the back side image data from being reflected in the front side image data of the document image. Since this show-up appears in an area where nothing is supposed to be printed on the surface, the show-through is removed by maximizing the gradation of the pixels in this area.
[0003]
[Problems to be solved by the invention]
The above-described conventional image processing for removing the background has the following problems. In other words, in this background removal processing, image processing is uniformly performed on the entire image on the assumption that there is a background regardless of the presence or absence of the background. Therefore, when the input image has a background, and the brightness gradation of the background is relatively low, there is a problem that the background portion cannot be removed. Even if this background removal processing is performed, since it is uniform image processing, it is not possible to perform optimal background removal processing for each input image. There is a problem that there is no longer any burial.
[0004]
The present invention has been made in view of the above problems, and determines the presence or absence of a background in an image based on a predetermined frequency distribution of image data constituting the image. An image data background determination method, an image data background determination device, and an image data background determination control program capable of performing image data modification processing and applying an overlay between an image background reproduced by image data and an image other than the background The purpose is to provide a recorded medium.
[0005]
[Means for Solving the Problems]
In order to achieve the above object, an invention according to claim 1 is an image data background determination method for determining a region constituting a background in an image based on a predetermined frequency distribution of image data, wherein the image is in a dot matrix shape. An image data acquisition step for acquiring image data expressed in multiple gradations with pixels, a frequency distribution creation step for totalizing the gradation for each pixel of the image data acquired in the image data acquisition step, and creating a frequency distribution, When the relative frequency of the region of a predetermined width to which the mode value of the frequency distribution belongs is equal to or greater than a predetermined threshold value, a background determination step is performed for determining that a region constituting the background exists in the image.
[0006]
In the invention according to claim 1 configured as described above, the image background determination method determines an area constituting the background in the image based on a predetermined frequency distribution by each pixel constituting the image data. In such a case, the image data acquisition step acquires image data in which the image is expressed in multiple gradations with dots matrix pixels. Next, in the frequency distribution creation process, the image data included in each pixel of the image data acquired in the image data acquisition process is analyzed, and the gradations for the image data of each pixel are totaled. Then, a frequency distribution is created based on the gradation result and the frequency of each gradation. Here, the background determination step calculates a relative frequency for displaying the characteristics of the region of a predetermined width to which the mode value belongs in the frequency distribution described above. When the relative frequency is equal to or greater than a predetermined threshold value, it is determined that the background exists in the image. That is, the relative frequency for displaying the characteristics of the region of the predetermined width to which the mode value belongs is calculated from the frequency distribution of the gradation of each pixel constituting the image data, and if this relative frequency is equal to or greater than a predetermined threshold value, It is determined that a background exists in the input image. Specifically, it is determined that the background exists when the relative frequency of the area divided by the predetermined gradation is greater than or equal to a predetermined threshold value and overwhelmingly large. The case where the above-mentioned relative frequency is overwhelmingly large means that it is overwhelmingly large in a range that can be regarded as a background, and it goes without saying that it is different from the overwhelming size captured from a numerical sense. For example, even if the relative frequency of the region divided by a predetermined gradation is 15%, it may be considered that it is overwhelmingly large as judged from the portion constituting the image. The predetermined threshold value may be a predetermined fixed value, or may be appropriately changed according to the frequency distribution of the gradation of the image data of the input image. Here, the background in the input image refers to, for example, a set of pixels representing an area of a document sheet, that is, a background or a back surface when the input image is a document image. Further, the color component of the background is not particularly limited because it is appropriately changed according to the background determined as described above.
[0007]
The image data acquisition step only needs to be able to acquire image data in which an image is expressed in multiple gradations using dots matrix pixels. Therefore, the input source of the image may be a scanner or a digital camera, and can be changed as appropriate as long as image data expressed in multi-tone with dot matrix pixels can be acquired. In addition, the frequency distribution creating step only needs to be able to create a frequency distribution capable of recognizing the tone tendency of an image by summing up the gradation for each pixel of the image data acquired in the image data acquiring step. Therefore, the pixels for which the gradation is totaled may be implemented for all the pixels of the input image, or may be sampled as appropriate. Of course, if sampling is used, it is needless to say that calculation time can be shortened. In such a case, a sampling image may be acquired in the stage of the image data acquisition process described above. The background determination step calculates the relative frequency of a region having a predetermined width to which the mode value of the frequency distribution created in the frequency distribution creation step belongs, and exists in the image acquired in the image data acquisition step based on the relative frequency. It suffices if the background can be determined.
[0008]
If the input image is a color image, each pixel has gradation values for each of R (red), G (green), and B (blue) as data. If the input image is a binary image, each pixel has gradation values for grayscale. I have. In the frequency distribution creation step, if the former, the RGB gradation values of each pixel are aggregated for each gradation to create a frequency distribution, and if the latter, the luminance gradation of each pixel is aggregated, Create a frequency distribution. For the RGB color image, the luminance may be calculated from the RGB data and the luminance gradation may be totaled to create the frequency distribution. Here, as an example of the latter, the invention according to claim 2 is the image data background determination method according to claim 1, wherein the frequency distribution creating step calculates the luminance of each pixel and also calculates the gradation of the same luminance. And the frequency distribution is created. In the invention according to claim 2 configured as described above, in the frequency distribution creating step, if the input image is a color image, the luminance of each pixel is calculated from the RGB data of each pixel, and the gradation indicating the light and shade Get the value. If the input image is a binary image, a gradation value indicating the density of the pixel is acquired. Then, the gradation of each luminance is totaled and a frequency distribution is created.
[0009]
As an example of the former for creating the above-described frequency distribution, the invention according to claim 3 is the image data background determination method according to claim 1, wherein the frequency distribution creating step includes each element color indicating a hue of each pixel. The density gradations are totaled, and a frequency distribution of density gradations for each element color is created. In the invention according to claim 3 configured as described above, the frequency distribution creating step color-separates each pixel of the input color image into element colors, that is, image data of each pixel into RGB element colors. Aggregate gradations for each element color to create a frequency distribution.
[0010]
Here, in the background determination step, it is determined whether or not a background exists in the image based on the luminance distribution of each pixel constituting the image data created by the above-described method or the frequency distribution based on the gradation of the element color.
[0011]
[0012]
[0013]
[0014]
Here, in the frequency distribution, the tone of the pixel of the noise component included in the input image also appears in the frequency, and this noise component may affect the calculation result of the statistic. Therefore, as a suitable technique capable of reducing the noise component that has entered the frequency distribution, the invention according to claim 4 is the image data background determination method according to any one of claims 1 to 3, wherein The background determination step is configured to perform a smoothing process on the same frequency distribution when calculating a statistical value of a region divided by a predetermined gradation of the frequency distribution. In the invention according to claim 4 configured as described above, the background determination step performs a smoothing process on the frequency distribution in calculating the statistical value of the region divided by the predetermined gradation of the frequency distribution. carry out. As a result, the statistic is calculated based on the frequency distribution from which the noise component is removed, so that the calculation result is not affected by the noise component.
[0015]
In this way, by performing predetermined image processing on each pixel constituting the determined background, it is possible to apply an emphasis to images other than the background and the background. Therefore, the invention according to claim 5 is the image data background determination method according to any one of claims 1 to 4, wherein the background determination step determines that the region constituting the background exists in the image. The image data modification process is performed to perform a modification process for correcting the gradation of each pixel using a correction curve corresponding to the average value of the gradation of the pixels belonging to the region to be configured. In the invention according to claim 5 configured as described above, in the image data modification step, when the background determination step determines that a region constituting the background exists in the image, the level of pixels belonging to the region constituting the background is determined. The gradation of each pixel is corrected by a correction curve corresponding to the average value of the tone. According to a sixth aspect of the present invention, in the image data background determination method according to any one of the first to fifth aspects, when the background determination step determines that an area constituting the background exists in the image, the background is determined. An image data modification process is performed in which a modification process for correcting the gradation of each pixel is performed using a correction curve corresponding to the variation in gradation of the pixels belonging to the region to be configured.
[0016]
[0017]
[0018]
As described above, the method for determining the presence of the region constituting the background in the image based on the predetermined frequency distribution of the image data is not necessarily limited to the method. It can be easily understood that it can be used as a device for realizing the above. For this reason, the invention according to claim 7 is an image data background determination device for determining an area constituting a background in an image based on a predetermined frequency distribution of image data, wherein the image is multi-ordered with dot matrix pixels. Image data acquisition means for acquiring the expressed image data, frequency distribution generation means for totalizing gradations for each pixel of the image data acquired by the image data acquisition means, and generating a frequency distribution; and When the relative frequency of the area of the predetermined width to which the mode value belongs is greater than or equal to a predetermined threshold value, the image forming apparatus includes background determination means for determining that the area constituting the background exists in the image. That is, it is not necessarily limited to the method, and there is no difference that it is effective as a substantial apparatus.
[0019]
By the way, there is a case where there is an image data background determination device that determines the presence of a region constituting a background in such an image based on a predetermined frequency distribution of the image data, or it is incorporated in a certain device. The idea of the invention is not limited to this, and may include various aspects. Therefore, it can be changed as appropriate, such as software or hardware. As an embodiment of the idea of the invention, when the image data background determination device software determines the area constituting the background in the image based on a predetermined frequency distribution of the image data, on the recording medium recording such software Naturally exists and must be used.
[0020]
As an example, the invention according to claim 8 is a medium that records an image data background determination control program that causes a computer to execute a function of determining an area constituting a background in an image based on a predetermined frequency distribution of image data. The image data acquisition function for acquiring image data in which the image is expressed in multi-tone with pixels in a dot matrix, and the gradation for each pixel of the image data acquired by the image data acquisition function are aggregated to obtain a frequency distribution. The frequency distribution creation function to be created and the background determination that determines that the area constituting the ground exists in the image when the relative frequency of the area of the predetermined width to which the mode value of the frequency distribution belongs is equal to or greater than a predetermined threshold value The function is executed by a computer.
[0021]
Of course, the recording medium may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium that will be developed in the future. In addition, the duplication stages such as the primary duplication product and the secondary duplication product are equivalent without any question. In addition, even when the communication method is used as a supply method, the present invention is not changed. Further, even when a part is software and a part is realized by hardware, the idea of the invention is not completely different, and a part is stored on a recording medium and is appropriately changed as necessary. It may be in the form of being read.
[0022]
【The invention's effect】
As described above, the present invention determines the area constituting the background in the image based on the predetermined frequency distribution of the image data, and when the background area exists, performs a predetermined modification process according to the background, It is possible to provide an image data background determination method capable of applying a margin between a background of an image reproduced by image data and an image other than the background.
[0023]
[0024]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram corresponding to claims of an image data background determination method according to an embodiment of the present invention. In this figure, the present image data background determination method generally determines the presence of a region constituting a background in an image based on a predetermined frequency distribution of image data constituting the image. Specifically, in the image data acquisition step A1, image data in which an image to be subjected to background determination is expressed in multi-tone with dot matrix pixels is acquired. Next, in the frequency distribution creation step A2, the gradation is totalized for each pixel of the image data acquired in the image data acquisition step A1 to create a frequency distribution. Then, the background determination step A3 calculates a statistic for displaying the characteristics of the region divided by the predetermined gradation of the frequency distribution, and if the statistic indicates a value sufficient to constitute the background, the above image is displayed. It is determined that there is a region constituting the ground. Here, in the background determination step A3, when an area constituting the background exists in the vicinity of the high gradation of the image, the image data correction is performed to correct the image data of each pixel according to the area forming the background. Step A4 is provided. This image data modification step A4 generates a correction curve having a parameter for setting the gray level of each pixel that forms the vicinity of the high gray level, that is, substantially white, to the maximum gray level, that is, white, and based on the correction curve. Then, the gradation of each pixel acquired in the image data acquisition process is corrected.
[0025]
Next, FIG. 2 shows an external perspective view of a color copying apparatus applied to construct an image data background determination apparatus that materializes the present image data background determination method. The color copying apparatus 10 includes a color scanner 20, a copy server 30, and a color printer 40. When an image is scanned by the color scanner 20 based on control by the copy server 30, the image is read by scanning. The copy server 30 performs image processing on the image data to generate print data, and the color printer 40 performs printing based on the print data.
[0026]
FIG. 3 shows a schematic configuration of the color scanner 20, which employs a flat bed type. In the figure, an illumination lamp 22 and a line sensor 23 are supported so as to be reciprocally slidable below a transparent plate 21 on which a scanning object is placed, and a drive belt 24a and a pulley 24b for driving them are provided. A drive motor 24 c is arranged and connected to the control circuit 25. When the image is read, when the illumination lamp 22 is turned on based on a control signal from the control circuit 25, the scanning object is illuminated through the transparent plate 21, so that the reflected light from the scanning object is applied to the transparent plate 21. The line sensor 23 is irradiated through.
[0027]
Here, in the line sensor 23, RGB filters and CCD elements corresponding to the three primary colors of light are arranged in one row for each color, usually three rows, and the three rows of CCD devices are arranged for one row in the horizontal direction of the scanning object. Read the color arrangement and output it as image data. On the other hand, the control circuit 25 drives the drive motor 24c to move the illumination lamp 22 and the line sensor 24 integrally in the vertical direction of the scan object, and each time the line is moved by a minute distance, the control circuit 25 moves the line. Image data is acquired from the sensor 23 and output. As a result, externally, the scan target is sub-scanned in the vertical direction while main-scanning in the horizontal direction to generate two-dimensional image data.
[0028]
4 and 5 show the copy server 30 in a schematic block diagram. The copy server 30 is roughly equivalent to a computer, and has a configuration in which a RAM 33, a ROM 34, an operation panel 35, a hard disk 36, and an I / F 37 are connected to a bus 32 of a CPU 31. Here, the color scanner 20 and the color printer 40 are connected via the I / F 37. In addition, a basic calculation program and a conversion table are written in the ROM 34, and the CPU 31 executes the calculation program while using the RAM 33 as a work area, and refers to the conversion table as necessary. Although the I / F 37 is not specified in the present embodiment, the I / F 37 may be configured to connect the color scanner 20 and the color printer 40 to the copy server 30 and may be connected via the LPT port. However, it may be connected via a USB port or SCSI.
[0029]
The hard disk 36 also includes a scanner driver 38a that drives the color scanner 20 and a printer driver 38b that drives the printer 40. The scanner driver 38a sends image data from the color scanner 20 and the printer driver 38b sends image data to the color printer 40. Each can be input / output. Then, the hard disk 36 is used as a buffer for temporarily storing this image data, reads the image data input by the scanner driver 38a, detects the area constituting the ground included in the image data, and detects this detection. An image data background determination control program 39 that performs image data modification processing corresponding to the background area, outputs the image data subjected to the image data modification processing to the printer driver 38b, and causes the color printer 40 to execute printing is executed. Storing. In addition, the operation panel 35 has a liquid crystal display for confirming operation information as well as various operation buttons such as a scan start button 35a, a numeric keypad 35b for inputting the number of prints, and setting an item for modifying an image. A CPU 35 c is also provided, and the CPU 31 can monitor the operation status of the operation panel 35 via the bus 32.
[0030]
FIG. 6 schematically shows the configuration of the color printer 40, which employs an ink jet system that performs printing by ejecting color ink in a dot matrix form on a recording sheet. More specifically, a print head 41 including three print head units 41a, a print head controller 42 that controls the print head 41, a print head digit moving motor 43 that moves the print head 41 in the digit direction, and a print The paper feed motor 44 feeds the paper in the row direction, the print head controller 42, the print head digit movement motor 43, and the printer controller 45, which is an interface with external equipment in the paper feed motor 44.
[0031]
The color printer 40 uses four color inks as printing ink, and each print head unit 41a has two independent print nozzles. The color ink to be supplied can be changed for each column of print nozzles. In this case, black ink (K) is supplied to both the print head unit 41a on the left side in the drawing, and the print head unit 41a on the right side in the drawing. Supplies magenta ink (M) to the left column and yellow ink (Y) to the right column. For the print head unit 41a in the middle of the figure, cyan ink (C) is supplied to the left column and right The column is not used.
[0032]
In this embodiment, four color inks are used. However, it is possible to use six color inks by making maximum use of two rows of print nozzles in the three print head units 41a. It is. In this case, for cyan and magenta, dark ink and light ink are used, and further, yellow and black can be used for a total of six colors. In the present embodiment, the image data background determination apparatus is applied as the dedicated color copying apparatus 10 formed integrally with the copy server 30 as a core, but a color scanner 51 as shown in FIG. Needless to say, even if the color copying system is adopted by the personal computer 53 provided with the color printer 52, it can be realized similarly.
[0033]
FIG. 8 is a flowchart schematically showing the processing contents of the image data background determination processing according to the present invention in the color copying processing executed by the copy server 30 described above. In the figure, when the operator of the color copying apparatus 10 places a document to be scanned on the flat bed 21 of the color scanner 20, the operator presses the scan start button 35a on the operation panel 35a. As a result, the color scanner 20 starts scanning. First, pre-scanning is performed to generate image data composed of low-resolution pixels for the entire image of the flatbed 21 including the image of the document (step S100). Then, it is determined from the generated image data based on a predetermined method whether or not a region constituting the background exists in the image data of the document image (step S200). Next, the color scanner 20 operates the flat bed 21 to execute predetermined image data modification processing to be described later based on the determination result, and obtains detailed image data of the document image. Is started (step S300). Then, image data correction processing is executed on the image data read by the main scan using a correction curve based on a predetermined statistical value of the area determined as the background in step S200 (step S400). When this image data modification process is completed, an image data conversion process for generating print data to be output to the color printer 40 is executed (step S500). As a result, image data modification processing is performed on the image data of the document image input in step S100 in consideration of the background area of the document image.
[0034]
In the present embodiment, the prescan process is executed in step S100, the region constituting the background of the image is determined in step S200 based on the low-resolution sampling image data, and the region obtained in the main scan process in step S300 is acquired. Although the configuration in which the image data modification process in step S400 is performed on the detailed image data is adopted, of course, the prescan process in step S100 is removed, and the background of the image is based on the image data acquired by the main scan process. It is also possible to adopt a configuration in which the area constituting the image is determined and image data modification processing is executed.
[0035]
Next, more specific processing contents of steps S100 to S500 will be described using the flowcharts of FIGS. The flowchart of FIG. 9 shows the processing contents of the pre-scan process in step S100. As described above, when the operator of the color copying apparatus places a document on the flat bed 21 as a scanning object and depresses the scanner start button 35a, an image reading command is issued to the color scanner 20 via the I / O 37. The data is sent out and scanning is started (step S101). Then, the prescan resolution set by the operator using the numeric keypad 35b is read (step S105). Here, the control circuit 25 of the color scanner 20 turns on the illumination lamp 22, outputs a drive command to the drive motor 24c, and starts scanning the image by sliding the illumination lamp 22 and the line sensor 23 (see FIG. Step S110). The control circuit 25 generates image data of pixels obtained by dividing the image read by the line sensor 23 according to the resolution every time the predetermined distance is moved (step S115), and transmits the image data to the copy server 30. The copy server 30 receives this image data via the I / F 37 and spools it to the hard disk 36. If it is determined that all the scans have been completed for the divided pixels (step S120), the spooled image data is stored in the hard disk 36 (step S125).
[0036]
Accordingly, the pre-scan process in which the low-resolution scan is executed and the image data is acquired and stored in this way constitutes the image data acquisition step A1. In the present embodiment, a configuration in which the pre-scan is executed with a predetermined low resolution is adopted, but the specific resolution may be 50 dpi or 60 dpi. The resolution may be stored in advance in the RAM 34, the ROM 35, or the hard disk 36, and can be appropriately set by a predetermined method from the keyboard or mouse of the operation panel 35 or the personal computer 53 as described above. May be.
[0037]
Then, a frequency distribution of each pixel included in the image data is created from the image data according to the flowchart of the background determination process in step S200 shown in FIG. 10, and the presence of the background area of the image is determined from the same frequency distribution. In the figure, first, the image data stored in the hard disk 36 in step S125 is read (step S201). Here, the color components of the R (red), G (green), and B (blue) data constituting the hue of each pixel of the image data are extracted. Since each color component has a density of gradation 0 to 255, for each pixel, the gradation 0 to 255 of the RGB data is substituted into the following equation (1) to calculate luminance Y (step S205).
Y = 0.30R + 0.59G + 0.11B (1)
When the luminance is calculated for all the pixels of the image data by this equation (1), the number of pixels is totaled for each luminance gradation 0 to 255, and the frequency distribution shown in FIG. 11 is created. Next, the relative frequency in each gradation 0 to 255 is calculated. The frequency I of each gradation is expressed by the following equation (2).
I = f (n) n = 0 to 255 (2)
Therefore, the relative frequency in each gradation can be calculated by the following equation (3) (step S210).
Figure 0003846524
Then, an extraction section of the background distribution, which is an area constituting the background of the image in the frequency distribution, is set (step S215). In setting the background distribution section, first, the maximum frequency in the same frequency distribution is determined by the following equation (4).
fmod = max [f (n)] n = 0 to 255 (4)
A gradation corresponding to the maximum frequency fmod is set as a mode value nmod. This mode value nmod is a gradation that forms the top of the frequency distribution as shown in FIG. Then, gradations M1 and M2 for determining the extraction section of the background distribution are calculated based on the following equation (5) using the mode value nmod.
[0038]
M1 = nmod−N N <= nmod = 0
N> nmod (5)
M2 = nmod + N-1 N <= 256-nmod
= 255 N> 256-nmod
Here, the constant N is a positive integer determined in advance. Specifically, N may be around 10. Based on the gradations M1 and M2, as shown in FIG. 11, the extraction section of the background distribution is determined as the section [M1, M2]. Next, the accumulation of the relative frequency of each pixel in the extraction section of the background distribution determined as described above is calculated (step S220). This relative frequency can be calculated by the following equation (6) using the above equation (3).
Figure 0003846524
This relative frequency R can be represented by the area [M1, M2] shown in FIG. 11 and the area of the hatched portion surrounded by the frequency distribution. In this manner, the presence of the background distribution is determined using the calculated relative frequency R in the background distribution extraction section and the mode value nmod in the frequency distribution (step S225). In such a case, when the condition of the following expression (7) is satisfied, it is determined that there is a region constituting the background in the image.
[0039]
R> Rth and nmod> nth (7)
Here, Rth and nth are predetermined positive integers and constitute a predetermined threshold value. Specifically, Rth is about 0.15 and nth is about 180. Of course, these numerical values are merely examples, and can be changed as appropriate. In this way, it is determined whether or not there is a region constituting the ground. In the present embodiment, the luminance is calculated, and the process of determining the portion constituting substantially white as the background is configured. However, this process is performed for each color component based on the frequency distribution of each color component, and each frequency is determined. In consideration of the distribution tendency, it is also possible to determine the background formed by each color or its mixed color. Therefore, the luminance is calculated from the gradation forming the color component of each pixel, and the frequency distribution of the image data is created, and the background distribution for determining the area constituting the background of the image is created from the same frequency distribution. Since it is determined whether or not a background exists in the image based on a predetermined statistic of the distribution, the background determination processing in steps S210 to S225 constitutes the frequency distribution creation step A2 and the background determination step A3.
[0040]
Next, when it is determined that there is a background, that is, a substantially white area formed by a paper ground of a predetermined amount of document paper, an image data modification process described later corresponding to the background area is performed. Therefore, the main scanning process is executed for the document image of the scanning target placed on the color scanner 20. The processing content of this main scanning processing is shown in the flowchart of FIG. First, the resolution of the main scan set by the operator using the numeric keypad 35b is read (step S301). It goes without saying that such a resolution is set to be denser than the resolution of the prescan process described above. Then, the control circuit 25 of the color scanner 20 turns on the illumination lamp 22, outputs a drive command to the drive motor 24c, and starts scanning the image by sliding the illumination lamp 22 and the line sensor 23 (step). In step S <b> 305, every time the control circuit 25 moves a predetermined distance, the line sensor 23 generates image data of pixels obtained by dividing the read image by resolution (step S <b> 310), and transmits the image data to the copy server 30. The copy server 30 receives this image data via the I / F 37 and spools it to the hard disk 36. Here, if it is determined that all scanning has been completed for the divided pixels (step S315), the spooled image data is stored in the hard disk 36 (step S320). Therefore, the main scan process in which the main scan with high resolution is executed and the image data of the document image is acquired and stored in this way constitutes the image data acquisition step A1 together with the prescan process.
[0041]
As described above, when it is determined that there is a region constituting the background, each pixel near substantially white is clamped to white, that is, the maximum gradation in the image data correction processing. Then, since the ink is not applied to the print medium in the printing by the color printer 40, the clamped portion becomes a white paper area. Accordingly, in the document image, the contrast between the background paper region and the black portion of the character becomes clear, and it is possible to correct the image with a sharp appearance.
[0042]
Next, the outline processing contents of the image data modification processing shown in the flowchart of FIG. 13 will be described, and the details of each processing will be described below. In the figure, first, a correction curve determination process for determining a correction curve indicating a correspondence relationship for performing correction on each pixel of image data is executed (step S401), and then each correction curve is determined based on the correction curve. The gradation of each color component of the pixel is sequentially modified (step S450), and image data is generated.
[0043]
FIG. 14 is a flowchart showing the content of the correction curve determination process executed in step S401. In the figure, the mode value nmod of the frequency distribution determined by the equation (4) is acquired (step S405). Then, it is determined whether or not the gradation of the mode value nmod is the gradation 255, that is, the maximum gradation (step S410). Next, a section for calculating the statistic of the background distribution is set (step S415). The background distribution set here may be the above section [M1, M2]. When the area to be the background is a substantially white portion, one of the gradations for dividing the area is set to the gradation 255. However, the other may be calculated and set by the following equation (8).
A = nmod−B * (255−nmod) (8)
Here, the constant B is a variable determined in advance and is determined so as to satisfy the condition of the following equation (9).
0 <B <nmod / (255-nmod) (9)
Specifically, the variable B may be around 2. From the above, the section for calculating the statistic of the background distribution is determined as section [A, 255]. Next, the average value nave in the section [A, 255] is calculated by the following equation (10), and the standard deviation nstd is calculated by the following equation (11) (step S420).
Figure 0003846524
Figure 0003846524
[0044]
Then, using the average value nave and the standard deviation nstd, the threshold value T of the correction curve is calculated based on the following equation (12) (step S425).
T = nave-Cnstd (12)
Here, the constant C is set so as to satisfy the condition of the following equation (13).
C = C2 1-R> = Cth2 (13)
= C1 Cth1 <= 1-R <Cth2
C1 and C2 are positive integers determined in advance, and Cth1 is set by the following equation (14) using Rth.
Cth2 = 1−Rth (14)
[0045]
In this embodiment, C1 is set to about 4, C2 is set to about 2, and Cth1 is set to about 0.7. In this way, when the threshold value T is calculated, a correction curve is determined. In the present embodiment, as shown in FIG. 15, the correction curve clamps the input gradation after the threshold T to the output gradation 255 and has a slope 255 / T between the input gradations 0 to T. It is formed by a primary straight line. Of course, it is only necessary that the input gradation of the gradation 255 from the threshold value T can be clamped to the output gradation 255. The input gradation between 0 and T may be a quadratic curve, or a linear line having a different slope. It may be changed as appropriate. This correction curve is created for each RGB data. If the mode value nmod is 255 in step S410, a linear line having a slope of 1 connecting (0, 0) and (255, 255) is generated in the input gradation and the output gradation. That is, the gradation of the threshold value T is set to 255.
[0046]
Next, the processing content of the image data modification processing in step S450 is shown in the flowchart of FIG. In the figure, first, image data generated by the main scanning process is acquired (step S455). Then, each pixel of the image data is scanned, the gradation of each color component included in each pixel is set as an input gradation, and is substituted into a correction curve, and an output gradation is calculated (step S460). It is determined whether or not the modification processing based on the correction curve is completed for all the pixels of the image data acquired in step S455 (step S465). If not completed, the process returns to step S460 to scan the next pixel. The correction processing is executed sequentially based on the correction curve. If the modification processing has been completed for all the pixels, the image data composed of the output gradation is stored in the hard disk 36 (step S470).
[0047]
The image data generated by performing the image data modification processing in this way is subjected to color conversion processing and the like, and is sent to the color printer 40 to be printed. Here, the flowchart of FIG. 17 shows the processing contents of the image data conversion processing executed before the image data after modification is sent to the color printer 40. In the figure, first, image data modification processing is executed, and image data in which each pixel is constituted by output gradation is input (step S501), and color conversion is performed (step S505). If the image data has general RGB 256 gradations, the printer 50 requires CMYK 2 gradation printing color image data, so color conversion and gradation conversion are required. Accordingly, in step 505, RGB 256 gradation color image data is converted into CMYK 256 gradation color image data. At this time, color conversion processing may be executed using a LUT based on a standard method. Next, CMYK256 gradation is halftoned to CMYK2 gradation (step S510), and the halftoned data is transmitted from the personal computer 10 to the printer 50 by parallel communication (step S515).
[0048]
Here, FIG. 18 shows changes in the state of the image data before and after execution in the image data modification processing. Image data before execution is shown in FIG. 18A, and image data after execution is shown in FIG. 18B. This figure shows each pixel constituting the image data by each small section, and a pixel of gradation 0 shows a black portion in the image. On the other hand, the pixel of gradation 255 indicates white in the image, that is, the paper area of the document image. Here, in FIG. 18A, it can be seen that there are black pixels and gray pixels indicated by diagonal lines at the boundary of the paper region. Because of the presence of such pixels, the boundary between the black and white portions becomes ambiguous, and as shown in FIG. On the other hand, when the above-described image data modification processing is executed, the gray portion is clamped to the maximum gradation 255 as shown in FIG. 18B, so that a clear boundary can be created for the black and white portions. As shown in FIG. 19 (b), it can be seen that the image has a beam.
[0049]
In this way, the document is scanned by the color scanner 40, and the area of the paper that forms the background in the image of the document, that is, the substantially white area, has a predetermined frequency distribution of the image data that forms the image. It becomes possible to determine based on this. In addition, when the presence of the background is determined, the substantially white background area is corrected to white, that is, the maximum gradation by the image data correction processing based on the correction curve. It is possible to attach a glue beam, and it is possible to remove noise components that appear on the ground, such as the back surface.
[Brief description of the drawings]
FIG. 1 is a diagram corresponding to claims of an image data background determination method according to an embodiment of the present invention.
FIG. 2 is a schematic external view of a color copying apparatus applied to materialize the image data background determination method.
FIG. 3 is a schematic diagram illustrating a configuration of a scanner of the color copying apparatus.
FIG. 4 is a schematic block diagram showing a configuration of a copy server of the color copying apparatus.
FIG. 5 is a schematic block diagram showing the configuration of the copy server.
FIG. 6 is a schematic diagram illustrating a configuration of a color printer of the color copying apparatus.
FIG. 7 is a schematic external view of a computer system showing a modification of the color copying apparatus.
FIG. 8 is a flowchart showing a schematic processing content of a color copying process executed by the copy server.
FIG. 9 is a flowchart showing processing contents of a pre-scan process executed by the copy server.
FIG. 10 is a flowchart showing processing details of a background determination process executed by the copy server.
FIG. 11 is a diagram showing a frequency distribution of image data created by the background determination processing.
FIG. 12 is a flowchart showing the processing contents of the main scanning processing executed by the copy server.
FIG. 13 is a flowchart showing processing contents of image data modification processing executed by the copy server.
FIG. 14 is a flowchart showing the contents of a correction curve determination process executed by the copy server.
FIG. 15 is a diagram showing an example of a correction curve determined by the correction curve determination process.
FIG. 16 is a flowchart showing the processing contents of image data modification processing executed by the copy server.
FIG. 17 is a flowchart showing processing contents of image data conversion processing executed by the copy server.
FIGS. 18A and 18B are diagrams illustrating pixel configurations before and after execution of an image data modification process modified by the image data modification process.
FIG. 19 is a diagram showing a state in which an image with a beam is formed by the image data modification processing.
[Explanation of symbols]
A1 ... Image data acquisition process
A2 ... Frequency distribution creation process
A3 ... Background judgment process
A4 ... Image data modification process

Claims (8)

画像における下地を構成する領域を画像データの所定の度数分布に基づいて判定する画像データ下地判定方法であって、
画像をドットマトリクス状の画素で多階調表現した画像データを取得する画像データ取得工程と、
上記画像データ取得工程にて取得した画像データの各画素について階調を集計し、度数分布を作成する度数分布作成工程と、
上記度数分布の最頻値が属する所定幅の領域の相対度数が所定のしきい値以上である場合、上記画像に下地を構成する領域が存在すると判定する下地判定工程とを行うことを特徴とする画像データ下地判定方法。
An image data background determination method for determining an area constituting a background in an image based on a predetermined frequency distribution of image data,
An image data acquisition step of acquiring image data in which an image is expressed in multi-tone with dot-matrix pixels;
A frequency distribution creating step of totalizing gradations for each pixel of the image data obtained in the image data obtaining step and creating a frequency distribution;
Performing a background determination step of determining that a region constituting a background exists in the image when a relative frequency of a region of a predetermined width to which the mode value of the frequency distribution belongs is equal to or greater than a predetermined threshold value. Image data background determination method.
上記請求項1に記載の画像データの下地判定方法において、上記度数分布作成工程は、各画素の輝度を算出するとともに、同輝度の階調を集計し、度数分布を作成することを特徴とする画像データ下地判定方法。  2. The background determination method for image data according to claim 1, wherein the frequency distribution creating step calculates the luminance of each pixel and totals the gradations of the same luminance to create a frequency distribution. Image data background determination method. 上記請求項1に記載の画像データ下地判定方法において、上記度数分布作成工程は、各画素の色合いを示す各要素色の濃度階調を集計し、各要素色ごとの濃度階調の度数分布を作成することを特徴とする画像データ下地判定方法。  2. The image data background determination method according to claim 1, wherein the frequency distribution creating step sums up the density gradation of each element color indicating the hue of each pixel, and calculates the density distribution of the density gradation for each element color. An image data background determination method, characterized by comprising: 上記請求項1〜請求項3のいずれかに記載の画像データ下地判定方法において、上記下地判定工程は、上記度数分布の最頻値が属する所定幅の領域の相対度数を算出するにあたり、同度数分布に対して平滑化処理を実施することを特徴とする画像データ下地判定方法。  The image data background determination method according to any one of claims 1 to 3, wherein the background determination step calculates a relative frequency in calculating a relative frequency of an area having a predetermined width to which a mode value of the frequency distribution belongs. An image data background determination method, wherein smoothing processing is performed on a distribution. 上記請求項1〜請求項4に記載の画像データ下地判定方法において、上記下地判定工程が画像に下地を構成する領域が存在すると判定した場合、同下地を構成する領域に属する画素の階調の平均値に応じた補正曲線により各画素の階調を補正する修整処理を実施する画像データ修整工程を備えることを特徴とする画像データ下地判定方法。  In the image data background determination method according to any one of claims 1 to 4, when the background determination step determines that an area constituting the background exists in the image, the gradation of pixels belonging to the area forming the background is determined. An image data background determination method comprising: an image data modification step for performing a modification process for correcting the gradation of each pixel with a correction curve corresponding to an average value. 上記請求項1〜請求項5に記載の画像データ下地判定方法において、上記下地判定工程が画像に下地を構成する領域が存在すると判定した場合、同下地を構成する領域に属する画素の階調のばらつきに応じた補正曲線により各画素の階調を補正する修整処理を実施する画像データ修整工程を備えることを特徴とする画像データ下地判定方法。  In the image data background determination method according to any one of claims 1 to 5, when the background determination step determines that a region constituting the background exists in the image, the gradation of the pixels belonging to the region forming the background is determined. An image data background determination method comprising: an image data modification step for performing a modification process for correcting the gradation of each pixel with a correction curve corresponding to variation. 画像における下地を構成する領域を画像データの所定の度数分布に基づいて判定する画像データ下地判定装置であって、
画像をドットマトリクス状の画素で多階調表現した画像データを取得する画像データ取得手段と、
上記画像データ取得手段にて取得した画像データの各画素について階調を集計し、度数分布を作成する度数分布作成手段と、
上記度数分布の最頻値が属する所定幅の領域の相対度数が所定のしきい値以上である場合、上記画像に下地を構成する領域が存在すると判定する下地判定手段とを具備することを特徴とする画像データ下地判定装置。
An image data background determination device for determining a region constituting a background in an image based on a predetermined frequency distribution of image data,
Image data acquisition means for acquiring image data in which an image is expressed in multi-tone with pixels in a dot matrix,
A frequency distribution creating means for summing up gradations for each pixel of the image data obtained by the image data obtaining means and creating a frequency distribution;
A background determination unit that determines that a region constituting the background exists in the image when a relative frequency of a region having a predetermined width to which the mode value of the frequency distribution belongs is a predetermined threshold value or more; An image data background determination device.
画像における下地を構成する領域を画像データの所定の度数分布に基づいて判定する機能をコンピュータに実行させる画像データ下地判定制御プログラムを記録した媒体であって、
画像をドットマトリクス状の画素で多階調表現した画像データを取得する画像データ取得機能と、
上記画像データ取得機能にて取得した画像データの各画素について階調を集計し、度数分布を作成する度数分布作成機能と、
上記度数分布の最頻値が属する所定幅の領域の相対度数が所定のしきい値以上である場合、上記画像に下地を構成する領域が存在すると判定する下地判定機能とをコンピュータに実行させることを特徴とする画像データ下地判定制御プログラムを記録した媒体。
A medium having recorded thereon an image data background determination control program for causing a computer to execute a function of determining a region constituting a background in an image based on a predetermined frequency distribution of image data,
An image data acquisition function for acquiring image data in which an image is expressed in multi-tone with dot-matrix pixels;
A frequency distribution creating function for totalizing the gradation for each pixel of the image data obtained by the image data obtaining function and creating a frequency distribution;
When a relative frequency of a region having a predetermined width to which the mode value of the frequency distribution belongs is equal to or greater than a predetermined threshold, the computer is caused to execute a background determination function for determining that a region constituting the background exists in the image. A medium on which an image data background determination control program is recorded.
JP05428599A 1999-03-02 1999-03-02 Image data background determination method, image data background determination device, and medium storing image data background determination program Expired - Fee Related JP3846524B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP05428599A JP3846524B2 (en) 1999-03-02 1999-03-02 Image data background determination method, image data background determination device, and medium storing image data background determination program
PCT/JP2000/001216 WO2000052922A1 (en) 1999-03-02 2000-03-02 Image data background judging device, image data background judging method, and medium on which image data background judging control program is recorded
US09/674,638 US7099041B1 (en) 1999-03-02 2000-03-02 Image data background determining apparatus image data background determining method, and medium recording thereon image data background determination control program
DE60042257T DE60042257D1 (en) 1999-03-02 2000-03-02 APPRAISAL DEVICE FOR BACKGROUND IMAGE DATA, ASSESSMENT PROCEDURE FOR BACKGROUND IMAGE DATA AND MEDIUM IN WHICH A CONTROL PROGRAM FOR BACKGROUND IMAGE DATA IS RECORDED
EP00906615A EP1085747B1 (en) 1999-03-02 2000-03-02 Image data background judging device, image data background judging method, and medium on which image data background judging control program is recorded
AT00906615T ATE432589T1 (en) 1999-03-02 2000-03-02 ASSESSMENT DEVICE FOR BACKGROUND IMAGE DATA, ASSESSMENT METHOD FOR BACKGROUND IMAGE DATA AND MEDIUM IN WHICH A CONTROL PROGRAM FOR BACKGROUND IMAGE DATA IS RECORDED

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05428599A JP3846524B2 (en) 1999-03-02 1999-03-02 Image data background determination method, image data background determination device, and medium storing image data background determination program

Publications (2)

Publication Number Publication Date
JP2000253250A JP2000253250A (en) 2000-09-14
JP3846524B2 true JP3846524B2 (en) 2006-11-15

Family

ID=12966304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05428599A Expired - Fee Related JP3846524B2 (en) 1999-03-02 1999-03-02 Image data background determination method, image data background determination device, and medium storing image data background determination program

Country Status (1)

Country Link
JP (1) JP3846524B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007295260A (en) * 2006-04-25 2007-11-08 Fujifilm Corp Image processing method and digital camera
JP2008124693A (en) * 2006-11-10 2008-05-29 Nec Access Technica Ltd Image processor, copier and image processing program for whiteboard
JP4967866B2 (en) * 2007-07-06 2012-07-04 富士ゼロックス株式会社 Image forming apparatus
JP4967867B2 (en) * 2007-07-06 2012-07-04 富士ゼロックス株式会社 Image forming apparatus and image processing apparatus
JP5262877B2 (en) * 2009-03-17 2013-08-14 セイコーエプソン株式会社 Noise component removal apparatus and medium on which noise component removal program is recorded
JP5942546B2 (en) * 2012-03-30 2016-06-29 ブラザー工業株式会社 Image processing device
JP6308496B2 (en) * 2014-02-19 2018-04-11 学校法人東京理科大学 Image restoration apparatus, method, and program
JP6182092B2 (en) * 2014-03-10 2017-08-16 キヤノン株式会社 Image processing apparatus and image processing method
JP6341085B2 (en) 2014-12-26 2018-06-13 ブラザー工業株式会社 Image processing apparatus and computer program

Also Published As

Publication number Publication date
JP2000253250A (en) 2000-09-14

Similar Documents

Publication Publication Date Title
US8237991B2 (en) Image processing apparatus, image processing method, and program
US8482804B2 (en) Image processing apparatus and image processing method
US8040569B2 (en) Image processing apparatus and method for contrast processing and intermediate color removal
JP3855800B2 (en) Image processing apparatus and image processing method
US20230110982A1 (en) Image processing apparatus, image processing method, and storage medium
WO2000052922A1 (en) Image data background judging device, image data background judging method, and medium on which image data background judging control program is recorded
CN102318330A (en) Image processing system for processing digital images and image processing method for processing digital images
JP3846524B2 (en) Image data background determination method, image data background determination device, and medium storing image data background determination program
JP6821418B2 (en) Image processing equipment, image processing methods, and programs
US20100014121A1 (en) Printing Apparatus, Printing Method, and Recording Medium
EP1079601B1 (en) Image data correcting device, image data correcting method, medium on which image data correcting program is recorded
JP5146942B2 (en) CONVERSION METHOD, DEVICE, AND COMPUTER PROGRAM FOR CONVERTING DIGITAL IMAGE OBTAINED BY SCANNER
JP3962890B2 (en) Image data modifying apparatus, image data modifying method, and computer readable recording medium recording image data modifying program
JP7034742B2 (en) Image forming device, its method and program
JP2009089266A (en) Image processing apparatus and pixel attribute determination method
EP2571244A2 (en) Image processing apparatus, method, image forming apparatus, and storage medium
JP3664351B2 (en) Image processing apparatus, color printing apparatus, image processing method, and recording medium
JP4407317B2 (en) Printing apparatus, printing method on media, and printing system
JP3664371B2 (en) Image data acquisition method, image data acquisition device, and medium on which image data acquisition processing program is recorded
JP4259254B2 (en) Image data processing apparatus, print data creation apparatus including the same, ink jet recording apparatus, image data processing program, and image data processing method
JP2000253251A (en) Image data background region setting method, image data background region setting device, and medium recording image data background region setting control program
CN113002177B (en) Method of producing ink jet printer, and ink jet printer
JPH1042156A (en) Color image processing apparatus and method
JP3810619B2 (en) Image processing apparatus, printing apparatus, and image processing method
JP2000201273A (en) Medium recording image data generation program, image data generation device, and image data generation method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060215

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060331

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060802

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060815

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090901

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100901

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100901

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110901

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120901

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130901

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees