JP2009055168A - Imaging apparatus and image processing method - Google Patents
Imaging apparatus and image processing method Download PDFInfo
- Publication number
- JP2009055168A JP2009055168A JP2007218012A JP2007218012A JP2009055168A JP 2009055168 A JP2009055168 A JP 2009055168A JP 2007218012 A JP2007218012 A JP 2007218012A JP 2007218012 A JP2007218012 A JP 2007218012A JP 2009055168 A JP2009055168 A JP 2009055168A
- Authority
- JP
- Japan
- Prior art keywords
- image
- difference
- correction
- average
- captured
- 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.)
- Pending
Links
- 238000003384 imaging method Methods 0.000 title claims abstract description 36
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000012937 correction Methods 0.000 claims abstract description 81
- 230000037303 wrinkles Effects 0.000 claims abstract description 60
- 238000012545 processing Methods 0.000 claims abstract description 55
- 230000015654 memory Effects 0.000 claims description 24
- 238000000034 method Methods 0.000 claims description 24
- 230000003287 optical effect Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 7
- 239000004973 liquid crystal related substance Substances 0.000 description 6
- 238000012935 Averaging Methods 0.000 description 5
- 230000003796 beauty Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 125000002066 L-histidyl group Chemical group [H]N1C([H])=NC(C([H])([H])[C@](C(=O)[*])([H])N([H])[H])=C1[H] 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 239000002537 cosmetic Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 210000004709 eyebrow Anatomy 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Studio Devices (AREA)
Abstract
Description
本発明は、撮像画像のうち被写体人物の顔画像を画像処理することでしわが除去された顔画像を生成する撮像装置及び画像処理方法に関する。 The present invention relates to an imaging apparatus and an image processing method for generating a face image from which wrinkles have been removed by performing image processing on a face image of a subject person among captured images.
従来、デジタルカメラなどの撮像装置によって被写体の人物を撮像して得られられた画像において、人物の顔画像をパーソナルコンピュータに読み出した後、画像加工ソフトウェアを使用して画像処理することが行われている。例えば、撮像した顔画像を美容上の観点からしわを除去したり、目立たなくしたりする画像処理が行われている。
撮像した顔画像に画像処理を行うものとしては、例えば、下記特許文献に示すものがある。
2. Description of the Related Art Conventionally, in an image obtained by imaging a person as a subject with an imaging device such as a digital camera, the face image of the person is read out to a personal computer and then image processing is performed using image processing software Yes. For example, image processing is performed to remove wrinkles or make them inconspicuous from the viewpoint of beauty in the captured face image.
Examples of performing image processing on a captured face image include those shown in the following patent documents.
ところで、従来のように撮像画像をパーソナルコンピュータを用いて画像処理を行う場合には、撮像装置で撮像した直後にその場で画像処理することができなかった。また、撮像装置からパーソナルコンピュータへ撮像画像を読み出すためのインフラや、画像処理を行うためのソフトウェアが必要であるという制限があった。また、ソフトウェアを用いて顔画像のしわを除去するには、ある程度のソフトウェアを操作するスキルが求められることが多い。このため、撮像装置で撮像した画像にそのまま画像処理を簡便な操作により実行したいという要望があった。 By the way, when image processing is performed on a captured image using a personal computer as in the prior art, image processing cannot be performed on the spot immediately after the image is captured by the imaging device. In addition, there is a restriction that an infrastructure for reading a captured image from the imaging apparatus to a personal computer and software for performing image processing are necessary. In addition, in order to remove wrinkles from a facial image using software, a skill for operating software to some extent is often required. For this reason, there has been a demand for performing image processing on an image captured by the imaging apparatus as it is by a simple operation.
本発明は、上記事情に鑑みてなされたもので、その目的は、撮像した被写体人物の顔画像に、簡便な操作によって画像処理を実行できる撮像装置及び画像処理方法を提供することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an imaging apparatus and an image processing method that can perform image processing on a captured face image of a subject person by a simple operation.
本発明の上記目的は、下記構成によって達成される。
(1)被写体人物を撮像して撮像画像を生成する撮像部と、
前記撮像画像の顔画像のうち、しわの部分を含む補正範囲について画素ごとに平均化された平均画像データを算出し、前記撮像画像と前記平均画像データとの差分画像を算出し、前記撮像画像と差分画像とに基づいて前記補正範囲に含まれるしわが修正された修正画像を生成する画像処理手段とを備えている撮像装置。
(2)前記画像処理部が、平均画像データを算出する平均画像データ算出手段と、
前記撮像画像から前記平均画像データを差し引くことで、差分画像を算出する差分画像算出手段と、
平均画像データと差分画像とを足し合わせることで前記修正画像を生成する修正画像生成手段とを備えていることを特徴とする上記(1)に記載の撮像装置。
(3)前記差分画像に、予め入力された修正レベルに対応した強調値を加えた差分修正画像を算出し、該差分修正画像を前記差分画像として前記修正画像生成手段へ入力することを特徴とする上記(2)に記載の撮像装置。
(4)前記平均画像データ、前記差分画像、前記差分修正画像、前記修正画像のうち少なくとも一つを記憶可能なバッファメモリを備えていることを特徴とする上記(3)に記載の撮像装置。
(5)前記撮像画像がRAWデータであることを特徴とする上記(1)から(4)のいずれか1つに記載の撮像装置。
(6)撮像部によって撮像された被写体人物の撮像画像の顔画像において設定された、しわの部分を含む補正範囲について、画素ごとに平均化された平均画像データを算出するステップと、前記撮像画像と前記平均画像データとの差分画像を算出するステップと、前記撮像画像と差分画像とに基づいて前記補正範囲に含まれるしわが修正された修正画像を生成するステップとを有すことを特徴とする画像処理方法。
(7)前記画像処理部が、平均画像データを算出するステップと、
前記撮像画像から前記平均画像データを差し引くことで、差分画像を算出するステップと、
平均画像データと差分画像とを足し合わせることで前記修正画像を生成するステップとを有することを特徴とする上記(6)に記載の画像処理方法。
(8)前記差分画像に、予め入力された修正レベルに対応した強調値を加えた差分修正画像を算出し、該差分修正画像を前記差分画像として前記修正画像生成部へ入力するステップを有することを特徴とする上記(7)に記載の画像処理方法。
(9)前記平均画像データ、前記差分画像、前記差分修正画像、前記修正画像のうち少なくとも一つをバッファメモリに記憶するステップを有することを特徴とする上記(8)に記載の画像処理方法。
(10)前記撮像画像がRAWデータであることを特徴とする上記(6)から(9)のいずれか1つに記載の画像処理方法。
The above object of the present invention is achieved by the following configurations.
(1) an imaging unit that images a subject person and generates a captured image;
Of the face image of the captured image, average image data averaged for each pixel for a correction range including a wrinkle portion is calculated, a difference image between the captured image and the average image data is calculated, and the captured image And an image processing unit that generates a corrected image in which wrinkles included in the correction range are corrected based on the difference image.
(2) The image processing unit calculates average image data for calculating average image data;
A difference image calculation means for calculating a difference image by subtracting the average image data from the captured image;
The imaging apparatus according to (1), further including a corrected image generation unit that generates the corrected image by adding the average image data and the difference image.
(3) A difference correction image obtained by adding an enhancement value corresponding to a correction level input in advance to the difference image is calculated, and the difference correction image is input to the correction image generation unit as the difference image. The imaging device according to (2).
(4) The imaging apparatus according to (3), further including a buffer memory capable of storing at least one of the average image data, the difference image, the difference correction image, and the correction image.
(5) The imaging apparatus according to any one of (1) to (4), wherein the captured image is RAW data.
(6) calculating average image data averaged for each pixel with respect to a correction range including a wrinkle portion set in the face image of the captured image of the subject person imaged by the imaging unit; and the captured image And calculating a difference image between the average image data and generating a corrected image in which wrinkles included in the correction range are corrected based on the captured image and the difference image. Image processing method.
(7) the image processing unit calculating average image data;
Subtracting the average image data from the captured image to calculate a difference image;
The image processing method according to (6), further comprising: generating the corrected image by adding the average image data and the difference image.
(8) calculating a difference correction image obtained by adding an enhancement value corresponding to a correction level input in advance to the difference image, and inputting the difference correction image as the difference image to the correction image generation unit; (8) The image processing method according to (7) above.
(9) The image processing method according to (8), further including a step of storing at least one of the average image data, the difference image, the difference corrected image, and the corrected image in a buffer memory.
(10) The image processing method according to any one of (6) to (9), wherein the captured image is RAW data.
本発明は、撮像部によって撮像した画像を、画像装置内に設けられた画像処理手段に入力することで、そのまま画像処理を実行することができる。このため、パーソナルコンピュータ等の外部装置を用いることなく、撮像をしたその場で画像処理された画像を確認することができ、使い勝手が良い。また、撮像装置の操作部を用いることで簡単な操作によって撮像画像に画像処理を実行することができる。 According to the present invention, an image picked up by the image pickup unit is input to an image processing means provided in the image device, whereby the image processing can be executed as it is. For this reason, it is possible to check the image that has been imaged on the spot without using an external device such as a personal computer, which is easy to use. In addition, image processing can be performed on a captured image by a simple operation by using the operation unit of the imaging apparatus.
本発明によれば、撮像した被写体人物の顔画像に、簡便な操作によって画像処理を実行できる撮像装置及び画像処理方法を提供できる。 According to the present invention, it is possible to provide an imaging apparatus and an image processing method capable of executing image processing on a captured face image of a subject person by a simple operation.
以下、本発明の実施形態を図面に基づいて詳しく説明する。
図1は、本発明の一実施形態に係るデジタルカメラのブロック構成図である。本実施形態のデジタルカメラ10は、被写体像を結像させるための光学ユニット12と、光学ユニット12の光軸後方に配設され光学ユニット12を通して得られる被写体反射光を受光しアナログ画像データを出力するCCD型撮像素子やCMOS型イメージセンサなどの撮像素子14とを備える。撮像素子14が被写体人物を撮像して撮像画像を生成する撮像部として機能する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram of a digital camera according to an embodiment of the present invention. The
この光学ユニット12は、図示は省略するが、ズームレンズ群、フォーカスレンズ、これら撮影レンズの各々を光軸方向に移動させるレンズ移動機構を含んで構成され、焦点距離の変更(変倍)が可能になっている。光学ユニット12が有する光学歪みは光学ユニット12の設計で決まり、既知である。 Although not shown, the optical unit 12 includes a zoom lens group, a focus lens, and a lens moving mechanism that moves each of the photographing lenses in the optical axis direction, and can change (magnify) the focal length. It has become. The optical distortion of the optical unit 12 is determined by the design of the optical unit 12 and is known.
光学ユニット12は、A/F制御回路32に接続されており、A/F制御回路32の制御により所望のズーム倍率になるようにズームレンズ群が光軸方向に移動され、光学ユニット12を通過した被写体像を示す入射光が撮像素子14の受光面上に結像するようにフォーカスレンズが光軸方向に移動制御される。 The optical unit 12 is connected to the A / F control circuit 32, and the zoom lens group is moved in the optical axis direction so as to obtain a desired zoom magnification under the control of the A / F control circuit 32, and passes through the optical unit 12. The focus lens is moved and controlled in the optical axis direction so that incident light indicating the subject image formed is formed on the light receiving surface of the image sensor 14.
また、このデジタルカメラ10は、撮像素子14から出力された被写体像を示すアナログ画像データをデジタルの画像データに変換して出力するA/D変換器16と、A/D変換器16から入力された画像データに対して、ホワイトバランス調整,ガンマ補正,シャープネス補正等の各種補正処理やRGBデータをYC信号に変換する処理等を行う信号処理プロセッサ22と、信号処理プロセッサ22によって信号処理された画像データを格納するメインメモリ38とを備えている。また、信号処理プロセッサ22は、撮像画像に信号処理を実行せず、RAWデータのままメインメモリ38に格納させる機能も有している。
The
更に、このデジタルカメラ10は、光学ユニット12を介して被写体を撮影することにより得られた撮像画像の顔画像において、使用者によって選択又は自動的に認識した、顔のしわの部分を含む補正範囲に画像処理を実行する画像処理部24を備えている。また、デジタルカメラ10は、各種情報や撮像画像を表示する液晶表示部18の表示制御を行うLCD制御部26と、光学歪みが補正された画像データを記憶する外部記録メディア28に対する各種情報の読み書きを制御するメディア制御部30と、レリーズボタンや電源スイッチ,動画/静止画撮影切替等の指示をユーザが入力する操作手段20に接続されたI/F(インタフェース)部34と、デジタルカメラ10の全体制御を司るCPU36と、各種プログラムや処理ルーチン等を予め記憶したROM40とを備えている。操作手段20によって、撮像時に顔画像のしわを修正する処理を実行するモードの設定や、撮像画像において、しわを修正する処理を実行する補正範囲を選択及び決定をすることができる。
Further, the
信号処理プロセッサ22、画像処理部24、LCD制御部26、メディア制御部30、A/F制御回路32、I/F部34、CPU36、メインメモリ38、及びROM40は、これらを相互接続するバス42を介して各種データ,信号を入出力する。
The
図2は、本実施形態のデジタルカメラの動作を説明するフローチャートである。デジタルカメラの起動した後、使用者は、撮像された顔画像にしわ処理を実行するか否かを判断し、しわ処理モードのON/OFFを所望に設定することができる。 FIG. 2 is a flowchart for explaining the operation of the digital camera of this embodiment. After the digital camera is activated, the user can determine whether or not to perform wrinkle processing on the captured face image, and can set the wrinkle processing mode ON / OFF as desired.
しわ処理モードがOFFに設定されている場合には、撮像時に通常の撮像が行われる。すなわち、撮像素子14で生成された撮像画像が、信号処理プロセッサ22によって所定の画像形式に変換され、メインメモリ38に記憶される。
When the wrinkle processing mode is set to OFF, normal imaging is performed during imaging. That is, the captured image generated by the image sensor 14 is converted into a predetermined image format by the
しわ処理モードのONに設定されている場合には、撮像時に生成された撮像画像がメインメモリ38に一旦保存された後、保存された撮像画像を読み出し、撮像画像における被写体人物の顔認識が実行される。そして、認識された顔画像に対してしわを修正する画像処理が実行される。顔のしわが修正された修正画像が、メインメモリ38に保存される。しわを修正する画像処理の手法については、後述する。
When the wrinkle processing mode is set to ON, the captured image generated at the time of imaging is temporarily stored in the
また、本実施形態のデジタルカメラは、通常の撮像処理を行ったあと、撮像画像を液晶表示部18で視認しつつ、顔のしわ部分を操作手段20を用いてキー操作で選択し、選択したしわ部分についてしわを修正する画像処理を実行することができる。このとき、しわを修正する際の修正レベルを選択することもできる。
In addition, the digital camera according to the present embodiment selects and selects the wrinkled part of the face by the key operation using the
次に、本実施形態のデジタルカメラにおいて顔認識を用いたしわ修正処理の手順を説明する。
図3は、本実施形態のデジタルカメラの構成を示すブロック図である。図4は、本実施形態のデジタルカメラの処理手順を示すフローチャートである。
Next, a procedure of wrinkle correction processing using face recognition in the digital camera of this embodiment will be described.
FIG. 3 is a block diagram showing the configuration of the digital camera of this embodiment. FIG. 4 is a flowchart showing the processing procedure of the digital camera of this embodiment.
図3に示すように、画像処理部24は、しわ修正処理時にメインメモリ38に保存された撮像画像を読み出し、顔しわの位置を認識する顔しわ認識処理部52と、顔しわ認識処理部52によって検出されたしわ部分に対してしわ修正処理を実行する演算部54とを備えている。
As illustrated in FIG. 3, the
しわ修正がONに設定されている状態で、撮像が行われると、撮像画像に対して顔認識を開始する。本実施形態では、予め撮像画像における顔画像の位置を特定してある状態と仮定する。撮像画像における顔画像の位置を判別する手段は従来の手法をもちいることができる。 When imaging is performed in a state where wrinkle correction is set to ON, face recognition is started on the captured image. In this embodiment, it is assumed that the position of the face image in the captured image has been specified in advance. The means for determining the position of the face image in the captured image can use a conventional method.
本実施形態では、図4に示すように、顔の左目と右目の間隔を認識し(ステップS41)、両目と鼻とのそれぞれの間隔を認識し(ステップS42)、鼻と口との間隔を認識し(ステップS43)、眉毛と顔の間隔を認識する(ステップS44)。これらステップS41〜44で特定された、顔に対する目と口の位置に基づいて、目と口の周辺近傍のしわ部分を補正範囲に設定する(ステップS45)。なお、本実施形態のステップS41〜44の順番は特にこれに限定されない。また、各ステップで認識する対象となる目、鼻などの部位は上記のものに限定されない。しわ修正処理を実行する部位の、顔に対する位置を認識し、しわ部分を含む補正範囲を決定することができれば、顔認識の手法は上記のものに限定されない。 In this embodiment, as shown in FIG. 4, the distance between the left eye and the right eye of the face is recognized (step S41), the distance between both eyes and the nose is recognized (step S42), and the distance between the nose and the mouth is determined. It recognizes (step S43) and recognizes the space | interval of eyebrows and a face (step S44). Based on the positions of the eyes and mouth with respect to the face specified in these steps S41 to S44, the wrinkle portion near the periphery of the eyes and mouth is set as the correction range (step S45). In addition, the order of step S41-44 of this embodiment is not specifically limited to this. Further, the parts such as eyes and nose to be recognized in each step are not limited to the above. The face recognition technique is not limited to the above as long as the position of the part for executing the wrinkle correction process can be recognized with respect to the face and the correction range including the wrinkle part can be determined.
次に、撮像画像において、他にしわ修正処理の対象となる顔画像の検査領域があるか否かを判別し(ステップS46)、なければ、設定された補正範囲にしわ修正を実行する(ステップS47)。 Next, in the captured image, it is determined whether or not there is another inspection area of the face image to be subjected to wrinkle correction processing (step S46). If there is not, wrinkle correction is executed in the set correction range (step S46). S47).
しわ修正が実行されたしわ修正画像は、メインメモリ38に保存され(ステップS48)、しわ修正処理が終了する。 The wrinkle correction image on which the wrinkle correction has been performed is stored in the main memory 38 (step S48), and the wrinkle correction processing is completed.
次に、顔画像からしわ部分を含む補正範囲を選択し、しわ修正処理を実行する手順を説明する。
図5は、顔画像からしわ部分を含む補正範囲を選択する状態を説明する図である。図6は、本実施形態のデジタルカメラの構成を示すブロック図である。図7は、顔画像からしわ部分を含む補正範囲を選択し、しわ修正処理を実行する手順を示すフローチャートである。
Next, a procedure for selecting a correction range including a wrinkle portion from a face image and executing wrinkle correction processing will be described.
FIG. 5 is a diagram illustrating a state in which a correction range including a wrinkle portion is selected from a face image. FIG. 6 is a block diagram showing the configuration of the digital camera of this embodiment. FIG. 7 is a flowchart illustrating a procedure for selecting a correction range including a wrinkle portion from a face image and executing wrinkle correction processing.
図5に示すように、撮像画像を液晶表示部18に表示した状態で、使用者が該液晶表示部18を視認しつつ、操作手段20を直接操作することで顔画像と、該顔画像において、修正したしわ部分を含む補正範囲を選択することができる。例えば、使用者は、液晶表示部18に表示された顔画像に対して、図中は線で示す矩形状のカーソルを操作手段20のキー操作によって移動させ、目の周辺近傍を補正範囲R1に設定することや、または、口の周辺近傍を補正範囲R2に設定することができる。また、図5には示さないが、撮像画像に複数の顔画像が表示されている場合には、任意の顔画像を複数選択し、選択された顔画像を拡大して表示した後、それぞれの選択した顔画像について同様に補正範囲を設定してもよい。
As shown in FIG. 5, in a state in which the captured image is displayed on the liquid
次に、図6及び図7を用いて本実施形態のしわ修正処理の手順を具体的に説明する。なお、本実施形態では、撮像画像として、撮像素子14で生成され、信号処理プロセッサによる信号処理が施されていない状態のRAWデータを使用する。しかし、撮像画像としては、以下のしわ修正処理の演算を実行することができる範囲であれば、その他の画像形式に変換された画像データを用いてもよい。 Next, the procedure of wrinkle correction processing according to the present embodiment will be specifically described with reference to FIGS. In the present embodiment, RAW data generated by the image sensor 14 and not subjected to signal processing by the signal processor is used as a captured image. However, as captured images, image data converted into other image formats may be used as long as the following wrinkle correction processing can be performed.
図6に示すように、画像処理部24は、しわ修正処理時にメインメモリ38から撮像画像を読み出し、平均画像データを算出する平均画像データ算出部62と、平均画像データ算出部62によって算出された平均画像データを一時的に記憶するバッファメモリ72と、撮像画像と平均画像データとの差分に基づいて差分画像を算出し、バッファメモリ72に該差分画像を出力する差分画像算出部64と、差分画像に修正レベルに対応して強調値を加えた差分修正画像を生成する差分強調処理部66と、平均画像データと差分修正画像とを足し合わせることで修正画像を生成する修正画像生成部68とを備えている。平均画像データ算出部62、差分画像算出部64、差分強調処理部66、修正画像作成部68はそれぞれ1つのバッファメモリ72との間で信号を入出力可能に接続されている。また、バッファメモリを複数設けた構成とし、複数のバッファメモリの全部又は一部が、平均画像データ算出部62、差分画像算出部64、差分強調処理部66、修正画像作成部68のうちのいずかと接続されていてもよい。
As shown in FIG. 6, the
しわ修正処理が開始されると、RAWデータの撮像画像における顔画像から、画像処理の対象となるしわ部分を含む補正範囲が切り出される(ステップS71)。 When the wrinkle correction process is started, a correction range including a wrinkle portion to be subjected to image processing is cut out from the face image in the captured image of the RAW data (step S71).
切り出された補正範囲の画像のうち、修正する一画素が選択され(ステップS72)、この一画素を基準として所定範囲の画素が選択される(ステップS73)。本実施形態では、一画素に対して、画像の縦方向に沿って一方に50画素(+50画素)、他方に50画素(−50画素)を選択するものとした。 One pixel to be corrected is selected from the cut out image of the correction range (step S72), and a pixel within a predetermined range is selected based on this one pixel (step S73). In the present embodiment, 50 pixels (+50 pixels) are selected on one side and 50 pixels (−50 pixels) are selected on the other side in the vertical direction of the image.
選択された一画素と該一画素の+50画素及び−50画素の平均値を算出する(ステップS74)。ここで、画素の平均値とは、例えば0〜255で示されるRGB値を平均して得られる輝度値を用いることができる。算出された平均値を先に選択した一画素の値に設定する(ステップS75)。 The average value of the selected one pixel and the +50 pixel and −50 pixel of the one pixel is calculated (step S74). Here, as the average value of the pixels, for example, a luminance value obtained by averaging RGB values represented by 0 to 255 can be used. The calculated average value is set to the value of one pixel selected previously (step S75).
次に、修正した一画素の縦方向に隣り合う画素を一画素に設定し(ステップS76)、ステップS75,76によって、設定された所定範囲の各画素について平均化を行う。そして、これら画素の全部について平均化処理が実行されたかを判別し(ステップS77)、全ての画素について、その画素と+50画素及び−50画素による平均化が終わったら、修正する画素を画像に対して横方向に1画素シフトして、ステップS73の一画素に設定し、同様にステップS73〜S77の処理を繰り返し実行する。補正範囲の全部の画素について平均化が終了したかを判別し(ステップS79)、全画素が平均化された場合には、補正範囲の平均画像データ(平均RAWデータ)をバッファメモリ72に一時的に記憶する(ステップS80)。
Next, a pixel adjacent in the vertical direction of the corrected one pixel is set as one pixel (step S76), and averaging is performed for each pixel in the predetermined range set in steps S75 and S76. Then, it is determined whether or not the averaging process has been executed for all of these pixels (step S77). When the averaging for all the pixels, +50 pixels, and −50 pixels is completed, the pixel to be corrected is converted into an image. On the other hand, one pixel is shifted in the horizontal direction to set one pixel in step S73, and the processes in steps S73 to S77 are repeated. It is determined whether averaging has been completed for all the pixels in the correction range (step S79). If all the pixels have been averaged, the average image data (average RAW data) in the correction range is temporarily stored in the
次に、最初に切り出したRAWデータから、算出された平均画像データを差し引くことによって差分画像(差分RAWデータ)を算出する。算出された差分画像は、バッファメモリ72に一時的に記憶される(ステップS81)。 Next, a difference image (difference RAW data) is calculated by subtracting the calculated average image data from the first cut out RAW data. The calculated difference image is temporarily stored in the buffer memory 72 (step S81).
算出された差分画像に修正レベルに対応した強調値を加えることで差分修正画像(差分修正RAWデータ)を算出し、バッファメモリ72に一時的に記憶する(ステップS82)。ここで修正レベルとは、例えば、差分画像の基準値を0とした場合に、−2、−1、+1、+2などのパラメータで表すことができる。しわ修正処理時に使用者に設定された修正レベルのパラメータに基づいて差分画像の各画素の値に強調値を乗算することによって差分修正画像を算出することができる。このとき使用者は液晶表示部18によってしわ修正を確認して適宜修正レベルを調整して差分処理画像を再度作成することもできる。
A difference corrected image (difference corrected RAW data) is calculated by adding an enhancement value corresponding to the correction level to the calculated difference image, and temporarily stored in the buffer memory 72 (step S82). Here, the correction level can be expressed by parameters such as −2, −1, +1, +2 and the like when the reference value of the difference image is 0, for example. The difference correction image can be calculated by multiplying the value of each pixel of the difference image by the enhancement value based on the correction level parameter set by the user during the wrinkle correction processing. At this time, the user can confirm the wrinkle correction by the liquid
次に、バッファメモリ72に保存された平均画像データに差分修正画像を足し合わせることでしわ修正処理の目的の修正画像を生成することができる(ステップS83)。 Next, a corrected image targeted for wrinkle correction processing can be generated by adding the difference corrected image to the average image data stored in the buffer memory 72 (step S83).
本実施形態のように、切り出した撮像画像に平均画像データを差し引くことで得られる差分画像を用いて修正画像を生成することで、人間の顔表面の肌の複雑な起伏に順応させることできるため、しわ部分の修正された箇所に視認上違和感がなく、自然な顔画像を得ることができる。 Since the modified image is generated using the difference image obtained by subtracting the average image data from the cut-out captured image as in the present embodiment, it is possible to adapt to the complex undulations of the human face surface. In addition, a natural face image can be obtained without a sense of incongruity in visual recognition at the corrected portion of the wrinkle portion.
作成された修正画像を元の撮像画像の補正範囲の部分と入れ替え(ステップS84)、しわ修正処理が終了する。なお、メインメモリ38に、元の撮像画像と修正画像とをともに保存しておくことで、使用者が修正画像を視認して意思にそぐわず気に入らない場合には、元の撮像画像のみを残して保存してもよい。
The created corrected image is replaced with the correction range portion of the original captured image (step S84), and the wrinkle correction process is completed. It should be noted that by storing both the original captured image and the corrected image in the
本実施形態のデジタルカメラによれば、撮像部によって生成した撮像画像を、画像装置内に設けられた画像処理部24に入力することで、そのまま画像処理を実行することができる。このため、パーソナルコンピュータ等の外部装置を用いることなく、撮像をしたその場で画像処理された画像を確認することができ、使い勝手が良い。また、使用者は撮像装置の操作手段20を用いて、しわ修正処理の設定を行うだけで自動的に処理されるため、簡単な操作によって撮像画像に画像処理を実行することができる。
According to the digital camera of the present embodiment, the captured image generated by the imaging unit is input to the
本発明にかかる撮像装置及び画像処理手段は、化粧品などの店頭販売や美容形成などの分野で応用が期待できる。 The imaging apparatus and image processing means according to the present invention can be expected to be applied in the fields of over-the-counter sales of cosmetics and the like, and beauty formation.
14 撮像素子
24 画像処理部
38 メインメモリ
14
Claims (10)
前記撮像画像の顔画像のうち、しわの部分を含む補正範囲について画素ごとに平均化された平均画像データを算出し、前記撮像画像と前記平均画像データとの差分画像を算出し、前記撮像画像と差分画像とに基づいて前記補正範囲に含まれるしわが修正された修正画像を生成する画像処理手段とを備えている撮像装置。 An imaging unit that captures a subject person and generates a captured image;
Of the face image of the captured image, average image data averaged for each pixel for a correction range including a wrinkle portion is calculated, a difference image between the captured image and the average image data is calculated, and the captured image And an image processing unit that generates a corrected image in which wrinkles included in the correction range are corrected based on the difference image.
前記撮像画像から前記平均画像データを差し引くことで、差分画像を算出する差分画像算出手段と、
平均画像データと差分画像とを足し合わせることで前記修正画像を生成する修正画像生成手段とを備えていることを特徴とする請求項1に記載の撮像装置。 The image processing unit calculates average image data;
A difference image calculation means for calculating a difference image by subtracting the average image data from the captured image;
The imaging apparatus according to claim 1, further comprising a corrected image generation unit configured to generate the corrected image by adding the average image data and the difference image.
前記撮像画像から前記平均画像データを差し引くことで、差分画像を算出するステップと、
平均画像データと差分画像とを足し合わせることで前記修正画像を生成するステップとを有することを特徴とする請求項6に記載の画像処理方法。 The image processing unit calculating average image data;
Subtracting the average image data from the captured image to calculate a difference image;
The image processing method according to claim 6, further comprising: generating the corrected image by adding the average image data and the difference image.
The image processing method according to claim 6, wherein the captured image is RAW data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007218012A JP2009055168A (en) | 2007-08-24 | 2007-08-24 | Imaging apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007218012A JP2009055168A (en) | 2007-08-24 | 2007-08-24 | Imaging apparatus and image processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009055168A true JP2009055168A (en) | 2009-03-12 |
Family
ID=40505859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007218012A Pending JP2009055168A (en) | 2007-08-24 | 2007-08-24 | Imaging apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009055168A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019169023A (en) * | 2018-03-26 | 2019-10-03 | カシオ計算機株式会社 | Image processing apparatus, image processing method, and program therefor |
-
2007
- 2007-08-24 JP JP2007218012A patent/JP2009055168A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019169023A (en) * | 2018-03-26 | 2019-10-03 | カシオ計算機株式会社 | Image processing apparatus, image processing method, and program therefor |
JP7110657B2 (en) | 2018-03-26 | 2022-08-02 | カシオ計算機株式会社 | Image processing device, image processing method and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI390453B (en) | Image processing apparatus, image processing method, and storage medium for storing program | |
JP4489608B2 (en) | DIGITAL STILL CAMERA, IMAGE REPRODUCTION DEVICE, FACE IMAGE DISPLAY DEVICE, AND CONTROL METHOD THEREOF | |
JP4732303B2 (en) | Imaging device | |
US20120105590A1 (en) | Electronic equipment | |
JP5129683B2 (en) | Imaging apparatus and control method thereof | |
JP2019106045A (en) | Image processing device, method, and program | |
JP2009223527A (en) | Image processor, image processing method, and computer program for image processing | |
US11610293B2 (en) | Image processing apparatus and image processing method | |
JP4953770B2 (en) | Imaging device | |
JP2016219991A (en) | Image processor and control method thereof and program | |
JP2017143354A (en) | Image processing apparatus and image processing method | |
JP2012034069A (en) | Image processor and image processing program | |
JP2009223524A (en) | Image processor, image processing method, and computer program for image processing | |
JP2010219740A (en) | Image processing unit and digital camera | |
JP2014102713A (en) | Face component extraction device, face component extraction method, and program | |
JP5125774B2 (en) | camera | |
JP6257260B2 (en) | Imaging apparatus and control method thereof | |
JP6024135B2 (en) | Subject tracking display control device, subject tracking display control method and program | |
JP2009302910A (en) | Imaging device and image reproducer | |
JP2009055168A (en) | Imaging apparatus and image processing method | |
JP2017147498A (en) | Image processing apparatus, image processing method and program | |
JP2009089083A (en) | Age estimation photographing device and age estimation photographing method | |
JP2011055272A (en) | Imaging apparatus and imaging method | |
JP2010016693A (en) | Electronic camera | |
JP5338248B2 (en) | Image processing apparatus, electronic camera, and image processing program |