JP6483782B2 - Image processing apparatus, method, and program - Google Patents

Image processing apparatus, method, and program Download PDF

Info

Publication number
JP6483782B2
JP6483782B2 JP2017204525A JP2017204525A JP6483782B2 JP 6483782 B2 JP6483782 B2 JP 6483782B2 JP 2017204525 A JP2017204525 A JP 2017204525A JP 2017204525 A JP2017204525 A JP 2017204525A JP 6483782 B2 JP6483782 B2 JP 6483782B2
Authority
JP
Japan
Prior art keywords
image
unit
feature
transparency
subject
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.)
Active
Application number
JP2017204525A
Other languages
Japanese (ja)
Other versions
JP2018028937A (en
Inventor
梓帆美 高橋
梓帆美 高橋
正志 西山
正志 西山
智行 柴田
智行 柴田
誠 広畑
誠 広畑
関根 真弘
真弘 関根
馨 杉田
馨 杉田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2017204525A priority Critical patent/JP6483782B2/en
Publication of JP2018028937A publication Critical patent/JP2018028937A/en
Application granted granted Critical
Publication of JP6483782B2 publication Critical patent/JP6483782B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明の実施形態は、画像処理装置、方法、及びプログラムに関する。   Embodiments described herein relate generally to an image processing apparatus, a method, and a program.

試着対象の衣服を着用した状態を示す仮想画像を表示する技術が種々開示されている。例えば、試着対象の被写体の画像の特徴点と衣服の画像の特徴点とを抽出し、これらの特徴点が合うように衣服の画像を変形する。そして、変形した衣服の画像と被写体の画像とを合成した合成画像を表示する技術が提案されている。   Various techniques for displaying a virtual image indicating a state of wearing a clothing to be tried on have been disclosed. For example, the feature point of the image of the subject to be tried on and the feature point of the clothing image are extracted, and the clothing image is deformed so that these feature points match. A technique for displaying a composite image obtained by combining a deformed clothing image and a subject image has been proposed.

特開2005−216094号公報Japanese Patent Laid-Open No. 2005-216094

しかしながら、従来技術では、着用した状態の衣服の姿勢と、被写体の姿勢とが異なると、試着対象の衣服の画像と被写体の画像とにずれが生じ、自然な見え方の合成画像を提示することは困難であった。   However, in the prior art, if the posture of the worn clothes and the posture of the subject are different from each other, there is a difference between the image of the clothing to be tried on and the image of the subject, and a natural-looking composite image is presented. Was difficult.

本発明が解決しようとする課題は、自然な見え方の合成画像を提示可能な画像処理装置、方法、及びプログラムを提供することである。   The problem to be solved by the present invention is to provide an image processing apparatus, method, and program capable of presenting a synthetic image that looks natural.

実施形態の画像処理装置は、第1画像に第2画像を合成する画像処理装置であって、前記第1画像から第1特徴を抽出し、前記第2画像から第2特徴を抽出する抽出部と、第1領域に対応する前記第1特徴と前記第1領域に対応する前記第2特徴とのずれに応じて、前記第1領域に対応する前記第2画像の第1透過度を決定し、第2領域に対応する前記第1特徴と前記第2領域に対応する前記第2特徴とのずれに応じて、前記第2領域に対応する前記第2画像の第2透過度を決定し、前記第1透過度および前記第2透過度を用いて、前記第1画像に前記第2画像を合成する合成部と、を備える。   An image processing apparatus according to an embodiment is an image processing apparatus that synthesizes a second image with a first image, and that extracts a first feature from the first image and extracts a second feature from the second image And determining the first transparency of the second image corresponding to the first region in accordance with a deviation between the first feature corresponding to the first region and the second feature corresponding to the first region. Determining a second transparency of the second image corresponding to the second region according to a deviation between the first feature corresponding to the second region and the second feature corresponding to the second region; A synthesis unit that synthesizes the second image with the first image using the first transparency and the second transparency.

実施の形態1の画像処理装置のブロック図。1 is a block diagram of an image processing apparatus according to a first embodiment. 実施の形態1の第2画像情報を格納したテーブルの一例の図。FIG. 6 is an example of a table storing second image information according to the first embodiment. 実施の形態1の第2画像の一例の図。FIG. 6 is a diagram illustrating an example of a second image according to the first embodiment. 実施の形態1の合成画像の一例の図。FIG. 4 is a diagram illustrating an example of a composite image according to the first embodiment. 実施の形態1の画像処理のフローチャート。3 is a flowchart of image processing according to the first embodiment. 実施の形態1の合成画像の一例の図。FIG. 4 is a diagram illustrating an example of a composite image according to the first embodiment. 実施の形態1の合成画像の一例の図。FIG. 4 is a diagram illustrating an example of a composite image according to the first embodiment. 実施の形態2の画像処理装置を示すブロック図。FIG. 3 is a block diagram illustrating an image processing apparatus according to a second embodiment. 実施の形態2の画像処理のフローチャート。10 is a flowchart of image processing according to the second embodiment. 実施の形態2の合成画像の一例の図。FIG. 10 illustrates an example of a composite image according to the second embodiment. 実施の形態3の画像処理装置を示すブロック図。FIG. 4 is a block diagram illustrating an image processing apparatus according to a third embodiment. 実施の形態3の衣服情報生成処理のフローチャート。10 is a flowchart of clothes information generation processing according to the third embodiment. 実施の形態3の第2画像の一例の図。FIG. 16 is a diagram illustrating an example of a second image according to the third embodiment. 実施の形態4の画像処理装置のブロック図。FIG. 6 is a block diagram of an image processing apparatus according to a fourth embodiment. 実施の形態4の画像処理のフローチャート。10 is a flowchart of image processing according to the fourth embodiment. 実施の形態4の合成画像の一例の図。FIG. 10 is a diagram illustrating an example of a composite image according to the fourth embodiment. 実施の形態のハードウェア構成の図。The figure of the hardware constitutions of an embodiment.

以下に添付図面を参照して、画像処理装置、方法、及びプログラムの一の実施形態を詳細に説明する。   Hereinafter, an embodiment of an image processing device, a method, and a program will be described in detail with reference to the accompanying drawings.

(実施の形態1)
図1は、本実施の形態の画像処理装置10の機能的構成を示すブロック図である。画像処理装置10は、記憶部12(記憶手段)、撮像部14(撮像手段)、選択部16(選択手段)、第1算出部18(第1算出手段)、抽出部20(抽出手段)、第2算出部22(第2算出手段)、決定部24(決定手段)、生成部26(生成手段)、及び提示部28(提示手段)を備える。
(Embodiment 1)
FIG. 1 is a block diagram showing a functional configuration of an image processing apparatus 10 according to the present embodiment. The image processing apparatus 10 includes a storage unit 12 (storage unit), an imaging unit 14 (imaging unit), a selection unit 16 (selection unit), a first calculation unit 18 (first calculation unit), an extraction unit 20 (extraction unit), A second calculation unit 22 (second calculation unit), a determination unit 24 (determination unit), a generation unit 26 (generation unit), and a presentation unit 28 (presentation unit) are provided.

撮像部14は、衣服を試着する対象の被写体を撮像する。撮像部14としては、公知のデジタルカメラ、デジタルビデオカメラ等が挙げられる。撮像部14は、被写体の撮像によって、被写体を含む第1画像を取得する。撮像部14は、第1画像を、第1算出部18、抽出部20、及び生成部26へ出力する。   The imaging unit 14 images a subject to be tried on. Examples of the imaging unit 14 include known digital cameras and digital video cameras. The imaging unit 14 acquires a first image including the subject by imaging the subject. The imaging unit 14 outputs the first image to the first calculation unit 18, the extraction unit 20, and the generation unit 26.

衣服を試着する対象の被写体は、人物に限られず、犬や猫等のペット、及び人体やペットの形状を模したマネキン等も含む。また、衣服とは、被写体が着用可能な品物である。衣服としては、例えば、上着、スカート、ズボン、靴、帽子等が挙げられる。   The subject to be tried on is not limited to a person, but also includes pets such as dogs and cats, and mannequins that imitate the shape of human bodies and pets. Also, clothes are items that can be worn by a subject. Examples of the clothes include a jacket, a skirt, trousers, shoes, a hat, and the like.

第1算出部18は、撮像部14によって得られた第1画像から、被写体の姿勢情報を算出する。姿勢情報とは、被写体の身体の構え方を示し、被写体の向きや動き等を示す。被写体の向きとは、撮像部14に対する撮像時の被写体の向きを示す。例えば、被写体の向きとしては、顔及び身体が撮像部14に対して正面を向いている正面方向、顔及び身体が撮像部14に対して側面を向いている側面方向、正面方向及び側面方向以外の他の方向等がある。被写体の身体の動きとは、被写体の関節の角度の集合によって定まる身体の形を示す。   The first calculator 18 calculates the posture information of the subject from the first image obtained by the imaging unit 14. The posture information indicates how to hold the body of the subject, and indicates the orientation and movement of the subject. The direction of the subject indicates the direction of the subject at the time of imaging with respect to the imaging unit 14. For example, as the direction of the subject, the front direction in which the face and the body face the front with respect to the imaging unit 14, the side direction in which the face and the body face the side with respect to the imaging unit 14, other than the front direction and the side direction There are other directions. The movement of the subject's body refers to the shape of the body determined by the set of joint angles of the subject.

本実施の形態では、第1算出部18は、姿勢情報として、被写体の向きを示す姿勢情報を算出する場合を説明するがこれに限られない。   In the present embodiment, the first calculation unit 18 describes a case where the posture information indicating the direction of the subject is calculated as the posture information, but the present invention is not limited to this.

第1算出部18による姿勢情報の算出には、公知の方法を適用することができる。例えば、姿勢情報の算出には、第1画像における顔領域を公知の方法により抽出し、顔領域の向きを公知の方法により判別することによって、被写体の向きを示す姿勢情報を算出する方法を用いることができる。また、第1画像における被写体の輪郭の大きさや形状を示す情報に対応づけて姿勢情報を予め記憶する。そして、第1算出部18は、第1画像の輪郭を公知の方法により抽出し、該輪郭の大きさや形状を示す情報に対応する姿勢情報を読み取ることによって、姿勢情報を算出してもよい。また、複数領域に分割した領域毎に印の着いた衣服を着用した状態の被写体を撮像部14で撮像する。そして、撮像によって得られた第1画像における該印を示す印画像の各位置を算出した算出結果を用いて、姿勢情報を算出してもよい。   A known method can be applied to the calculation of the posture information by the first calculation unit 18. For example, the posture information is calculated by extracting the face area in the first image by a known method and determining the orientation of the face area by a known method, thereby calculating the posture information indicating the direction of the subject. be able to. In addition, posture information is stored in advance in association with information indicating the size and shape of the contour of the subject in the first image. Then, the first calculation unit 18 may calculate the posture information by extracting the contour of the first image by a known method and reading the posture information corresponding to the information indicating the size and shape of the contour. In addition, the imaging unit 14 captures an image of a subject in a state in which a clothes with a mark is worn for each of the divided areas. Then, posture information may be calculated using a calculation result obtained by calculating each position of the mark image indicating the mark in the first image obtained by imaging.

また、特開2006−249618号公報に示される姿勢推定方法を用いて姿勢情報を算出してもよい。具体的には、被写体の三次元体型形状を示す情報に対応づけて姿勢情報を予め記憶する。そして、撮像部14の撮像によって得られた第1画像の輪郭を公知の方法により抽出する。そして、各姿勢情報に対応する三次元体型形状を示す情報の各々について被写体モデルを生成し、被写体モデルを二次元画像に投影して輪郭を抽出する。そして、第1画像の輪郭に一致または最も類似する輪郭の被写体モデルに対応する姿勢情報を、読取ることによって、姿勢情報を算出する方法を用いてもよい。   Further, posture information may be calculated using a posture estimation method disclosed in Japanese Patent Application Laid-Open No. 2006-249618. Specifically, posture information is stored in advance in association with information indicating the three-dimensional shape of the subject. Then, the contour of the first image obtained by imaging by the imaging unit 14 is extracted by a known method. Then, a subject model is generated for each piece of information indicating a three-dimensional body shape corresponding to each posture information, and the subject model is projected onto a two-dimensional image to extract a contour. Then, a method of calculating posture information by reading posture information corresponding to a subject model having a contour that matches or is most similar to the contour of the first image may be used.

記憶部12は、第2画像を示す第2画像情報を記憶する。第2画像情報は、衣服の試着対象の被写体、または被写体を模した形状のマネキン等の人形に試着された状態で撮像された衣服の画像を示すことが好ましい。   The storage unit 12 stores second image information indicating the second image. It is preferable that the second image information indicates an image of the clothing imaged in a state of being tried on a doll such as a subject to be tried on or a mannequin having a shape imitating the subject.

本実施の形態では、記憶部12は、第2画像情報を格納したテーブルを記憶する場合を説明する。図2には、記憶部12に記憶される、第2画像情報を格納したテーブルのデータ構造の一例を示した。   In the present embodiment, the case where the storage unit 12 stores a table storing the second image information will be described. FIG. 2 shows an example of the data structure of a table storing the second image information stored in the storage unit 12.

図2に示すように、第2画像情報を格納したテーブルは、例えば、衣服番号と、姿勢情報と、第2画像情報と、衣服情報と、を対応づけて格納する。衣服番号は、衣服毎に一意に割り当てられた番号等の情報である。このため、姿勢情報が異なっていても、同じ衣服については、同じ衣服番号を割り当てるものとして説明する。姿勢情報は、上述したため説明を省略する。第2画像情報は、第2画像を示す画像情報である。衣服情報は、衣服を示す情報であり、例えば、衣服名、色、サイズ、素材、値段等の情報が含まれる。   As illustrated in FIG. 2, the table storing the second image information stores, for example, clothing numbers, posture information, second image information, and clothing information in association with each other. The clothing number is information such as a number uniquely assigned to each clothing. For this reason, even if the posture information is different, the same clothes will be described as being assigned the same clothes number. Since the posture information has been described above, the description thereof will be omitted. The second image information is image information indicating the second image. The clothing information is information indicating clothing and includes, for example, information such as clothing name, color, size, material, and price.

なお、記憶部12は、1種類の衣服(衣服番号)について、姿勢の異なる複数種類の姿勢情報及び各姿勢情報に対応する第2画像情報や衣服情報を格納してもよいし、1種類の衣服について、1種類の姿勢の姿勢情報を格納してもよい。   The storage unit 12 may store a plurality of types of posture information with different postures and second image information and clothing information corresponding to each posture information for one type of clothing (clothing number). For clothes, posture information of one kind of posture may be stored.

記憶部12が、1種類の衣服について姿勢の異なる複数種類の姿勢情報及び各姿勢情報に対応する第2画像情報を格納する場合には、例えば、記憶部12は、図3(A)に示すように、同じ衣服について側面側から撮像された第2画像31Aと、側面方向を示す姿勢情報と、が該衣服を示す衣服番号に対応づけて格納する。また、記憶部12は、図3(B)に示すように、同じ衣服について正面側から撮像された第2画像31Bと、正面方向を示す姿勢情報と、を、該衣服を衣服番号に対応づけて格納する。   When the storage unit 12 stores a plurality of types of posture information having different postures for one type of clothing and second image information corresponding to each piece of posture information, for example, the storage unit 12 is illustrated in FIG. As described above, the second image 31A captured from the side surface of the same clothes and the posture information indicating the side direction are stored in association with the clothes number indicating the clothes. Further, as shown in FIG. 3B, the storage unit 12 associates the second image 31B captured from the front side with respect to the same clothing and the posture information indicating the front direction with the clothing number associated with the clothing number. Store.

なお、記憶部12における、第2画像情報を格納したテーブルは、衣服を識別するための衣服番号と、姿勢情報と、第2画像情報と、を少なくとも格納すればよく、衣服情報を格納しない形態であってもよい。   Note that the table storing the second image information in the storage unit 12 may store at least the clothing number for identifying the clothing, the posture information, and the second image information, and does not store the clothing information. It may be.

図1に戻り、説明を続ける。選択部16は、第1算出部18から受け付けた姿勢情報に対応する第2画像情報を記憶部12から選択する。なお、姿勢情報に対応する第2画像情報が記憶部12に複数記憶されている場合、すなわち、同じ姿勢情報に対応する異なる種類の衣服が記憶部12に記憶されている場合には、選択部16は、これらの複数の第2画像情報の内の1の第2画像情報を選択する。   Returning to FIG. 1, the description will be continued. The selection unit 16 selects second image information corresponding to the posture information received from the first calculation unit 18 from the storage unit 12. When a plurality of second image information corresponding to the posture information is stored in the storage unit 12, that is, when different types of clothes corresponding to the same posture information are stored in the storage unit 12, the selection unit 16 selects one second image information among the plurality of second image information.

なお、画像処理装置10に図示を省略する操作部を設けた構成とし、選択部16は、ユーザによる操作部の操作指示によって選択された衣服番号の第2画像情報の内の、第1算出部18から受け付けた姿勢情報に対応する第2画像情報を選択してもよい。なお、操作部としては、各種情報を入力する公知の入力装置が挙げられ、例えば、キーボードやタッチパネル等が挙げられる。   The image processing apparatus 10 is provided with an operation unit (not shown), and the selection unit 16 includes a first calculation unit in the second image information of the clothing number selected by the user's operation instruction on the operation unit. The second image information corresponding to the posture information received from 18 may be selected. In addition, as an operation part, the well-known input device which inputs various information is mentioned, For example, a keyboard, a touch panel, etc. are mentioned.

選択部16は、選択した第2画像情報を、抽出部20及び生成部26へ出力する。   The selection unit 16 outputs the selected second image information to the extraction unit 20 and the generation unit 26.

抽出部20は、第1画像の輪郭(第1輪郭と称する)を抽出し、該第1輪郭から被写体の第1特徴を抽出する。また、抽出部20は、第2画像の輪郭(第2輪郭と称する)を抽出し、該第2輪郭から第2特徴を抽出する。   The extraction unit 20 extracts a contour (referred to as a first contour) of the first image, and extracts a first feature of the subject from the first contour. Further, the extraction unit 20 extracts a contour (referred to as a second contour) of the second image, and extracts a second feature from the second contour.

第1特徴及び第2特徴とは、被写体を特徴づける部分を示す。第1特徴及び第2特徴は、具体的には、少なくとも被写体の肩部及び腰部の何れか一方を示す。なお、第1特徴及び第2特徴としては、被写体を特徴づける部分であればよく、例えば、首部、胸部、脇部、膝部、大腿部、頭部、足首部、足先部等を含んでもよい。なお、以下では、第1特徴及び第2特徴を総称する場合には、単に特徴と称して説明する場合がある。   The first feature and the second feature indicate portions that characterize the subject. Specifically, the first feature and the second feature indicate at least one of the shoulder portion and the waist portion of the subject. The first feature and the second feature may be any part that characterizes the subject, and include, for example, the neck, chest, side, knee, thigh, head, ankle, and toe. But you can. Hereinafter, when the first feature and the second feature are collectively referred to, they may be simply referred to as features.

抽出部20は、公知のエッジ抽出方法を用いたエッジ抽出法を用いて、第1画像の第1輪郭、及び第2画像の第2輪郭を抽出する。具体的には、エッジ抽出法としては、キャニー(Canny)法、ソーベルオペレータ法、Prewittオペレータ法、Roberts cross法等が挙げられるが、これらに限られない。   The extraction unit 20 extracts the first contour of the first image and the second contour of the second image using an edge extraction method using a known edge extraction method. Specifically, examples of the edge extraction method include a Canny method, a Sobel operator method, a Prewitt operator method, and a Roberts cross method, but are not limited thereto.

第1輪郭から第1特徴を抽出する方法、及び第2輪郭から第2特徴を抽出する方法としては、以下の方法を用いる。例えば、抽出部20は、輪郭における特徴を示す線画像部分を識別するための識別情報を予め記憶する。この識別情報としては、例えば、曲率を示す情報が挙げられるがこれに限られない。   The following methods are used as a method for extracting the first feature from the first contour and a method for extracting the second feature from the second contour. For example, the extraction unit 20 stores in advance identification information for identifying a line image portion indicating a feature in the contour. Examples of the identification information include, but are not limited to, information indicating curvature.

曲率を識別情報として用いて第1特徴及び第2特徴を抽出する方法の一例を説明する。例えば、抽出部20は、肩部、腰部等の特徴毎に、各特徴に対応する曲率の範囲を示す情報を予め記憶する。具体的には、抽出部20は、肩部に相当する曲線の曲率の取りうる範囲を、肩部を示す情報に対応づけて記憶する。抽出部20は、腰部やその他の部位についても同様にして、曲率の範囲を予め記憶する。   An example of a method for extracting the first feature and the second feature using the curvature as identification information will be described. For example, the extraction unit 20 stores in advance information indicating the range of curvature corresponding to each feature for each feature such as a shoulder and a waist. Specifically, the extraction unit 20 stores a range that can be taken by the curvature of the curve corresponding to the shoulder in association with information indicating the shoulder. The extraction unit 20 stores the curvature range in advance in the same manner for the waist and other parts.

そして、抽出部20は、第1特徴及び第2特徴を複数領域に分割した各領域について曲率を算出し、算出した曲率に対応する特徴を示す情報が記憶されている場合に、該曲率を示す領域を線画像(第1特徴、第2特徴)として抽出する。   Then, the extraction unit 20 calculates a curvature for each region obtained by dividing the first feature and the second feature into a plurality of regions, and indicates the curvature when information indicating a feature corresponding to the calculated curvature is stored. The region is extracted as a line image (first feature, second feature).

なお、曲率の算出には、公知の方法を用いる。例えば、抽出部20は、下記方法により曲率を算出する。具体的には、抽出部20は、まず、注目画素の近傍領域S(p)の輪郭(第1輪郭、第2輪郭)の共分散行列M(式(1))を求める。   A known method is used for calculating the curvature. For example, the extraction unit 20 calculates the curvature by the following method. Specifically, the extraction unit 20 first obtains a covariance matrix M (formula (1)) of the contours (first contour, second contour) of the neighborhood region S (p) of the target pixel.

Figure 0006483782
Figure 0006483782

式(1)中、Mは、輪郭(第1輪郭、第2輪郭)の共分散行列を示し、S(p)は、注目画素の近傍領域を示す。また、式(1)中、dI/dxは、水平方向の微分オペレータを示し、dI/dyは垂直方向の微分オペレータを示す。   In Equation (1), M represents a covariance matrix of contours (first contour and second contour), and S (p) represents a neighborhood region of the target pixel. In the formula (1), dI / dx represents a horizontal differential operator, and dI / dy represents a vertical differential operator.

そして、抽出部20は、共分散行列Mの固有値(λ1,λ2)を用いて、下記式(2)により曲率を算出する。   Then, the extraction unit 20 uses the eigenvalues (λ1, λ2) of the covariance matrix M to calculate the curvature according to the following equation (2).

曲率=αλ1+βλ2 ・・・式(2)   Curvature = αλ1 + βλ2 Equation (2)

式(2)中、αは、定数であり、固有値λ1の重要度を表す。また、式(2)中、βは、定数であり、固有値λ2の重要度を表す。   In the formula (2), α is a constant and represents the importance of the eigenvalue λ1. Moreover, in formula (2), β is a constant and represents the importance of the eigenvalue λ2.

なお、輪郭における特徴を示す線画像部分を識別するための識別情報としては、上記曲率に加えて、被写体の奥行を示す奥行情報や、画像の色情報を用いてもよい。   In addition to the curvature described above, depth information indicating the depth of the subject or color information of the image may be used as identification information for identifying the line image portion indicating the feature in the contour.

上記識別情報として、上記曲率に加えて奥行情報を用いる場合には、撮像部14を、被写体の奥行きを示す奥行情報を更に取得する構成とする。この場合には、撮像部14を、奥行きを取得する公知の装置を備えた構成とする。この奥行を取得する公知の装置としては、アクティブセンサーやステレオカメラ等が挙げられる。そして、この場合、撮像部14は、第1画像とともに奥行情報を抽出部20に出力する。   When using depth information in addition to the curvature as the identification information, the imaging unit 14 is configured to further acquire depth information indicating the depth of the subject. In this case, the imaging unit 14 is configured to include a known device that acquires the depth. Known devices for acquiring the depth include an active sensor and a stereo camera. In this case, the imaging unit 14 outputs the depth information together with the first image to the extraction unit 20.

この場合、抽出部20では、肩部、腰部等の特徴毎に、各特徴に対応する曲率の範囲、及び奥行情報を示す情報を予め記憶する。そして、抽出部20は、第1特徴及び第2特徴を複数領域に分割した各領域について曲率を算出すると共に奥行情報を読み取り、算出した曲率及び読み取った奥行情報に対応する特徴を示す情報が記憶されている場合に、該曲率及び奥行を示す領域を特徴(第1特徴、第2特徴)として抽出する。   In this case, the extraction unit 20 stores in advance information indicating a range of curvature corresponding to each feature and depth information for each feature such as a shoulder and a waist. Then, the extraction unit 20 calculates the curvature for each region obtained by dividing the first feature and the second feature into a plurality of regions, reads the depth information, and stores information indicating the calculated curvature and the feature corresponding to the read depth information. If it is, the region indicating the curvature and depth is extracted as a feature (first feature, second feature).

上記識別情報として、上記曲率に加えて色情報を用いる場合には、抽出部20では、肩部、腰部等の特徴毎に、各特徴に対応する、曲率の範囲及び隣接する画素間の色値の差の範囲を示す情報を予め記憶する。具体的には、抽出部20は、肩部に相当する曲線の曲率の取りうる範囲、及び肩部に相当する色値の差の範囲を、肩部を示す情報に対応づけて記憶する。抽出部20は、腰部やその他の部位についても同様にして、曲率の範囲及び色値の差の範囲を予め記憶する。そして、抽出部20は、第1特徴及び第2特徴を複数領域に分割した各領域について曲率を算出するとともに、隣接する画素間の色値の差を算出する。そして、抽出部20は、算出した曲率及び色値の差に対応する特徴を示す情報が記憶されている場合に、該曲率及び色値の差を示す領域を特徴(第1特徴、第2特徴)として抽出する。   When color information is used as the identification information in addition to the curvature, the extraction unit 20 uses a range of curvature corresponding to each feature and a color value between adjacent pixels for each feature such as a shoulder and a waist. Information indicating the difference range is stored in advance. Specifically, the extraction unit 20 stores the range of the curvature of the curve corresponding to the shoulder and the range of the color value difference corresponding to the shoulder in association with the information indicating the shoulder. The extraction unit 20 stores in advance the curvature range and the color value difference range in the same manner for the waist and other parts. Then, the extraction unit 20 calculates a curvature for each region obtained by dividing the first feature and the second feature into a plurality of regions, and calculates a color value difference between adjacent pixels. Then, when information indicating a feature corresponding to the calculated curvature and color value difference is stored, the extraction unit 20 features a region indicating the difference between the curvature and the color value (first feature, second feature). ).

第1特徴および第2特徴を抽出する処理としては、他の方法を用いてもよい。例えば、撮像部14が、肩部等の特徴に第1印の付与された衣服、及び第2印の付与されたベルト状の衣服を着用した状態の被写体を撮像する。そして、抽出部20は、撮像によって得られた第1画像情報における該第1印の第1位置を基準に、肩部を抽出し、該第2印の第2位置を基準に腰部を抽出することによって、第1特徴および第2特徴を抽出してもよい。   Other methods may be used as the process of extracting the first feature and the second feature. For example, the imaging unit 14 captures an image of a subject wearing a garment with a first mark on a feature such as a shoulder and a belt-like garment with a second mark. Then, the extraction unit 20 extracts the shoulder portion based on the first position of the first mark in the first image information obtained by imaging, and extracts the waist portion based on the second position of the second mark. Thus, the first feature and the second feature may be extracted.

図4には、本実施の形態の画像処理装置10における画像合成の一例を示した。例えば、図4(A)に示すように、撮像部14で撮像した第1画像が、第1画像30であり、選択部16が選択した第2画像情報が図4(D)に示す第2画像36であったとする。この場合、抽出部20は、例えば、第1画像30の第1輪郭として、例えば、図4(B)に示す第1輪郭32を抽出する。また、抽出部20は、例えば、第2画像36の第2輪郭として、図4(E)に示す第2輪郭38を抽出する。   FIG. 4 shows an example of image synthesis in the image processing apparatus 10 of the present embodiment. For example, as illustrated in FIG. 4A, the first image captured by the imaging unit 14 is the first image 30, and the second image information selected by the selection unit 16 is the second image illustrated in FIG. Assume that the image 36 is displayed. In this case, for example, the extraction unit 20 extracts, for example, the first contour 32 illustrated in FIG. 4B as the first contour of the first image 30. Moreover, the extraction part 20 extracts the 2nd outline 38 shown to FIG.4 (E) as a 2nd outline of the 2nd image 36, for example.

そして、抽出部20は、第1輪郭32における、特徴点である、例えば肩部32Aに相当する第1特徴34を抽出する(図4(C)参照)。同様に、抽出部20は、第2輪郭38における、肩部38Aに相当する第2特徴40を抽出する(図4(F)参照)。そして、後述する生成部26が、透過度を変更された第2画像と第1画像とを合成した合成画像42を生成する(図4(G)参照)。   Then, the extraction unit 20 extracts a first feature 34 corresponding to, for example, the shoulder 32A, which is a feature point in the first contour 32 (see FIG. 4C). Similarly, the extraction unit 20 extracts the second feature 40 corresponding to the shoulder portion 38A in the second contour 38 (see FIG. 4F). And the production | generation part 26 mentioned later produces | generates the synthesized image 42 which synthesize | combined the 1st image and the 2nd image in which the transparency was changed (refer FIG.4 (G)).

図1に戻り、説明を続ける。抽出部20は、第1画像の第1輪郭から抽出した第1特徴、及び第2画像の第2輪郭から抽出した第2特徴を、第2算出部22へ出力する。   Returning to FIG. 1, the description will be continued. The extraction unit 20 outputs the first feature extracted from the first contour of the first image and the second feature extracted from the second contour of the second image to the second calculation unit 22.

第2算出部22は、抽出部20から受け付けた第1特徴と第2特徴のずれ量(以下、第1ずれ量と称する)を算出する。   The second calculation unit 22 calculates a shift amount between the first feature and the second feature received from the extraction unit 20 (hereinafter referred to as a first shift amount).

この第1特徴と第2特徴とのずれ量の算出には、公知の算出方法を用いる。例えば、この第1特徴と第2特徴とのずれ量の算出方法としては、Chamfer Matching法、レベルセット法、及び単純類似度法等を用いる。   A known calculation method is used to calculate the amount of deviation between the first feature and the second feature. For example, as a method of calculating the amount of deviation between the first feature and the second feature, a Champion Matching method, a level set method, a simple similarity method, or the like is used.

より具体的には、例えば、第2算出部22は、第1特徴を構成する各画素の画素位置と、第2特徴を構成する各画素の画素位置と、の差の合計値を、第1ずれ量として算出する。   More specifically, for example, the second calculation unit 22 calculates the total value of the differences between the pixel positions of the pixels constituting the first feature and the pixel positions of the pixels constituting the second feature as the first value. Calculated as the amount of deviation.

なお、第2算出部22は、この第1ずれ量の算出時には、まず、第1特徴と第2特徴の合わせ込みを行うことが好ましい。具体的には、第2算出部22は、第1特徴及び第2特徴の何れか一方を拡大、縮小、または位置変更を行い、拡大、縮小、または位置変更を行う毎に変更した後の第1特徴と第2特徴のずれ量を算出する。そして、この変更処理及びずれ量算出処理を予め定められた回数繰り返し、算出したずれ量の内の最小値を、第1特徴と第2特徴の第1ずれ量として算出する。なお、この変更処理及びずれ量算出処理の繰り返し回数は、予め定めて第2算出部22に予め記憶しておけばよい。   In addition, it is preferable that the 2nd calculation part 22 performs the alignment of a 1st feature and a 2nd feature first at the time of calculation of this 1st deviation | shift amount. Specifically, the second calculation unit 22 enlarges, reduces, or changes the position of any one of the first feature and the second feature, and changes the first feature after each change. A deviation amount between the one feature and the second feature is calculated. Then, the change process and the shift amount calculation process are repeated a predetermined number of times, and the minimum value of the calculated shift amounts is calculated as the first shift amount of the first feature and the second feature. Note that the number of repetitions of the change process and the deviation amount calculation process may be determined in advance and stored in the second calculation unit 22 in advance.

第2算出部22は、算出した第1ずれ量を、決定部24へ出力する。   The second calculation unit 22 outputs the calculated first deviation amount to the determination unit 24.

決定部24は、第1ずれ量が大きいほど高い透過度を、第2画像の透過度として決定する。例えば、決定部24は、第1ずれ量に対する透過度として、第1ずれ量が大きいほど高い透過度を算出する計算式または第1ずれ量と透過度を定めたテーブルを予め記憶する。そして、決定部24は、第2算出部22から受け付けた第1ずれ量を該計算式に代入することによって透過度を算出、または該第1ずれ量に対応する透過度を読み取ることによって透過度を決定する。   The determining unit 24 determines the higher transmittance as the second image transparency as the first shift amount is larger. For example, the determination unit 24 stores in advance a calculation formula for calculating a higher degree of transparency as the first deviation amount is larger or a table in which the first deviation amount and the transparency are determined as the permeability with respect to the first deviation amount. Then, the determination unit 24 calculates the transparency by substituting the first deviation amount received from the second calculation unit 22 into the calculation formula, or reads the transparency corresponding to the first deviation amount, thereby determining the transparency. To decide.

なお、決定部24は、第1ずれ量が大きいほど高い透過度を決定すればよく、第1ずれ量と透過度との関係が一次直線によって示される式やテーブルを用いて透過度を決定してもよいし、該関係が二次曲線によって示される式やテーブルを用いて透過度を決定してもよい。また、決定部24は、第1ずれ量が大きいほど連続的に高い透過度を決定してもよく、また、第1ずれ量が大きいほど、段階的に高い透過度を決定してもよい。   Note that the determination unit 24 only needs to determine a higher transmittance as the first shift amount is larger, and determines the transmittance using an expression or a table in which the relationship between the first shift amount and the transmittance is indicated by a linear line. Alternatively, the transmittance may be determined using an expression or a table in which the relationship is indicated by a quadratic curve. Moreover, the determination part 24 may determine a high transmittance | permeability continuously, so that the 1st deviation | shift amount is large, and may determine a high transparency in steps, so that a 1st deviation | shift amount is large.

決定部24は、第2画像の透過度として決定した透過度を、生成部26へ出力する。   The determination unit 24 outputs the transparency determined as the transparency of the second image to the generation unit 26.

生成部26は、決定部24から透過度を示す透過度情報を受け付ける。また、生成部26は、選択部16から第2画像情報を受け付ける。また、生成部26は、撮像部14から第1画像を受け付ける。   The generation unit 26 receives the transparency information indicating the transparency from the determination unit 24. Further, the generation unit 26 receives the second image information from the selection unit 16. Further, the generation unit 26 receives the first image from the imaging unit 14.

そして、生成部26は、選択部16から受け付けた第2画像情報の透過度を、決定部24から受け付けた透過度に変更する。そして、生成部26は、変更した透過度の第2画像情報の第2画像を、撮像部14から受け付けた第1画像情報の第1画像に合成し、合成画像を生成する。   Then, the generation unit 26 changes the transparency of the second image information received from the selection unit 16 to the transparency received from the determination unit 24. And the production | generation part 26 synthesize | combines the 2nd image of the 2nd image information of the changed transparency with the 1st image of the 1st image information received from the imaging part 14, and produces | generates a synthesized image.

詳細には、生成部26は、合成画像における、第2画像と第1画像との重なる領域の画素値を、下記式(3)を用いて算出することによって、合成画像を生成する。   Specifically, the generation unit 26 generates a composite image by calculating a pixel value of a region where the second image and the first image overlap in the composite image using the following equation (3).

Io=α・β・Ih+(1−α)(1−β)・Ic ・・・式(3)   Io = α · β · Ih + (1−α) (1−β) · Ic (3)

式(3)中、Ioは、合成画像における第2画像と第1画像との重なる領域の画素値を示す。また、Ihは、第1画像における該重なる領域の画素値を示す。Icは、第2画像における該重なる領域の画素値を示す。また、式(3)中、αは、決定部24が決定した透過度を示す。また、式(3)中、βは、合成対象の第2画像の透過度(合成前の透過度)を示す。   In Expression (3), Io represents a pixel value of a region where the second image and the first image overlap in the composite image. Ih represents the pixel value of the overlapping area in the first image. Ic indicates the pixel value of the overlapping area in the second image. In Expression (3), α represents the transmittance determined by the determination unit 24. In Expression (3), β represents the transparency (transparency before synthesis) of the second image to be synthesized.

なお、式(3)中、α及びβは、透過度の最大値を「1」とし、透過度の最小値を「0」としたときの透過度を示している。   In Equation (3), α and β indicate the transmittance when the maximum value of the transmittance is “1” and the minimum value of the transmittance is “0”.

そして、生成部26は、生成した合成画像の合成画像情報を、提示部28へ出力する。   Then, the generation unit 26 outputs the composite image information of the generated composite image to the presentation unit 28.

提示部28は、生成部26から合成画像情報を受け付ける。提示部28は、合成画像を提示する装置である。なお、提示とは、本実施の形態では、表示、印刷、及び送信等を示す。提示部28としては、液晶表示装置等の表示装置や、画像を印刷する印刷装置や、有線通信や無線通信等により外部装置へ情報を送信する公知の通信装置が挙げられる。提示部28が、表示装置である場合には、提示部28は、受け付けた合成画像情報の合成画像を表示する。また、提示部28が通信装置である場合には、提示部28は、合成画像情報を外部装置へと送信する。また、提示部28が印刷装置である場合には、提示部28は、合成画像情報の合成画像を印刷する。   The presentation unit 28 receives the composite image information from the generation unit 26. The presentation unit 28 is a device that presents a composite image. In the present embodiment, “presentation” indicates display, printing, transmission, and the like. Examples of the presentation unit 28 include a display device such as a liquid crystal display device, a printing device that prints an image, and a known communication device that transmits information to an external device by wired communication or wireless communication. When the presentation unit 28 is a display device, the presentation unit 28 displays a composite image of the received composite image information. When the presentation unit 28 is a communication device, the presentation unit 28 transmits the composite image information to the external device. If the presentation unit 28 is a printing device, the presentation unit 28 prints a composite image of the composite image information.

次に、本実施の形態の画像処理装置10で実行する画像処理を説明する。   Next, image processing executed by the image processing apparatus 10 according to the present embodiment will be described.

図5は、本実施の形態の画像処理装置10で実行する画像処理の手順を示すフローチャートである。   FIG. 5 is a flowchart illustrating a procedure of image processing executed by the image processing apparatus 10 according to the present embodiment.

まず、撮像部14が被写体の撮像によって第1画像を取得する(ステップS100)。次いで、第1算出部18が、撮像部14の撮像によって得られた第1画像の第1画像情報から、被写体の姿勢情報を算出する(ステップS102)。   First, the imaging unit 14 acquires a first image by imaging a subject (step S100). Next, the first calculation unit 18 calculates the posture information of the subject from the first image information of the first image obtained by imaging by the imaging unit 14 (step S102).

次に、抽出部20が、ステップS100の撮像によって得られた第1画像情報の第1輪郭を抽出し、第1輪郭から第1特徴を抽出する(ステップS104、ステップS106)。   Next, the extraction unit 20 extracts the first contour of the first image information obtained by the imaging in step S100, and extracts the first feature from the first contour (step S104, step S106).

次に、選択部16が、上記ステップS102で算出された姿勢情報に対応する1の第2画像情報を記憶部12から選択する(ステップS108)。   Next, the selection unit 16 selects one second image information corresponding to the posture information calculated in step S102 from the storage unit 12 (step S108).

次に、抽出部20が、ステップS108で選択された第2画像情報の第2輪郭を抽出し、第2輪郭から第2特徴を抽出する(ステップS110、ステップS112)。   Next, the extraction unit 20 extracts the second contour of the second image information selected in Step S108, and extracts the second feature from the second contour (Step S110, Step S112).

次に、第2算出部22は、ステップS106で抽出された第1特徴、及びステップS112で抽出された第2特徴の合わせ込みを行い、合わせ込み(第1特徴及び第2特徴の拡大、縮小、位置変更)によって算出したずれ量の内の最小値を算出する(ステップS114、ステップS116)。   Next, the second calculation unit 22 performs alignment of the first feature extracted in step S106 and the second feature extracted in step S112, and performs alignment (expansion / reduction of the first feature and the second feature). The minimum value of the deviation amounts calculated by the position change) is calculated (steps S114 and S116).

次に、第2算出部22は、上記ステップS110で第2輪郭の抽出に用いた第2画像情報の衣服番号と同じ衣服番号に、異なる姿勢情報に対応する、ずれ量未算出の第2画像情報が記憶部12に格納されているか否かを判断する(ステップS118)。同じ衣服番号に、異なる姿勢情報に対応する、ずれ量未算出の第2画像情報が格納されている場合には、第2算出部22は、肯定判断(ステップS118:Yes)する。そして、第2算出部22は、ステップS110で第2輪郭の抽出に用いた第2画像情報の衣服番号に対応する、該第2画像情報とは異なる姿勢情報に対応する1の第2画像情報を記憶部12から選択した後に上記ステップS110へ戻る(ステップS120)。   Next, the second calculation unit 22 uses the same clothing number as the clothing number of the second image information used for the extraction of the second contour in step S110, and corresponds to different posture information and the second image for which the deviation amount has not been calculated. It is determined whether or not information is stored in the storage unit 12 (step S118). When the second image information corresponding to different posture information and not calculated for the deviation amount is stored in the same clothing number, the second calculation unit 22 makes an affirmative determination (step S118: Yes). Then, the second calculation unit 22 corresponds to the second image information corresponding to the posture information different from the second image information corresponding to the clothing number of the second image information used for the extraction of the second contour in step S110. Is selected from the storage unit 12, and then the process returns to step S110 (step S120).

一方、ステップS118で否定判断すると(ステップS118:No)第2算出部22は、上記ステップS110〜ステップS120の処理で算出したずれ量の内の最小値を、第1ずれ量として算出する(ステップS122)。   On the other hand, if a negative determination is made in step S118 (step S118: No), the second calculation unit 22 calculates the minimum value of the deviation amounts calculated in the processes of steps S110 to S120 as the first deviation amount (step S118). S122).

次に、決定部24が、ステップS122で算出された第1ずれ量に基づいて、第1ずれ量が大きいほど高い透過度を決定する(ステップS124)。   Next, the determination unit 24 determines a higher transmittance as the first deviation amount is larger based on the first deviation amount calculated in Step S122 (Step S124).

次に、生成部26が、上記ステップS122の処理によって算出した第1ずれ量の算出時に用いた第2特徴に対応する第2画像情報の透過度を、ステップS124で決定した透過度に変更し、透過度を変更した第2画像情報と、第1画像情報と、を合成した合成画像を生成する(ステップS126)。   Next, the generation unit 26 changes the transparency of the second image information corresponding to the second feature used when calculating the first deviation amount calculated by the process of step S122 to the transparency determined in step S124. Then, a synthesized image obtained by synthesizing the second image information with the changed transparency and the first image information is generated (step S126).

次に、提示部28が、ステップS126で生成された合成画像を提示する(ステップS128)。   Next, the presentation unit 28 presents the composite image generated in step S126 (step S128).

なお、上記ステップS108〜ステップS112の処理は、上記ステップS100〜ステップ106の処理時に所定時間毎に割り込む割り込み処理として実行してもよい。   In addition, you may perform the process of said step S108-step S112 as an interruption process interrupted every predetermined time at the time of the process of said step S100-step 106.

上記ステップS100〜ステップS128に示す画像処理を行うことによって、画像処理装置10は、例えば、図6に示す合成画像を生成し、提示部28に提示する。   By performing the image processing shown in steps S100 to S128, for example, the image processing apparatus 10 generates a composite image shown in FIG.

図6には、本実施の形態の画像処理装置10における画像合成の一例を示した。例えば、図6(C)に示すように、撮像部14で撮像した第1画像が、被写体を正面方向から撮影した第1画像50であり、選択部16が選択した第2画像情報が図6(B)に示すように第2画像を正面方向から撮影した第2画像46であったとする。そして、第2算出部22の算出した第1ずれ量が、透過度「0」(透過度の最小値)に対応する値であったとする。なお、撮像部14による撮像によって得られた第1画像の透過度は、透過度「0」であったとする。この場合には、画像処理装置10は、上記画像処理を実行することによって、例えば、透過度「0」の第1画像50上に、透過度「0」の第2画像46を重ねた合成画像52を生成し、提示部28に提示する(図6(E)参照)。   FIG. 6 shows an example of image synthesis in the image processing apparatus 10 of the present embodiment. For example, as illustrated in FIG. 6C, the first image captured by the imaging unit 14 is the first image 50 obtained by capturing the subject from the front direction, and the second image information selected by the selection unit 16 is illustrated in FIG. Assume that the second image 46 is obtained by photographing the second image from the front direction as shown in FIG. Then, it is assumed that the first deviation amount calculated by the second calculation unit 22 is a value corresponding to the transparency “0” (the minimum value of the transparency). It is assumed that the transparency of the first image obtained by imaging by the imaging unit 14 is the transparency “0”. In this case, the image processing apparatus 10 performs the above image processing, for example, a composite image in which the second image 46 with transparency “0” is superimposed on the first image 50 with transparency “0”. 52 is generated and presented to the presentation unit 28 (see FIG. 6E).

一方、図6(A)に示すように、撮像部14で撮像した第1画像が、被写体を側面方向から撮影した第1画像44であり、選択部16が選択した第2画像情報が図6(B)に示すように第2画像を正面方向から撮影した第2画像46であったとする。この場合、第1特徴と第2特徴との第1ずれ量は、図6(E)に示す合成画像の生成時に用いた第1ずれ量より大きくなる。例えば、この場合、第2算出部22の算出した第1ずれ量が、透過度「1」(透過度の最大値)に対応する値であったとする。なお、撮像部14による撮像によって得られた第1画像の透過度は、透過度「0」であったとする。この場合には、画像処理装置10は、上記画像処理を実行することによって、例えば、透過度「0」の第1画像44上に、透過度「1」の第2画像46Aを重ねた合成画像48を生成し、提示部28に提示する(図6(D)参照)。このため、図6(D)に示すように、合成画像48には、第2画像46Aが透明な状態で提示される。   On the other hand, as shown in FIG. 6A, the first image captured by the imaging unit 14 is the first image 44 obtained by capturing the subject from the side surface direction, and the second image information selected by the selection unit 16 is FIG. Assume that the second image 46 is obtained by photographing the second image from the front direction as shown in FIG. In this case, the first deviation amount between the first feature and the second feature is larger than the first deviation amount used at the time of generating the composite image shown in FIG. For example, in this case, it is assumed that the first shift amount calculated by the second calculator 22 is a value corresponding to the transparency “1” (the maximum value of the transparency). It is assumed that the transparency of the first image obtained by imaging by the imaging unit 14 is the transparency “0”. In this case, the image processing apparatus 10 performs the above-described image processing, for example, a composite image in which the second image 46A having the transparency “1” is superimposed on the first image 44 having the transparency “0”. 48 is generated and presented to the presentation unit 28 (see FIG. 6D). Therefore, as shown in FIG. 6D, the second image 46A is presented in a transparent state in the composite image 48.

そして、さらに、図示は省略するが、第1ずれ量が大きくなるほど、第1画像に合成する第2画像の透過度は高くなることから、第1ずれ量が大きくなるほど、合成画像52から合成画像48に向かって高い透過度の第2画像が第1画像に合成されることとなる。   Further, although illustration is omitted, since the transparency of the second image to be combined with the first image increases as the first shift amount increases, the composite image 52 is combined with the composite image 52 as the first shift amount increases. The second image having a high transparency toward 48 is combined with the first image.

以上説明したように、本実施の形態の画像処理装置10では、第1画像の第1輪郭から抽出した第1特徴と、第2画像の第2輪郭から抽出した第2特徴と、のずれ量を示す第1ずれ量が大きいほど、高い透過度を決定し、第1画像と、決定した透過度に変更した第2画像と、を合成した合成画像を提示する。   As described above, in the image processing apparatus 10 according to the present embodiment, the shift amount between the first feature extracted from the first contour of the first image and the second feature extracted from the second contour of the second image. The greater the first deviation amount indicating is, the higher the transparency is determined, and the synthesized image obtained by synthesizing the first image and the second image changed to the determined transparency is presented.

従って、本実施の形態の画像処理装置10では、着用した状態の衣服の姿勢と、被写体の姿勢とが異なると、この姿勢が異なるほど、すなわち第1ずれ量が大きいほど、第2画像の透過度を高くして第1画像に合成するので、自然な見え方の合成画像を提示することができる。   Therefore, in the image processing apparatus 10 according to the present embodiment, when the posture of the worn clothes and the posture of the subject are different, the transmission of the second image is increased as the posture is different, that is, as the first shift amount is larger. Since the image is combined with the first image at a high degree, it is possible to present a combined image that looks natural.

なお、本実施の形態では、第2算出部22は、第1特徴と第2特徴との第1ずれ量を算出する場合を説明した。しかし、第2算出部22は、第1特徴と第2特徴の各々を複数の線領域に分割し、線領域毎に第1ずれ量を算出してもよい。そして、決定部24は、第2画像における上記各線領域を含む複数の各領域について、各領域に含まれる線領域の第1ずれ量が大きいほど高い透過度を、領域毎に決定する。そして、生成部26は、第2画像の該各領域の透過度を、決定された透過度に変更した第2画像を、第1画像に合成した合成画像を生成してもよい。   In the present embodiment, the case has been described in which the second calculation unit 22 calculates the first shift amount between the first feature and the second feature. However, the second calculation unit 22 may divide each of the first feature and the second feature into a plurality of line regions and calculate the first shift amount for each line region. Then, the determination unit 24 determines, for each of the plurality of regions including each of the line regions in the second image, a higher transmittance for each region as the first shift amount of the line region included in each region is larger. Then, the generation unit 26 may generate a composite image in which the second image obtained by changing the transparency of each region of the second image to the determined transparency is combined with the first image.

図7には、本実施の形態の画像処理装置10における画像合成の一例を示した。抽出部20が、第1画像の第1輪郭として、例えば、図7(A)に示す第1輪郭53を抽出し、図7(B)に示す第1特徴54を抽出したとする。また、抽出部20が、第2画像の第2輪郭として、例えば、図7(D)に示す第2輪郭56を抽出し、図7(E)に示す第2特徴57を抽出したとする。   FIG. 7 shows an example of image synthesis in the image processing apparatus 10 of the present embodiment. Assume that the extraction unit 20 extracts, for example, the first contour 53 illustrated in FIG. 7A and the first feature 54 illustrated in FIG. 7B as the first contour of the first image. In addition, it is assumed that the extraction unit 20 extracts, for example, the second contour 56 illustrated in FIG. 7D and the second feature 57 illustrated in FIG. 7E as the second contour of the second image.

そして、第2算出部22は、第1特徴54を複数の線領域55に分割し(図7(C)参照)、第2特徴57を複数の線領域58に分割する(図7(F)参照)。そして、決定部24は、第2画像における上記各線領域を含む複数の各領域について、各領域に含まれる線領域の第1ずれ量が大きいほど高い透過度を、領域毎に決定する。   Then, the second calculator 22 divides the first feature 54 into a plurality of line regions 55 (see FIG. 7C), and divides the second feature 57 into a plurality of line regions 58 (FIG. 7F). reference). Then, the determination unit 24 determines, for each of the plurality of regions including each of the line regions in the second image, a higher transmittance for each region as the first shift amount of the line region included in each region is larger.

すると、例えば、第1特徴及び第2特徴を複数の線領域に分割した各線領域の第1ずれ量が透過度の最小値「0」に対応するずれ量である場合には、生成部26は、透過度「0」の第2画像を透過度「0」の第1画像に合成した合成画像59を生成する(図7G)参照)。一方、第1特徴及び第2特徴を複数の線領域に分割した各線領域の内、被写体の肘から先の部分に相当する線領域の第1ずれ量が透過度の最大値「1」に対応するずれ量であったとする。そして、その他の線領域については、透過度の最小値「0」に対応するずれ量であったとする。この場合には、生成部26は、第2画像における肘から先の部分に相当する線領域を含む領域の透過度を透過度「1」に変更し、その他の領域の透過度を透過度「0」とした第2画像を、透過度「0」の第1画像に合成した合成画像60を生成する(図7(H)参照)。このため、例えば、被写体の肘から先の部分の第2画像からの第1ずれ量が大きい場合には、その部分の透過度が第1ずれ量に応じて高い第2画像を第1画像に合成した合成画像となる。このため、さらに、自然な見え方の合成画像を提示することができる。   Then, for example, when the first shift amount of each line region obtained by dividing the first feature and the second feature into a plurality of line regions is a shift amount corresponding to the minimum value “0” of the transparency, the generation unit 26 Then, a synthesized image 59 is generated by synthesizing the second image with transparency “0” with the first image with transparency “0” (see FIG. 7G). On the other hand, of each line area obtained by dividing the first feature and the second feature into a plurality of line areas, the first shift amount of the line area corresponding to the part from the elbow of the subject corresponds to the maximum transparency value “1”. Suppose that the amount of deviation is. The other line regions are assumed to have a deviation corresponding to the minimum transparency value “0”. In this case, the generation unit 26 changes the transparency of the area including the line area corresponding to the tip of the elbow in the second image to the transparency “1”, and changes the transparency of the other areas to the transparency “ A composite image 60 is generated by combining the second image with “0” with the first image with transparency “0” (see FIG. 7H). For this reason, for example, when the first shift amount from the second image of the portion beyond the elbow of the subject is large, the second image having a high transparency according to the first shift amount is changed to the first image. It becomes the synthesized image. For this reason, it is possible to present a composite image that looks natural.

なお、本実施の形態では、上述のように、抽出部20は、公知のエッジ抽出方法を用いたエッジ抽出法を用いて、第1画像の第1輪郭、及び第2画像の第2輪郭を抽出する。そして、抽出部20は、第1輪郭の曲率に基づいて第1特徴を抽出し、第2輪郭の曲率に基づいて第2特徴を抽出するとして説明した。   In the present embodiment, as described above, the extraction unit 20 uses the edge extraction method using a known edge extraction method to extract the first contour of the first image and the second contour of the second image. Extract. Then, the extraction unit 20 has been described as extracting the first feature based on the curvature of the first contour and extracting the second feature based on the curvature of the second contour.

このエッジ抽出時に用いるフィルタサイズや、曲率算出時に用いる近傍領域は、固定であってもよいが、下記割合に応じて調整することが好ましい。具体的には、抽出部20では、撮像部14の撮像によって得られた撮像画像における被写体を示す第1画像の占める割合が大きいほど、フィルタサイズ及び近傍領域の大きさの少なくとも一方を大きくすることが好ましい。   The filter size used at the time of edge extraction and the neighborhood region used at the time of curvature calculation may be fixed, but are preferably adjusted according to the following ratio. Specifically, in the extraction unit 20, at least one of the filter size and the size of the neighboring region is increased as the proportion of the first image indicating the subject in the captured image obtained by the imaging of the imaging unit 14 increases. Is preferred.

撮像画像における第1画像の占める割合が大きいほど、フィルタサイズ及び近傍領域の大きさの少なくとも一方を大きくすることによって、被写体の移動等によって撮像画像における第1画像の占める割合が変化した場合であっても、精度よく第1輪郭、第2輪郭、第1特徴、及び第2特徴の各々を抽出することができる。   The larger the proportion of the first image in the captured image, the larger the ratio of the first image in the captured image due to movement of the subject or the like by increasing at least one of the filter size and the size of the neighboring region. However, each of the first contour, the second contour, the first feature, and the second feature can be extracted with high accuracy.

(実施の形態2)
本実施の形態では、撮像時間の異なる複数の第1画像を取得し、被写体に動き有りと判断したときに、連続する第1画像間における第1特徴のずれ量に応じて、透過度を更に調整する。
(Embodiment 2)
In the present embodiment, when a plurality of first images having different imaging times are acquired and it is determined that there is a motion in the subject, the transparency is further increased according to the shift amount of the first feature between successive first images. adjust.

図8は、本実施の形態の画像処理装置10Bの機能的構成を示すブロック図である。画像処理装置10Bは、記憶部12(記憶手段)、撮像部14B(撮像手段)、選択部16(選択手段)、第1算出部18(第1算出手段)、検出部19B(検出手段)、抽出部20(抽出手段)、第2算出部22(第2算出手段)、決定部24B(決定手段)、生成部26B(生成手段)、及び提示部28(提示手段)を備える。   FIG. 8 is a block diagram showing a functional configuration of the image processing apparatus 10B of the present embodiment. The image processing apparatus 10B includes a storage unit 12 (storage unit), an imaging unit 14B (imaging unit), a selection unit 16 (selection unit), a first calculation unit 18 (first calculation unit), a detection unit 19B (detection unit), An extraction unit 20 (extraction unit), a second calculation unit 22 (second calculation unit), a determination unit 24B (determination unit), a generation unit 26B (generation unit), and a presentation unit 28 (presentation unit) are provided.

なお、実施の形態1における画像処理装置10と同じ機能の部分には同じ符号を付与して詳細な説明を省略する。画像処理装置10Bでは、撮像部14B、検出部19B、決定部24B、及び生成部26Bを備えた点が、実施の形態1と異なる。   In addition, the same code | symbol is provided to the part of the same function as the image processing apparatus 10 in Embodiment 1, and detailed description is abbreviate | omitted. The image processing apparatus 10B is different from the first embodiment in that the imaging unit 14B, the detection unit 19B, the determination unit 24B, and the generation unit 26B are provided.

撮像部14Bは、衣服を試着する対象の被写体を撮像し、撮像時間の異なる複数の第1画像を得る。なお、この複数の第1画像は、撮像部14Bが時間に応じて撮像した複数の静止画像であってもよいし、撮像部14Bによって撮像された動画像を構成する各フレームであってもよい。   The imaging unit 14B images a subject to be tried on and obtains a plurality of first images having different imaging times. The plurality of first images may be a plurality of still images captured by the imaging unit 14B according to time, or may be each frame constituting a moving image captured by the imaging unit 14B. .

撮像部14Bは、得られた複数の第1画像を、撮像によって第1画像を取得する毎に、順次、第1算出部18、抽出部20、検出部19B、及び生成部26Bへ出力する。   The imaging unit 14B sequentially outputs the obtained first images to the first calculation unit 18, the extraction unit 20, the detection unit 19B, and the generation unit 26B every time the first image is acquired by imaging.

検出部19Bは、撮像部14Bから順次受け付ける第1画像から、前回の撮像時から被写体に動きがあったことを検出する。この被写体に動きがあったことの検出は、以下の方法により行う。具体的には、検出部19Bは、時系列的に連続する第1画像の各々について、実施の形態1における抽出部20と同様にして、第1画像の第1輪郭から第1特徴を算出する。そして、検出部19Bは、さらに、時系列的に連続する第1画像の第1特徴間のずれを示す第2ずれ量を算出する。そして、この第2ずれ量が、被写体に動きがあったことを示す予め定めた値以上であるときに、検出部19Bは、被写体に動きがあったと検出する。   The detection unit 19B detects from the first image sequentially received from the imaging unit 14B that the subject has moved since the previous imaging. The detection of the movement of the subject is performed by the following method. Specifically, the detection unit 19B calculates the first feature from the first contour of the first image for each of the first images that are continuous in time series in the same manner as the extraction unit 20 in the first embodiment. . Then, the detection unit 19B further calculates a second shift amount indicating a shift between the first features of the first image that is continuous in time series. When the second shift amount is equal to or greater than a predetermined value indicating that the subject has moved, the detection unit 19B detects that the subject has moved.

そして、検出部19Bは、被写体に動きがあったと検出すると、算出した第2ずれ量を決定部24Bへ送信する。また、検出部19Bは、被写体に動きがあったことを示す信号と、動きがあったことを検出された最新の第1画像(第2ずれ量の算出に用いた最新の第1画像)を生成部26Bへ出力する。   Then, when detecting that the subject has moved, the detection unit 19B transmits the calculated second shift amount to the determination unit 24B. Further, the detection unit 19B obtains a signal indicating that the subject has moved and the latest first image (the latest first image used for calculating the second shift amount) from which the movement has been detected. It outputs to the production | generation part 26B.

決定部24Bでは、実施の形態1の決定部24と同様の処理を行うと共に、さらに、第2ずれ量が大きいほど高い透過度を決定する。具体的には、決定部24Bでは、第2ずれ量が大きいほど高い透過度を算出する計算式または第2ずれ量と透過度を定めたテーブルを予め記憶する。そして、決定部24Bは、第2ずれ量を該計算式に代入することによって透過度を算出、または該第2ずれ量に対応する透過度を読み取ることによって透過度を決定する。そして、決定した透過度を、生成部26Bへ出力する。   The determination unit 24B performs the same process as the determination unit 24 of the first embodiment, and further determines a higher transmittance as the second deviation amount is larger. Specifically, the determination unit 24B stores in advance a calculation formula for calculating higher transparency as the second deviation amount is larger, or a table that defines the second deviation amount and the transparency. Then, the determining unit 24B calculates the transparency by substituting the second deviation amount into the calculation formula, or determines the transparency by reading the transparency corresponding to the second deviation amount. Then, the determined transparency is output to the generation unit 26B.

生成部26Bは、実施の形態1の生成部26と同様の処理を行う。また、生成部26Bは、検出部19Bから第2ずれ量を受け付けた場合には、選択部16から受け付けた第2画像情報の透過度を、決定部24Bから受け付けた透過度に変更する。そして、生成部26Bは、変更した透過度の第2画像情報の第2画像を、動きがあったことを検出された最新の第1画像(第2ずれ量の算出に用いた最新の第1画像)に合成し、合成画像を生成する。そして、生成した合成画像を、提示部28へ出力する。   The generation unit 26B performs the same process as the generation unit 26 of the first embodiment. In addition, when the second shift amount is received from the detection unit 19B, the generation unit 26B changes the transparency of the second image information received from the selection unit 16 to the transparency received from the determination unit 24B. Then, the generation unit 26B uses the second image of the second image information with the changed transparency as the latest first image (the latest first image used for calculating the second shift amount) that is detected to have moved. Image) to generate a composite image. Then, the generated composite image is output to the presentation unit 28.

次に、本実施の形態の画像処理装置10Bで実行する画像処理を説明する。   Next, image processing executed by the image processing apparatus 10B according to the present embodiment will be described.

画像処理装置10Bでは、実施の形態1における画像処理と同様の処理を行う(図5参照)。そしてさらに、図9に示す割り込み処理を所定時間毎に実行する。図9は、画像処理装置10Bで実行する割り込み処理の手順を示すフローチャートである。   The image processing apparatus 10B performs the same process as the image process in the first embodiment (see FIG. 5). Further, the interruption process shown in FIG. 9 is executed at predetermined time intervals. FIG. 9 is a flowchart illustrating a procedure of interrupt processing executed by the image processing apparatus 10B.

検出部19Bが、被写体に動きが有ったか否かを判断する(ステップS200)。被写体に動きがあったことを検出しなかった場合には(ステップS200:No)、本ルーチンを終了する。一方、検出部19Bが、被写体に動きがあったことを検出すると(ステップS200:Yes)、検出部19Bは、動き有りと検出した、時系列的に連続する第1画像の第1特徴間のずれを示す第2ずれ量を決定部24Bへ出力する(ステップS204)。   The detection unit 19B determines whether the subject has moved (step S200). If it is not detected that the subject has moved (step S200: No), this routine ends. On the other hand, when the detection unit 19B detects that the subject has moved (step S200: Yes), the detection unit 19B detects the presence of movement between the first features of the first images that are continuous in time series. The second shift amount indicating the shift is output to the determination unit 24B (step S204).

次に、決定部24Bが、第2ずれ量が大きいほど高い透過度を決定する(ステップS206)。そして、生成部26Bが、検出部19Bから第2ずれ量を受け付けると、選択部16から受け付けた第2画像情報の透過度を、決定部24Bから受け付けた透過度に変更する。そして、生成部26Bは、変更した透過度の第2画像情報の第2画像を、動きがあったことを検出された最新の第1画像(第2ずれ量の算出に用いた最新の第1画像)に合成し、合成画像を生成する(ステップS208)。   Next, the determination unit 24B determines a higher transmittance as the second deviation amount is larger (step S206). When the generation unit 26B receives the second shift amount from the detection unit 19B, the generation unit 26B changes the transparency of the second image information received from the selection unit 16 to the transparency received from the determination unit 24B. Then, the generation unit 26B uses the second image of the second image information with the changed transparency as the latest first image (the latest first image used for calculating the second shift amount) that is detected to have moved. Image) to generate a composite image (step S208).

提示部28は、ステップS208で生成された合成画像を提示する(ステップS210)。   The presentation unit 28 presents the composite image generated in step S208 (step S210).

図10には、本実施の形態の画像処理装置10Bにおける合成画像の一例を示した。   FIG. 10 shows an example of a composite image in the image processing apparatus 10B of the present embodiment.

例えば、図10(A)に示すように、撮像部14Bで最初に撮像した第1画像が、被写体を正面方向から撮影した第1画像62Aであり、選択部16が選択した第2画像情報が図10(A)に示すように第2画像を正面方向から撮影した第2画像62Bであったとする。そして、第2算出部22の算出した第1ずれ量が、透過度「0」(透過度の最小値)に対応する値であったとする。なお、撮像部14Bによる撮像によって得られた第1画像の透過度は、透過度「0」であったとする。この場合には、画像処理装置10Bは、上記画像処理を実行することによって、例えば、透過度「0」の第1画像上に、透過度「0」の第2画像を重ねた合成画像62を生成し、提示部28に提示する(図10(A)参照)。   For example, as shown in FIG. 10A, the first image first captured by the imaging unit 14B is the first image 62A obtained by capturing the subject from the front direction, and the second image information selected by the selection unit 16 is As shown in FIG. 10A, it is assumed that the second image 62B is obtained by photographing the second image from the front direction. Then, it is assumed that the first deviation amount calculated by the second calculation unit 22 is a value corresponding to the transparency “0” (the minimum value of the transparency). It is assumed that the transparency of the first image obtained by imaging by the imaging unit 14B is the transparency “0”. In this case, the image processing apparatus 10B executes the above-described image processing, for example, a composite image 62 in which the second image with the transparency “0” is superimposed on the first image with the transparency “0”. It produces | generates and shows to the presentation part 28 (refer FIG. 10 (A)).

そして、検出部19Bによって被写体に動きがあったことが検出されると、時系列的に連続する第1画像62A(図10(A)参照)と第1画像62D(図10(B)参照)とから算出した第2ずれ量が大きいほど、高い透過度を決定する。例えば、被写体が正面を向いた状態(第1画像62A)から側面を向いた状態(第1画像62D)に瞬時に動いたとする。そして、この第2ずれ量が、透過度「1」(透過度の最大値)に対応する値であったとする。この場合には、画像処理装置10Bは、上記図9に示す割り込み処理を実行することによって、透過度「0」の第1画像62D上に、透過度「1」の第2画像62Cを重ねた合成画像68を生成し、提示部28に提示する(図10(B)参照)。このため、図10(B)に示すように、合成画像68には、第2画像62Cは提示されず、第1画像62Dが提示された状態となる。   When the detection unit 19B detects that the subject has moved, the first image 62A (see FIG. 10A) and the first image 62D (see FIG. 10B) that are continuous in time series. The higher the second deviation amount calculated from the above, the higher the transmittance. For example, it is assumed that the subject instantaneously moves from a state facing the front (first image 62A) to a state facing the side (first image 62D). Then, it is assumed that the second shift amount is a value corresponding to the transparency “1” (the maximum value of the transparency). In this case, the image processing apparatus 10B performs the interrupt process shown in FIG. 9 to superimpose the second image 62C with the transparency “1” on the first image 62D with the transparency “0”. A composite image 68 is generated and presented to the presentation unit 28 (see FIG. 10B). Therefore, as shown in FIG. 10B, the second image 62C is not presented in the composite image 68, and the first image 62D is presented.

以上説明したように、本実施の形態の画像処理装置10Bでは、撮像時間の異なる複数の第1画像を取得し、被写体に動き有りと判断したときに、連続する第1画像間における第1特徴の第2ずれ量に応じて、第2画像情報の透過度を更に調整する。   As described above, in the image processing apparatus 10B according to the present embodiment, when a plurality of first images having different imaging times are acquired and it is determined that there is a motion in the subject, the first feature between successive first images is obtained. The transparency of the second image information is further adjusted according to the second deviation amount.

従って、実施の形態1における効果に加えてさらに、自然な見え方の合成画像を提示することができる。   Therefore, in addition to the effects of the first embodiment, a composite image that looks natural can be presented.

(実施の形態3)
本実施の形態では、第2画像情報を作成すると共に第2特徴を作成する作成部を更に備えた場合を説明する。
(Embodiment 3)
In the present embodiment, a case will be described in which a second image information is created and a creation unit for creating a second feature is further provided.

図11は、本実施の形態の画像処理装置10Cの機能的構成を示すブロック図である。画像処理装置10Cは、記憶部12(記憶手段)、撮像部14(撮像手段)、選択部16(選択手段)、第1算出部18(第1算出手段)、抽出部20C(抽出手段)、第2算出部22(第2算出手段)、決定部24(決定手段)、生成部26(生成手段)、及び提示部28(提示手段)を備える。そして、更に、画像処理装置10Cは、撮像部11、及び作成部13を備える。   FIG. 11 is a block diagram illustrating a functional configuration of the image processing apparatus 10C according to the present embodiment. The image processing apparatus 10C includes a storage unit 12 (storage unit), an imaging unit 14 (imaging unit), a selection unit 16 (selection unit), a first calculation unit 18 (first calculation unit), an extraction unit 20C (extraction unit), A second calculation unit 22 (second calculation unit), a determination unit 24 (determination unit), a generation unit 26 (generation unit), and a presentation unit 28 (presentation unit) are provided. Further, the image processing apparatus 10 </ b> C includes an imaging unit 11 and a creation unit 13.

