JP3709656B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP3709656B2 JP3709656B2 JP15134897A JP15134897A JP3709656B2 JP 3709656 B2 JP3709656 B2 JP 3709656B2 JP 15134897 A JP15134897 A JP 15134897A JP 15134897 A JP15134897 A JP 15134897A JP 3709656 B2 JP3709656 B2 JP 3709656B2
- Authority
- JP
- Japan
- Prior art keywords
- color
- pupil
- red
- corrected
- image processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 210000001747 pupil Anatomy 0.000 claims description 72
- 239000003086 colorant Substances 0.000 claims description 5
- 241000593989 Scardinius erythrophthalmus Species 0.000 description 29
- 201000005111 ocular hyperemia Diseases 0.000 description 29
- 238000000034 method Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 5
- 238000009826 distribution Methods 0.000 description 4
- 238000002372 labelling Methods 0.000 description 2
- 241000692783 Chylismia claviformis Species 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- GGCZERPQGJTIQP-UHFFFAOYSA-N sodium;9,10-dioxoanthracene-2-sulfonic acid Chemical compound [Na+].C1=CC=C2C(=O)C3=CC(S(=O)(=O)O)=CC=C3C(=O)C2=C1 GGCZERPQGJTIQP-UHFFFAOYSA-N 0.000 description 1
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Exposure Control For Cameras (AREA)
- Image Processing (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、カラー写真撮影時のフラッシュ発光による被写体画像内の瞳の色調不良を補正する画像処理装置に関する。
【0002】
【従来の技術】
従来、前記瞳の色調不良いわゆる赤目を補正する技術が、いくつか提案されている (米国特許5130789号、特開平7−72537号等参照) 。
米国特許5130789号に開示される技術は、矩形マスクで対象となる目の周囲を囲み、赤目の領域の数点をポインタで指定して、色彩情報に基づいて赤目の領域を設定し、対象画素がこの領域内であれば赤目と判定して補正する。この際、補正量を領域の境界からの距離によって変えるというものである。
【0003】
また、特開平7−72537号に開示される技術は、対象となる目の領域を指定し、色彩情報により候補画素を選定し、ラベリング後、それぞれのラベルについての情報も加味して、赤目であるかどうか評価していくものである。また、補正方法に関しては赤目の本体と周辺部に分けて、補正量を変えている。
【0004】
【発明が解決しようとする課題】
しかし、いずれの方法も赤目を補正する瞳の色の選択方法に関して記載されていない。例えば、市販のレタッチングソフト(PhotoDeluxe,PictureIt)では、赤目を補正する瞳の色の選択方法は、複数のカラーパレットが表示されその中からオペレータがクリックして選択するものであった。
【0005】
上記の選択方法では、赤目を補正する瞳の色を選択する際にオペレータが選択しづらい。即ち、表示されるカラーパレットのそれぞれの色が連続して変化していないため、また、欧米人の瞳の色に関係の無い色も含まれているため選択肢が無用に多いためである。
また、表示されるカラーパレットのそれぞれの色が連続して変化していないため、補正する色の微調整ができない。
【0006】
本発明は、このような従来の課題に着目してなされたもので、カラーのフラッシュ撮影において発生する赤目現象を半自動的に補正する際にオペレータが容易かつ正確に補正できるようにした画像処理装置を提供することを目的とする。
【0007】
【課題を解決するための手段】
このため、請求項1に係る発明は、図1に示すように、
1以上の瞳の色調不良が存在する撮影画像に対し、該色調不良の画素を検出する色調不良画素検出手段と、
瞳の色の特性に基づいて、均等色空間における1つの色彩情報のみを変数として補正する瞳の色の候補を決定する補正瞳色候補決定手段と、
前記変数の値を入力して、前記瞳の色の候補の中から補正する瞳の色を選択する補正瞳色選択手段と、
前記選択した瞳の色を表示する選択瞳色表示手段と、色調不良画素を前記選択された瞳の色に補正する瞳色補正手段と、
を含んで構成したことを特徴とする。
【0008】
色(色彩)は色彩情報の2つの変数の値によって決定されるが、瞳の色の特性として、一方の変数を他方の変数の関数として近似できるので、補正瞳色候補決定手段は、瞳の色の特性に応じて、均等色空間における1つの色彩情報のみを変数として補正する瞳の色の候補を決定する。オペレータは、1つの色彩情報の変数の値を入力し、選択瞳色表示手段によって表示された瞳の色を見ながら補正する瞳の色を選択する。瞳色補正手段は、色調不良画素検出手段によって検出された色調不良画素を、選択した瞳の色に補正する。
【0009】
このように、オペレータの簡単な操作で制限された瞳の色の候補の中から容易に補正すべき瞳の色を選択して、補正することができる。
【0010】
また、請求項2に係る発明は、
前記1つの色彩情報のみの変数は、CIEL*u*v*の均等色空間におけるu*又はv*であることを特徴とする。
【0011】
CIEL*u*v*の均等色空間におけるu*又はv*は、上記の色彩情報の2つの変数であるため、その中のいずれか1つを補正する瞳の色の候補を決定する色彩情報の変数とすることができる。
また、請求項3に係る発明は、
前記1つの色彩情報のみの変数は、CIEL*a*b*の均等色空間におけるa*又はb*であることを特徴とする。
【0012】
CIEL*a*b*の均等色空間におけるa*又はb*も、上記の色彩情報の2つの変数であるため、その中のいずれか1つを補正する瞳の色の候補を決定する色彩情報の変数とすることができる。
また、請求項4に係る発明は、
前記補正瞳色選択手段は、オペレータが画面上に表示されるスライドバーの位置をセットすることにより色彩情報の値をセットする手段を含むことを特徴とする。
【0013】
このようにすれば、簡単な操作で色彩情報を入力して補正する瞳の色を選択することができる。
また、請求項5に係る発明は、
前記補正瞳色選択手段は、オペレータが色彩情報の数値を直接入力する手段を含むことを特徴とする。
【0014】
このように、色彩情報の数値を直接入力して瞳の色を選択することもできる。
【0016】
【発明の実施の形態】
以下に、本発明の実施形態を図に基づいて説明する。
図2は、一実施形態のシステム構成を示す。スチルビデオカメラにより撮影されたカラー画像のデジタル画像データ、あるいは、銀塩フィルムカメラにより撮影されフィルムに現像されたカラー画像を、スキャナで読み取ったデジタル画像データが、光ディスク等の記憶装置1に記憶されている。
【0017】
前記記憶装置1に記憶された画像データが、制御装置2によって読み出され、モニタ3に画像表示される。
オペレータは、前記モニタ3に表示された画像をみながら、フラッシュ撮影により赤目を生じている被写体画像に対し、以下のように画像領域を設定することにより、前記制御装置2が該設定された領域の中から赤目の画素を抽出して補正を行い、補正された画像をモニター3に表示する。
【0018】
以下に、本発明にかかる赤目補正のルーチンを、図3以下のフローチャートに従って説明する。
図3は、赤目補正のメインルーチンを示す。ステップ (図ではSと記す。以下同様) 1では、モニタ3に表示された瞳を含む被写体画像に対して、1対の目の周辺を囲む矩形領域を設定すると共に、一対の目の中間付近の1点を後述する色彩情報及び位置情報の基準点として指定する (図6参照) 。
【0019】
前記対象領域及び中間点の設定方法として対象領域、中間点共にオペレータが指定してもよいし、対象領域のみを指定し、中間点は計算によって求めてもよいし (例えば指定した矩形領域の中心を中間点として計算) 、中間点のみを指定し、そこを中心として予め設定されている面積を対象領域としてもよい。赤目補正の精度としては、1番目の方法が対象領域の指定と中間点の指定を共にマニュアルで行うため最も高い。
【0020】
このような領域指定の特徴は、例えば1対の瞳の中で、色調不良の瞳が1つの場合でも1対の瞳を囲む領域を指定することである。また、1対の瞳の両方が赤目の場合、1回の領域指定で同時に2つの赤目を補正することができる。例えば、前記米国特許5130789号に開示される技術では、瞳1つずつについて領域指定するため、オペレータの介入度が大きくなる。
【0021】
ステップ2では、前記ステップ1で指定した点の色彩情報、例えばR(赤),G(緑),B(青)の各明度値の合計値(R+G+B)を特徴量として演算する。
ステップ3では、前記指定点の特徴量との特徴量の差が指定した閾値以内の画素を肌色画素として、該肌色画素の領域を抽出する。即ち、前記指定点は、1対の目の中間付近の点で、鼻の付け根部分に位置するから、その点における色彩は肌色と推定されるので、該点に近い色をしている領域を肌色の画素と推定できる。この他、一般的な色彩情報である色相,彩度を特徴量としてもかまわない。このようにして、前記閾値以内の画素をラベリングし、指定点が含まれるラベリング領域を肌色領域として抽出する。
【0022】
ステップ4では、前記肌色領域内の赤の色度[=R/ (R+G+B) ]の平均値Rskinを求める。
ステップ5では、以下の演算量、及び該演算に必要なデータ量を減らすために、前記ステップ3で抽出された肌色領域に外接する矩形領域 (両目同時に外接するように目と目の間の部分も含んで横長の1つの領域) を、新たな対象領域として設定する。該矩形領域の設定は、自動で行われる。手動で行ってもよいが、自動で行うことにより、オペレータが顔以外の領域が含まれるような広い領域指定を行ってしまった場合にも対応できる。
【0023】
ステップ6では、前記対象領域を、小領域に分割する。この小領域分割のサブルーチンを、図4のフローチャートに従って説明する。
ステップ11では、前記設定された領域内でエッジ画素を求める。該エッジ画素の求め方は、例えば明度 (R+G+B) を特徴量として、対象画素の周囲4画素との明度の差の絶対値の和を求め、これが設定した閾値以上であれば対象画素をエッジ画素と判定する。この他、Sobelオペレータ、Prewittオペレータ等のエッジ検出フィルタを用いてもかまわない。
【0024】
ステップ12では、前記ステップ11で検出されたエッジ画素をラベリングする。ステップ13では、同じラベルのエッジ画素で少なくとも3方を囲まれた画素を、前記エッジ画素と同一ラベルに変更する。つまりエッジで囲まれた領域が同一のラベルとなる。このようにして、設定領域が同一のラベルを有した小領域に分割される。
【0025】
図3のメインルーチンに戻って、ステップ7では、前記分割された小領域の中から、色調不良が存在する瞳が含まれる可能性の高い領域を、瞳候補領域として選択する。
前記ステップ7の瞳候補領域選択のサブルーチンを、図5のフローチャートに従って説明する。
【0026】
本実施形態では、前記分割された複数の小領域の2つを1組として、全ての組み合わせについて以下の特徴量を演算することにより瞳らしさを求める。
ステップ21では、各小領域の赤の色度[=R/ (R+G+B) ]を求め、領域内で赤の色度の最高値 (Ri) 、及び前記ステップ1で指定した目と目の中間付近の点を原点としたとき、前記最高値 (Ri) の画素のX軸、Y軸上での位置 (Xi、Yi) を特徴量とする。ここで、iは、小領域を識別する値を表す。
【0027】
例えば、小領域1と小領域2を組み合わせるとき、以下のようにして瞳候補領域を選択する。
ステップ22では、色彩情報の特徴量C12と、位置情報の特徴量P12とを、次式により求める。
色彩情報の特徴量C12=R1+R2
位置情報の特徴量P12=X1+X2+Y1+Y2
ここで、色彩情報の特徴量は大きいほど、位置情報の特徴量は小さいほど、瞳らしさは高いので、ステップ23では、瞳らしさを示す特徴量E12を、例えばE12=C12−P12と設定し、この値が最も高い小領域の組み合わせを、少なくとも一方が色調不良 (赤目) となっている瞳を含んでいる可能性が高い瞳候補領域として抽出する。
【0028】
ここで、位置情報の特徴量が小さくなるほど、瞳らしさが高いのは、両方の瞳に赤目がある場合、目と目の間の点に対して、左右一方のX1を+、他方のX2を−として合計すると小さくなることによる。
また、一方の瞳のみ赤目である場合でもよいのは、両方の瞳の組み合わせを選択したときには、一方の瞳に赤目がなくとも位置情報P12の値が小さくなり、また、赤目が1つあるだけでも、赤目が1つもない組み合わせに比べれば色彩情報の特徴量も大きくなるためである。
【0029】
図3のメインルーチンに戻って、ステップ8では、ステップ7で抽出された瞳候補領域の中から、色調不良 (赤目) 画素を抽出する。該抽出方法は以下のとおりである。
対象画素の赤の色度[=R/ (R+G+B) ]が、ステップ2で求めた肌色領域の平均値Rskinより大きく、なおかつ、対象領域の色彩情報の特徴量 (Ri) から設定した閾値THを引いた値より大きい場合は、赤目画素とする。つまり、次式を満たす画素を赤目画素とする。
【0030】
R/ (R+G+B) >Rskin∩R/ (R+G+B) >Ri−TH
ステップ9では、ステップ8で抽出された赤目画素を適正な色調に補正する。
補正する手順を図7に示す。瞳の色をCIEL*u*v*の均等色空間で表す場合を例にとる。また、オペレータが瞳を補正する画面例を図8に示す。
以下に、図7のフローチャートを参照しつつ瞳の色調整方法を説明する。
【0031】
ステップ31では、オペレータがプレビュー画像を見ながらu*(又はv*,以下u*で代表) の値を選択する。図8ではu*は[瞳の色]というスライドバーで選択できるようになっている。但し、スライドバーで選択する以外に、直接数値で入力する方式としても構わない。
ステップ32では、以下の式に従ってv*の値を決定する。
【0032】
v*=0.71×u*−0.24 ・・・(1)
これは、欧米人の瞳の色をCIEL*u*v*の均等色空間で表すと(1) 式で表される関係式で近似できるためである。ここで、前記欧米人の瞳の色は人類全体の瞳の色を含み、日本人等東洋人の黒乃至茶褐色の瞳の色を含んでいる。欧米人の瞳のサンプルのu*v*平面での分布を図9に示す。この図より明らかなように、u*とv*との関係式は(1) 式に限らず、これらの分布をある程度近似するものであればかまわない。したがって、例えば、前記(1) 式のu*の係数0.71を0.71±Δαと変更したり、定数0.24を0.24±Δβに変更することが可能な構成としてもよく、あるいはこれら傾きとオフセット量の組み合わせ(0.71,0.24), (0.71+Δα,0.24 −Δβ) , (0.71−Δα,0.24 +Δβ) を変更可能に構成してもよく、簡単な操作性を保ちつつきめ細かな補正が可能となる。
【0033】
ステップ33では、補正する赤目画素のデジタル値をR,G,Bとしたとき、次式に従ってL*(輝度) の値を決定する。
L*=100 *G/255 ・・・(2)
ここで、(2) 式のGの代わりに、B, あるいはGとBの平均値を代入しても同様な効果が得られる。このようにG,B,GとBの平均値を明度の決定に用いるのは、赤目現象の発生によりRの成分が異常に大きい値となっているが、それ以外のG,B等の成分は元々の瞳の色の明度に応じた大きさで存在すると考えられるので、これらの値を用いて瞳の色の明度を良好に推定することができるためである。
【0034】
ステップ34では、予め用意されたL*u*v*をモニター上のR,G,Bに変換するテーブルを使ってR,G,Bに変換する。
ステップ35では上記変換されたR,G,Bを用いて瞳の色を補正する。補正後の画像はプレビュー画像として表示される。プレビュー画像は、図8のように、対象となる赤目画像を対象にしてもよいし、図10のように瞳の色だけを対象にしてもかまわない。
【0035】
次に、赤目を補正する範囲の調整方法について説明する。
オペレータがプレビュー画像を見ながら赤目を補正する範囲を選択する。図8では[瞳の範囲]というスライドバーで示したしきい値の値を選択し、赤目を補正する範囲を調整することができる。
オペレータがプレビュー画像を見て、赤目の一部しか補正されていないと判断した場合は、スライドバーにより示したしきい値を下げていき、逆に赤目でない部分まで補正されている場合は、しきい値を上げていけばよい。
【0036】
このようにすれば、選択する瞳の色が従来のように複数の不連続なカラーパッチで表示されるのではなく、1つのパラメータにより連続して変化する形で表示されるため、オペレータは選択しやすく、操作も簡単になる。
【図面の簡単な説明】
【図1】本発明の構成・機能を示すブロック図。
【図2】一実施形態のシステム構成を示す図。
【図3】同上実施形態における赤目補正のメインルーチンを示すフローチャート。
【図4】同上ルーチンの小領域分割のサブルーチンを示すフローチャート。
【図5】同上ルーチンの瞳候補領域選択のサブルーチンを示すフローチャート。
【図6】同上実施形態における対象領域の指定方法を示す図。
【図7】同上実施形態における赤目補正の詳細な処理なサブルーチンを示すフローチャート。
【図8】は同上実施形態におけるオペレータが瞳の色を補正する画面の1例を示す図。
【図9】欧米人の瞳のサンプルのu*v*平面での分布を示す図。
【図10】同上実施形態におけるオペレータが瞳の色を補正する画面の別の例を示す図。
【符号の説明】
1 記憶装置
2 制御装置
3 モニタ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus that corrects poor color tone of a pupil in a subject image due to flash emission during color photography.
[0002]
[Prior art]
Conventionally, several techniques for correcting the poor color tone of the pupil, so-called red-eye, have been proposed (see US Pat. No. 5,130,789, JP-A-7-72537, etc.).
The technology disclosed in US Pat. No. 5,130,789 discloses a rectangular mask that surrounds the target eye, designates several points in the red eye area with a pointer, sets a red eye area based on color information, If it is within this region, it is determined as red-eye and corrected. At this time, the correction amount is changed depending on the distance from the boundary of the region.
[0003]
In addition, the technique disclosed in Japanese Patent Laid-Open No. 7-72537 specifies a target eye region, selects candidate pixels based on color information, and after labeling, takes into account information about each label, It will be evaluated whether there is. As for the correction method, the correction amount is changed for the red-eye main body and the peripheral portion.
[0004]
[Problems to be solved by the invention]
However, none of the methods describes a method for selecting a pupil color for correcting red eyes. For example, in commercially available retouching software (PhotoDeluxe, PictureIt), the method of selecting the eye color for correcting the red eye is that a plurality of color palettes are displayed and the operator clicks and selects them.
[0005]
In the above selection method, it is difficult for an operator to select a pupil color for correcting red eyes. That is, lightning damage vary each color in succession a color palette to be displayed, also, because the useless many choices because it includes also the color unrelated to the color of the pupil of the Westerners.
Further, since each color of the displayed color palette does not change continuously, fine adjustment of the color to be corrected cannot be performed.
[0006]
The present invention has been made paying attention to such a conventional problem, and an image processing apparatus that enables an operator to easily and accurately correct a red-eye phenomenon that occurs in color flash photography semi-automatically. The purpose is to provide.
[0007]
[Means for Solving the Problems]
For this reason, as shown in FIG.
A poor color tone pixel detecting means for detecting a pixel of poor color tone for a captured image in which there is one or more poor pupil color tone;
Correction pupil color candidate determination means for determining a pupil color candidate to be corrected using only one color information in the uniform color space as a variable based on the characteristics of the pupil color;
Correction pupil color selection means for inputting a value of the variable and selecting a pupil color to be corrected from among the candidate pupil colors;
Selection pupil color display means for displaying the selected pupil color; pupil color correction means for correcting a poor color tone pixel to the selected pupil color;
It is characterized by including.
[0008]
The color (color) is determined by the values of the two variables of the color information, but as a characteristic of the pupil color, one variable can be approximated as a function of the other variable. In accordance with the color characteristics, a candidate for a pupil color to be corrected using only one color information in the uniform color space as a variable is determined. The operator inputs the value of one color information variable , and selects the pupil color to be corrected while viewing the pupil color displayed by the selected pupil color display means. The pupil color correction unit corrects the poor color tone pixel detected by the poor color tone pixel detection unit to the color of the selected pupil.
[0009]
Thus, by selecting the color of the pupil to be easily corrected from color candidates Eye limited by a simple operation of the operator, Ru can be corrected.
[0010]
Also, the invention according to claim 2,
Said one color information only variables, characterized in that it is a u * or v * in CIEL * u * v * uniform color space.
[0011]
Since u * or v * in the uniform color space of CIE L * u * v * is two variables of the above-described color information, color information for determining candidate pupil colors for correcting one of them. Variable.
The invention according to
It said one color information only variables, characterized in that it is a a * or b * in CIEL * a * b * uniform color space.
[0012]
Since a * or b * in the uniform color space of CIE L * a * b * is also two variables of the above-described color information, color information for determining candidate pupil colors for correcting one of them. Variable.
The invention according to claim 4
The corrected iris color selection means may comprise means for setting the value of the color information by setting the position of the slide bar operator is displayed on the screen.
[0013]
In this way, it is possible to select the color of the pupil is corrected to input color information by a simple operation.
The invention according to
The corrected iris color selection means comprising means for inputting operator values directly color information.
[0014]
In this way, Ru can also select the color of the pupil to enter a number of color information directly.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 2 shows a system configuration of one embodiment. Digital image data of color images taken by a still video camera or digital image data obtained by scanning a color image taken by a silver salt film camera and developed on a film is stored in a storage device 1 such as an optical disk. ing.
[0017]
The image data stored in the storage device 1 is read by the control device 2 and displayed on the
While viewing the image displayed on the
[0018]
The red-eye correction routine according to the present invention will be described below with reference to the flowchart of FIG.
FIG. 3 shows a main routine for red-eye correction. Step (denoted as S in the figure. The same applies hereinafter) In 1, in the subject image including the pupil displayed on the
[0019]
As the method for setting the target area and the intermediate point, the operator may specify both the target area and the intermediate point, or specify only the target area, and the intermediate point may be obtained by calculation (for example, the center of the specified rectangular area). May be designated as an intermediate point), and only an intermediate point may be designated, and an area set in advance centering on the intermediate point may be set as the target region. The accuracy of red-eye correction is the highest because the first method manually specifies the target area and the intermediate point.
[0020]
A feature of such region designation is that, for example, a region surrounding a pair of pupils is designated even when there is only one poorly-colored pupil among a pair of pupils. In addition, when both of the pair of pupils have red eyes, it is possible to correct two red eyes at the same time by specifying the region once. For example, in the technique disclosed in the above-mentioned US Pat. No. 5,130,789, since the area is designated for each pupil, the degree of operator intervention increases.
[0021]
In step 2, the color information of the point specified in step 1 above, for example, the total value (R + G + B) of each lightness value of R (red), G (green), and B (blue) is calculated as a feature amount.
In
[0022]
In step 4, an average value Rskin of red chromaticity [= R / (R + G + B)] in the flesh color region is obtained.
In
[0023]
In
In step 11, an edge pixel is obtained within the set area. The edge pixel is obtained by, for example, using the lightness (R + G + B) as a feature amount and calculating the sum of absolute values of differences in brightness from the surrounding four pixels of the target pixel. Is determined. In addition, an edge detection filter such as a Sobel operator or a Prewitt operator may be used.
[0024]
In
[0025]
Returning to the main routine of FIG. 3, in
The pupil candidate area selection subroutine of
[0026]
In the present embodiment, two of the plurality of divided small regions are regarded as one set, and the likelihood of pupils is obtained by calculating the following feature values for all combinations.
In
[0027]
For example, when combining the small area 1 and the small area 2, the pupil candidate area is selected as follows.
In step 22, the feature amount C12 of color information and the feature amount P12 of position information are obtained by the following equations.
Feature value of color information C12 = R1 + R2
Position information feature amount P12 = X1 + X2 + Y1 + Y2
Here, the greater the feature amount of the color information, the smaller the feature amount of the position information, and the higher the pupil likeness. Therefore, in Step 23, the feature amount E12 indicating the pupil likeness is set to E12 = C12-P12, for example. A combination of small regions having the highest value is extracted as a candidate pupil region that has a high possibility of including a pupil having at least one of poor color tone (red-eye).
[0028]
Here, the smaller the feature amount of the position information, the higher the probability of pupils. When both eyes have red eyes, the left and right X1 are + and the other X2 is the point between the eyes. It is because it becomes small when it adds up as-.
Further, when only one pupil has red eyes, the combination of both pupils may be selected, so that the position information P12 is reduced even if there is no red eye in one pupil, and there is only one red eye. However, the feature amount of the color information is larger than that of the combination having no red eye.
[0029]
Returning to the main routine of FIG. 3, in
The threshold value TH set based on the feature value (Ri) of the color information of the target area, in which the red chromaticity [= R / (R + G + B)] of the target pixel is larger than the average value Rskin of the skin color area obtained in step 2 If it is larger than the subtracted value, it is determined as a red-eye pixel. That is, a pixel that satisfies the following expression is a red-eye pixel.
[0030]
R / (R + G + B)> Rskin∩R / (R + G + B)> Ri−TH
In step 9, the red-eye pixel extracted in
The correction procedure is shown in FIG. The case where the pupil color is expressed in a uniform color space of CIEL * u * v * is taken as an example. FIG. 8 shows a screen example in which the operator corrects the pupil.
The pupil color adjustment method will be described below with reference to the flowchart of FIG.
[0031]
In step 31, the operator selects a value of u * (or v *, hereinafter represented by u *) while viewing the preview image. In FIG. 8, u * can be selected by a slide bar called [Eye Color]. However, in addition to selecting with the slide bar, a method of directly inputting numerical values may be used.
In step 32, the value of v * is determined according to the following equation.
[0032]
v * = 0.71 × u * −0.24 (1)
This is because the color of the eyes of Westerners can be approximated by the relational expression expressed by equation (1) when expressed in the uniform color space of CIEL * u * v *. Here, the color of the eyes of the Westerners includes the color of the eyes of the entire human race, and includes the colors of black or brown eyes of orientals such as Japanese. FIG. 9 shows the distribution of a sample of Western eyes in the u * v * plane. As is clear from this figure, the relational expression between u * and v * is not limited to the expression (1), and any distribution that approximates these distributions to some extent may be used. Therefore, for example, the u * coefficient 0.71 in the equation (1) may be changed to 0.71 ± Δα, or the constant 0.24 may be changed to 0.24 ± Δβ, or a combination of the slope and the offset amount. (0.71,0.24), (0.71 + Δα, 0.24−Δβ), (0.71−Δα, 0.24 + Δβ) may be configured to be changeable, and fine correction can be performed while maintaining simple operability.
[0033]
In
L * = 100 * G / 255 (2)
Here, the same effect can be obtained by substituting B or an average value of G and B instead of G in the equation (2). The reason why the average value of G, B, G and B is used for determining the brightness is that the R component is an abnormally large value due to the occurrence of the red-eye phenomenon, but other components such as G and B are used. Is considered to exist in a size corresponding to the brightness of the original pupil color, so that the brightness of the pupil color can be estimated well using these values.
[0034]
In step 34, L * u * v * prepared in advance is converted to R, G, B using a table for converting R, G, B on the monitor.
In step 35, the color of the pupil is corrected using the converted R, G, and B. The corrected image is displayed as a preview image. The preview image may be a target red-eye image as shown in FIG. 8, or only the pupil color as shown in FIG.
[0035]
Next, a method for adjusting the range for correcting the red eye will be described.
The operator selects a range for correcting the red eye while viewing the preview image. In FIG. 8, a threshold value indicated by a slide bar called [Pupil Range] can be selected to adjust the range for correcting the red eye.
If the operator looks at the preview image and determines that only a part of the red eye is corrected, the threshold indicated by the slide bar is lowered, and conversely, if the part is corrected to the part that is not the red eye, Raise the threshold.
[0036]
In this way, the color of the pupil to be selected is not displayed with a plurality of discontinuous color patches as in the past, but is displayed in a form that changes continuously according to one parameter, so the operator can select Easy to operate and easy to operate.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration / function of the present invention.
FIG. 2 is a diagram showing a system configuration of an embodiment.
FIG. 3 is a flowchart showing a main routine of red-eye correction in the embodiment.
FIG. 4 is a flowchart showing a sub-region division subroutine of the same routine.
FIG. 5 is a flowchart showing a pupil candidate area selection subroutine of the routine described above.
FIG. 6 is a view showing a method for specifying a target area in the embodiment;
FIG. 7 is a flowchart showing a detailed processing subroutine for red-eye correction in the embodiment;
FIG. 8 is a diagram showing an example of a screen on which the operator corrects the pupil color in the embodiment;
FIG. 9 is a diagram showing the distribution of a sample of a Western pupil in the u * v * plane.
FIG. 10 is a diagram showing another example of a screen on which the operator corrects the pupil color in the embodiment;
[Explanation of symbols]
1 Storage device 2
Claims (5)
瞳の色の特性に応じて、均等色空間における1つの色彩情報のみを変数として補正する瞳の色の候補を決定する補正瞳色候補決定手段と、
前記変数の値を入力して、前記瞳の色の候補の中から補正する瞳の色を選択する補正瞳色選択手段と、
前記選択した瞳の色を表示する選択瞳色表示手段と、
色調不良画素を前記選択された瞳の色に補正する瞳色補正手段と、
を含んで構成したことを特徴とする画像処理装置。A poor color tone pixel detecting means for detecting a pixel of poor color tone for a captured image in which there is one or more poor pupil color tone;
Correction pupil color candidate determination means for determining a pupil color candidate to be corrected using only one color information in the uniform color space as a variable according to the characteristics of the pupil color;
Correction pupil color selection means for inputting a value of the variable and selecting a pupil color to be corrected from among the candidate pupil colors;
Selected pupil color display means for displaying the selected pupil color;
Pupil color correction means for correcting poor color tone pixels to the selected pupil color;
An image processing apparatus comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15134897A JP3709656B2 (en) | 1997-06-09 | 1997-06-09 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15134897A JP3709656B2 (en) | 1997-06-09 | 1997-06-09 | Image processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH10341352A JPH10341352A (en) | 1998-12-22 |
| JP3709656B2 true JP3709656B2 (en) | 2005-10-26 |
Family
ID=15516606
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP15134897A Expired - Fee Related JP3709656B2 (en) | 1997-06-09 | 1997-06-09 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3709656B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3961734B2 (en) * | 1999-12-24 | 2007-08-22 | 富士フイルム株式会社 | Image processing method, apparatus, and recording medium |
| JP2004502212A (en) * | 2000-03-23 | 2004-01-22 | インスティチュート・フォー・インフォコム・リサーチ | Red-eye correction by image processing |
| JP4505362B2 (en) * | 2004-03-30 | 2010-07-21 | 富士フイルム株式会社 | Red-eye detection apparatus and method, and program |
| JP4492643B2 (en) * | 2007-06-01 | 2010-06-30 | セイコーエプソン株式会社 | Red-eye correction device, red-eye correction method, and red-eye correction program |
-
1997
- 1997-06-09 JP JP15134897A patent/JP3709656B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH10341352A (en) | 1998-12-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6016354A (en) | Apparatus and a method for reducing red-eye in a digital image | |
| US6728401B1 (en) | Red-eye removal using color image processing | |
| US5432863A (en) | Automated detection and correction of eye color defects due to flash illumination | |
| US7536036B2 (en) | Method and apparatus for red-eye detection in an acquired digital image | |
| JP5089405B2 (en) | Image processing apparatus, image processing method, and imaging apparatus | |
| US7174034B2 (en) | Redeye reduction of digital images | |
| US20020061142A1 (en) | Image correction apparatus | |
| US20060013478A1 (en) | Image processing device | |
| US20030142285A1 (en) | Method of detecting and correcting the red eye | |
| US20070247474A1 (en) | Method, apparatus and recording medium for image processing | |
| JP2006338377A (en) | Image correction method, apparatus, and program | |
| US20040141657A1 (en) | Image processing to remove red-eye features | |
| JPWO2005101854A1 (en) | Image processing apparatus having color misregistration correction function, image processing program, and electronic camera | |
| JPH09322192A (en) | Detection and correction device for pink-eye effect | |
| WO2007127144A1 (en) | Perceptually-derived red-eye correction | |
| JP2006033656A (en) | User interface providing device | |
| WO1999017254A1 (en) | Digital redeye removal | |
| JP2001186325A (en) | Method and device for processing picture, recording medium and transmitting medium | |
| JP2000134486A (en) | Image processing apparatus, image processing method, and storage medium | |
| US20070122034A1 (en) | Face detection in digital images | |
| JP2001148780A (en) | Method for setting red-eye correction area and red-eye correction method | |
| JP3510040B2 (en) | Image processing method | |
| US20050248664A1 (en) | Identifying red eye in digital camera images | |
| JP3709656B2 (en) | Image processing device | |
| JP3502828B2 (en) | Computer image processing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050420 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050426 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050620 |
|
| 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: 20050719 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050801 |
|
| 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: 20090819 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090819 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100819 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100819 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110819 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110819 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120819 Year of fee payment: 7 |
|
| LAPS | Cancellation because of no payment of annual fees |