JP2021099750A - Method for adjusting wrinkles or blemishes in skin image - Google Patents

Method for adjusting wrinkles or blemishes in skin image Download PDF

Info

Publication number
JP2021099750A
JP2021099750A JP2019232150A JP2019232150A JP2021099750A JP 2021099750 A JP2021099750 A JP 2021099750A JP 2019232150 A JP2019232150 A JP 2019232150A JP 2019232150 A JP2019232150 A JP 2019232150A JP 2021099750 A JP2021099750 A JP 2021099750A
Authority
JP
Japan
Prior art keywords
wrinkles
stains
skin image
image
skin
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
Application number
JP2019232150A
Other languages
Japanese (ja)
Inventor
俊希 市橋
Toshiki Ichihashi
俊希 市橋
平行 佐藤
Hirayuki Sato
平行 佐藤
祥 菊池
Sho Kikuchi
祥 菊池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kao Corp
Original Assignee
Kao Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Kao Corp filed Critical Kao Corp
Priority to JP2019232150A priority Critical patent/JP2021099750A/en
Publication of JP2021099750A publication Critical patent/JP2021099750A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

To provide a method for adjusting wrinkles or blemishes in a skin image.SOLUTION: There is provided a method for adjusting wrinkles or blemishes in a skin image. The method includes the steps of: acquiring a skin image which has wrinkles or blemishes; acquiring a luminance profile of a region with wrinkles or blemishes and a luminance profile obtained by performing smoothing processing on the luminance profile A from the region with wrinkles or blemishes in the skin image; acquiring a corrected luminance profile M for the region with wrinkles or blemishes by using the luminance profiles; and replacing the luminance of the region with wrinkles or blemishes by the luminance of the corrected luminance profile M.SELECTED DRAWING: None

Description

本発明は、肌画像におけるシワ又はシミを調整する方法に関する。 The present invention relates to a method for adjusting wrinkles or stains on a skin image.

好印象を与える顔写真を作るため、又はメークアップや美容整形等の手術後の顔のシミュレーションのために、顔の肌色やシミ、シワなどを目立たなくするように顔画像が加工されることがある。逆に、将来の自分の顔がどのように変化するのか予測するために、シミ、シワなどを強調させた顔画像を作成することもある。これらの加工した顔画像を用いることで、例えば、将来又は手術後の肌状態をシミュレーションしながら美容カウンセリングなどを行うことができる。 The face image may be processed to make the skin color, stains, wrinkles, etc. of the face inconspicuous in order to make a face photo that gives a good impression, or to simulate the face after surgery such as make-up and cosmetic shaping. is there. On the contrary, in order to predict how one's face will change in the future, a face image with emphasized spots and wrinkles may be created. By using these processed facial images, for example, beauty counseling can be performed while simulating the skin condition in the future or after surgery.

老化に伴う肌の変化をみるうえで、ほうれい線(鼻唇溝)は着目されやすい。ほうれい線は、顔面の鼻翼端から口角端にかけて伸びる溝である。ほうれい線は、通常、若いうちは目立たないが、加齢によるに周辺皮膚のたるみや骨格の変化に伴って深く刻まれるようになる。ほうれい線の深さは見た目の年齢を大きく左右する。 The nasolabial fold (nasolabial fold) is easy to pay attention to when observing changes in the skin due to aging. The nasolabial fold is a groove extending from the end of the nasal wing of the face to the end of the corner of the mouth. Nasolabial folds are usually less noticeable when young, but become deeper with age as the surrounding skin sags and changes in the skeleton. The depth of the nasolabial fold greatly affects the age of appearance.

特許文献1には、取り込まれた顔画像からシワ部分を切り取った後、残った画像をスムージングして、シワなし顔画像を得ることが記載されている。特許文献2〜3には、顔画像の所定の肌領域の明るさ等に対してフィルタをかけることでシワやシミ成分を除去することが記載されている。 Patent Document 1 describes that a wrinkle-free face image is obtained by cutting out a wrinkle portion from the captured face image and then smoothing the remaining image. Patent Documents 2 and 3 describe that wrinkles and stain components are removed by filtering the brightness of a predetermined skin region of a facial image.

特開2002−304619号公報Japanese Unexamined Patent Publication No. 2002-304619 特開2004−234571号公報Japanese Unexamined Patent Publication No. 2004-234571 特開2006−53859号公報Japanese Unexamined Patent Publication No. 2006-53859

顔画像を加工する場合、加工したことが判らないように画像の修正がなされることが好ましい。しかし、ほうれい線のような顔面の大きな溝を修正する場合、修正が不十分であったり、修正部分と周辺との境界が不自然になることがある。したがって、修正部分が判り難く、また修正後の肌がより自然な見た目になるように、顔画像のシワやシミを修正することが望まれる。 When processing a face image, it is preferable that the image is modified so that the processed image is not known. However, when correcting a large facial groove such as a nasolabial fold, the correction may be insufficient or the boundary between the corrected part and the periphery may become unnatural. Therefore, it is desired to correct wrinkles and stains on the facial image so that the corrected portion is difficult to understand and the corrected skin looks more natural.

本発明は、より自然な見た目でシワ又はシミを低減又は強調させた肌画像を作成することを可能にする、肌画像におけるシワ又はシミの調整方法を提供する。本発明は、肌画像上におけるシワ又はシミの領域の元の輝度プロファイルとそれを平滑化した輝度プロファイルとを用いて、当該シワ又はシミの領域についてのマスキング用データを作成し、次いで、得られたマスキング用データで元の肌画像の当該シワ又はシミの領域をマスクすることによって、より自然な見た目でシワ又はシミを低減又は強調させた肌画像を作成することを可能にした。 The present invention provides a method for adjusting wrinkles or blemishes in a skin image, which makes it possible to create a skin image in which wrinkles or blemishes are reduced or emphasized with a more natural appearance. The present invention uses the original brightness profile of a wrinkle or spot area on a skin image and a smoothed brightness profile to create masking data for the wrinkle or spot area, which is then obtained. By masking the wrinkle or spot area of the original skin image with the masking data, it is possible to create a skin image in which wrinkles or spots are reduced or emphasized with a more natural appearance.

したがって、本発明は、肌画像におけるシワ又はシミの調整方法であって、
シワ又はシミを有する肌画像を取得すること;
該肌画像におけるシワ又はシミを有する領域から、以下のA及びBを取得すること
A:該シワ又はシミを有する領域の輝度プロファイル
B:該輝度プロファイルAを平滑化処理した輝度プロファイル;
下記式(1)により、該シワ又はシミを有する領域についての修正輝度プロファイルMを取得すること
M(x,y)=A(x,y)+α{B(x,y)−2×A(x,y)} (1)
((x,y)は、該肌画像に対応する座標を表し、αは正又は負の定数を表す);
該シワ又はシミを有する領域の輝度を、該修正輝度プロファイルMの輝度と置き換えること、
を含む、方法を提供する。
また本発明は、前記シワ又はシミの調整方法を用いてシワ又はシミの強調された肌画像を作成することを含む、加齢した肌画像の作成方法を提供する。
また本発明は、前記シワ又はシミの調整方法を用いてシワ又はシミの低減された肌画像を作成することを含む、シワ又はシミの改善した肌画像の作成方法を提供する。
また本発明は、前記シワ又はシミの改善した肌画像を用いる、シワ又はシミの改善後の肌の予測方法を提供する。
また本発明は、前述したいずれかの方法を実施するための装置を提供する。
また本発明は、前述したいずれかの方法を実施するためのプログラムを提供する。
Therefore, the present invention is a method for adjusting wrinkles or blemishes on a skin image.
Obtaining skin images with wrinkles or spots;
Obtaining the following A and B from the region having wrinkles or stains in the skin image A: Luminance profile of the region having wrinkles or stains B: Luminance profile obtained by smoothing the luminance profile A;
Obtaining the modified luminance profile M for the region having the wrinkles or stains by the following equation (1) M (x, y) = A (x, y) + α {B (x, y) -2 × A ( x, y)} (1)
((X, y) represents the coordinates corresponding to the skin image, and α represents a positive or negative constant);
Replacing the brightness of the wrinkled or spotted area with the brightness of the modified brightness profile M,
Provide methods, including.
The present invention also provides a method for creating an aged skin image, which comprises creating a skin image in which wrinkles or stains are emphasized by using the method for adjusting wrinkles or stains.
The present invention also provides a method for creating a skin image with improved wrinkles or stains, which comprises creating a skin image with reduced wrinkles or stains using the method for adjusting wrinkles or stains.
The present invention also provides a method for predicting skin after improvement of wrinkles or stains, using the skin image with improved wrinkles or stains.
The present invention also provides an apparatus for carrying out any of the above-mentioned methods.
The present invention also provides a program for carrying out any of the methods described above.

本発明によれば、肌画像上におけるほうれい線などのシワ、又はシミを、修正部分と周辺との境界が不自然な見た目にならないように低減又は強調することができる。本発明によれば、より自然な見た目でシワ又はシミを低減又は強調させた肌画像を作成することができる。 According to the present invention, wrinkles or stains such as nasolabial folds on the skin image can be reduced or emphasized so that the boundary between the corrected portion and the periphery does not look unnatural. According to the present invention, it is possible to create a skin image in which wrinkles or spots are reduced or emphasized with a more natural appearance.

シワ又はシミの調整方法の工程を示すフローチャート。The flowchart which shows the process of the adjustment method of a wrinkle or a stain. 輝度プロファイル及び平滑化輝度プロファイルの取得の手順の概要。Outline of the procedure for acquiring the brightness profile and the smoothed brightness profile. 輝度のグラデーション処理の概念図。Conceptual diagram of brightness gradation processing. グラデーション処理前後でのシワ領域の輝度の変化を示した概念図。A conceptual diagram showing the change in the brightness of the wrinkle area before and after the gradation processing. 本発明に係るシワ又はシミの調整方法を実施するための装置の一実施形態を示す概念図。The conceptual diagram which shows one Embodiment of the apparatus for carrying out the method of adjusting a wrinkle or a stain which concerns on this invention. ほうれい線調整処理後の顔画像。左:処理前の顔画像、中央:シワ低減処理の顔画像、右:シワ強調処理の顔画像。Face image after nasolabial fold adjustment processing. Left: Face image before processing, Center: Face image with wrinkle reduction processing, Right: Face image with wrinkle enhancement processing.

以下、図面を参照して、本発明の態様を詳細に説明する。下記の各図中、同一符号は同一又は同等の構成要素を表す。 Hereinafter, aspects of the present invention will be described in detail with reference to the drawings. In each of the figures below, the same reference numerals represent the same or equivalent components.

〔1.シワ又はシミの調整方法〕
一態様において、本発明は、肌画像におけるシワ又はシミの調整方法を提供する。図1は、本発明に係る肌画像におけるシワ又はシミの調整方法(以下、本方法ともいう)の工程を示すフローチャートである。本方法は、基本的には、輝度プロファイル取得工程(S1)、平滑化輝度プロファイル取得工程(S2)、修正輝度プロファイル作成工程(S3)、及び修正肌画像作成工程(S4)を含む。必要に応じて、本方法は、修正対象とする肌画像を得るための、肌画像取得工程(S0)を含んでいてもよい。次いで、これら各工程について詳述する。
[1. How to adjust wrinkles or stains]
In one aspect, the present invention provides a method for adjusting wrinkles or blemishes on a skin image. FIG. 1 is a flowchart showing a process of a method for adjusting wrinkles or stains (hereinafter, also referred to as the present method) in a skin image according to the present invention. This method basically includes a brightness profile acquisition step (S1), a smoothing brightness profile acquisition step (S2), a correction brightness profile creation step (S3), and a correction skin image creation step (S4). If necessary, the method may include a skin image acquisition step (S0) for obtaining a skin image to be corrected. Next, each of these steps will be described in detail.

(1−1.肌画像の取得)
肌画像取得工程(S0)では、ヒトの肌画像が取得される。ここで得られる肌画像としては、肌を含む画像であればよく、例えば顔、首、腕、手、脚、足、体幹部などの肌の画像が挙げられ、好ましくは顔画像である。当該顔画像は、正面顔画像であることが好ましいが、斜め顔又は横顔の画像であってもよく、あるいはそれらの正面顔、斜め顔又は横顔の一部が欠けた画像であってもよい。
(1-1. Acquisition of skin image)
In the skin image acquisition step (S0), a human skin image is acquired. The skin image obtained here may be an image including the skin, and examples thereof include an image of the skin such as a face, neck, arms, hands, legs, legs, and trunk, and a face image is preferable. The face image is preferably a front face image, but may be an image of an oblique face or a profile, or an image in which a part of the front face, the oblique face, or the profile is missing.

肌画像は、一般的な画像の取得手段、例えばカメラによる撮影などによって得ることができる。例えば、該肌画像は、カメラ等での撮影像であってもよく、又は写真、フィルム等をスキャンしたデータであってもよい。また、該肌画像は、カラー画像であってもグレースケール画像であってもよい。得られた肌画像は必要に応じて、後述する輝度プロファイル取得工程(S1)のために、計算機で読み取り可能な形式にデータ化される。例えば、該肌画像は、JPEG(Joint Photographic Experts Group)形式、BMP(Bitmap image)形式等の任意の画像ファイルとして取得されてもよく、又は各画素の明暗情報を羅列したデータとして取得されてもよい。本方法で用いられる肌画像のデータ形式は特に制限されない。 The skin image can be obtained by a general image acquisition means, for example, taking a picture with a camera. For example, the skin image may be an image taken by a camera or the like, or may be data obtained by scanning a photograph, a film, or the like. Further, the skin image may be a color image or a grayscale image. The obtained skin image is converted into data in a computer-readable format for the luminance profile acquisition step (S1) described later, if necessary. For example, the skin image may be acquired as an arbitrary image file such as a JPEG (Joint Photographic Experts Group) format or a BMP (Bitmap image) format, or may be acquired as data enumerating the brightness information of each pixel. Good. The data format of the skin image used in this method is not particularly limited.

取得された肌画像は、補正されてもよい。例えば、肌画像が顔画像であり、該画像上の顔が左右どちらかに傾いていた場合、その傾きをなくして顔が正立するように画像を補正してもよい。 The acquired skin image may be corrected. For example, when the skin image is a face image and the face on the image is tilted to the left or right, the image may be corrected so that the tilt is eliminated and the face stands upright.

次いで、該肌画像における、本方法で調整の対象とするシワ又はシミを有する領域(以下、シワ/シミ領域とも称する)を特定する。本方法で調整の対象とするシワ又はシミの大きさや種類には制限はない。シワの例としては、小ジワ、大シワ、ほうれい線などが挙げられ、シミの例としては、黒化するシミ(黒子、そばかす、肝斑、及び加齢や炎症等による色素沈着など)、白化するシミ(白斑など)、赤痣、傷跡等における皮膚の変色、などが挙げられる。該シワ/シミ領域とは、本方法で調整の対象とするシワ又はシミの部分そのものだけではなく、その周辺をも含む領域をいう。例えば、該シワ/シミ領域は、肌画像上のシワ又はシミをとり囲み、且つその周辺と比べて変色して(例えばより暗く又は明るく)見える領域に相当する、シワ又はシミ部分及びその周辺を含む肌画像上の領域である。 Next, in the skin image, a region having wrinkles or stains (hereinafter, also referred to as a wrinkle / stain region) to be adjusted by this method is specified. There is no limit to the size and type of wrinkles or stains to be adjusted by this method. Examples of wrinkles include fine wrinkles, large wrinkles, and spinal lines, and examples of spots include darkening spots (black spots, freckles, chloasma, and pigmentation due to aging and inflammation). Examples include whitening spots (white spots, etc.), red wrinkles, discoloration of the skin due to scars, and the like. The wrinkle / stain region refers to an region that includes not only the wrinkle or stain portion itself to be adjusted by this method but also the periphery thereof. For example, the wrinkle / stain region surrounds the wrinkle or stain on the skin image and corresponds to a region that appears discolored (for example, darker or brighter) than the surrounding area, and the wrinkle or stain portion and its surroundings. The area on the including skin image.

該シワ/シミ領域を特定する方法としては、肌画像上からシワ又はシミを検出するための任意の方法を用いることができ、その手法は特に限定されない。該シワ/シミ領域を特定する方法の例としては、目視により画像上からシワ/シミ領域を特定する方法;顔画像を2値化し、該2値化画像に基づいてシワ/シミ領域を検出する方法(例えば、特開2014−219781号公報、特開2015−64823号公報);顔画像の明るさの値に基づいてシワ/シミ領域を検出する方法(例えば、特開2016−22093号公報);顔のグレースケール画像の各画素の勾配強度(シワ強度)及び勾配ヒストグラム(シワ方向)を求める方法(例えば、特開2012−53813号公報);顔画像から抽出した顔の特徴点に基づいて測定範囲を設定し、該測定範囲内で、注目画素と平均画素との差分画像の最暗部を追跡することで、ほうれい線や目尻のしわなどの顔面溝の形状を計測する方法(例えば、特開2006−81846号公報)、などが挙げられる。このうち、簡便さの点で、目視により画像上からシワ/シミ領域を特定する方法が好ましい。例えば、目視によりシワ/シミ領域を特定する場合、目視により、肌画像上のシワ又はシミ部分を中心とした周辺の肌と比べて肌色が暗く見える領域をシワ/シミ領域として決定しながら、ポインティングデバイスなどを用いて該肌画像上での該シワ/シミ領域の位置を入力することができる。このような画像上の位置の入力の手順は、一般的な画像処理ソフトウェア(例えばimage J [imagej.nih.gov/ij/])を用いて実行可能である。 As a method for identifying the wrinkle / stain region, any method for detecting wrinkles or stains on the skin image can be used, and the method is not particularly limited. As an example of the method of identifying the wrinkle / stain region, a method of visually identifying the wrinkle / stain region from the image; the face image is binarized, and the wrinkle / stain region is detected based on the binarized image. Method (for example, Japanese Patent Application Laid-Open No. 2014-219781, Japanese Patent Application Laid-Open No. 2015-64823); Method for detecting wrinkle / stain region based on the value of brightness of face image (for example, Japanese Patent Application Laid-Open No. 2016-22093) A method for obtaining the gradient intensity (wrinkle intensity) and gradient histogram (wrinkle direction) of each pixel of a gray scale image of a face (for example, Japanese Patent Application Laid-Open No. 2012-53813); based on facial feature points extracted from the facial image. A method of measuring the shape of facial grooves such as creases and wrinkles at the corners of the eyes by setting a measurement range and tracking the darkest part of the difference image between the pixel of interest and the average pixel within the measurement range (for example). Japanese Patent Application Laid-Open No. 2006-81846), and the like. Of these, from the viewpoint of simplicity, a method of visually identifying the wrinkle / stain region on the image is preferable. For example, when visually identifying a wrinkle / stain region, pointing is performed while visually determining a region where the skin color looks darker than the surrounding skin centered on the wrinkle or stain portion on the skin image as the wrinkle / stain region. The position of the wrinkle / stain area on the skin image can be input using a device or the like. Such a procedure for inputting a position on an image can be performed using general image processing software (for example, image J [imagej.nih.gov/ij/]).

(1−2.輝度プロファイルの取得)
本方法では、上記で特定されたシワ/シミ領域について、その輝度プロファイルを取得し(工程S1)、それを用いて平滑化輝度プロファイルを取得し(工程S2)、続いて修正輝度プロファイルを作成し(工程S3)、次いで、該修正輝度プロファイルを用いて肌画像を修正する(工程S4)。以下、シワを調整する場合を例として、本方法について説明する。ただし、シミの調整の場合にも同様な手順を適用可能である。
(1-2. Acquisition of brightness profile)
In this method, the luminance profile of the wrinkle / stain region identified above is acquired (step S1), the smoothed luminance profile is acquired using it (step S2), and then the modified luminance profile is created. (Step S3), then the skin image is modified using the modified luminance profile (step S4). Hereinafter, this method will be described by taking the case of adjusting wrinkles as an example. However, the same procedure can be applied to the adjustment of stains.

工程S1では、肌画像上のシワを有する領域(例えば上述したシワ領域)についての輝度プロファイルを取得する。より詳細には、該シワ領域に含まれる全画素から輝度情報を集め、それらを該シワ領域の輝度プロファイルとして取得すればよい。次いで、それらの輝度プロファイルに平滑化処理を施し、得られたデータを該シワ領域についての平滑化輝度プロファイルとして取得する(工程S2)。図2には、本方法における輝度プロファイル及び平滑化輝度プロファイルの取得の手順の概要を図示する。図2Aは、顔画像とほうれい線を含むシワ領域を示した模式図である。グレーで示した領域がシワ領域であり、その中の点線がシワ(ほうれい線)部である。図2Bは図2Aのシワ領域の拡大図である。図2Cは、図2Bにおける、シワ領域の2つの端部を結びほうれい線と直行する線X−X’に沿った該シワ領域の輝度値を示す。図2Cで輝度値が最小になる点にほうれい線が位置する。該線X−X’に沿って得られた輝度値データに対して平滑化処理を施すことで、図2Dに示すような平滑化した輝度値(点線)が得られる。得られた平滑化データを集めて、該シワ領域の平滑化輝度プロファイルとして取得すればよい。平滑化処理としては、例えば、フィルタによる平滑化処理が挙げられる。フィルタには、平均値フィルタ、ガウシアンフィルタなどが好ましく用いられる。該フィルタのカーネルサイズは、平滑化処理を施すデータ長(すなわち、X−X’に含まれる画素数L)の1/10から10倍が望ましい。 In step S1, a brightness profile for a wrinkled region (for example, the wrinkled region described above) on the skin image is acquired. More specifically, the luminance information may be collected from all the pixels included in the wrinkle region and acquired as the luminance profile of the wrinkle region. Next, those luminance profiles are subjected to a smoothing process, and the obtained data is acquired as a smoothed luminance profile for the wrinkle region (step S2). FIG. 2 illustrates an outline of the procedure for acquiring the luminance profile and the smoothed luminance profile in this method. FIG. 2A is a schematic view showing a wrinkle region including a face image and a nasolabial fold. The area shown in gray is the wrinkle area, and the dotted line in it is the wrinkle (nasolabial fold) part. FIG. 2B is an enlarged view of the wrinkle region of FIG. 2A. FIG. 2C shows the luminance value of the wrinkle region along the line XX'that connects the two ends of the wrinkle region and is orthogonal to the nasolabial fold in FIG. 2B. The nasolabial fold is located at the point where the luminance value is minimized in FIG. 2C. By performing a smoothing process on the luminance value data obtained along the line XX', a smoothed luminance value (dotted line) as shown in FIG. 2D can be obtained. The obtained smoothing data may be collected and acquired as a smoothing luminance profile of the wrinkle region. Examples of the smoothing process include a smoothing process using a filter. As the filter, an average value filter, a Gaussian filter and the like are preferably used. The kernel size of the filter is preferably 1/10 to 10 times the data length to be smoothed (that is, the number of pixels L included in XX').

(1−3.修正輝度プロファイルの作成)
次いで、得られた該シワ領域の輝度プロファイルと平滑化輝度プロファイルとを用いて修正輝度プロファイルを作成する(工程S3)。より詳細には、該シワ領域の輝度プロファイルと平滑化輝度プロファイルから、下記式(1)に基づいて修正輝度プロファイルMを求める:
M(x,y)=A(x,y)+α{B(x,y)−2×A(x,y)} (1)
ここで、
(x,y)は、該肌画像上の座標を表し、
A(x,y)及びB(x,y)はそれぞれ、座標(x,y)での該シワ領域の輝度プロファイルと平滑化輝度プロファイルを表し、
αは正又は負の定数を表す。
(1-3. Creation of modified brightness profile)
Next, a modified luminance profile is created using the obtained luminance profile of the wrinkle region and the smoothed luminance profile (step S3). More specifically, the corrected luminance profile M is obtained from the luminance profile and the smoothed luminance profile of the wrinkle region based on the following equation (1):
M (x, y) = A (x, y) + α {B (x, y) -2 x A (x, y)} (1)
here,
(X, y) represents the coordinates on the skin image.
A (x, y) and B (x, y) represent the luminance profile and the smoothed luminance profile of the wrinkle region at the coordinates (x, y), respectively.
α represents a positive or negative constant.

本方法において、シワを低減したい場合は、式(1)においてαを正の値に設定し、シワを強調したい場合は式(1)においてαを負の値に設定する。αの値は任意に設定することが可能であるが、αが正の場合は、αは0.1〜3.0が好ましく、αが負の場合は、αは−0.1〜−1.5が好ましい。なお、シミを調整する場合は、式(1)においてαを正の値に設定すれば、暗い領域を明るくできるので、黒化するシミ(黒子、そばかす、肝斑、色素沈着など)は低減され、白化するシミ(白斑など)は強調される。逆に、αを負の値に設定すれば、黒化するシミは強調され、白化するシミは低減される。 In this method, when it is desired to reduce wrinkles, α is set to a positive value in the equation (1), and when it is desired to emphasize wrinkles, α is set to a negative value in the equation (1). The value of α can be set arbitrarily, but when α is positive, α is preferably 0.1 to 3.0, and when α is negative, α is −0.1 to -1. .5 is preferable. When adjusting stains, if α is set to a positive value in equation (1), dark areas can be brightened, so blackening stains (mole, freckles, chloasma, pigmentation, etc.) are reduced. , Whitening spots (white spots, etc.) are emphasized. Conversely, if α is set to a negative value, blackening stains are emphasized and whitening stains are reduced.

(1−4.修正肌画像の作成)
得られた修正輝度プロファイルMを、元の肌画像のシワ領域の輝度と置き換えて、修正肌画像を作成する(工程S4)。いいかえると、元の肌画像のシワ領域の輝度値を、修正輝度プロファイルMにおける対応する座標の輝度値と置き換える。得られた修正肌画像は、シワが低減又は強調されるように調整された肌画像である。
(1-4. Creation of modified skin image)
The obtained corrected brightness profile M is replaced with the brightness of the wrinkle region of the original skin image to create a corrected skin image (step S4). In other words, the brightness value of the wrinkle region of the original skin image is replaced with the brightness value of the corresponding coordinates in the modified brightness profile M. The obtained modified skin image is a skin image adjusted so that wrinkles are reduced or emphasized.

(1−5.グラデーション処理)
修正肌画像において、修正輝度プロファイルMと置き換えたシワ領域の境界部分が不自然な見た目となった場合は、本方法においては、修正輝度プロファイルMをあてはめた該シワ領域(すなわち、該シワ領域に対応する修正肌画像上の領域、以下、修正シワ領域とも称する)に対して輝度のグラデーションをかける。すなわち、単に該修正輝度プロファイルMを該シワ領域にあてはめると、該シワ領域と周辺との境界部分で輝度が急激に変化するため、修正肌画像が不自然な見た目になりやすい。そのため、該修正シワ領域において、該領域の内側から端部にむかって、[修正輝度プロファイルMの輝度:元の肌画像のシワ領域の輝度]=100%:0%→0%:100%へと変化するように、修正シワ領域の輝度にグラデーションをかけることで、修正肌画像に不自然な境界部分が現れないようにする。グラデーションは線形グラデーションが好ましいが、特に限定されない。
(1-5. Gradation processing)
In the modified skin image, if the boundary portion of the wrinkle region replaced with the modified luminance profile M has an unnatural appearance, in this method, the wrinkle region to which the modified luminance profile M is applied (that is, the wrinkle region) A brightness gradation is applied to the area on the corresponding corrected skin image (hereinafter, also referred to as the corrected wrinkle area). That is, if the modified brightness profile M is simply applied to the wrinkle region, the brightness changes abruptly at the boundary portion between the wrinkle region and the periphery, so that the modified skin image tends to have an unnatural appearance. Therefore, in the corrected wrinkle region, from the inside to the end of the region, [brightness of the corrected brightness profile M: brightness of the wrinkle region of the original skin image] = 100%: 0% → 0%: 100%. By applying a gradation to the brightness of the corrected wrinkle area so that it changes to, the unnatural boundary part does not appear in the corrected skin image. The gradation is preferably a linear gradation, but is not particularly limited.

図3は、輝度のグラデーション処理の概念図である。図中、横軸は肌画像の画素を示し、縦軸は、該画素の輝度値において修正輝度プロファイルMの輝度値が占める比率を示す。「端部」は、修正シワ領域の端部を示し、それより右側は修正シワ領域である。グラデーション処理前の修正シワ領域の輝度は「before」で表されており、グラデーション処理後の修正シワ領域の輝度は「after」で表されている。グラデーション処理をかける部分は、図中「エッジ部分」として示されている。該エッジ部分の範囲は、修正シワ領域の端部からシワ部までの範囲の間で任意に設定することができる。例えば、修正シワ領域の端部からシワ部までの全範囲、又は、端部から、該端部とシワ部との中点までの範囲、などをエッジ部分として設定することができる。あるいは、グラデーションは、上述した任意の線X−X’に沿って、該修正シワ領域の端部を含む該線X−X’に含まれる画素数Lの1/5〜1/2の範囲に適用され得る。修正シワ領域におけるシワ部の位置は、元の肌画像から目視等により検出したシワ部の位置に基づいて決定してもよく、又は工程S1で取得した元の肌画像のシワ領域の輝度プロファイルに基づいて決定することができる。 FIG. 3 is a conceptual diagram of luminance gradation processing. In the figure, the horizontal axis represents the pixels of the skin image, and the vertical axis represents the ratio of the brightness value of the modified brightness profile M to the brightness value of the pixels. The "edge" indicates the end of the corrected wrinkle region, and the right side thereof is the corrected wrinkle region. The brightness of the corrected wrinkle area before the gradation processing is represented by "before", and the brightness of the corrected wrinkle area after the gradation processing is represented by "after". The part to which the gradation processing is applied is shown as an "edge part" in the figure. The range of the edge portion can be arbitrarily set between the range from the end portion of the corrected wrinkle region to the wrinkle portion. For example, the entire range from the end portion to the wrinkle portion of the corrected wrinkle region, or the range from the end portion to the midpoint between the end portion and the wrinkle portion can be set as the edge portion. Alternatively, the gradation is in the range of 1/5 to 1/2 of the number of pixels L included in the line XX'including the end of the correction wrinkle region along the above-mentioned arbitrary line XX'. Can be applied. The position of the wrinkle portion in the corrected wrinkle region may be determined based on the position of the wrinkle portion visually detected from the original skin image, or the brightness profile of the wrinkle region of the original skin image acquired in step S1. It can be decided based on.

図4は、グラデーション処理前後での修正シワ領域の輝度の変化を示した概念図である。修正輝度プロファイルM由来の輝度100%の領域を白色、0%の領域を黒色で表し、その間をグレーで表している。グラデーション処理前(Before)と処理後(After)の修正シワ領域は、ともに黒色の領域で囲まれているが、処理後には修正シワ領域の外縁部の輝度にグラデーションが付けられている。グラデーション処理により、修正肌画像上で修正シワ領域とその周辺との境界を曖昧にし、より自然な見た目の修正肌画像を作成可能になる。 FIG. 4 is a conceptual diagram showing a change in the brightness of the corrected wrinkle region before and after the gradation processing. The region of 100% luminance derived from the modified luminance profile M is represented by white, the region of 0% is represented by black, and the region between them is represented by gray. The corrected wrinkle area before and after the gradation processing (Before) and after the processing (After) are both surrounded by a black area, but after the processing, a gradation is added to the brightness of the outer edge of the corrected wrinkle area. The gradation processing makes it possible to create a corrected skin image with a more natural appearance by blurring the boundary between the corrected wrinkle area and its surroundings on the corrected skin image.

(1−6.他の画像情報の修正)
さらに、当該修正肌画像は、シワ領域における輝度以外の画像情報、例えば色情報(R、G、B)、明るさ(Y)などが修正されていてもよい。特にシミの調整の場合、修正輝度プロファイルMに加えて、色情報(R、G、B)についての修正を含む修正肌画像を作成することが好ましい。
(1-6. Correction of other image information)
Further, the corrected skin image may have image information other than the brightness in the wrinkle region, for example, color information (R, G, B), brightness (Y), and the like corrected. In particular, in the case of spot adjustment, it is preferable to create a corrected skin image including correction of color information (R, G, B) in addition to the corrected luminance profile M.

色情報(R、G、B)の修正は、上述した1−2.〜1−4.の手順に従って行うことができる。より詳細には、該シワ領域に含まれる全画素からR、G、及びBそれぞれの色情報のみを取り出し、色プロファイル(それぞれ、Rプロファイル、Gプロファイル、及びBプロファイル)を作成する(工程S1’)。次いで、Rプロファイル、Gプロファイル、及びBプロファイルそれぞれについて、上記1−2.と同様の手順により平滑化処理を行って平滑化したRプロファイル、Gプロファイル、及びBプロファイルを作成し(工程S2’)、それらの平滑化したプロファイルを用いて、上記1−3.と同様の手順により修正Rプロファイル、修正Gプロファイル、及び修正Bプロファイルを作成する(工程S3’)。このとき、式(1)のαは、領域の色を白に近づけたい場合は正の値とし、領域の色を黒に近づけたい場合は負の値とすればよく、各々の場合のαの数値範囲は上記と同様であればよい。これらの修正プロファイルを、上記1−4.の手順に従って元の肌画像のRGB情報と置き換えることで、色の修正を含む修正肌画像を作成することができる(工程S4’)。 The correction of the color information (R, G, B) is described in 1-2. ~ 1-4. It can be done according to the procedure of. More specifically, only the color information of each of R, G, and B is extracted from all the pixels included in the wrinkle region, and a color profile (R profile, G profile, and B profile, respectively) is created (step S1'. ). Next, for each of the R profile, G profile, and B profile, the above 1-2. The smoothed R profile, G profile, and B profile are created by performing the smoothing process in the same procedure as in (Step S2'), and the smoothed profiles are used in the above 1-3. A modified R profile, a modified G profile, and a modified B profile are created by the same procedure as in (Step S3'). At this time, α in the equation (1) may be a positive value when the color of the region is to be close to white, and a negative value when the color of the region is to be close to black. The numerical range may be the same as above. These modified profiles can be described in 1-4. By substituting the RGB information of the original skin image according to the procedure of (step S4'), a corrected skin image including color correction can be created (step S4').

明るさ(Y)を修正する場合、上記Rプロファイル、Gプロファイル、Bプロファイルを用いて、下記式(2)からYプロファイルを作成する。
Y=0.299×R+0.587×G+0.114×B (2)
得られたYプロファイルを用いて、上述した1−2.〜1−4.の手順に従って修正Yプロファイルを作成する。このとき、式(1)のαは、領域を明るくしたい場合は正の値とし、領域を暗くしたい場合は負の値とすればよく、各々の場合のαの数値範囲は上記と同様であればよい。
When correcting the brightness (Y), a Y profile is created from the following formula (2) using the above R profile, G profile, and B profile.
Y = 0.299 × R + 0.587 × G + 0.114 × B (2)
Using the obtained Y profile, the above-mentioned 1-2. ~ 1-4. Create a modified Y profile according to the procedure in. At this time, α in the equation (1) may be a positive value when the region is to be brightened, and a negative value when the region is to be darkened. Just do it.

Cr、Cbは、それぞれ赤系統の色差信号、青系統の色差信号を表し、下記式(3)、(4)に従ってRGBからCr、Cbを求めることができる。
Cr=0.713×(R−Y)
=0.500×R−0.419×G−0.08×B (3)
Cb=0.564×(B−Y)
=−0.169×R−0.331×G+0.500×B (4)
式(3)、(4)から算出したCr、Cbと修正Yプロファイルを元の肌画像の明るさ情報と置き換えることで、修正後のYCbCrを求めることができる。さらに、下記式(5)〜(7)に従ってYCbCrからRGBプロファイルを求め、修正肌画像を作成することができる。
R=Y+1.402×Cr (5)
G=Y−0.344136×Cb−0.714136×Cr (6)
B=Y+1.772×Cb (7)
Cr and Cb represent a red color difference signal and a blue color difference signal, respectively, and Cr and Cb can be obtained from RGB according to the following equations (3) and (4).
Cr = 0.713 × (RY)
= 0.500 x R-0.419 x G-0.08 x B (3)
Cb = 0.564 × (BY)
= -0.169 x R-0.331 x G + 0.500 x B (4)
By replacing the Cr, Cb and the modified Y profile calculated from the formulas (3) and (4) with the brightness information of the original skin image, the modified YCbCr can be obtained. Further, the RGB profile can be obtained from YCbCr according to the following formulas (5) to (7), and a modified skin image can be created.
R = Y + 1.402 × Cr (5)
G = Y-0.3444136 × Cb-0.714136 × Cr (6)
B = Y + 1.772 × Cb (7)

さらに必要に応じて、上記1−5.の手順に従って、色情報(R、G,B)又は明るさ(Y)についてのグラデーション処理を行ってもよい。 Further, if necessary, the above 1-5. The gradation processing for the color information (R, G, B) or the brightness (Y) may be performed according to the procedure of.

〔2.装置、プログラム〕
さらなる一態様において、本発明は、上述した本発明に係る肌画像におけるシワ又はシミの調整方法を実施するための装置及びプログラムを提供する。
[2. Equipment, programs]
In a further aspect, the present invention provides an apparatus and a program for carrying out the method for adjusting wrinkles or stains in a skin image according to the present invention described above.

図5は、本発明に係る肌画像におけるシワ又はシミの調整方法を実施するための装置(以下、本発明の装置、又は単に装置とも称する)の構成の一実施形態の概念図である。図5に示す本発明の装置1は、制御ユニット10、操作ユニット20、出力ユニット30を備え、さらに肌画像取得ユニット40を備えていてもよい。ただし、装置1の構成は、図5に示される内容に限定されない。 FIG. 5 is a conceptual diagram of an embodiment of a configuration of a device (hereinafter, also referred to as a device of the present invention, or simply a device) for carrying out a method for adjusting wrinkles or stains in a skin image according to the present invention. The device 1 of the present invention shown in FIG. 5 includes a control unit 10, an operation unit 20, an output unit 30, and may further include a skin image acquisition unit 40. However, the configuration of the device 1 is not limited to the contents shown in FIG.

制御ユニット10は、1つ以上の計算機(コンピュータ)を備え、該計算機は、CPU(Central Processing Unit)11、メモリ12、及び必要に応じて入出力インタフェース(I/F)13等を備える。CPU11としては、一般的なCPU、及び特定用途向け集積回路(ASIC)、DSP(Digital Signal Processor)、GPU(Graphics Processing Unit)などが挙げられる。メモリ12としては、RAM(Random Access Memory)、ROM(Read Only Memory)、補助記憶装置(ハードディスク等)などが挙げられる。入出力I/F13は、操作ユニット20及び出力ユニット30と、さらに存在する場合は肌画像取得ユニット40と、接続されている。さらに制御ユニット10は、外部メディア、外部計算機(ホストコンピュータ等)などの他の機器と接続されてもよく、その場合、制御ユニット10は、通信ユニット14を備え得る。例えば、通信ユニット14は、外部メディアや外部計算機などから肌画像データのファイルを直接受け取る場合、又は制御ユニットによる処理結果を外部メディアや外部計算機に送信する場合に使用され得る。 The control unit 10 includes one or more computers (computers), which include a CPU (Central Processing Unit) 11, a memory 12, an input / output interface (I / F) 13 and the like as needed. Examples of the CPU 11 include a general CPU, an integrated circuit (ASIC) for a specific application, a DSP (Digital Signal Processor), a GPU (Graphics Processing Unit), and the like. Examples of the memory 12 include a RAM (Random Access Memory), a ROM (Read Only Memory), and an auxiliary storage device (hard disk, etc.). The input / output I / F 13 is connected to the operation unit 20 and the output unit 30, and further to the skin image acquisition unit 40, if present. Further, the control unit 10 may be connected to other devices such as an external medium and an external computer (host computer or the like), in which case the control unit 10 may include a communication unit 14. For example, the communication unit 14 can be used when directly receiving a skin image data file from an external medium, an external computer, or the like, or when transmitting a processing result by the control unit to an external media or an external computer.

制御ユニット10は、操作ユニット20からのオペレータのコマンドの受け取り、肌画像取得ユニット40からの肌画像データの取り込み、本方法に従う肌画像の処理(シワ/シミ領域の取得、輝度プロファイル、平滑化輝度プロファイル及び修正輝度プロファイルの取得、マスキング領域の作成、ならびに修正肌画像の作成)、出力ユニット30に対する処理結果の出力、などを実施する。制御ユニット10において、操作ユニット20からのコマンドの受け取り、肌画像データの取り込み、処理結果の出力などを行う計算機と、本方法に従う肌画像の処理を行う計算機は、同一であっても、異なっていてもよい。 The control unit 10 receives an operator's command from the operation unit 20, captures skin image data from the skin image acquisition unit 40, and processes a skin image according to this method (acquisition of wrinkle / stain area, brightness profile, smoothing brightness). Acquisition of profile and modified brightness profile, creation of masking area, creation of modified skin image), output of processing result to output unit 30, and the like are performed. In the control unit 10, the computer that receives commands from the operation unit 20, captures skin image data, outputs the processing result, and the like and the computer that processes the skin image according to this method are the same but different. You may.

操作ユニット20は、キーボード、マウス、タッチパネル、マイクロフォン等のオペレータからの指示を受け付けるユーザーインターフェース(UI)を備える。出力ユニット30は、表示装置、投影装置(プロジェクタ)、印刷装置(プリンタ)、スピーカ等を備える。表示装置の例としては、LCD(Liquid Crystal Display)又はCRT(Cathode Ray Tube)ディスプレイのような、制御ユニット10による処理結果を表示する画面を備える装置が挙げられる。肌画像取得ユニット40は、カメラ、スキャナ等から肌画像データを取得する。肌画像取得ユニット40は、撮像装置(カメラ、ビデオ等)を備えていてもよい。 The operation unit 20 includes a user interface (UI) that receives instructions from operators such as a keyboard, mouse, touch panel, and microphone. The output unit 30 includes a display device, a projection device (projector), a printing device (printer), a speaker, and the like. Examples of the display device include a device including a screen for displaying the processing result by the control unit 10, such as an LCD (Liquid Crystal Display) or a CRT (Cathode Ray Tube) display. The skin image acquisition unit 40 acquires skin image data from a camera, a scanner, or the like. The skin image acquisition unit 40 may include an imaging device (camera, video, etc.).

本発明の装置において、操作ユニット20と出力ユニット30は一体化されて、タッチパネルディスプレイとして構成されてもよい。あるいは、制御ユニット10、操作ユニット20、出力ユニット30、及び肌画像取得ユニット40が一体化されて、カメラ付きコンピュータ又はカメラ付きモバイル端末などとして構成されてもよい。 In the apparatus of the present invention, the operation unit 20 and the output unit 30 may be integrated to form a touch panel display. Alternatively, the control unit 10, the operation unit 20, the output unit 30, and the skin image acquisition unit 40 may be integrated to form a computer with a camera, a mobile terminal with a camera, or the like.

装置1は、上述したもの以外の他のハードウェア要素を備えていてもよい。該他のハードウェア要素の数や種類は限定されない。例えば、装置1は複数のCPU11、又は複数の出力ユニット30を備えていてもよい。 The device 1 may include hardware elements other than those described above. The number and types of the other hardware elements are not limited. For example, the device 1 may include a plurality of CPUs 11 or a plurality of output units 30.

装置1による本発明に係る肌画像におけるシワ又はシミの調整方法の実施プロセスの一実施形態について説明する。まず、肌画像取得ユニット40により肌画像取得工程(工程S0)が行われ、得られた肌画像データは、入出力I/F13を介して、制御ユニット10に送られる。送られる画像データは、上述したようなJPEG、BMP、TIFF、GIF等の形式の画像ファイル、もしくは明暗情報を羅列したデータであることが好ましい。あるいは、外部で取得されたこれらの画像ファイルやデータが入出力I/F13や通信ユニット14を介して制御ユニット10に送られてもよい。あるいは、肌画像のアナログデータが制御ユニット10に送られ、制御ユニット10において上記形式の画像ファイルに変換されてもよい。得られた画像ファイルやデータはメモリ12に格納され、必要に応じて呼び出される。 An embodiment of an implementation process of a method for adjusting wrinkles or stains in a skin image according to the present invention by the device 1 will be described. First, the skin image acquisition step (step S0) is performed by the skin image acquisition unit 40, and the obtained skin image data is sent to the control unit 10 via the input / output I / F 13. The image data to be sent is preferably an image file in the format of JPEG, BMP, TIFF, GIF, etc. as described above, or data in which light and dark information is listed. Alternatively, these image files and data acquired externally may be sent to the control unit 10 via the input / output I / F 13 and the communication unit 14. Alternatively, analog data of the skin image may be sent to the control unit 10 and converted into an image file of the above format in the control unit 10. The obtained image file and data are stored in the memory 12 and called up as needed.

CPU11は、本方法に従う一連の肌画像の処理(シワ/シミ領域の取得、輝度プロファイル、平滑化輝度プロファイル及び修正輝度プロファイルの取得、マスキング領域の作成、ならびに修正肌画像の作成;工程S1〜S4)を実行する。これらの処理は、本発明に係る肌画像におけるシワ又はシミの調整方法を実施するためのプログラム(以下、本発明のプログラム)により実行される。本発明のプログラムは、予め制御ユニット10の計算機にインストールされてメモリ12に格納されていてもよく、又は制御ユニット10に接続された外部機器に保存されて、必要に応じて呼び出されてもよい。本発明のプログラムは、必要に応じて操作ユニット20から受け取ったコマンドに従って、メモリに格納された肌画像のファイルやデータを本方法に従って処理し、修正肌画像を作成する。作成された修正肌画像は、メモリ12に格納されてもよく、又は直接出力ユニット30から出力されてもよく、又は通信ユニット14を介して外部機器に出力されてもよい。 The CPU 11 processes a series of skin images according to this method (acquisition of wrinkle / stain area, brightness profile, acquisition of smoothed brightness profile and corrected brightness profile, creation of masking area, and creation of corrected skin image; steps S1 to S4. ) Is executed. These processes are executed by a program for implementing the method for adjusting wrinkles or stains in the skin image according to the present invention (hereinafter, the program of the present invention). The program of the present invention may be installed in the calculator of the control unit 10 in advance and stored in the memory 12, or may be stored in an external device connected to the control unit 10 and called as needed. .. The program of the present invention processes the skin image file and data stored in the memory according to the present method according to the command received from the operation unit 20 as necessary, and creates a modified skin image. The created modified skin image may be stored in the memory 12, may be output directly from the output unit 30, or may be output to an external device via the communication unit 14.

作成された修正肌画像の出力の形式は、特に限定されない。一実施形態においては、出力ユニット30のディスプレイ等に表示される。別の一実施形態においては、作成された修正肌画像の情報は単なる数値として保存され、他の分析(例えば、美容カウンセリングや化粧品の評価等)のために使用される。 The output format of the created modified skin image is not particularly limited. In one embodiment, it is displayed on the display of the output unit 30 or the like. In another embodiment, the information in the modified skin image created is stored as a mere numerical value and used for other analyzes (eg, cosmetology counseling, cosmetic evaluation, etc.).

本発明により作成されたシワ又はシミを低減又は強調させた修正肌画像は、様々な用途に利用可能である。例えば、シワ又はシミを強調させた肌画像は、加齢した肌の画像として、美容カウンセリングなどにおいて将来の加齢後の肌を予測するために使用することができる。一方、シワ又はシミを低減させた肌画像は、好印象を与える顔写真の作成に用いたり、あるいは、シワ又はシミの改善した肌画像として、美容施術後などにおけるシワ又はシミが改善した肌を予測するために使用したりすることができる。しかし、本発明により作成された修正肌画像の用途は上記に限定されない。 The modified skin image with reduced or emphasized wrinkles or stains produced by the present invention can be used for various purposes. For example, a skin image in which wrinkles or stains are emphasized can be used as an image of aged skin in order to predict future aged skin in beauty counseling and the like. On the other hand, the skin image with reduced wrinkles or stains can be used to create a facial photograph that gives a good impression, or as a skin image with improved wrinkles or stains, the skin with improved wrinkles or stains after beauty treatment can be used. It can be used to make predictions. However, the use of the modified skin image created by the present invention is not limited to the above.

以下、実施例に基づき本発明をさらに詳細に説明するが、本発明はこれに限定されるものではない。 Hereinafter, the present invention will be described in more detail based on Examples, but the present invention is not limited thereto.

実施例1 顔画像におけるシワの調整
1)シワ領域の取得
ほうれい線を視認できる女性の顔画像を用いた。画像処理ソフト(image J)を用いて目視に基づいて顔画像上のシワ(ほうれい線)領域の位置を選択することで、画像上におけるシワ領域の座標を取得した。図2Bのように、ほうれい線と直行する方向での該シワ領域の両端位置を結ぶ直線X−X’を抽出し、その長さLを算出した。
Example 1 Adjustment of wrinkles in facial image 1) Acquisition of wrinkle area A female facial image in which the nasolabial fold can be visually recognized was used. By visually selecting the position of the wrinkle (nasolabial fold) region on the face image using image processing software (image J), the coordinates of the wrinkle region on the image were acquired. As shown in FIG. 2B, a straight line XX'connecting the positions of both ends of the wrinkle region in the direction orthogonal to the nasolabial fold was extracted, and the length L was calculated.

2)平滑化輝度プロファイルの取得
X−X’に沿ったシワ領域の輝度プロファイルAを取得した。得られた輝度プロファイルAをガウシアンフィルタで平滑化した。ガウシアンフィルタのカーネルは、Lの2倍、120ピクセル(3cm)とした。この手順を繰り返し、シワ領域の座標全体についての輝度プロファイルA及び平滑化輝度プロファイルBを取得した。
2) Acquisition of smoothed luminance profile The luminance profile A of the wrinkle region along XX'was acquired. The obtained luminance profile A was smoothed with a Gaussian filter. The kernel of the Gaussian filter was set to 120 pixels (3 cm), which is twice L. By repeating this procedure, the luminance profile A and the smoothed luminance profile B for the entire coordinates of the wrinkle region were acquired.

3)修正輝度プロファイルの取得
2)で取得した輝度プロファイルA及び平滑化輝度プロファイルBから、下記式(1)により、シワ領域の座標全体についての修正輝度プロファイルMを算出した。αは、シワ低減のためには1、シワ強調のためには−1とした。
M(x,y)=A(x,y)+α{B(x,y)−2×A(x,y)} (1)
3) Acquisition of Corrected Luminance Profile From the luminance profile A and the smoothed luminance profile B acquired in 2), the modified luminance profile M for the entire coordinates of the wrinkle region was calculated by the following equation (1). α was set to 1 for wrinkle reduction and -1 for wrinkle enhancement.
M (x, y) = A (x, y) + α {B (x, y) -2 x A (x, y)} (1)

4)修正顔画像の作成
得られた修正輝度プロファイルMの輝度値でシワ領域の輝度値を置き換えた。次いで、輝度情報置き換え後のシワ領域のエッジ部分に輝度のグラデーションをかけた。エッジ部分は、シワ領域の端部から30ピクセル(0.75.cm)内側までとした。グラデーションは、該シワ領域のエッジ部分の内側から端部にむかって、[修正輝度プロファイルMの輝度:元の顔画像のシワ領域の輝度]=100%:0%→0%:100%へと直線的に変化させた(図3を参照)。グラデーション処理後の顔画像を、修正顔画像として取得した。
4) Creation of corrected face image The brightness value of the wrinkle region was replaced with the brightness value of the obtained corrected brightness profile M. Next, a luminance gradation was applied to the edge portion of the wrinkle region after the luminance information was replaced. The edge portion was set to the inside of 30 pixels (0.75. cm) from the end of the wrinkle region. The gradation is from the inside to the end of the edge portion of the wrinkle region [brightness of the modified brightness profile M: brightness of the wrinkle region of the original face image] = 100%: 0% → 0%: 100%. It was changed linearly (see FIG. 3). The face image after the gradation processing was acquired as a modified face image.

得られた修正顔画像は、上記式(1)でαが1の場合はシワが低減された画像となり、αが−1の場合はシワが強調された画像となった。修正前の顔画像、シワ低減(α=1)処理によりシワが改善された顔画像、及びシワ強調(α=−1)処理によりシワが付与された顔画像を、図6に示す。 The obtained modified face image was an image in which wrinkles were reduced when α was 1 in the above formula (1), and an image in which wrinkles were emphasized when α was -1. FIG. 6 shows a face image before correction, a face image in which wrinkles are improved by wrinkle reduction (α = 1) treatment, and a face image in which wrinkles are imparted by wrinkle enhancement (α = -1) treatment.