なお、実施の形態1における画像処理装置10と同じ機能の部分には同じ符号を付与して詳細な説明を省略する。画像処理装置10Cでは、実施の形態1の画像処理装置10(図1参照)の構成に加えて更に、撮像部11及び作成部13を備えた点が、実施の形態1と異なる。また、画像処理装置10Cでは、抽出部20に代えて抽出部20Cを備えた点が、画像処理装置10とは異なる。   In addition, the same code | symbol is provided to the part of the same function as the image processing apparatus 10 in Embodiment 1, and detailed description is abbreviate | omitted. The image processing apparatus 10 </ b> C is different from the first embodiment in that in addition to the configuration of the image processing apparatus 10 (see FIG. 1) of the first embodiment, the image processing apparatus 10 </ b> C further includes an imaging unit 11 and a creation unit 13. The image processing apparatus 10 </ b> C is different from the image processing apparatus 10 in that an extraction unit 20 </ b> C is provided instead of the extraction unit 20.

撮像部11は、衣服を撮像し、第2画像を含む画像情報を取得する。撮像部11は、取得した画像情報を作成部13へ出力する。   The imaging unit 11 captures clothes and acquires image information including the second image. The imaging unit 11 outputs the acquired image information to the creation unit 13.

撮像部11としては、公知のデジタルカメラ、デジタルビデオカメラ等が挙げられる。なお、本実施の形態では、衣服を撮像する撮像部11と、被写体を撮像する撮像部14と、を別体として設けた構成である場合を説明するが、これらの撮像部を一体的に設けた構成としてもよい。すなわち、撮像部14で衣服を更に撮像し、第2画像を含む画像情報を作成部13へ出力してもよい。   Examples of the imaging unit 11 include known digital cameras and digital video cameras. In the present embodiment, a case is described in which the imaging unit 11 that captures clothes and the imaging unit 14 that captures a subject are provided separately. However, these imaging units are provided integrally. It is good also as a structure. In other words, the imaging unit 14 may further capture clothing and output image information including the second image to the creation unit 13.

作成部13は、撮像部11から受け付けた画像情報の画像に含まれる第2画像を抽出し、第2画像の第2画像情報を生成する。また、作成部13は、第2画像の第2輪郭を抽出し、第2輪郭から第2特徴を抽出する。この第2輪郭の抽出及び第2特徴の抽出は、実施の形態1で説明した抽出部20と同様にして行なう。また、作成部13は、第1算出部18と同様にして、第2画像情報から姿勢情報を算出する。   The creation unit 13 extracts a second image included in the image of the image information received from the imaging unit 11, and generates second image information of the second image. In addition, the creation unit 13 extracts the second contour of the second image, and extracts the second feature from the second contour. The extraction of the second contour and the extraction of the second feature are performed in the same manner as the extraction unit 20 described in the first embodiment. In addition, the creation unit 13 calculates posture information from the second image information in the same manner as the first calculation unit 18.

作成部13は、第2画像情報と、第2特徴を含む衣服情報と、姿勢情報と、を、衣服番号に対応づけて記憶部12のテーブルに格納する(図2も参照)。   The creation unit 13 stores the second image information, the clothing information including the second feature, and the posture information in the table of the storage unit 12 in association with the clothing number (see also FIG. 2).

このため、記憶部12は、衣服番号と、姿勢情報と、第2画像情報と、衣服情報と、を対応づけて格納したテーブルを記憶する。そして、この衣服情報として、実施の形態1で説明した衣服名、色、サイズ、素材、値段等の情報に加えて、更に、第2特徴を格納する。   For this reason, the memory | storage part 12 memorize | stores the table which matched and stored clothing number, attitude | position information, 2nd image information, and clothing information. Then, in addition to the information such as the clothing name, color, size, material, and price described in the first embodiment, the second feature is stored as the clothing information.

ここで、衣服が、被写体に着用されたときに被写体の肩部の全体を覆わない形状であったとする。すなわち、衣服が、被写体の肩部の一部を覆う形状であったとする。この場合には、撮像部11は、衣服の試着対象の被写体、または被写体を模した形状のマネキン等の人形に試着された状態の衣服を撮像することが好ましい。この場合、作成部13では、撮像部11から受け付けた画像情報の画像に含まれる第2画像及び該被写体または人形を示す画像(第1画像と称する)を抽出し、該第2画像及び該第1画像から、第2輪郭を抽出し、第2輪郭から第2特徴を抽出する。   Here, it is assumed that the clothes have a shape that does not cover the entire shoulder portion of the subject when worn on the subject. That is, it is assumed that the clothes have a shape that covers a part of the shoulder of the subject. In this case, it is preferable that the imaging unit 11 captures an image of a garment in a state where the garment is being tried on by a doll such as a subject to be tried on or a mannequin having a shape imitating the subject. In this case, the creation unit 13 extracts the second image and the image (referred to as the first image) indicating the subject or the doll included in the image of the image information received from the imaging unit 11, and extracts the second image and the second image. A second contour is extracted from one image, and a second feature is extracted from the second contour.

抽出部20Cは、実施の形態1で説明した抽出部20の処理と同様の処理を行う。なお、抽出部20Cでは、選択部16で選択された第2画像情報に対応する第2特徴を記憶部12から読み取ることによって、第2画像情報の第2特徴の抽出を行う点が、抽出部20と異なる。   The extraction unit 20C performs a process similar to the process of the extraction unit 20 described in the first embodiment. Note that the extraction unit 20C extracts the second feature of the second image information by reading the second feature corresponding to the second image information selected by the selection unit 16 from the storage unit 12. Different from 20.

次に、本実施の形態の画像処理装置10Cで実行する、衣服情報生成処理を説明する。   Next, clothing information generation processing executed by the image processing apparatus 10C according to the present embodiment will be described.

画像処理装置10Cでは、実施の形態1における画像処理と同様の処理を行う(図5参照)。そして、この画像処理を実行する前、または該画像処理中の割り込み処理として、図12に示す衣服情報生成処理を実行する。   The image processing apparatus 10C performs the same processing as the image processing in the first embodiment (see FIG. 5). Then, before executing this image processing or as an interrupt processing during the image processing, the clothing information generation processing shown in FIG. 12 is executed.

図12は、画像処理装置10Cで実行する衣服情報生成処理の手順を示すフローチャートである。   FIG. 12 is a flowchart illustrating a procedure of clothing information generation processing executed by the image processing apparatus 10C.

撮像部11が、衣服を撮像し、第2画像を含む画像情報を取得する(ステップS300、ステップS302)。次に、作成部13が、衣服情報を生成すると共に、姿勢情報を生成する(ステップS304)。次いで、作成部13は、第2画像情報と、第2特徴を含む衣服情報と、姿勢情報と、を、衣服番号に対応づけて記憶部12のテーブルに格納する(ステップS306)。   The imaging unit 11 captures clothes and acquires image information including the second image (steps S300 and S302). Next, the creation unit 13 generates clothes information and posture information (step S304). Next, the creation unit 13 stores the second image information, the clothing information including the second feature, and the posture information in the table of the storage unit 12 in association with the clothing number (step S306).

以上説明したように、本実施の形態の画像処理装置10Cでは、第2画像情報を作成すると共に第2特徴を作成する作成部13を備える。このため、効率良く画像処理を行うことができる。   As described above, the image processing apparatus 10 </ b> C according to the present embodiment includes the creation unit 13 that creates the second feature while creating the second image information. For this reason, image processing can be performed efficiently.

従って、実施の形態1における効果に加えてさらに、自然な見え方の合成画像を提示することができる。   Therefore, in addition to the effects of the first embodiment, a composite image that looks natural can be presented.

また、本実施の形態の画像処理装置10Cの作成部13では、上述のように、被写体、または被写体を模した形状の人形に試着された状態の衣服の撮像によって得られた画像から、第2画像及び該被写体または人形を示す第1画像を抽出する。そして、作成部13では、該第2画像及び該第1画像から第2輪郭を抽出し、第2輪郭から第2特徴を抽出する。   Further, as described above, the creation unit 13 of the image processing apparatus 10C according to the present embodiment uses the second image from the image obtained by imaging the clothing in a state of being tried on a subject or a doll shaped like the subject. A first image showing the image and the subject or doll is extracted. Then, the creation unit 13 extracts a second contour from the second image and the first image, and extracts a second feature from the second contour.

このため、試着対象の第2画像が、図13(A)に示すように、肩部の全体を覆わない形状の第2画像70である場合であっても、図13(B)に示すように、第2画像70及び被写体を示す第1画像73から、肩部72を含む第1特徴を抽出することができる。このため、第1のずれ量の算出時に誤差が生じることを抑制することができる。   Therefore, even if the second image to be tried on is a second image 70 having a shape that does not cover the entire shoulder as shown in FIG. 13A, as shown in FIG. 13B. In addition, the first feature including the shoulder 72 can be extracted from the second image 70 and the first image 73 showing the subject. For this reason, it can suppress that an error arises at the time of calculation of the 1st gap amount.

なお、画像処理装置10Cでは、作成部13が第2特徴も生成する場合を説明したが、作成部13では第2画像情報及び特徴情報を作成し、記憶部12に記憶してもよい。そして、さらに、作成部13は、第1画像の第1画像情報を記憶部12に記憶してもよい。この場合には、抽出部20Cでは、選択部16で選択された第2画像情報及び第1画像情報から、抽出部20と同様にして第2特徴を抽出する。   In the image processing apparatus 10 </ b> C, the case where the creation unit 13 also generates the second feature has been described. However, the creation unit 13 may create the second image information and the feature information and store them in the storage unit 12. Further, the creation unit 13 may store the first image information of the first image in the storage unit 12. In this case, the extraction unit 20C extracts the second feature from the second image information and the first image information selected by the selection unit 16 in the same manner as the extraction unit 20.

(実施の形態4)
本実施の形態では、被写体を映す対象の鏡のアスペクト比に応じて第2画像及び第1画像の少なくとも一方のアスペクト比を調整する。
(Embodiment 4)
In the present embodiment, the aspect ratio of at least one of the second image and the first image is adjusted in accordance with the aspect ratio of the mirror that is the target for projecting the subject.

図14は、本実施の形態の画像処理装置10Dの機能的構成を示すブロック図である。画像処理装置10Dは、記憶部12(記憶手段)、撮像部14(撮像手段)、選択部16(選択手段)、第1算出部18(第1算出手段)、調整部21D(調整手段)、抽出部20(抽出手段)、第2算出部22(第2算出手段)、決定部24(決定手段)、生成部26D(生成手段)、及び提示部28(提示手段)を備える。   FIG. 14 is a block diagram showing a functional configuration of the image processing apparatus 10D of the present embodiment. The image processing apparatus 10D includes a storage unit 12 (storage unit), an imaging unit 14 (imaging unit), a selection unit 16 (selection unit), a first calculation unit 18 (first calculation unit), an adjustment unit 21D (adjustment unit), An extraction unit 20 (extraction unit), a second calculation unit 22 (second calculation unit), a determination unit 24 (determination unit), a generation unit 26D (generation unit), and a presentation unit 28 (presentation unit) are provided.

なお、実施の形態1における画像処理装置10と同じ機能の部分には同じ符号を付与して詳細な説明を省略する。画像処理装置10Dでは、調整部21Dを更に備え、生成部26に代えて生成部26Dを備えた点が、実施の形態1と異なる。   In addition, the same code | symbol is provided to the part of the same function as the image processing apparatus 10 in Embodiment 1, and detailed description is abbreviate | omitted. The image processing apparatus 10 </ b> D is different from the first embodiment in that the image processing apparatus 10 </ b> D further includes an adjustment unit 21 </ b> D and includes a generation unit 26 </ b> D instead of the generation unit 26.

調整部21Dは、被写体を映す対象の鏡のアスペクト比を予め格納する。また、調整部21Dは、撮像部14から受け付けた第1画像のアスペクト比、及び選択部16から受け付けた第2画像のアスペクト比の少なくとも一方を、鏡のアスペクト比に調整する。   The adjustment unit 21D stores in advance the aspect ratio of the target mirror that reflects the subject. Further, the adjustment unit 21D adjusts at least one of the aspect ratio of the first image received from the imaging unit 14 and the aspect ratio of the second image received from the selection unit 16 to the aspect ratio of the mirror.

なお、鏡のアスペクト比とは、鏡の縦方向(垂直方向)の最大長と、鏡の横方向(水平方向)の最大長と、の比を示す。また、第1画像のアスペクト比とは、第1画像における被写体の縦方向(重力方向)の最大長と、第1画像における被写体の横方向(水平方向)の最大長と、の比を示す。また、第2画像のアスペクト比とは、第2画像における衣服の縦方向の最大長と、第2画像における衣服の横方向の最大長と、の比を示す。なお、第2画像における衣服の縦方向とは、被写体に試着された状態の衣服の垂直方向(重力方向)と一致する。また、第2画像における衣服の横方向とは、被写体に試着された状態の衣服の水平方向と一致する。   The mirror aspect ratio indicates the ratio between the maximum length of the mirror in the vertical direction (vertical direction) and the maximum length of the mirror in the horizontal direction (horizontal direction). The aspect ratio of the first image is a ratio between the maximum length of the subject in the vertical direction (gravity direction) in the first image and the maximum length of the subject in the horizontal direction (horizontal direction) in the first image. Further, the aspect ratio of the second image indicates a ratio between the maximum length in the vertical direction of the clothes in the second image and the maximum length in the horizontal direction of the clothes in the second image. In addition, the vertical direction of the clothes in the second image matches the vertical direction (the direction of gravity) of the clothes in a state of being tried on by the subject. In addition, the lateral direction of the clothes in the second image matches the horizontal direction of the clothes that are tried on the subject.

