JP3754786B2 - Image processing apparatus and method - Google Patents
Image processing apparatus and method Download PDFInfo
- Publication number
- JP3754786B2 JP3754786B2 JP3508997A JP3508997A JP3754786B2 JP 3754786 B2 JP3754786 B2 JP 3754786B2 JP 3508997 A JP3508997 A JP 3508997A JP 3508997 A JP3508997 A JP 3508997A JP 3754786 B2 JP3754786 B2 JP 3754786B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- search range
- detection
- range
- expanded
- 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
- User Interface Of Digital Computer (AREA)
- Image Analysis (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Digital Computer Display Output (AREA)
- Studio Devices (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は画像処理装置およびその方法に関し、例えば、画像から所望する画像領域を検出する画像処理装置およびその方法に関するものである。
【0002】
【従来の技術】
ディジタルカメラで撮影したディジタル画像データ、あるいは、銀塩カメラで撮影されたフィルムをスキャンして得たディジタル画像データに特定の処理を施して、例えば、写っている人物を識別したり、人物の顔画像を加工するなどの処理が行われる。
【0003】
【発明が解決しようとする課題】
しかし、上述した技術においては、次のような問題点がある。上記の処理を行う際には、マウスなどのポインティングデバイスにより顔や目の輪郭をトレースして、顔や目の画像領域を指定する必要がある。しかし、顔などの輪郭をトレースするには時間がかかり、オペレータの負荷が大きいという問題がある。そこで、顔などの画像領域を正確に検出する処理が望まれる。
【0004】
本発明は、上述の問題を解決するためのものであり、オペレータの負荷を軽減して、所望する画像領域を正確かつ短時間に検出することができる画像処理装置およびその方法を提供することを目的とする。
【0005】
【課題を解決するための手段】
本発明は、前記の目的を達成する一手段として、以下の構成を備える。
【0006】
本発明にかかる画像処理装置は、表示された画像の少なくとも一点を指示するための指示手段と、前記指示手段により指示された点を含む、画像領域を検索する範囲を設定し、前記指示点およびその近傍の画素集合の位置にある複数の画素、または、前記設定した検索範囲に含まれる複数の画素から画像特性を設定し、前記検索範囲から前記画像特性をもつ画像領域を検出する検出手段と、前記検出手段により検出された画像領域と前記検索範囲の関係に基づき、前記画像領域の検出の終了または継続を判定する判定手段とを有し、前記判定手段は、検出継続と判定した場合、前記検出手段に検索範囲を拡大させ、前記検出手段は、前記検索範囲を拡大した後、拡大した検索範囲に含まれる複数の画素から前記画像特性を再設定することを特徴とする。
【0007】
また、表示された画像の一部の範囲を指示する指示手段と、前記指示手段により指示された範囲を含む、画像領域を検索する範囲を設定し、前記指示範囲に含まれる画素から画像特性を取得し、前記検索範囲から前記画像特性もつ画像領域を検出する検出手段と、前記検出手段により検出された画像領域と前記検索範囲の関係に基づき、前記画像領域の検出の終了または継続を判定する判定手段とを有し、前記判定手段は、検出継続と判定した場合、前記検出手段に検索範囲を拡大させ、前記検出手段は、前記検索範囲を拡大した後、拡大した検索範囲に含まれる複数の画素から前記画像特性を再取得することを特徴とする。
【0008】
本発明にかかる画像処理方法は、表示された画像の少なくとも一点を指示させ、前記指示点を含む、画像領域を検索する範囲を設定し、前記指示点およびその近傍の画素集合の位置にある複数の画素、または、前記設定した検索範囲に含まれる複数の画素から画像特性を設定し、前記検索範囲から前記画像特性ををもつ画像領域を検出し、前記検出した画像領域と前記検索範囲の関係に基づき、前記画像領域の検出の終了または継続を判定し、前記検出を継続すると判定した場合は、前記検索範囲を拡大し、前記検索範囲を拡大した後、拡大した検索範囲に含まれる複数の画素から前記画像特性を再設定することを特徴とする。
【0009】
また、表示された画像の一部の範囲を指示させ、前記指示範囲を含む、画像領域を検索する範囲を設定し、前記指示範囲に含まれる画素から画像特性を取得し、前記検索範囲から前記画像特性もつ画像領域を検出し、前記検出した画像領域と前記検索範囲の関係に基づき、前記画像領域の検出の終了または継続を判定し、前記検出を継続すると判定した場合は、前記検索範囲を拡大し、前記検索範囲を拡大した後、拡大した検索範囲に含まれる複数の画素から前記画像特性を再取得することを特徴とする。
【0010】
【発明の実施の形態】
顔の画像領域を検出する方法として、事前に肌の色を設定して、設定された色に近い色を有する領域を画像の中から抽出する方法がある。
【0011】
しかし、人の肌の色は多種多様であり、例え同じ人物であっても、照明などの周囲環境、体調や化粧、撮影システムの状態などにより、画像として得られる肌の色は大きく変わってしまう。従って、肌の色を設定する方法では、抽出する色の範囲を広くしなければならず、その結果、顔以外の領域も顔の画像領域として検出してしまうことが多い。
【0012】
また、フラッシュ撮影された画像は、フラッシュの光が反射して肌の色が飛ぶ所謂「てかり」が生じ、同じ人物の顔にもかかわらず部分によって色が異なっていることがある。こうした色の異なる領域をまとめて、一つの顔の画像領域として検出することには困難がある。さらに、上記の方法は、画像全体について顔の画像領域の検出を行うため、演算時間が長くなるという問題がある。
【0013】
以下では、これらの問題を解決した本発明にかかる一実施形態の画像処理装置を図面を参照して詳細に説明する。
【0014】
【第1実施形態】
図8は第1実施形態の画像処理装置の構成例を示すブロック図である。
【0015】
同図において、マイクロプロセッサ(CPU)101は、ROM102や記憶部104に予め格納されたソフトウェアを実行し、バス109を介して装置全体の制御を行う。RAM103は、CPU101のワークメモリとして、あるいは、画像データを一時的に記憶するメモリとして利用される。
【0016】
記憶部104は、例えば、ハードディスクや光磁気ディスクなどの記憶媒体を用いた記憶装置で、後述する画像処理のソフトウェアや、画像データの記憶に利用される。入力・操作部110は、CPU101に指示やデータを入力するためのものであり、例えば、キーボード、マウスやディジタイザなどのポインティングデバイスである。モニタ106は、例えば、CRTやLCDなどのディスプレイであり、CPU101により、ビデオインタフェイス105を介して送られてくる画像データに基づく画像を表示する。画像入力装置108は、例えば、ディジタルカメラ、フィルムスキャナ、イメージリーダなど、ディジタル画像データを出力するデバイスである。画像入力装置108から出力される画像データは、CPU101により、外部インタフェイス107を介してRAM103や記憶部104に格納される。
【0017】
なお、図9に示す画像処理装置は、例えば、パーソナルコンピュータにモニタ106や画像入力装置108を接続することにより構成することができる。また、外部インタフェイス107は汎用のインタフェイスであり、例えば、SCSI、GPIB、セントロニクスなどのパラレルインタフェイスや、RS232、RS422、IEEE1394などのシリアルインタフェイスを用いることができる。
【0018】
図1は本実施形態の画像処理ソフトウェアの機能構成例を示すための図である。
【0019】
同図において、検出部1は、例えば顔の画像領域を検出する機能ブロックであり、CPU1と、CPU1によって実行されるソフトウェアに対応する。検出部1は、基準色設定部5、検索範囲設定・拡大部6、肌領域検出部7、終了判定部8などを含むが、それらの詳細は後述する。
【0020】
また、画像表示部2はモニタ106に、座標入力部3は入力・操作部110に、画像記憶部4はRAM103および記憶部104に、それぞれ対応する。
【0021】
図2は本実施形態における画像領域の検出処理例を示すフローチャートで、CPU101によって実行される処理であり、画像記憶部4に記憶されている処理対象の画像データにより表される画像から、顔の画像領域を検出する処理を説明するものである。
【0022】
ステップS101で、オペレータの指示に従い、処理対象の画像データを画像表示部2に表示する(図3A)。ステップS102で、オペレータは座標入力部3を用いて、画像領域を検出しようとする顔の一点、図に示す点Aを指示する(図3B)。
【0023】
ステップS103で、検索範囲設定・拡大部6により画像領域の検索範囲Bを初期設定する。検索範囲Bは点Aを含むように設定される(図3C)。ここで、いきなり広範囲を検索範囲Bに設定すると、画像領域の検索に時間がかかるだけでなく、探索対象の画像が画像全体に占める割合が小さい場合、無駄な範囲を探索することになるので、初期の検索範囲Bは、比較的小さな範囲に設定することが望ましい。また、検索範囲Bは矩形である必要はなく、どのような形状でもよい。
【0024】
ステップS104で、基準色設定部5により後述する肌領域の検出に用いる基準色を設定する。この基準色とは、検出しようとする顔の画像領域の基本的な色、つまり肌の色のことで、基準色設定部5は、点A周辺の画素の色、あるいは、検索範囲Bの全部または一部の画素の色を参照して基準色を設定する。例えば、図3Dに示すように、検索範囲Bを拡大した場合に、点Aからの距離が所定値以内(例えば点Aを中心とする半径が所定値の円内)の近傍画素の集合Cに含まれる画素を参照し、それら画素の値の例えば平均値を基準色にする。また、図3Eに示すように、点Aを例えば中心とする矩形の画素集合Dに含まれる画素の色を参照して基準色を決定してもよい。
【0025】
基準色を決定するための色空間は、モニタ画面の表示に用いられているRGB色空間でも、テレビ放送で用いられるYIQ色空間、画像圧縮などに用いられるYCbCr色空間など、どのような色空間であってもよいが、後に、複数画素間の色差を評価することを考慮すると、人間の視覚特性に近い色差を表現できる色空間が望ましく、例えば、CIEにより定義されるLab色空間またはLuv色空間などの均等色空間が望ましい。
【0026】
また、指定された点Aが顔の画像領域のエッジに近い場合、領域Cや領域Dには顔の画像領域ではない背景などが含まれる可能性があるし、ノイズなどの影響で肌の色とは異なる色の画素が領域Cや領域Dに存在する可能性もある。このような場合、背景色やノイズによって生じる色の影響を受けて、基準色が本来の肌の色とは異なった色になることもある。このような基準色のずれを考慮すると、肌の色の色相は、多くの場合、赤の近傍にあるという性質を利用して、領域Cまたは領域Dの画素の内、色相が赤から離れた画素を基準色の算出対象から外すのが望ましい。このようにすれば、背景色やノイズの影響を低減して、より正しく肌の色を表す基準色を得ることができる。
【0027】
次に、ステップS105で、肌領域検出部7により肌領域を検出する。例えば、検索範囲Bのすべての画素の色と基準色を比較し、それらの色差が所定のしきい値Tdより小さい画素の集合を、肌を構成する画素群にする。Luv色空間において、基準色が(L0,a0,b0)であり、画素の色が(L1,a1,b1)であるとすると、色差dは次の演算により得られる。
d = √{(L1 - L0)^2 + (u1 - u0)^2 + (v1 - v0)^2} …(1)
ただし、a^2はaの二乗を表す
【0028】
(1)式により得られる式差dは、視覚的に感じられる色の差に比例した値を表す。
【0029】
前述したように色差の評価は、均等色空間で行うことが望ましいが、原画像が他の色空間のデータで表されていて、その色空間から均等色空間への変換に時間がかかる場合などは、原画像の色空間で色差dを算出してもよい。例えば、原画像がRGB色空間で表されている場合、基準色が(R0,G0,B0)、画素の色が(R1,G1,B1)であるとすると、色差dは次の演算により得られる。
d = √{(R1 - R0)^2 + (G1 - G0)^2 + (B1 - B0)^2} …(2)
【0030】
(2)式の結果は、均等色空間などで算出した色差dに比べて、人間の視覚特性からずれたものになるが、演算時間を短縮したい場合などには有効である。
【0031】
図3Fは検索範囲Bを拡大した図で、この場合は領域Eが肌領域として検出される。
【0032】
ステップS106で、終了判定部8により肌領域の拡大もしくは処理の終了を判定する。この判定は、検索範囲Bと肌領域Eとの重なりを判定することにより行う。図3Fを例にとると、矩形の検索範囲Bの四辺それぞれについて、肌領域Eがどれだけ重なっているかを評価する。図3Fの場合、検索範囲Bの左辺は肌領域Eに完全に重なるので重なり率を100%とし、同様に、上辺の重なり率は80%、下辺の重なり率は50%、右辺の重なり率は0%とする。そして、所定のしきい値Tpより重なり率が大きい辺を検出した場合、終了判定部8は肌領域の拡大を指示するために終了判定フラグを‘0’にする。また、しきい値Tpより重なり率が大きい辺を検出しなかった場合、終了判定部8は処理の終了を指示するために終了判定フラグを‘1’にする。しきい値Tpは、検出精度と検出時間との兼ね合いから設定されるが、例えば5%に設定される。図3Fの例では左辺、上辺および右辺の重なり率が5%を超えるので、終了判定フラグは‘0’に設定される。
【0033】
次に、ステップS107で、終了判定フラグを判定し、‘1’であれば処理を終了し、‘0’であればステップS103に戻り、顔の画像領域の検索を続行する。
【0034】
ステップS103に処理が戻った場合、次の手順で検索範囲Bを拡大する。つまり、しきい値Tpを超える重なり率をもつ辺の情報が、終了判定部8から検索範囲設定・拡大部6に伝達される。検索範囲設定・拡大部6は、終了判定部8から指示された辺、つまり重なり率がTpより大きかった辺の方向に検索範囲Bを拡大する。図3Fの場合は、右辺を除く方向に検索範囲Bが拡大され、図3Gに示す領域B'が新たな検索範囲になる。
【0035】
ここで、範囲Bを範囲B'に拡大する率は、固定値、重なり率に比例した値にする、など様々な方法が考えられるが、例えば、元の検索範囲Bの幅がW、高さがHの場合、左および/または右方向へW×S、上および/または下方向へH×S、検索範囲を広げて領域B'とする。ここで、Sは一次元の拡大率であり、零より大きい値を有する。Sが0.5の場合、左および/または右へ0.5W、上および/または下へ0.5H、検索範囲は拡大される。なお、このような方法で検索範囲Bを拡大する場合、検出する顔の画像領域の中心近傍に点Aを指定させた方が、検出時間を短縮することができる。従って、ステップS102で点Aの指定を受ける際に「検出する画像の中心付近を指定してください」などのメッセージを表示して、オペレータに注意を促すのが好ましい。
【0036】
処理は、次にステップS104に移るが、既に基準色が決っているので何も行わずステップS105に移る。そして、ステップS105で、新たな検索範囲B'に対して肌領域の検出を行う。ただし、前回肌領域の検出を行った範囲Bに対して肌領域の検出を行う必要はない。そして、ステップS106で前回と同様の拡大/終了判定を行う。以上の処理を繰返すことにより、検索範囲Bは徐々に拡大され、顔の画像領域を囲むようになるまで拡大され、肌領域E、つまり顔の画像領域が検出される。
【0037】
また、再びステップS104に処理が移動した際に、拡大された検索範囲B'に対して、初回と同様の手続により、再度、基準色を設定してもよいし、検出された肌領域Eの画素全体の平均値を新しい基準色として設定してもよい。検索範囲Bが拡大される毎に基準色を更新すれば、画像領域の一部における局所的な色の変動の影響を低減し、正確な基準色を常に維持することができる。
【0038】
通常、検索範囲Bの拡大は画像全体の四辺で制限されるが、画像の撮影条件が限定され被写体の撮影倍率が所定値以上にならないことが分かっている場合は検索範囲に上限を設け、可能性として最も大きい顔の画像領域を検索範囲の上限としてもよい。また、ステップS102で、顔の画像全体を含む矩形領域を、点Aとともにオペレータに指定させ、指定された矩形領域を検索範囲の上限としてもよい。このようにして、検索範囲の上限を設け、終了判定部8で検索範囲が上限に達したか否かを判定すれば、必要以上に検索範囲が拡がってしまうケースを低減することができる。
【0039】
以上説明したように、本実施形態によれば、オペレータに指示された画像の一点を基準に、検索範囲を徐々に拡大することで、画像全体に検索を行う必要がなく、短時間に所望の画像領域を検出することができる。
【0040】
また、指示された画像の一点の近傍画素から例えば肌の色を表す基準色を設定し、この基準色により所望の画像領域を検出するので、例えば、照明などの周囲環境、体調や化粧、撮影システムの状態などによる影響を低減して、多種多様な肌の色をもつ人の顔の画像領域を正確に検出することができる。
【0041】
【第2実施形態】
以下、本発明にかかる第2実施形態の画像処理装置を説明する。なお、第2実施形態において、第1実施形態と略同様の構成については、同一符号を付して、その詳細説明を省略する。
【0042】
本実施形態における画像領域の検出処理は、図1に示した機能構成および図2に示した処理に基づいて実施されるが、各ステップにおける処理内容が第1実施形態と異なる。従って、以下では、処理の異なるステップだけを詳細に説明する。
【0043】
ステップS102で、オペレータにより検出する画像領域の一部を中心近傍に含んだ領域Rが指定される(図4A)。オペレータは、領域のほぼ中央に顔画像の一部が入るように領域Rを指定すればよい。また、領域Rを、顔の肌領域の輪郭にほぼ一致させれば、後の処理を短時間に終了させることもできる。
【0044】
次に、ステップS103で、検索範囲設定・拡大部6により画像領域の検索範囲Bを初期設定する。ここで、検索範囲Bは領域Rを含むように設定すればよいが、いきなり広範囲を検索範囲Bに設定すると、画像領域の検索に時間がかかるだけでなく、探索対象の画像が画像全体に占める割合が小さい場合、無駄な範囲を探索することになるので、初期の検索範囲Bは、領域Rとほぼ同じ大きさの範囲に設定するのが好ましい。図4Bは検出範囲Bを示す図であるが、この例では、オペレータにより指定された領域Rを最初の検索範囲Bにしている。また、検索範囲Bは矩形である必要はなく、どのような形状でもよい。
【0045】
ステップS104で、第1実施形態と同様の方法で、肌領域の検出に用いる基準色を設定する。ただし、横長な領域Rが指定された場合など、検索範囲Bの一端または両端が顔の画像領域からはみ出していることもあるので、図3Dや3Eに示した領域Cや領域Dを領域Bの中心近傍に縮小するなど、領域Rの形状に応じて参照領域の形状やサイズを変更することも、基準色を正確に求めるためには有効である。
【0046】
次に、ステップS105で、第1実施形態と同様に、検出範囲B内の肌領域を検出する。図4Cは検索範囲Bを拡大した図で、この場合は領域Eが肌領域として検出される。
【0047】
次に、ステップS106で、第1実施形態と同様に、肌領域の拡大もしくは処理の終了を判定する。図4Cの場合は、左辺を除く方向に検索範囲Bが拡大されることになり、新たな検索範囲B'は図4Dに示すようになる。なお、図4Dの例の場合、拡大率Sは0.3である。
【0048】
検索範囲Bの上限は、領域Rの大きさに基づいて設定してもよい。すなわち、撮影倍率が大きく顔の描画面積が大きい場合、オペレータに指定される領域Rのサイズも大きく、また描画面積が小さければ小さな領域Rが指定される傾向を利用して、検索範囲Bの上限を、指定された領域Rの例えば約二倍に設定すればよい。
【0049】
以上説明したように、本実施形態によれば、第1実施形態と同様の効果が期待できるが、オペレータに指定された領域を基準に、検索範囲を徐々に拡大することで、画像全体に検索を行う必要がなく、短時間に所望の画像領域を検出することができる。また、指定された領域Rが所望の画像領域の輪郭に近いほど短時間に画像領域を決定することができる。
【0050】
【第3実施形態】
以下、本発明にかかる第3実施形態の画像処理装置を説明する。なお、第3実施形態において、第1実施形態と略同様の構成については、同一符号を付して、その詳細説明を省略する。
【0051】
図5は本発明の第3実施形態にかかる画像処理ソフトウェアの機能構成例を示すための図で、色差のしきい値を設定するための色差しきい値設定部10以外は図1に示した構成と同じである。
【0052】
また、本実施形態における画像領域の検出処理は、図5に示す機能構成および図2に示した処理に基づいて実施されるが、各ステップにおける処理内容が第1実施形態と異なる。従って、以下では、処理の異なるステップだけを詳細に説明する。
【0053】
ステップS102で、オペレータは座標入力部3を用いて、画像領域を検出しようとする領域Sを指示する(図6A)。なお、本実施形態では、図6Aに示すように、円を含む楕円形状の領域Sにより画像検出領域が指定される例について説明する。オペレータは、領域Sのほぼ中央に検出しようとする画像領域の一部が入るように、領域Sを指定すればよい。また、顔などの画像の輪郭にほぼ沿って、楕円形状の領域Sを指定することにより、後の処理をより短時間に終了させることができる。
【0054】
次に、ステップS103で、検索範囲設定・拡大部6により画像領域の検索範囲Bを初期設定する。ここで、検索範囲Bは領域Rを含むように設定すればよいが、いきなり広範囲を検索範囲Bに設定すると、画像領域の検索に時間がかかるだけでなく、探索対象の画像が画像全体に占める割合が小さい場合、無駄な範囲を探索することになるので、初期の検索範囲Bは、領域Sとほぼ同じ大きさの範囲に設定するのが好ましい。図6Bは検出範囲Bを示す図であるが、この例では、オペレータにより指定された領域Sを最初の検索範囲Bにしている。また、検索範囲Bは楕円である必要はなく、どのような形状でもよい。
【0055】
ステップS104で、第1実施形態と同様の方法で、肌領域の検出に用いる基準色を設定する。ただし、横長な領域Sが指定された場合など、検索範囲Bの一端または両端が顔の画像領域からはみ出していることもあるので、図6Cに示す領域Cを領域Bの中心近傍に縮小するなど、領域Sの形状に応じて参照領域の形状やサイズを変更することも、基準色を正確に求めるためには有効である。勿論、領域Cは楕円である必要はなく、どのような形状でもよい。
【0056】
次に、ステップS105で、第1実施形態と同様に、検出範囲B内の肌領域を検出する。図6Dは検索範囲Bを拡大した図で、この場合は領域Eが肌領域として検出される。なお、本実施形態では、検索範囲B内のすべての画素と基準色とを比較し、それらの色差dが色差しきい値設定部10により設定されるしきい値Tdより小さい画素の集合を肌領域Eにする。
【0057】
肌領域Eの検出を正確に行うためには、検索範囲Bの大きさに応じてしきい値Tdを大きくすることが有効である。これは、撮影倍率が小さい場合は肌領域の色変化は少なく、撮影倍率が大きい場合は影やてかりなどにより、同一人物の顔の画像であっても色の変動が大きくなることによるもので、フラッシュを用いて撮影した画像などで顕著である。従って、色差しきい値設定部10により、検索範囲Bが大きくなるにつれて、撮影倍率が大きくなるにしたがって、しきい値Tdを大きく設定するのが好ましい。これにより、撮影倍率が小さい画像においては背景との分離が正確かつ容易になり、撮影倍率が大きい画像においては局所的に色が異なっていても一つの画像として正確に検出することができるようになる。
【0058】
次に、ステップS106で、第1実施形態と同様に、肌領域の拡大もしくは処理の終了を判定する。ただし、本実施形態においては、検索範囲Bの円弧と肌領域Eの重なり具合により判定を行う。つまり、図6Dに示すように、検索領域Eと重なる検索範囲Bの円弧H(点Fから点G)について、ここで検索範囲Bの周と円弧Hの比を重なり率にする。
【0059】
さらに、ステップS106において楕円を拡大すべき方向が、終了判定部8から検索範囲設定・拡大部6に伝達される。具体的には、円弧Hの略中点方向に検索範囲を拡大するように情報が伝達され、検索範囲設定・拡大部6は、伝達された拡大方向に検索範囲Bを広げて検索範囲B'にする(図6F)。検索範囲の拡大率は、固定値、重なり率に比例した値など様々な方法が考えられるが、例えば、重なり率がx%だとすると、新たな検索範囲B'の面積が検索範囲Bの面積の(1 + x/100)倍になるように拡大すればよい。
【0060】
また、検索範囲Bの周を上下左右四つ円弧に分割して、それぞれの円弧について重なり率を判定してもよい。この場合、例えば右側の円弧の重なり率が大きい場合、検索範囲Bを右方向に拡大するように楕円の離心率を変更してもよい。
【0061】
また、図5に示す色差しきい値設定部10を、図7に示す重み設定部11に置き換えることもできる。この場合、基本的な構成と動作は第3実施形態に準ずるが、色差の評価方法が異なる。
【0062】
重み設定部11は、検索範囲Bの大きさ(面積As)に基づき重みWを決定して肌領域検出部7に送る。なお、kは所定の定数である。
W = k / As …(3)
【0063】
肌領域検出部7では、局所的な色の変動は主に輝度成分の変動によることが多い性質を利用して、次式により色差の演算を行う。
d = √{W×(L1 - L0)^2 + (u1 - u0)^2 + (v1 - v0)^2} …(4)
【0064】
つまり、明度Lの差に関する項に重みを変えることにより、検索範囲Bが大きいときは色差評価における明度Lの重みを低くするといった制御を行う。これにより、撮影倍率が小さいときは背景と肌領域とを明瞭に分離し、撮影倍率が大きい場合は局所的に色が異なっていても一つの画像領域として正確に検出できるようになる。
【0065】
以上説明したように、本発明の各実施形態によれば、終了判定部8により検出終了と判定するまで、検索範囲を拡大しながら画像領域の検出を行うので、オペレータに指定された点を中心に徐々に検索範囲を拡げて、検出対象の画像領域のエッジ近傍まで検出処理を行えばよいので、演算時間を短縮することができる。また、オペレータは検出しようとする画像領域の一点、または、その画像領域を含む範囲を指定するだけでよく、オペレータの負荷を低減することができる。また、オペレータに指定された点周辺または範囲内の色情報に基づき画像領域の検出を行うので、例えば人物の顔画像を検出する場合、肌の色、環境や周辺の状況、人物のコンディションや化粧、撮影システムなどの影響を受けずに、顔画像の領域を正確に検出することができる。従って、自然画像の中から特定の人物の顔画像の領域を正確かつ短時間に検出し、オペレータの負荷を低減することができる。
【0066】
また、基準色設定部5は、検出された画像領域に含まれる画素も基準色の決定に利用することにより、検索範囲の拡大につれて基準色を更新する。従って、例えばフラッシュ撮影などにより顔にてかりが生じている場合などでも、人物の顔画像の領域を正確に検出することができる。
【0067】
また、画像領域の検出は、基準色決定部5により決定された基準色との色差が所定値以下である画素を画像領域の画素と判定するので、例えば人物の顔画像を検出する場合、環境や周囲の状況、人物のコンディションや化粧、撮影システムなどに影響されず、常に安定な画像領域の検出を行うことができる。
【0068】
また、本発明の第3実施形態によれば、検索範囲の大きさに基づき、画像領域の画素を判定する際に用いる色差のしきい値の大きさを変更するので、例えば人物の顔画像を検出する場合、環境や周囲の状況、人物のコンディションや化粧、撮影システムの影響などにより顔画像の領域内で色の変化が大きい場合でも、常に安定かつ正確に画像領域を検出することができる。
【0069】
また、検索範囲の大きさに基づき、色差を求める演算に用いる、輝度情報に関する重みを変更するので、例えば人物の顔画像を検出する場合、環境や周囲の状況、人物のコンディションや化粧、撮影システムの影響などにより顔画像の領域内で輝度の変化が大きい場合でも、常に安定かつ正確に画像領域を検出することができる。
【0070】
【他の実施形態】
なお、本発明は、複数の機器(例えばホストコンピュータ,インタフェイス機器,リーダ,プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機,ファクシミリ装置など)に適用してもよい。
【0071】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク,ハードディスク,光ディスク,光磁気ディスク,CD-ROM,CD-R,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。
【0072】
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0073】
さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0074】
本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するプログラムコードを格納することになるが、簡単に説明すると、図9のメモリマップ例に示す各モジュールを記憶媒体に格納することになる。すなわち、少なくとも「指示」および「検索」の各モジュール、好ましくは、さらに「画像特性取得」「検索範囲設定・拡大」および「検索範囲拡大/検出終了」の各モジュールのプログラムコードを記憶媒体に格納すればよい。
【0075】
【発明の効果】
以上説明したように、本発明によれば、オペレータの負荷を軽減して、所望する画像領域を正確かつ短時間に検出する画像処理装置およびその方法を提供することができる。
【図面の簡単な説明】
【図1】第1実施形態の画像処理ソフトウェアの機能構成例を示すための図、
【図2】本発明における画像領域の検出処理例を示すフローチャート、
【図3A】第1実施形態の処理を説明するための図、
【図3B】第1実施形態の処理を説明するための図、
【図3C】第1実施形態の処理を説明するための図、
【図3D】第1実施形態の処理を説明するための図、
【図3E】第1実施形態の処理を説明するための図、
【図3F】第1実施形態の処理を説明するための図、
【図3G】第1実施形態の処理を説明するための図、
【図4A】第2実施形態の処理を説明するための図、
【図4B】第2実施形態の処理を説明するための図、
【図4C】第2実施形態の処理を説明するための図、
【図4D】第2実施形態の処理を説明するための図、
【図5】第3実施形態の画像処理ソフトウェアの機能構成例を示すための図、
【図6A】第3実施形態の処理を説明するための図、
【図6B】第3実施形態の処理を説明するための図、
【図6C】第3実施形態の処理を説明するための図、
【図6D】第3実施形態の処理を説明するための図、
【図6E】第3実施形態の処理を説明するための図、
【図7】第3実施形態の画像処理ソフトウェアの機能構成の変形例を示すための図、
【図8】本発明の画像処理装置の構成例を示すブロック図、
【図9】本発明にかかるプログラムコードを格納した記憶媒体のメモリマップ例を示す図である。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus and method, and more particularly, to an image processing apparatus and method for detecting a desired image region from an image.
[0002]
[Prior art]
Digital image data taken with a digital camera or digital image data obtained by scanning a film taken with a silver salt camera is subjected to specific processing, for example, to identify a person in a photo, Processing such as processing an image is performed.
[0003]
[Problems to be solved by the invention]
However, the above-described technique has the following problems. When performing the above processing, it is necessary to trace the outline of the face and eyes with a pointing device such as a mouse to designate the image area of the face and eyes. However, tracing the contour of a face or the like takes time, and there is a problem that the load on the operator is heavy. Therefore, processing for accurately detecting an image region such as a face is desired.
[0004]
The present invention is for solving the above-described problems, and provides an image processing apparatus and method capable of accurately and quickly detecting a desired image area while reducing an operator's load. Objective.
[0005]
[Means for Solving the Problems]
The present invention has the following configuration as one means for achieving the above object.
[0006]
An image processing apparatus according to the present invention includes an instruction unit for indicating at least one point of a displayed image, and a point specified by the instruction unit. including, A range for searching for an image area is set, and image characteristics are set from a plurality of pixels at a position of a pixel set near the designated point and its vicinity, or a plurality of pixels included in the set search range, and the search range Detection means for detecting an image area having the image characteristics from the image data, and a determination means for determining the end or continuation of the detection of the image area based on the relationship between the image area detected by the detection means and the search range. When the determination unit determines that the detection is continued, the detection unit expands the search range, and the detection unit expands the search range, and then expands the search range to the image from a plurality of pixels included in the expanded search range. It is characterized by resetting the characteristics.
[0007]
Further, an instruction means for instructing a partial range of the displayed image, and a range instructed by the instruction means including, A detection unit for setting an image region search range, acquiring image characteristics from pixels included in the designated range, and detecting an image region having the image characteristic from the search range; and an image region detected by the detection unit And determining means for determining the end or continuation of detection of the image region based on the relationship between the search ranges, and when the determining means determines that detection is to be continued, the detecting means expands the search range, The detection means, after expanding the search range, re-acquires the image characteristics from a plurality of pixels included in the expanded search range.
[0008]
According to the image processing method of the present invention, at least one point of the displayed image is indicated, and the indication point is including, A range for searching for an image area is set, and image characteristics are set from a plurality of pixels at a position of a pixel set near the designated point and its vicinity, or a plurality of pixels included in the set search range, and the search range When detecting an image region having the image characteristics from, determining the end or continuation of the detection of the image region based on the relationship between the detected image region and the search range, and when determining to continue the detection, The search range is expanded, and after the search range is expanded, the image characteristics are reset from a plurality of pixels included in the expanded search range.
[0009]
Further, a part of the displayed image is indicated, and the indicated range including, A range for searching the image area is set, image characteristics are acquired from the pixels included in the designated range, an image area having the image characteristics is detected from the search range, and the relationship between the detected image area and the search range is determined. If it is determined that the detection of the image area is completed or continued and the detection is to be continued, the search range is expanded, and after the search range is expanded, a plurality of pixels included in the expanded search range The image characteristics are re-acquired.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
As a method for detecting a face image area, there is a method in which a skin color is set in advance and an area having a color close to the set color is extracted from the image.
[0011]
However, human skin colors vary widely, and even if they are the same person, the skin color obtained as an image varies greatly depending on the surrounding environment such as lighting, physical condition, makeup, and the state of the photographing system. . Therefore, in the method of setting the skin color, it is necessary to widen the range of colors to be extracted, and as a result, regions other than the face are often detected as face image regions.
[0012]
In addition, an image photographed with a flash may have a so-called “tekari” in which the light of the flash is reflected and the skin color flies, and the color may differ depending on the portion of the face of the same person. It is difficult to collectively detect such different color areas as one face image area. Further, the above method has a problem that the calculation time becomes long because the face image area is detected for the entire image.
[0013]
Hereinafter, an image processing apparatus according to an embodiment of the present invention that solves these problems will be described in detail with reference to the drawings.
[0014]
[First Embodiment]
FIG. 8 is a block diagram illustrating a configuration example of the image processing apparatus according to the first embodiment.
[0015]
In the figure, a microprocessor (CPU) 101 executes software stored in advance in a
[0016]
The
[0017]
Note that the image processing apparatus shown in FIG. 9 can be configured, for example, by connecting a
[0018]
FIG. 1 is a diagram illustrating an example of a functional configuration of image processing software according to the present embodiment.
[0019]
In the figure, a
[0020]
The
[0021]
FIG. 2 is a flowchart showing an example of image area detection processing in the present embodiment, which is processing executed by the
[0022]
In step S101, the image data to be processed is displayed on the
[0023]
In step S103, the search range setting /
[0024]
In step S104, the reference
[0025]
The color space used to determine the reference color can be any color space, such as the RGB color space used for display on the monitor screen, the YIQ color space used for television broadcasting, and the YCbCr color space used for image compression. However, in consideration of evaluating the color difference between multiple pixels later, a color space that can represent a color difference close to human visual characteristics is desirable, for example, Lab color space or Luv color defined by CIE A uniform color space such as a space is desirable.
[0026]
Also, if the specified point A is close to the edge of the face image area, the area C or D may contain a background that is not the face image area, and the skin color due to the influence of noise etc. There is also a possibility that pixels of a different color from those in region C and region D exist. In such a case, the reference color may be different from the original skin color due to the influence of the color caused by the background color and noise. In consideration of such a deviation of the reference color, the hue of the skin color is often in the vicinity of red, and the hue of the pixel in the area C or area D is far from red. It is desirable to exclude the pixel from the reference color calculation target. In this way, it is possible to obtain a reference color that more accurately represents the skin color by reducing the influence of the background color and noise.
[0027]
Next, in step S105, the skin
d = √ {(L1-L0) ^ 2 + (u1-u0) ^ 2 + (v1-v0) ^ 2}… (1)
Where a ^ 2 represents the square of a
[0028]
The formula difference d obtained by the formula (1) represents a value proportional to the visually perceived color difference.
[0029]
As described above, it is desirable to evaluate color differences in a uniform color space, but the original image is represented by data in another color space, and it takes time to convert from that color space to the uniform color space. May calculate the color difference d in the color space of the original image. For example, if the original image is represented in the RGB color space, assuming that the reference color is (R0, G0, B0) and the pixel color is (R1, G1, B1), the color difference d is obtained by the following calculation: It is done.
d = √ {(R1-R0) ^ 2 + (G1-G0) ^ 2 + (B1-B0) ^ 2}… (2)
[0030]
The result of equation (2) deviates from human visual characteristics as compared with the color difference d calculated in a uniform color space or the like, but is effective when it is desired to shorten the calculation time.
[0031]
FIG. 3F is an enlarged view of the search range B. In this case, the region E is detected as a skin region.
[0032]
In step S106, the
[0033]
Next, in step S107, an end determination flag is determined. If “1”, the process ends. If “0”, the process returns to step S103, and the search for the face image area is continued.
[0034]
When the process returns to step S103, the search range B is expanded by the following procedure. That is, information on sides having an overlapping rate exceeding the threshold value Tp is transmitted from the
[0035]
Here, there are various methods for expanding the range B to the range B ′, such as a fixed value and a value proportional to the overlap rate. For example, the width of the original search range B is W and height. Is H × S in the left and / or right direction, H × S in the upper and / or down direction, and the search range is expanded to be a region B ′. Here, S is a one-dimensional enlargement factor and has a value larger than zero. When S is 0.5, the search range is expanded by 0.5 W to the left and / or right and 0.5 H to the top and / or bottom. When the search range B is expanded by such a method, the detection time can be shortened by designating the point A near the center of the face image area to be detected. Therefore, when receiving the designation of point A in step S102, it is preferable to display a message such as “Please specify the vicinity of the center of the image to be detected” to alert the operator.
[0036]
The process then proceeds to step S104, but since the reference color has already been determined, nothing is performed and the process proceeds to step S105. In step S105, the skin area is detected for the new search range B ′. However, it is not necessary to detect the skin area for the range B in which the previous skin area was detected. In step S106, the same enlargement / end determination as in the previous time is performed. By repeating the above processing, the search range B is gradually expanded and expanded until it surrounds the face image area, and the skin area E, that is, the face image area is detected.
[0037]
Further, when the process moves to step S104 again, a reference color may be set again for the enlarged search range B ′ by the same procedure as the first time, or the detected skin region E You may set the average value of the whole pixel as a new reference color. If the reference color is updated each time the search range B is expanded, the influence of local color fluctuations in a part of the image area can be reduced, and the accurate reference color can always be maintained.
[0038]
Normally, expansion of the search range B is limited by the four sides of the entire image, but if the shooting conditions of the image are limited and it is known that the shooting magnification of the subject will not exceed the predetermined value, an upper limit can be set in the search range The image area of the face that has the largest characteristic may be set as the upper limit of the search range. In step S102, the operator may designate a rectangular area including the entire face image together with the point A, and the designated rectangular area may be set as the upper limit of the search range. In this way, if the upper limit of the search range is provided and the
[0039]
As described above, according to the present embodiment, it is not necessary to search the entire image by gradually expanding the search range based on one point of the image instructed by the operator, and the desired range can be obtained in a short time. An image area can be detected.
[0040]
In addition, a reference color representing, for example, skin color is set from a pixel near one point of the designated image, and a desired image area is detected based on this reference color. For example, ambient environment such as lighting, physical condition and makeup, photography It is possible to accurately detect an image region of a person's face having various skin colors by reducing the influence of the system state and the like.
[0041]
Second Embodiment
The image processing apparatus according to the second embodiment of the present invention will be described below. Note that in the second embodiment, identical symbols are assigned to configurations similar to those in the first embodiment and detailed description thereof is omitted.
[0042]
The image region detection processing in the present embodiment is performed based on the functional configuration shown in FIG. 1 and the processing shown in FIG. 2, but the processing content in each step is different from that in the first embodiment. Therefore, in the following, only the different steps of the process will be described in detail.
[0043]
In step S102, an area R including a part of the image area detected by the operator in the vicinity of the center is designated (FIG. 4A). The operator may specify the region R so that a part of the face image enters approximately the center of the region. Further, if the region R is substantially matched with the contour of the facial skin region, the subsequent processing can be completed in a short time.
[0044]
Next, in step S103, the search range setting /
[0045]
In step S104, a reference color used for skin area detection is set by the same method as in the first embodiment. However, since one or both ends of the search range B may protrude from the face image area, such as when a horizontally long area R is specified, the area C or area D shown in FIGS. Changing the shape and size of the reference region according to the shape of the region R, such as reduction to the vicinity of the center, is also effective for accurately obtaining the reference color.
[0046]
Next, in step S105, a skin region within the detection range B is detected as in the first embodiment. FIG. 4C is an enlarged view of search range B. In this case, region E is detected as a skin region.
[0047]
Next, in step S106, as in the first embodiment, the enlargement of the skin area or the end of the process is determined. In the case of FIG. 4C, the search range B is expanded in the direction excluding the left side, and the new search range B ′ is as shown in FIG. 4D. In the case of the example in FIG. 4D, the enlargement factor S is 0.3.
[0048]
The upper limit of the search range B may be set based on the size of the region R. In other words, if the shooting magnification is large and the drawing area of the face is large, the size of the area R specified by the operator is large, and if the drawing area is small, the small area R is specified and the upper limit of the search range B is used. May be set to about twice the specified region R, for example.
[0049]
As described above, according to the present embodiment, the same effect as in the first embodiment can be expected, but the entire image is searched by gradually expanding the search range based on the region designated by the operator. Therefore, it is possible to detect a desired image area in a short time. In addition, an image region can be determined in a shorter time as the designated region R is closer to the contour of the desired image region.
[0050]
[Third Embodiment]
The image processing apparatus according to the third embodiment of the present invention will be described below. Note that in the third embodiment, identical symbols are assigned to configurations similar to those in the first embodiment and detailed description thereof is omitted.
[0051]
FIG. 5 is a diagram for illustrating a functional configuration example of the image processing software according to the third embodiment of the present invention, except for the color difference
[0052]
Further, the image region detection processing in the present embodiment is performed based on the functional configuration shown in FIG. 5 and the processing shown in FIG. 2, but the processing content in each step is different from that in the first embodiment. Therefore, in the following, only the different steps of the process will be described in detail.
[0053]
In step S102, the operator uses the coordinate
[0054]
Next, in step S103, the search range setting /
[0055]
In step S104, a reference color used for skin area detection is set by the same method as in the first embodiment. However, when a horizontally long area S is specified, one or both ends of the search range B may protrude from the face image area, so the area C shown in FIG. Changing the shape and size of the reference region according to the shape of the region S is also effective for accurately obtaining the reference color. Of course, the region C does not have to be an ellipse and may have any shape.
[0056]
Next, in step S105, a skin region within the detection range B is detected as in the first embodiment. FIG. 6D is an enlarged view of the search range B. In this case, the region E is detected as a skin region. In the present embodiment, all pixels in the search range B are compared with the reference color, and a set of pixels in which the color difference d is smaller than the threshold Td set by the color difference
[0057]
In order to accurately detect the skin region E, it is effective to increase the threshold value Td according to the size of the search range B. This is because when the shooting magnification is low, the color change of the skin area is small, and when the shooting magnification is high, the color variation is large even for the face image of the same person due to shadows and light. This is especially true for images taken using a flash. Therefore, it is preferable that the color difference
[0058]
Next, in step S106, as in the first embodiment, the enlargement of the skin area or the end of the process is determined. However, in the present embodiment, the determination is made based on the degree of overlap between the arc of the search range B and the skin region E. That is, as shown in FIG. 6D, for the arc H of the search range B that overlaps the search area E (from point F to point G), the ratio of the circumference of the search range B to the arc H is used as the overlap ratio.
[0059]
Further, in step S106, the direction in which the ellipse should be enlarged is transmitted from the
[0060]
Further, the circumference of the search range B may be divided into upper, lower, left, and right arcs, and the overlap rate may be determined for each arc. In this case, for example, when the overlap ratio of the right arc is large, the eccentricity of the ellipse may be changed so that the search range B is expanded in the right direction.
[0061]
Further, the color difference
[0062]
The
W = k / As (3)
[0063]
The skin
d = √ {W × (L1-L0) ^ 2 + (u1-u0) ^ 2 + (v1-v0) ^ 2}… (4)
[0064]
That is, by changing the weight to the term relating to the difference in lightness L, when the search range B is large, control is performed such that the weight of lightness L in the color difference evaluation is lowered. As a result, when the shooting magnification is low, the background and the skin area are clearly separated, and when the shooting magnification is high, even if the color is locally different, it can be accurately detected as one image area.
[0065]
As described above, according to each embodiment of the present invention, the image area is detected while the search range is expanded until the
[0066]
Further, the reference
[0067]
In addition, since the image area is detected by determining that a pixel whose color difference from the reference color determined by the reference
[0068]
Further, according to the third embodiment of the present invention, the threshold value of the color difference used when determining the pixels of the image region is changed based on the size of the search range, so that, for example, a human face image is In the case of detection, an image region can always be detected stably and accurately even when there is a large color change in the region of the face image due to the environment, surrounding conditions, the condition and makeup of a person, the influence of the photographing system, and the like.
[0069]
In addition, since the weight related to the luminance information used in the calculation for obtaining the color difference is changed based on the size of the search range, for example, when detecting a face image of a person, the environment and surrounding conditions, the condition and makeup of the person, a photographing system Even when the luminance change is large in the face image area due to the influence of the image, the image area can always be detected stably and accurately.
[0070]
[Other Embodiments]
Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), or a device (for example, a copier, a facsimile device, etc.) including a single device. You may apply to.
[0071]
Another object of the present invention is to supply a storage medium storing software program codes for realizing the functions of the above-described embodiments to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in the. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
[0072]
Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0073]
Further, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted in the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the card or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.
[0074]
When the present invention is applied to the above-described storage medium, the storage medium stores program codes corresponding to the flowcharts described above. To briefly explain, each module shown in the memory map example of FIG. Is stored in a storage medium. That is, the program codes of at least the “instruction” and “search” modules, and preferably the “image characteristic acquisition”, “search range setting / expansion”, and “search range expansion / detection end” modules are stored in the storage medium. do it.
[0075]
【The invention's effect】
As described above, according to the present invention, it is possible to provide an image processing apparatus and method for detecting a desired image area accurately and in a short time by reducing the load on the operator.
[Brief description of the drawings]
FIG. 1 is a diagram for illustrating a functional configuration example of image processing software according to a first embodiment;
FIG. 2 is a flowchart showing an example of image area detection processing in the present invention;
FIG. 3A is a diagram for explaining processing of the first embodiment;
FIG. 3B is a diagram for explaining processing of the first embodiment;
FIG. 3C is a diagram for explaining processing of the first embodiment;
FIG. 3D is a diagram for explaining processing of the first embodiment;
FIG. 3E is a diagram for explaining processing of the first embodiment;
FIG. 3F is a diagram for explaining processing of the first embodiment;
FIG. 3G is a diagram for explaining processing of the first embodiment;
FIG. 4A is a diagram for explaining processing of the second embodiment;
FIG. 4B is a diagram for explaining processing of the second embodiment;
FIG. 4C is a diagram for explaining processing of the second embodiment;
FIG. 4D is a diagram for explaining processing of the second embodiment;
FIG. 5 is a diagram for illustrating a functional configuration example of image processing software according to a third embodiment;
FIG. 6A is a diagram for explaining processing of the third embodiment;
FIG. 6B is a diagram for explaining processing of the third embodiment;
FIG. 6C is a diagram for explaining processing of the third embodiment;
FIG. 6D is a diagram for explaining processing of the third embodiment;
FIG. 6E is a diagram for explaining processing of the third embodiment;
FIG. 7 is a view for showing a modification of the functional configuration of the image processing software of the third embodiment;
FIG. 8 is a block diagram showing a configuration example of an image processing apparatus according to the present invention;
FIG. 9 is a diagram showing an example of a memory map of a storage medium storing program codes according to the present invention.
Claims (10)
前記指示手段により指示された点を含む、画像領域を検索する範囲を設定し、前記指示点およびその近傍の画素集合の位置にある複数の画素、または、前記設定した検索範囲に含まれる複数の画素から画像特性を設定し、前記検索範囲から前記画像特性をもつ画像領域を検出する検出手段と、
前記検出手段により検出された画像領域と前記検索範囲の関係に基づき、前記画像領域の検出の終了または継続を判定する判定手段とを有し、
前記判定手段は、検出継続と判定した場合、前記検出手段に検索範囲を拡大させ、前記検出手段は、前記検索範囲を拡大した後、拡大した検索範囲に含まれる複数の画素から前記画像特性を再設定することを特徴とする画像処理装置。Instruction means for indicating at least one point of the displayed image;
A range for searching an image area including the point indicated by the indication means is set, and a plurality of pixels at the position of the set of pixels near the indication point and its vicinity, or a plurality of pixels included in the set search range Detecting means for setting an image characteristic from a pixel and detecting an image region having the image characteristic from the search range;
Determination means for determining the end or continuation of detection of the image area based on the relationship between the image area detected by the detection means and the search range;
When the determination means determines that detection is continued, the detection means expands the search range, and the detection means expands the search range, and then extracts the image characteristics from a plurality of pixels included in the expanded search range. An image processing apparatus that is reset.
前記指示手段により指示された範囲を含む、画像領域を検索する範囲を設定し、前記指示範囲に含まれる画素から画像特性を取得し、前記検索範囲から前記画像特性をもつ画像領域を検出する検出手段と、
前記検出手段により検出された画像領域と前記検索範囲の関係に基づき、前記画像領域の検出の終了または継続を判定する判定手段とを有し、
前記判定手段は、検出継続と判定した場合、前記検出手段に検索範囲を拡大させ、前記検出手段は、前記検索範囲を拡大した後、拡大した検索範囲に含まれる複数の画素から前記画像特性を再取得することを特徴とする画像処理装置。Instruction means for indicating a partial range of the displayed image;
Detection that sets a range for searching an image area including a range specified by the instruction means, acquires image characteristics from pixels included in the specified range, and detects an image area having the image characteristics from the search range Means,
Determination means for determining the end or continuation of detection of the image area based on the relationship between the image area detected by the detection means and the search range;
When the determination means determines that detection is continued, the detection means expands the search range, and the detection means expands the search range, and then extracts the image characteristics from a plurality of pixels included in the expanded search range. An image processing apparatus characterized by being reacquired.
前記指示点を含む、画像領域を検索する範囲を設定し、
前記指示点およびその近傍の画素集合の位置にある複数の画素、または、前記設定した検索範囲に含まれる複数の画素から画像特性を設定し、
前記検索範囲から前記画像特性をもつ画像領域を検出し、
前記検出した画像領域と前記検索範囲の関係に基づき、前記画像領域の検出の終了または継続を判定し、
前記検出を継続すると判定した場合は、前記検索範囲を拡大し、前記検索範囲を拡大した後、拡大した検索範囲に含まれる複数の画素から前記画像特性を再設定することを特徴とする画像処理方法。Point at least one point on the displayed image,
Set a range to search the image area including the indicated point,
Set image characteristics from a plurality of pixels at a position of the set of pixels in the vicinity of the designated point or the vicinity thereof, or a plurality of pixels included in the set search range,
Detecting an image region having the image characteristics from the search range;
Based on the relationship between the detected image area and the search range, determine the end or continuation of detection of the image area,
When it is determined that the detection is to be continued, the search range is expanded, and after the search range is expanded, the image characteristics are reset from a plurality of pixels included in the expanded search range. Method.
前記指示範囲を含む、画像領域を検索する範囲を設定し、
前記指示範囲に含まれる画素から画像特性を取得し、
前記検索範囲から前記画像特性をもつ画像領域を検出し、
前記検出した画像領域と前記検索範囲の関係に基づき、前記画像領域の検出の終了または継続を判定し、
前記検出を継続すると判定した場合は、前記検索範囲を拡大し、前記検索範囲を拡大した後、拡大した検索範囲に含まれる複数の画素から前記画像特性を再取得することを特徴とする画像処理方法。Instruct a partial range of the displayed image,
Set the range to search the image area including the indicated range,
Obtaining image characteristics from pixels included in the indicated range;
Detecting an image region having the image characteristics from the search range;
Based on the relationship between the detected image area and the search range, determine the end or continuation of detection of the image area,
When it is determined that the detection is to be continued, the search range is expanded, and after the search range is expanded, the image characteristics are re-acquired from a plurality of pixels included in the expanded search range. Method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3508997A JP3754786B2 (en) | 1997-02-19 | 1997-02-19 | Image processing apparatus and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3508997A JP3754786B2 (en) | 1997-02-19 | 1997-02-19 | Image processing apparatus and method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH10232935A JPH10232935A (en) | 1998-09-02 |
| JP3754786B2 true JP3754786B2 (en) | 2006-03-15 |
Family
ID=12432243
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3508997A Expired - Fee Related JP3754786B2 (en) | 1997-02-19 | 1997-02-19 | Image processing apparatus and method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3754786B2 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5197328B2 (en) * | 2008-11-28 | 2013-05-15 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
| JP5297530B2 (en) * | 2009-07-15 | 2013-09-25 | 株式会社東芝 | Image processing apparatus and interface apparatus |
| JP2012195812A (en) * | 2011-03-17 | 2012-10-11 | Nec Saitama Ltd | Face detection device, face detection method, and program |
| CN103971361B (en) * | 2013-02-06 | 2017-05-10 | 富士通株式会社 | Image processing device and method |
| JP5539555B2 (en) * | 2013-02-07 | 2014-07-02 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
| JP6265640B2 (en) * | 2013-07-18 | 2018-01-24 | キヤノン株式会社 | Image processing apparatus, imaging apparatus, image processing method, and program |
-
1997
- 1997-02-19 JP JP3508997A patent/JP3754786B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH10232935A (en) | 1998-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3684017B2 (en) | Image processing apparatus and method | |
| US9959649B2 (en) | Image compositing device and image compositing method | |
| US7444017B2 (en) | Detecting irises and pupils in images of humans | |
| JP4845715B2 (en) | Image processing method, image processing apparatus, program, and storage medium | |
| US7116820B2 (en) | Detecting and correcting red-eye in a digital image | |
| JP5538909B2 (en) | Detection apparatus and method | |
| US7340097B2 (en) | Image processing apparatus, image processing method, and recording medium | |
| EP1571820A2 (en) | Image processing device and method, image projection apparatus, and program | |
| JPH09322192A (en) | Detection and correction device for pink-eye effect | |
| JPH11136498A (en) | Computer program matter for red eye detection | |
| KR20040089122A (en) | Image processing to remove red-eye features without user interaction | |
| US9131193B2 (en) | Image-processing device removing encircling lines for identifying sub-regions of image | |
| JP4251635B2 (en) | Image processing apparatus and method | |
| JP3754786B2 (en) | Image processing apparatus and method | |
| JP4148903B2 (en) | Image processing apparatus, image processing method, and digital camera | |
| US7349558B2 (en) | Image processing method, image processing apparatus, storage medium and program | |
| US7831095B2 (en) | Image processing method and image processing apparatus | |
| US20250193355A1 (en) | Image file creation method and image file creation device | |
| JP2005346474A (en) | Image processing method and apparatus, program, and storage medium | |
| EP0849935A2 (en) | Illuminant color detection | |
| JP3927979B2 (en) | Image processing apparatus and method | |
| JP2002247596A (en) | Program for specifying red eye area in image, image processor and recording medium | |
| JP2023026293A (en) | Information processor, information processing system, information processing method, and program | |
| JP4222013B2 (en) | Image correction apparatus, character recognition method, and image correction program | |
| JP2004242272A (en) | Color defective area correction method, color defective area correction processing program, color area specifying method, color area specifying processing program, and image processing apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20041111 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20041122 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050121 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050506 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050705 |
|
| 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: 20051202 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20051219 |
|
| 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: 20081222 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091222 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091222 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101222 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111222 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121222 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131222 Year of fee payment: 8 |
|
| LAPS | Cancellation because of no payment of annual fees |