JP4069649B2 - Image processing apparatus, image processing method, and image processing program - Google Patents
Image processing apparatus, image processing method, and image processing program Download PDFInfo
- Publication number
- JP4069649B2 JP4069649B2 JP2002076926A JP2002076926A JP4069649B2 JP 4069649 B2 JP4069649 B2 JP 4069649B2 JP 2002076926 A JP2002076926 A JP 2002076926A JP 2002076926 A JP2002076926 A JP 2002076926A JP 4069649 B2 JP4069649 B2 JP 4069649B2
- Authority
- JP
- Japan
- Prior art keywords
- difference value
- correction amount
- image
- image data
- image processing
- 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
Links
- 238000012545 processing Methods 0.000 title claims description 61
- 238000003672 processing method Methods 0.000 title claims description 15
- 238000012937 correction Methods 0.000 claims description 143
- 238000009826 distribution Methods 0.000 claims description 48
- 238000003702 image correction Methods 0.000 claims description 41
- 238000000034 method Methods 0.000 claims description 32
- 230000008569 process Effects 0.000 claims description 23
- 238000000605 extraction Methods 0.000 claims description 19
- 230000002776 aggregation Effects 0.000 claims description 15
- 238000004220 aggregation Methods 0.000 claims description 15
- 230000006870 function Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 10
- 230000003044 adaptive effect Effects 0.000 description 9
- 239000003086 colorant Substances 0.000 description 7
- 239000000284 extract Substances 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 238000004040 coloring Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
Images
Landscapes
- Color Image Communication Systems (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、処理対象となる画像データに対して画像種別に応じて異なる内容の画像補正処理を行う画像処理装置、画像処理方法および画像処理プログラムに関する。
【0002】
【従来の技術】
近年、コンピュータ環境やアプリケーションソフトウエア等の高性能化に伴い、プリンタへ入力されるデジタル画像データが多様化しているため、プリンタへ入力された画像データに対しては、その画像種別に応じて異なる内容の画像補正処理を行って出力することが必要となっている。例えば、写真等の自然画を表す画像データについては、好ましい画質を得るために、階調補正、コントラスト補正、カラーバランス補正等の画像補正処理を行う一方、コンピュータ上で作成されたCG(Computer Graphics)画像等のグラフィック画を表す画像データについては、作成意図を正しく反映させるために、余計な画像補正処理を行わないようにする、といった具合である。
【0003】
このような画像種別に応じた画像補正処理を実現するためには、処理対象となる画像データについて、その画像種別を判別する必要がある。画像種別を判別する手法としては、従来、以下のようなものが提案されている。例えば特開平10−200778号公報には、グラフィック画は自然画に比べて利用色数が少ないことに着目し、処理対象となる画像データの利用色数を検知することで、当該画像データが自然画を表すものであるか、あるいはグラフィック画を表すものであるかを判別することが開示されている。また、例えば特開2000−32287号公報には、利用色数の分布をヒストグラム化するとグラフィック画の場合には分布に偏りや隙間等が生じることに着目し、処理対象となる画像データの利用色数を検知してその分布をヒストグラム化することで、当該画像データが自然画を表すものであるか、あるいはグラフィック画を表すものであるかを判別することが開示されている。また、例えば特開平8−204954号公報には、グラフィック画の場合には各色共に隣接する画素の差が全く同一になることに着目し、処理対象となる画像データにおいて隣接画素の差が全ての色で一致するか否かを判定することで、当該画像データが自然画を表すものであるか、あるいはグラフィック画を表すものであるかを判別することが開示されている。
【0004】
【発明が解決しようとする課題】
しかしながら、従来は、画像種別に応じた画像補正処理を実現する場合、処理対象となる画像データが自然画を表すものであるか、あるいはグラフィック画を表すものであるかを二値的に判別し、その判別結果に応じて画像補正処理を行うか否かを切り換えているため、以下に述べるような問題が生じてしまうおそれがある。
【0005】
最近では、コンピュータ環境やアプリケーションソフトウエア等の高性能化が特に著しいため、グラフィック画においても、利用色数や階調数等が増え、複雑な図形形成や色付け等を容易に行えるようになり、これによって自然画に近い表現を実現することが可能になっている。そのため、上述したような二値的な画像種別の判別では、必ずしも適切な判別結果が得られるとは限らないのに加えて、判別閾値近辺の特性を持つ画像が僅かな違いで補正されたり、されなかったりといった不都合を招いてしまう。これは、グラフィック画における利用色数や階調数等が増加により、従来のような利用色数やヒストグラム分布形状等による判別では自然画とグラフィック画との区別を十分に行えないからであり、また二値的な判別では僅かな特徴の違いであっても補正結果が大きく異なってしまう可能性が生じるからである。
【0006】
そこで、本発明は、画像種別を単に二値的に判別するのではなく、自然画らしさあるいはグラフィック画らしさを考慮することで、画像データに対する補正量を連続的に調整し得るようにし、これにより画像種別に応じた画像補正処理を適切に行うことを可能にする画像処理装置、画像処理方法および画像処理プログラムを提供することを目的とする。
【0007】
【課題を解決するための手段】
本発明は、上記目的を達成するために案出された画像処理装置で、処理対象となる画像データについて注目画素周辺の画素間の差分値を算出する差分値算出手段と、前記差分値算出手段が算出した差分値の分布頻度を集計する差分値頻度集計手段と、前記差分値頻度集計手段が集計した分布頻度からその特徴量を抽出する特徴量抽出手段と、前記画像データにおける明度値、彩度値および色相値の分布から当該画像データの特徴量を抽出するとともに当該特徴量に基づいて当該画像データに対する明度補正量、彩度補正量および色相補正量を算出する補正量算出手段と、前記補正量算出手段が算出した補正量に対し前記特徴量抽出手段が抽出した特徴量を反映させた調整強度による調整を行う補正量調整手段と、前記補正量調整手段による調整後の補正量により前記画像データに対する画像補正処理を行う補正実行手段とを備えることを特徴とするものである。
【0008】
また、本発明は、上記目的を達成するために案出された画像処理方法である。すなわち、処理対象となる画像データに対して所定の画像補正処理を行うための画像処理方法であって、前記画像データについて注目画素周辺の画素間の差分値を算出する差分値算出ステップと、前記差分値算出ステップで算出した差分値の分布頻度を集計する差分値頻度集計ステップと、前記差分値頻度集計ステップで集計した分布頻度からその特徴量を抽出する特徴量抽出ステップと、前記画像データにおける明度値、彩度値および色相値の分布から当該画像データの特徴量を抽出するとともに当該特徴量に基づいて当該画像データに対する明度補正量、彩度補正量および色相補正量を算出する補正量算出ステップと、前記補正量算出ステップで算出した補正量に対し前記特徴量抽出ステップで抽出した特徴量を反映させた調整強度による調整を行う補正量調整ステップと、前記補正量調整ステップによる調整後の補正量により前記画像データに対する画像補正処理を行う補正実行ステップとを備えることを特徴とする。
【0009】
また、本発明は、上記目的を達成するために案出された画像処理プログラムで、コンピュータを、処理対象となる画像データについて注目画素周辺の画素間の差分値を算出する差分値算出手段と、前記差分値算出手段が算出した差分値の分布頻度を集計する差分値頻度集計手段と、前記差分値頻度集計手段が集計した分布頻度からその特徴量を抽出する特徴量抽出手段と、前記画像データにおける明度値、彩度値および色相値の分布から当該画像データの特徴量を抽出するとともに当該特徴量に基づいて当該画像データに対する明度補正量、彩度補正量および色相補正量を算出する補正量算出手段と、前記補正量算出手段が算出した補正量に対し前記特徴量抽出手段が抽出した特徴量を反映させた調整強度による調整を行う補正量調整手段と、前記補正量調整手段による調整後の補正量により前記画像データに対する画像補正処理を行う補正実行手段として機能させることを特徴とするものである。
【0010】
上記構成の画像処理装置、上記手順の画像処理方法、および上記構成の画像処理プログラムを実行するコンピュータでは、注目画素周辺の画素間の差分値を算出し、算出した差分値の分布頻度を集計する。この集計結果である分布頻度からは、例えば規則的な階調性の度合(階調の滑らかさ)がわかる。そのため、集計した分布頻度からその特徴量を抽出すれば、その特徴量によって、例えば処理対象となる画像データについてのグラフィック画らしさが二値的にではなく連続的に特定されることになる。したがって、この連続的な特徴量を反映させた調整強度により、画像データの明度補正量、彩度補正量および色相補正量に対する調整を行い、その調整後の補正量により画像データに対する画像補正処理を行えば、当該画像補正処理も二値的ではなく連続的なものとなり、また補正量を0に決定した場合には実質的に画像補正処理を行わないことになる。すなわち、画像補正処理を行う際には、例えば自然画/グラフィック画判別といった二値的な制御を要することなく、処理対象となる画像データの画像特性に応じた連続的な補正処理を行うことが可能となる。
【0011】
【発明の実施の形態】
以下、図面に基づき本発明に係る画像処理装置、画像処理方法および画像処理プログラムについて説明する。
【0012】
先ず、はじめに、本発明に係る画像処理装置の構成について説明する。ここで説明する画像処理装置は、処理対象となる画像データに対して、階調補正、コントラスト補正、カラーバランス補正等の画像補正処理を行うものである。なお、画像補正処理の内容の詳細については公知であるため、ここではその説明を省略する。
【0013】
また、ここで説明する画像処理装置は、画像データに対して画像補正処理を行うものであることから、例えば複写機、スキャナ装置、プリンタ装置、FAX装置、画像処理機能を有したコンピュータ装置等のように、画像データを取り扱う各種装置に搭載されて用いられるものである。さらには、これらの各種装置を有線または無線で互いに接続したネットワークシステム上にて用いられるものであってもよい。なお、これらの各種装置等の詳細についても公知であるため、ここではその説明を省略する。
【0014】
図1は、本発明に係る画像処理装置の概略構成例を示すブロック図である。図例のように、ここで説明する画像処理装置は、大別すると、グラフィック度算出部10と、適応補正量算出部20と、補正実行部30とから構成されている。
【0015】
グラフィック度算出部10は、処理対象となる画像データにおける画像特性の一つであるグラフィック画像らしさ(以下「グラフィック度」という)を算出するものである。そのために、グラフィック度算出部10は、処理対象となる画像データについて注目画素周辺の画素間の差分値を算出する差分値算出部11と、この差分値算出部11が算出した差分値の分布頻度を集計する差分値頻度集計部12と、この差分値頻度集計部12が集計した分布頻度からその特徴量を抽出する特徴量抽出部13とを備えている。
【0016】
適応補正量算出部20は、グラフィック度算出部10が算出したグラフィック度を基に、処理対象となる画像データに対する補正量を決定するものである。そのために、適応補正量算出部20は、処理対象となる画像データにおける明度値、彩度値および色相値の分布をそれぞれヒストグラム化するヒストグラム集計部21と、このヒストグラム集計部21での集計結果から処理対象となる画像データにおける特徴量を抽出する特徴量抽出部22と、この特徴量抽出部22が抽出した特徴量に基づいて処理対象となる画像データに対する明度補正量、彩度補正量および色相補正量を算出する補正量算出部23と、この補正量算出部23が算出した各補正量にグラフィック度算出部10が算出したグラフィック度を反映させる補正量調整部24とを備えている。
【0017】
補正実行部30は、適応補正量算出部20が決定した補正量により、処理対象となる画像データに対する画像補正処理、具体的には当該画像データにおける明度値、彩度値および色相値の補正を行うものである。
【0018】
これらの各部10〜30は、例えばASIC(Application Specified Integrated Circuit)のようなハードウエアによって実現することが考えられる。ただし、ソフトウエアによって実現されたものであっても構わない。すなわち、これらの各部10〜30は、コンピュータとしての機能を有したマイクロプロセッサが所定の画像理プログラムを実行することによって実現されるものであってもよい。この場合、画像処理プログラムは、予めマイクロプロセッサ内またはこれと接続する記憶素子等に格納しておくことが考えられるが、コンピュータ読み取り可能な記憶媒体に格納されて提供されるものであっても、または有線若しくは無線による通信手段を介して配信されるものであってもよい。
【0019】
次に、以上のような構成の画像処理装置(または画像処理プログラムを実行するマイクロプロセッサ)における処理動作例、すなわち本発明に係る画像処理方法について説明する。図2は、本発明に係る画像処理方法の手順の一例を示すフローチャートである。
【0020】
処理対象となる画像データ(画素値の集合)の入力があると(ステップ101、以下ステップを「S」と略す)、画像処理装置では、その画像データに対してHSL変換等の色変換処理を行う(S102)。これは、通常、グラフィック画の表現に使われるグラデーション等はRGB上で作成されるが、HSLに代表される明度、彩度、色相信号に変換すると、例えば色相が一定で彩度と明度が変化したり、彩度を一定に明度だけが変化するといったように、明度、彩度、色相のうちいずれかの信号値が固定される(信号値の変化がない)という特徴を持つため、RGB上で判断するより自然画とグラフィック画との区別がし易くなるからである。したがって、最初から入力画像データが明度、彩度、色相信号からなる場合には、色変換処理は不要である。
【0021】
そして、画像処理装置では、このような明度、彩度、色相信号からなる画像データに対して画像補正処理を行うのに先立ち、先ず、グラフィック度算出部10がグラフィック度の算出を行う際に用いる変数の初期化を行う(S103)。すなわち、変数g=0、変数all=0とする。なお、これらの変数g,allについては、その詳細を後述する。
【0022】
変数初期化を行うと、続いて、グラフィック度算出部10では、差分値算出部11が注目画素周辺の領域(以下「注目領域」という)における画素間の差分値(絶対値)を算出する(S104)。ここで、この差分値の算出について詳しく説明する。図3は、差分値算出の概要を示す説明図である。例えば、差分値算出部11は、図3(a)に示すように、注目領域内における注目画素の左右に隣接する2つの画素(図中の±1部分に位置する画素)について、その画素間の明度値、彩度値、色相値の差分を算出する。また、図3(b)に示すように、注目画素の左右側に1画素分空けて位置する2つの画素(図中の±2部分に位置する画素)について、その画素間の明度値、彩度値、色相値の差分を算出してもよい。
【0023】
このように、差分値算出部11が注目領域における画素間の差分値として、1画素分以上(少なくとも注目画素分)の間隔が空いている画素間の差分値を算出するのは、以下に述べる理由による。ある程度離れた画素間の差分値を算出した場合には、互いに隣接する画素同士の差分値を算出するよりも画素間の関連性が低くなり、自然画であれば差分値は大きい値を示すことになる一方、グラフィック画であれば多少離していても画素間の差分値は自然画の場合ほど大きくなることがない。つまり、自然画とグラフィック画との区別がし易くなる。したがって、1画素分以上の間隔を空いている画素間の差分値を算出するのである。なお、画素間の間隔は、1〜3画素分程度空けるのが適当であると考えられる。
【0024】
差分値算出部11での算出によって得られた差分値に対しては、図2に示すように、差分値頻度集計部12が予め設定されている閾値th_edgとの比較を行う(S105)。そして、その比較の結果、差分値が閾値th_edgを超えている場合には、差分値頻度集計部12は、当該差分値をそれ以降に行う集計に含めないようにする。これは、閾値th_edgを超える差分値の部分は、画像上のエッジ部分に相当するものであり、自然画においてもグラフィック画においても存在し得るので、そのエッジ部分を集計に含めないようにして、自然画とグラフィック画との区別の判断材料として適切でない部分を除外するためである。
【0025】
一方、差分値が閾値th_edg以下であれば、差分値頻度集計部12は、当該差分値が予め設定されている差分値範囲a1〜a2に属するか否かを判断する(S106)。この差分値範囲a1〜a2としては、例えばグラフィック画像らしさを表すグラフィック度を集計するために、差分値が小さい領域の分布頻度を重視するように設定すること、すなわち差分値が小さい領域を設定することが考えられる。これは、グラフィック画はなだらかで規則的な階調と均一な部分とで構成されていることから画素間の差分値が小さくなる傾向にあるのに対し、自然画はそのような規則性がないためである。
【0026】
図4は、グラフィック画と自然画における差分値の分布頻度の集計結果の一具体例を示す説明図である。図例からも明らかなように、グラフィック画の場合には、画素間の差分値が常に小さくなる傾向にあることから、差分値が小さい領域(図中におけるシャドウ部分)に分布が集中するが(図4(a)参照)、自然画の場合にはそのようなことがない(図4(b)参照)。したがって、差分値が小さい領域の分布頻度を重視するように差分値範囲a1〜a2を設定すれば、自然画とグラフィック画との区別がし易くなるといえる。
【0027】
なお、重視すべき差分値領域、すなわち差分値範囲a1〜a2の設定値としては、処理対象となる画像データの階調値によっても異なるが、例えば最大差分値を50とするとその略1割の領域に相当する0〜5程度とすることが考えられる。さらに望ましくは、区別のし易さを高めるべく、a1=0、a2=2とすることが考えられる。
【0028】
そして、図2において、差分値算出部11での算出によって得られた差分値が差分値範囲a1〜a2に属していれば、差分値頻度集計部12は、その差分値範囲a1〜a2に属する差分値の累積数を表す変数gをカウントアップするとともに(S107)、集計対象となった差分値の総数を表す変数allをカウントアップする(S108)。また、差分値算出部11での算出によって得られた差分値が差分値範囲a1〜a2に属していなければ、差分値頻度集計部12は、変数gのカウントアップを行わずに、変数allをカウントアップする(S108)。
【0029】
差分値算出部11および差分値頻度集計部12は、以上のような処理を処理対象となる画像データの全画素値について終了するまで繰り返す。すなわち、全画素について終了したか否かの判断の結果(S109)、終了していなければ、注目領域(注目画素)を移動させた後に(S110)、その注目領域について再び上述した差分値算出処理および差分値頻度の集計処理を行う(S104〜S110)。ただし、このとき、必ずしも処理対象となる画像データを構成する画素値の全てについて差分値算出処理等を行う必要はない。すなわち、差分値算出部11および差分値頻度集計部12は、適当に画素(注目領域)を間引いて差分値算出処理等を行うものであってもよい。
【0030】
その後、グラフィック度算出部10では、差分値頻度集計部12による変数g,allのカウントアップの結果から、特徴量抽出部13がその特徴量を抽出する。具体的には、変数gおよび変数allからg/allを特徴量として求める(S111)。この特徴量は、処理対象となる画像データのグラフィック度、すなわち処理対象となる画像データがどの程度なだらかで規則的な階調と均一な部分とで構成されているかを表すものである。したがって、規則的な階調と均一な部分とで構成されている画像データほどグラフィック度は高くなる(1に近づく)が、そうでない画像データについてはグラフィック度が低くなる(0に近くなる)。
【0031】
そして、画像データのグラフィック度を抽出すると、さらに特徴量抽出部13は、そのグラフィック度を基にして、処理対象となる画像データについての調整強度を算出する(S112)。調整強度の算出は、予め設定されている関数を用いて行えばよい。図5は、調整強度を算出するための関数の一具体例を示す説明図である。図例のように、調整強度を算出する関数としては、グラフィック度が高い(1に近い)ほど小さい調整強度(0に近い調整強度)が得られ、グラフィック度が低い(0に近い)ほど大きい調整強度(1に近い調整強度)が得られるようなものであればよい。これは、自然画については好ましい画質を得るために画像補正処理を行うべきであるのに対して、グラフィック画については作成意図を正しく反映させるためになるべく余計な画像補正処理を行わないようにすべきだからである。
【0032】
このようにして、グラフィック度算出部10では、処理対象となる画像データについて、そのグラフィック度を算出し、さらにそのグラフィック度から特定される調整強度を算出する。そして、その調整強度の算出結果を、グラフィック度算出部10は、適応補正量算出部20に通知する。
【0033】
このとき、適応補正量算出部20では、処理対象となる画像データについて、ヒストグラム集計部21がその明度値、彩度値および色相値の分布をそれぞれヒストグラム化し、特徴量抽出部22がそのヒストグラムによる集計結果の特徴量を抽出し、補正量算出部23がその特徴量を基に処理対象となる画像データに対する明度補正量、彩度補正量および色相補正量を算出している。また、コントラスト量、シャープネス量、記憶色調整量といった補正量を算出するようにしてもよい。なお、これらの適応補正量算出部20における処理は、従来(自然画/グラフィック画の判別後、自然画に対する補正量を決定する場合)と同様の手法を用いて行えばよいため、ここではその説明を省略する。
【0034】
したがって、グラフィック度算出部10から調整強度の算出結果が通知されると、適応補正量算出部20では、処理対象となる画像データについての補正量にその画像データのグラフィック度が反映されるようにすべく、通知された調整強度を用いて、補正量調整部24が、補正量算出部23が算出した各補正量に対する調整を行う(S113)。具体的には、「調整後の補正量」=「補正量算出部23が算出した補正量」×「グラフィック度算出部10から通知された調整強度」という演算を行って、補正量算出部23が算出した各補正量に対する調整を行う。このようにして得られる調整後の補正量は、調整強度が0〜1の範囲内にあるため、0を含む所定範囲内での可変値となる。このことから、補正量調整部24は、グラフィック度算出部10からの調整強度を基に、0を含む所定範囲内での可変値である補正量をいずれかの値に決定するものであるといえる。
【0035】
そして、補正量調整部24が調整後の補正量の決定を行うと、補正実行部30は、その調整後の補正量により、処理対象となる画像データに対して、明度値補正、彩度値補正および色相値補正を行う(S114)。したがって、補正量調整部24で決定された補正量が0であれば、補正実行部30は、画像データに対する画像補正処理を行わないことになる。なお、この補正実行部30が行う画像補正処理は、従来と同様の手法を用いて行えばよい。
【0036】
以上のように、本実施形態で説明した画像処理装置、その画像処理装置が実行する画像処理プログラム、およびその実行結果である画像処理方法によれば、注目領域の画素間の差分値の分布頻度を集計し、その集計結果から階調の滑らかさを判断してグラフィック度を求めるとともに、そのグラフィック度を反映させた補正量を用いて処理対象となる画像データに対する画像補正処理を行うことで、好ましい画像を得るようになっている。すなわち、自然画であるかグラフィック画であるかといった判別処理を行わず、一律に画像補正処理を行うが、その画像補正処理における補正量にグラフィック度の算出結果を反映させる。しかも、その補正量は、0を含む所定範囲内での可変値である。したがって、一律に画像補正処理を行った場合であっても、例えばグラフィック度が低い画像データについては大きい調整強度による調整を経ることで大きな補正量としたり、グラフィック度が高い画像データについては補正量を0として実質的に画像補正処理を行わない、といったことが可能となる。
【0037】
このことから、本実施形態によれば、例えば自然画/グラフィック画といった二値的な画像判別を行うのではなく、画像特性に応じて連続的に可変する補正量を用いて一律に画像補正処理を行うので、例えば僅かな画像特性に違いによって補正結果が大きく異なってしまうといった不都合を回避することができ、結果として画像補正処理を適切化が図れるようになる。
【0038】
また、本実施形態では、画像データに対する色変換処理を行って、その明度、色相および彩度のそれぞれの差分値分布頻度の集計結果からグラフィック度を算出するようになっているので、自然画とグラフィック画との区別がし易くなり、結果として画像特性を的確に補正量(画像補正処理)に反映させ得るようになる。さらには、明度、色相または彩度のいずれか一つのパラメータのみからグラフィック度を算出する場合に比べて、精度よく補正量を制御できることになる。なお、明度、色相および彩度の各パラメータについて集計結果を得た場合には、これらのうちで最もグラフィック度の高いパラメータの集計結果を採用したり、集計結果の平均をとったものからグラフィック度を算出する、といったことを行えばよい。ただし、必ずしもこれら全てのパラメータを基にする必要はなく、少なくとも一つのパラメータについて差分値の分布頻度を集計すれば、従来よりも画像補正処理を適切化が図れることはいうまでもない。
【0039】
また、本実施形態では、注目領域における画素間の差分値として、1画素分以上の間隔が空いている画素間の差分値を算出するようになっているので、自然画とグラフィック画との区別がし易くなり、これによっても補正量に対する制御の精度向上を実現することができる。
【0040】
また、本実施形態では、画素間の差分値が閾値th_edgを超えている場合には、当該差分値を分布頻度の集計に含めないようにしているので、画像上のエッジ部分等が有効に除外されることになり、この点においても補正量に対する制御の精度向上を実現することができるといえる。
【0041】
また、本実施形態では、グラフィック度の算出にあたって、差分値が小さい領域の分布頻度を重視しているので、グラフィック画と自然画との特徴の違いが効果的に活かされるため、自然画とグラフィック画との区別がし易くなる。したがって、このことによっても補正量に対する制御の精度向上が図れるようになる。
【0042】
なお、本実施形態では、画像データに関する特徴量としてグラフィック度を抽出する場合を例に挙げて説明したが、本発明はこれに限定されるものではない。すなわち、例えば特徴量として自然画らしさ(自然画度)を抽出するようにしても、あるいはそれ以外の特徴量を抽出するようにしても、その抽出した特徴量を基に可変値である補正量をいずれかの値に決定して画像補正処理を行えば、二値的ではない連続的な画像補正処理を実現することができる。
【0043】
また、本実施形態で説明した差分値集計、グラフィック度算出、調整強度算出等は、本発明の好適な一具体例を示したものに過ぎず、これらに限定されるものではないことは勿論である。
【0044】
【発明の効果】
以上に説明したように、本発明に係る画像処理装置、画像処理方法および画像処理プログラムによれば、画像種別を単に二値的に判別するのではなく、自然画らしさあるいはグラフィック画らしさを考慮することで、画像データに対する補正量を連続的に調整し得るようになっている。したがって、コンピュータ環境やアプリケーションソフトウエア等の高性能化によりグラフィック画においても自然画に近い表現が可能であっても、僅かな画像特性に違いによって補正結果が大きく異なってしまうといった不都合を回避することができ、画像種別に応じた画像補正処理を適切に行うことが実現可能になる。
【図面の簡単な説明】
【図1】 本発明に係る画像処理装置の概略構成例を示すブロック図である。
【図2】 本発明に係る画像処理方法の手順の一例を示すフローチャートである。
【図3】 本発明における差分値算出の概要を示す説明図であり、(a)はその一例を示す図、(b)は他の例を示す図である。
【図4】 本発明のグラフィック画と自然画における差分値の分布頻度の集計結果の一具体例を示す説明図である。
【図5】 本発明において補正量の調整強度を算出するための関数の一具体例を示す説明図である。
【符号の説明】
1…グラフィック度算出部、11…差分値算出部、12…差分値頻度集計部、13…特徴量抽出部、20…適応補正量算出部、21…ヒストグラム集計部、22…特徴量抽出部、23…補正量算出部、24…補正量調整部、30…補正実行部[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus, an image processing method, and an image processing program for performing image correction processing with different contents on image data to be processed depending on the image type.
[0002]
[Prior art]
In recent years, digital image data input to a printer has been diversified along with improvement in performance of a computer environment, application software, etc., so that image data input to a printer differs depending on the image type. It is necessary to output the content after performing image correction processing. For example, for image data representing a natural image such as a photograph, image correction processing such as gradation correction, contrast correction, and color balance correction is performed in order to obtain a preferable image quality, while a computer generated CG (Computer Graphics) For image data representing graphic images such as images, an extra image correction process is not performed in order to correctly reflect the creation intention.
[0003]
In order to realize such image correction processing according to the image type, it is necessary to determine the image type of the image data to be processed. Conventionally, the following methods have been proposed as a method for determining the image type. For example, in Japanese Patent Laid-Open No. 10-200758, attention is paid to the fact that a graphic image uses fewer colors than a natural image, and by detecting the number of used colors of image data to be processed, the image data becomes natural. Discriminating whether an image is a graphic image or a graphic image is disclosed. Further, for example, in Japanese Patent Laid-Open No. 2000-32287, attention is paid to the fact that when the distribution of the number of used colors is made into a histogram, there is a bias or gap in the distribution in the case of a graphic image. It is disclosed that a number is detected and its distribution is made into a histogram to determine whether the image data represents a natural image or a graphic image. Also, for example, in Japanese Patent Application Laid-Open No. 8-204954, attention is paid to the fact that the difference between adjacent pixels is the same for each color in the case of a graphic image, and the difference between adjacent pixels in the image data to be processed is all. It is disclosed that it is determined whether or not the image data represents a natural image or a graphic image by determining whether or not the colors match.
[0004]
[Problems to be solved by the invention]
However, conventionally, when image correction processing according to the image type is realized, it is binaryly determined whether the image data to be processed represents a natural image or a graphic image. Since whether or not to perform the image correction process is switched according to the determination result, there is a possibility that the following problem may occur.
[0005]
Recently, the high performance of computer environment and application software is particularly remarkable, so the number of colors used and the number of gradations also increase in graphic images, making it easy to form complex graphics and coloring. This makes it possible to realize expressions close to natural images. Therefore, in the determination of the binary image type as described above, an appropriate determination result is not always obtained, and an image having characteristics near the determination threshold is corrected with a slight difference, Inconveniences such as not being done. This is because the number of colors used and the number of gradations in graphic images have increased, so that discrimination based on the number of colors used and histogram distribution shape, etc., cannot be sufficiently differentiated between natural images and graphic images. Further, in binary discrimination, there is a possibility that the correction result may vary greatly even if there is a slight difference in features.
[0006]
Therefore, the present invention does not simply determine the image type in a binary manner, but allows the amount of correction for image data to be continuously adjusted by considering natural image quality or graphic image quality. An object of the present invention is to provide an image processing apparatus, an image processing method, and an image processing program capable of appropriately performing an image correction process according to an image type.
[0007]
[Means for Solving the Problems]
The present invention provides an image processing apparatus devised to achieve the above object, a difference value calculating means for calculating a difference value between pixels around a target pixel for image data to be processed, and the difference value calculating means A difference value frequency totaling unit that totalizes the distribution frequency of the difference value calculated by the feature, a feature amount extraction unit that extracts the feature amount from the distribution frequency totaled by the difference value frequency totaling unit, Extracting feature values of the image data from the distribution of brightness values, saturation values, and hue values in the image data, and calculating brightness correction amount, saturation correction amount, and hue correction amount for the image data based on the feature amounts Do Correction amount calculating means; A correction amount adjustment unit that performs adjustment with an adjustment strength that reflects the feature amount extracted by the feature amount extraction unit with respect to the correction amount calculated by the correction amount calculation unit, and a post-adjustment by the correction amount adjustment unit And a correction execution unit that performs an image correction process on the image data according to a correction amount.
[0008]
The present invention is also an image processing method devised to achieve the above object. That is, an image processing method for performing predetermined image correction processing on image data to be processed, a difference value calculating step of calculating a difference value between pixels around a target pixel for the image data, A difference value frequency counting step for counting the distribution frequency of the difference value calculated in the difference value calculating step, and a feature value extracting step for extracting the feature value from the distribution frequency counted in the difference value frequency counting step; Extracting feature values of the image data from the distribution of brightness values, saturation values, and hue values in the image data, and calculating brightness correction amount, saturation correction amount, and hue correction amount for the image data based on the feature amounts Do A correction amount calculating step; A correction amount adjustment step for performing adjustment with an adjustment intensity reflecting the feature amount extracted in the feature amount extraction step with respect to the correction amount calculated in the correction amount calculation step; and after the adjustment in the correction amount adjustment step And a correction execution step of performing an image correction process on the image data according to a correction amount.
[0009]
Further, the present invention is an image processing program devised to achieve the above object, a computer for calculating a difference value between pixels around a target pixel for image data to be processed; A difference value frequency totaling unit that totals the distribution frequency of the difference value calculated by the difference value calculation unit; a feature amount extraction unit that extracts the feature amount from the distribution frequency totaled by the difference value frequency totaling unit; Extracting feature values of the image data from the distribution of brightness values, saturation values, and hue values in the image data, and calculating brightness correction amount, saturation correction amount, and hue correction amount for the image data based on the feature amounts Do Correction amount calculating means; A correction amount adjustment unit that performs adjustment with an adjustment strength that reflects the feature amount extracted by the feature amount extraction unit with respect to the correction amount calculated by the correction amount calculation unit, and a post-adjustment by the correction amount adjustment unit The image processing apparatus functions as a correction execution unit that performs an image correction process on the image data according to a correction amount.
[0010]
In the image processing apparatus having the above-described configuration, the image processing method having the above-described procedure, and the computer executing the image processing program having the above-described configuration, a difference value between pixels around the target pixel is calculated, and the distribution frequency of the calculated difference values is aggregated. . From the distribution frequency, which is a result of the aggregation, for example, a regular degree of gradation (gradation smoothness) is known. Therefore, if the feature amount is extracted from the aggregated distribution frequency, the graphic image quality of the image data to be processed, for example, is continuously specified instead of binary by the feature amount. Therefore, this continuous feature amount Adjust the brightness correction amount, saturation correction amount, and hue correction amount of the image data with the adjustment strength that reflects the If the image correction process is performed on the image data with the correction amount, the image correction process is not binary but continuous, and if the correction amount is determined to be 0, the image correction process is not substantially performed. become. That is, when performing image correction processing, continuous correction processing according to the image characteristics of image data to be processed can be performed without requiring binary control such as natural image / graphic image discrimination. It becomes possible.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an image processing apparatus, an image processing method, and an image processing program according to the present invention will be described with reference to the drawings.
[0012]
First, the configuration of the image processing apparatus according to the present invention will be described. The image processing apparatus described here performs image correction processing such as gradation correction, contrast correction, and color balance correction on image data to be processed. Note that details of the image correction process are well known, and thus the description thereof is omitted here.
[0013]
Since the image processing apparatus described here performs image correction processing on image data, for example, a copying machine, a scanner apparatus, a printer apparatus, a FAX apparatus, a computer apparatus having an image processing function, etc. Thus, it is used by being mounted on various devices that handle image data. Furthermore, it may be used on a network system in which these various devices are connected to each other by wire or wirelessly. The details of these various devices are also well known, and the description thereof is omitted here.
[0014]
FIG. 1 is a block diagram showing a schematic configuration example of an image processing apparatus according to the present invention. As shown in the figure, the image processing apparatus described here is roughly composed of a graphic
[0015]
The graphic
[0016]
The adaptive correction
[0017]
The
[0018]
These
[0019]
Next, an example of processing operation in the image processing apparatus having the above configuration (or a microprocessor that executes an image processing program), that is, an image processing method according to the present invention will be described. FIG. 2 is a flowchart showing an example of the procedure of the image processing method according to the present invention.
[0020]
When there is input of image data (a set of pixel values) to be processed (step 101, hereinafter “step” is abbreviated as “S”), the image processing apparatus performs color conversion processing such as HSL conversion on the image data. Perform (S102). Normally, gradations used to represent graphic images are created on RGB, but when converted to lightness, saturation, and hue signals represented by HSL, for example, the hue is constant and the saturation and lightness change. Or the signal value of lightness, saturation, or hue is fixed (no change in signal value) such that only the lightness changes with a constant saturation. This is because it is easier to distinguish between a natural image and a graphic image than in the above determination. Therefore, when the input image data consists of lightness, saturation, and hue signals from the beginning, color conversion processing is not necessary.
[0021]
In the image processing apparatus, before the image correction process is performed on the image data including the lightness, saturation, and hue signals, first, the graphic
[0022]
When variable initialization is performed, subsequently, in the graphic
[0023]
As described above, the difference value calculation unit 11 calculates the difference value between the pixels having an interval of one pixel or more (at least for the target pixel) as the difference value between the pixels in the target region. Depending on the reason. When calculating the difference value between pixels that are separated to some extent, the relevance between the pixels is lower than when calculating the difference value between adjacent pixels. On the other hand, if it is a graphic image, the difference value between pixels does not become as large as that in the case of a natural image even if it is slightly separated. That is, it becomes easy to distinguish between a natural image and a graphic image. Therefore, a difference value between pixels having an interval of one pixel or more is calculated. In addition, it is considered that it is appropriate to leave about 1 to 3 pixels between the pixels.
[0024]
As shown in FIG. 2, the difference value frequency totaling unit 12 compares the difference value obtained by the calculation in the difference value calculating unit 11 with a preset threshold th_edg (S105). As a result of the comparison, if the difference value exceeds the threshold th_edg, the difference value frequency counting unit 12 does not include the difference value in the subsequent counting. This is because the portion of the difference value exceeding the threshold th_edg corresponds to the edge portion on the image, and can exist in both the natural image and the graphic image. This is because a portion that is not appropriate as a material for determining the distinction between a natural image and a graphic image is excluded.
[0025]
On the other hand, if the difference value is equal to or less than the threshold th_edg, the difference value frequency counting unit 12 determines whether or not the difference value belongs to the preset difference value ranges a1 to a2 (S106). As the difference value range a1 to a2, for example, in order to tabulate the graphic degree representing the graphic image, setting is made so as to place importance on the distribution frequency of a region having a small difference value, that is, a region having a small difference value is set. It is possible. This is because graphic images are composed of gentle, regular gradations and uniform parts, so that the difference value between pixels tends to be small, whereas natural images do not have such regularity. Because.
[0026]
FIG. 4 is an explanatory diagram showing a specific example of the result of counting the distribution frequency of the difference values between the graphic image and the natural image. As is clear from the example in the figure, in the case of a graphic image, the difference value between pixels always tends to be small, so the distribution is concentrated in a region where the difference value is small (shadow part in the figure) ( This is not the case with natural images (see FIG. 4A) (see FIG. 4B). Therefore, if the difference value range a1 to a2 is set so as to emphasize the distribution frequency of the region having a small difference value, it can be said that it becomes easy to distinguish between the natural image and the graphic image.
[0027]
The difference value region to be emphasized, that is, the set value of the difference value range a1 to a2, differs depending on the gradation value of the image data to be processed. For example, when the maximum difference value is 50, about 10% of the difference value region is set. It can be considered to be about 0 to 5 corresponding to the region. More preferably, a1 = 0 and a2 = 2 can be considered in order to increase the ease of discrimination.
[0028]
In FIG. 2, if the difference value obtained by the calculation in the difference value calculation unit 11 belongs to the difference value range a1 to a2, the difference value frequency counting unit 12 belongs to the difference value range a1 to a2. The variable g representing the accumulated number of difference values is counted up (S107), and the variable all representing the total number of difference values to be counted is counted up (S108). If the difference value obtained by the calculation in the difference value calculation unit 11 does not belong to the difference value range a1 to a2, the difference value frequency counting unit 12 sets the variable all without counting up the variable g. Count up (S108).
[0029]
The difference value calculation unit 11 and the difference value frequency totaling unit 12 repeat the above processing until all pixel values of the image data to be processed are completed. That is, as a result of determining whether or not the processing has been completed for all the pixels (S109), if the processing has not been completed, after moving the region of interest (pixel of interest) (S110), the difference value calculation process described above again for the region of interest The difference value frequency is aggregated (S104 to S110). However, at this time, it is not always necessary to perform the difference value calculation process or the like for all of the pixel values constituting the image data to be processed. That is, the difference value calculation unit 11 and the difference value frequency totaling unit 12 may perform difference value calculation processing or the like by appropriately thinning out pixels (regions of interest).
[0030]
Thereafter, in the graphic
[0031]
When the graphic degree of the image data is extracted, the feature amount extraction unit 13 further calculates an adjustment strength for the image data to be processed based on the graphic degree (S112). The calculation of the adjustment strength may be performed using a preset function. FIG. 5 is an explanatory diagram showing a specific example of a function for calculating the adjustment strength. As shown in the figure, as the function for calculating the adjustment strength, the higher the graphic degree (closer to 1), the smaller the adjustment strength (adjustment strength close to 0) is obtained, and the lower the graphic degree (close to 0), the larger Any adjustment strength (adjustment strength close to 1) may be obtained. This is because image correction processing should be performed for natural images in order to obtain a preferable image quality, whereas graphic images should not be subjected to extra image correction processing as much as possible in order to correctly reflect the creation intention. Because it should.
[0032]
In this way, the graphic
[0033]
At this time, in the adaptive correction
[0034]
Therefore, when the calculation result of the adjustment strength is notified from the graphic
[0035]
When the correction
[0036]
As described above, according to the image processing apparatus described in the present embodiment, the image processing program executed by the image processing apparatus, and the image processing method that is the execution result, the distribution frequency of the difference value between the pixels in the region of interest. By calculating the degree of smoothness of the gradation from the aggregation result and obtaining the graphic degree, and performing the image correction process on the image data to be processed using the correction amount reflecting the graphic degree, A preferable image is obtained. That is, the image correction process is uniformly performed without performing the determination process of whether the image is a natural image or a graphic image, but the graphic degree calculation result is reflected in the correction amount in the image correction process. Moreover, the correction amount is a variable value within a predetermined range including zero. Therefore, even when image correction processing is performed uniformly, for example, the graphic degree is Low About image data By adjusting with a large adjustment strength Large correction amount and graphic degree high For image data, it is possible to set the correction amount to 0 and substantially not perform image correction processing.
[0037]
Therefore, according to the present embodiment, instead of performing binary image discrimination such as a natural image / graphic image, for example, image correction processing is uniformly performed using a correction amount that varies continuously according to image characteristics. Thus, for example, it is possible to avoid the disadvantage that the correction result varies greatly depending on a slight difference in image characteristics. As a result, the image correction process can be optimized.
[0038]
In the present embodiment, the color conversion processing is performed on the image data, and the graphic degree is calculated from the total result of the difference value distribution frequencies of the brightness, hue, and saturation. It becomes easy to distinguish from a graphic image, and as a result, the image characteristics can be accurately reflected in the correction amount (image correction processing). Furthermore, the correction amount can be controlled with higher accuracy than when the graphic degree is calculated from only one of the parameters of brightness, hue, and saturation. When the aggregation results are obtained for the brightness, hue, and saturation parameters, the aggregation result of the parameter with the highest graphic degree is adopted, or the average of the aggregation results is taken as the graphic degree. May be calculated. However, it is not always necessary to use all these parameters as a basis. Needless to say, if the distribution frequency of the difference values for at least one parameter is aggregated, the image correction process can be made more appropriate than before.
[0039]
In the present embodiment, the difference value between the pixels having an interval of one pixel or more is calculated as the difference value between the pixels in the region of interest. This also makes it possible to improve control accuracy with respect to the correction amount.
[0040]
In the present embodiment, when the difference value between pixels exceeds the threshold th_edg, the difference value is not included in the aggregation of the distribution frequency, so that the edge portion on the image is effectively excluded. In this respect, it can be said that it is possible to improve the control accuracy with respect to the correction amount.
[0041]
In the present embodiment, in calculating the degree of graphics, importance is placed on the distribution frequency of an area having a small difference value, so that the difference in characteristics between the graphic image and the natural image is effectively utilized. This makes it easier to distinguish the image. Therefore, this also improves the control accuracy with respect to the correction amount.
[0042]
In the present embodiment, the case where the graphic degree is extracted as the feature amount related to the image data has been described as an example, but the present invention is not limited to this. That is, for example, even if natural image quality (natural image quality) is extracted as a feature amount or other feature amounts are extracted, a correction amount that is a variable value based on the extracted feature amount If any one of the values is determined and image correction processing is performed, continuous non-binary image correction processing can be realized.
[0043]
In addition, the difference value aggregation, the graphic degree calculation, the adjustment strength calculation, and the like described in the present embodiment are merely examples of the preferred embodiment of the present invention, and are not limited thereto. is there.
[0044]
【The invention's effect】
As described above, according to the image processing apparatus, the image processing method, and the image processing program of the present invention, the image type is not simply determined in a binary manner, but the natural image quality or the graphic image quality is considered. Thus, the correction amount for the image data can be continuously adjusted. Therefore, even if a high-performance computer environment, application software, etc. can be used to represent a natural image even in a graphic image, the inconvenience that the correction result differs greatly due to a slight difference in image characteristics can be avoided. Therefore, it is possible to appropriately perform the image correction process according to the image type.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a schematic configuration example of an image processing apparatus according to the present invention.
FIG. 2 is a flowchart showing an example of a procedure of an image processing method according to the present invention.
FIGS. 3A and 3B are explanatory diagrams showing an outline of difference value calculation according to the present invention, FIG. 3A is a diagram illustrating an example thereof, and FIG. 3B is a diagram illustrating another example;
FIG. 4 is an explanatory diagram showing a specific example of a result of counting difference frequency distribution frequencies between a graphic image and a natural image according to the present invention.
FIG. 5 is an explanatory diagram showing a specific example of a function for calculating the adjustment intensity of the correction amount in the present invention.
[Explanation of symbols]
DESCRIPTION OF
Claims (15)
前記差分値算出手段が算出した差分値の分布頻度を集計する差分値頻度集計手段と、
前記差分値頻度集計手段が集計した分布頻度からその特徴量を抽出する特徴量抽出手段と、
前記画像データにおける明度値、彩度値および色相値の分布から当該画像データの特徴量を抽出するとともに当該特徴量に基づいて当該画像データに対する明度補正量、彩度補正量および色相補正量を算出する補正量算出手段と、
前記補正量算出手段が算出した補正量に対し前記特徴量抽出手段が抽出した特徴量を反映させた調整強度による調整を行う補正量調整手段と、
前記補正量調整手段による調整後の補正量により前記画像データに対する画像補正処理を行う補正実行手段と
を備えることを特徴とする画像処理装置。Difference value calculation means for calculating a difference value between pixels around the target pixel for the image data to be processed;
Difference value frequency counting means for counting the distribution frequency of the difference values calculated by the difference value calculating means;
Feature quantity extraction means for extracting the feature quantity from the distribution frequency tabulated by the difference value frequency tabulation means;
Extracting feature values of the image data from the distribution of brightness values, saturation values, and hue values in the image data, and calculating brightness correction amount, saturation correction amount, and hue correction amount for the image data based on the feature amounts Correction amount calculating means to perform ,
Correction amount adjusting means for performing adjustment with adjustment strength reflecting the feature amount extracted by the feature amount extracting means with respect to the correction amount calculated by the correction amount calculating means;
An image processing apparatus comprising: a correction execution unit that performs an image correction process on the image data based on a correction amount after adjustment by the correction amount adjustment unit .
ことを特徴とする請求項1記載の画像処理装置。The image processing according to claim 1, wherein the difference value calculating unit and the difference value frequency totaling unit calculate difference values and total distribution frequencies for each of brightness, hue, and saturation between pixels. apparatus.
ことを特徴とする請求項1または2記載の画像処理装置。The image processing according to claim 1, wherein the difference value calculation unit calculates a difference value between pixels having an interval of one pixel or more as a difference value between pixels around the target pixel. apparatus.
ことを特徴とする請求項1、2または3記載の画像処理装置。The difference value frequency aggregation means does not include the difference value in the distribution frequency aggregation when the difference value calculated by the difference value calculation means exceeds a predetermined threshold. 3. The image processing apparatus according to 3.
ことを特徴とする請求項1、2、3または4記載の画像処理装置。The image processing apparatus according to claim 1, 2, 3, or 4, wherein the feature amount extraction unit attaches importance to a distribution frequency of a region having a small difference value when extracting the feature amount.
前記画像データについて注目画素周辺の画素間の差分値を算出する差分値算出ステップと、
前記差分値算出ステップで算出した差分値の分布頻度を集計する差分値頻度集計ステップと、
前記差分値頻度集計ステップで集計した分布頻度からその特徴量を抽出する特徴量抽出ステップと、
前記画像データにおける明度値、彩度値および色相値の分布から当該画像データの特徴量を抽出するとともに当該特徴量に基づいて当該画像データに対する明度補正量、彩度補正量および色相補正量を算出する補正量算出ステップと、
前記補正量算出ステップで算出した補正量に対し前記特徴量抽出ステップで抽出した特徴量を反映させた調整強度による調整を行う補正量調整ステップと、
前記補正量調整ステップによる調整後の補正量により前記画像データに対する画像補正処理を行う補正実行ステップと
を備えることを特徴とする画像処理方法。An image processing method for performing predetermined image correction processing on image data to be processed,
A difference value calculating step of calculating a difference value between pixels around the target pixel for the image data;
A difference value frequency counting step for counting the distribution frequency of the difference values calculated in the difference value calculating step;
A feature amount extraction step for extracting the feature amount from the distribution frequency tabulated in the difference value frequency tabulation step;
Extracting feature values of the image data from the distribution of brightness values, saturation values, and hue values in the image data, and calculating brightness correction amount, saturation correction amount, and hue correction amount for the image data based on the feature amounts A correction amount calculating step,
A correction amount adjustment step of performing adjustment with an adjustment intensity reflecting the feature amount extracted in the feature amount extraction step with respect to the correction amount calculated in the correction amount calculation step;
An image processing method comprising: a correction execution step of performing an image correction process on the image data with the correction amount after the adjustment in the correction amount adjustment step .
ことを特徴とする請求項6記載の画像処理方法。The image processing according to claim 6, wherein, in the difference value calculation step and the difference value frequency aggregation step, difference value calculation and distribution frequency aggregation are performed for each of brightness, hue, and saturation between pixels. Method.
ことを特徴とする請求項6または7記載の画像処理方法。The image processing according to claim 6 or 7, wherein, in the difference value calculating step, a difference value between pixels having an interval of one pixel or more is calculated as a difference value between pixels around the target pixel. Method.
ことを特徴とする請求項6、7または8記載の画像処理方法。In the difference value frequency aggregation step, if the difference value calculated in the difference value calculation step exceeds a predetermined threshold value, the difference value is not included in the distribution frequency aggregation. 8. The image processing method according to 8.
ことを特徴とする請求項6、7、8または9記載の画像処理装置。The image processing apparatus according to claim 6, 7, 8, or 9, wherein the feature amount extraction step places importance on a distribution frequency of a region having a small difference value in extracting the feature amount.
処理対象となる画像データについて注目画素周辺の画素間の差分値を算出する差分値算出手段と、
前記差分値算出手段が算出した差分値の分布頻度を集計する差分値頻度集計手段と、
前記差分値頻度集計手段が集計した分布頻度からその特徴量を抽出する特徴量抽出手段と、
前記画像データにおける明度値、彩度値および色相値の分布から当該画像データの特徴量を抽出するとともに当該特徴量に基づいて当該画像データに対する明度補正量、彩度補正量および色相補正量を算出する補正量算出手段と、
前記補正量算出手段が算出した補正量に対し前記特徴量抽出手段が抽出した特徴量を反映させた調整強度による調整を行う補正量調整手段と、
前記補正量調整手段による調整後の補正量により前記画像データに対する画像補正処理を行う補正実行手段
として機能させることを特徴とする画像処理プログラム。Computer
Difference value calculation means for calculating a difference value between pixels around the target pixel for the image data to be processed;
Difference value frequency counting means for counting the distribution frequency of the difference values calculated by the difference value calculating means;
Feature quantity extraction means for extracting the feature quantity from the distribution frequency tabulated by the difference value frequency tabulation means;
Extracting feature values of the image data from the distribution of brightness values, saturation values, and hue values in the image data, and calculating brightness correction amount, saturation correction amount, and hue correction amount for the image data based on the feature amounts Correction amount calculating means to perform ,
Correction amount adjusting means for performing adjustment with adjustment strength reflecting the feature amount extracted by the feature amount extracting means with respect to the correction amount calculated by the correction amount calculating means;
An image processing program that functions as a correction execution unit that performs an image correction process on the image data based on a correction amount adjusted by the correction amount adjusting unit .
ことを特徴とする請求項11記載の画像処理プログラム。The image processing according to claim 11, wherein the difference value calculating unit and the difference value frequency totaling unit calculate a difference value and total a distribution frequency for each of brightness, hue, and saturation between pixels. program.
ことを特徴とする請求項11または12記載の画像処理プログラム。The image processing according to claim 11 or 12, wherein the difference value calculation means calculates a difference value between pixels having an interval of one pixel or more as a difference value between pixels around the target pixel. program.
ことを特徴とする請求項11、12または13記載の画像処理プログラム。The difference value frequency aggregation means does not include the difference value in the distribution frequency aggregation when the difference value calculated by the difference value calculation means exceeds a predetermined threshold value. 13. The image processing program according to 13.
ことを特徴とする請求項11、12、13または14記載の画像処理プログラム。15. The image processing program according to claim 11, 12, 13, or 14, wherein the feature amount extraction unit places importance on a distribution frequency of a region having a small difference value in extracting the feature amount.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002076926A JP4069649B2 (en) | 2002-03-19 | 2002-03-19 | Image processing apparatus, image processing method, and image processing program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002076926A JP4069649B2 (en) | 2002-03-19 | 2002-03-19 | Image processing apparatus, image processing method, and image processing program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2003281525A JP2003281525A (en) | 2003-10-03 |
| JP4069649B2 true JP4069649B2 (en) | 2008-04-02 |
Family
ID=29227855
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002076926A Expired - Fee Related JP4069649B2 (en) | 2002-03-19 | 2002-03-19 | Image processing apparatus, image processing method, and image processing program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4069649B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4522229B2 (en) * | 2004-11-02 | 2010-08-11 | キヤノン株式会社 | Image processing method and apparatus |
-
2002
- 2002-03-19 JP JP2002076926A patent/JP4069649B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2003281525A (en) | 2003-10-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8600154B2 (en) | Image processing apparatus and image processing method | |
| US7525688B2 (en) | Image processing apparatus, image processing method and information recording medium | |
| EP0886437B1 (en) | Method and apparatus for colour adjustment | |
| US8310726B2 (en) | Image processing apparatus, image processing method, image processing program, and printing apparatus | |
| EP1807805B1 (en) | Method and apparatus for red-eye detection in an acquired digital image | |
| US7876474B2 (en) | Image processing device capable of suppressing over-correction in Retinex process | |
| US7580562B2 (en) | Image processing method, image processing device, and image processing program | |
| US6563602B1 (en) | Image processing apparatus and method, and recording medium | |
| TW540227B (en) | System and method for image processing | |
| US8472711B2 (en) | Image processing device for processing images according to the available storage capacity | |
| JP4639037B2 (en) | Image processing method and apparatus | |
| US7715649B2 (en) | Generation and adjustment of a luminance correction curve to prevent saturation of the image during contrast enhancement | |
| US7920752B2 (en) | Image processing device that quickly performs retinex process | |
| JP2002204353A (en) | Image state estimation method, image correction method, and correction device | |
| JP4232345B2 (en) | Program for correcting red eye in image, recording medium, and red eye correction method | |
| JPH07107291A (en) | Color picture forming device | |
| US7912308B2 (en) | Image processing device that quickly performs retinex process | |
| JP4069649B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP4608961B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| US8040409B2 (en) | Image processing device capable of performing retinex process at high speed | |
| US20050163371A1 (en) | Controlled moving window adaptive histogram equalization | |
| JPH10271524A (en) | Image processing apparatus, image processing method, and medium recording image processing program | |
| JP2010233236A (en) | Improved image quality according to the main subject | |
| JPH10271524A5 (en) | ||
| JP4359730B2 (en) | Monotone conversion apparatus, monotone conversion method, and medium recording monotone conversion program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040917 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070912 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070925 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071122 |
|
| 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: 20071225 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080107 |
|
| 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: 20110125 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120125 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120125 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130125 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130125 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140125 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |