JP4984247B2 - Image processing apparatus, image processing method, and program - Google Patents
Image processing apparatus, image processing method, and program Download PDFInfo
- Publication number
- JP4984247B2 JP4984247B2 JP2007239724A JP2007239724A JP4984247B2 JP 4984247 B2 JP4984247 B2 JP 4984247B2 JP 2007239724 A JP2007239724 A JP 2007239724A JP 2007239724 A JP2007239724 A JP 2007239724A JP 4984247 B2 JP4984247 B2 JP 4984247B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- original image
- processing apparatus
- unit
- original
- 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
- 238000012545 processing Methods 0.000 title claims description 60
- 238000003672 processing method Methods 0.000 title claims description 3
- 238000000034 method Methods 0.000 claims description 47
- 238000009499 grossing Methods 0.000 claims description 40
- 238000012937 correction Methods 0.000 claims description 35
- 230000037303 wrinkles Effects 0.000 claims description 29
- 230000001815 facial effect Effects 0.000 claims description 25
- 238000000605 extraction Methods 0.000 claims description 7
- 230000002194 synthesizing effect Effects 0.000 claims description 5
- 230000015572 biosynthetic process Effects 0.000 description 11
- 238000003786 synthesis reaction Methods 0.000 description 11
- 239000000203 mixture Substances 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 241000161982 Mogera robusta Species 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000003702 image correction Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Description
本発明は、人物が撮影された画像に対して画像補正を行う画像処理装置、画像処理方法及びプログラムに関する。 The present invention relates to an image processing apparatus, an image processing method, and a program for performing image correction on an image obtained by photographing a person.
現在、人物が撮影された写真の見栄えをよくするために種々の方法が用いられている。特に撮影方法や画像処理により、肌のしみやしわなどを目立たなくする事は一般的になってきている。この具体的な方法としては、第一に写真撮影時に照明機材を配置する位置を調整して被写体への照明の当たり方を最適にすることで人物の肌に存在するしみやしわを目立たなくし、写真の出来ばえを良くする方法(例えば特許文献1参照)や、写真撮影時に焦点を合わせた画像と焦点をずらした(ぼかした)画像を同時に撮影して合成する方法(例えば特許文献2参照)が挙げられる。第二に、撮影後の画像に対してユーザがしみやしわの位置を指定して画像処理により補正を行う方法(例えば特許文献3参照)が挙げられる。
しかし、上記第一の方法では、撮影時になんらかの準備または特殊な撮影方法をしなければならず、既に撮影した画像の修正はできない、という問題がある。また、第二の方法では、ユーザが画像処理専用のアプリケーションを用いて個々のしわやパーツを加工する必要があるので、このような専用アプリケーションを使いこなすための高度な知識と技能をユーザが習得しなければならない、という問題がある。
本発明は上記の点に鑑みてなされたものであり、その目的は、人物画像を撮影後に補正が可能であり、ユーザが簡単な操作で補正を行うことを可能にする画像処理装置および画像処理方法を提供することにある。
However, in the first method, there is a problem that some preparation or a special photographing method must be performed at the time of photographing, and an already photographed image cannot be corrected. In the second method, since the user needs to process individual wrinkles and parts using an application dedicated to image processing, the user acquires advanced knowledge and skills to master such an exclusive application. There is a problem of having to.
The present invention has been made in view of the above points, and an object of the present invention is to provide an image processing apparatus and an image processing that can correct a person image after photographing and allow a user to perform correction by a simple operation. It is to provide a method.
本発明は上記の課題を解決するためになされたものであり、補正対象となる人物画像の画像データである元画像を取得する画像情報取得部と、前記画像情報取得部で取得する前記元画像から顔の肌の部分である顔肌領域を抽出することにより、前記元画像に前記顔肌領域の位置情報を付加したマスク付画像を生成する顔肌領域抽出画像生成部と、前記顔肌領域抽出画像生成部で生成する前記マスク付画像から平滑化処理により下地用画像を生成する下地用画像生成部と、前記下地用画像生成部で生成した前記下地用画像と、前記画像情報取得部から取得した前記元画像とを合成することにより美肌化画像を生成する合成部と、を有し、前記合成部は、前記下地用画像と前記元画像の対応する各画素の色情報を比較し、その差があらかじめ設定してある閾値以上の画素は前記元画像の画素値を前記下地用画像の画素値とあらかじめ設定した割合で合成した値へ変更する画像処理装置である。ここで、美肌化画像とは、画像処理により、人物写真の顔にあるしわやしみを目立たなくして、見栄えをよくした画像等が適用可能である。 The present invention has been made to solve the above-described problems, and an image information acquisition unit that acquires an original image that is image data of a person image to be corrected, and the original image acquired by the image information acquisition unit A face skin region extraction image generating unit that generates a masked image in which position information of the face skin region is added to the original image by extracting a face skin region that is a skin portion of the face from the face, and the face skin region From the background image generation unit that generates a background image by smoothing processing from the masked image generated by the extracted image generation unit, the background image generated by the background image generation unit, and the image information acquisition unit possess the acquired the original image combining unit for generating Aesthetic image by synthesizing, wherein the combining unit compares color information of corresponding pixels of the background image and the original image, The difference is preset The threshold or more pixels are an image processing apparatus for changing the synthesized value in the proportions set the pixel values of the original image in advance and the pixel value of the background image. Here, as the skin beautification image, it is possible to apply an image or the like having a good appearance by making the wrinkles and spots on the face of the person photograph inconspicuous by image processing.
この発明によれば、元画像を取得し、該元画像を基に顔の肌の部分である顔肌領域の画像を滑らかにする平滑化処理を施した下地用画像を生成し、元画像と合成するので、人物画像を撮影後に、ユーザが簡単な操作で補正を行うことが可能になる。 According to the present invention, an original image is obtained, and a base image is generated by performing a smoothing process for smoothing an image of a facial skin region that is a facial skin portion based on the original image. Since the images are combined, it is possible for the user to perform correction by a simple operation after shooting a person image.
また、本発明は、上記の画像処理装置において、前記下地用画像生成部は、平滑化フィルタを用いて平滑化処理を行い、前記下地用画像を生成することを特徴とする In the image processing apparatus according to the aspect of the invention, the background image generation unit may perform a smoothing process using a smoothing filter to generate the background image.
この発明によれば、平滑化フィルタを用いて平滑化処理を行うので、しみやしわ等を含め、画像の濃淡を軽減させた下地用画像を生成することが可能になる。 According to the present invention, since the smoothing process is performed using the smoothing filter, it is possible to generate a background image in which the density of the image is reduced, including spots and wrinkles.
また、本発明は、上記の画像処理装置において、前記下地用画像生成部は、平滑化処理に用いる平滑化フィルタをあらかじめ設定しておくことを特徴とする。 Further, the present invention is characterized in that, in the above-described image processing apparatus, the background image generation unit previously sets a smoothing filter used for the smoothing process.
この発明によれば、平滑化処理に用いる平滑化フィルタをあらかじめ設定しておくので、ユーザは平滑化フィルタを設定するパラメータを入力する必要がなくなり、簡単な操作で補正が行うことが可能になる。 According to the present invention, since the smoothing filter used for the smoothing process is set in advance, the user does not need to input parameters for setting the smoothing filter, and correction can be performed with a simple operation. .
また、本発明は、上記の画像処理装置において、前記合成部は、前記下地用画像と前記元画像の対応する各画素の色情報を比較し、その差があらかじめ設定してある閾値以上の画素は前記元画像の画素値を前記下地用画像の画素値とあらかじめ設定した割合で合成した値へ変更することを特徴とする。 Further, according to the present invention, in the image processing apparatus, the combining unit compares color information of corresponding pixels of the background image and the original image, and a difference between the pixels is equal to or greater than a preset threshold value. Is characterized in that the pixel value of the original image is changed to a value synthesized with the pixel value of the background image at a preset ratio.
この発明によれば、閾値を用いて各画素の色情報を比較するので、軽度なしみやしわまで補正対象とするか、重度なしみやしわのみを補正対象とするか、等の補正対象となるしわやしみの度合いを調整することが可能となる。また、元画像のしみやしわの位置の画素値を下地用画像の画素値とあらかじめ設定した割合で合成し、下地用画像の画素値に近づけるため、しみやしわが目立たない滑らかな美肌化画像を生成することが可能になる。 According to the present invention, since the color information of each pixel is compared using a threshold value, wrinkles that are correction targets such as whether minor smears and wrinkles are to be corrected or only severe smears and wrinkles are to be corrected. It becomes possible to adjust the degree of blur. In addition, the pixel value at the position of the spot or wrinkle in the original image is synthesized with the pixel value of the background image at a preset ratio and approaches the pixel value of the background image. Can be generated.
また、本発明は、上記の画像処理装置において、前記下地用画像生成部は、前記入力設定部に入力されるパラメータに基づいて平滑化処理に用いる平滑化フィルタを選択することを特徴とする。 In the image processing apparatus according to the present invention, the background image generation unit selects a smoothing filter used for a smoothing process based on a parameter input to the input setting unit.
この発明によれば、平滑化フィルタを選択するパラメータをユーザが入力することにより、ユーザが下地用画像を滑らかにする度合いを選択することができる。 According to the present invention, the user can select the degree of smoothing the background image by inputting the parameter for selecting the smoothing filter.
また、本発明は、上記の画像処理装置において、前記入力設定部に入力されるパラメータは、補正対象となるしみまたはしわの少なくともいずれか一方の範囲を指定するパラメータであって、当該パラメータに基づいて、前記合成部において前記下地用画像と前記元画像の対応する各画素の比較をする際の閾値が設定されることを特徴とする。 Further, according to the present invention, in the image processing apparatus, the parameter input to the input setting unit is a parameter that specifies at least one range of a stain or a wrinkle to be corrected, and is based on the parameter Then, a threshold value is set for the comparison of the corresponding pixels of the background image and the original image in the combining unit.
この発明によれば、パラメータを入力することによって、補正対象となるしみやしわの範囲が指定され、ユーザの指示に応じた閾値を設定して補正処理を行うことができる。これにより、ユーザは補正処理を行うにあたり、直感的にわかりやすい方法で範囲を指定することができる。 According to this invention, by inputting a parameter, a range of spots and wrinkles to be corrected is specified, and a correction process can be performed by setting a threshold value according to a user instruction. As a result, the user can specify the range in an intuitively understandable manner when performing the correction process.
また、本発明は、上記の画像処理装置において、前記入力設定部に入力されるパラメータは、補正する度合いを指定するパラメータであって、当該パラメータに基づいて、前記合成部において前記元画像と前記下地用画像の画素の画素値を合成する際の割合が設定されることを特徴とする。 Further, according to the present invention, in the above image processing apparatus, the parameter input to the input setting unit is a parameter that specifies a degree of correction, and based on the parameter, the synthesis unit and the original image A ratio for combining pixel values of pixels of the background image is set.
この発明によれば、パラメータ入力をすることによって、しみやしわをより目立たなくするか、少しだけ目立たなくするか、等のしみやしわを補正する度合いが指定され、ユーザの指示に応じた合成の割合を設定して補正処理を行うことができる。これにより、ユーザは補正処理を行うにあたり、直感的にわかりやすい方法で補正の度合いを指定することができる。 According to the present invention, by inputting parameters, the degree of correction of blots and wrinkles, such as making blotches and wrinkles less noticeable or slightly less noticeable, is specified, and synthesis according to user instructions The correction processing can be performed by setting the ratio of. Thereby, when performing the correction process, the user can specify the degree of correction by an intuitively easy-to-understand method.
また、本発明は、上記の画像処理装置において、前記合成部で生成される美肌化画像を印刷する印刷部を有することを特徴とする。 In addition, the present invention is characterized in that the image processing apparatus includes a printing unit that prints the skin beautification image generated by the combining unit.
この発明によれば、ユーザは補正を施した美肌化画像を印刷することが可能になる。 According to this invention, the user can print a skin-beautified image that has been corrected.
また、本発明は、上記の画像処理装置が、補正対象となる人物画像の画像データである元画像を取得するステップと、画像処理装置が、取得した前記元画像から顔の肌の部分である顔肌領域を抽出することにより、前記元画像に前記顔肌領域の位置情報を付加したマスク付画像を生成するステップと、画像処理装置が、前記マスク付画像から平滑化処理により下地用画像を生成するステップと、画像処理装置が、前記下地用画像と前記元画像の対応する各画素の色情報を比較し、その差があらかじめ設定してある閾値以上の画素は前記元画像の画素値を前記下地用画像の画素値とあらかじめ設定した割合で合成した値へ変更するステップと、を有する画像処理方法である。 According to the present invention, the image processing apparatus described above acquires an original image that is image data of a person image to be corrected, and the image processing apparatus is a facial skin portion from the acquired original image. A step of generating a masked image in which position information of the face skin region is added to the original image by extracting a face skin region; and an image processing device converts a background image from the masked image by a smoothing process. The generating step and the image processing device compare the color information of the corresponding pixels of the background image and the original image, and pixels whose difference is equal to or greater than a preset threshold value are set to the pixel value of the original image. And changing the pixel value of the background image to a value synthesized at a preset ratio .
また、本発明は、コンピュータに、補正対象となる人物画像の画像データである元画像を取得するステップと、取得した前記元画像から顔の肌の部分である顔肌領域を抽出することにより、前記元画像に前記顔肌領域の位置情報を付加したマスク付画像を生成するステップと、前記マスク付画像から平滑化処理により下地用画像を生成するステップと、前記下地用画像と前記元画像の対応する各画素の色情報を比較し、その差があらかじめ設定してある閾値以上の画素は前記元画像の画素値を前記下地用画像の画素値とあらかじめ設定した割合で合成した値へ変更するステップと、を実行させるためのプログラムである。 Further, the present invention obtains, in a computer, an original image that is image data of a human image to be corrected, and extracts a facial skin area that is a skin portion of the face from the obtained original image. Generating a masked image obtained by adding position information of the face skin region to the original image, generating a ground image from the masked image by a smoothing process, the ground image and the original image Compare the color information of each corresponding pixel, and change the pixel value of the original image to the value synthesized with the pixel value of the background image with the pixel value of the background image if the difference is greater than a preset threshold value Is a program for executing steps.
本発明によれば、元画像を取得し、該元画像を基に顔の肌の部分である顔肌領域の画像を滑らかにする平滑化処理を施した画像を生成するので、人物画像を撮影後に、ユーザが簡単な操作で補正を行うことが可能になる。 According to the present invention, an original image is acquired, and an image subjected to smoothing processing for smoothing an image of a facial skin area that is a facial skin portion based on the original image is generated. Later, it becomes possible for the user to perform correction with a simple operation.
以下、図面を参照しながら本発明の実施形態について詳しく説明する。図1は、本実施形態の画像処理装置が実行する処理の概念を説明するための図である。この図の(a)は、補正対象となる人物画像の元画像100である。また、同図の(b)は、しみやしわ等を含め、画像の濃淡を軽減させた下地用画像300であり、この画像は(a)の元画像100から顔の肌の部分である肌領域を抽出した画像に対して後述する平滑化処理による補正を施すことによって生成される。この下地用画像300では、補正を行うことによりしみやしわなどが目立たなくなっている。このようにして得られる下地用画像300と、元画像100とを合成して、しみやしわなどが目立たなくなった見栄えのよい同図の(c)の美肌化画像400が生成される。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram for explaining the concept of processing executed by the image processing apparatus according to the present embodiment. (A) of this figure is the
次に、本実施形態の具体的な構成を説明する。図2は、本発明の一実施形態による画像処理装置の構成を示すブロック図である。画像処理装置1は、画像情報取得部2と、入力設定部3と、画像処理部4と、印刷部5と、から構成される。また、画像処理部4は、顔肌領域抽出画像生成部41と、下地用画像生成部42と、合成部43と、から構成される。
Next, a specific configuration of the present embodiment will be described. FIG. 2 is a block diagram showing the configuration of the image processing apparatus according to the embodiment of the present invention. The
画像情報取得部2は、画像処理装置1へ入力される補正対象となる人物画像の画像データである元画像100(図1(a)参照)を取得し、該元画像100を顔肌領域抽出画像生成部41と合成部43とへ出力する。
The image
画像処理部4は、画像情報取得部2から入力された元画像100に対して、顔肌領域抽出画像生成部41、下地用画像生成部42、合成部43により以下のような補正を行う。
The
顔肌領域抽出画像生成部41は、画像情報取得部2から取得した元画像100から、顔の肌の部分である顔肌領域を抽出して、顔肌領域の位置情報を付加したマスク付画像200を生成し、該マスク付画像200を下地用画像生成部42へ出力する。顔肌領域の抽出方法として、例えば、画素値が所定範囲(肌色)にある画素に対応する部分のみを元画像100から抽出する方法を用いる。顔肌領域を抽出する際には、目や鼻、口などの特徴領域は後述する補正を施さないようにするため、これらの特徴領域を除いて肌領域とする。ここでは前記特徴領域の位置に基づいて顔に相当する領域を特定する。また、大きなホクロは特徴として残しておきたいため顔肌領域から除きたい場合は、入力設定部3に除外すべき特徴領域の大きさを指定したパラメータを設定しておき、そのパラメータに基づいて該指定された大きさの特徴領域を認識し、該領域を除外して顔肌領域を生成することもできる。
The face skin region extraction
下地用画像生成部42は、顔肌領域抽出画像生成部41から入力されたマスク付画像200に対して平滑化処理による補正を行うことにより下地用画像300を生成する。平滑化処理とは、場所による色の変化を滑らかにする処理であり、例えば、所定範囲の画素についてその画素値を平均する等の処理により、画像に載ったランダムなノイズの除去や、画素ごと細かい変化の軽減を行い、滑らかな画像にする処理のことである。ランダムなノイズの除去や画像ごと細かい変化の軽減を行うことによりしみやしわを含めた画像の濃淡が軽減される。この平滑化処理には、例えば平滑化フィルタが適用される。このようにして下地用画像300が生成され(図1(b)参照)、この下地用画像300は合成部43へ出力される。
The background
合成部43は、画像情報取得部2で取得した元画像100と下地用画像生成部42で生成した下地用画像300を合成して美肌化画像400(図1(c)参照)を生成する。
即ち、まず、元画像100と下地用画像300のそれぞれ対応する各画素の色情報を比較し、その差があらかじめ設定してある閾値以上の画素は元画像100の画素値と下地用画像300の画素値を設定した割合で合成し、顔肌領域の画像を生成する。設定した割合で合成するとは、元画像100の画素値を下地用画像300の画素値に近い値へ変更することである。どのような画素値に変更するかは、入力設定部3で設定したパラメータの補正レベルによって決定されている。例えば、補正レベルが高く設定されている場合に、下地用画像300の画素値へより近い画素値に変更されるようにする。このようにすると、しみやしわがより目立たなくなる。また、上記の閾値は入力設定部3でユーザが設定するパラメータであり、閾値が小さいほど画素値が変更される画素が多くなるので、軽度なしみやしわを補正できることとなる。
The synthesizing
That is, first, the color information of each pixel corresponding to each of the
図3は、合成部42の処理を説明する具体例を示したものである。横軸は画像データの画素位置、縦軸は画素値であり、例えばRGBなどの色情報である。実線は元画像100のデータである。しみやしわの位置では、肌と大きく色情報が異なるため、対応する画素位置で実線には凹みが生じている。マスク付画像200のデータへ平滑化処理を行うと、所定範囲の画素についてその画素値が周辺の画素値と平滑化されるため、点線のような滑らかな曲線データが得られる。これが下地用画像300である。そして、このようにして得られた下地用画像300の画素値と元画像100の画素値を各画素について比較し、その差が閾値以上であるかどうかを判断する。例えば、画素位置(x,y)おける元画像100の画素値a(x,y)と下地用画像300の画素値a´(x,y)の差が大きくなっているが、この差が閾値s以上である場合、美肌化画像の画素位置(x,y)における画素値がパラメータに基づいて計算される画素値A(x,y)へと変更される。画素値A(x,y)は、αを合成する割合とすると、下記数式1
最後に、生成された顔肌領域の画像を元画像100にはめ込む、つまり、元画像100の顔肌領域の画素値を生成された顔肌領域の画像の画素値に変更することにより美肌化画像400を生成する。この合成により、しみやしわなどが目立たない見栄えの良い写真を生成することができる。該美肌化画像400は印刷部5へ出力される。
Finally, the image of the facial skin area generated is fitted into the
印刷部5は、画像処理部4で生成した美肌化画像400を印刷する。
The
入力設定部3は、ユーザからの入力を受付け、画像処理部4のパラメータを設定する。このパラメータには、補正レベルのパラメータと、閾値のパラメータとがあり、これらは合成部42で用いられる。閾値のパラメータは、補正対象となるしみまたはしわの少なくともいずれか一方の範囲を指定するパラメータであって、このパラメータに基づいて、下地用画像300と元画像100の対応する各画素の比較をする際の閾値が設定される。補正レベルのパラメータは、補正する度合いを指定するパラメータであって、このパラメータに基づいて、元画像100と下地用画像300の画素の画素値を合成する際の割合が設定される。上述したように、これらのパラメータを設定することにより、補正レベルが高いほどしみやしわをより目立たなくしたり、閾値が小さいほど軽度なしみやしわを補正したりすることができる。また、必要に応じて、顔肌領域抽出画像生成部41で用いるパラメータとして、上述したように人物の特徴となる大きなホクロなどの除外すべき特徴領域の大きさを指定するパラメータを設定することも可能である。ユーザはシーンに応じてこれらのパラメータを変更することができる。なお、この実施形態においては、パラメータが予め設定されている場合について説明し、ユーザが設定する場合については後述する。
The input setting unit 3 receives input from the user and sets parameters of the
図4は、上述した画像処理装置1における処理の流れの一例を表すフローチャートである。まず、画像情報取得部2は、補正対象となる人物画像の画像データである元画像100の取得を行い(ステップS1)、顔肌領域抽出画像生成部41へ出力をする。次に顔肌領域抽出画像生成部41は、入力された元画像100から、顔の肌の部分である顔肌領域を抽出することによりマスク付画像200を生成し(ステップS2)、下地用画像300生成部42へ出力する。
FIG. 4 is a flowchart illustrating an example of a process flow in the
次いで、下地用画像生成部42は、入力されたマスク付画像200へ平滑化処理を行うことにより下地用画像300を生成し(ステップS3)、合成部43へ出力する。合成部43は、まず、肌領域画像と下地用画像300の対応する各画素の色情報を比較し、その差が閾値以上であるか否かを判断する(ステップS4)。差が閾値以上であれば元画像100の画素と下地用画像300の画素を設定した割合で合成する(ステップS5)。その後、顔肌領域のすべての画素についてステップS4からステップS5までの処理が終わったかどうかを判断し(ステップS6)、終わっていない場合(ステップS7)は、ステップS4以降の処理を繰り返す。また、ステップS4で差が閾値未満であれば、ステップS5の処理は飛ばしてステップS6以降の処理を行う。
Next, the background
すべての画素が終了すると、合成部43は、生成された顔肌領域の画像を画像情報取得部2で取得した元画像100にはめ込むことで美肌化画像400を生成し(ステップS8)、該美肌化画像400を印刷部5へ出力する。このようにして、しみやしわなどが目立たない見栄えの良い写真が生成される。最後に印刷部5は、合成部43から出力された美肌化画像400を印刷する(ステップS9)。
When all the pixels are completed, the
このように、本実施形態によれば、人物画像を撮影後に補正が可能であり、ユーザが簡単な操作で補正を行うことができる。また、以上説明した実施形態においては、パラメータが予め設定されるようにした。すなわち、画像処理装置の管理者等が標準的なパラメータをあらかじめ設定しておくことによって、ユーザはパラメータを入力しなくても、補正対象に人物画像を指定するだけで補正処理が可能になる。 As described above, according to the present embodiment, correction can be performed after a person image is captured, and correction can be performed by a user with a simple operation. In the embodiment described above, parameters are set in advance. That is, when an administrator of the image processing apparatus or the like sets standard parameters in advance, correction processing can be performed only by designating a human image as a correction target without the user inputting parameters.
以上、図面を参照してこの発明の一実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。
例えば、顔肌領域を自動で生成せず、ユーザが領域を選択して顔肌領域を生成しても構わない。また、印刷部5を表示部に置き換えた構成も可能である。
As described above, the embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to the above, and various design changes and the like can be made without departing from the scope of the present invention. It is possible to
For example, instead of automatically generating the face skin area, the user may select the area and generate the face skin area. A configuration in which the
なお、上述した実施形態において、パラメータは予め設定される場合について説明したが、ユーザが入力できるようにしてもよい。
図5は、ユーザがパラメータを入力する画面の一例を表す図である。この図における画面では、ユーザが直感的にわかりやすい内容を指定することができる。この図において、補正の範囲に大きなものまで含めるか否かを決定するスライドバー(符号a)は、人物の特徴となる大きなホクロなど補正の範囲から除外すべき特徴領域の大きさを設定する。このスライドバーを「含める」に近づけると除外すべき特徴領域は大きくなり、「省く」に近づけると除外すべき特徴領域は小さくなる。補正の範囲に薄いものまで含めるか否かを決定するスライドバー(符号b)は、補正対象となるしわやしみの重度を設定する。「含める」にスライドバーを近づけると薄いしわやしみまで補正の対象となり、「省く」に近づけると薄いものは補正の対象外となる。合成の割合を決定するスライドバー(符号c)は、合成の強度を設定する。「強く」にスライドバーを近づけると、補正の強さが強く(しみやしわが目立たなくなる度合いが強く)なり、「弱く」に近づけると補正の度合いが弱く(元画像100の度合いが強く)なる。
このようにして、ユーザはスライドバーを移動させるだけでパラメータを設定することができる。従って、特別な知識がなくても直感的に分かり易い指定方法でパラメータの設定を行うことができる。なお、複数の平滑化フィルタを画像処理装置内に持ち、ユーザからの入力で平滑化処理で用いる平滑化フィルタを選択できる。
In the above-described embodiment, the case where the parameters are set in advance has been described. However, the parameters may be input by the user.
FIG. 5 is a diagram illustrating an example of a screen on which a user inputs parameters. On the screen in this figure, the user can specify intuitively easy-to-understand contents. In this figure, a slide bar (symbol a) for determining whether to include even a large one in the correction range sets the size of a feature region to be excluded from the correction range, such as a large mole that is a feature of a person. When the slide bar is brought close to “include”, the feature region to be excluded becomes large, and when the slide bar is brought close to “exclude”, the feature region to be excluded becomes small. The slide bar (symbol b) for determining whether to include even a thin object in the correction range sets the severity of wrinkles and spots to be corrected. When the slide bar is brought close to “include”, the thin wrinkles and spots are subject to correction. When the slide bar is brought close to “exclude”, the thin ones are not subject to correction. The slide bar (symbol c) that determines the composition ratio sets the strength of the composition. When the slide bar is moved closer to “Strong”, the correction strength becomes stronger (the degree that the spots and wrinkles are inconspicuous) becomes stronger. .
In this way, the user can set parameters simply by moving the slide bar. Therefore, parameters can be set by a designation method that is intuitively easy to understand without any special knowledge. Note that a plurality of smoothing filters are provided in the image processing apparatus, and a smoothing filter used in the smoothing process can be selected by input from the user.
また、図2における各部の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより、画像処理を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものであってもよい。
また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、フラッシュメモリ等の書き込み可能な不揮発性メモリ、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。
2 is recorded on a computer-readable recording medium, and the program recorded on the recording medium is read into a computer system and executed to perform image processing. May be. Here, the “computer system” may include an OS and hardware such as peripheral devices.
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” means a flexible disk, a magneto-optical disk, a ROM, a writable nonvolatile memory such as a flash memory, a portable medium such as a CD-ROM, a hard disk built in a computer system, etc. This is a storage device.
さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
Further, the “computer-readable recording medium” means a volatile memory (for example, DRAM (Dynamic DRAM) in a computer system that becomes a server or a client when a program is transmitted through a network such as the Internet or a communication line such as a telephone line. Random Access Memory)), etc., which hold programs for a certain period of time.
The program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.
1…画像処理装置 2…画像情報取得部 3…入力設定部 4…画像処理部 41…顔肌領域抽出画像生成部 42…下地用画像生成部 43…合成部 5…印刷部 100…元画像 200…マスク付画像 300…下地用画像 400…美肌化画像
DESCRIPTION OF
Claims (9)
前記画像情報取得部で取得する前記元画像から顔の肌の部分である顔肌領域を抽出することにより、前記元画像に前記顔肌領域の位置情報を付加したマスク付画像を生成する顔肌領域抽出画像生成部と、
前記顔肌領域抽出画像生成部で生成する前記マスク付画像から平滑化処理により下地用画像を生成する下地用画像生成部と、
前記下地用画像生成部で生成した前記下地用画像と、前記画像情報取得部から取得した前記元画像とを合成することにより美肌化画像を生成する合成部と、
を有し、
前記合成部は、前記下地用画像と前記元画像の対応する各画素の色情報を比較し、その差があらかじめ設定してある閾値以上の画素は前記元画像の画素値を前記下地用画像の画素値とあらかじめ設定した割合で合成した値へ変更する画像処理装置。 An image information acquisition unit that acquires an original image that is image data of a person image to be corrected;
Facial skin that generates a masked image in which position information of the facial skin region is added to the original image by extracting a facial skin region that is a part of the facial skin from the original image acquired by the image information acquisition unit An area extraction image generation unit;
A background image generation unit that generates a background image by a smoothing process from the masked image generated by the face skin region extraction image generation unit;
A combining unit that generates a beautifying image by combining the background image generated by the background image generating unit and the original image acquired from the image information acquisition unit;
I have a,
The synthesizing unit compares the color information of each pixel corresponding to the background image and the original image, and a pixel whose difference is equal to or greater than a preset threshold value sets the pixel value of the original image to the background image. An image processing apparatus that changes a pixel value to a value synthesized at a preset ratio .
画像処理装置が、取得した前記元画像から顔の肌の部分である顔肌領域を抽出することにより、前記元画像に前記顔肌領域の位置情報を付加したマスク付画像を生成するステップと、Generating an image with a mask in which position information of the face skin region is added to the original image by extracting a face skin region that is a part of the skin of the face from the acquired original image;
画像処理装置が、前記マスク付画像から平滑化処理により下地用画像を生成するステップと、An image processing apparatus generating a background image from the image with mask by a smoothing process;
画像処理装置が、前記下地用画像と前記元画像の対応する各画素の色情報を比較し、その差があらかじめ設定してある閾値以上の画素は前記元画像の画素値を前記下地用画像の画素値とあらかじめ設定した割合で合成した値へ変更するステップと、An image processing apparatus compares the color information of each pixel corresponding to the background image and the original image, and a pixel whose difference is equal to or greater than a preset threshold value sets the pixel value of the original image to that of the background image. A step of changing to a value synthesized with a pixel value and a preset ratio;
を有する画像処理方法。An image processing method.
補正対象となる人物画像の画像データである元画像を取得するステップと、Obtaining an original image that is image data of a person image to be corrected;
取得した前記元画像から顔の肌の部分である顔肌領域を抽出することにより、前記元画像に前記顔肌領域の位置情報を付加したマスク付画像を生成するステップと、Generating a masked image in which position information of the facial skin region is added to the original image by extracting a facial skin region that is a part of the skin of the face from the acquired original image;
前記マスク付画像から平滑化処理により下地用画像を生成するステップと、Generating a background image from the masked image by a smoothing process;
前記下地用画像と前記元画像の対応する各画素の色情報を比較し、その差があらかじめ設定してある閾値以上の画素は前記元画像の画素値を前記下地用画像の画素値とあらかじめ設定した割合で合成した値へ変更することにより美肌化画像を生成するステップと、The color information of each pixel corresponding to the background image and the original image is compared, and for the pixel whose difference is greater than or equal to a preset threshold value, the pixel value of the original image is set in advance as the pixel value of the background image. Generating a skin beautifying image by changing to a value synthesized at a proportion,
を実行させるためのプログラム。A program for running
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007239724A JP4984247B2 (en) | 2007-09-14 | 2007-09-14 | Image processing apparatus, image processing method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007239724A JP4984247B2 (en) | 2007-09-14 | 2007-09-14 | Image processing apparatus, image processing method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009070260A JP2009070260A (en) | 2009-04-02 |
JP4984247B2 true JP4984247B2 (en) | 2012-07-25 |
Family
ID=40606419
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007239724A Expired - Fee Related JP4984247B2 (en) | 2007-09-14 | 2007-09-14 | Image processing apparatus, image processing method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4984247B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6349962B2 (en) * | 2014-05-27 | 2018-07-04 | 富士ゼロックス株式会社 | Image processing apparatus and program |
JP6458569B2 (en) | 2015-03-12 | 2019-01-30 | オムロン株式会社 | Image processing apparatus and image processing method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3539665B2 (en) * | 1998-03-05 | 2004-07-07 | 日本電信電話株式会社 | Face area correction method, face area correction apparatus, and recording medium storing face area correction program |
JP2006338377A (en) * | 2005-06-02 | 2006-12-14 | Fujifilm Holdings Corp | Image correction method, apparatus, and program |
JP2007043263A (en) * | 2005-08-01 | 2007-02-15 | Ricoh Co Ltd | Photographing system, photographing method, and program for executing the method |
JP2007088831A (en) * | 2005-09-22 | 2007-04-05 | Fujifilm Corp | Image correction method and device, as well as program |
JP2007094623A (en) * | 2005-09-28 | 2007-04-12 | Fujifilm Corp | Image correcting method and device, and program |
-
2007
- 2007-09-14 JP JP2007239724A patent/JP4984247B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009070260A (en) | 2009-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9007480B2 (en) | Automatic face and skin beautification using face detection | |
US8520089B2 (en) | Eye beautification | |
KR101662846B1 (en) | Apparatus and method for generating bokeh in out-of-focus shooting | |
CN104811684B (en) | A kind of three-dimensional U.S. face method and device of image | |
JP2011041089A (en) | Method, device and program for processing image, and imaging device | |
JP2005229198A (en) | Image processing apparatus and method, and program | |
JP2009282979A (en) | Image processor and image processing method | |
JP2004062651A (en) | Image processor, image processing method, its recording medium and its program | |
JP2015180062A (en) | Method for processing video sequence and device for processing video sequence | |
WO2017169039A1 (en) | Image processing device, imaging device, image processing method, and program | |
JP6720882B2 (en) | Image processing apparatus, image processing method and program | |
CN107564085B (en) | Image warping processing method and device, computing equipment and computer storage medium | |
JP2009065350A (en) | Image processor, image processing method, and storage medium | |
JP2019070870A (en) | Image processing device, image processing method and program | |
JP5843599B2 (en) | Image processing apparatus, imaging apparatus, and method thereof | |
KR101341616B1 (en) | Apparatus and method for improving image by detail estimation | |
JP4984247B2 (en) | Image processing apparatus, image processing method, and program | |
CN110766631A (en) | Face image modification method and device, electronic equipment and computer readable medium | |
CN110248104B (en) | Image processing method and device and electronic equipment | |
CN111866407A (en) | Image processing method and device based on motion digital camera | |
JP5282533B2 (en) | Image processing apparatus, imaging apparatus, and program | |
JP2020149589A (en) | Image processing device, imaging apparatus, image processing method, and program | |
JP2019145092A (en) | Image processing device, image processing method, and program | |
CN111083345A (en) | Apparatus and method for generating a unique illumination and non-volatile computer readable medium thereof | |
JP5932374B2 (en) | Image processing apparatus and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100824 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20101201 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111011 |
|
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: 20120330 |
|
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: 20120412 |
|
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: 20150511 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |