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
JP3736632B2 - Image processing apparatus, image processing method, and medium on which image processing program is recorded - Google Patents
[go: Go Back, main page]

JP3736632B2 - Image processing apparatus, image processing method, and medium on which image processing program is recorded - Google Patents

Image processing apparatus, image processing method, and medium on which image processing program is recorded Download PDF

Info

Publication number
JP3736632B2
JP3736632B2 JP2002182370A JP2002182370A JP3736632B2 JP 3736632 B2 JP3736632 B2 JP 3736632B2 JP 2002182370 A JP2002182370 A JP 2002182370A JP 2002182370 A JP2002182370 A JP 2002182370A JP 3736632 B2 JP3736632 B2 JP 3736632B2
Authority
JP
Japan
Prior art keywords
saturation
enhancement
parameter
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
Application number
JP2002182370A
Other languages
Japanese (ja)
Other versions
JP2003051000A (en
JP2003051000A5 (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 JP2002182370A priority Critical patent/JP3736632B2/en
Publication of JP2003051000A publication Critical patent/JP2003051000A/en
Publication of JP2003051000A5 publication Critical patent/JP2003051000A5/ja
Application granted granted Critical
Publication of JP3736632B2 publication Critical patent/JP3736632B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、画像処理装置、画像処理方法および画像処理プログラムを記録した媒体に関し、特に、画像データのコントラストと彩度を強調する画像処理装置、画像処理方法および画像処理プログラムを記録した媒体に関する。
【0002】
【従来の技術】
写真をスキャナなどで読み込んで電子画像データとした場合、画像のコントラストや鮮やかさをより強調したいと思うことがある。そして、従来、この種の画像データを変換するものとして、フォトレタッチソフトなどが知られている。
【0003】
画像データのコントラストを拡大するものとしては、特公平7−66318号公報に開示されたものが知られており、変換元の輝度yに対して変換後の輝度y’の関係を(1)式のように対応付け、操作者が選択したパラメータaあるいはパラメータbに基づいて画像データの輝度を変換している。これにより、コントラストの弱い画像データについてコントラストを強調した画像が得られる。
【0004】
y’=ay+b …(1)
一方、鮮やかさを強調するためにいわゆる彩度を強調するものとして、例えば、画像データの色成分を赤(=R)、緑(=G)、青(=B)の階調データで表している場合に、所望の色成分の値を増加させるものが知られている。
【0005】
すなわち、階調データが「0〜255」といった範囲であるときに、赤い色をより鮮やかなものとするために赤の階調データに一律に「20」を加えたり、青い色をより鮮やかなものとするために青の階調データに一律に「20」を加えたりするといったことが行われている。
【0006】
【発明が解決しようとする課題】
ところで、コントラストを拡大する処理についても彩度を強調する処理についても画像データの値を増加する傾向がある。従って、コントラストを強調した後で彩度を強調しようとすると、派手な画像になってしまい、好ましくない。
【0007】
しかしながら、上述した従来の画像処理装置においては、一方を適当な状態に調整した後で他方を調整してしまうと、先に調整した結果が狂ってしまうという課題があった。
【0008】
本発明は、上記課題にかんがみてなされたもので、所望の画像をより容易に得ることが可能な画像処理装置、画像処理方法および画像処理プログラムを記録した媒体の提供を目的とする。
【0009】
【課題を解決するための手段】
上記目的を達成するため、請求項1にかかる発明は、画像データにおける輝度分布を拡大させるコントラスト拡大手段と、上記画像データにおける各画素の彩度を強調する彩度強調手段と、上記コントラスト拡大手段における輝度分布の拡大程度を表すパラメータと上記彩度強調手段における彩度の強調程度を表すパラメータとの一方を仮のパラメータとし、他方のパラメータと上記仮のパラメータとから自動的に、上記仮のパラメータをその操作を抑制させるパラメータに変換する強調処理抑制手段とを具備し、上記コントラスト拡大手段と上記彩度強調手段とは、上記変換後のパラメータと上記他方のパラメータとを利用してそれぞれの処理を実施するように上記画像データを変換する構成としてある。
【0010】
上記のように構成した請求項1にかかる発明においては、コントラスト拡大手段が画像データにおける輝度分布を拡大させる一方、彩度強調手段は同画像データにおける各画素の彩度を強調するが、ここにおいて強調処理抑制手段が輝度分布の拡大操作と彩度の強調操作とで相互にあるいは一方を抑制し合うようにする。
【0011】
従って、コントラスト拡大手段にてコントラストを拡大するとともに、彩度強調手段で彩度を強調しようとすれば、強調処理抑制手段は双方あるいは一方の強調操作を抑制させ、相乗的に派手になってしまうことを防止する。
【0012】
強調処理抑制手段は、輝度分布の拡大操作と彩度の強調操作とについて他方を抑制的に関連させるようなものであればよい。ここにおいて、輝度分布の拡大操作といってもその処理は様々であるし、彩度の強調処理においても同様である。従って、具体的手法はコントラスト拡大手段や彩度強調手段に応じて適宜変更すればよい。また、他方を抑制的に関連させるにあたっても、必ずしも相互に抑制し合うのではなく、一方から他方に対しては抑制処理をかけるものの、その逆については抑制処理をかけないというものであっても良い。このようにすれば、相乗的な強調を防止する場合と、かかる強調を是認する場合とを選択することも可能となる。
この意味で、請求項2にかかる発明は、請求項1に記載の画像処理装置において、上記強調処理抑制手段は、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに彩度の強調操作を抑制する構成としてあり、請求項3にかかる発明は、請求項1に記載の画像処理装置において、上記強調処理抑制手段は、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに輝度分布の拡大操作を抑制する構成としてあり、請求項4にかかる発明によれば、上記請求項1に記載の画像処理装置において、上記強調処理抑制手段は、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに相互に抑制する構成としてある。
【0013】
むろん、結果的に輝度分布の拡大操作と彩度の強調操作とについて他方を抑制的に関連させることができればよく、例えば、コントラスト拡大手段における拡大操作を抑制する必要があるときに同コントラスト拡大手段自身の拡大操作を抑制するのではなく、拡大された画像データに対して拡大結果を否定するようなさらなる変換処理を施すようにしても良いし、あるいは、コントラストの拡大とは異なるものの全体的に画像を暗くするなどして同様の結果を得るというようなことも可能である。なお、このことは彩度の強調操作についても同様である。
【0014】
一方、他方を抑制的に関連させるためのより具体的な手法について、請求項にかかる発明は、上記請求項1〜請求項4のいずれかに記載の画像処理装置において、上記強調処理抑制手段は、上記コントラスト拡大手段における輝度分布の拡大程度を表すパラメータと上記彩度強調手段における彩度の強調程度を表すパラメータとから、一方が大となるときに他方が小となる関連づけを行う構成としてある。
【0015】
上記のように構成した請求項5にかかる発明においては、上記コントラスト拡大手段はその輝度分布の拡大程度を表すパラメータを用いて画像データを変換するとともに、上記彩度強調手段もその彩度の強調程度を表すパラメータを用いて画像データを変換するようになっているため、一方が大となるときに他方が小となるように上記強調処理抑制手段が関連づけを行うことにより、結果的に輝度分布の拡大操作と彩度の強調操作とが互いに抑制し合うように作用する。
【0016】
両者のパラメータの関連づけは各種の手法が採用可能である。例えば、一方のパラメータには他方のパラメータを分母とする係数を乗算するようにしておけば、同他方のパラメータが大きくなるに従って同一方のパラメータは小さくなる。
この場合、同他方のパラメータは同一方のパラメータの影響を受けないものであるが、相互に影響を与えたいのであれば、別の手法で容易に実現できる。むろん、相互のパラメータで参照する変換テーブルを用意しておき、互いに抑制し合うような変換値を読み出すようにしてもよい。
【0017】
コントラスト拡大手段や彩度強調手段が実施する画像データの変換は各種の方法があり得るが上記コントラスト拡大手段と上記彩度強調手段は、画素ごとの画像データについての変換操作を行う構成としてもよい。
【0018】
コントラストの拡大のための画像データの変換や彩度強調のための画像データの変換が画素ごとに行われるものでない場合、この拡大処理と彩度強調の処理との因果関係が複雑になり、場合によっては両者を互いに抑制し合うために複雑な処理を要することにもなりうるし、ワークエリアが別に必要になることもあり得る。しかるに、画素ごとの画像データについての変換操作であれば、画像データの増減などの処理がコントラストや彩度に与える影響がシンプルになり、ひいては相互に抑制させる処理もシンプルになる。
【0019】
コントラスト拡大手段と彩度強調手段が画像データを変換するにあたり、請求項6にかかる発明は、上記請求項1〜請求項5のいずれかに記載の画像処理装置において、上記コントラスト拡大手段と上記彩度強調手段における一方または双方が、画像データを分析して強調程度を設定する構成としてある。
【0020】
すなわち、コントラスト拡大手段と彩度強調手段は自動的に強調程度を設定し、この自動化の課程において強調処理抑制手段が上述した抑制操作を実施することになる。従って、コントラスト拡大手段が強調程度を設定する際に彩度強調手段におけるパラメータなどを参照して強調程度を弱めたり処理を変えるといったことを行なうようにすれば、かかる処理こそが強調処理抑制手段を構成することになる。むろん、彩度強調手段が強調程度を設定する際にコントラスト拡大手段におけるパラメータなどを参照して強調程度を弱めたり処理を変えるといったことを行なう場合には、この処理こそが強調処理抑制手段を構成することになる。
【0021】
画像データを分析して拡大程度を設定するコントラスト拡大手段の具体的構成として、請求項7にかかる発明は、上記請求項6に記載の画像処理装置において、上記コントラスト拡大手段は、画素単位での画像データの輝度分布を検出する輝度分布検出手段と、この検出された輝度分布に基づいて再現可能な範囲内での同輝度分布の拡大可能な程度を判別して画像データを変換するコントラストデータ変換手段とを具備する構成としてある。
【0022】
画像データを扱う上でその輝度分布を求めるため、輝度分布検出手段は画素単位での同画像データの輝度分布を検出する。そして、この検出された輝度分布を利用してコントラストデータ変換手段は再現可能な範囲内での同輝度分布の拡大量を判別し、画像データを変換する。
【0023】
すなわち、画素単位での画像データの輝度分布を求めれば最も明るい輝度から最も暗い輝度までのいわゆるコントラストの幅が判別でき、再現可能な輝度の幅の範囲と対比すればコントラストの拡大率が判定できるので、後はその拡大率となるようにして輝度分布を拡大させれば良くなる。例えば、各画素での輝度に基づいて全体としての輝度分布を集計した後、集計された輝度分布が当該画像データの取りうる有効な輝度範囲に広く分散していない場合に、上記輝度分布が同輝度範囲に広く分散するように上記画像データにおける各画素の輝度の情報を変換する。
【0024】
また、画像データを分析して強調程度を設定する彩度強調手段の具体的構成として、請求項8にかかる発明は、上記請求項6または請求項7のいずれかに記載の画像処理装置において、上記彩度強調手段は、画像データにおける各画素の彩度の分布を集計する彩度分布集計手段と、この彩度分布集計手段にて集計された彩度の分布状況から画像データの彩度を強調する程度を判定する彩度強調度判定手段と、判定された変換の程度に基づいて画像データにおける彩度を表す情報を修正して新たな画像データに変換する彩度データ変換手段とを具備する構成としてある。
【0025】
上記のように構成した請求項8にかかる発明においては、彩度分布集計手段が画像データにおける各画素の彩度の分布を集計すると、彩度強調度判定手段はこの彩度分布集計手段にて集計された彩度の分布状況から画像データの彩度を強調する程度を判定し、彩度データ変換手段は判定された変換の程度に基づいて画像データにおける彩度を表す情報を修正して新たな画像データに変換する。すなわち、その画像ごとに画像データの彩度の分布から最適な強調程度を判定して変換する。なお、彩度強調手段といっても必ずしも強調処理するものに限らず、逆に弱めるような処理を行うものであっても構わない。
また、より具体的な構成として、請求項9にかかる発明は、上記請求項1〜請求項7のいずれかに記載の画像処理装置において、上記コントラスト拡大手段は、当該画像データの取りうる有効な輝度範囲をy range としたときに、変換前の輝度yと輝度の分布範囲の最大値y max と最小値y min から変換先の輝度Yを次式に基づいて求める構成としてある。
Y=ay+b
ただし
a=y range /(y max −y min
b=−a・y min あるいはy range −a・y max
また、上記変換式にてY<0ならばY=0とし、Y> y range ならばY=y range とする。
さらに、請求項10にかかる発明は、請求項1〜請求項8のいずれかに記載の画像処理装置において、上記彩度強調手段は、上記画像データが複数の概略対等な色相成分の成分値で示されるときに各色相成分と輝度との差分値に所定の強調係数を乗算せしめた値を同色相成分に加算して彩度の変換を行う構成としてある。
【0026】
上述したようにして、輝度分布の拡大操作と彩度の強調操作とが抑制し合うように関連づけして処理する手法は、実体のある装置に限定される必要はなく、その方法としても機能することは容易に理解できる。このため、請求項11にかかる発明は、画像データにおける輝度分布を拡大させるコントラスト拡大処理と、画像データにおける各画素の彩度を強調する彩度強調処理とを実行するに当たり、上記コントラスト拡大処理における輝度分布の拡大程度を表すパラメータと上記彩度強調処理における彩度の強調程度を表すパラメータとの一方を仮のパラメータとし、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに、上記他方のパラメータと上記仮のパラメータとから自動的に、上記仮のパラメータをその操作を抑制させるパラメータに変換し、変換後のパラメータと上記他方のパラメータとを利用してそれぞれの処理を実施するように上記画像データを変換する構成としてある。
【0027】
すなわち、必ずしも実体のある装置に限らず、その方法としても有効であることに相違はない。
【0028】
ところで、このような画像処理装置は単独で存在する場合もあるし、ある機器に組み込まれた状態で利用されることもあるなど、発明の思想としてはこれに限らず、各種の態様を含むものである。従って、ソフトウェアであったりハードウェアであったりするなど、適宜、変更可能である。
【0029】
その一例として、入力される画像データに基づいて印刷インクに対応した画像データに変換し、所定のカラープリンタに印刷せしめるプリンタドライバにおいても、画像データにおける輝度分布を拡大させるコントラスト拡大処理と、画像データにおける各画素の彩度を強調する彩度強調処理とを実行するに当たり、輝度分布の拡大操作と彩度の強調操作とが抑制し合うように関連づけして画像データを変換し、印刷するように構成することができる。
【0030】
すなわち、プリンタドライバは印刷インクに対応して入力された画像データを変換するが、このときに画像データにおける輝度分布を拡大させるコントラスト拡大処理と画像データにおける各画素の彩度を強調する彩度強調処理とを実行するものとし、この処理の実行時に輝度分布の拡大操作と彩度の強調操作とが抑制し合うように関連づけることにより、両処理が相乗的に作用して派手にならないようにして印刷せしめる。
【0031】
発明の思想の具現化例として画像処理装置のソフトウェアとなる場合には、かかるソフトウェアを記録した記録媒体上においても当然に存在し、利用されるといわざるをえない。その一例として、請求項12にかかる発明は、画像データをコンピュータにて入力し、同画像データにおける輝度分布を拡大させるコントラスト拡大処理と、同画像データにおける各画素の彩度を強調する彩度強調処理とを実行する画像処理プログラムを記録した媒体であって、上記コントラスト拡大処理と上記彩度強調処理とを実行するに当たり、上記コントラスト拡大処理における輝度分布の拡大程度を表すパラメータと上記彩度強調処理における彩度の強調程度を表すパラメータとの一方を仮のパラメータとし、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに、上記他方のパラメータと上記仮のパラメータとから自動的に、上記仮のパラメータをその操作を抑制させるパラメータに変換し、変換後のパラメータと上記他方のパラメータとを利用してそれぞれの処理を実施するように上記画像データを変換する構成としてある。
【0032】
むろん、その記録媒体は、磁気記録媒体であってもよいし光磁気記録媒体であってもよいし、今後開発されるいかなる記録媒体においても全く同様に考えることができる。また、一次複製品、二次複製品などの複製段階については全く問う余地無く同等である
【0033】
さらに、一部がソフトウェアであって、一部がハードウェアで実現されている場合においても発明の思想において全く異なるものはなく、一部を記録媒体上に記憶しておいて必要に応じて適宜読み込まれるような形態のものとしてあってもよい。さらには、カラーファクシミリ機、カラーコピー機、カラースキャナやディジタルカメラ、ディジタルビデオなどに内蔵する画像処理装置においても適用可能であることはいうまでもない。
【0034】
【発明の効果】
以上説明したように本発明は、コントラストの拡大処理と彩度の強調処理を行なうにあたり抑制し合うように関連づけているため、相乗的に作用して派手になりすぎることを防止することが可能な画像処理装置を提供することができる。また、一方の調整後に他方を調整したとしても先の調整を活かすようにすることもできる。
【0035】
また、請求項5にかかる発明によれば、コントラストの拡大程度や彩度の強調程度を表すパラメータで関連づけを行うことにより、処理が容易となる。
【0036】
さらに、画素ごとの画像データの変換を前提とすると、変換がシンプルで関連づけも容易となる。
【0037】
さらに、請求項6にかかる発明によれば、コントラストや彩度の強調程度が画像データの分析によって決定されるため、これと合わせて強調処理の抑制を実現しやすくなる。
【0038】
さらに、請求項7にかかる発明によれば、輝度分布を求めることによってコントラストの幅というものを定量的に扱うことが可能となり、再現可能な範囲内での拡大程度を求めることができるので、コントラストの強調を自動化することができる。
【0039】
さらに、請求項8にかかる発明によれば、彩度の分布状況を集計することにより、画像の彩度指数といったものを定量化でき、各画像に応じた最適な彩度の強調を行うことができる。
【0040】
さらに、請求項11にかかる発明によれば、コントラストの拡大処理と彩度の強調処理を行なうにあたり、抑制し合うように関連づけているため、相乗的に作用して派手になりすぎることを防止するとともに、一方の調整後に他方を調整したとしても先の調整を活かすようにすることが可能な画像処理方法を提供することができ、請求項12にかかる発明によれば、同様にしてコントラストの拡大処理と彩度の強調処理とが相乗的に作用して派手になりすぎることを防止することが可能な画像処理プログラムを記録した媒体を提供することができる。
【0041】
【発明の実施の形態】
以下、図面にもとづいて本発明の実施形態を説明する。
【0042】
図1は、本発明の一実施形態にかかる画像処理システムをブロック図により示しており、図2は具体的ハードウェア構成例をブロック図により示している。
【0043】
同図において、画像入力装置10は画像を撮像するなどして画像データを画像処理装置20へ出力し、同画像処理装置20は互いに強調抑制する関連づけしながらコントラストの拡大処理と彩度の強調処理とを行って画像出力装置30に出力し、同画像出力装置30はコントラストと彩度とを適度に修正された画像を表示する。
【0044】
ここにおいて、画像入力装置10の具体例はスキャナ11やデジタルスチルカメラ12あるいはビデオカメラ14などが該当し、画像処理装置20の具体例はコンピュータ21とハードディスク22などからなるコンピュータシステムが該当し、画像出力装置30の具体例はプリンタ31やディスプレイ32等が該当する。
【0045】
本画像処理システムにおいては、画像データのコントラストと彩度とを強調しようとしているものであるから、画像入力装置10としてのスキャナ11で写真を撮像した画像データであるとか、デジタルスチルカメラ12で撮影した画像データなどで、コントラストの幅が狭いであるとか、光線のかげんなどで鮮やかさが薄れてしまっている場合などが処理の対象となり、画像処理装置20としてのコンピュータシステムに入力される。そして、この画像処理装置20が、後述するようにしてコントラストの拡大処理と、彩度の強調処理とを行い、さらにこれらの強調処理において相乗的に強調しすぎないように抑制している。むろん、本画像処理装置20は、この他にも機種毎による色の違いを補正する色変換手段であったり、機種毎に対応した解像度を変換する解像度変換手段などを構成していても構わない。
【0046】
この例では、コンピュータ21はRAMなどを使用しながら、内部のROMやハードディスク22に保存されている各画像処理のプログラムを実行していく。なお、このような画像処理のプログラムは、CD−ROM、フロッピーディスク、MOなどの各種の記録媒体を介して供給される他、モデムなどによって公衆通信回線を介して外部のネットワークに接続し、ソフトウェアやデータをダウンロードして導入することも行われている。
【0047】
この画像処理のプログラムの実行結果はコントラストを拡大するとともに彩度を強調した画像データとして得られ、得られた画像データに基づいて画像出力装置30であるプリンタ31で印刷したり、同じ画像出力装置30であるディスプレイ32に表示する。なお、この画像データは、より具体的にはRGB(緑、青、赤)の階調データとなっており、また、画像は縦方向(height)と横方向(wideth)に画素が格子状に並ぶドットマトリクスデータとして構成されている。すなわち、当該画像データは画像をドットマトリクス状の画素に分解して各画素の情報を表したものとなっている。
【0048】
本実施形態においては、画像の入出力装置の間にコンピュータシステムを組み込んで画像処理を行うようにしているが、必ずしもかかるコンピュータシステムを必要とする訳ではない。例えば、図3に示すデジタルスチルカメラ12aでは、コントラストと彩度を修正する意味での画像処理装置を組み込んでいる。すなわち、このデジタルスチルカメラ12aは光学系12a1とCCDなどからなる光電変換部12a2とを備えた撮像部を備えており、制御部12a3による制御のもとで光学画像をデジタル画像に変換して画像メモリ12a4に記録可能となっているが、ここに画像修正部12a5を備えて撮影した画像データのコントラストや彩度を互いに強調抑制しながら修正するようにしている。このような場合、画像修正部12a5はLSIなどのハードウェアで構成しても良いし、ソフトウェア処理で構成することも可能である。
【0049】
また、入力機器を特定せず、出力段階でコントラストや彩度を強調するような構成とすることも可能である。例えば、図4に示すプリンタドライバは、印刷アプリケーションが出力する画像データからプリンタにおける印刷ヘッドの走査範囲を切り出すラスタライザ21a1と、この走査範囲の各画素について色変換テーブルを参照してRGBの階調表色データをCMYの階調表色データに変換する色変換部21a2と、CMYの階調データを二値データに階調変換する階調変換部21a3とを具備している点で通常のプリンタドライバと共通している。しかしながら、ラスタライザ21a1に入力される前の段階で画像データを修正する画像正モジュール21bを備えている点で通常のプリンタドライバと異なっている。この画像正モジュール21bは、コントラストの拡大と、彩度の強調と、これらの強調処理の抑制とを行なうものであり、このように構成しておくことにより、入力される画像データが何であれ、印刷時にはコントラストと彩度が適度に強調されて印刷可能となる。
【0050】
本実施形態に戻ると、図5は、画像処理装置20としてのコンピュータ21が実行する画像処理に該当するフローチャートを示している。コントラストの拡大処理と彩度の強調処理においてパラメータを設定するため、ステップS110にて所定の集計処理を実行し、ステップS120では集計結果である輝度分布に基づいてコントラスト拡大係数を決定し、ステップS130では同じく集計結果である彩度分布に基づいて仮の彩度強調係数を決定する。そして、ステップS140ではこれらのコントラスト拡大係数と仮の彩度強調係数とから強調抑制させるための正式な彩度強調係数を決定し、最後のステップS150にて同コントラスト拡大係数と正式な彩度強調係数とに基づいて画像データを変換する。
【0051】
以下、これらについて詳述する。
【0052】
最初の集計処理について説明する前に、集計時に利用する間引き処理について説明する。後述するように、コントラストの拡大処理において必要な輝度の分布や彩度の強調処理において必要な彩度の分布は、あくまでも大まかな傾向を知る程度のものであるため、厳密な数値が結果に及ぼすわけではない。従って、全画素についての集計をとるのではなく、誤差が許容範囲内となる程度に間引いて集計を実行する。
【0053】
図6に示すように、ビットマップの画像であれば、縦方向に所定ドットと横方向に所定ドットからなる二次元のドットマトリクスとして成り立っており、統計的誤差に基づいて間引きを行う場合、サンプル数Nに対する誤差は概ね1/(N**(1/2))と表せる。ただし、**は累乗を表している。従って、1%程度の誤差で処理を行うためにはN=10000となる。
【0054】
ここにおいて、図6に示すビットマップ画面は(width)×(height)の画素数となり、サンプリング周期ratioは、
ratio=min(width,height)/A+1 …(2)
とする。なお、min(width,height)はwidthとheightのいずれか小さい方であり、Aは定数とする。また、ここでいうサンプリング周期ratioは何画素ごとにサンプリングするかを表しており、図7の○印の画素はサンプリング周期ratio=2の場合を示している。すなわち、縦方向及び横方向に二画素ごとに一画素のサンプリングであり、一画素おきにサンプリングしている。A=200としたときの1ライン中のサンプリング画素数は図8に示すようになる。
【0055】
同図から明らかなように、サンプリングしないことになるサンプリング周期ratio=1の場合を除いて、200画素以上の幅があるときには最低でもサンプル数は100画素以上となることが分かる。従って、縦方向と横方向について200画素以上の場合には(100画素)×(100画素)=(10000画素)が確保され、誤差を1%以下にできる。
【0056】
ここにおいてmin(width,height)を基準としているのは次のような理由による。例えば、図9(a)に示すビットマップ画像のように、width>>heightであるとすると、長い方のwidthでサンプリング周期ratioを決めてしまった場合には、同図(b)に示すように、縦方向には上端と下端の2ラインしか画素を抽出されないといったことが起こりかねない。
しかしながら、min(width,height)として、小さい方に基づいてサンプリング周期ratioを決めるようにすれば同図(c)に示すように少ない方の縦方向においても中間部を含むような間引きを行うことができるようになる。
【0057】
なお、この例では、縦方向と横方向の画素について正確なサンプリング周期で間引きを行うようにしている。これは、逐次入力される画素について間引きしながら処理する場合に好適である。しかし、全画素が入力されている場合には縦方向や横方向についてランダムに座標を指定して画素を選択するようにしても良い。このようにすれば、10000画素というような必要最低限の画素数が決まっている場合に10000画素となるまでランダムに抽出する処理を繰り返し、10000画素となった時点で抽出を止めればよくなる。
【0058】
このようにして間引き処理を行いつつ、輝度と彩度の分布を集計する。輝度分布を必要とするのは、コントラストの拡大処理であり、次に、このコントラストの拡大処理について説明する。
【0059】
コントラスト拡大処理の基本的な流れを図10のフローチャートに示しており、図11はコントラストの拡大処理の具体的な結果を示している。図10において、一点鎖線で囲まれた最初のステップS120の処理でコントラスト拡大係数を決定し、次のステップS140で強調抑制処理し、最後のステップS150の処理で実際にコントラストを拡大する画像変換処理を示している。また、図11に示すように、画像データ全体にわたっての輝度の分布が本来の再現可能な範囲よりも小さい場合にかかる輝度の分布範囲を拡大させる処理を行い、この意味で拡大可能な程度を求めるために画像データの輝度の分布範囲を利用する。
【0060】
間引き処理で選択した画素についての画素データがその成分要素として輝度を持っていればその輝度値を用いて分布を求めることが可能であるが、RGBの階調データでは直接の成分要素としての輝度値を持っていない。このような場合、輝度値が直接の成分値となっていない表色空間から輝度値が直接の成分値となっている表色空間への変換を行えば輝度値を得ることができるものの、フルサイズの色変換テーブルが必要となったり演算処理量が膨大となる。このような状況に鑑み、本実施形態においては、テレビジョンなどの場合に利用されているように、RGBの三原色から輝度を求める次式の変換式を採用している。すなわち、P点での輝度yp についてはRGBの成分値(Rp,Gp,Bp)から、
yp=0.30Rp+0.59Gp+0.11Bp …(3)
とする。このようにすれば、三回の乗算と二回の加算だけで輝度値を求めることができるようになる。
【0061】
ところで、再現可能な輝度の範囲を「0」〜「255」としたときに、輝度の変換では、変換前の輝度yと輝度の分布範囲の最大値ymaxと最小値yminから変換先の輝度Yを次式に基づいて求める。
【0062】
Y=ay+b …(4)
ただし
a=255/(ymax−ymin) …(5)
b=−a・yminあるいは255−a・ymax …(6)
また、上記変換式にてY<0ならばY=0とし、Y>255ならばY=255とする。ここにおける、aは傾きであり、bはオフセットといえる。この変換式によれば、あるせまい幅を持った輝度分布を再現可能な範囲まで広げることができる。
【0063】
ここで、図10に示すフローチャートに戻ると、そのステップS202で輝度分布の両端を求める。自然画における輝度分布は図11の実線に示すように概ね山形に表れる。むろん、その位置、形状についてはさまざまである。輝度分布の幅はこの両端をどこに決めるかによって決定されるが、単に裾野が延びて分布数が「0」となる点を両端とすることはできず、分布範囲において最も輝度の大きい側と小さい側からある分布割合だけ内側に寄った部分を分布の両端とする。本実施形態においては、この分布割合を0.5%に設定している。このように、ある分布割合だけ上端と下端をカットすることにより、ノイズなどに起因して生じている白点や黒点を無視することもできる。
【0064】
実際の処理では処理対象となる画素数(間引き処理において選択した画素の総数)に対する0.5%を演算し、再現可能な輝度分布における上端の輝度値及び下端の輝度値から順番に内側に向かいながらそれぞれの分布数を累積し、0.5%の値となった輝度値を求める。この上端側がymaxであり、下端側がyminとなる。
【0065】
本実施形態においては、輝度分布に対してこのような処理を経て上端と下端とを求めているが、統計的処理のもとで両端を求めることも可能である。例えば、輝度値の平均値に対して何%以下となったところを端部とするといった手法を採用することも可能である。
【0066】
ところで、輝度yの取りうる範囲は「0」〜「255」でしかあり得ないため、予め輝度yが取りうる全ての値に対応して変換後の輝度Yを求めておくのが効率的であり、ステップS204にてこの対応関係を演算してテーブルとして記憶しておく。
【0067】
このようにしてコントラストを拡大するための準備が整ったことになるが、拡大の程度は(4)式におけるパラメータaが該当し、以下においてはこのパラメータaをコントラスト拡大係数と呼ぶことにする。なお、その性質上、コントラスト拡大係数aは「1」以上の値である。
【0068】
コントラストを拡大させる画像データの変換については、この後、各画素についてステップS204にて演算したテーブルを参照して実行する。ところで、ここまでは輝度を変換するための対応関係を求めてきており、例えば、RGB座標軸における成分値(Rp,Gp,Bp )についての変換関係ではなかった。しかしながら、(4)式の変換式は、このRGBの成分値(Rp,Gp,Bp)との対応関係においても当てはめることができる。すなわち、変換前の成分値(R,G,B)に対して変換後の成分値(R’,G’,B’)は、
R’=a・R+b …(7)
G’=a・G+b …(8)
B’=a・B+b …(9)
として求めることができる。これは(4)式と(3)式とがともに線形の対応関係を示していることから明らかである。また、輝度y,Yが階調「0」〜階調「255」であるのに対応してRGBの各成分値(R,G,B ),(R’,G’,B’)も同じ範囲となっており、上述した輝度y,Yの変換テーブルをそのまま利用すればよいといえる。
【0069】
従って、ステップS206では全画素の画像データ(R,G,B)について(7)〜(9)式に対応する変換テーブルを参照し、画像データ(R’,G’,B’)に変換する。そして、ステップS208では変換画素を図12に示すように順次移動させ、ステップS210で最終画素と判断されるまで繰り返せばよい。
【0070】
なお、本実施形態においては、コントラストを拡大させる強調程度を自動的に求めるようにしているが、操作者がマニュアルでパラメータa,bを設定してしまうことも可能である。
【0071】
一方、上述した間引き処理で集計する彩度の分布を必要とするのは、彩度強調処理であり、次に、彩度強調について説明する。
【0072】
彩度強調処理の基本的な流れを図13のフローチャートに示しており、図14は彩度分布を示しており、図15は彩度分布から導き出される彩度強調係数を示している。図13においても、一点鎖線で囲まれた最初のステップS130の処理で彩度強調係数を決定し、次のステップS140で強調抑制処理し、最後のステップS150の処理で実際に彩度を強調する画像変換処理を示している。この処理では、図14に示すように、画像データ全体にわたっての彩度の分布から当該画像全体の彩度を表す彩度Aを求め、この彩度Aから彩度強調係数Sを求める。この彩度Aを求めるために画像データの彩度分布を利用する。なお、後述するように、この後の強調抑制処理においてコントラスト拡大係数aに基づいて彩度強調係数Sを弱める処理を行うため、ここでは仮の値といえる。
【0073】
彩度分布もステップS110において間引いた画素について集計している。画像データがその成分要素として彩度を持っていればその彩度の値を用いて分布を求めることが可能であるし、彩度が直接の成分要素となっていない画像データの場合でも、間接的には彩度を表す成分値を備えている。従って、彩度が直接の成分要素となっていない表色空間から彩度値が直接の成分値となっている表色空間への変換を行えば彩度値を得ることができる。例えば、標準表色系としてのLuv空間においては、L軸が輝度(明度)を表し、U軸及びV軸で色相を表している。ここにおいて、U軸及びV軸においては両軸の交点からの距離が彩度を表すため、実質的に(U**2+V**2)**(1/2)が彩度となる。しかしながら、かかる変換に要する演算処理量は膨大となってくる。
【0074】
従って、本実施形態においては、画像データとして標準的なRGBの階調データを直に利用して彩度の代替値Xを次のようにして求めている。
【0075】
X=|G+B−2×R| …(10)
本来的には彩度は、R=G=Bの場合に「0」となり、RGBの単色あるいはいずれか二色の所定割合による混合時において最大値となる。この性質から直に彩度を適切に表すのは可能であるものの、簡易な(10)式によっても赤の単色および緑と青の混合色であるシアンであれば最大値の彩度となり、各成分が均一の場合に「0」となる。また、緑や青の単色についても最大値の半分程度には達している。
【0076】
なお、RGB表色空間のように各成分がそれぞれ独立して各色の成分を表すといったいわば概略対等な色相成分の成分値で示される状況においては、
X’=|R+B−2×G| …(11)
X”=|G+R−2×B| …(12)
という式にも代替可能であるが、結果としては(10)式に従うものが最も良好であった。
【0077】
ステップS110にて間引いた画素についてRGBの画像データから(10)式に基づいて彩度の分布をとると、彩度が最低値「0」〜最大値「511」の範囲で分布し、概略的には図14に示すような分布となる。
【0078】
集計された彩度分布に基づき、ステップS302にてこの画像についての彩度強調係数というものを決定する。集計された彩度分布が図14に示すようになったものとすると、本実施形態においては、有効な画素数の範囲で分布数として上位の「16%」が占める範囲を求める。そして、この範囲内での最低の彩度「A」がこの画像の彩度を表すものとして次式に基づいて彩度強調係数Sを決定する。
【0079】
すなわち、
A<92なら
S=−A×(10/92)+50 …(13)
92≦A<184なら
S=−A×(10/46)+60 …(14)
184≦A<230なら
S=−A×(10/23)+100 …(15)
230≦Aなら
S=0 …(16)
とする。図15は、この彩度「A」と彩度強調係数Sと関係を示している。図に示すように、彩度強調係数Sは最大値「50」〜最小値「0」の範囲で彩度「A」が小さいときに大きく、同彩度「A」が大きいときに小さくなるように徐々に変化していくことになる。
【0080】
この実施形態においては、集計された彩度分布の範囲で上位のある割合が占める彩度を利用しているが、これに限らず、例えば、平均値を出したり、メジアンを求めて彩度強調係数Sを演算する根拠としても良い。ただし、彩度分布での上位のある割合をとった場合には突発的な誤差の影響が弱まるので、全体として良好な結果を得られる。
【0081】
彩度強調係数Sが求められたら、図13の後段に示すように各画素の画像データについて彩度強調の処理が行われる。この彩度強調係数Sに基づいて彩度を強調するにあたり、上述したように画像データが彩度のパラメータを備えているものであれば同パラメータを変換すればよいものの、今回はRGBの表色空間を採用している。従って、以下にはRGBの階調データをそのまま利用して彩度強調する方法について説明する。
【0082】
RGB表色空間のように各成分が概略対等な関係にある色相成分の成分値であるときには、R=G=Bであればグレイであって無彩度となる。従って、RGBの各成分における最小値となる成分については各画素の色相に影響を与えることなく単に彩度を低下させているにすぎないと考えれば、各成分における最小値を全ての成分値から減算し、その差分値を拡大することによって彩度を強調できるといえる。
【0083】
まず、上述した彩度強調係数Sから演算に有利な彩度強調パラメータSratioを、
Sratio=(S+100)/100 …(17)
として求める。この場合、彩度強調係数S=0のときに彩度強調パラメータSratio=1となって彩度強調されない。次に、RGB階調データの各成分(R,G,B)における青(B)の成分値が最小値であったとすると、この彩度強調パラメータSratioを使用して次のように変換する。
【0084】
R’=B+(R−B)×Sratio …(18)
G’=B+(G−B)×Sratio …(19)
B’=B …(20)
このようにすれば、少なくともRGB表色空間とLuv空間との間での色変換が不要となるが、この場合には彩度を単独で強調するにしても輝度も合わせて増加してしまい、全体的に明るくなるという傾向がある。従って、各成分値から輝度の相当値を減算した差分値を対象として変換を行うことにする。
【0085】
輝度については、上述したようなRGBから直に求める変換式を利用する。
【0086】
一方、彩度強調は、
R’=R+△R …(21)
G’=G+△G …(22)
B’=B+△B …(23)
とする。この加減値△R,△G,△Bは輝度との差分値に基づいて次式のように求める。すなわち、
△R=(R−Y)×Sratio …(24)
△G=(G−Y)×Sratio …(25)
△B=(B−Y)×Sratio …(26)
となり、この結果、
R’=R+(R−Y)×Sratio …(27)
G’=G+(G−Y)×Sratio …(28)
B’=B+(B−Y)×Sratio …(29)
として変換可能となる。なお、輝度の保存は次式から明らかである。
【0087】
Y’=Y+△Y …(30)
△Y=0.30△R+0.59△G+0.11△B
=Sratio {(0.30R+0.59G+0.11B)−Y}
=0 …(31)
また、入力がグレー(R=G=B)のときには、輝度Y=R=G=Bとなるので、加減値△R=△G=△B=0となり、無彩色に色が付くこともない。なお、ステップS304にて画像データを変換したら、ステップS306では図12にて示したのと同様に変換画素を移動させ、ステップS308にて最終画素と判断されるまで繰り返せばよい。
【0088】
なお、本実施形態においては、彩度を強調する強調程度をこのようにして自動的に求めるようにしているが、操作者がマニュアルで成分値を一律に増減するような場合にはかかる増減値が彩度強調のパラメータとなる。
【0089】
以上説明した各処理の前段部分でコントラスト拡大係数aと彩度強調係数Sとが求められたら、中段部分に対応するステップS140にて強調抑制処理を実行し、正式な彩度強調係数S’を求める。彩度強調処理において(27)式〜(29)式を利用すれば輝度が保存され、彩度を強調しても全体的に明るくなることはない。しかしながら、彩度だけをこのようにして強調する場合には問題ないもの、コントラストを拡大させる処理と彩度強調処理とが同時に実行される場合においては、相乗的に作用してしまい、画像が派手になってしまう。これを避けるために強調処理にて互いに抑制し合う関連づけが必要となる。この関連づけは次式に基づいて行っている。
【0090】
S’=S×(1/a) …(32)
上述したようにコントラスト拡大係数aは「1」以上であり、拡大傾向が強くなれば(1/a)は「1」未満となるので、正式な彩度強調係数S’は上述したようにして求めた仮の彩度強調係数Sよりも小さくなる。すなわち、コントラスト拡大処理で利用するパラメータにより彩度強調処理で利用するパラメータを小さくし、強調処理を抑制させている。
【0091】
本実施形態においては、図16に示すように、コントラスト拡大係数aにて彩度強調係数Sを弱めるような関連づけを行っており、この意味で強調処理抑制フィルタを備えているといえる。しかしながら、図17に示すように、彩度強調係数Sにてコントラスト拡大係数aを弱めるような関連づけも可能であるし、図18に示すように、相互に弱め合うような関連づけを行うようにしても良い。また、一義的なフィルタではなく、図19(A)(B)に示すように、具体的なコントラスト拡大係数aと彩度強調係数Sの値に応じて参照する変換テーブルを用意しておいても良い。このような変換テーブルを用意すれば、より細かな設定とすることができる。
【0092】
一方、相互に弱め合う必要がない場合もある。例えば、コントラスト拡大係数aや彩度強調係数Sが小さい場合においては個別に作用して相乗的な悪影響がない場合もある。従って、図20に示すように非干渉領域を用意しておき、互いにあるしきい値になった場合に弱める影響を受けるようにしても良い。また、同様に、あるしきい値以上になった場合にのみ相手側を弱めるように作用するようにすることも可能である。
【0093】
このようにして、(32)式の演算式を利用したり、あるいは変換テーブルを利用して強調処理を抑制したら、最後にステップS150にて上記強調処理係数を利用して画像データを変換する。すなわち、上述した各処理の後段部分に対応して、注目画素の画像データについて一画素ずつデータの変換を行う。
【0094】
コントラスト拡大処理については、上述したとおり、注目画素についての変換前の成分値(R,G,B)に対して変換後の成分値(R’,G’,B’)を(7)〜(9)式に基づいて変換する。
【0095】
一方、彩度強調処理については、新たに得られた彩度強調係数S’に基づいて(17)式より彩度強調パラメータS’ratio を求め、コントラストの拡大処理を経た成分値(R’,G’,B’)を対象として(27)〜(29)式に基づいて変換し、最終的な成分値(R”,G”,B”)の画像データを得る。
【0096】
次に、上記構成からなる本実施形態の動作を順を追って説明する。
【0097】
スキャナ11などで写真を撮像したとすると、同写真をRGBの階調データで表した画像データがコンピュータ21に取り込まれ、CPUは図5に示す画像処理のプログラムを実行し、その画像データにとって最良のコントラストと鮮やかさとなるようにコントラスト拡大処理と彩度強調処理を実行する。
【0098】
まず、ステップS110にて許容誤差の範囲内となるように間引き処理で画素を選択し、同画素について(3)式より輝度を求めるとともに(10)式より彩度を求める。そして、これらの輝度と彩度について分布を集計する。
【0099】
次のステップS120では輝度の分布から分布範囲である最大値ymaxと最小値yminを決定し、(5),(6)式よりパラメータa,bを求めるとともに、(4)式に基づいてあらかじめ全ての階調についての変換関係を演算した変換テーブルを作成しておく。
【0100】
一方、ステップS130では彩度の分布から当該画像の彩度を表す彩度Aを求め、同彩度Aと(13)式〜(16)式の関係から仮の彩度強調係数Sを求める。
【0101】
この彩度強調係数Sは仮の値であるので、次のステップS140ではコントラスト拡大係数aを用いて(32)式から正式の彩度強調係数S’へと変換する。
この処理により、強調処理を抑制することができるようになる。なお、この時点で彩度強調係数S’から、彩度強調パラメータS’ratioを求めておく。
【0102】
この後、ステップS150では、図12に示すように注目画素を順次移動させながら具体的な画像データの変換を行う。
【0103】
すなわち、成分値(R,G,B)より、
R’=a・R+b …(7)
G’=a・G+b …(8)
B’=a・B+b …(9)
なる演算式を経て成分値(R’,G’,B’)を求め、上述した彩度強調パラメータS’ratio を使用して、この成分値(R’,G’,B’)から
R”=R+(R’−Y)×S’ratio …(27)’
G”=G+(G’−Y)×S’ratio …(28)’
B”=B+(B’−Y)×S’ratio …(29)’
なる演算式を経て最終的な成分値(R”,G”,B”)を得る。
【0104】
そして、このようにして得られた画像データはコントラストが拡大されるとともに彩度強調されながら、互いに相乗的に作用されることなく最良の画像となる。
【0105】
このように、ステップS110の間引き集計にて集計される輝度分布と彩度分布に基づいて、ステップS120ではコントラスト拡大係数aを決定するとともに、ステップS130では彩度強調係数Sを決定するが、ステップS140ではコントラスト拡大係数aに基づいて当該コントラスト拡大係数aが大きくなれば彩度強調係数Sを小さくなるような関連づけを行うことにより、新たな彩度強調係数S’を求め、ステップS150にて同彩度強調係数S’と上記コントラスト拡大係数aを利用して画像データを変換するようにしているため、それぞれで設定した場合における相乗的な強調処理によって画像データが派手になってしまうことを防止でき、最良の画像データを容易に得ることができるようになる。
【0106】
なお、ビデオカメラ14の入力画像については、演算速度が間に合わないこともあり得る。従って、そのような場合には撮影のシーンごとに輝度と彩度の検出を行っておき、そのシーンにおいては同様の傾向であるものと想定してコントラストの拡大程度と彩度の強調程度を決定しておき、フレームごとに同強調程度に基づいて輝度分布を拡大するとともに彩度強調すればよい。むろん、十分な演算速度があれば各フレームごとに変換するようにしても良いし、また、同様の変換は受像機の側で行うことも可能である。
【図面の簡単な説明】
【図1】 本発明の一実施形態にかかる画像処理装置が適用される画像処理システムのブロック図である。
【図2】 同画像処理装置の具体的ハードウェア構成例を示すブロック図である。
【図3】 本発明の画像処理装置の他の適用例を示すデジタルスチルカメラのブロック図である。
【図4】 本発明の画像処理装置の他の適用例を示すプリンタドライバの構成図である。
【図5】 本発明における画像処理を示すフローチャートである。
【図6】 変換元の画像を示す図である。
【図7】 サンプリング周期を示す図である。
【図8】 サンプリング画素数を示す図である。
【図9】 変換元の画像とサンプリングされる画素の関係を示す図である。
【図10】 コントラスト拡大処理の概要を示すフローチャートである。
【図11】 集計された輝度分布と拡大される輝度分布を示す図である。
【図12】 注目画素の移動方向を示す図である。
【図13】 彩度強調処理の概要を示すフローチャートである。
【図14】 彩度分布の集計状態の概略図である。
【図15】 彩度Aと彩度強調指数Sとの関係を示す図である。
【図16】 本実施形態における強調抑制処理が適用される概念を示す図である。
【図17】 変形例にかかる強調抑制処理が適用される概念を示す図である。
【図18】 他の変形例にかかる強調抑制処理が適用される概念を示す図である。
【図19】 他の変形例にて変換テーブルを利用して強調抑制処理が適用される概念を示す図である。
【図20】 非干渉領域を設定して強調抑制処理が適用される概念を示す図である。
【符号の説明】
10…画像入力装置
11…スキャナ
12…デジタルスチルカメラ
12a…デジタルスチルカメラ
12a1…光学系
12a2…光電変換部
12a3…制御部
12a4…画像メモリ
12a5…画像修正部
14…ビデオカメラ
20…画像処理装置
21…コンピュータ
21a1…ラスタライザ
21a2…色変換部
21a3…階調変換部
21b…画像正モジュール
22…ハードディスク
30…画像出力装置
31…プリンタ
32…ディスプレイ
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to an image processing apparatus, an image processing method, and a medium on which an image processing program is recorded, and more particularly, to an image processing apparatus, an image processing method, and a medium on which an image processing program is recorded that enhances contrast and saturation of image data.
[0002]
[Prior art]
  When a photograph is read with a scanner or the like and converted into electronic image data, it may be desirable to emphasize the contrast and vividness of the image. Conventionally, photo retouching software or the like is known as means for converting this type of image data.
[0003]
  As a method for enlarging the contrast of image data, one disclosed in Japanese Patent Publication No. 7-66318 is known, and the relationship between the luminance y ′ after conversion and the luminance y ′ after conversion is expressed by equation (1). Thus, the brightness of the image data is converted based on the parameter a or the parameter b selected by the operator. As a result, an image in which the contrast is enhanced for image data having a low contrast is obtained.
[0004]
  y ′ = ay + b (1)
  On the other hand, for enhancing so-called saturation in order to enhance vividness, for example, color components of image data are represented by gradation data of red (= R), green (= G), and blue (= B). It is known to increase the value of the desired color component when it is present.
[0005]
  That is, when the gradation data is in the range of “0 to 255”, in order to make the red color more vivid, “20” is uniformly added to the red gradation data, or the blue color is more vivid. For this purpose, “20” is uniformly added to the blue gradation data.
[0006]
[Problems to be solved by the invention]
  By the way, there is a tendency to increase the value of image data in both the process of enlarging the contrast and the process of enhancing the saturation. Therefore, it is not preferable to enhance the saturation after enhancing the contrast, resulting in a flashy image.
[0007]
  However, in the above-described conventional image processing apparatus, there is a problem that if one is adjusted to an appropriate state and then the other is adjusted, the result of the previous adjustment is out of order.
[0008]
  SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus, an image processing method, and a medium on which an image processing program is recorded, which can easily obtain a desired image.
[0009]
[Means for Solving the Problems]
  In order to achieve the above object, the invention according to claim 1 comprises a contrast enlarging means for enlarging a luminance distribution in image data, a saturation emphasizing means for enhancing the saturation of each pixel in the image data, and the contrast enlarging means. One of the parameter representing the degree of expansion of the luminance distribution and the parameter representing the degree of saturation enhancement in the saturation enhancement means is a temporary parameter, and the temporary parameter is automatically calculated from the other parameter and the temporary parameter. Enhancement processing suppression means for converting the parameter into a parameter that suppresses the operation, and the contrast enlarging means and the saturation enhancement means use the converted parameter and the other parameter, respectively. The image data is converted so as to perform processing.
[0010]
  In the invention according to claim 1 configured as described above, the contrast enlarging means expands the luminance distribution in the image data, while the saturation emphasizing means emphasizes the saturation of each pixel in the image data. Emphasis processing suppression means by the brightness distribution expansion operation and saturation enhancement operationEach other or oneTry to suppress each other.
[0011]
  Therefore, if the contrast is enlarged by the contrast enlargement means and the saturation is emphasized by the saturation enhancement means, the enhancement processing suppression means isBoth or oneSuppresses the highlighting operation and prevents it from becoming synergistic.
[0012]
  Emphasis processing suppression means is about the brightness distribution expansion operation and saturation enhancement operation.Anything that relates the other in a suppressive manner may be used.Here, the process of enlarging the luminance distribution varies, and the same applies to the saturation enhancement process. Accordingly, the specific method may be appropriately changed according to the contrast enlarging means and the saturation emphasizing means. Also,In repressively relating the other,It does not necessarily suppress each other, but the suppression process may be performed from one to the other, but the reverse process may not be performed. In this way, it is possible to select a case where synergistic emphasis is prevented and a case where such emphasis is approved.
  In this sense, according to a second aspect of the present invention, in the image processing apparatus according to the first aspect, the enhancement processing suppression unit is configured to perform saturation when attempting to perform the luminance distribution expansion operation and the saturation enhancement operation. The invention according to claim 3 is the image processing apparatus according to claim 1, wherein the enhancement processing suppression unit performs a luminance distribution expansion operation and a saturation enhancement operation. According to the invention according to claim 4, in the image processing apparatus according to claim 1, the enhancement processing suppression unit is configured to suppress the luminance distribution expansion operation. In this configuration, the enlargement operation and the saturation enhancement operation are mutually suppressed.
[0013]
  Of course, as a result, the luminance distribution expansion operation and saturation enhancement operationIt only needs to be able to relate the other in a suppressive way,For example, when it is necessary to suppress the enlargement operation in the contrast enlargement means, a further conversion process that denies the enlargement result for the enlarged image data is performed instead of suppressing the enlargement operation of the contrast enlargement means itself. Alternatively, it may be applied, or it may be different from the increase in contrast, but the same result may be obtained by darkening the image as a whole. This also applies to the saturation enhancement operation.
[0014]
  on the other hand,More to suppressively relate the otherClaims for specific methods5The present invention relates to the above-mentioned claim.1 to 4In the image processing device according to any one of the above, the enhancement processing suppression unit includes one of a parameter that represents the degree of expansion of the luminance distribution in the contrast enlarging unit and a parameter that represents the degree of saturation enhancement in the saturation enhancement unit. When the value of becomes larger, the other becomes smaller.
[0015]
  Configured as aboveClaim 5In the invention according to the invention, the contrast enlarging means converts the image data using a parameter representing the degree of expansion of the luminance distribution, and the saturation emphasizing means also uses the parameter representing the degree of enhancement of the saturation to convert the image data. As a result, the enhancement processing suppression means associates so that when one is large, the other is small, and as a result, the luminance distribution expansion operation and the saturation enhancement operation are performed. And act to suppress each other.
[0016]
  Various methods can be used to associate the parameters of the two. For example, if one parameter is multiplied by a coefficient having the other parameter as the denominator, the same parameter becomes smaller as the other parameter becomes larger.
In this case, the other parameter is not affected by the same parameter, but can be easily realized by another method if it is desired to influence each other. Of course, a conversion table referred to by mutual parameters may be prepared, and conversion values that suppress each other may be read out.
[0017]
  There are various methods of image data conversion performed by the contrast enlarging means and the saturation emphasizing means.,The contrast enlarging means and the saturation emphasizing means are configured to perform a conversion operation on image data for each pixel.Also good.
[0018]
  If image data conversion for contrast enhancement or image data conversion for saturation enhancement is not performed for each pixel, the causal relationship between this enlargement processing and saturation enhancement processing becomes complicated. Depending on the situation, complicated processing may be required to suppress both of them, and a separate work area may be required. However, if the conversion operation is performed on the image data for each pixel, the influence of the process such as increase / decrease of the image data on the contrast and saturation becomes simple, and the process of suppressing each other becomes simple.
[0019]
  When the contrast enlargement means and the saturation enhancement means convert the image data,Claim 6The invention according to claim 1 to claim 1 above.Claim 5In the image processing apparatus according to any one of the above, one or both of the contrast enlarging unit and the saturation emphasizing unit analyze image data and set the degree of enhancement.
[0020]
  That is, the contrast enlarging means and the saturation emphasizing means automatically set the degree of emphasis, and the emphasis processing suppression means performs the above-described suppression operation in this automation process. Accordingly, when the contrast enlarging means sets the degree of enhancement, if the degree of enhancement is reduced or the processing is changed by referring to parameters in the saturation enhancement means, such processing is the enhancement processing suppression means. Will be composed. Of course, when the saturation enhancement means sets the degree of enhancement, this processing constitutes the enhancement processing suppression means when the degree of enhancement is reduced or the process is changed with reference to parameters in the contrast enlargement means. Will do.
[0021]
  As a specific configuration of the contrast enlargement means for analyzing the image data and setting the enlargement degree,Claim 7The invention according to the aboveClaim 6In the image processing apparatus according to claim 1, the contrast enlarging unit includes a luminance distribution detecting unit that detects a luminance distribution of image data in units of pixels, and the same luminance within a reproducible range based on the detected luminance distribution. Contrast data conversion means for determining the degree to which the distribution can be expanded and converting the image data is provided.
[0022]
  In order to obtain the luminance distribution in handling the image data, the luminance distribution detecting means detects the luminance distribution of the image data in units of pixels. Then, using the detected luminance distribution, the contrast data converting means determines the amount of expansion of the luminance distribution within a reproducible range, and converts the image data.
[0023]
  That is, the so-called contrast width from the brightest brightness to the darkest brightness can be determined by obtaining the brightness distribution of the image data in pixel units, and the contrast magnification can be determined by comparing with the reproducible brightness width range. Therefore, after that, it is sufficient to enlarge the luminance distribution so that the enlargement ratio is obtained. For example, after the luminance distribution as a whole is aggregated based on the luminance at each pixel, the luminance distribution is the same when the aggregated luminance distribution is not widely dispersed in the effective luminance range that the image data can take. The luminance information of each pixel in the image data is converted so as to be widely distributed in the luminance range.
[0024]
  In addition, as a specific configuration of the saturation enhancement means for analyzing the image data and setting the enhancement degree,Claim 8The invention according to the aboveClaim 6OrClaim 7In the image processing apparatus according to any one of the above, the saturation enhancement means includes a saturation distribution counting means for counting the saturation distribution of each pixel in the image data, and the saturation calculated by the saturation distribution counting means. Saturation enhancement degree determination means for determining the degree of enhancement of the saturation of the image data from the distribution state of the degree, and new image data by correcting the information representing the saturation in the image data based on the determined degree of conversion Saturation data conversion means for converting to the above.
[0025]
  Configured as aboveClaim 8In the invention according to this aspect, when the saturation distribution totalizing unit totals the saturation distribution of each pixel in the image data, the saturation enhancement determination unit determines from the saturation distribution state totaled by the saturation distribution totaling unit. The degree of enhancement of the saturation of the image data is determined, and the saturation data conversion means corrects information representing the saturation in the image data based on the determined degree of conversion and converts the information to new image data. That is, for each image, the optimum enhancement degree is determined from the saturation distribution of the image data and converted. Note that the saturation enhancement means is not necessarily limited to the enhancement process, and may be a process that weakens the image.
  As a more specific configuration, the invention according to claim 9 is the image processing apparatus according to any one of claims 1 to 7, wherein the contrast enlarging means is an effective value that the image data can take. The luminance range is y range The luminance y before conversion and the maximum value y of the luminance distribution range max And the minimum value y min Therefore, the luminance Y of the conversion destination is obtained based on the following equation.
  Y = ay + b
However,
  a = y range / (Y max -Y min )
  b = −a · y min Or y range -A ・ y max
If Y <0 in the above conversion formula, then Y = 0 and Y> y range Then Y = y range And
  Furthermore, the invention according to claim 10 is the image processing apparatus according to any one of claims 1 to 8, wherein the saturation emphasizing unit is configured such that the image data includes component values of a plurality of substantially equal hue components. In this case, a saturation conversion is performed by adding a value obtained by multiplying a difference value between each hue component and luminance by a predetermined enhancement coefficient to the same hue component.
[0026]
  As described above, the method of processing in association with the luminance distribution expansion operation and the saturation enhancement operation so as to suppress each other is not necessarily limited to a substantial device, and also functions as the method. That is easy to understand. For this reason, the invention according to claim 11 includes a contrast enlargement process for enlarging the luminance distribution in the image data and a saturation enhancement process for enhancing the saturation of each pixel in the image data. When one of the parameter that represents the degree of expansion of the luminance distribution and the parameter that represents the degree of saturation enhancement in the above saturation enhancement processing is a temporary parameter, and an attempt is made to perform an operation of expanding the luminance distribution and an operation of enhancing the saturation. In addition, the temporary parameter is automatically converted from the other parameter and the temporary parameter into a parameter that suppresses the operation, and each process is performed using the converted parameter and the other parameter. As described above, the image data is converted.
[0027]
  That is, it is not necessarily limited to a substantial apparatus, and there is no difference that the method is also effective.
[0028]
  By the way, such an image processing apparatus may exist alone, or may be used in a state of being incorporated in a certain device. The idea of the invention is not limited to this, and includes various aspects. . Therefore, it can be changed as appropriate, such as software or hardware.
[0029]
  As an example, even in a printer driver that converts image data corresponding to printing ink based on input image data and prints it on a predetermined color printer, contrast enlargement processing for expanding the luminance distribution in the image data, and image data When executing the saturation enhancement processing for enhancing the saturation of each pixel in the image, the image data is converted and printed so that the expansion operation of the luminance distribution and the enhancement operation of the saturation are associated with each other so as to suppress each other. Can be configured.
[0030]
  That is, the printer driver converts the image data input corresponding to the printing ink, and at this time, contrast enhancement processing for expanding the luminance distribution in the image data and saturation enhancement for enhancing the saturation of each pixel in the image data. Processing, and when this processing is executed, the brightness distribution expansion operation and the saturation enhancement operation are performed.TogaBy associating them so as to suppress each other, the two processes act synergistically so that they do not become flashy and are printed.
[0031]
  In the case of software for an image processing apparatus as an embodiment of the idea of the invention, it naturally exists on a recording medium on which such software is recorded and must be used. As an example of the invention, the invention according to claim 12 includes a contrast enlargement process for inputting image data by a computer and expanding a luminance distribution in the image data, and a saturation enhancement for enhancing the saturation of each pixel in the image data. A medium on which an image processing program for executing the processing is recorded, and when executing the contrast enlargement process and the saturation enhancement process, a parameter representing a degree of expansion of the luminance distribution in the contrast enlargement process and the saturation enhancement One of the parameters representing the degree of saturation enhancement in the processing is set as a temporary parameter, and when trying to perform the luminance distribution expansion operation and the saturation enhancement operation, the other parameter and the temporary parameter are used. The temporary parameter is automatically converted to a parameter that suppresses the operation, and To implement the respective processing using the other parameters is a configuration for converting the image data.
[0032]
  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 stage of the primary duplication product, secondary duplication product, etc. is the same without any question..
[0033]
  Further, even when a part is software and a part is realized by hardware, there is nothing completely different in the idea of the invention, and a part is stored on a recording medium, and it is appropriately changed as necessary. It may be in the form of being read. Furthermore, it goes without saying that the present invention can also be applied to an image processing apparatus built in a color facsimile machine, a color copier, a color scanner, a digital camera, a digital video, or the like.
[0034]
【The invention's effect】
  As described above, the present invention performs the contrast enlargement process and the saturation enhancement process.,Since they are associated so as to suppress each other, it is possible to provide an image processing apparatus that can act synergistically to prevent being too flashy. Moreover, even if the other is adjusted after one adjustment, the previous adjustment can be utilized.
[0035]
  Also,Claim 5According to the invention, processing is facilitated by associating with parameters representing the degree of contrast enhancement and the degree of saturation enhancement.
[0036]
  further,Assuming conversion of image data for each pixel,Conversion is simple and association is easy.
[0037]
  further,Claim 6According to the invention, since the degree of enhancement of contrast and saturation is determined by analysis of image data, it is easy to realize enhancement processing in combination with this.
[0038]
  further,Claim 7According to the invention, the contrast distribution can be quantitatively handled by obtaining the luminance distribution, and the degree of enlargement within the reproducible range can be obtained, so that contrast enhancement is automated. be able to.
[0039]
  further,Claim 8According to the invention, it is possible to quantify the saturation index of an image by summing up the distribution of saturations, and to perform optimum saturation enhancement according to each image.
[0040]
  further,Claim 11According to the invention, the contrast enlargement process and the saturation enhancement process are performed.DepressImage processing that can synchronize and prevent being overly flashy, and can make use of the previous adjustment even if the other is adjusted after one adjustment. Can provide a way,Claim 12According to the invention, a medium on which an image processing program capable of preventing the contrast enlargement process and the saturation enhancement process from acting too synergistically to be too flashy is provided. be able to.
[0041]
DETAILED DESCRIPTION OF THE INVENTION
  Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0042]
  FIG. 1 is a block diagram illustrating an image processing system according to an embodiment of the present invention, and FIG. 2 is a block diagram illustrating a specific hardware configuration example.
[0043]
  In the figure, an image input apparatus 10 captures an image and outputs image data to the image processing apparatus 20, and the image processing apparatus 20 performs contrast enlargement processing and saturation enhancement processing while correlating and suppressing each other. Are output to the image output device 30, and the image output device 30 displays an image in which contrast and saturation are appropriately corrected.
[0044]
  Here, a specific example of the image input device 10 corresponds to the scanner 11, the digital still camera 12, or the video camera 14, and a specific example of the image processing device 20 corresponds to a computer system including the computer 21 and the hard disk 22. Specific examples of the output device 30 include a printer 31, a display 32, and the like.
[0045]
  In the present image processing system, the contrast and saturation of the image data are to be enhanced. Therefore, the image processing system captures a photograph with a scanner 11 as the image input apparatus 10 or a digital still camera 12. In the case of the processed image data or the like, the case where the contrast width is narrow or the vividness has faded due to the flare of the light beam or the like becomes the object of processing and is input to the computer system as the image processing apparatus 20. The image processing apparatus 20 performs a contrast enlargement process and a saturation enhancement process as will be described later, and further suppresses the enhancement so as not to synergize too much. Of course, the image processing apparatus 20 may also be a color conversion unit that corrects a color difference for each model, or a resolution conversion unit that converts a resolution corresponding to each model. .
[0046]
  In this example, the computer 21 executes each image processing program stored in the internal ROM or the hard disk 22 while using a RAM or the like. Such an image processing program is supplied via various recording media such as a CD-ROM, floppy disk, and MO, and connected to an external network via a public communication line by a modem or the like. And downloading and installing data.
[0047]
  The execution result of this image processing program is obtained as image data with increased contrast and enhanced saturation, and is printed by the printer 31 that is the image output device 30 based on the obtained image data, or the same image output device. 30 is displayed on the display 32. More specifically, the image data is RGB (green, blue, red) gradation data, and the image has a grid of pixels in the vertical direction (height) and the horizontal direction (width). It is configured as lined dot matrix data. That is, the image data represents information of each pixel by decomposing the image into pixels in a dot matrix.
[0048]
  In this embodiment, a computer system is incorporated between image input / output devices to perform image processing. However, such a computer system is not necessarily required. For example, the digital still camera 12a shown in FIG. 3 incorporates an image processing device in the sense of correcting contrast and saturation. That is, the digital still camera 12a includes an image pickup unit including an optical system 12a1 and a photoelectric conversion unit 12a2 including a CCD. The digital still camera 12a converts an optical image into a digital image under the control of the control unit 12a3. Although it can be recorded in the memory 12a4, the image correction unit 12a5 is provided here to correct the contrast and saturation of the captured image data while suppressing emphasis on each other. In such a case, the image correction unit 12a5 may be configured by hardware such as an LSI or may be configured by software processing.
[0049]
  It is also possible to adopt a configuration in which contrast and saturation are emphasized at the output stage without specifying an input device. For example, the printer driver shown in FIG. 4 has a rasterizer 21a1 that cuts out the scanning range of the print head in the printer from the image data output by the printing application, and an RGB gradation table with reference to the color conversion table for each pixel in the scanning range. Ordinary printer driver in that it includes a color conversion unit 21a2 that converts color data into CMY gradation color data and a gradation conversion unit 21a3 that converts CMY gradation data into binary data. And in common. However, it differs from a normal printer driver in that it includes an image correct module 21b that corrects image data before it is input to the rasterizer 21a1. The image correct module 21b performs contrast enlargement, saturation enhancement, and suppression of these enhancement processes. By configuring in this way, whatever image data is input, At the time of printing, the contrast and saturation are moderately emphasized, and printing becomes possible.
[0050]
  Returning to the present embodiment, FIG. 5 shows a flowchart corresponding to image processing executed by the computer 21 as the image processing apparatus 20. In order to set parameters in the contrast enlarging process and the saturation emphasizing process, a predetermined aggregation process is executed in step S110, and in step S120, a contrast expansion coefficient is determined based on the luminance distribution as the aggregation result, and step S130. Then, a temporary saturation emphasis coefficient is determined based on the saturation distribution that is the total result. In step S140, a formal saturation enhancement coefficient for suppressing the enhancement is determined from the contrast expansion coefficient and the temporary saturation enhancement coefficient. In the last step S150, the same contrast enhancement coefficient and the formal saturation enhancement are determined. The image data is converted based on the coefficients.
[0051]
  These will be described in detail below.
[0052]
  Before explaining the first aggregation process, the thinning process used at the time of aggregation will be described. As will be described later, the luminance distribution necessary for the contrast enlargement processing and the saturation distribution necessary for the saturation enhancement processing are only to know a rough tendency, so an exact numerical value affects the result. Do not mean. Therefore, the totalization is not performed for all the pixels, but the totalization is performed by thinning out the error so as to be within the allowable range.
[0053]
  As shown in FIG. 6, in the case of a bitmap image, it is formed as a two-dimensional dot matrix consisting of predetermined dots in the vertical direction and predetermined dots in the horizontal direction. When thinning out based on statistical errors, The error with respect to the number N can be generally expressed as 1 / (N ** (1/2)). However, ** represents a power. Therefore, in order to perform processing with an error of about 1%, N = 10000.
[0054]
  Here, the bitmap screen shown in FIG. 6 has the number of pixels of (width) × (height), and the sampling period ratio is
  ratio = min (width, height) / A + 1 (2)
And Note that min (width, height) is the smaller of width and height, and A is a constant. Further, the sampling period ratio here indicates how many pixels are sampled, and the pixels marked with ◯ in FIG. 7 indicate the case where the sampling period ratio = 2. That is, one pixel is sampled every two pixels in the vertical and horizontal directions, and every other pixel is sampled. The number of sampling pixels in one line when A = 200 is as shown in FIG.
[0055]
  As can be seen from the figure, except for the case where the sampling period ratio = 1 in which sampling is not performed, when there is a width of 200 pixels or more, the number of samples is at least 100 pixels. Therefore, in the case of 200 pixels or more in the vertical direction and the horizontal direction, (100 pixels) × (100 pixels) = (10000 pixels) is secured, and the error can be reduced to 1% or less.
[0056]
  Here, the reason for using min (width, height) as a reference is as follows. For example, as shown in FIG. 9A, when width >> height is determined with the longer width as shown in FIG. 9A, the sampling period ratio is determined as shown in FIG. 9B. In addition, in the vertical direction, only two lines of the upper end and the lower end may be extracted.
However, if the sampling period ratio is determined based on the smaller one as min (width, height), thinning is performed so as to include the intermediate portion in the smaller vertical direction as shown in FIG. Will be able to.
[0057]
  In this example, thinning is performed with an accurate sampling period for pixels in the vertical and horizontal directions. This is suitable for processing while thinning out pixels that are sequentially input. However, when all the pixels have been input, the pixels may be selected by randomly specifying coordinates in the vertical direction or the horizontal direction. In this way, when the necessary minimum number of pixels, such as 10,000 pixels, is determined, the extraction process is repeated at random until the number of pixels reaches 10,000, and the extraction is stopped when the number of pixels reaches 10,000.
[0058]
  The luminance and saturation distributions are totaled while performing the thinning process in this way. The brightness distribution is required for the contrast enlargement process. Next, the contrast enlargement process will be described.
[0059]
  A basic flow of the contrast enlargement process is shown in the flowchart of FIG. 10, and FIG. 11 shows a specific result of the contrast enlargement process. In FIG. 10, an image conversion process is performed in which the contrast expansion coefficient is determined in the process of the first step S120 surrounded by the one-dot chain line, the enhancement suppression process is performed in the next step S140, and the contrast is actually expanded in the process of the last step S150. Is shown. Further, as shown in FIG. 11, when the luminance distribution over the entire image data is smaller than the original reproducible range, a process of expanding the luminance distribution range is performed, and the extent that can be expanded in this sense is obtained. Therefore, the luminance distribution range of the image data is used.
[0060]
  If the pixel data for the pixel selected in the thinning process has luminance as its component element, the distribution can be obtained using the luminance value, but the luminance as a direct component element can be obtained with RGB gradation data I don't have a value. In such a case, the luminance value can be obtained by performing conversion from the color space where the luminance value is not a direct component value to the color space where the luminance value is a direct component value. A size color conversion table is required and the amount of calculation processing is enormous. In view of such a situation, in the present embodiment, as used in the case of a television or the like, the following conversion formula for obtaining luminance from the three primary colors of RGB is adopted. That is, for the luminance yp at the point P, from the RGB component values (Rp, Gp, Bp),
  yp = 0.30Rp + 0.59Gp + 0.11Bp (3)
And In this way, the luminance value can be obtained by only three multiplications and two additions.
[0061]
  By the way, when the reproducible luminance range is “0” to “255”, in the luminance conversion, the luminance y before conversion from the luminance y before conversion, the maximum value ymax and the minimum value ymin of the luminance distribution range. Is obtained based on the following equation.
[0062]
  Y = ay + b (4)
However,
  a = 255 / (ymax−ymin) (5)
  b = −a · ymin or 255−a · ymax (6)
In the above conversion equation, if Y <0, Y = 0, and if Y> 255, Y = 255. Here, a is an inclination and b can be said to be an offset. According to this conversion formula, a luminance distribution having a narrow width can be expanded to a reproducible range.
[0063]
  Here, returning to the flowchart shown in FIG. 10, both ends of the luminance distribution are obtained in step S202. The luminance distribution in the natural image appears approximately in a mountain shape as shown by the solid line in FIG. Of course, there are various positions and shapes. The width of the luminance distribution is determined by where the two ends are determined. However, the point where the base extends and the number of distributions is “0” cannot be the both ends, and the smallest luminance side is the smallest in the distribution range. The part that is closer to the inside by a certain distribution ratio from the side is defined as both ends of the distribution. In the present embodiment, this distribution ratio is set to 0.5%. In this way, by cutting the upper end and the lower end by a certain distribution ratio, it is possible to ignore white spots and black spots caused by noise or the like.
[0064]
  In actual processing, 0.5% of the number of pixels to be processed (the total number of pixels selected in the thinning-out processing) is calculated, and inward from the luminance value at the upper end and the luminance value at the lower end in the reproducible luminance distribution. Then, the number of distributions is accumulated to obtain a luminance value of 0.5%. The upper end side is ymax, and the lower end side is ymin.
[0065]
  In the present embodiment, the upper end and the lower end are obtained through such processing on the luminance distribution, but it is also possible to obtain both ends under statistical processing. For example, it is also possible to adopt a method in which the portion where the percentage of the average value of the luminance values is less than or equal to the edge is used.
[0066]
  By the way, since the range that the luminance y can take is only “0” to “255”, it is efficient to obtain the luminance Y after conversion corresponding to all the values that the luminance y can take in advance. Yes, the correspondence is calculated and stored as a table in step S204.
[0067]
  Thus, the preparation for enlarging the contrast is completed, but the degree of enlargement corresponds to the parameter a in the equation (4). Hereinafter, the parameter a will be referred to as a contrast enlarging coefficient. Due to its nature, the contrast expansion coefficient a is a value of “1” or more.
[0068]
  The conversion of the image data for increasing the contrast is thereafter performed with reference to the table calculated in step S204 for each pixel. By the way, the correspondence relationship for converting the luminance has been obtained so far, and for example, it is not the conversion relationship for the component values (Rp, Gp, Bp) on the RGB coordinate axes. However, the conversion formula (4) can also be applied in correspondence with the RGB component values (Rp, Gp, Bp). That is, the component values (R ′, G ′, B ′) after conversion with respect to the component values (R, G, B) before conversion are
  R ′ = a · R + b (7)
  G ′ = a · G + b (8)
  B ′ = a · B + b (9)
Can be obtained as This is clear from the fact that both the equations (4) and (3) show a linear correspondence. Also, the RGB component values (R, G, B), (R ′, G ′, B ′) are the same corresponding to the luminance y, Y ranging from “0” to “255”. It can be said that the luminance y and Y conversion tables described above may be used as they are.
[0069]
  Accordingly, in step S206, the image data (R, G, B) of all the pixels is converted into image data (R ′, G ′, B ′) by referring to the conversion table corresponding to the equations (7) to (9). . In step S208, the converted pixels are sequentially moved as shown in FIG. 12, and the process is repeated until the final pixel is determined in step S210.
[0070]
  In the present embodiment, the degree of emphasis that increases the contrast is automatically obtained, but it is also possible for the operator to manually set the parameters a and b.
[0071]
  On the other hand, it is the saturation enhancement processing that requires the saturation distribution to be totalized in the above-described thinning-out processing. Next, saturation enhancement will be described.
[0072]
  The basic flow of saturation enhancement processing is shown in the flowchart of FIG. 13, FIG. 14 shows the saturation distribution, and FIG. 15 shows the saturation enhancement coefficient derived from the saturation distribution. Also in FIG. 13, the saturation enhancement coefficient is determined in the process of the first step S130 surrounded by the one-dot chain line, the enhancement suppression process is performed in the next step S140, and the saturation is actually enhanced in the process of the last step S150. An image conversion process is shown. In this process, as shown in FIG. 14, the saturation A representing the saturation of the entire image is obtained from the saturation distribution over the entire image data, and the saturation enhancement coefficient S is obtained from the saturation A. In order to obtain the saturation A, the saturation distribution of the image data is used. As will be described later, since the processing for weakening the saturation enhancement coefficient S is performed based on the contrast expansion coefficient a in the subsequent enhancement suppression processing, it can be said to be a temporary value here.
[0073]
  The saturation distribution is also totalized for the pixels thinned out in step S110. If the image data has saturation as its component element, the distribution can be obtained using the saturation value, and even in the case of image data where saturation is not a direct component element Specifically, it has component values representing saturation. Therefore, a saturation value can be obtained by performing conversion from a color space where saturation is not a direct component element to a color space where the saturation value is a direct component value. For example, in the Luv space as a standard color system, the L axis represents luminance (brightness), and the U axis and V axis represent hue. Here, in the U axis and the V axis, the distance from the intersection of both axes represents the saturation, so that (U ** 2 + V ** 2) ** (1/2) is substantially the saturation. However, the amount of calculation processing required for such conversion becomes enormous.
[0074]
  Therefore, in this embodiment, standard RGB gradation data is directly used as image data, and an alternative value X of saturation is obtained as follows.
[0075]
  X = | G + B−2 × R | (10)
  Originally, the saturation is “0” when R = G = B, and becomes the maximum value when mixing with a predetermined ratio of one or two colors of RGB. Although it is possible to express the saturation appropriately from this property, it is possible to obtain the maximum saturation if it is cyan, which is a single color of red and a mixed color of green and blue, according to the simple equation (10). It is “0” when the components are uniform. In addition, green and blue single colors reach about half of the maximum value.
[0076]
  In a situation where each component represents a component of each color independently as in the RGB color space, in other words, in a situation where the component values of the hue components are roughly equivalent,
  X ′ = | R + B−2 × G | (11)
  X ″ = | G + R−2 × B | (12)
However, as a result, the one according to the equation (10) was the best.
[0077]
  When the saturation distribution is obtained from the RGB image data on the basis of the expression (10) for the pixels thinned out in step S110, the saturation is distributed in the range of the minimum value “0” to the maximum value “511”. The distribution is as shown in FIG.
[0078]
  Based on the aggregated saturation distribution, a saturation enhancement coefficient for this image is determined in step S302. Assuming that the aggregated saturation distribution is as shown in FIG. 14, in the present embodiment, the range occupied by the upper “16%” is obtained as the distribution number within the range of effective pixels. Then, the saturation enhancement coefficient S is determined based on the following equation, assuming that the lowest saturation “A” in this range represents the saturation of this image.
[0079]
  That is,
  If A <92
    S = −A × (10/92) +50 (13)
  If 92 ≦ A <184
    S = −A × (10/46) +60 (14)
  If 184 ≤ A <230
    S = −A × (10/23) +100 (15)
  If 230 ≦ A
    S = 0 (16)
  And FIG. 15 shows the relationship between the saturation “A” and the saturation enhancement coefficient S. As shown in the figure, the saturation enhancement coefficient S is large when the saturation “A” is small in the range from the maximum value “50” to the minimum value “0”, and small when the saturation “A” is large. Will gradually change.
[0080]
  In this embodiment, the saturation occupied by a certain ratio in the upper part of the total saturation distribution range is used. However, the present invention is not limited to this. For example, an average value is obtained or a median is obtained to enhance saturation. It may be a basis for calculating the coefficient S. However, when a certain proportion of the upper level in the saturation distribution is taken, the influence of the sudden error is weakened, and thus a good result as a whole can be obtained.
[0081]
  When the saturation enhancement coefficient S is obtained, the saturation enhancement processing is performed on the image data of each pixel as shown in the subsequent stage of FIG. In order to enhance the saturation based on the saturation enhancement coefficient S, if the image data has a saturation parameter as described above, the same parameter may be converted. Adopting space. Therefore, a method for enhancing the saturation by using the RGB gradation data as it is will be described below.
[0082]
  When each component is a component value of a hue component in which the respective components are roughly equivalent as in the RGB color space, if R = G = B, the color is gray and achromatic. Therefore, assuming that the component having the minimum value in each component of RGB is merely reducing the saturation without affecting the hue of each pixel, the minimum value in each component is determined from all the component values. It can be said that the saturation can be enhanced by subtracting and enlarging the difference value.
[0083]
  First, a saturation enhancement parameter Sratio that is advantageous for calculation from the saturation enhancement coefficient S described above,
  Sratio = (S + 100) / 100 (17)
  Asking. In this case, when the saturation enhancement coefficient S = 0, the saturation enhancement parameter Sratio = 1 and the saturation is not enhanced. Next, assuming that the component value of blue (B) in each component (R, G, B) of the RGB gradation data is the minimum value, conversion is performed as follows using this saturation enhancement parameter Sratio.
[0084]
  R ′ = B + (R−B) × Sratio (18)
  G ′ = B + (GB) × Sratio (19)
  B '= B (20)
  This eliminates the need for color conversion between at least the RGB color space and the Luv space, but in this case, even if the saturation is emphasized independently, the luminance also increases. There is a tendency to become bright overall. Therefore, the conversion is performed on the difference value obtained by subtracting the luminance equivalent value from each component value.
[0085]
  For luminance, the conversion formula obtained directly from RGB as described above is used.
[0086]
  On the other hand, saturation enhancement
  R ′ = R + ΔR (21)
  G ′ = G + ΔG (22)
  B ′ = B + ΔB (23)
And These addition / subtraction values ΔR, ΔG, ΔB are obtained by the following equation based on the difference value from the luminance. That is,
  ΔR = (R−Y) × Sratio (24)
  ΔG = (G−Y) × Sratio (25)
  ΔB = (BY) × Sratio (26)
And as a result,
  R ′ = R + (R−Y) × Sratio (27)
  G ′ = G + (G−Y) × Sratio (28)
  B ′ = B + (BY) × Sratio (29)
Can be converted as In addition, the preservation | save of a brightness | luminance is clear from following Formula.
[0087]
  Y ′ = Y + ΔY (30)
  ΔY = 0.30ΔR + 0.59ΔG + 0.11ΔB
      = Sratio {(0.30R + 0.59G + 0.11B) -Y}
      = 0 (31)
Further, when the input is gray (R = G = B), the luminance Y = R = G = B, so the addition / subtraction value ΔR = ΔG = ΔB = 0, and the achromatic color is not colored. . When the image data is converted in step S304, the converted pixel is moved in the same manner as shown in FIG. 12 in step S306, and the process is repeated until it is determined as the final pixel in step S308.
[0088]
  In this embodiment, the degree of enhancement for enhancing the saturation is automatically obtained in this way. However, when the operator manually increases or decreases the component value uniformly, such an increase / decrease value is used. Is a saturation enhancement parameter.
[0089]
  When the contrast expansion coefficient a and the saturation enhancement coefficient S are obtained in the preceding stage of each process described above, the enhancement suppression process is executed in step S140 corresponding to the middle part to obtain the formal saturation enhancement coefficient S ′. Ask. If the expressions (27) to (29) are used in the saturation enhancement process, the luminance is preserved, and even if the saturation is enhanced, the overall brightness does not increase. However, there is no problem when only the saturation is emphasized in this way, and when the process of enlarging the contrast and the saturation enhancement process are performed at the same time, they act synergistically and the image becomes flashy. Become. In order to avoid this, it is necessary to associate each other with emphasis processing. This association is performed based on the following equation.
[0090]
  S ′ = S × (1 / a) (32)
  As described above, the contrast enlargement coefficient a is “1” or more, and if the enlargement tendency becomes strong, (1 / a) becomes less than “1”. Therefore, the formal saturation enhancement coefficient S ′ is as described above. It becomes smaller than the calculated temporary saturation enhancement coefficient S. That is, the parameter used in the saturation enhancement process is reduced by the parameter used in the contrast enlargement process, and the enhancement process is suppressed.
[0091]
  In this embodiment, as shown in FIG. 16, association is performed such that the saturation enhancement coefficient S is weakened by the contrast expansion coefficient a, and in this sense, it can be said that an enhancement processing suppression filter is provided. However, as shown in FIG. 17, it is possible to perform association that weakens the contrast enhancement coefficient a with the saturation enhancement coefficient S, and as shown in FIG. 18, association that weakens each other is performed. Also good. Also, instead of a unique filter, as shown in FIGS. 19A and 19B, a conversion table to be referred to according to specific values of the contrast expansion coefficient a and the saturation enhancement coefficient S is prepared. Also good. If such a conversion table is prepared, more detailed settings can be made.
[0092]
  On the other hand, it may not be necessary to weaken each other. For example, when the contrast enlargement coefficient a and the saturation enhancement coefficient S are small, there are cases where they act individually and have no synergistic adverse effects. Therefore, as shown in FIG. 20, a non-interference area may be prepared so as to be affected by weakening when a certain threshold value is reached. Similarly, it is also possible to act to weaken the other party only when a certain threshold value is exceeded.
[0093]
  In this way, if the arithmetic expression (32) is used or the enhancement processing is suppressed using the conversion table, the image data is finally converted using the enhancement processing coefficient in step S150. That is, data conversion is performed on a pixel-by-pixel basis for the image data of the pixel of interest corresponding to the subsequent stage of each process described above.
[0094]
  As for the contrast enlargement process, as described above, the component values (R ′, G ′, B ′) after conversion with respect to the component values (R, G, B) before conversion for the pixel of interest are (7) to ( 9) Convert based on the equation.
[0095]
  On the other hand, for the saturation enhancement process, the saturation enhancement parameter S′ratio is obtained from the equation (17) based on the newly obtained saturation enhancement coefficient S ′, and the component values (R ′, G ′, B ′) are converted based on the equations (27) to (29) to obtain final image data of component values (R ″, G ″, B ″).
[0096]
  Next, the operation of the present embodiment having the above configuration will be described step by step.
[0097]
If a photograph is taken with the scanner 11 or the like, image data representing the photograph in RGB gradation data is taken into the computer 21, and the CPU executes the image processing program shown in FIG. The contrast enlargement process and the saturation enhancement process are executed so that the contrast and the vividness are obtained.
[0098]
  First, in step S110, a pixel is selected by thinning processing so as to be within an allowable error range, and the luminance of the same pixel is obtained from equation (3) and the saturation is obtained from equation (10). Then, the distributions of these luminance and saturation are totaled.
[0099]
  In the next step S120, the maximum value ymax and the minimum value ymin, which are the distribution range, are determined from the luminance distribution, parameters a and b are obtained from the equations (5) and (6), A conversion table is calculated in which the conversion relation for the gradations is calculated.
[0100]
  On the other hand, in step S130, a saturation A representing the saturation of the image is obtained from the saturation distribution, and a temporary saturation enhancement coefficient S is obtained from the relationship between the saturation A and the expressions (13) to (16).
[0101]
  Since the saturation enhancement coefficient S is a provisional value, in the next step S140, the contrast enhancement coefficient a is used to convert the equation (32) into the formal saturation enhancement coefficient S '.
With this process, the enhancement process can be suppressed. At this time, the saturation enhancement parameter S'ratio is obtained from the saturation enhancement coefficient S '.
[0102]
  Thereafter, in step S150, specific image data conversion is performed while sequentially moving the target pixel as shown in FIG.
[0103]
  That is, from the component values (R, G, B)
  R ′ = a · R + b (7)
  G ′ = a · G + b (8)
  B ′ = a · B + b (9)
The component values (R ′, G ′, B ′) are obtained through the following arithmetic expression, and from the component values (R ′, G ′, B ′) using the saturation enhancement parameter S ′ ratio described above.
  R ″ = R + (R′−Y) × S′ratio (27) ′
  G ″ = G + (G′−Y) × S′ratio (28) ′
  B ″ = B + (B′−Y) × S′ratio (29) ′
The final component values (R ″, G ″, B ″) are obtained through the following arithmetic expression.
[0104]
  The image data obtained in this way is the best image without synergistic action while the contrast is enlarged and the saturation is enhanced.
[0105]
  As described above, the contrast enhancement coefficient a is determined in step S120 and the saturation emphasis coefficient S is determined in step S130 based on the luminance distribution and the saturation distribution that are tabulated in the thinning-out aggregation in step S110. In S140, a new saturation enhancement coefficient S ′ is obtained by performing an association based on the contrast enhancement coefficient a so that the saturation enhancement coefficient S decreases as the contrast enhancement coefficient a increases, and the same in step S150. Since the image data is converted by using the saturation enhancement coefficient S ′ and the contrast enlargement coefficient a, it is possible to prevent the image data from being flashy due to a synergistic enhancement process when each is set. And the best image data can be easily obtained.
[0106]
  Note that the calculation speed of the input image of the video camera 14 may not be in time. Therefore, in such a case, brightness and saturation are detected for each shooting scene, and the degree of contrast expansion and saturation enhancement are determined on the assumption that the scene has the same tendency. In addition, it is only necessary to expand the luminance distribution and enhance the saturation for each frame based on the same degree of enhancement. Of course, if there is a sufficient calculation speed, conversion may be performed for each frame, or similar conversion can be performed on the receiver side.
[Brief description of the drawings]
FIG. 1 is a block diagram of an image processing system to which an image processing apparatus according to an embodiment of the present invention is applied.
FIG. 2 is a block diagram illustrating a specific hardware configuration example of the image processing apparatus.
FIG. 3 is a block diagram of a digital still camera showing another application example of the image processing apparatus of the present invention.
FIG. 4 is a configuration diagram of a printer driver showing another application example of the image processing apparatus of the present invention.
FIG. 5 is a flowchart showing image processing in the present invention.
FIG. 6 is a diagram illustrating a conversion source image.
FIG. 7 is a diagram showing a sampling period.
FIG. 8 is a diagram illustrating the number of sampling pixels.
FIG. 9 is a diagram illustrating a relationship between a conversion source image and pixels to be sampled.
FIG. 10 is a flowchart illustrating an outline of contrast enlargement processing.
FIG. 11 is a diagram showing the aggregated luminance distribution and the enlarged luminance distribution.
FIG. 12 is a diagram illustrating a moving direction of a target pixel.
FIG. 13 is a flowchart illustrating an outline of saturation enhancement processing.
FIG. 14 is a schematic diagram of a total state of saturation distribution.
FIG. 15 is a diagram showing the relationship between saturation A and saturation enhancement index S.
FIG. 16 is a diagram showing a concept to which enhancement suppression processing according to the present embodiment is applied.
FIG. 17 is a diagram illustrating a concept to which enhancement suppression processing according to a modification is applied.
FIG. 18 is a diagram illustrating a concept to which enhancement suppression processing according to another modification is applied.
FIG. 19 is a diagram illustrating a concept to which enhancement suppression processing is applied using a conversion table in another modified example.
FIG. 20 is a diagram illustrating a concept to which enhancement suppression processing is applied by setting a non-interference area.
[Explanation of symbols]
10. Image input device
11 ... Scanner
12 ... Digital still camera
12a ... Digital still camera
12a1 ... Optical system
12a2 ... Photoelectric conversion unit
12a3 ... control unit
12a4 ... Image memory
12a5 ... Image correction unit
14 ... Video camera
20 Image processing apparatus
21 ... Computer
21a1 ... Rasterizer
21a2 ... Color converter
21a3 ... gradation conversion section
21b ... Image correct module
22 ... Hard disk
30. Image output device
31 ... Printer
32 ... Display

Claims (12)

画像データにおける輝度分布を拡大させるコントラスト拡大手段と、
上記画像データにおける各画素の彩度を強調する彩度強調手段と、
上記コントラスト拡大手段における輝度分布の拡大程度を表すパラメータと上記彩度強調手段における彩度の強調程度を表すパラメータとの一方を仮のパラメータとし、他方のパラメータと上記仮のパラメータとから自動的に、上記仮のパラメータをその操作を抑制させるパラメータに変換する強調処理抑制手段とを具備し、
上記コントラスト拡大手段と上記彩度強調手段とは、上記変換後のパラメータと上記他方のパラメータとを利用してそれぞれの処理を実施するように上記画像データを変換することを特徴とする画像処理装置。
Contrast expansion means for expanding the luminance distribution in the image data;
Saturation enhancement means for enhancing the saturation of each pixel in the image data;
One of the parameter representing the degree of expansion of the luminance distribution in the contrast enlarging means and the parameter representing the degree of saturation enhancement in the saturation enhancing means is a temporary parameter, and the other parameter and the temporary parameter are automatically used. And an emphasis processing suppression means for converting the temporary parameter into a parameter for suppressing the operation,
The image processing apparatus characterized in that the contrast enlarging means and the saturation emphasizing means convert the image data so as to perform respective processing using the converted parameter and the other parameter. .
上記請求項1に記載の画像処理装置において、上記強調処理抑制手段は、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに彩度の強調操作を抑制することを特徴とする画像処理装置。  The image processing apparatus according to claim 1, wherein the enhancement processing suppression unit suppresses the saturation enhancement operation when attempting to perform a luminance distribution expansion operation and a saturation enhancement operation. An image processing apparatus. 上記請求項1に記載の画像処理装置において、上記強調処理抑制手段は、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに輝度分布の拡大操作を抑制することを特徴とする画像処理装置。  The image processing apparatus according to claim 1, wherein the enhancement processing suppression unit suppresses the luminance distribution expansion operation when attempting to perform the luminance distribution expansion operation and the saturation enhancement operation. An image processing apparatus. 上記請求項1に記載の画像処理装置において、上記強調処理抑制手段は、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに相互に抑制することを特徴とする画像処理装置。  The image processing apparatus according to claim 1, wherein the enhancement processing suppression unit suppresses the luminance distribution enlargement operation and the saturation enhancement operation to be performed each other. . 上記請求項1〜請求項4のいずれかに記載の画像処理装置において、上記強調処理抑制手段は、上記コントラスト拡大手段における輝度分布の拡大程度を表すパラメータと上記彩度強調手段における彩度の強調程度を表すパラメータとから、一方が大となるときに他方が小となる関連づけを行うことを特徴とする画像処理装置。  5. The image processing apparatus according to claim 1, wherein the enhancement processing suppression unit includes a parameter representing a degree of expansion of a luminance distribution in the contrast enlarging unit and saturation enhancement in the saturation enhancement unit. An image processing apparatus characterized in that, based on a parameter representing a degree, an association is performed such that when one is large, the other is small. 上記請求項1〜請求項5のいずれかに記載の画像処理装置において、上記コントラスト拡大手段と上記彩度強調手段における一方または双方が、画像データを分析して強調程度を設定することを特徴とする画像処理装置。  6. The image processing apparatus according to claim 1, wherein one or both of the contrast enlarging unit and the saturation emphasizing unit analyze image data and set the degree of enhancement. An image processing apparatus. 上記請求項6に記載の画像処理装置において、上記コントラスト拡大手段は、画素単位での画像データの輝度分布を検出する輝度分布検出手段と、この検出された輝度分布に基づいて再現可能な範囲内での同輝度分布の拡大可能な程度を判別して画像データを変換するコントラストデータ変換手段とを具備することを特徴とする画像処理装置。  7. The image processing apparatus according to claim 6, wherein the contrast enlarging unit includes a luminance distribution detecting unit that detects a luminance distribution of the image data in units of pixels, and a reproducible range based on the detected luminance distribution. An image processing apparatus comprising: contrast data conversion means for determining the degree of expansion of the same luminance distribution in the image and converting image data. 上記請求項6または請求項7のいずれかに記載の画像処理装置において、上記彩度強調手段は、画像データにおける各画素の彩度の分布を集計する彩度分布集計手段と、この彩度分布集計手段にて集計された彩度の分布状況から画像データの彩度を強調する程度を判定する彩度強調度判定手段と、判定された変換の程度に基づいて画像データにおける彩度を表す情報を修正して新たな画像データに変換する彩度データ変換手段とを具備することを特徴とする画像処理装置。  8. The image processing apparatus according to claim 6, wherein the saturation enhancement unit includes a saturation distribution totaling unit that totalizes the distribution of the saturation of each pixel in the image data, and the saturation distribution. Saturation emphasis degree judging means for judging the degree of emphasizing the saturation of the image data from the distribution state of the chroma summed by the summing means, and information representing the saturation in the image data based on the judged degree of conversion An image processing apparatus comprising: saturation data conversion means for correcting the image and converting it into new image data. 上記請求項1〜請求項7のいずれかに記載の画像処理装置において、上記コントラスト拡大手段は、当該画像データの取りうる有効な輝度範囲をyrange としたときに、変換前の輝度yと輝度の分布範囲の最大値ymaxと最小値yminから変換先の輝度Yを次式に基づいて求めることを特徴とする画像処理装置。
Y=ay+b
ただし
a=yrange/(ymax−ymin)
b=−a・yminあるいはyrange−a・ymax
また、上記変換式にてY<0ならばY=0とし、Y>rangeならばY=yrangeとする。
The image processing apparatus according to any one of claims 1 to 7, wherein the contrast enlarging means calculates the luminance y and luminance before conversion when the effective luminance range that the image data can take is yrange. An image processing apparatus characterized in that a conversion destination luminance Y is obtained from a maximum value ymax and a minimum value ymin of a distribution range based on the following equation.
Y = ay + b
However, a = yrange / (ymax−ymin)
b = -a.ymin or yrange-a.ymax
In the above conversion equation, if Y <0, Y = 0, and if Y> range, Y = yrange.
上記請求項1〜請求項8のいずれかに記載の画像処理装置において、上記彩度強調手段は、
上記画像データが複数の概略対等な色相成分の成分値で示されるときに各色相成分と輝度との差分値に所定の強調係数を乗算せしめた値を同色相成分に加算して彩度の変換を行うことを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 8, wherein the saturation enhancement unit includes:
When the image data is indicated by component values of a plurality of roughly equivalent hue components, the value obtained by multiplying the difference value between each hue component and luminance by a predetermined enhancement coefficient is added to the same hue component, thereby converting the saturation. An image processing apparatus characterized by
画像データにおける輝度分布を拡大させるコントラスト拡大処理と、画像データにおける各画素の彩度を強調する彩度強調処理とを実行するに当たり、上記コントラスト拡大処理における輝度分布の拡大程度を表すパラメータと上記彩度強調処理における彩度の強調程度を表すパラメータとの一方を仮のパラメータとし、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに、上記他方のパラメータと上記仮のパラメータとから自動的に、上記仮のパラメータをその操作を抑制させるパラメータに変換し、変換後のパラメータと上記他方のパラメータとを利用してそれぞれの処理を実施するように上記画像データを変換することを特徴とする画像処理方法。  In executing the contrast enlargement process for enlarging the luminance distribution in the image data and the saturation enhancement process for enhancing the saturation of each pixel in the image data, the parameter indicating the degree of expansion of the luminance distribution in the contrast enlargement process and the saturation One of the parameters representing the degree of saturation enhancement in the degree enhancement processing is set as a temporary parameter, and the other parameter and the temporary parameter are used when performing the luminance distribution expansion operation and the saturation enhancement operation. And automatically converting the temporary parameter to a parameter that suppresses the operation, and converting the image data so that each process is performed using the converted parameter and the other parameter. An image processing method characterized by the above. 画像データをコンピュータにて入力し、同画像データにおける輝度分布を拡大させるコントラスト拡大処理と、同画像データにおける各画素の彩度を強調する彩度強調処理とを実行する画像処理プログラムを記録した媒体であって、
上記コントラスト拡大処理と上記彩度強調処理とを実行するに当たり、上記コントラスト拡大処理における輝度分布の拡大程度を表すパラメータと上記彩度強調処理における彩度の強調程度を表すパラメータとの一方を仮のパラメータとし、輝度分布の拡大操作と彩度の強調操作とを実施しようとするときに、上記他方のパラメータと上記仮のパラメータとから自動的に、上記仮のパラメータをその操作を抑制させるパラメータに変換し、変換後のパラメータと上記他方のパラメータとを利用してそれぞれの処理を実施するように上記画像データを変換することを特徴とする画像処理プログラムを記録した媒体。
A medium on which image data is input by a computer and recorded with an image processing program for executing contrast expansion processing for expanding the luminance distribution in the image data and saturation enhancement processing for enhancing the saturation of each pixel in the image data Because
In executing the contrast enlargement process and the saturation enhancement process, one of a parameter representing the degree of expansion of the luminance distribution in the contrast enhancement process and a parameter representing the degree of saturation enhancement in the saturation enhancement process is assumed temporarily. As a parameter, when trying to carry out a brightness distribution expansion operation and a saturation enhancement operation, the temporary parameter is automatically changed from the other parameter and the temporary parameter to a parameter that suppresses the operation. A medium on which an image processing program is recorded, wherein the image data is converted so that each process is performed using the converted parameter and the other parameter.
JP2002182370A 1996-11-21 2002-06-24 Image processing apparatus, image processing method, and medium on which image processing program is recorded Expired - Fee Related JP3736632B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002182370A JP3736632B2 (en) 1996-11-21 2002-06-24 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP31107096 1996-11-21
JP8-311070 1996-11-21
JP2002182370A JP3736632B2 (en) 1996-11-21 2002-06-24 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP30744197A Division JP3985109B2 (en) 1996-11-21 1997-11-10 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Publications (3)

Publication Number Publication Date
JP2003051000A JP2003051000A (en) 2003-02-21
JP2003051000A5 JP2003051000A5 (en) 2005-01-20
JP3736632B2 true JP3736632B2 (en) 2006-01-18

Family

ID=26566570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002182370A Expired - Fee Related JP3736632B2 (en) 1996-11-21 2002-06-24 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Country Status (1)

Country Link
JP (1) JP3736632B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4791135B2 (en) * 2005-10-20 2011-10-12 シャープ株式会社 Image processing method and image display apparatus
KR100763239B1 (en) 2006-06-27 2007-10-04 삼성전자주식회사 Image processing apparatus and method for improving the visibility of the displayed image
EP2266096B1 (en) * 2008-03-13 2020-04-29 TP Vision Holding B.V. Method and apparatus for improving the perceptual quality of color images

Also Published As

Publication number Publication date
JP2003051000A (en) 2003-02-21

Similar Documents

Publication Publication Date Title
JPH0832827A (en) Digital image tone correction device
JP4243362B2 (en) Image processing apparatus, image processing method, and recording medium recording image processing program
JP3985109B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP3736632B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2020140392A (en) Image processing equipment, image processing methods, and programs
JP3334047B2 (en) IMAGE PROCESSING APPARATUS, IMAGE READING APPARATUS AND IMAGE FORMING APPARATUS EQUIPPED WITH THE SAME, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE STORAGE MEDIUM CONTAINING IMAGE PROCESSING PROCEDURE
JP2003051000A5 (en)
US8665498B2 (en) Method and system for automatically detecting and processing halftone regions in scanned documents
JP3921737B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
JPH10200777A (en) Image processing apparatus, image processing method, and medium recording image processing program
JPH10200778A (en) Image processing apparatus, image processing method, and medium recording image processing program
JP3702956B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
JP3501151B2 (en) Image processing apparatus, image processing method, medium recording image processing control program
JP2007249802A (en) Image processor and image processing method
JP2003085546A (en) Image processing apparatus, image processing method, and medium recording image processing program
JP3702957B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
JPH10200756A (en) Image processing apparatus, image processing method, and medium recording image processing program
JP3956067B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2000357237A (en) IMAGE PROCESSING APPARATUS, IMAGE READING APPARATUS AND IMAGE FORMING APPARATUS EQUIPPED WITH THE SAME, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE STORAGE MEDIUM CONTAINING IMAGE PROCESSING PROCEDURE
JP3646798B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP3705250B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
JP3570416B2 (en) Image processing apparatus, image processing method, and medium recording image processing control program
JP2003069828A (en) Image processing apparatus, image processing method, and medium recording image processing program
JP3985147B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP3458855B2 (en) Image processing apparatus, image processing method, and medium recording image processing control program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040219

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040219

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20040219

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20040510

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041018

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041213

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050506

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050624

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20050704

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: 20051005

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051018

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: 20091104

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091104

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101104

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101104

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121104

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121104

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131104

Year of fee payment: 8

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