なお、画像処理装置10Dは、図示を省略する操作部を設けた構成としてもよい。なお、操作部としては、各種情報を入力する公知の入力装置が挙げられ、例えば、キーボードやタッチパネル等が挙げられる。そして、ユーザによる操作部の操作指示によって、該操作部から調整部21Dに、第1画像及び第2画像のアスペクト比の調整の有無、及びアスペクト比を示す情報が出力されるようにしてもよい。   Note that the image processing apparatus 10D may be configured to include an operation unit (not shown). In addition, as an operation part, the well-known input device which inputs various information is mentioned, For example, a keyboard, a touch panel, etc. are mentioned. Then, in accordance with an operation instruction from the operation unit by the user, information indicating the presence / absence of adjustment of the aspect ratio of the first image and the second image and the aspect ratio may be output from the operation unit to the adjustment unit 21D. .

そして、調整部21Dでは、ユーザによる該操作部の操作によってアスペクト比の調整が指示されたときに、操作部から受け付けたアスペクト比となるようにアスペクト比の調整を行ってもよい。   Then, the adjustment unit 21D may adjust the aspect ratio so that the aspect ratio received from the operation unit is obtained when the adjustment of the aspect ratio is instructed by the operation of the operation unit by the user.

調整部21Dは、アスペクト比を調整した第1画像及び第2画像を抽出部20へ出力する。   The adjustment unit 21 </ b> D outputs the first image and the second image with the adjusted aspect ratio to the extraction unit 20.

生成部26Dは、調整部21Dでアスペクト比を調整された第1画像と、調整部21Dでアスペクト比を調整され、決定部24で決定した透過度に変更した第2画像と、を合成した合成画像を生成し、提示部28へ出力する。なお、生成部26Dによる合成画像の生成は、実施の形態1で説明した生成部26と同様にして行う。   The generation unit 26D combines the first image whose aspect ratio is adjusted by the adjustment unit 21D and the second image whose aspect ratio is adjusted by the adjustment unit 21D and changed to the transparency determined by the determination unit 24. An image is generated and output to the presentation unit 28. The generation of the composite image by the generation unit 26D is performed in the same manner as the generation unit 26 described in the first embodiment.

次に、本実施の形態の画像処理装置10Dで実行する画像処理を説明する。   Next, image processing executed by the image processing apparatus 10D according to the present embodiment will be described.

図15は、本実施の形態の画像処理装置10Dで実行する画像処理の手順を示すフローチャートである。なお、図15では、調整部21Dには、予め鏡のアスペクト比を示す情報、及び第1画像と第2画像の双方のアスペクト比の調整の実行を示す情報が記憶されているものとして説明する。なお、これらの情報は、上述したように、図示を省略する操作部のユーザによる操作指示によって変更可能である。   FIG. 15 is a flowchart showing a procedure of image processing executed by the image processing apparatus 10D of the present embodiment. In FIG. 15, it is assumed that the adjustment unit 21D stores in advance information indicating the mirror aspect ratio and information indicating execution of adjustment of the aspect ratio of both the first image and the second image. . As described above, these pieces of information can be changed by an operation instruction from a user of an operation unit (not shown).

まず、撮像部14が被写体の撮像によって第1画像を取得する(ステップS400)。次いで、第1算出部18が、撮像部14の撮像によって得られた第1画像の第1画像情報から、被写体の姿勢情報を算出する(ステップS402)。   First, the imaging unit 14 acquires a first image by imaging a subject (step S400). Next, the first calculation unit 18 calculates the posture information of the subject from the first image information of the first image obtained by imaging by the imaging unit 14 (step S402).

次に、調整部21Dが、ステップS400で取得した第1画像のアスペクト比を、被写体を映す対象の鏡のアスペクト比に調整する(ステップS403)。   Next, the adjusting unit 21D adjusts the aspect ratio of the first image acquired in step S400 to the aspect ratio of the mirror that is the object to be projected (step S403).

次に、抽出部20が、調整部21DによるステップS403の処理によってアスペクト比を調整された第1画像情報の第1輪郭を抽出し、第1輪郭から第1特徴を抽出する(ステップS404、ステップS406)。   Next, the extraction unit 20 extracts the first contour of the first image information whose aspect ratio has been adjusted by the process of step S403 by the adjustment unit 21D, and extracts the first feature from the first contour (step S404, step S404). S406).

次に、選択部16が、上記ステップS402で算出された姿勢情報に対応する1の第2画像情報を記憶部12から選択する(ステップS408)。   Next, the selection unit 16 selects one second image information corresponding to the posture information calculated in step S402 from the storage unit 12 (step S408).

次に、調整部21Dが、ステップS408で選択された第2画像情報のアスペクト比を、被写体を映す対象の鏡のアスペクト比に調整する(ステップS409)。   Next, the adjustment unit 21D adjusts the aspect ratio of the second image information selected in step S408 to the aspect ratio of the mirror that is the target for projecting the subject (step S409).

次に、抽出部20が、アスペクト比を調整された第2画像情報の第2輪郭を抽出し、第2輪郭から第2特徴を抽出する(ステップS410、ステップS412)。   Next, the extraction unit 20 extracts the second contour of the second image information whose aspect ratio has been adjusted, and extracts the second feature from the second contour (steps S410 and S412).

次に、第2算出部22は、ステップS406で抽出された第1特徴、及びステップS412で抽出された第2特徴の合わせ込みを行い、合わせ込み(第1特徴及び第2特徴の拡大、縮小、位置変更)によって算出したずれ量の内の最小値を算出する(ステップS414、ステップS416)。   Next, the second calculation unit 22 performs alignment of the first feature extracted in step S406 and the second feature extracted in step S412 and performs alignment (expansion / reduction of the first feature and the second feature). The minimum value of the deviation amounts calculated by the position change) is calculated (steps S414 and S416).

次に、第2算出部22は、上記ステップS410で第2輪郭の抽出に用いた第2画像情報の衣服番号と同じ衣服番号に、異なる姿勢情報に対応する、ずれ量未算出の第2画像情報が記憶部12に格納されているか否かを判断する(ステップS418)。同じ衣服番号に、異なる姿勢情報に対応する、ずれ量未算出の第2画像情報が格納されている場合には、第2算出部22は、肯定判断する(ステップS418:Yes)。そして、第2算出部22は、ステップS410で第2輪郭の抽出に用いた第2画像情報の衣服番号に対応する、該第2画像情報とは異なる姿勢情報に対応する1の第2画像情報を記憶部12から選択する(ステップS420)。   Next, the second calculation unit 22 uses the same clothing number as the clothing number of the second image information used for extracting the second contour in step S410, and corresponds to different posture information, and the second image for which the deviation amount has not been calculated. It is determined whether or not information is stored in the storage unit 12 (step S418). In the case where second image information corresponding to different posture information and having not been calculated is stored in the same clothing number, the second calculation unit 22 makes an affirmative determination (step S418: Yes). Then, the second calculation unit 22 corresponds to the second image information corresponding to the posture information different from the second image information corresponding to the clothing number of the second image information used for the extraction of the second contour in step S410. Is selected from the storage unit 12 (step S420).

次に、調整部21Dが、ステップS420で選択された第2画像情報のアスペクト比を、被写体を映す対象の鏡のアスペクト比に調整する(ステップS421)。そして、上記ステップS410へ戻る。   Next, the adjustment unit 21D adjusts the aspect ratio of the second image information selected in step S420 to the aspect ratio of the mirror that is the target for projecting the subject (step S421). Then, the process returns to step S410.

一方、ステップS418で否定判断すると(ステップS418:No)、第2算出部22は、上記ステップS410〜ステップS421の処理で算出したずれ量の内の最小値を、第1ずれ量として算出する(ステップS422)。   On the other hand, if a negative determination is made in step S418 (step S418: No), the second calculation unit 22 calculates the minimum value of the deviation amounts calculated in the processes of steps S410 to S421 as the first deviation amount ( Step S422).

次に、決定部24が、ステップS422で算出された第1ずれ量に基づいて、第1ずれ量が大きいほど高い透過度を決定する(ステップS424)。   Next, the determination unit 24 determines a higher transmittance as the first deviation amount is larger based on the first deviation amount calculated in Step S422 (Step S424).

次に、生成部26Dが、上記ステップS422の処理によって算出した第1ずれ量の算出時に用いた第2特徴に対応する、アスペクト比調整後の第2画像情報の透過度を、ステップS424で決定した透過度に変更する。そして、アスペクト比及び透過度を変更した第2画像情報と、アスペクト比を調整した第1画像情報と、を合成した合成画像を生成する(ステップS426)。   Next, in step S424, the generation unit 26D determines the transparency of the second image information after the aspect ratio adjustment corresponding to the second feature used when calculating the first deviation amount calculated by the process in step S422. Change to the transparency. Then, a synthesized image is generated by synthesizing the second image information whose aspect ratio and transparency are changed and the first image information whose aspect ratio is adjusted (step S426).

次に、提示部28が、ステップS426で生成された合成画像を提示する(ステップS428)。   Next, the presentation unit 28 presents the composite image generated in step S426 (step S428).

なお、上記ステップS408〜ステップS412の処理は、上記ステップS400〜ステップ406の処理時に所定時間毎に割り込む割り込み処理として実行してもよい。   Note that the processing in steps S408 to S412 may be executed as interrupt processing that interrupts at predetermined intervals during the processing in steps S400 to S406.

上記ステップS400〜ステップS428に示す画像処理を行うことによって、画像処理装置10Dは、例えば、図16に示す合成画像を生成し、提示部28に提示する。   By performing the image processing shown in steps S400 to S428, the image processing apparatus 10D generates, for example, a composite image shown in FIG.

図16には、本実施の形態の画像処理装置10Dにおける画像合成の一例を示した。アスペクト比の調整を行わない場合には、例えば、図16(A)に示すように、被写体74のアスペクト比(Y2:X2)と、被写体74を映す鏡上に積層された提示部28としての表示部(鏡)のアスペクト比(Y1:X1)と、が異なる状態の合成画像78が提示される。   FIG. 16 shows an example of image composition in the image processing apparatus 10D of the present embodiment. When the aspect ratio is not adjusted, for example, as shown in FIG. 16A, the aspect ratio (Y2: X2) of the subject 74 and the presentation unit 28 stacked on the mirror that reflects the subject 74 are used. A composite image 78 in which the aspect ratio (Y1: X1) of the display unit (mirror) is different is presented.

一方、アスペクト比の調整を行う場合には、例えば、図16(B)に示すように、被写体74のアスペクト比(Y2:X2)と、被写体74を映す鏡上に積層された提示部28としての表示部(鏡)のアスペクト比(Y1:X1)と、が同じ合成画像80が提示される。   On the other hand, when adjusting the aspect ratio, for example, as shown in FIG. 16B, the aspect ratio (Y2: X2) of the subject 74 and the presentation unit 28 stacked on the mirror that reflects the subject 74 are used. A composite image 80 having the same aspect ratio (Y1: X1) of the display unit (mirror) is presented.

従って、本実施の形態の画像処理装置10Dでは、実施の形態1における効果に加えて、更に自然な見え方の合成画像を提示することができる。   Therefore, in addition to the effects of the first embodiment, the image processing apparatus 10D of the present embodiment can present a more natural-looking composite image.

次に、本実施の形態1〜実施の形態4の画像処理装置10、画像処理装置10B、画像処理装置10C、及び画像処理装置10Dのハードウェア構成について説明する。図17は、本実施の形態の画像処理装置10のハードウェア構成例を示すブロック図である。   Next, the hardware configuration of the image processing device 10, the image processing device 10B, the image processing device 10C, and the image processing device 10D according to the first to fourth embodiments will be described. FIG. 17 is a block diagram illustrating a hardware configuration example of the image processing apparatus 10 according to the present embodiment.