Claims (18)

肌画像におけるシワ又はシミの調整方法であって、
シワ又はシミを有する肌画像を取得すること;
該肌画像におけるシワ又はシミを有する領域から、以下のA及びBを取得すること
A:該シワ又はシミを有する領域の輝度プロファイル
B:該輝度プロファイルAを平滑化処理した輝度プロファイル;
下記式(1)により、該シワ又はシミを有する領域についての修正輝度プロファイルMを取得すること
M(x,y)=A(x,y)+α{B(x,y)−2×A(x,y)} (1)
((x,y)は、該肌画像に対応する座標を表し、αは正又は負の定数を表す);
該シワ又はシミを有する領域の輝度を、該修正輝度プロファイルMの輝度と置き換えること、
を含む、方法。
A method for adjusting wrinkles or blemishes on skin images.
Obtaining skin images with wrinkles or spots;
Obtaining the following A and B from the region having wrinkles or stains in the skin image A: Luminance profile of the region having wrinkles or stains B: Luminance profile obtained by smoothing the luminance profile A;
Obtaining the modified luminance profile M for the region having the wrinkles or stains by the following equation (1) M (x, y) = A (x, y) + α {B (x, y) -2 × A ( x, y)} (1)
((X, y) represents the coordinates corresponding to the skin image, and α represents a positive or negative constant);
Replacing the brightness of the wrinkled or spotted area with the brightness of the modified brightness profile M,
Including methods.
前記平滑化処理がフィルタによる平滑化処理であり、該フィルタのカーネルサイズは該平滑化処理を施すデータ長の1/10から10倍である、請求項1記載の方法。 The method according to claim 1, wherein the smoothing process is a smoothing process using a filter, and the kernel size of the filter is 1/10 to 10 times the data length to which the smoothing process is performed. 前記シワ又はシミを含む領域が、シワとその周辺の肌を含む領域であるか、又はシミとその周辺の肌を含む領域である、請求項1又は2記載の方法。 The method according to claim 1 or 2, wherein the region containing wrinkles or stains is a region containing wrinkles and surrounding skin, or a region including stains and surrounding skin. 前記シワ又はシミの調整がシワ又はシミの低減であって、前記αが正の値である、請求項1〜3のいずれか1項記載の方法。 The method according to any one of claims 1 to 3, wherein the adjustment of the wrinkles or stains is the reduction of wrinkles or stains, and the α is a positive value. 前記αが0.1〜3である、請求項4記載の方法。 The method according to claim 4, wherein α is 0.1 to 3. 前記シワ又はシミの調整がシワ又はシミの強調であって、前記αが負の値である、請求項1〜3のいずれか1項記載の方法。 The method according to any one of claims 1 to 3, wherein the adjustment of the wrinkles or stains is the emphasis of wrinkles or stains, and the α is a negative value. 前記αが−0.1〜−1.5である、請求項6記載の方法。 The method according to claim 6, wherein α is −0.1 to −1.5. 前記肌画像が顔画像又はその一部である、請求項1〜7のいずれか1項記載の方法。 The method according to any one of claims 1 to 7, wherein the skin image is a face image or a part thereof. 前記シワ又はシミがほうれい線である、請求項8記載の方法。 The method according to claim 8, wherein the wrinkles or stains are nasolabial folds. 前記修正輝度プロファイルMと輝度を置き換えたシワ又はシミを有する領域の内側から端部にむかって輝度にグラデーションをかけることをさらに含む、請求項1〜9のいずれか1項記載の方法。 The method according to any one of claims 1 to 9, further comprising applying a gradation to the luminance from the inside to the end of the region having wrinkles or stains in which the luminance is replaced with the modified luminance profile M. 前記グラデーションが、前記シワ又はシミを有する領域の内側から端部にむかって、前記修正輝度プロファイルMの輝度:前記肌画像の輝度=100%:0%→0%:100%へと変化するグラデーションである、請求項10記載の方法。 The gradation changes from the inside to the end of the area having wrinkles or stains, from the brightness of the modified brightness profile M: the brightness of the skin image = 100%: 0% → 0%: 100%. The method according to claim 10. 前記シワ又はシミを有する領域の色又は明るさを修正することをさらに含む、請求項1〜11のいずれか1項記載の方法。 The method according to any one of claims 1 to 11, further comprising correcting the color or brightness of the wrinkled or spotted area. 請求項1〜12のいずれか1項記載の方法を用いてシワ又はシミの強調された肌画像を作成することを含む、加齢した肌画像の作成方法。 A method for creating an aged skin image, which comprises creating a skin image with emphasized wrinkles or blemishes using the method according to any one of claims 1 to 12. 請求項13記載の方法で作成した加齢した肌画像を用いる、加齢後の肌の予測方法。 A method for predicting aging skin using an aging skin image created by the method according to claim 13. 請求項1〜12のいずれか1項記載の方法を用いてシワ又はシミの低減された肌画像を作成することを含む、シワ又はシミの改善した肌画像の作成方法。 A method for creating a skin image with improved wrinkles or stains, which comprises creating a skin image with reduced wrinkles or stains using the method according to any one of claims 1 to 12. 請求項15記載の方法で作成したシワ又はシミの改善した肌画像を用いる、シワ又はシミの改善後の肌の予測方法。 A method for predicting skin after improvement of wrinkles or stains, using a skin image with improved wrinkles or stains prepared by the method according to claim 15. 請求項1〜16のいずれか1項記載の方法を実施するための装置。 An apparatus for carrying out the method according to any one of claims 1 to 16. 請求項1〜16のいずれか1項記載の方法を実施するためのプログラム。 A program for carrying out the method according to any one of claims 1 to 16.
JP2019232150A 2019-12-23 2019-12-23 Method for adjusting wrinkles or blemishes in skin image Pending JP2021099750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019232150A JP2021099750A (en) 2019-12-23 2019-12-23 Method for adjusting wrinkles or blemishes in skin image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019232150A JP2021099750A (en) 2019-12-23 2019-12-23 Method for adjusting wrinkles or blemishes in skin image

Publications (1)

Publication Number Publication Date
JP2021099750A true JP2021099750A (en) 2021-07-01

Family

ID=76541243

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019232150A Pending JP2021099750A (en) 2019-12-23 2019-12-23 Method for adjusting wrinkles or blemishes in skin image

Country Status (1)

Country Link
JP (1) JP2021099750A (en)

Similar Documents

Publication Publication Date Title
WO2018188534A1 (en) Face image processing method and device, and electronic device
JP5463866B2 (en) Image processing apparatus, image processing method, and program
JP5547730B2 (en) Automatic facial and skin beautification using face detection
US8150205B2 (en) Image processing apparatus, image processing method, program, and data configuration
JP4461789B2 (en) Image processing device
US20120075331A1 (en) System and method for changing hair color in digital images
EP1710746A1 (en) Makeup simulation program, makeup simulation device, and makeup simulation method
JPH1115947A (en) Image processor
JP6576083B2 (en) Image processing apparatus, image processing method, and program
JP2000134486A (en) Image processing unit, image processing method and storage medium
CN108682050B (en) Three-dimensional model-based beautifying method and device
JP2000261650A (en) Image processing unit
JP2010062672A (en) Image processor and method thereof
JP3993029B2 (en) Makeup simulation apparatus, makeup simulation method, makeup simulation program, and recording medium recording the program
KR20160110038A (en) Image processing apparatus and image processing method
JP2021144582A (en) Makeup simulation device, makeup simulation method and program
US7212674B1 (en) Method, apparatus and recording medium for face extraction
JP2010003118A (en) Image processing apparatus, image processing method and image processing program
JP5569504B2 (en) Image processing apparatus, image processing method, and program
JP2021099749A (en) Detection method of nasolabial folds
JP6896811B2 (en) Image processing equipment, image processing methods, and programs
JP4372494B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2021099750A (en) Method for adjusting wrinkles or blemishes in skin image
JP4147155B2 (en) Image processing apparatus and method
JP2003310602A (en) Image display device