JP5046809B2 - Image processing apparatus and method, and imaging apparatus - Google Patents
Image processing apparatus and method, and imaging apparatus Download PDFInfo
- Publication number
- JP5046809B2 JP5046809B2 JP2007229452A JP2007229452A JP5046809B2 JP 5046809 B2 JP5046809 B2 JP 5046809B2 JP 2007229452 A JP2007229452 A JP 2007229452A JP 2007229452 A JP2007229452 A JP 2007229452A JP 5046809 B2 JP5046809 B2 JP 5046809B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- image processing
- color
- detected
- color data
- 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
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Studio Devices (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
Description
本発明は、画像処理装置及び方法、及び撮像装置に関し、更に詳しくは、撮像して得た画像から任意の対象物の画像領域を検出可能な画像処理装置及び方法、及び撮像装置に関する。 The present invention relates to an image processing apparatus and method, and an imaging apparatus, and more particularly to an image processing apparatus and method and an imaging apparatus that can detect an image area of an arbitrary object from an image obtained by imaging.
従来、画像データから所定の条件を満たす対象物を繰り返し検出する機能を有する装置がある。そのような装置を有する撮像装置において、撮像して得た画像信号に対して、所定の条件を満たす対象物の部分とその他の部分とで画像処理の方法を異ならせる技術が多々開示されている(例えば、特許文献1参照)。さらに、所定の条件を満たす対象物が検出された場合に、検出された対象物の特徴に基づいた固有の画像処理方法により画像データを処理する技術が開示されている(例えば、特許文献2参照)。 Conventionally, there is an apparatus having a function of repeatedly detecting an object that satisfies a predetermined condition from image data. In an imaging apparatus having such an apparatus, many techniques for differentiating an image processing method between an object part that satisfies a predetermined condition and other parts of an image signal obtained by imaging are disclosed. (For example, refer to Patent Document 1). Furthermore, a technique is disclosed in which image data is processed by a unique image processing method based on the characteristics of a detected object when an object that satisfies a predetermined condition is detected (see, for example, Patent Document 2). ).
しかしながら、特許文献2のように、所定の条件を満たす対象物を検出し、検出した対象物の特徴を生かした固有の画像処理方法を行う撮像装置では、必ずしも撮影者が所望する画像処理の結果を得られるとは限らなかった。 However, as in Patent Document 2, in an imaging apparatus that detects an object that satisfies a predetermined condition and performs a unique image processing method that makes use of the characteristics of the detected object, the image processing result desired by the photographer is not necessarily obtained. Was not always possible.
本発明は上記問題点を鑑みてなされたものであり、撮像を行って得られた画像の画像信号を処理する本発明の画像処理装置は、特定対象物に対応する複数の色領域を予め記憶した記憶手段と、前記画像から、予め設定された特徴を有する対象物を検出する検出手段と、前記検出手段により検出された対象物が、前記記憶手段に記憶された前記特定対象物であるかどうかを判断する判断手段と、前記判断手段により、前記記憶手段に記憶された前記特定対象物であると判断されたことに応じて、前記特定対象物と判断された対象物を表す画像領域の色データを、前記記憶手段に記憶された前記特定対象物に対応する複数の色領域のうち、当該複数の色領域及び前記色データを表す座標系において、前記検出された対象物を表す画像領域の色データから最短の距離にある色領域内にある色データに変換する画像処理を行う画像処理手段とを有する。 The present invention has been made in view of the above problems, and an image processing apparatus of the present invention that processes an image signal of an image obtained by performing imaging stores a plurality of color regions corresponding to a specific object in advance. Storage means, detection means for detecting an object having a preset characteristic from the image, and whether the object detected by the detection means is the specific object stored in the storage means A determination means for determining whether or not an image area representing the object determined to be the specific object in response to the determination by the determination means being determined to be the specific object stored in the storage means; An image area representing the detected object in a coordinate system representing the color data and the color data among a plurality of color areas corresponding to the specific object stored in the storage means. Color day And an image processing means for performing image processing for converting the color data in the color area in a shortest distance from.
また、本発明の撮像装置は、被写体光学像を電気的な画像信号に変換して出力する撮像手段と、上記画像処理装置とを備える。 The image pickup apparatus of the present invention includes an image pickup unit that converts a subject optical image into an electrical image signal and outputs the image signal, and the image processing apparatus.
また、撮像を行って得られた画像の画像信号を処理する本発明の画像処理方法は、検出手段が、前記画像から、予め設定された特徴を有する対象物を検出する検出工程と、判断手段が、前記検出工程により検出された対象物が、記憶手段に記憶された特定対象物であるかどうかを判断する判断工程と、画像処理手段が、前記判断工程により、前記記憶手段に記憶された前記特定対象物であると判断されたことに応じて、前記特定対象物と判断された対象物を表す画像領域の色データを、前記記憶手段に予め記憶された前記特定対象物に対応する複数の色領域のうち、当該複数の色領域及び前記色データを表す座標系において、前記検出された対象物を表す画像領域の色データから最短の距離にある色領域内にある色データに変換する画像処理を行う画像処理工程とを有する。 Further, the image processing method of the present invention for processing an image signal of an image obtained by performing imaging includes a detection step in which the detection means detects an object having a preset feature from the image, and a determination means. However, the determination step for determining whether the object detected by the detection step is a specific object stored in the storage means, and the image processing means are stored in the storage means by the determination step. A plurality of color data corresponding to the specific object pre-stored in the storage means are stored in the storage means for color data of an image area representing the object determined to be the specific object in response to being determined to be the specific object In the coordinate system representing the plurality of color regions and the color data, the color data of the image region is converted from the color data of the image region representing the detected object into color data in the color region at the shortest distance. Image processing And an image processing step of performing.
本発明によれば、所望の対象物が所望の色で表示されるように補正することができる。 ADVANTAGE OF THE INVENTION According to this invention, it can correct | amend so that a desired target object may be displayed with a desired color.
以下、添付図面を参照して本発明を実施するための最良の形態を詳細に説明する。 The best mode for carrying out the present invention will be described below in detail with reference to the accompanying drawings.
本実施の形態における撮像装置1の概略構成について、図1を参照して説明する。 A schematic configuration of the imaging apparatus 1 in the present embodiment will be described with reference to FIG.
101は、フォーカスレンズを含む撮影レンズ、102は絞り機能を備えたシャッターである。103は、撮像手段の一例として被写体光学像を電気的な画像信号に変換するCCDやCMOSセンサに代表される撮像素子、104は撮像素子103から出力されるアナログ出力をデジタル信号(デジタル画像データ)に変換するA/D変換器である。
105は撮像素子103、A/D変換器104、D/A変換器110にクロック信号や制御信号を供給するタイミング発生回路であり、メモリ制御回路109およびシステム制御部107により制御される。
A
106は画像処理回路であり、A/D変換器104からの画像データ或いはメモリ制御回路109からの画像データに対して所定の画素補間処理や色変換処理を行う。また、画像処理回路106は顔検出部126を含み、画像データから顔の検出及び検出した顔の情報の取得を行う。顔の情報とは、顔の有無、検出された場合の顔としての確からしさの指標である信頼度、顔の位置、サイズ等が含まれる。なお、顔検出部126は検出手段の一例であり、人の顔を検出の対象物とした場合の構成である。
An
顔の検出技術としては、例えば、ニューラルネットワークに代表される学習を用いる方法や、目や鼻といった物理的な形状の特徴のある部位を画像領域からテンプレートマッチングにより検出する手法がある。他にも、肌の色や目の形といった画像特徴量を検出し、統計的解析を用いる手法が挙げられる(例えば、特開平10−232934号公報や特開2000−48184号公報等を参照)。 As a face detection technique, for example, there are a method using learning typified by a neural network, and a method of detecting a part having physical shape features such as eyes and nose from an image region by template matching. In addition, there is a method of detecting image feature quantities such as skin color and eye shape and using statistical analysis (see, for example, Japanese Patent Laid-Open Nos. 10-232934 and 2000-48184). .
また、画像処理回路106においては、撮像した画像データを用いて所定の演算処理を行う。そして、得られた演算結果に基づいてシステム制御部107が、合焦制御としてAF(オートフォーカス)処理、及び、露出制御としてAE(自動露出)処理、EF(フラッシュプリ発光)処理を行う。更に、AWB(オートホワイトバランス)処理も行う。
Further, the
A/D変換器104から出力されたデジタル画像データが、画像処理回路106及びメモリ制御回路109を介して、或いはA/D変換器104から直接メモリ制御回路109を介して、画像メモリ108、あるいは画像表示メモリ111に書き込まれる。
The digital image data output from the A /
108は撮影した静止画像や動画像を格納するための画像メモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶容量を備えている。これにより、複数枚の静止画像を連続して撮影する連射撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みを画像メモリ108に対して行うことが可能となる。また、画像メモリ108はシステム制御部107の作業領域としても使用することが可能である。更に、本実施の形態においては、画像メモリ108は、特定の人物と、その人物の顔の色の情報とを保持するためにも用いられる。
111は画像表示メモリであり、画像表示メモリ111に書き込まれた表示用の画像データはD/A変換器110を介して表示部112に表示される。表示部112は、システム制御部107の指示により任意に表示をON/OFFすることが可能であり、表示をOFFにした場合には撮像装置1の電力消費を大幅に低減することができる。
113は、シャッターボタンに代表される各種スイッチ、モードダイヤルやスライダ等の操作部材、ズーム倍率を指示するための操作部材、表示部112を利用したソフトスイッチなどを含む操作部である。操作部113を用いて入力されたユーザーの指示がシステム制御部107に送られる。なお、本実施の形態ではシャッターボタンは公知の2段式のシャッターボタンとし、シャッターボタンの第1ストローク(例えば半押し)によりシャッタースイッチSW1がONとなることにより、記録準備指示が入力される。この記録準備指示の入力に応じて、AF処理、AE処理、AWB処理、EF処理等の動作が開始される。また、シャッターボタンの第2ストローク(例えば全押し)によりシャッタースイッチSW2がONとなり、露光処理、現像処理、及び記録処理からなる一連の処理の動作開始が指示される。また、操作部113により、撮像された画像から顔の検出を行う顔検出モードを設定することができる。
An
次に、画像処理回路106の構成及び処理について、図2〜図6を参照して更に詳しく説明する。
Next, the configuration and processing of the
図2は画像処理回路106の構成を示すブロック図であり、図3及び図4は撮像素子103の各画素が主に光電変換を行う波長(色)を示している。図3は原色信号を出力する構成である場合、図4は補色信号を出力する構成である場合を示している。一般的には各色のフィルタを各画素に配置することにより実現されるため、以下、図3を原色フィルタの配列、図4を補色フィルタの配列と呼ぶ。
FIG. 2 is a block diagram showing the configuration of the
図3に示すような原色信号を出力する撮像素子103は、R、G1、G2、Bを単位としたブロックに分割される。撮像素子103からR、G1、G2、B各信号値を読み込み、ホワイトバランス処理部301へと送られ、画像中の白が、白を表す信号となるようなホワイトバラス係数および光源の色温度が求められる。以降、光源の色温度を判定するための色評価値をCx、Cy(下記式(1)参照)とし、各色信号R、G1、G2、Bのホワイトバランス係数をそれぞれkWB_R、kWB_G1、kWB_G2、kWB_Bとする。
The
Cx、Cyをブロックごとに算出する。このCx、Cy値の算出式(1)を示す。 Cx and Cy are calculated for each block. The calculation formula (1) for the Cx and Cy values is shown below.
また、ホワイトバランス係数kWB_R、kWB_G1、kWB_G2、kWB_Bの算出方法を以下に示す。図5に示すように、あらかじめ白色を高色温度下から低色温度下まで撮影し、それぞれの色評価値Cx、Cyをプロットすることで白軸201を設定する。実際の光源にて白色には若干ばらつきがあるために白を示す領域202に幅をもたせている。この範囲を白検出範囲と呼ぶ。このとき、図3に示す原色フィルタを有する撮像素子103の各ブロックについて算出したCx、Cy値が白検出範囲202に含まれる場合はそのブロックが白色であるとする。さらに、白検出範囲202に含まれる画素の積分値Sum_R、Sum_G1、Sum_G2、Sum_Bを算出して、以下の式(2)によりホワイトバランス係数を算出する。
The calculation method of the white balance coefficients kWB_R, kWB_G1, kWB_G2, and kWB_B is shown below. As shown in FIG. 5, the
以上の算出結果を受け、ホワイトバランス処理部301にてホワイトバランス係数が、撮像素子103からA/D変換器104を介して出力されるデジタル画像信号にかけられることで、画像中の白が白を表す信号になるようにホワイトバランスが補正される。ホワイトバランス補正された画像信号は、輝度信号作成選択部308及び補間処理部302へと送られる。補間処理部302では撮像素子103の画素配列から、それぞれA(R)、B(G1)、C(G2)、D(B)位置の画素それぞれを用いて、補間演算よりA、B、C、D信号の面データを作成する。
In response to the above calculation results, the white
マトリクス演算処理部303では式(3)を用いて画素毎に色変換を行う。
The matrix
なお、上記式(3)において、M11〜M43は係数である。
マトリクス演算処理されたデジタル画像信号は色差ゲイン演算処理部304において色差信号にゲインがかけられる。ここでは、式(4)によりRm、Gm、Bm信号はY、Cr、Cb信号へと変換され、さらに式(5)によりCr、Cb信号にゲインがかけられ、式(6)(式(2)の逆行列演算)により、Rg、Gg、Bg信号へと変換される。
In the above formula (3), M11 to M43 are coefficients.
The digital image signal that has been subjected to matrix calculation processing is gained by the color difference gain
Cr' = G1 × Cr
Cb' = G1 × Cb …(5)
Cr '= G1 × Cr
Cb '= G1 x Cb (5)
色差ゲイン演算処理されたデジタル画像信号はガンマ処理部305へと送られる。ガンマ処理部305では以下の式(7)〜(9)を用いてデータ変換される。ただしGammaTableは1次元ルックアップテーブルである。
Rt = GammaTable[Rg] …(7)
Gt = GammaTable[Gg] …(8)
Bt = GammaTable[Bg] …(9)
ガンマ処理されたデジタル画像信号は色相補正演算処理部306へと送られる。演算式(10)によりRt、Gt、Bt信号はY、Cr、Cb信号へと変換され、さらに式(11)によりCr、Cb信号が補正され、式(12)(式(11)の逆行列演算)により、Rh、Gh、Bh信号へと変換される。
The digital image signal subjected to the color difference gain calculation process is sent to the
Rt = GammaTable [Rg] (7)
Gt = GammaTable [Gg] (8)
Bt = GammaTable [Bg] (9)
The gamma-processed digital image signal is sent to the hue correction
ただし、H11〜H22は係数
However, H11 to H22 are coefficients
色相補正演算処理されたデジタル画像信号は色差信号変換処理部307へと送られる。
色差信号変換処理部307においては式(13)を用いて、UV信号が作成される。
The digital image signal subjected to the hue correction calculation process is sent to the color difference signal
In the color difference signal
一方、輝度信号作成選択部308へと送られた信号は、撮像素子103に原色フィルタが用いられているか、または補色フィルタが用いられているかに応じて選択された処理方法による処理が行われる。撮像素子103が図3の原色フィルタを用いたものであれば、原色輝度信号作成処理部309により輝度信号が作成され、撮像素子103が補色フィルタを用いたものであれば、補色輝度信号作成処理部310により輝度信号が作成される。なお、図1に示す撮像装置1の場合、製造段階で原色フィルタを用いたか補色フィルタを用いたか分かっている。そのため、輝度信号作成選択部308を無くし、原色輝度信号作成処理部309及び補色輝度信号作成処理部310のいずれか対応する方を構成するようにしても構わない。
On the other hand, the signal sent to the luminance signal creation /
以下に原色輝度信号および補色輝度信号の作り方について説明する。 In the following, how to create a primary color luminance signal and a complementary color luminance signal will be described.
図3に示すような原色フィルタの場合、R、Bの信号をすべて0にして、図6に示す係数を持つ2次元フィルタ処理を施したものを輝度信号とする。また、図4のような補色フィルタの場合、C、M、Y、Gの信号をそのまま図6に示す係数を持つ2次元フィルタ処理を施したものを輝度信号とする。 In the case of the primary color filter as shown in FIG. 3, all the R and B signals are set to 0, and the two-dimensional filter processing having the coefficients shown in FIG. In the case of a complementary color filter as shown in FIG. 4, a C, M, Y, G signal subjected to a two-dimensional filter process having the coefficients shown in FIG.
原色輝度信号作成処理部309または補色輝度信号作成処理部310で作成された輝度信号は高域強調処理部311にてエッジ強調処理され、さらにガンマ処理部312にてガンマ変換処理されてY信号が作成される。
The luminance signal generated by the primary color luminance signal
<第1の実施形態>
次に、本発明の第1の実施形態における上記構成を有する撮像装置1の撮像モード時の顔色補正処理の動作について、図7のフローチャートを参照して説明する。
<First Embodiment>
Next, the face color correction processing operation in the imaging mode of the imaging apparatus 1 having the above-described configuration according to the first embodiment of the present invention will be described with reference to the flowchart of FIG.
本第1の実施形態では、所望の対象物(特定対象物)をどういった色で表現したいかを画像メモリ108に予め記憶(登録)しておき、撮影した画像内に登録された対象物が存在する場合に、その対象物の色が登録された色で表現されるように補正する。図8に登録された対象物及び表現したい色のデータのフォーマットの一例を示す。図8では対象物を特定個人の顔とした場合を示している。なお、図8は一例であってフォーマットの形式はこれに限られたものではない。
In the first embodiment, what color the desired object (specific object) is to be expressed in is stored (registered) in the
ステップS101において電池投入により電源を入れた後、システム制御部107は撮像装置1が動作可能な各種モードの内、設定されているモードを確認し(ステップS102)、撮像モードが設定されているかどうかを判断する(ステップS103)。撮像モード以外のモードでは以下に説明する処理は行わないので、本第1の実施形態ではステップS102に戻って設定されているモードの確認及び撮像モードが設定されたかどうかの判断を繰り返す。
After turning on the battery by turning on the battery in step S101, the
撮像モードが設定されると、表示部112がOFFであればONにし(ステップS104)、ライブ画像の表示(EVF表示)を開始する(ステップS105)。なお、ライブ画像の表示は、所定周期でフレーム画像を撮像素子103から読み込み、順次表示部112に表示することにより行われる。
When the imaging mode is set, if the
次に、システム制御部107は操作部113により顔検出モードが設定されているか否かを判別する(ステップS106)。顔検出モードが設定されている場合、顔検出部126は、ライブ画像の表示用に所定周期で撮影されたフレーム画像に顔が存在するか否かを定期的に調べる(ステップS107)。顔検出は、ライブ画像用に撮影された全てのフレーム画像に対して行う必要は無く、任意に設定された周期で行えばよい。そして、フレーム画像を調べる度に、顔の有無も含め、顔が検出された場合には検出された顔に関する情報を出力し、記憶し、随時更新する(ステップS108)。この時、検出された顔領域を示す枠を表示するようにしてもよい。
Next, the
また、ステップS106において顔検出モードが設定されていない場合や、ステップS107において顔が存在しないと判断された場合には、ステップS115に進む。そして、操作部113に含まれるシャッターボタンが押下され、シャッタースイッチSW1がONになると、通常の画像処理が実行されて(ステップS116)、処理された画像が表示部112上にプレビュー表示される。プレビュー表示された画像がユーザーの所望の画像であれば、更にシャッターボタンを押し込んでシャッタースイッチSW2がONとなることで(ステップS117でYES)、撮像が行われる(ステップS119)。
If the face detection mode is not set in step S106, or if it is determined in step S107 that no face exists, the process proceeds to step S115. When the shutter button included in the
一方、ステップS115でシャッタースイッチSW1がONされない場合や、ステップS116におけるプレビューの後、シャッタースイッチSW2がONとならずに、SW1もOFFされると、ステップS106に戻る。 On the other hand, if the shutter switch SW1 is not turned on in step S115, or after the preview in step S116, the shutter switch SW2 is not turned on and SW1 is also turned off, the process returns to step S106.
また、顔が検出され(ステップS107でYES)、顔領域を示す枠を表示すると(ステップS108)、シャッタースイッチSW1の状態を判断し(ステップS109)、OFFであればステップS106に戻り、ONされるとステップS110に進む。ステップS110では、例えば図8に示すような画像メモリ108に登録されている個人の顔に関する情報から、ライブ画像(EVF表示)から検出された顔が、登録済みの人物であるかどうかを判断する。登録されていない人物と判断された場合は、人物の顔に適したデフォルトの画像処理を実行する(ステップS114)。一方、登録されている人物と判断された場合は、その人物の顔に関する情報から顔色のデータを取得し(ステップS111)、撮影後はそのデータを基にして検出された顔の顔色を補正する。
When a face is detected (YES in step S107) and a frame indicating the face area is displayed (step S108), the state of the shutter switch SW1 is determined (step S109). If OFF, the process returns to step S106 and is turned ON. Then, it progresses to step S110. In step S110, for example, it is determined whether or not the face detected from the live image (EVF display) is a registered person from the information related to the individual face registered in the
ここで、ステップS111で行われる顔色を補正する方法について説明する。 Here, the method for correcting the face color performed in step S111 will be described.
画像メモリ108に登録されている顔色のデータならびに顔色発色許容領域をL*a*b*表色系で表した例を図9に示す。ここでは、登録された人物の顔色を示すポイントから所定の色差ΔE離れた領域までを、顔色発色許容領域として表している。ステップS111では、先ず、検出した顔の画像領域の画像データに対して、ステップS114で用いるデフォルトの画像処理を実行する。なお、上述した式(20)で得られたRh、Gh、Bh信号から、以下の様にしてL*a*b*表色系へのデジタル画像信号の変換を行うことができる。
FIG. 9 shows an example in which facial color data and facial color development allowable areas registered in the
なお、上記式(15)において、N1〜N9は定数である。そして、Xn、Yn、Znを照明光の三刺激値とすると、
In the above formula (15), N1 to N9 are constants. And let Xn, Yn, Zn be the tristimulus values of the illumination light,
となる。このようにして、L*a*b*表色系のデジタル画像信号へ変換する。
得られた色のデータが図9の顔色発色許容領域に含まれている場合は得られた色のデータをそのまま用いて、ステップS112でプレビュー表示する。
It becomes. In this way, the digital image signal of the L * a * b * color system is converted.
If the obtained color data is included in the facial color development allowable region in FIG. 9, the obtained color data is used as it is and a preview is displayed in step S112.
一方、デフォルトの画像処理を行った結果、得られた色のデータが顔色発色許容領域に含まれていない場合は、図10を参照して以下に説明する処理を行う。 On the other hand, as a result of performing the default image processing, when the obtained color data is not included in the facial color development allowable region, the processing described below with reference to FIG. 10 is performed.
図10は登録済みの顔色データ、顔色発色許容領域、及び、デフォルトの画像処理を実行した結果得られた顔色データ(シミュレーションによる顔色データ)を示している。この場合、画像処理の結果、得られた画像データと、顔色発色許容領域との最短距離を求め、最短距離の顔色発色許容領域の色データ(登録済みの顔色データから予め設定された範囲内にある色データ)を取得する。 FIG. 10 shows registered face color data, a face color coloration allowable area, and face color data (face color data obtained by simulation) obtained as a result of executing default image processing. In this case, the shortest distance between the image data obtained as a result of image processing and the facial color development allowable area is obtained, and the color data of the facial color development allowable area at the shortest distance (within a preset range from the registered facial color data) A certain color data).
また、あらかじめ理想の肌色のデータを色取り込み手段等により取得し、図8のフォーマットに登録することにより顔色としてそのデータを取得する構造にしてもよい。 Further, it may be structured such that ideal skin color data is acquired in advance by a color capturing means or the like and is registered in the format of FIG. 8 to acquire the data as a face color.
図7のフローチャートに戻り、ステップS111にて補正された結果をプレビュー表示する(ステップS112)。ここでの表示の仕方の一例を図11に示す。図11に示す例では、ステップS111で取得した色データで顔を表現したものを画面の右下(または、画像の視認を妨げない位置)に、ユーザが確認しやすいように顔領域を拡大表示している。勿論、表示の仕方は図11に示す例に限るものではなく、例えば、色データが示す色のみをパッチ形式で表示したり、数値で表示するようにしても構わない。 Returning to the flowchart of FIG. 7, the result corrected in step S111 is displayed as a preview (step S112). An example of the display method here is shown in FIG. In the example shown in FIG. 11, the face area is enlarged and displayed at the lower right of the screen (or a position that does not interfere with visual recognition of the image) that represents the face with the color data acquired in step S111. is doing. Of course, the display method is not limited to the example shown in FIG. 11. For example, only the color indicated by the color data may be displayed in a patch format or numerically.
このプレビュー表示によりユーザが確認し、許容できる発色か否かを操作部113もしくは撮像モードを選択する方法等にて決定する(ステップS113)。ここでユーザが許容できないとした場合は通常の顔優先の画像処理を実行し、処理された画像が表示部112上にプレビュー表示される(ステップS114)。一方、ステップS111で取得した色データを用いた画像がユーザーの所望の画像であれば、更にシャッターボタンを押し込んでシャッタースイッチSW2がONとなることで(ステップS117でYES)、撮像が行われる(ステップS119)。このステップS119で撮像して得られた画像データは、ステップS112またはS114のプレビュー表示に用いられた肌色データにより補正された顔色となるように処理される。
The user confirms this preview display, and determines whether or not the color development is acceptable by the
一方、ステップS109でシャッタースイッチSW1がONされない場合や、ステップS112またはS114におけるプレビューの後、シャッタースイッチSW2がONとならずに、SW1もOFFされると、ステップS106に戻る。 On the other hand, if the shutter switch SW1 is not turned on in step S109, or after the preview in step S112 or S114, if the shutter switch SW2 is not turned on and SW1 is also turned off, the process returns to step S106.
上記のように、本第1の実施形態によれば、所望の対象物が所望の色で表示されるように補正することができる。 As described above, according to the first embodiment, correction can be performed so that a desired object is displayed in a desired color.
<第2の実施形態>
次に、本発明の第2の実施形態について説明する。
<Second Embodiment>
Next, a second embodiment of the present invention will be described.
図12は本発明における第2の実施形態における撮像装置1の撮像モード時の動作を示すフローチャートである。本第2の実施形態では、プレビュー中に複数の顔が検出された場合について説明する。なお、上記第1の実施形態と同様の処理にはおなじ参照番号を付し、異なる部分のみ説明を行う。 FIG. 12 is a flowchart showing the operation of the image pickup apparatus 1 in the image pickup mode according to the second embodiment of the present invention. In the second embodiment, a case where a plurality of faces are detected during preview will be described. In addition, the same reference number is attached | subjected to the process similar to the said 1st Embodiment, and only a different part is demonstrated.
ステップS109でスイッチSW1がONとなると、ステップS210においてライブビュー(EVF表示)上で検出されたすべての顔に関して、登録済み人物か否かを判断する。全員の顔が未登録であると判断された場合、どの人物に対しても共通に行われる顔優先の画像処理を実行する(ステップS114)。 When the switch SW1 is turned on in step S109, it is determined whether or not all faces detected on the live view (EVF display) in step S210 are registered persons. If it is determined that all faces are unregistered, face-priority image processing that is commonly performed for all persons is executed (step S114).
一方、ステップS211にてライブビュー(EVF表示)上で検出されたすべての顔が登録済みの人物のいずれかであると判断された場合、すべての顔について、上述したステップS111の処理を実行し、色データを取得する。そして、それぞれの顔を、求めた色データが示す色でプレビュー表示する(ステップS216)。 On the other hand, if it is determined in step S211 that all the faces detected on the live view (EVF display) are any registered persons, the process of step S111 described above is executed for all the faces. Get color data. Each face is preview-displayed in the color indicated by the obtained color data (step S216).
また、EVF表示上で個人情報を登録済みの人物と未登録の人物とが混在していることが判明した場合(ステップS211でNO)、登録済みの人物ついては個人の顔色データに基づいて補正を行う(ステップS212)。そして、未登録の人物については、登録済みの人物について実行した補正量にもとづき、不自然にならないように補正を行う(ステップS213)。それぞれの顔色を補正後、ステップS214において補正結果をプレビューとして表示する。 If it is found on the EVF display that a person who has registered personal information and an unregistered person are mixed (NO in step S211), the registered person is corrected based on the personal face color data. This is performed (step S212). The unregistered person is corrected so as not to be unnatural based on the correction amount executed for the registered person (step S213). After correcting each face color, the correction result is displayed as a preview in step S214.
これ以降の処理は、図7を参照して第1の実施形態で説明した処理と同様であるため、ここでは省略する。 The subsequent processing is the same as the processing described in the first embodiment with reference to FIG.
上記の通り第2の実施形態によれば、複数の対象物が検出された場合にも、それぞれを所望の色で表示されるように補正することができる。 As described above, according to the second embodiment, even when a plurality of objects are detected, each of the objects can be corrected so as to be displayed in a desired color.
<他の実施形態>
なお、本発明は、複数の機器(例えばホストコンピュータ、インターフェイス機器、カメラヘッドなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、デジタルスチルカメラ、デジタルビデオカメラなど)に適用してもよい。
<Other embodiments>
Note that the present invention can be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a camera head, etc.), or a device (for example, a digital still camera, a digital video camera, etc.) composed of a single device. You may apply to.
また、本発明の目的は、以下の様にして達成することも可能である。まず、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給する。そして、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行する。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。 The object of the present invention can also be achieved as follows. First, a storage medium (or recording medium) that records a program code of software that implements the functions of the above-described embodiments is supplied to a system or apparatus. Then, the computer (or CPU or MPU) of the system or apparatus reads and executes the program code stored in the storage medium. 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.
また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、以下のようにして達成することも可能である。即ち、読み出したプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合である。ここでプログラムコードを記憶する記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、ROM、RAM、磁気テープ、不揮発性のメモリカード、CD−ROM、CD−R、DVD、光ディスク、光磁気ディスク、MOなどが考えられる。また、LAN(ローカル・エリア・ネットワーク)やWAN(ワイド・エリア・ネットワーク)などのコンピュータネットワークを、プログラムコードを供給するために用いることができる。 Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also the following can be achieved. That is, when the operating system (OS) running on the computer performs part or all of the actual processing based on the instruction of the read program code, the functions of the above-described embodiments are realized by the processing. It is. Examples of the storage medium for storing the program code include a flexible disk, hard disk, ROM, RAM, magnetic tape, nonvolatile memory card, CD-ROM, CD-R, DVD, optical disk, magneto-optical disk, MO, and the like. Can be considered. Also, a computer network such as a LAN (Local Area Network) or a WAN (Wide Area Network) can be used to supply the program code.
1 撮像装置
101 撮影レンズ
102 シャッター
103 撮像素子
104 A/D変換器
105 タイミング発生回路
106 画像処理回路
107 システム制御部
108 画像メモリ
109 メモリ制御回路
110 D/A変換器
111 メモリ
112 表示部
113 操作部
126 顔検出部
DESCRIPTION OF SYMBOLS 1
Claims (13)
特定対象物に対応する複数の色領域を予め記憶した記憶手段と、
前記画像から、予め設定された特徴を有する対象物を検出する検出手段と、
前記検出手段により検出された対象物が、前記記憶手段に記憶された前記特定対象物であるかどうかを判断する判断手段と、
前記判断手段により、前記記憶手段に記憶された前記特定対象物であると判断されたことに応じて、前記特定対象物と判断された対象物を表す画像領域の色データを、前記記憶手段に記憶された前記特定対象物に対応する複数の色領域のうち、当該複数の色領域及び前記色データを表す座標系において、前記検出された対象物を表す画像領域の色データから最短の距離にある色領域内にある色データに変換する画像処理を行う画像処理手段と
を有することを特徴とする画像処理装置。 An image processing apparatus that processes an image signal of an image obtained by imaging,
Storage means for storing in advance a plurality of color regions corresponding to the specific object;
Detecting means for detecting an object having a preset characteristic from the image;
Determining means for determining whether the object detected by the detecting means is the specific object stored in the storage means;
In response to determining that the specific object is stored in the storage means by the determining means, color data of an image area representing the object determined to be the specific object is stored in the storage means. Among the plurality of color areas corresponding to the stored specific object, in the coordinate system representing the plurality of color areas and the color data, the shortest distance from the color data of the image area representing the detected object An image processing apparatus comprising: image processing means for performing image processing for conversion into color data in a certain color area.
前記検出手段により予め設定された対象物が複数、検出された場合に、前記判断手段は当該検出された複数の対象物それぞれが、前記記憶手段に記憶された前記特定対象物のいずれかであるかどうかを判断し、
前記画像処理手段は、前記記憶手段に記憶された前記特定対象物のいずれかであると判断された前記検出された対象物を表す画像領域の色データを、前記記憶手段に記憶された、前記検出された対象物に対応する前記特定対象物に対応する色領域に基づいて前記画像処理を行うことを特徴とする請求項1に記載の画像処理装置。 The storage means stores a combination of a plurality of specific objects and color regions corresponding to the plurality of specific objects,
When a plurality of preset objects are detected by the detection means, the determination means is that each of the detected plurality of objects is one of the specific objects stored in the storage means. To determine whether
The image processing means stores color data of an image area representing the detected object determined to be any one of the specific objects stored in the storage means, stored in the storage means, The image processing apparatus according to claim 1, wherein the image processing is performed based on a color region corresponding to the specific object corresponding to the detected object.
請求項1乃至9のいずれか1項に記載の画像処理装置と
を備えたことを特徴とする撮像装置。 Imaging means for converting a subject optical image into an electrical image signal and outputting it;
An imaging apparatus comprising: the image processing apparatus according to claim 1.
検出手段が、前記画像から、予め設定された特徴を有する対象物を検出する検出工程と、
判断手段が、前記検出工程により検出された対象物が、記憶手段に記憶された特定対象物であるかどうかを判断する判断工程と、
画像処理手段が、前記判断工程により、前記記憶手段に記憶された前記特定対象物であると判断されたことに応じて、前記特定対象物と判断された対象物を表す画像領域の色データを、前記記憶手段に予め記憶された前記特定対象物に対応する複数の色領域のうち、当該複数の色領域及び前記色データを表す座標系において、前記検出された対象物を表す画像領域の色データから最短の距離にある色領域内にある色データに変換する画像処理を行う画像処理工程と
を有することを特徴とする画像処理方法。 An image processing method for processing an image signal of an image obtained by imaging,
A detecting step for detecting an object having a preset feature from the image;
A determination step of determining whether or not the object detected by the detection step is a specific object stored in the storage unit;
In response to the determination by the determination step that the image processing means is the specific object stored in the storage means, color data of an image area representing the object determined to be the specific object is obtained. The color of the image area representing the detected object in the coordinate system representing the color area and the color data among the color areas corresponding to the specific object stored in advance in the storage means And an image processing step of performing image processing for converting the color data into the color data in the color region at the shortest distance from the data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007229452A JP5046809B2 (en) | 2007-09-04 | 2007-09-04 | Image processing apparatus and method, and imaging apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007229452A JP5046809B2 (en) | 2007-09-04 | 2007-09-04 | Image processing apparatus and method, and imaging apparatus |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JP2009065290A JP2009065290A (en) | 2009-03-26 |
| JP2009065290A5 JP2009065290A5 (en) | 2010-10-14 |
| JP5046809B2 true JP5046809B2 (en) | 2012-10-10 |
Family
ID=40559502
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007229452A Expired - Fee Related JP5046809B2 (en) | 2007-09-04 | 2007-09-04 | Image processing apparatus and method, and imaging apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5046809B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2014080613A1 (en) * | 2012-11-22 | 2014-05-30 | 日本電気株式会社 | Color correction device, method, and program |
| JP6454973B2 (en) * | 2014-03-20 | 2019-01-23 | フリュー株式会社 | Server, control program, and recording medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001186323A (en) * | 1999-12-24 | 2001-07-06 | Fuji Photo Film Co Ltd | Identification photograph system and picture on processing method |
| JP4277534B2 (en) * | 2003-02-12 | 2009-06-10 | オムロン株式会社 | Image editing apparatus and image editing method |
| JP4307333B2 (en) * | 2004-06-07 | 2009-08-05 | シャープ株式会社 | Imaging device |
| JP4475041B2 (en) * | 2004-07-07 | 2010-06-09 | カシオ計算機株式会社 | Electronic camera device and color adjustment method |
-
2007
- 2007-09-04 JP JP2007229452A patent/JP5046809B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009065290A (en) | 2009-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8111315B2 (en) | Imaging device and imaging control method that detects and displays composition information | |
| JP5293206B2 (en) | Image search apparatus, image search method and program | |
| JP2019106045A (en) | Image processing device, method, and program | |
| JP2008182485A (en) | Imaging apparatus and imaging method | |
| JP2006208558A (en) | Imaging device | |
| JP2007279601A (en) | camera | |
| JP6137800B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP2014235224A (en) | Imaging device and control program | |
| JP2007281873A (en) | Imaging device | |
| US20080239086A1 (en) | Digital camera, digital camera control process, and storage medium storing control program | |
| JP7175772B2 (en) | Imaging device and imaging method | |
| JP5046809B2 (en) | Image processing apparatus and method, and imaging apparatus | |
| KR101566666B1 (en) | Imaging device, imaging method and imaging program | |
| JP2014021782A (en) | Image processor, control method thereof and program | |
| JP5217843B2 (en) | Composition selection apparatus, composition selection method and program | |
| JP2007027971A (en) | Image capturing apparatus, control method therefor, program, and recording medium | |
| JP5278483B2 (en) | Imaging apparatus, imaging method, and imaging program | |
| JP2006128793A (en) | Imaging apparatus and control method thereof | |
| JP2008028747A (en) | Imaging apparatus and program thereof | |
| JP2008278333A (en) | Image processing apparatus and method | |
| JP2006148326A (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
| JP2013081136A (en) | Image processing apparatus, and control program | |
| CN120416676A (en) | Information processing device, camera device, information processing method and storage medium | |
| JP4807623B2 (en) | Imaging apparatus, imaging method, and imaging program | |
| JP4887840B2 (en) | Imaging apparatus and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100901 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100901 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111213 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111219 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120215 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120305 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120507 |
|
| 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: 20120615 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120717 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150727 Year of fee payment: 3 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 5046809 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| LAPS | Cancellation because of no payment of annual fees |