実施の形態1〜実施の形態4の画像処理装置10、画像処理装置10B、画像処理装置10C、及び画像処理装置10Dは、提示部80、通信I/F部82、撮像部84、CPU(Central Processing Unit)86、ROM(Read Only Memory)88、RAM(Random Access Memory)90、及びHDD92等がバス94により相互に接続されており、通常のコンピュータを利用したハードウェア構成となっている。   The image processing device 10, the image processing device 10B, the image processing device 10C, and the image processing device 10D according to the first to fourth embodiments include a presentation unit 80, a communication I / F unit 82, an imaging unit 84, and a CPU (Central A processing unit (86), a ROM (Read Only Memory) 88, a RAM (Random Access Memory) 90, an HDD 92, and the like are connected to each other by a bus 94 and have a hardware configuration using a normal computer.

CPU86は、画像処理装置10、画像処理装置10B、画像処理装置10C、及び画像処理装置10Dの全体の処理を制御する演算装置である。RAM90は、CPU86による各種処理に必要なデータを記憶する。ROM88は、CPU86による各種処理を実現するプログラム等を記憶する。HDD92は、上述した各記憶部に格納されるデータを記憶する。通信I/F部82は、外部装置や外部端末に通信回線等を介して接続し、接続した外部装置や外部端末との間でデータを送受信するためのインタフェースである。提示部80は、上述した提示部28に相当する。撮像部84は、上述した撮像部14、撮像部11、及び撮像部14Bに相当する。   The CPU 86 is an arithmetic device that controls the overall processing of the image processing device 10, the image processing device 10B, the image processing device 10C, and the image processing device 10D. The RAM 90 stores data necessary for various processes by the CPU 86. The ROM 88 stores a program for realizing various processes by the CPU 86 and the like. The HDD 92 stores data stored in each storage unit described above. The communication I / F unit 82 is an interface for connecting to an external device or an external terminal via a communication line or the like and transmitting / receiving data to / from the connected external device or external terminal. The presentation unit 80 corresponds to the presentation unit 28 described above. The imaging unit 84 corresponds to the imaging unit 14, the imaging unit 11, and the imaging unit 14B described above.

本実施の形態1〜実施の形態4の画像処理装置10、画像処理装置10B、画像処理装置10C、及び画像処理装置10Dで実行される上記各種処理を実行するためのプログラムは、ROM88等に予め組み込んで提供される。   A program for executing the various processes executed by the image processing apparatus 10, the image processing apparatus 10B, the image processing apparatus 10C, and the image processing apparatus 10D according to the first to fourth embodiments is stored in advance in the ROM 88 or the like. Provided with built-in.

なお、本実施の形態1〜実施の形態4の画像処理装置10、画像処理装置10B、画像処理装置10C、及び画像処理装置10Dで実行されるプログラムは、これらの装置にインストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録されて提供するように構成してもよい。   The programs executed in the image processing apparatus 10, the image processing apparatus 10B, the image processing apparatus 10C, and the image processing apparatus 10D according to the first to fourth embodiments are in a format that can be installed in these apparatuses or executed. The file may be recorded in a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, or a DVD (Digital Versatile Disk).

また、本実施の形態1〜実施の形態4の画像処理装置10、画像処理装置10B、画像処理装置10C、及び画像処理装置10Dで実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また、本実施の形態1〜実施の形態4の画像処理装置10、画像処理装置10B、画像処理装置10C、及び画像処理装置10Dにおける上記各処理を実行するためのプログラムを、インターネット等のネットワーク経由で提供または配布するように構成してもよい。   In addition, the programs executed by the image processing apparatus 10, the image processing apparatus 10B, the image processing apparatus 10C, and the image processing apparatus 10D according to the first to fourth embodiments are executed on a computer connected to a network such as the Internet. And may be provided by being downloaded via a network. In addition, a program for executing each of the processes in the image processing apparatus 10, the image processing apparatus 10B, the image processing apparatus 10C, and the image processing apparatus 10D according to the first to fourth embodiments is transmitted via a network such as the Internet. It may be configured to be provided or distributed on.

本実施形態1〜実施の形態4の画像処理装置10、画像処理装置10B、画像処理装置10C、及び画像処理装置10Dで実行される上記各種処理を実行するためのプログラムは、上述した各部(選択部16、第1算出部18、抽出部20(抽出部20C)、第2算出部22、決定部24(決定部24B)、生成部26(生成部26B、生成部26D)、検出部19B、調整部21D)を含むモジュール構成となっている。実際のハードウェアとしてはCPU(プロセッサ)が上記ROM88等の記憶媒体から各プログラムを読み出して実行することにより上記各部が主記憶装置上にロードされ、選択部16、第1算出部18、抽出部20(抽出部20C)、第2算出部22、決定部24(決定部24B)、生成部26(生成部26B、生成部26D)、検出部19B、調整部21Dが主記憶装置上に生成されるようになっている。   The programs for executing the various processes executed by the image processing apparatus 10, the image processing apparatus 10B, the image processing apparatus 10C, and the image processing apparatus 10D according to the first to fourth embodiments are the above-described units (selection). Unit 16, first calculation unit 18, extraction unit 20 (extraction unit 20C), second calculation unit 22, determination unit 24 (determination unit 24B), generation unit 26 (generation unit 26B, generation unit 26D), detection unit 19B, The module configuration includes the adjustment unit 21D). As actual hardware, a CPU (processor) reads out each program from a storage medium such as the ROM 88 and executes the program, so that the respective units are loaded onto the main storage device, and the selection unit 16, the first calculation unit 18, and the extraction unit. 20 (extraction unit 20C), second calculation unit 22, determination unit 24 (determination unit 24B), generation unit 26 (generation unit 26B, generation unit 26D), detection unit 19B, and adjustment unit 21D are generated on the main storage device. It has become so.

なお、上記HDD92に格納されている各種情報、すなわち記憶部12に格納されている各種情報は、外部装置(例えばサーバ)に格納してもよい。この場合には、該外部装置とCPU86と、を、ネットワーク等を介して接続した構成とすればよい。   Various information stored in the HDD 92, that is, various information stored in the storage unit 12, may be stored in an external device (for example, a server). In this case, the external device and the CPU 86 may be connected via a network or the like.

なお、上記には、本発明のいくつかの実施の形態を説明したが、これらの実施の形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施の形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施の形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   In addition, although several embodiment of this invention was described above, these embodiment is shown as an example and is not intending limiting the range of invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

10、10B、10C、10D 画像処理装置
11、14、14B 撮像部
16 選択部
18 第1算出部
20、20C 抽出部
22 第2算出部
24、24B 決定部
26、26B、26D 生成部
19B 検出部
21D 調整部
10, 10B, 10C, 10D Image processing apparatus 11, 14, 14B Image pickup unit 16 Selection unit 18 First calculation unit 20, 20C Extraction unit 22 Second calculation unit 24, 24B Determination unit 26, 26B, 26D Generation unit 19B Detection unit 21D adjustment unit

Claims (9)

第1画像に第2画像を合成する画像処理装置であって、
前記第1画像から第1特徴を抽出し、前記第2画像から第2特徴を抽出する抽出部と、
第1領域に対応する前記第1特徴と前記第1領域に対応する前記第2特徴とのずれに応じて、前記第1領域に対応する前記第2画像の第1透過度を決定し、第2領域に対応する前記第1特徴と前記第2領域に対応する前記第2特徴とのずれに応じて、前記第2領域に対応する前記第2画像の第2透過度を決定し、前記第1透過度および前記第2透過度を用いて、前記第1画像に前記第2画像を合成する合成部と、
を備える画像処理装置。
An image processing device that combines a second image with a first image,
An extraction unit for extracting a first feature from the first image and extracting a second feature from the second image;
Determining a first transparency of the second image corresponding to the first region according to a deviation between the first feature corresponding to the first region and the second feature corresponding to the first region; A second transparency of the second image corresponding to the second region is determined according to a deviation between the first feature corresponding to the second region and the second feature corresponding to the second region; A synthesizing unit that synthesizes the second image with the first image using 1 transparency and the second transparency;
An image processing apparatus comprising:
第1画像に第2画像を合成する画像処理装置であって、
前記第1画像から第1特徴を抽出し、前記第2画像から第2特徴を抽出する抽出部と、
前記第1特徴と前記第2特徴とのずれに応じて、前記第2画像における肘部から先の部分に相当する領域の透過度を決定し、前記透過度を用いて、前記第1画像に前記第2画像を合成する合成部と、
を備える画像処理装置。
An image processing device that combines a second image with a first image,
An extraction unit for extracting a first feature from the first image and extracting a second feature from the second image;
In accordance with the difference between the first feature and the second feature, the transparency of the region corresponding to the portion from the elbow part to the tip of the second image is determined, and the transparency is used to determine the first image. A combining unit that combines the second images;
An image processing apparatus comprising:
第1画像に第2画像を合成する画像処理方法であって、
前記第1画像から第1特徴を抽出し、前記第2画像から第2特徴を抽出するステップと、
第1領域に対応する前記第1特徴と前記第1領域に対応する前記第2特徴とのずれに応じて、前記第1領域に対応する前記第2画像の第1透過度を決定し、第2領域に対応する前記第1特徴と前記第2領域に対応する前記第2特徴とのずれに応じて、前記第2領域に対応する前記第2画像の第2透過度を決定し、前記第1透過度および前記第2透過度を用いて、前記第1画像に前記第2画像を合成するステップと、
を含む画像処理方法。
An image processing method for combining a second image with a first image,
Extracting a first feature from the first image and extracting a second feature from the second image;
Determining a first transparency of the second image corresponding to the first region according to a deviation between the first feature corresponding to the first region and the second feature corresponding to the first region; A second transparency of the second image corresponding to the second region is determined according to a deviation between the first feature corresponding to the second region and the second feature corresponding to the second region; Combining the second image with the first image using 1 transparency and the second transparency;
An image processing method including:
第1画像に第2画像を合成する画像処理方法であって、
前記第1画像から第1特徴を抽出し、前記第2画像から第2特徴を抽出するステップと、
前記第1特徴と前記第2特徴とのずれに応じて、前記第2画像における肘部から先の部
分に相当する領域の透過度を決定し、前記透過度を用いて、前記第1画像に前記第2画像を合成するステップと、
を含む画像処理方法。
An image processing method for combining a second image with a first image,
Extracting a first feature from the first image and extracting a second feature from the second image;
In accordance with the difference between the first feature and the second feature, the transparency of the region corresponding to the portion from the elbow part to the tip of the second image is determined, and the transparency is used to determine the first image. Combining the second image;
An image processing method including:
被写体を含む第1画像および前記被写体を含む第3画像に、第2画像を合成する画像処理装置であって、
前記第1画像から抽出した第1特徴と前記第2画像から抽出した第2特徴とのずれに応じて決定された透過度を用いて、前記第1画像に前記第2画像を合成する合成部を備え、
前記合成部は、前記透過度を前記被写体の動きに応じて更新し、更新後の透過度を用いて、前記第3画像に前記第2画像を合成する、
画像処理装置。
An image processing device for combining a second image with a first image including a subject and a third image including the subject,
A synthesizing unit that synthesizes the second image with the first image using a transparency determined according to a deviation between the first feature extracted from the first image and the second feature extracted from the second image. With
The combining unit updates the transparency according to the movement of the subject, and combines the second image with the third image using the updated transparency;
Image processing device.
前記第1画像および前記第3画像から前記被写体の動きを検出する検出部、
を更に備る請求項5に記載の画像処理装置。
A detection unit for detecting movement of the subject from the first image and the third image;
The image processing apparatus according to claim 5, further comprising:
前記更新後の透過度は、前記第1画像から抽出した第1特徴と前記第3画像から抽出した第3特徴のずれに応じて更新されたものである請求項5または請求項6に記載の画像処理装置。 The permeability of the updated, according to claim 5 or claim 6 third those which are updated in accordance with the deviation of the features extracted from the first feature and the third image extracted from the first image Image processing device. 被写体を含む第1画像および前記被写体を含む第3画像に、第2画像を合成する画像処理方法であって、
前記第1画像から抽出した第1特徴と前記第2画像から抽出した第2特徴とのずれに応じて決定された透過度を用いて、前記第1画像に前記第2画像を合成し、前記透過度を前記被写体の動きに応じて更新し、更新後の透過度を用いて、前記第3画像に前記第2画像を合成する、
画像処理方法。
An image processing method for combining a second image with a first image including a subject and a third image including the subject,
The second image is synthesized with the first image using the transparency determined according to the deviation between the first feature extracted from the first image and the second feature extracted from the second image, and Updating the transparency according to the movement of the subject, and using the updated transparency, combining the second image with the third image;
Image processing method.
被写体を含む第1画像および前記被写体を含む第3画像に、第2画像を合成するコンピュータに実行させるための画像処理プログラムであって、
前記第1画像から抽出した第1特徴と前記第2画像から抽出した第2特徴とのずれに応じて決定された透過度を用いて、前記第1画像に前記第2画像を合成するステップを含み、
前記ステップは、前記透過度を前記被写体の動きに応じて更新し、更新後の透過度を用いて、前記第3画像に前記第2画像を合成する、
画像処理プログラム。
An image processing program for causing a computer to synthesize a second image to a first image including a subject and a third image including the subject,
Synthesizing the second image with the first image using the transparency determined according to the deviation between the first feature extracted from the first image and the second feature extracted from the second image. Including
The step updates the transparency according to the movement of the subject, and uses the updated transparency to synthesize the second image with the third image.
Image processing program.
JP2017204525A 2017-10-23 2017-10-23 Image processing apparatus, method, and program Active JP6483782B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017204525A JP6483782B2 (en) 2017-10-23 2017-10-23 Image processing apparatus, method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017204525A JP6483782B2 (en) 2017-10-23 2017-10-23 Image processing apparatus, method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015216303A Division JP2016015182A (en) 2015-11-04 2015-11-04 Image processor, method and program

Publications (2)

Publication Number Publication Date
JP2018028937A JP2018028937A (en) 2018-02-22
JP6483782B2 true JP6483782B2 (en) 2019-03-13

Family

ID=61249128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017204525A Active JP6483782B2 (en) 2017-10-23 2017-10-23 Image processing apparatus, method, and program

Country Status (1)

Country Link
JP (1) JP6483782B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4246516B2 (en) * 2003-02-14 2009-04-02 独立行政法人科学技術振興機構 Human video generation system
JP4189339B2 (en) * 2004-03-09 2008-12-03 日本電信電話株式会社 Three-dimensional model generation method, generation apparatus, program, and recording medium
JP4386006B2 (en) * 2005-06-28 2009-12-16 ソニー株式会社 Imaging apparatus and method, program, and recording medium

Also Published As

Publication number Publication date
JP2018028937A (en) 2018-02-22

Similar Documents

Publication Publication Date Title
JP5583087B2 (en) Image processing apparatus, method, and program
JP6490430B2 (en) Image processing apparatus, image processing system, image processing method, and program
JP5786463B2 (en) Image processing apparatus, image processing method, and program
JP4473754B2 (en) Virtual fitting device
JP5791812B2 (en) Clothes image processing device, clothes image display method, and program
JP5613741B2 (en) Image processing apparatus, method, and program
JP5439787B2 (en) Camera device
JP5574852B2 (en) Information processing apparatus, information processing method, system, and program
JP2012253483A (en) Image processing apparatus, image processing method, and program
JP6002058B2 (en) Image processing apparatus, method, and program
US20150269759A1 (en) Image processing apparatus, image processing system, and image processing method
JP6008025B2 (en) Image processing apparatus, image processing method, and program
JP6262105B2 (en) Image processing apparatus, image processing system, image processing method, and program
KR100915298B1 (en) A system for wearing imaginary 3d footwear and an operation method of the same
JP2014179135A (en) Image processing system, method and program
JP5876121B2 (en) Image processing apparatus, method, and program
JP6483782B2 (en) Image processing apparatus, method, and program
JP2003263632A (en) Virtual trying-on display device, virtual trying-on display method, virtual trying-on display program and computer-readable recording medium with its program recorded
JP2016015182A (en) Image processor, method and program
JP7024876B2 (en) Detection device, processing device, detection method, and processing program
JP6545847B2 (en) Image processing apparatus, image processing method and program
CN113287152A (en) Information processing apparatus, information processing method, and program
EP3438601A1 (en) Measurement device, measurement method, and computer readable recording medium
JP2019114148A (en) Image processing apparatus, image processing system, image processing method and program
JP2021178468A (en) Modeling data generation device, modeling data generation method, and modeling data generation program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181026

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181106

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190104

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: 20190115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190214

R151 Written notification of patent or utility model registration

Ref document number: 6483782

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151