JP4058244B2 - Image processing method - Google Patents
Image processing method Download PDFInfo
- Publication number
- JP4058244B2 JP4058244B2 JP2001014610A JP2001014610A JP4058244B2 JP 4058244 B2 JP4058244 B2 JP 4058244B2 JP 2001014610 A JP2001014610 A JP 2001014610A JP 2001014610 A JP2001014610 A JP 2001014610A JP 4058244 B2 JP4058244 B2 JP 4058244B2
- Authority
- JP
- Japan
- Prior art keywords
- correction
- density
- hue
- function
- tone
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Controls And Circuits For Display Device (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、画像に対して階調変換処理または色修正処理を行う画像処理方法に関する。
【0002】
【従来の技術】
例えば、印刷・製版の分野において、作業工程の合理化、画像品質の向上等を目的として、読取原稿に記録されたカラー画像を電気的に処理し、C、M、Y、Kの4版からなるフイルム原版、あるいは、刷版を作成し、これらから所望の印刷物を得るようにした画像読取記録再生システムが広範に用いられている。
【0003】
この場合、スキャナ装置等によって読み取られたカラー画像は、着目する部分に対して所望の階調あるいは色調からなる印刷物を得るために、C、M、Y、Kの各色毎に階調変換処理が行われ、あるいは、C、M、Y、Kの各色毎に色修正処理が行われる。
【0004】
具体的には、階調変換処理では、カラー画像の濃度を所望の出力網%を得ることのできる濃度に変換する処理が行われる。この変換処理に用いられる入力濃度−出力濃度変換テーブルであるトーンカーブは、カラー画像のハイライト(HL)部分、シャドー(SD)部分およびミドル(MD)部分において、オペレータが設定した階調修正係数に従って調整される。しかしながら、トーンカーブは、HL、SDおよびMDの各部分に対して予め準備されている階調修正関数を階調修正係数に基づいて修正することで調整されるため、例えば、HLとMDとの間の特定の階調近傍を微調整しようとすると、意図しない部分の階調も変動してしまう不具合があった。
【0005】
また、色修正処理では、一般的には、C、M、Y、R、G、Bの6色相を中心とした修正強度関数を予め準備しておき、オペレータが設定した色修正係数を用いて各修正強度関数を修正することにより、所望の色調を得るようにしている。しかしながら、特定部分の色調を調整したい場合、修正強度関数が上記の6色相を中心として設定されているため、意図しない部分の色調も変化してしまう不具合があった。例えば、肌色を調整したい場合、RおよびYの色相を中心とした修正強度関数を修正することになるため、肌色そのものよりも、RまたはYの色相が大きく変化することになる。また、濁った緑を調整したい場合、通常、修正強度関数は彩度の高い色がより修正されるように設定されているため、濁った緑よりも鮮やかな緑が変化することになる。
【0006】
【発明が解決しようとする課題】
本発明は、前記の不具合を解決するためになされたもので、画像の着目する部分を中心とした階調を調整することができ、それ以外の意図しない部分が調整の影響を受けることのない画像処理方法を提供することを目的とする。
【0007】
【課題を解決するための手段】
前記の課題を解決するために、本発明は、画像に対して階調を修正すべき着目部分を指定し、その画像の濃度に対する出力濃度修正量を最大修正量とし、前記濃度の前後で前記出力濃度修正量が漸減する階調修正関数を作成する。そして、この階調修正関数により、画像の入力濃度を出力濃度に変換する予め設定されている階調変換特性を修正し、修正された階調変換特性によって画像の階調変換処理を行う。この場合、所望の濃度近傍の階調変換特性を修正することができる。
【0008】
なお、着目点が複数ある場合、指定された複数の着目点の濃度の平均値に対する出力濃度修正量を最大修正量とし、前記平均値の前後に設定される濃度幅Wを複数の着目点の濃度VPの標準偏差σに基づいて設定することもできる。
【0009】
以上のようにして作成された階調修正関数を着目部分の濃度毎に保存しておき、濃度に応じて所望の階調修正関数を選択し、階調変換特性の修正を行うことができる。
【0013】
【発明の実施の形態】
図1は、本発明が適用される画像読取記録再生システムの外観構成を示す図である。このシステムは、読取原稿に記録されたカラー画像を読み取る入力スキャナ10と、読み取られたカラー画像に対して、階調変換処理、色修正処理等を含む画像処理を行う画像処理装置20と、画像処理されたカラー画像をC、M、Y、Kの4色のフイルム原版として出力する出力装置30とから基本的に構成される。なお、出力装置30は、刷版を直接出力する装置として構成することもできる。
【0014】
画像処理装置20は、入力スキャナ10によって読み取られたカラー画像を表示するとともに、画像処理のための各種セットアップパラメータや処理結果等を表示するディスプレイ22と、オペレータによるセットアップパラメータの入力、画面の切替等のためのキーボード24、マウス26とを備える。
【0015】
図2は、図1に示す画像処理装置20を中心とする画像処理回路の構成ブロック図である。この画像処理装置20は、入力スキャナ10によりカラー画像を色分解して得た3色の濃度データC、M、Yを記憶する画像メモリ32を有する。
【0016】
画像メモリ32の後段には、レンジ調整回路34が設けられる。レンジ調整回路34は、図3に示すように、オペレータが設定するハイライト(HL)の設定HL濃度およびシャドー(SD)の設定SD濃度を、基準となるべく予め設定されている画像処理装置20の内部HL濃度および内部SD濃度に変換するための一次変換テーブルαC、αM、αYを各濃度データC、M、Y毎に作成し、この一次変換テーブルαC、αM、αYによって濃度データC、M、Yのレンジ調整処理を行う。
【0017】
レンジ調整回路34の後段には、階調変換回路36、信号選択回路37および色修正回路40が設けられる。
【0018】
階調変換回路36は、所望の網%データC、M、Yを得るべく、レンジ調整回路34から供給される各濃度データC、M、Yの階調を、設定した階調変換特性に対応したトーンカーブに従って変換処理する。すなわち、オペレータが設定した階調修正係数に基づいてハイライト(HL)、ミドル(MD)、シャドー(SD)の各濃度における既存の階調修正関数を修正し、また、オペレータが指定した着目部分に対する階調修正関数を新たに生成し、この階調修正関数をオペレータが設定した階調修正係数によって修正し、これらの修正された階調修正関数を用いて各濃度データC、M、YのトーンカーブβC、βM、βYを調整し(図4〜図7の点線部参照)、調整されたトーンカーブβC、βM、βYを用いて各濃度データC、M、Yの階調変換処理を行う。変換された濃度データC、M、Yは、後段の加算器42に供給される。なお、階調変換処理の詳細については、後述する。
【0019】
信号選択回路37は、濃度データC、M、Yから最大値および最小値を選択し、UCR回路38およびK生成回路39に供給する回路である。
【0020】
UCR回路38は、レンジ調整回路34から供給される各濃度データC、M、Yに対して下色除去処理(UCR=Under Color Removal)を行い、濃度データC、M、Yの修正量ΔC、ΔM、ΔYを算出して加算器42に負のデータとして加算する。この場合、修正量ΔC、ΔM、ΔYは、例えば、信号選択回路37によって選択された濃度データC、M、Yの最大値および最小値とオペレータによって設定されたUCR強度とから求めることができる。
【0021】
K生成回路39は、信号選択回路37によって選択された濃度データC、M、Yの最小値を基準とし、階調変換回路36における濃度データC、M、Yと同様の処理によって調整されたトーンカーブβK(図4〜図7の点線部参照)に従って濃度データKを生成する。
【0022】
色修正回路40は、レンジ調整回路34から供給される各濃度データC、M、Yにおける色調を所望の色調とする処理を行う。色修正回路40は、図2に示すように、濃度データC、M、Yを色相H、明度L、彩度Sに変換するHLS変換回路44と、色相H、明度L、彩度Sから、オペレータによって設定される各色修正係数を用いて、濃度データC、M、Y、Kのそれぞれの修正量ΔC、ΔM、ΔY、ΔKを算出するC修正量算出回路46、M修正量算出回路48、Y修正量算出回路50、K修正量算出回路52とを有する。
【0023】
C修正量算出回路46は、図8に示すように、HLS変換回路44から供給される色相H、明度L、彩度Sから、C、M、Y、R、G、Bの各単位色相と、オペレータが指定した着目部分により特定される単位色相(以下、この単位色相をDという。)とに対する単位色修正量uc、um、uy、ur、ug、ub、udを求める単位色修正量算出回路54C、54M、54Y、54R、54G、54B、54Dを有し、これらの単位色修正量uc、um、uy、ur、ug、ub、udが加算器56において加算されることで、修正量ΔCが求められる。
【0024】
単位色修正量算出回路54Cは、色相Hから、Cの色相に対応する色相方向修正強度関数を用いて修正強度vhを算出する色相方向修正強度算出回路58と、明度Lおよび彩度Sから、Cの色相に対応する明度・彩度方向修正強度関数を用いて修正強度vaを算出する明度・彩度方向修正強度算出回路60と、修正強度vhおよびvaを乗算する乗算器62と、この乗算結果である修正強度vrに対し、オペレータによって設定された色修正係数を乗算し、Cの色相に対する濃度データCの単位色修正量ucを算出する乗算器64とを有する。算出された単位色修正量ucは、加算器56において、他の単位色修正量um、uy、ur、ug、ub、udと加算されることにより、濃度データCの修正量ΔCが求められる。
【0025】
なお、既存の色相方向修正強度関数は、図9に示すように、C、M、Y、R、G、Bの6色相のそれぞれの中心をピークとし、対称的に漸減して隣接する各色相の中心で修正強度が0となるように設定されている。また、既存の明度・彩度方向修正強度関数は、図10および図11に示すように、明度Lの修正強度および彩度Sの修正強度をそれぞれ(0,0)および(1,1)を通る直線とし、これらの掛け算として設定される。
【0026】
単位色修正量算出回路54Dは、オペレータが指定した着目部分に対する色相方向修正強度関数および明度・彩度方向修正強度関数を新たに生成し、これらの関数と、オペレータが設定した色修正係数とを用いて、単位色修正量udを算出する。
【0027】
M修正量算出回路48、Y修正量算出回路50およびK修正量算出回路52は、C修正量算出回路46と同様に構成され、また、単位色修正量算出回路54M、54Y、54R、54G、54B、54Dは、単位色修正量算出回路54Cと同様に構成されるため、その説明は省略する。なお、色修正処理の詳細については、後述する。
【0028】
色修正回路40で求められた濃度データC、M、Y、Kの修正量ΔC、ΔM、ΔY、ΔKは、加算器66において、階調変換された濃度データC、M、Y、Kに加算され、階調および色調の調整された濃度データC、M、Y、Kとして網%変換回路68に供給される。網%変換回路68は、濃度データC、M、Y、Kのそれぞれを出力装置30の出力特性に応じた網%データに変換し、出力装置30に供給する。
【0029】
以上、本発明が適用される画像読取記録再生システムの概略構成および動作について説明した。次に、本発明の特徴とする階調変換処理および色修正処理を中心として詳細に説明する。
【0030】
読取原稿のカラー画像は、入力スキャナ10によって読み取られた後、濃度データC、M、Yとして画像メモリ32に格納される。読み取られたカラー画像は、一旦、ディスプレイ22に表示される。オペレータは、この表示されたカラー画像に対して、ハイライトの設定HL濃度およびシャドーの設定SD濃度の設定作業を行う。画像処理装置20では、設定されたハイライトの設定HL濃度およびシャドーの設定SD濃度を内部HL濃度および内部SD濃度に変換する一次変換テーブルαC、αM、αY(図3)を作成し、これをレンジ調整回路34に設定する。
【0031】
そこで、画像メモリ32から読み出された濃度データC、M、Yは、レンジ調整回路34において、前記のように設定された一次変換テーブルαC、αM、αY(図3)により、内部HL濃度および内部SD濃度を基準として変換処理される。
【0032】
次に、レンジ調整された濃度データC、M、Yは、階調変換回路36、信号選択回路37および色修正回路40に供給される。
【0033】
ここで、画像処理装置20を構成するディスプレイ22には、読み出されたカラー画像とともに、図12に示すトーンカーブ設定画面が表示される。オペレータは、この画面に従い、トーンカーブの調整作業を行う。
【0034】
先ず、オペレータは、各濃度データC、M、Y、Kに対して予め設定されている既存のトーンカーブβC、βM、βY、βKを選択する。なお、各トーンカーブβC、βM、βY、βKは、カラー画像の種類やオペレータの好みに応じて複数設定しておくことができる。
【0035】
次に、選択されたトーンカーブβX(βC、βM、βY、βK)のハイライト(HL)、ミドル(MD)、シャドー(SD)の各部および任意の着目部分の階調を修正するための階調修正係数gXwを設定する。なお、以下において、X=C、M、Y、Kであり、w=h、m、s、dであり、それぞれ濃度データC、M、Y、Kのハイライト(HL)、ミドル(MD)、シャドー(SD)および着目部分(Def)の階調修正係数であることを表すものとする。この場合、階調修正係数gXwは、オペレータが設定するのではなく、既存の係数として図示しないメモリ等から呼び出すことも可能である。
【0036】
そこで、トーンカーブβXの調整方法の一例を以下に説明する。先ず、調整前の選択されたトーンカーブβXを、ハイライト側の原点を中心として図13における時計方向に45゜回転させるとともに、入力濃度方向および出力濃度方向の双方に1/√2だけ圧縮し、新たなトーンカーブβX′を作成する。次に、この新たなトーンカーブβX′に対して、図14に示すように、ハイライト(HL)、ミドル(MD)、シャドー(SD)および着目部分(Def)に対して設定された階調修正関数γh、γm、γsおよびγdを加算し、(1)式のようにしてトーンカーブβX″を求める。
【0037】
βX″=βX′+gXh・γh+gXm・γm+gXs・γs+gXd・γd…(1)
ここで、着目部分(Def)に対する階調修正関数γdは、次のようにして設定することができる。
【0038】
すなわち、オペレータが図12に示す画面において、「変更」のボタンを選択すると、図15に示す階調修正関数設定画面がディスプレイ22に表示される。この画面において、オペレータは、マウス26を用いて着目部分(画像上の+が表示されている部分)を指定する。この場合、着目部分としては、複数点を指定することができる。また、所定範囲を線で囲むことで領域として指定することもできる。次いで、「階調・色修正」のボタンを選択すると、「階調修正(C)」、「階調修正(M)」、「階調修正(Y)」、「階調修正(L)」、「色修正」のメニューが表示される。
【0039】
そこで、オペレータが、例えば、「階調修正(Y)」のメニューを選択した場合について説明する。「階調修正(Y)」は、階調修正関数γdを求めるメニューであり、オペレータは、マウス26によって着目部分を指定するとともに、階調修正関数γdの所望の濃度幅W、下側設定値VLおよび上側設定値VUの強度IL、IUを設定する。
【0040】
画像処理装置20は、オペレータによって指定された着目部分の濃度データYの値PYをピーク濃度VPとすると、階調修正関数γdの下側設定値VLおよび上側設定値VUを、
VL=(1−W)・VP …(2)
VU=W+(1−W)・VP …(3)
として求める。このようにして設定されあるいは求められた各パラメータを用いて、階調修正関数γdが(0,0)、(VL,IL)、(VP,1)、(VU,IU)、(1,0)の5点を通る関数として設定される。この関数は、多次関数による近似、準エルミート補間等の処理によって得ることができる。図16は、IL=IU=0.5に設定した場合の階調修正関数γdを示す。なお、ピーク濃度VPは、着目部分の濃度データYの値PYとする代わりに、オペレータによって任意の値を設定することも可能である。
【0041】
オペレータは、以上のようにして設定された階調修正関数γdの形状を推定し、OKであれば「登録」のボタンを選択し、登録処理を行う。なお、階調修正関数γdは、既に登録されているピーク濃度VP、濃度幅W、強度IL、IUを「読出」のボタンを選択することで読み出して修正することも可能である。この場合には、着目部分をマウス26によって指定する作業を省くことも可能である。また、階調修正関数γdの登録時に登録名を設定しておき、読み出し時に登録されている登録名を画面に表示させ、表示された登録名から所望の登録名を選択し、対応する各パラメータを読み出して使用することもできる。
【0042】
「階調修正(L)」のメニューを選択した場合には、着目部分の濃度データC、M、Yの値PC、PM、PYを用いて、ピーク濃度VPを、例えば、
VP=0.3PC+0.59PM+0.11PY …(4)
として求め、以下、同様にして階調修正関数γdを設定することができる。
【0043】
一方、着目部分を複数点指定した場合には、各着目点の濃度を平均し、その平均値をピーク濃度VPとする。また、各濃度と平均値とから標準偏差σを求めるとともに、0<Wmin≦W≦Wmax<1の関係にあるパラメータWmin、Wmaxを設定し、これらから、濃度幅Wを、
W=3(Wmax−Wmin)・σ/VP+Wmin …(5)
として求め、以下、同様にして階調修正関数γdを設定することができる。パラメータWmin、Wmaxは、実用上の使用域を制限するための値、例えば、Wmin=0.25、Wmax=0.75として設定するが、任意のパラメータとしてシステム内部に保持することもできる。なお、W>Wmaxとなる場合には、W=Wmaxとする。
【0044】
さらに、着目部分を領域として指定した場合には、領域に含まれる全画像の濃度の平均値に基づいて階調修正関数γdを設定することができる。
【0045】
(1)式に基づき、以上のようにして作成されたトーンカーブβX″は、入力濃度方向および出力濃度方向の双方に1/√2だけ伸張させた後、図13における反時計方向に45゜回転させることにより、所望の階調変換を得ることのできる新たなトーンカーブβXNが得られる。この新たなトーンカーブβXNの中、トーンカーブβCN、βMN、βYNは、階調変換回路36に設定され、トーンカーブβKNは、K生成回路39に設定される。
【0046】
そこで、階調変換回路36に供給された濃度データC、M、Yは、トーンカーブβCN、βMN、βYNによってそれぞれ階調変換された後、加算器42に供給される。この場合、オペレータが指示した所望の濃度において階調変換された濃度データC、M、Yを得ることができる。
【0047】
一方、UCR回路38は、信号選択回路37によって選択された濃度データC、M、Yの最大値および最小値とオペレータによって設定されたUCR強度とから、濃度データC、M、Yの修正量ΔC、ΔM、ΔYを算出し、加算器42に負のデータとして加算する。従って、階調変換回路36において階調変換された濃度データC、M、Yは、修正量ΔC、ΔM、ΔYによって修正された後、加算器66に供給される。
【0048】
また、K生成回路39では、信号選択回路37によって選択された濃度データC、M、Yの最小値を基準として濃度データKが生成され、この濃度データKが上述したように設定されたトーンカーブβKNにより階調変換され、加算器66に供給される。
【0049】
以上のようにして階調変換され、加算器66に供給された濃度データC、M、Y、Kは、以下に示す色修正回路40によって算出された修正量ΔC、ΔM、ΔY、ΔKにより修正され、網%変換回路68に供給される。
【0050】
そこで、次に、色修正回路40での処理について詳細に説明する。
【0051】
レンジ調整回路34によってレンジ調整された濃度データC、M、Yは、色修正回路40に供給され、HLS変換回路44において、色相H、明度L、彩度Sに変換される。
【0052】
なお、色相Hは0≦H<6、明度Lは0≦L<1、彩度Sは0≦S<1の範囲に設定する。また、H=0はR、H=1はY、H=2はG、H=3はC、H=4はB、H=5はMの各色相を表し(図9参照)、L=0は暗い色、L=1は明るい色を表し、S=0は濁った色、S=1は鮮やかな色を表す。
【0053】
HLS変換回路44では、濃度データC、M、Yの最大値Qmax、中間値Qmid、最小値Qminを求める。最大値Qmaxを与える濃度データC、M、YをPmax、中間値Qmidを与える濃度データC、M、YをPmid、最小値Qminを与える濃度データC、M、YをPminとすると、
V=(Qmid−Qmin)/(Qmax−Qmin) …(6)
として、Pmax=Y、且つ、Pmin=Cのとき、
H=1−V …(7)
Pmax=Y、且つ、Pmin=Mのとき、
H=1+V …(8)
Pmax=C、且つ、Pmin=Mのとき、
H=3−V …(9)
Pmax=C、且つ、Pmin=Yのとき、
H=3+V …(10)
Pmax=M、且つ、Pmin=Yのとき、
H=5−V …(11)
Pmax=M、且つ、Pmin=Cのとき、
H=5+V …(12)
として色相Hを求める。
【0054】
また、HLS変換回路44では、明度Lを、
L=1−Qmax …(13)
として求める。彩度Sは、Qmax≦0ならば、
S=0 …(14)
とし、それ以外の場合には、
S=1−(Qmin+0.1)/(Qmax+0.1) …(15)
として求める。
【0055】
次に、前記のようにして求められた色相H、明度L、彩度Sは、C修正量算出回路46、M修正量算出回路48、Y修正量算出回路50、K修正量算出回路52にそれぞれ供給され、修正量ΔC、ΔM、ΔY、ΔKの算出処理が行われる。
【0056】
この場合、画像処理装置20を構成するディスプレイ22には、読み出されたカラー画像とともに、図17に示す色修正画面が表示される。オペレータは、この画面に従い、色修正作業を行う。
【0057】
オペレータは、カラーコレクション番号を入力することにより、各濃度データC、M、Y、Kに対して予め設定されている既存の色修正関数を選択し、既存の色修正係数aXvを呼び出して修正量ΔC、ΔM、ΔY、ΔKを算出することができる。なお、X=C、M、Y、Kであり、v=c、m、y、r、g、b、dであり、それぞれC、M、Y、Kの各版に対する6色相C、M、Y、R、G、Bおよび着目部分(Def)の色相の色修正係数であることを表すものとする。
【0058】
そこで、図8に従って修正量ΔCの算出処理を説明する。HLS変換回路44によって得られた色相Hは、単位色修正量算出回路54Cを構成する色相方向修正強度算出回路58に入力され、図9に示すように設定された色相Cを中心とする色相方向修正強度関数Fc(H)により色相修正強度vhが求められる。また、明度Lおよび彩度Sは、単位色修正量算出回路54Cを構成する明度・彩度方向修正強度算出回路60に入力され、設定された明度・彩度方向修正強度関数Gc(L,S)により明度・彩度修正強度vaが求められる。これらの色相修正強度vhおよび明度・彩度修正強度vaは、乗算器62によって乗算された後、乗算器64によって色修正係数aCcが乗算され、C色相修正強度ucが算出される。すなわち、C色相修正強度ucは、
uc=Fc(H)・Gc(L,S)・aCc …(16)
として求められる。
【0059】
同様にして、単位色修正量算出回路54M、54Y、54R、54G、54B、54Dにおいて、M色相修正強度um、Y色相修正強度uy、R色相修正強度ur、G色相修正強度ug、B色相修正強度ubおよび着目部分(Def)の色相の修正強度であるD色相修正強度udは、色相方向修正強度関数Fv(H)および明度・彩度方向修正強度関数Gv(L,S)を用いて、それぞれ、次のようにして求められる。なお、色相方向修正強度関数Fv(H)および明度・彩度方向修正強度関数Gv(L,S)におけるvは、c、m、y、r、g、b、dであり、6色相C、M、Y、R、G、Bおよび着目部分(Def)の色相の各関数であることを表すものとする。
【0060】
um=Fm(H)・Gm(L,S)・aCm …(17)
uy=Fy(H)・Gy(L,S)・aCy …(18)
ur=Fr(H)・Gr(L,S)・aCr …(19)
ug=Fg(H)・Gg(L,S)・aCg …(20)
ub=Fb(H)・Gb(L,S)・aCb …(21)
ud=Fd(H)・Gd(L,S)・aCd …(22)
以上のようにして求められたC色相修正強度uc、M色相修正強度um、Y色相修正強度uy、R色相修正強度ur、G色相修正強度ug、B色相修正強度ub、D色相修正強度udは、加算器56において加算されることで、濃度データCに対する修正量ΔCが算出される。
【0061】
ここで、着目部分の色相Dに対する色相方向修正強度関数Fd(H)および明度・彩度方向修正強度関数Gd(L,S)は、次のようにして設定することができる。
【0062】
すなわち、オペレータが図17に示す画面において、「変更」のボタンを選択すると、図18に示す修正強度関数設定画面がディスプレイ22に表示される。この画面において、オペレータは、マウス26を用いて着目部分(画像上の+が表示されている部分)を指定する。この場合、着目部分としては、複数点を指定することができる。また、所定範囲を線で囲むことで領域として指定することもできる。次いで、「階調・色修正」のボタンを選択すると、「階調修正(C)」、「階調修正(M)」、「階調修正(Y)」、「階調修正(L)」、「色修正」のメニューが表示される。オペレータは、このメニューから「色修正」を選択する。
【0063】
画像処理装置20は、オペレータがマウス26によって指定した着目部分の色相H、明度L、彩度SをHLS変換回路44により求め、得られた色相Hの値HCをピーク色相HPとし、色相幅HW(0<HW<1)をパラメータとして、色相方向修正強度関数Fd(H)を、図19に示すように、(HP−HW,0)、(HP、1)、(HP+HW,0)の3点を区間内で直線補間して設定する。なお、色相方向修正強度関数Fd(H)は、図9に示す他の色相方向修正強度関数と同様に、0<H<6の範囲で循環的に定義される関数である。そのため、HP−HW<0の場合、あるいは、HP+HW>6の場合には、例えば、色相方向修正強度関数Fr(H)のように、循環範囲に対応させて色相方向修正強度関数Fd(H)を設定する。
【0064】
なお、色相方向修正強度関数Fd(H)は、図20に示すように、(HP−HW,0)、(HP−HW/2,1)、(HP+HW/2,1)、(HP+HW,0)の4点を区間内で直線補間して設定してもよい。さらに、図21に示すように、形状係数Aを用いて、
Fd(H)=A・(H−HP)2+1 …(23)
となるように設定することもできる。
【0065】
また、明度Lは、指定した着目部分(Def)の明度Lの値LCをピーク明度LPとし、明度終値Luを、
Lu=1−LC …(24)
として、明度方向修正強度関数g1d(L)を、図22に示すように、(0,0)、(LP,1)、(1,Lu)の3点を区間内で直線補間して設定する。
【0066】
さらに、彩度Sは、指定した着目部分の彩度Sの値SCをピーク彩度SPとし、彩度終値Suを、
Su=1−SC …(25)
として、彩度方向修正強度関数g2d(L)を、図23に示すように、(0,0)、(SP,1)、(1,Su)の3点を区間内で直線補間して設定する。
【0067】
明度・彩度方向修正強度関数Gd(L,S)は、以上のようにして設定された明度方向修正強度関数g1d(L)および彩度方向修正強度関数g2d(L)から、
Gd(L,S)=g1d(L)・g2d(L) …(26)
として設定される。
【0068】
以上のようにして設定された色相方向修正強度関数Fd(H)および明度・彩度方向修正強度関数Gd(L,S)の各パラメータであるピーク色相HP、色相幅HW、ピーク明度LP、明度終値Lu、ピーク彩度SP、彩度終値Suは、図18に示すようにして表示される。オペレータは、その表示に従って色相方向修正強度関数Fd(H)および明度・彩度方向修正強度関数Gd(L,S)の形状を推定し、OKであれば「登録」のボタンを選択し、登録処理を行う。この場合、登録名を設定することができる。また、色相方向修正強度関数Fd(H)および明度・彩度方向修正強度関数Gd(L,S)は、「読出」のボタンを操作することにより、既に登録されている登録名を画面に表示させ、表示された登録名から所望の登録名を選択して各パラメータを読み出して修正することもできる。この場合には、着目部分をマウス26によって指定する作業を省くことも可能である。
【0069】
なお、着目部分を複数点指定し、あるいは、領域として指定した場合には、以下のようにして処理する。
【0070】
色相Hは、0と6とで同一色相を示す0〜6の範囲で循環する値である。そこで、指定された複数の着目点あるいは領域内の画素の色相Hの最大値および最小値を求め、その差をHAとする。一方、色相Hが3以上となるものの色相HをH−6に置き換えた後、置き換えられた色相H′の最大値および最小値を求め、その差をHBとする。次いで、HAとHBとを比較し、小さい方を与えるときの前記最大値および最小値をHmaxおよびHminとする。次に、色相HまたはH′の平均値を求める。なお、この平均値がマイナスとなるときには、その値に6を加算する。このようにして求めた色相Hの平均値をHPとする。さらに、最大値Hmaxと最小値Hminとから、
Hdif=Hmax−Hmin …(27)
とし、Hdif>2であれば、着目部分の複数の色相Hが離れ過ぎていると判定して処理を中止する。また、Hdif≦2であれば、
HW=0.5・Hdif+0.5 …(28)
とし、HW>1であれば、HW=1とし、前述したようにして色相方向修正強度関数Fd(H)を求める。
【0071】
また、明度Lの場合には、明度Lの平均値をピーク明度LPとし、また、明度Lの最大値をLmaxとして、明度終値Luを、
Lu=(Lmax−1)・LP/(1−LP)+1 …(29)
として求め、前述したようにして明度方向修正強度関数g1d(L)を求める。
【0072】
さらに、彩度Sの場合には、彩度Sの平均値をピーク彩度SPとし、また、彩度Sの最大値をSmaxとして、彩度終値Suを、
Su=(Smax−1)・SP/(1−SP)+1 …(30)
として求め、前述したようにして彩度方向修正強度関数g2d(S)を求める。
【0073】
色修正回路40においては、以上のようにして、各濃度データC、M、Y、Kに対する修正量ΔC、ΔM、ΔY、ΔKが算出される。この場合、各修正量ΔC、ΔM、ΔY、ΔKは、オペレータが指定した着目部分の色に対して所望の修正がなされている。
【0074】
これらの修正量ΔC、ΔM、ΔY、ΔKは、加算器66において、階調変換された濃度データC、M、Y、Kに加算された後、網%変換回路68に供給される。網%変換回路68では、修正された濃度データC、M、Y、Kが網%データに変換され、出力装置30に出力される。出力装置30では、前記網%からC、M、Y、Kの各版のフイルム原版あるいは刷版が作成される。
【0075】
なお、上記の説明では、階調修正関数γd、色相方向修正強度関数Fd(H)および明度・彩度方向修正強度関数Gd(L,S)を、それぞれ1つずつ設定することとしているが、必ずしもこれに限定されるものではない。例えば、肌色と空色とのように、色域が異なる複数の着目部分についてそれぞれ関数を設定し、階調変換処理および色修正処理を行うこともできる。具体的には、図12に示すトーンカーブの設定において、複数の階調修正係数設定部(Def)を設け、それぞれに対して「変更」のボタンを選択して各階調修正関数γdを設定登録した後、(1)式に加算する処理を行うことにより、登録された各階調修正関数γdを独立に重畳して作用させることができる。同様に、図17に示すカラーコレクションにおいて、複数の色修正係数設定部(Def)を設け、それぞれに対して「変更」のボタンを選択して各色相方向修正強度関数Fd(H)および明度・彩度方向修正強度関数Gd(L,S)を設定登録した後、図8に示す加算器56に加算する処理を行うことにより、登録された各色相方向修正強度関数Fd(H)および明度・彩度方向修正強度関数Gd(L,S)を独立に重畳して作用させることができる。
【0076】
【発明の効果】
以上のように、本発明によれば、画像の着目した部分の濃度に対して特定の階調修正関数を設定することができるので、所望の濃度に対して所望の階調変換を行うことができる。
【図面の簡単な説明】
【図1】本発明が適用される画像読取記録再生システムの外観構成を示す図である。
【図2】画像処理装置を中心とした画像処理回路の構成ブロック図である。
【図3】レンジ調整回路における設定濃度と内部濃度との変換特性の説明図である。
【図4】階調変換回路におけるハイライト濃度側での階調変換特性の調整処理の説明図である。
【図5】階調変換回路における中間濃度側での階調変換特性の調整処理の説明図である。
【図6】階調変換回路におけるシャドー濃度側での階調変換特性の調整処理の説明図である。
【図7】階調変換回路における着目部分の濃度近傍での階調変換特性の調整処理の説明図である。
【図8】色修正回路におけるC修正量算出回路の構成ブロック図である。
【図9】色相方向修正強度関数の説明図である。
【図10】明度の修正強度関数の説明図である。
【図11】彩度の修正強度関数の説明図である。
【図12】トーンカーブ設定画面の説明図である。
【図13】階調変換特性の調整処理の説明図である。
【図14】階調変換特性の調整処理の説明図である。
【図15】着目部分の濃度に対する階調修正関数の設定画面の説明図である。
【図16】着目部分の濃度に対する階調変換特性を修正する階調修正関数の説明図である。
【図17】色修正画面の説明図である。
【図18】着目部分の色相、明度、彩度に対する色修正の調整処理画面の説明図である。
【図19】着目部分に対する色相方向修正強度関数の説明図である。
【図20】着目部分に対する色相方向修正強度関数の他の実施形態の説明図である。
【図21】着目部分に対する色相方向修正強度関数の他の実施形態の説明図である。
【図22】着目部分に対する明度方向修正強度関数の説明図である。
【図23】着目部分に対する彩度方向修正強度関数の説明図である。
【符号の説明】
10…入力スキャナ 20…画像処理装置
22…ディスプレイ 30…出力装置
34…レンジ調整回路 36…階調変換回路
37…信号選択回路 38…UCR回路
39…K生成回路 40…色修正回路
44…HLS変換回路 46…C修正量算出回路
48…M修正量算出回路 50…Y修正量算出回路
52…K修正量算出回路
54C、54M、54Y、54R、54G、54B、54D…単位色修正量算出回路
58…色相方向修正強度算出回路 60…明度・彩度方向修正強度算出回路
68…網%変換回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method for performing gradation conversion processing or color correction processing on an image.
[0002]
[Prior art]
For example, in the field of printing and plate making, for the purpose of rationalizing work processes and improving image quality, a color image recorded on a read original is electrically processed, and consists of four plates of C, M, Y, and K. 2. Description of the Related Art An image reading / recording / reproducing system in which a film original plate or a printing plate is prepared and a desired printed matter is obtained therefrom is widely used.
[0003]
In this case, the color image read by the scanner device or the like is subjected to gradation conversion processing for each color of C, M, Y, and K in order to obtain a printed matter having a desired gradation or color tone for the target portion. Alternatively, color correction processing is performed for each of C, M, Y, and K colors.
[0004]
Specifically, in the gradation conversion process, a process of converting the density of the color image into a density that can obtain a desired output halftone percentage is performed. A tone curve which is an input density-output density conversion table used for this conversion processing is a tone correction coefficient set by the operator in the highlight (HL) part, shadow (SD) part and middle (MD) part of the color image. Adjusted according to. However, since the tone curve is adjusted by correcting a tone correction function prepared in advance for each of the HL, SD, and MD portions based on the tone correction coefficient, for example, between HL and MD When trying to fine-tune the vicinity of a specific gradation in the meantime, there was a problem that the gradation of an unintended portion also fluctuated.
[0005]
In color correction processing, generally, a correction strength function centered on six hues of C, M, Y, R, G, and B is prepared in advance, and color correction coefficients set by the operator are used. A desired color tone is obtained by correcting each correction intensity function. However, when the user wants to adjust the color tone of a specific portion, the correction intensity function is set around the above six hues, so that the color tone of an unintended portion also changes. For example, when the skin color is to be adjusted, the correction strength function centered on the R and Y hues is corrected, so that the R or Y hue changes more greatly than the skin color itself. Further, when it is desired to adjust muddy green, the correction intensity function is usually set so that a color with high saturation is corrected more, so that a brighter green changes than muddy green.
[0006]
[Problems to be solved by the invention]
The present invention has been made in order to solve the problem of, it is possible to adjust the gradation around the focused part of the image, it is never affected by the adjustment other unintended part of the An object is to provide an image processing method.
[0007]
[Means for Solving the Problems]
In order to solve the above-described problem, the present invention designates a target portion whose gradation should be corrected for an image, sets an output density correction amount for the density of the image as a maximum correction amount, and before and after the density, A gradation correction function for gradually decreasing the output density correction amount is created. Then, with this tone correction function, a preset tone conversion characteristic for converting the input density of the image into the output density is corrected, and the tone conversion process of the image is performed with the corrected tone conversion characteristic. In this case, the gradation conversion characteristics near the desired density can be corrected.
[0008]
Incidentally, if the paying attention point is more, the output density correction amount to the average value of the density of the plurality of focus points specified as the maximum correction amount, the plurality of focus points density width W that is set before and after the average value It is also possible to set based on the standard deviation σ of the concentration V P of.
[0009]
The gradation correction function created as described above can be stored for each density of the target portion, and a desired gradation correction function can be selected according to the density to correct the gradation conversion characteristics.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a diagram showing an external configuration of an image reading / recording / reproducing system to which the present invention is applied. This system includes an
[0014]
The
[0015]
FIG. 2 is a block diagram showing the configuration of the image processing circuit centering on the
[0016]
A
[0017]
A
[0018]
The
[0019]
The
[0020]
The
[0021]
The
[0022]
The color correction circuit 40 performs processing for setting the color tone in the density data C, M, and Y supplied from the
[0023]
As shown in FIG. 8, the C correction
[0024]
From the hue H, the hue direction correction
[0025]
As shown in FIG. 9, the existing hue direction correction strength function has a peak at the center of each of the six hues C, M, Y, R, G, and B, and gradually reduces each adjacent hue. The correction strength is set to 0 at the center of. Further, as shown in FIGS. 10 and 11, the existing lightness / saturation direction correction strength function has the lightness L correction strength and the saturation S correction strength as (0, 0) and (1, 1), respectively. It is set as a multiplication of these straight lines.
[0026]
The unit color correction amount calculation circuit 54D newly generates a hue direction correction intensity function and a lightness / saturation direction correction intensity function for the target portion designated by the operator, and generates these functions and a color correction coefficient set by the operator. Using this, the unit color correction amount ud is calculated.
[0027]
The M correction amount calculation circuit 48, the Y correction amount calculation circuit 50, and the K correction
[0028]
The correction amounts ΔC, ΔM, ΔY, ΔK of the density data C, M, Y, K obtained by the color correction circuit 40 are added by the
[0029]
The general configuration and operation of the image reading / recording / reproducing system to which the present invention is applied have been described above. Next, the gradation conversion process and the color correction process, which are the characteristics of the present invention, will be described in detail.
[0030]
The color image of the read original is read by the
[0031]
Therefore, the density data C, M, Y read out from the
[0032]
Next, the density-adjusted density data C, M, and Y are supplied to the
[0033]
Here, the tone curve setting screen shown in FIG. 12 is displayed on the
[0034]
First, the operator selects existing tone curves β C , β M , β Y , β K that are preset for the respective density data C, M, Y, K. A plurality of tone curves β C , β M , β Y , β K can be set according to the type of color image and the preference of the operator.
[0035]
Next, the gradation (HL), middle (MD), shadow (SD) of the selected tone curve β X (β C , β M , β Y , β K ) and the gradation of any target portion are displayed. A gradation correction coefficient g Xw for correction is set. In the following, X = C, M, Y, and K, w = h, m, s, and d, respectively, highlight (HL) and middle (MD) of density data C, M, Y, and K, respectively. , And the tone correction coefficient of the shadow (SD) and the target portion (Def). In this case, the tone correction coefficient g Xw can be called from an unillustrated memory or the like as an existing coefficient instead of being set by the operator.
[0036]
Therefore, an example of a method for adjusting the tone curve β X will be described below. First, the selected tone curve β X before adjustment is rotated by 45 ° clockwise around the origin on the highlight side and compressed by 1 / √2 in both the input density direction and the output density direction. Then, a new tone curve β X ′ is created. Next, for this new tone curve β X ′, as shown in FIG. 14, the floors set for the highlight (HL), middle (MD), shadow (SD), and target portion (Def). The tone correction functions γ h , γ m , γ s and γ d are added to obtain the tone curve β X ″ as shown in the equation (1).
[0037]
β X "= β X '+ g Xh · γ h + g Xm · γ m + g Xs · γ s + g Xd · γ d ... (1)
Here, the tone correction function γ d for the target portion (Def) can be set as follows.
[0038]
That is, when the operator selects the “change” button on the screen shown in FIG. 12, the gradation correction function setting screen shown in FIG. In this screen, the operator uses the
[0039]
Thus, for example, a case where the operator selects a menu of “gradation correction (Y)” will be described. “Tone correction (Y)” is a menu for obtaining the gradation correction function γ d , and the operator designates the target portion with the
[0040]
If the value P Y of the density data Y of the target portion designated by the operator is the peak density V P , the
V L = (1−W) · V P (2)
V U = W + (1−W) · V P (3)
Asking. Using the parameters set or obtained in this way, the tone correction function γ d is (0, 0), (V L , I L ), (V P , 1), (V U , I U). ), (1,0) as a function passing through five points. This function can be obtained by processing such as approximation by a multi-order function and quasi-Hermitian interpolation. FIG. 16 shows the tone correction function γ d when I L = I U = 0.5. The peak density V P can be set to an arbitrary value by the operator instead of the value P Y of the density data Y of the target portion.
[0041]
The operator estimates the shape of the gradation correction function γ d set as described above, and if it is OK, selects the “Register” button and performs registration processing. Note that the tone correction function γ d can be read and corrected by selecting the “read” button for the already registered peak density V P , density width W, intensity I L and I U. . In this case, it is possible to omit the work of designating the target portion with the
[0042]
When the menu of “gradation correction (L)” is selected, the peak density V P is set, for example, using the values P C , P M , and P Y of the density data C, M, and Y of the target portion.
V P = 0.3 P C +0.59 P M +0.11 P Y (4)
In the following, the tone correction function γ d can be set in the same manner.
[0043]
On the other hand, when a plurality of points of interest are designated, the concentrations of the points of interest are averaged, and the average value is set as the peak concentration V P. In addition, the standard deviation σ is obtained from each concentration and the average value, and parameters W min and W max having a relationship of 0 <W min ≦ W ≦ W max <1 are set.
W = 3 (W max −W min ) · σ / V P + W min (5)
In the following, the tone correction function γ d can be set in the same manner. The parameters W min and W max are set as values for limiting the practical use range, for example, W min = 0.25 and W max = 0.75, but should be held in the system as arbitrary parameters. You can also. When W> W max , W = W max is set.
[0044]
Further, when the target portion is designated as a region, the gradation correction function γ d can be set based on the average value of the densities of all the images included in the region.
[0045]
Based on the equation (1), the tone curve β X ″ created as described above is expanded by 1 / √2 in both the input density direction and the output density direction, and then 45 in the counterclockwise direction in FIG. A new tone curve β XN that can obtain a desired tone conversion is obtained by rotating the rotation by ゜. Among these new tone curves β XN , tone curves β CN , β MN , β YN are tone levels The tone curve β KN is set in the
[0046]
Therefore, the density data C, M, and Y supplied to the
[0047]
On the other hand, the
[0048]
The
[0049]
The density data C, M, Y, and K that have been tone-converted as described above and supplied to the
[0050]
Therefore, the processing in the color correction circuit 40 will be described in detail next.
[0051]
Density data C, M, and Y that have been range-adjusted by the
[0052]
The hue H is set to 0 ≦ H <6, the lightness L is set to 0 ≦ L <1, and the saturation S is set to 0 ≦ S <1. H = 0 represents R, H = 1 represents Y, H = 2 represents G, H = 3 represents C, H = 4 represents B, and H = 5 represents M (see FIG. 9), and L = 0 represents a dark color, L = 1 represents a light color, S = 0 represents a cloudy color, and S = 1 represents a bright color.
[0053]
The
V = (Q mid −Q min ) / (Q max −Q min ) (6)
When P max = Y and P min = C,
H = 1-V (7)
When P max = Y and P min = M,
H = 1 + V (8)
When P max = C and P min = M,
H = 3-V (9)
When P max = C and P min = Y,
H = 3 + V (10)
When P max = M and P min = Y,
H = 5-V (11)
When P max = M and P min = C,
H = 5 + V (12)
As a result, the hue H is obtained.
[0054]
In the
L = 1−Q max (13)
Asking. If saturation S is Q max ≦ 0,
S = 0 (14)
Otherwise,
S = 1- (Q min +0.1) / (Q max +0.1) (15)
Asking.
[0055]
Next, the hue H, lightness L, and saturation S obtained as described above are transferred to the C correction
[0056]
In this case, the color correction screen shown in FIG. 17 is displayed on the
[0057]
The operator selects an existing color correction function set in advance for each density data C, M, Y, and K by inputting a color correction number, and calls and corrects an existing color correction coefficient a Xv The quantities ΔC, ΔM, ΔY, ΔK can be calculated. X = C, M, Y, K, v = c, m, y, r, g, b, d, and six hues C, M, The color correction coefficients of the hues of Y, R, G, B and the target portion (Def) are shown.
[0058]
Accordingly, the correction amount ΔC calculation process will be described with reference to FIG. The hue H obtained by the
uc = F c (H) · G c (L, S) · a Cc (16)
As required.
[0059]
Similarly, in the unit color correction
[0060]
um = F m (H) · G m (L, S) · a Cm (17)
uy = F y (H) · G y (L, S) · a Cy (18)
ur = F r (H) · G r (L, S) · a Cr (19)
ug = F g (H) · G g (L, S) · a Cg (20)
ub = F b (H) · G b (L, S) · a Cb (21)
ud = F d (H) · G d (L, S) · a Cd (22)
The C hue correction strength uc, the M hue correction strength um, the Y hue correction strength ur, the R hue correction strength ur, the G hue correction strength ug, the B hue correction strength ub, and the D hue correction strength ud obtained as described above. The correction amount ΔC with respect to the density data C is calculated by adding in the
[0061]
Here, the hue direction correction strength function F d (H) and the lightness / saturation direction correction strength function G d (L, S) for the hue D of the target portion can be set as follows.
[0062]
That is, when the operator selects the “change” button on the screen shown in FIG. 17, the modified strength function setting screen shown in FIG. 18 is displayed on the
[0063]
The
[0064]
As shown in FIG. 20, the hue direction correction strength function F d (H) has (H P −H W , 0), (H P −H W / 2,1), (H P + H W / 2). , 1), (H P + H W , 0) may be set by linear interpolation within the section. Furthermore, as shown in FIG. 21, using the shape factor A,
F d (H) = A · (H−H P ) 2 +1 (23)
It can also be set to be.
[0065]
Moreover, the lightness L is the value L C of the lightness L of the specified observed part (Def) and peak brightness L P, lightness closing L u,
L u = 1−L C (24)
As shown in FIG. 22, the lightness direction corrected intensity function g1 d (L) is linearly interpolated within the interval of three points (0, 0), (L P , 1), and (1, L u ). To set.
[0066]
Further, the saturation S is the saturation S value S C of the designated target portion as the peak saturation S P , and the saturation final value S u is
S u = 1−S C (25)
As shown in FIG. 23, the saturation direction correction strength function g2 d (L) is linearly interpolated between three points (0, 0), (S P , 1), and (1, S u ) within the interval. And set.
[0067]
The brightness / saturation direction correction strength function G d (L, S) is calculated from the brightness direction correction strength function g1 d (L) and the saturation direction correction strength function g2 d (L) set as described above.
G d (L, S) = g 1 d (L) · g 2 d (L) (26)
Set as
[0068]
Peak hue H P is the parameter of the above manner hue direction correcting intensity functions are set by F d (H) and the lightness and saturation direction correcting intensity function G d (L, S), hue width H W, peak The lightness L P , lightness closing price L u , peak saturation S P , and saturation closing price S u are displayed as shown in FIG. The operator estimates the shape of the hue direction correction strength function F d (H) and the lightness / saturation direction correction strength function G d (L, S) according to the display, and if OK, selects the “Register” button. Registration processing is performed. In this case, a registered name can be set. The hue direction correction strength function F d (H) and the lightness / saturation direction correction strength function G d (L, S) display the registered names already registered by operating the “read” button. The desired registration name can be selected from the displayed registration names, and each parameter can be read and corrected. In this case, it is possible to omit the work of designating the target portion with the
[0069]
If a plurality of points of interest are designated or designated as an area, processing is performed as follows.
[0070]
Hue H is a value that circulates in the range of 0 to 6 indicating the same hue between 0 and 6. Therefore, the maximum value and the minimum value of the hue H of the pixels in a plurality of designated points of interest or pixels are obtained, and the difference is set as HA . On the other hand, after the hue H is replaced by H-6, the maximum value and the minimum value of the replaced hue H ′ are obtained, and the difference is defined as H B. Next, H A and H B are compared, and the maximum value and the minimum value when giving the smaller one are defined as H max and H min . Next, the average value of the hue H or H ′ is obtained. When this average value is negative, 6 is added to that value. The average value of the hue H obtained in this way and H P. Furthermore, from the maximum value H max and the minimum value H min ,
H dif = H max −H min (27)
If H dif > 2, it is determined that the plurality of hues H of the target portion are too far apart, and the process is stopped. If H dif ≦ 2,
H W = 0.5 · H dif +0.5 (28)
If H W > 1, H W = 1 and the hue direction correction strength function F d (H) is obtained as described above.
[0071]
In the case of the lightness L is the average value of the lightness L and peak brightness L P, also the maximum value of the lightness L as L max, lightness closing L u,
L u = (L max −1) · L P / (1−L P ) +1 (29)
As described above, the brightness direction correction strength function g1 d (L) is obtained.
[0072]
Further, in the case of the saturation S, the average value of the saturation S is the peak saturation S P , the maximum value of the saturation S is S max , and the saturation final value Su is
S u = (S max −1) · S P / (1−S P ) +1 (30)
As described above, the saturation direction correction strength function g2 d (S) is obtained.
[0073]
In the color correction circuit 40, the correction amounts ΔC, ΔM, ΔY, ΔK for the density data C, M, Y, K are calculated as described above. In this case, each of the correction amounts ΔC, ΔM, ΔY, ΔK has a desired correction for the color of the target portion designated by the operator.
[0074]
These correction amounts ΔC, ΔM, ΔY, and ΔK are added to the tone-converted density data C, M, Y, and K in the
[0075]
In the above description, the tone correction function γ d , the hue direction correction strength function F d (H), and the lightness / saturation direction correction strength function G d (L, S) are set one by one. However, it is not necessarily limited to this. For example, a tone conversion process and a color correction process can be performed by setting a function for each of a plurality of portions of interest having different color gamuts such as skin color and sky blue. Specifically, in the tone curve setting shown in FIG. 12, a plurality of tone correction coefficient setting units (Def) are provided, and each tone correction function γ d is set by selecting a “change” button for each. After the registration, by performing a process of adding to the equation (1), each registered gradation correction function γ d can be independently superimposed and acted. Similarly, in the color correction shown in FIG. 17, a plurality of color correction coefficient setting units (Def) are provided, and a “change” button is selected for each color direction correction intensity function F d (H) and brightness. After the saturation direction correction strength function G d (L, S) is set and registered, the added hue direction correction strength function F d (H) is added to the
[0076]
【The invention's effect】
As described above, according to the present invention, since a specific gradation correction function can be set for the density of the focused portion of the image, a desired gradation conversion can be performed for the desired density. I can .
[Brief description of the drawings]
FIG. 1 is a diagram showing an external configuration of an image reading / recording / reproducing system to which the present invention is applied.
FIG. 2 is a block diagram illustrating a configuration of an image processing circuit centered on an image processing apparatus.
FIG. 3 is an explanatory diagram of conversion characteristics between set density and internal density in the range adjustment circuit.
FIG. 4 is an explanatory diagram of gradation conversion characteristic adjustment processing on the highlight density side in the gradation conversion circuit.
FIG. 5 is an explanatory diagram of a gradation conversion characteristic adjustment process on the intermediate density side in the gradation conversion circuit.
FIG. 6 is an explanatory diagram of a gradation conversion characteristic adjustment process on the shadow density side in the gradation conversion circuit.
FIG. 7 is an explanatory diagram of a gradation conversion characteristic adjustment process in the vicinity of the density of a target portion in the gradation conversion circuit.
FIG. 8 is a configuration block diagram of a C correction amount calculation circuit in the color correction circuit.
FIG. 9 is an explanatory diagram of a hue direction correction intensity function.
FIG. 10 is an explanatory diagram of a brightness intensity correction function.
FIG. 11 is an explanatory diagram of a saturation intensity correction function.
FIG. 12 is an explanatory diagram of a tone curve setting screen.
FIG. 13 is an explanatory diagram of a gradation conversion characteristic adjustment process.
FIG. 14 is an explanatory diagram of a gradation conversion characteristic adjustment process.
FIG. 15 is an explanatory diagram of a setting screen for a tone correction function for the density of a target portion.
FIG. 16 is an explanatory diagram of a tone correction function for correcting tone conversion characteristics with respect to the density of a target portion.
FIG. 17 is an explanatory diagram of a color correction screen.
FIG. 18 is an explanatory diagram of a color correction adjustment processing screen for hue, brightness, and saturation of a target portion.
FIG. 19 is an explanatory diagram of a hue direction correction strength function for a target portion.
FIG. 20 is an explanatory diagram of another embodiment of a hue direction correction intensity function for a target portion.
FIG. 21 is an explanatory diagram of another embodiment of a hue direction correction strength function for a target portion.
FIG. 22 is an explanatory diagram of a brightness direction correction strength function for a target portion.
FIG. 23 is an explanatory diagram of a saturation direction correction strength function for a target portion.
[Explanation of symbols]
DESCRIPTION OF
Claims (7)
画像の着目部分を指定するステップと、
指定された前記着目部分の濃度に対する出力濃度修正量を最大修正量とし、前記濃度の前後で前記出力濃度修正量が漸減する階調修正関数を作成するステップと、
画像の入力濃度を出力濃度に変換する予め設定されている階調変換特性を前記階調修正関数により修正するステップと、
からなり、修正された前記階調変換特性により前記画像の階調変換処理を行うことを特徴とする画像処理方法。In an image processing method for performing gradation conversion processing on an image,
Specifying a target portion of the image;
Creating a gradation correction function in which the output density correction amount with respect to the specified density of the target portion is set as a maximum correction amount, and the output density correction amount gradually decreases before and after the density ;
Correcting a preset gradation conversion characteristic for converting an input density of an image into an output density by the gradation correction function;
An image processing method comprising: performing gradation conversion processing of the image using the corrected gradation conversion characteristics.
前記階調修正関数は、前記着目部分の濃度VP (0≦V P ≦1)と、前記濃度V P の前後に設定される濃度幅W(0<W<1)とから、
VL=(1−W)・VP
VU=W+(1−W)・VP
として求まる前記濃度V P の前後の濃度VL、VUと、前記濃度VL、VUに対して設定される前記出力濃度修正量IL、IUとを用いて、(0,0)、(VL,IL)、(VP,1)、(VU,IU)、(1,0)の5点を通る関数として求めることを特徴とする画像処理方法。The method of claim 1, wherein
The gradation correction function is obtained from the density V P (0 ≦ V P ≦ 1) of the target portion and the density width W (0 <W <1) set before and after the density V P.
V L = (1−W) · V P
V U = W + (1-W) · V P
The front and rear of the concentration V L, V U concentration V P which is obtained as the concentration V L, the output density correction amount is set for the V U I L, by using the I U, (0,0) , (V L , I L ), (V P , 1), (V U , I U ), and (1, 0).
前記着目部分の濃度は、指定された複数の着目点の濃度の平均値として設定されることを特徴とする画像処理方法。The method according to claim 1 or 2, wherein
The image processing method according to claim 1, wherein the density of the target portion is set as an average value of the densities of a plurality of designated target points.
前記着目部分の濃度VPは、指定された複数の着目点の濃度の平均値として設定され、前記濃度幅Wは、前記濃度VPの標準偏差σと、0<Wmin ≦W≦Wmax<1として設定されるパラメータWmin、Wmaxを用いて、
W=3(Wmax−Wmin)・σ/VP+Wmin
として設定されることを特徴とする画像処理方法。The method of claim 2, wherein
The density V P of the target portion is set as an average value of the densities of a plurality of specified target points, and the density width W is a standard deviation σ of the density V P and 0 <W min ≦ W ≦ W max. Using parameters W min and W max set as <1,
W = 3 (W max −W min ) · σ / V P + W min
An image processing method characterized by being set as:
前記階調修正関数を保存し、保存した前記階調修正関数を読み出して使用することを特徴とする画像処理方法。In the method in any one of Claims 1-4,
An image processing method, wherein the gradation correction function is stored, and the stored gradation correction function is read and used.
読み出した前記階調修正関数が修正可能であることを特徴とする画像処理方法。The method of claim 5, wherein
An image processing method, wherein the read gradation correction function can be corrected.
前記着目部分の濃度は、当該着目部分を構成する3原色C、M、Yの各濃度の1次結合によって算出されることを特徴とする画像処理方法。In the method in any one of Claims 1-6,
The image processing method, wherein the density of the target portion is calculated by a primary combination of the densities of the three primary colors C, M, and Y constituting the target portion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001014610A JP4058244B2 (en) | 2000-01-26 | 2001-01-23 | Image processing method |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000017554 | 2000-01-26 | ||
JP2000-17554 | 2000-01-26 | ||
JP2001014610A JP4058244B2 (en) | 2000-01-26 | 2001-01-23 | Image processing method |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007287262A Division JP2008054356A (en) | 2000-01-26 | 2007-11-05 | Method of processing image |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2001285638A JP2001285638A (en) | 2001-10-12 |
JP4058244B2 true JP4058244B2 (en) | 2008-03-05 |
Family
ID=26584205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001014610A Expired - Fee Related JP4058244B2 (en) | 2000-01-26 | 2001-01-23 | Image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4058244B2 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040009966A (en) * | 2002-07-26 | 2004-01-31 | 삼성전자주식회사 | Apparatus and method for correcting color |
KR100612845B1 (en) * | 2004-05-06 | 2006-08-14 | 삼성전자주식회사 | A device and method for adjusting the main color components of an image and a computer readable recording medium storing a computer program for controlling the device. |
JP2005354246A (en) * | 2004-06-09 | 2005-12-22 | Hitachi Kokusai Electric Inc | Television camera device and inspection method using television camera device |
JP2006080695A (en) * | 2004-09-07 | 2006-03-23 | Toshiba Corp | Video reproducing apparatus and video reproducing method |
JP2008099170A (en) * | 2006-10-16 | 2008-04-24 | Sharp Corp | Image processor and image processing method |
JP5264300B2 (en) * | 2008-06-05 | 2013-08-14 | キヤノン株式会社 | Image processing apparatus, control method therefor, and program |
JP4523667B2 (en) * | 2008-08-29 | 2010-08-11 | シャープ株式会社 | Video display device |
JP5814612B2 (en) * | 2011-05-11 | 2015-11-17 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
-
2001
- 2001-01-23 JP JP2001014610A patent/JP4058244B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2001285638A (en) | 2001-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7369285B2 (en) | Method of processing image | |
JP4666274B2 (en) | Color image processing apparatus and method | |
JP3679469B2 (en) | Color correction method | |
JP2009055465A (en) | Image processing device and method | |
JPH08317187A (en) | Image processing unit and method | |
JP2002016818A (en) | Color correction method and device, and recording medium | |
JPH09135316A (en) | Device and method for processing image | |
JP4058244B2 (en) | Image processing method | |
JP4244105B2 (en) | Image processing method and apparatus, and recording medium | |
JP4368833B2 (en) | Image processing apparatus, image processing method, image forming apparatus, program, and recording medium | |
JP2001169125A (en) | Image display device | |
JP4145022B2 (en) | Brightness adjusting device and operation control method thereof | |
JP4321698B2 (en) | Image output method and apparatus, and recording medium | |
JP3629128B2 (en) | Image processing method | |
JP2008054356A (en) | Method of processing image | |
JP4315027B2 (en) | Image background removal technology | |
JPH0946529A (en) | Image processing unit and method | |
JP2004312250A (en) | Image processing apparatus and image forming apparatus | |
JP4048195B2 (en) | Image processing method and apparatus | |
JP2001285656A (en) | Color image processing method and color image processing apparatus, and color image forming device | |
JP3755329B2 (en) | Black generation under color removal processing method and image processing apparatus | |
JPH04253474A (en) | Picture processing method and picture processing unit | |
JPH05115001A (en) | Color converter | |
JP2001197320A (en) | Color correcting method | |
JP4605004B2 (en) | Printing apparatus, method, and computer program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20051221 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061208 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070829 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070904 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071105 |
|
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: 20071211 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20071217 |
|
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: 20101221 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101221 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111221 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111221 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121221 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121221 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131221 Year of fee payment: 6 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |