JP2012160058A - Image processor, stereoscopic image printing system, image processing method and program - Google Patents

Image processor, stereoscopic image printing system, image processing method and program Download PDF

Info

Publication number
JP2012160058A
JP2012160058A JP2011019751A JP2011019751A JP2012160058A JP 2012160058 A JP2012160058 A JP 2012160058A JP 2011019751 A JP2011019751 A JP 2011019751A JP 2011019751 A JP2011019751 A JP 2011019751A JP 2012160058 A JP2012160058 A JP 2012160058A
Authority
JP
Japan
Prior art keywords
stereoscopic image
stereoscopic
subject
image data
face
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.)
Withdrawn
Application number
JP2011019751A
Other languages
Japanese (ja)
Inventor
Yasuhiro Aragai
安浩 新貝
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.)
Fujifilm Corp
Original Assignee
Fujifilm 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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2011019751A priority Critical patent/JP2012160058A/en
Publication of JP2012160058A publication Critical patent/JP2012160058A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image processor generating, using a degree of stereoscopic vision, a natural composite stereoscopic image allowing a viewer to easily stereoscopically view.SOLUTION: The image processor includes: stereoscopic image data input means for inputting stereoscopic image data; subject extracting means for extracting a subject from the stereoscopic image data; degree-of-stereoscopic-vision calculating means that calculates a degree of stereoscopic vision of the subject from a plurality of plane image data items with different viewpoints that are included in the stereoscopic image data; stereoscopic image data recording means that records the degree of the stereoscopic vision and the stereoscopic image data in association with each other; template selecting means that selects a predetermined number of stereoscopic image templates from a plurality of types of stereoscopic image templates recorded in the template recording means, based on the degree of stereoscopic vision recorded associated with the stereoscopic image data; composing means that composes the stereoscopic image data with a single stereoscopic image template selected by the user from the predetermined number of stereoscopic image templates that is selected by the template selecting means and outputs a composite stereoscopic image data constituting a composite stereoscopic image.

Description

本発明は、立体画像データに対して画像処理を行って立体画像を生成する画像処理装置、画像処理方法およびプログラムに関するものである。   The present invention relates to an image processing apparatus, an image processing method, and a program for generating a stereoscopic image by performing image processing on stereoscopic image data.

従来から、視線の異なる複数の画像を組み合わせて表示することで、視差を利用した立体視が実現されている。例えば、(1)左目用と右目用の画像に対して、それぞれ直交する直線偏光をかけて、偏光メガネを用いて立体視を行う方法、(2)左目用と右目用の画像を交互に表示して、表示手段と同期した液晶シャッターを備えたメガネを用いて立体視を行う方法、(3)左目用と右目用の画像に対して、それぞれ赤と青の光を重ねて表示し、左右に赤と青のカラーフィルタの付いたメガネを用いて立体視を行う方法が挙げられる。   Conventionally, stereoscopic viewing using parallax has been realized by combining and displaying a plurality of images with different lines of sight. For example, (1) A method of performing stereoscopic viewing using polarized glasses by applying orthogonal linearly polarized light to the left-eye and right-eye images, and (2) alternately displaying the left-eye and right-eye images. And a method of performing stereoscopic viewing using glasses equipped with a liquid crystal shutter synchronized with the display means, and (3) displaying red and blue light on the left and right eye images, respectively, And a method of performing stereoscopic viewing using glasses with red and blue color filters.

また、いわゆる裸眼立体視の方法として、例えば、複数の画像を短冊状に切り取って交互に配置し、パララックスバリア(視差バリア)、またはレンチキュラーレンズを用いて、左右の眼でそれぞれの画像を見ることで立体視を行う方法も挙げられる。   As a so-called autostereoscopic method, for example, a plurality of images are cut into strips and arranged alternately, and each image is viewed with the left and right eyes using a parallax barrier (parallax barrier) or a lenticular lens. Thus, a method of performing stereoscopic viewing is also mentioned.

ここで、本発明に関連する先行技術文献として、特許文献1〜4が挙げられる。
特許文献1には、複数の位置から複数の撮像装置によって撮影され、当該複数の位置のうちの所望の位置と所望の撮影時刻が指定されると、撮影時刻の異なる複数のフレーム画像が選択され、立体画像形成部により、所定の光学系を介して観察した場合に観察視点位置の移動に従って順次観察できるように合成され立体印刷される、立体画像形成装置が開示されている。
Here, Patent Documents 1 to 4 are listed as prior art documents related to the present invention.
In Patent Document 1, when a plurality of positions are taken by a plurality of imaging devices and a desired position and a desired shooting time are specified, a plurality of frame images having different shooting times are selected. A stereoscopic image forming apparatus is disclosed in which a stereoscopic image forming unit is combined and stereoscopically printed so that it can be observed sequentially according to the movement of the observation viewpoint position when observed through a predetermined optical system.

特許文献2には、3次元表示面または該3次元表示面の近傍に配置された実物体の位置または姿勢若しくは形状を検出する検出部と、実物体の形状と位置または姿勢とに基づいて、実物体が3次元表示面により照射された光線を遮蔽する領域である遮蔽領域を算出する遮蔽領域算出部と、遮蔽領域に対して、遮蔽領域以外の領域と異なる描画処理を行って、立体画像を描画する描画部とを備えた立体画像生成装置が開示されている。   In Patent Document 2, based on a three-dimensional display surface or a detection unit that detects the position, posture, or shape of a real object arranged in the vicinity of the three-dimensional display surface, and the shape, position, or posture of the real object, A three-dimensional image obtained by performing a drawing process different from a region other than the shielding region on the shielding region, and a shielding region calculation unit that calculates a shielding region that is a region that shields the light beam irradiated by the three-dimensional display surface of the real object A stereoscopic image generation apparatus including a drawing unit that draws the image is disclosed.

特許文献3には、撮影空間を撮影したときに撮像系により捉えられた各点の輝度値を表す輝度画像を取得する輝度画像取得手段と、各点の空間的な位置を所定の座標系で表した3次元情報を取得する3次元情報取得手段と、所定の入力装置から、座標系の軸方向ごとのオフセット値を指定する入力を受け付けて、該各オフセット値を所定のメモリに記憶し、座標系の原点をオフセット値分変位させた点をオフセット原点として設定するオフセット原点設定手段とを備え、それぞれの情報を格納する領域を有する所定フォーマットのファイルを生成するファイル生成装置が開示されている。   In Patent Document 3, luminance image acquisition means for acquiring a luminance image representing the luminance value of each point captured by the imaging system when an imaging space is imaged, and the spatial position of each point in a predetermined coordinate system. 3D information acquisition means for acquiring the represented 3D information and an input for specifying an offset value for each axial direction of the coordinate system from a predetermined input device, and storing each offset value in a predetermined memory; Disclosed is a file generation device that includes an offset origin setting unit that sets a point obtained by displacing the origin of a coordinate system by an offset value as an offset origin, and generates a file of a predetermined format having an area for storing each information. .

特許文献4には、立体強度のレベル値が大きいほど立体感の強い立体視画像が表示されることを表わす、立体視画像の立体強度を示すタグ(立体強度タグ)が画像制御情報として含まれ、立体視画像を表示させたい表示装置の指定を付属情報として管理することが可能な立体視画像処理装置が開示されている。   Patent Document 4 includes, as image control information, a tag (stereoscopic intensity tag) indicating the stereoscopic intensity of a stereoscopic image, which indicates that a stereoscopic image with a greater stereoscopic effect is displayed as the level value of the stereoscopic intensity is larger. There is disclosed a stereoscopic image processing apparatus capable of managing designation of a display device for displaying a stereoscopic image as attached information.

特開2006−165795号公報JP 2006-165595 A 特開2008−90617号公報JP 2008-90617 A 特開2008−252493号公報JP 2008-252493 A 特開2004−334833号公報JP 2004-334833 A

立体画像を印刷した立体プリント(立体写真)を得るとき、通常の平面画像のプリントのように、立体画像の被写体と立体画像テンプレートのキャラクタとを合成した合成画像を得たい場合がある。しかし、立体画像は立体度(奥行き量)を考慮する必要があり、ユーザが撮影した立体画像(ユーザ画像)の立体度とテンプレートの立体度とが大きく異なっていると、立体視しづらく、奥行き感にアンバランスが生じてしまうという問題があった。   When obtaining a three-dimensional print (stereophoto) in which a three-dimensional image is printed, there is a case where it is desired to obtain a composite image obtained by synthesizing a subject of a three-dimensional image and a character of a three-dimensional image template, like a normal flat image print. However, it is necessary to consider the stereoscopic degree (depth amount) of the stereoscopic image. If the stereoscopic degree of the stereoscopic image (user image) taken by the user and the stereoscopic degree of the template are greatly different, it is difficult to stereoscopically view the depth. There was a problem that an imbalance occurred in the feeling.

本発明の目的は、ユーザが撮影した立体画像の立体度に合わせて、合成用の立体画像テンプレートの立体度、およびテンプレート内のキャラクタの方向を変更することで、より自然で立体視しやすい立体合成画像を生成する画像処理装置、画像処理方法およびプログラムを提供することにある。   An object of the present invention is to change the stereoscopic degree of a stereoscopic image template for composition and the direction of a character in the template in accordance with the stereoscopic degree of a stereoscopic image taken by a user, thereby enabling a more natural and stereoscopic stereoscopic view. An object is to provide an image processing apparatus, an image processing method, and a program for generating a composite image.

上記課題を解決するために、本発明は、立体画像を構成する立体画像データを外部から入力するための立体画像データ入力手段と、
前記立体画像データから被写体を抽出する被写体抽出手段と、
前記立体画像データに含まれる視点の異なる複数の平面画像データから前記被写体の立体度を算出する立体度算出手段と、
前記立体度と前記立体画像データとを関連付けて記録する立体画像データ記録手段と、
複数種類の立体画像テンプレートが記録されたテンプレート記録手段と、
前記テンプレート記録手段に記録された複数種類の立体画像テンプレートの中から、前記立体画像データと関連付けて記録された立体度に基づいて所定数の立体画像テンプレートを選択するテンプレート選択手段と、
前記立体画像データと前記テンプレート選択手段により選択される所定数の立体画像テンプレートのうちユーザにより選択される1つの立体画像テンプレートとを合成し、合成立体画像を構成する合成立体画像データを出力する合成手段と、を有することを特徴とする画像処理装置を提供する。
In order to solve the above problems, the present invention provides a stereoscopic image data input unit for inputting stereoscopic image data constituting a stereoscopic image from the outside,
Subject extraction means for extracting a subject from the stereoscopic image data;
Stereoscopic degree calculating means for calculating the stereoscopic degree of the subject from a plurality of planar image data having different viewpoints included in the stereoscopic image data;
Stereoscopic image data recording means for recording the stereoscopic degree and the stereoscopic image data in association with each other;
Template recording means in which a plurality of types of stereoscopic image templates are recorded;
A template selection unit that selects a predetermined number of stereoscopic image templates based on the stereoscopic degree recorded in association with the stereoscopic image data from among a plurality of types of stereoscopic image templates recorded in the template recording unit;
Combining the stereoscopic image data with one stereoscopic image template selected by a user from a predetermined number of stereoscopic image templates selected by the template selection means, and outputting combined stereoscopic image data constituting a combined stereoscopic image And an image processing apparatus.

ここで、前記テンプレート選択手段は、前記被写体の立体度をNとして、N/3よりも大きく3Nよりも小さい範囲の立体度のキャラクタを含む立体画像テンプレートを選択するものであることが好ましい。   Here, it is preferable that the template selection means selects a stereoscopic image template including a character having a stereoscopic degree in a range larger than N / 3 and smaller than 3N, where N is the stereoscopic degree of the subject.

また、前記被写体抽出手段は、さらに、前記被写体の顔を抽出するものであって、
さらに、前記被写体の顔の向きを検出する顔の向き検出手段を有することが好ましい。
Further, the subject extracting means further extracts a face of the subject,
Furthermore, it is preferable to have a face direction detecting means for detecting the face direction of the subject.

また、前記テンプレート選択手段は、さらに、前記立体画像における被写体の顔の向きおよび該被写体の位置に基づいて、前記立体画像テンプレートを選択するものであることが好ましい。   Further, it is preferable that the template selection unit further selects the stereoscopic image template based on the orientation of the face of the subject in the stereoscopic image and the position of the subject.

また、前記テンプレート選択手段は、前記被写体の顔の向きが左側もしくは右側で、該被写体が前記立体画像の左側もしくは右側に配置され、前記立体画像テンプレートに含まれるキャラクタが右側もしくは左側に配置される場合、該被写体の顔の向きが前記キャラクタの方を向く場合には、上下方向のうち前記被写体の顔の向きと逆方向の前記キャラクタの顔の向きを非選択とし、前記被写体の顔の向きが前記キャラクタの方を向かない場合には、左右方向のうち前記被写体の顔の向きと逆方向の前記キャラクタの顔の向きを非選択とし、かつ、上下方向のうち前記被写体の顔の向きと逆方向の前記キャラクタの顔の向きを非選択とし、それ以外の顔の向きの前記キャラクタを含む立体画像テンプレートを選択するものであることが好ましい。   Further, the template selection means is arranged such that the face direction of the subject is on the left side or the right side, the subject is arranged on the left side or the right side of the stereoscopic image, and the character included in the stereoscopic image template is arranged on the right side or the left side. If the direction of the face of the subject faces the character, the direction of the face of the character opposite to the direction of the face of the subject in the up-down direction is not selected, and the direction of the face of the subject Is not directed toward the character, the direction of the character's face in the left / right direction is opposite to the direction of the face of the subject, and the direction of the subject's face in the up / down direction is not selected. It is preferable that the direction of the face of the character in the reverse direction is not selected and a stereoscopic image template including the character of the other face direction is selected. .

また、前記テンプレート選択手段は、前記被写体の顔の向きが左側もしくは右側で、該被写体が中央に配置され、前記立体画像テンプレートに含まれるキャラクタが前記被写体の右側もしくは左側に配置される場合には、前記被写体の顔の向きに係わらず、上下方向のうち該被写体の顔の向きと逆方向の前記キャラクタの顔の向きを非選択とし、それ以外の顔の向きの前記キャラクタを含む立体画像テンプレートを選択するものであることが好ましい。   Further, the template selection means may be configured such that the face direction of the subject is on the left side or the right side, the subject is arranged in the center, and the character included in the stereoscopic image template is arranged on the right side or the left side of the subject. Regardless of the orientation of the face of the subject, the stereoscopic image template including the character of the face orientation other than the orientation of the character in the up and down direction is deselected and the face orientation of the character is not selected. Is preferably selected.

また、前記テンプレート選択手段は、前記被写体の顔の向きが中央の場合には、該被写体の配置および顔の向きに係わらず、上下方向のうち前記被写体の顔の向きと逆方向の前記立体画像テンプレートに含まれるキャラクタの顔の向きを非選択とし、それ以外の顔の向きの前記キャラクタを含む立体画像テンプレートを選択するものであることが好ましい。   In addition, when the orientation of the subject's face is the center, the template selection unit is configured to display the stereoscopic image in a direction opposite to the orientation of the subject's face in the vertical direction, regardless of the arrangement of the subject and the orientation of the face. It is preferable that the face direction of the character included in the template is not selected and a stereoscopic image template including the character having the other face direction is selected.

また、前記テンプレート選択手段は、前記立体画像テンプレートに含まれるキャラクタの立体度および顔の向きに優先順位を設け、該優先順位に従って前記立体画像テンプレートを選択するものであることが好ましい。   Further, it is preferable that the template selection means is configured to set a priority order for the stereoscopic degree and the face direction of the character included in the stereoscopic image template and select the stereoscopic image template according to the priority order.

また、前記テンプレート選択手段は、前記立体画像テンプレートに含まれるキャラクタの立体度および顔の向きをプレビュー画面に表示して、該プレビュー画面に表示された複数の立体画像テンプレートの中から、ユーザにより選択される1つの立体画像テンプレートを選択するものであることが好ましい。   Further, the template selection means displays the stereoscopic degree and face direction of the character included in the stereoscopic image template on a preview screen, and is selected by the user from a plurality of stereoscopic image templates displayed on the preview screen. It is preferable that one stereoscopic image template to be selected is selected.

また、前記被写体抽出手段は、前記被写体の複数の部位を抽出し、
前記立体度算出手段は、前記被写体の複数の部位の立体度を算出するものであることが好ましい。
In addition, the subject extraction means extracts a plurality of parts of the subject,
It is preferable that the three-dimensionality calculating unit calculates the three-dimensionality of a plurality of parts of the subject.

また、前記立体画像データ記録手段は、前記被写体の立体度を、前記立体画像データのExifタグに記録するものであることが好ましい。   The stereoscopic image data recording unit preferably records the stereoscopic degree of the subject in an Exif tag of the stereoscopic image data.

また、前記立体画像データ記録手段は、前記被写体の立体度を、前記立体画像データとは別のファイルに記録するものであることが好ましい。   Further, it is preferable that the stereoscopic image data recording means records the stereoscopic degree of the subject in a file different from the stereoscopic image data.

また、前記立体度算出手段は、前記視点の異なる複数の平面画像データから前記被写体の視差および前記視点から前記被写体までの距離を算出し、該視差および距離から前記被写体の立体度を算出するものであることが好ましい。   The stereoscopic degree calculating means calculates a parallax of the subject and a distance from the viewpoint to the subject from a plurality of planar image data having different viewpoints, and calculates the stereoscopic degree of the subject from the parallax and the distance. It is preferable that

また、本発明は、上記のいずれかに記載の画像処理装置と、
前記画像処理装置から出力される合成立体画像データに対応する合成立体画像を印刷する印刷装置と、を有することを特徴とする立体画像印刷システムを提供する。
The present invention also provides an image processing apparatus according to any one of the above,
And a printing apparatus that prints a combined stereoscopic image corresponding to the combined stereoscopic image data output from the image processing apparatus.

また、本発明は、外部から入力される、立体画像を構成する立体画像データを受け取る立体画像データ入力ステップと、
前記立体画像データから被写体を抽出する被写体抽出ステップと、
前記立体画像データに含まれる視点の異なる複数の平面画像データから前記被写体の立体度を算出する立体度算出ステップと、
前記立体度と前記立体画像データとを関連付けて記録する立体画像データ記録ステップと、
あらかじめ記録されている複数種類の立体画像テンプレートの中から、前記立体画像データと関連付けて記録された立体度に基づいて所定数の立体画像テンプレートを選択するテンプレート選択ステップと、
前記立体画像データと前記選択された所定数の立体画像テンプレートのうちユーザにより選択される1つの立体画像テンプレートとを合成し、合成立体画像を構成する合成立体画像データを出力する合成ステップと、を有することを特徴とする画像処理方法を提供する。
Further, the present invention provides a stereoscopic image data input step for receiving stereoscopic image data constituting a stereoscopic image input from the outside,
A subject extraction step of extracting a subject from the stereoscopic image data;
A stereoscopic degree calculating step of calculating the stereoscopic degree of the subject from a plurality of planar image data having different viewpoints included in the stereoscopic image data;
A stereoscopic image data recording step of recording the stereoscopic degree and the stereoscopic image data in association with each other;
A template selection step of selecting a predetermined number of stereoscopic image templates based on the stereoscopic degree recorded in association with the stereoscopic image data from a plurality of types of stereoscopic image templates recorded in advance;
Combining the stereoscopic image data with one stereoscopic image template selected by the user from the selected predetermined number of stereoscopic image templates, and outputting combined stereoscopic image data constituting a combined stereoscopic image; An image processing method is provided.

また、本発明は、上記に記載の画像処理方法の各ステップをコンピュータに実行させるためのプログラムを提供する。   The present invention also provides a program for causing a computer to execute each step of the image processing method described above.

本発明によれば、立体度を意識することなく、より自然で立体視しやすいレイアウトのユーザ画像とキャラクタ画像の合成画像、およびこれらを印刷した立体プリントを、失敗なく得ることができる。   According to the present invention, it is possible to obtain, without failure, a composite image of a user image and a character image having a layout that is more natural and easy to stereoscopically view, and a three-dimensional print on which these are printed, without being aware of the three-dimensionality.

(a)は、平面画像データの軸を示す説明図であり、(b)は、本発明に係る立体画像データの軸および立体度の一例を示す説明図である。(A) is explanatory drawing which shows the axis | shaft of planar image data, (b) is explanatory drawing which shows an example of the axis | shaft of stereoscopic image data and stereoscopic degree which concern on this invention. 本発明に係る立体画像印刷システムの一実施形態を示すブロック図である。1 is a block diagram showing an embodiment of a stereoscopic image printing system according to the present invention. 本発明に係る立体画像データの軸および立体度の、他の一例を示す説明図である。It is explanatory drawing which shows another example of the axis | shaft of the stereo image data based on this invention, and a stereoscopic degree. 顔の向きの立体度の一例を示す説明図である。It is explanatory drawing which shows an example of the three-dimensionality of the direction of a face. 立体プリントの一例を示す説明図である。It is explanatory drawing which shows an example of a three-dimensional print. 立体プリントの他の一例を示す説明図である。It is explanatory drawing which shows another example of a three-dimensional print. 立体プリントの他の一例を示す説明図である。It is explanatory drawing which shows another example of a three-dimensional print. 立体プリントの他の一例を示す説明図である。It is explanatory drawing which shows another example of a three-dimensional print. 立体プリントの他の一例を示す説明図である。It is explanatory drawing which shows another example of a three-dimensional print. 本発明に係る画像処理装置の一実施形態における処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a process in one Embodiment of the image processing apparatus which concerns on this invention. 立体画像データのファイル構成の一例を示す説明図である。It is explanatory drawing which shows an example of the file structure of stereo image data. 立体画像データのファイルの、ヘッダの一例を示す説明図である。It is explanatory drawing which shows an example of the header of the file of stereo image data. 立体画像データのファイルの、ヘッダの他の一例を示す説明図である。It is explanatory drawing which shows another example of the header of the file of stereo image data. 立体画像データのファイルの、ヘッダの他の一例を示す説明図である。It is explanatory drawing which shows another example of the header of the file of stereo image data. 本発明に係る立体画像印刷システムにおける立体プリント処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the stereoscopic printing process in the stereoscopic image printing system which concerns on this invention. 図15のフローチャートの続きを示すフローチャートである。FIG. 16 is a flowchart showing a continuation of the flowchart of FIG. 15. FIG. 図15のフローチャートの続きを示すフローチャートである。FIG. 16 is a flowchart showing a continuation of the flowchart of FIG. 15. FIG. 図15のフローチャートの続きを示すフローチャートである。FIG. 16 is a flowchart showing a continuation of the flowchart of FIG. 15. FIG.

本発明に係る画像処理方法を実施する画像処理装置、および立体画像印刷システムを、添付の図面に示す好適実施形態に基づいて以下に詳細に説明する。   An image processing apparatus and a stereoscopic image printing system that implement an image processing method according to the present invention will be described in detail below based on preferred embodiments shown in the accompanying drawings.

始めに、本発明に係る立体画像における被写体の立体度について説明する。
図1(a)および(b)は、ユーザ画像の平面画像データと立体画像データとを比較した図である。
図1(a)は、従来の平面画像を構成する平面画像データ(X,Y軸の2次元データ)の軸を示す図であり、水平軸をX軸、垂直軸をY軸として表現している。図1(b)は、本発明に係る立体画像を構成する立体画像データ(X,Y,Z軸の3次元データ)の軸および立体度の一例を示す図であり、平面画像データのX軸、Y軸、および平面画像データのX軸、Y軸からなる平面に直交するZ軸を有し、Z軸は被写体の飛び出し方向(奥行き量、または飛び出し量、つまり被写体の立体度)を表す軸である。つまり、立体度は、立体画像データに含まれるX,Y,Z軸の3次元データのうち、Z軸のデータを表す。
First, the stereoscopic degree of the subject in the stereoscopic image according to the present invention will be described.
FIGS. 1A and 1B are diagrams comparing planar image data and stereoscopic image data of a user image.
FIG. 1A is a diagram showing the axes of plane image data (two-dimensional data of X and Y axes) constituting a conventional plane image, and the horizontal axis is expressed as the X axis and the vertical axis is expressed as the Y axis. Yes. FIG. 1B is a diagram showing an example of the axis and stereoscopic degree of stereoscopic image data (three-dimensional data of X, Y, and Z axes) constituting a stereoscopic image according to the present invention. , Y axis, and the Z axis perpendicular to the plane composed of the X axis and Y axis of the plane image data, and the Z axis represents the projecting direction of the subject (depth amount or popping amount, that is, subject solidity). It is. That is, the degree of stereo represents the Z-axis data among the X, Y, and Z-axis three-dimensional data included in the stereo image data.

立体画像データとしては、例えば、右目用の平面画像および左目用の平面画像を含むステレオ画像の画像データを例示することができる。つまり、ステレオ画像の画像データは、1つの画像データ内に、右目用の平面画像の画像データおよび左目用の平面画像の画像データを含む。なお、立体画像データは、ステレオ画像の画像データに限らず、視点の異なる複数の平面画像の画像データを1つの立体画像データ内に含むものであればよい。   As stereo image data, the image data of the stereo image containing the plane image for right eyes and the plane image for left eyes can be illustrated, for example. That is, the image data of the stereo image includes the image data of the right-eye plane image and the image data of the left-eye plane image in one image data. Note that the stereoscopic image data is not limited to the image data of a stereo image, and may be any data that includes image data of a plurality of planar images with different viewpoints in one stereoscopic image data.

ここで、立体画像における被写体の立体度を求めるためには、まず、例えば、特開2006−165795号公報、特開2001−346226号公報、特開2008−90617号公報等に記載の方法により、被写体をボリュームデータ(X,Y,Z軸の3次元データ)として描画し、右目用と左目用のそれぞれの平面画像(主画像、副画像)間のテンプレートマッチングによる対応点検出結果より、右目用の平面画像と左目用の平面画像との間の視差(視差量)および視点から被写体までの距離を算出する。   Here, in order to obtain the stereoscopic degree of a subject in a stereoscopic image, first, for example, by a method described in JP 2006-165955 A, JP 2001-346226 A, JP 2008-90617 A, or the like. The subject is drawn as volume data (three-dimensional data on the X, Y, and Z axes), and the corresponding point detection result by template matching between the right-eye and left-eye flat images (main image and sub-image) is used for the right eye. The parallax (parallax amount) between the two-dimensional image and the left-eye planar image and the distance from the viewpoint to the subject are calculated.

次に、例えば、特開2010−45584号公報等に記載されているように、求められた視差および距離から、Z軸で表される立体度の軸の値を算出することで、(Z)で表される立体度を求めることができる。つまり、立体度は、視差および距離に比例し、視差が大きくなると大きくなり、距離が長くなると大きくなる。従って、立体度は、距離が求まれば、視差に応じて一意に算出することができる。例えば、図1(b)では、Z軸の値(Z軸方向の飛び出し量)をZ1とすると、立体度は(Z1)(始点座標(0,0,0)、終点座標(0,0,Z1)))となる。なお、立体度の算出方法は何ら限定されず、既存の方法を含む各種の方法を用いることができる。   Next, as described in, for example, Japanese Patent Application Laid-Open No. 2010-45584, etc., by calculating the value of the axis of stericity represented by the Z axis from the obtained parallax and distance, (Z) Can be obtained. That is, the stereoscopic degree is proportional to the parallax and the distance, and increases as the parallax increases, and increases as the distance increases. Accordingly, if the distance is obtained, the stereoscopic degree can be uniquely calculated according to the parallax. For example, in FIG. 1B, assuming that the value of the Z axis (the amount of protrusion in the Z axis direction) is Z1, the solidity is (Z1) (starting point coordinates (0, 0, 0), end point coordinates (0, 0, Z1))). In addition, the calculation method of a three-dimensionality is not limited at all, and various methods including an existing method can be used.

次に、本発明に係る立体画像印刷システムについて説明する。
図2は、本発明に係る画像処理方法を実施する、本発明に係る立体画像印刷システムの構成を表す一実施形態のブロック図である。
図2に示す立体画像印刷システム1は、画像処理装置10、および印刷装置46によって構成される。また、画像処理装置10は、立体画像データ入力手段12、被写体抽出手段14、立体度算出手段16、立体画像データ記録手段18、テンプレート記録手段40、テンプレート選択手段42、および合成手段44によって構成される。
Next, the stereoscopic image printing system according to the present invention will be described.
FIG. 2 is a block diagram of an embodiment representing a configuration of a stereoscopic image printing system according to the present invention that implements the image processing method according to the present invention.
The stereoscopic image printing system 1 illustrated in FIG. 2 includes an image processing device 10 and a printing device 46. The image processing apparatus 10 includes a stereoscopic image data input unit 12, a subject extraction unit 14, a stereoscopic degree calculation unit 16, a stereoscopic image data recording unit 18, a template recording unit 40, a template selection unit 42, and a combining unit 44. The

立体画像データ入力手段12は、立体画像データを入力するための入力手段であって、立体画像データを画像処理装置10の外部から入力するための外部インタフェースを有する。立体画像データの作成方法には特に限定はなく、ユーザが3D対応のデジタルスチルカメラまたはデジタルビデオカメラで撮影した動画像/静止画像データ、ならびにネットワーク上からダウンロードした動画像/静止画像データなど、種々の立体画像データを入力することができる。外部インタフェースは、USB(Universal Serial Bus)、メモリーカードR/W(reader/writer)、光学ディスク、および有線/無線LAN(Local Area Network)などであればよい。立体画像データは、外部から外部インタフェースを介して入力される。立体画像データ入力手段12は、外部から入力される立体画像データを受け取って画像処理装置10の各部位へ供給する。   The stereoscopic image data input means 12 is an input means for inputting stereoscopic image data, and has an external interface for inputting stereoscopic image data from the outside of the image processing apparatus 10. There are no particular limitations on the method of creating the stereoscopic image data, and there are various types such as moving image / still image data shot by a user with a 3D-compatible digital still camera or digital video camera, and moving image / still image data downloaded from the network. 3D image data can be input. The external interface may be a USB (Universal Serial Bus), a memory card R / W (reader / writer), an optical disk, a wired / wireless LAN (Local Area Network), or the like. Stereoscopic image data is input from the outside via an external interface. The stereoscopic image data input means 12 receives stereoscopic image data input from the outside and supplies it to each part of the image processing apparatus 10.

被写体抽出手段14には、立体画像データ入力手段12から立体画像データが入力される。被写体抽出手段14は、立体画像データを解析して立体画像における被写体(の領域)を抽出する。被写体の抽出方法は、例えば、エッジ検出、色彩検出等の既存の方法を含む各種の方法を用いることができる。また、被写体の各部位、例えば、顔、左右の手、胴体、足等について、それぞれの領域を抽出する。被写体抽出手段14は、抽出された被写体の情報および被写体の各部位の情報を生成し、被写体情報として出力する。   Stereoscopic image data is input to the subject extraction unit 14 from the stereoscopic image data input unit 12. The subject extraction means 14 analyzes the stereoscopic image data and extracts a subject (region) in the stereoscopic image. As a subject extraction method, for example, various methods including existing methods such as edge detection and color detection can be used. In addition, each region is extracted for each part of the subject, for example, the face, left and right hands, torso, and feet. The subject extracting unit 14 generates information on the extracted subject and information on each part of the subject, and outputs the information as subject information.

また、被写体抽出手段14は、顔の向き検出手段20を有する。
顔の向き検出手段20は、被写体の顔の領域から、天地方向の顔の向き(角度)、および左右方向の顔の向き(角度)を算出する。顔の向き検出方法は、例えば、マシンラーニング手法を利用して、顔画像からランドマークを示す点の位置を検出する特開2006−202276号に記載の方法、および、一定の大きさの画像データを切り出して、特徴部分の画像データと照合を行う特開2004−334836号に記載の方法等の既存の方法を含む各種の方法を用いることができる。ここで、顔の認識については、複数の人物の顔を認識してもよいし、特定の人物の顔について認識してもよい。また、複数の人物のうち、特定の人物は顔を含む各部位を検出し、残りの人物は顔のみを検出するようにしてもよい。なお、顔の向きの情報についても、被写体情報として出力する。
The subject extracting unit 14 includes a face direction detecting unit 20.
The face direction detection means 20 calculates the face direction (angle) in the vertical direction and the face direction (angle) in the left-right direction from the face area of the subject. The face orientation detection method includes, for example, a method described in Japanese Patent Application Laid-Open No. 2006-202276 for detecting a position of a point indicating a landmark from a face image using a machine learning technique, and image data having a certain size. Various methods including an existing method such as the method described in Japanese Patent Application Laid-Open No. 2004-334836 for cutting out the image and collating it with the image data of the feature portion can be used. Here, regarding the face recognition, a plurality of human faces may be recognized, or a specific human face may be recognized. Further, among a plurality of persons, a specific person may detect each part including a face, and the remaining persons may detect only a face. Note that face orientation information is also output as subject information.

顔の向き検出手段20は、本実施形態では、被写体抽出段手段14の内部に設けられているが、これに限定されず、顔の向き検出手段20が被写体抽出手段14の外部に設けられていてもよい。   In this embodiment, the face direction detection means 20 is provided inside the subject extraction stage means 14, but is not limited thereto, and the face direction detection means 20 is provided outside the subject extraction means 14. May be.

立体度算出手段16には、立体画像データ入力手段12から立体画像データ、および被写体抽出手段14から被写体情報が入力される。立体度算出手段16は、前述のように、立体画像データに含まれる主画像データおよび副画像データ間の被写体のテンプレートマッチングを行って対応点を検出し、対応点検出結果に基づいて、被写体または被写体の各部位ごとに視差および距離を算出する。また、算出された視差および距離から、立体度を算出して立体度(被写体の顔の向きの情報を含む)出力する。   Stereoscopic image data is input from the stereoscopic image data input unit 12 and subject information is input from the subject extraction unit 14 to the stereoscopic degree calculation unit 16. As described above, the three-dimensionality calculation unit 16 performs template matching of the subject between the main image data and the sub-image data included in the stereoscopic image data to detect corresponding points, and based on the corresponding point detection result, The parallax and distance are calculated for each part of the subject. Further, the stereoscopic degree is calculated from the calculated parallax and distance, and the stereoscopic degree (including information on the face direction of the subject) is output.

立体度算出手段16は、図3の例では、顔の立体度を(Z2)(始点座標(0,0,0)、終点座標(0,0,Z2)、以下同様である。)、右手の立体度を(Z3)、左手の立体度を(Z4)、および、胴体の立体度を(Z5)とし、被写体の立体度として、これらのうち1以上を出力する。なお、出力する立体度はこれらに限定されず、足等の他の部位の立体度を出力してもよい。
また、図4に被写体の顔の向きと立体度の例を示す。例えば、「左上(1)」であれば、顔は左上を向き、立体度は(1)であることを示している。これ以外の被写体の顔の向きおよび立体度についても同様である。
In the example of FIG. 3, the solidity calculation means 16 sets the face solidity to (Z2) (start point coordinates (0, 0, 0), end point coordinates (0, 0, Z2), and so on), right hand. Is set to (Z3), the left hand is set to (Z4), the torso is set to (Z5), and one or more of them are output as the subject. Note that the output stericity is not limited to these, and the stericity of other parts such as feet may be output.
FIG. 4 shows an example of the face direction and the stereoscopic degree of the subject. For example, “upper left (1)” indicates that the face is directed to the upper left, and the stereoscopic degree is (1). The same applies to the face direction and the stereoscopic degree of other subjects.

立体画像データ記録手段18には、立体画像データ入力手段12から立体画像データ、および立体度算出手段16から立体度および顔の向きが入力される。立体画像データ記録手段18は、立体度および顔の向きと立体画像データとを関連付けて記録する。立体画像データ記録手段18は、DRAM(Dynamic Random Access Memory)、フラッシュメモリ等の半導体メモリでもよいし、HDD(Hard Disk Drive)等の磁気記録媒体でもよい。   The stereoscopic image data recording unit 18 is input with stereoscopic image data from the stereoscopic image data input unit 12 and the stereoscopic degree and face orientation from the stereoscopic degree calculation unit 16. The stereoscopic image data recording means 18 records the stereoscopic degree and the face direction in association with the stereoscopic image data. The stereoscopic image data recording means 18 may be a semiconductor memory such as a DRAM (Dynamic Random Access Memory) or a flash memory, or a magnetic recording medium such as an HDD (Hard Disk Drive).

また、立体度は、立体画像データのExif(Exchangeable image file format)タグの一部にその値を書き込んでもよいし、立体画像データファイル(例えば、ファイル名:Image0001.jpg)と別のファイル(例えば、ファイル名:Image0001.vct)として記録するようにしてもよい。   Further, the value of the stereoscopic degree may be written in a part of an Exif (Exchangeable image file format) tag of the stereoscopic image data, or the stereoscopic image data file (for example, file name: Image0001.jpg) and another file (for example, , File name: Image0001.vct).

テンプレート記録手段40には、ユーザの立体画像データと合成するための複数種類の立体画像テンプレートがあらかじめ記録されている。合成用の立体画像テンプレートとしては、例えば、テーマパーク等におけるキャラクタを用いたものが挙げられ、ユーザの立体画像(ユーザ画像)の被写体と立体画像テンプレートのキャラクタとを合成した立体合成画像を得ることができるものである。   In the template recording means 40, a plurality of types of stereoscopic image templates to be combined with the user's stereoscopic image data are recorded in advance. Examples of the stereoscopic image template for synthesis include those using characters in a theme park or the like, and obtaining a stereoscopic composite image in which the subject of the user's stereoscopic image (user image) and the character of the stereoscopic image template are combined. It is something that can be done.

テンプレート選択手段42には、立体画像データ記録手段18から立体画像データと関連付けて記録された立体度および顔の向き、およびテンプレート記録手段40から立体画像テンプレートが入力される。テンプレート選択手段42は、テンプレート記録手段40に記憶された複数種類の立体画像テンプレートの中から、立体度および顔の向きに基づき、所定数の適切な立体画像テンプレートを選択し、図示しない表示装置に表示する。テンプレート選択手段42は、表示装置に表示された所定数の立体画像テンプレートの中から、図示しない入力手段を介してユーザにより選択された立体画像テンプレートを出力する。   The template selection unit 42 receives the stereoscopic degree and face orientation recorded in association with the stereoscopic image data from the stereoscopic image data recording unit 18 and the stereoscopic image template from the template recording unit 40. The template selection unit 42 selects a predetermined number of appropriate stereoscopic image templates from a plurality of types of stereoscopic image templates stored in the template recording unit 40 based on the stereoscopic degree and the face orientation, and displays them on a display device (not shown). indicate. The template selection unit 42 outputs a stereoscopic image template selected by the user via an input unit (not shown) from a predetermined number of stereoscopic image templates displayed on the display device.

なお、本実施形態では、被写体抽出手段14から立体度算出手段16に入力される被写体情報に含まれる被検者の顔の向きの情報(被写体情報)を立体度とともにまとめて立体度算出手段16から出力しているが、本発明はこれに限定されず、被写体抽出手段14から出力される被写体の顔の向きの情報(被写体情報)と、立体度算出手段16から出力される被写体の立体度を別々に、立体画像データ記録手段18およびテンプレート選択手段42にそれぞれ入力する構成としてもよい。   In the present embodiment, the information on the face direction of the subject (subject information) included in the subject information input from the subject extracting unit 14 to the stereoscopic degree calculating unit 16 is collected together with the stereoscopic degree and the stereoscopic degree calculating unit 16. However, the present invention is not limited to this, and information on the face direction of the subject (subject information) output from the subject extraction unit 14 and the stereoscopic degree of the subject output from the stereoscopic degree calculation unit 16 May be separately input to the stereoscopic image data recording unit 18 and the template selection unit 42, respectively.

ここで、テンプレート選択手段42による立体画像テンプレートの選択方法について説明する。
図5は、立体画像60a上において、ユーザの立体画像の被写体61が右側、立体画像テンプレートのキャラクタ62が左側に配置された例である。被写体61の立体度66は(1)であり、キャラクタ62の立体度68は(3)である。また、被写体61およびキャラクタ62の顔の向きは左下である。この状態では、両者の顔の向きは同じであるが、被写体61の立体度よりも、キャラクタ62の立体度の方が極端に大きく、被写体61とキャラクタ62のZ軸方向の位置関係に不整合が生じてしまう。
Here, a method of selecting a stereoscopic image template by the template selection unit 42 will be described.
FIG. 5 shows an example in which the subject 61 of the user's stereoscopic image is arranged on the right side and the character 62 of the stereoscopic image template is arranged on the left side on the stereoscopic image 60a. The stereoscopic degree 66 of the subject 61 is (1), and the stereoscopic degree 68 of the character 62 is (3). The face direction of the subject 61 and the character 62 is the lower left. In this state, the faces of both are the same, but the stereoscopic degree of the character 62 is extremely larger than the stereoscopic degree of the subject 61, and the positional relationship of the subject 61 and the character 62 in the Z-axis direction is inconsistent. Will occur.

このため、テンプレート選択手段42では、被写体61の立体度に基づいて、被写体63の立体度69に対応する立体度、例えば、図6に示す立体画像60bのように、被写体63の立体度69と同じ大きさの立体度70(どちらも立体度は(3))を持ち、顔の向きが同じキャラクタ64を配置することができるように、適切な立体画像テンプレートが選択される。   For this reason, the template selection unit 42 determines the stereoscopic degree corresponding to the stereoscopic degree 69 of the subject 63 based on the stereoscopic degree of the subject 61, for example, the stereoscopic degree 69 of the subject 63 as in the stereoscopic image 60b shown in FIG. An appropriate stereoscopic image template is selected so that characters 64 having the same degree of stereoscopic degree 70 (both stereoscopic degree is (3)) and the same face direction can be arranged.

また、図7に示す立体画像60cの例は、被写体72の顔の向きが左上、キャラクタ74の顔の向きが右上であり、被写体72とキャラクタ74が向かい合わせとなる配置である。しかし、キャラクタ74の立体度78が(3)であり、被写体72の立体度76の(1)よりも極端に大きいため、被写体72よりもキャラクタ74の方が目立ってしまい好ましくない。   The example of the stereoscopic image 60c shown in FIG. 7 is an arrangement in which the face direction of the subject 72 is upper left, the face direction of the character 74 is upper right, and the subject 72 and the character 74 face each other. However, since the solid degree 78 of the character 74 is (3) and is extremely larger than the solid degree 76 (1) of the subject 72, the character 74 is more conspicuous than the subject 72, which is not preferable.

さらに、図8に示す立体画像60dの例も同様に、被写体88の顔の向きが左上、キャラクタ90の顔の向きが右上であり、被写体88とキャラクタ90が向かい合わせとなる配置である。しかし、キャラクタ90の立体度94が(1)、被写体88の立体度92が(3)であるため、被写体88とキャラクタ90のバランスが崩れてしまい好ましくない。   Further, in the example of the stereoscopic image 60d shown in FIG. 8, the face direction of the subject 88 is the upper left, the face direction of the character 90 is the upper right, and the subject 88 and the character 90 face each other. However, since the stereoscopic degree 94 of the character 90 is (1) and the stereoscopic degree 92 of the subject 88 is (3), the balance between the subject 88 and the character 90 is lost, which is not preferable.

ユーザの立体画像(ユーザ画像)の被写体の立体度、顔の向き、および配置と、合成用立体画像テンプレートのキャラクタ(表1ではキャラと記載)の立体度および顔の向きとの組み合わせのうち、ユーザ立体度として、被写体の顔の向きが上向きで、立体度が(N)の場合のマトリックスの一例を表1に示す。なお、被写体の顔の向きが下向きの場合には、OK(適切)およびNG(不適切)となるキャラクタの顔の向きは逆の組み合わせとなる。   Among the combinations of the stereoscopic degree of the subject of the user's stereoscopic image (user image), the orientation of the face, and the arrangement, and the stereoscopic degree and the orientation of the face of the character (described as “Character” in Table 1) of the synthesis stereoscopic image template, Table 1 shows an example of the matrix when the orientation of the subject's face is upward and the stereoscopic degree is (N). When the face direction of the subject is downward, the face direction of the character that is OK (appropriate) and NG (inappropriate) is a reverse combination.

ユーザ画像の被写体が立体画像の左側に配置されている場合、キャラクタ画像のキャラクタは被写体の右側に配置され、被写体が右側に配置されている場合、キャラクタは被写体の左側に配置されるものとする。また、被写体が中央に配置されている場合、キャラクタは被写体の右側もしくは左側に配置される(どちら側に配置されるかはユーザにより選択される)ものとする。   When the subject of the user image is arranged on the left side of the stereoscopic image, the character of the character image is arranged on the right side of the subject, and when the subject is arranged on the right side, the character is arranged on the left side of the subject. . Further, when the subject is arranged at the center, the character is arranged on the right side or the left side of the subject (which side is arranged is selected by the user).

被写体の顔の向きが左側(左上、左正、左下)もしくは右側(右上、右正、右下)で、被写体が左側もしくは右側に配置されている場合に、被写体の顔の向きがキャラクタの方を向く場合には、上下方向のうち被写体の顔の向きと逆方向のキャラクタの顔の向きをNG(非選択)とする。また、被写体の顔の向きがキャラクタの方を向かない場合には、左右方向のうち被写体の顔の向きと逆方向のキャラクタの顔の向きをNGとし、かつ、上下方向のうち被写体の顔の向きと逆方向のキャラクタの顔の向きをNGとする。   When the subject's face is on the left side (upper left, positive left, lower left) or right side (upper right, right positive, lower right) and the subject is placed on the left side or right side, the subject's face direction is toward the character , The character face direction opposite to the subject face direction in the vertical direction is set to NG (non-selected). Also, if the direction of the subject's face does not face the character, the character's face orientation in the left-right direction opposite to the subject's face direction is set to NG, and the subject's face in the vertical direction Let NG be the direction of the face of the character in the opposite direction.

また、被写体の顔の向きが左側もしくは右側で、被写体が中央に配置されている場合には、キャラクタが被写体の左側に配置されるか右側に配置されるかに応じて、被写体の顔の向きがキャラクタの方を向くか向かないかが変わってくる。従って、被写体が中央に配置されている場合には、被写体の顔の向きに係わらず、上下方向のうち被写体の顔の向きと逆方向のキャラクタの顔の向きをNGとする。   If the subject's face is on the left or right side and the subject is centered, the subject's face orientation depends on whether the character is placed on the left or right side of the subject. Changes whether the character faces the character or not. Therefore, when the subject is arranged at the center, regardless of the face direction of the subject, the character face direction opposite to the subject face direction in the vertical direction is set to NG.

また、被写体の顔の向きが中央(中央上、中央正、中央下)の場合には、被写体が左側、中央、右側のどの位置に配置されている場合であっても、被写体の顔の向きはキャラクタの配置に係わらず中立な向きとなる。従って、被写体の顔の向きが中央の場合には、被写体の配置および顔の向きに係わらず、上下方向のうち被写体の顔の向きと逆方向のキャラクタの顔の向きをNGとする。   In addition, when the subject's face is centered (upper center, center positive, lower center), the subject's face orientation is no matter where the subject is placed on the left side, center, or right side. Is in a neutral orientation regardless of the character placement. Therefore, when the direction of the subject's face is the center, regardless of the subject's arrangement and the direction of the face, the character's face direction opposite to the subject's face direction in the vertical direction is set to NG.

例えば、被写体の顔の向きが左上で、左側に配置されている場合、被写体の顔の向きは、右側に配置されるキャラクタの方を向かない。従って、キャラクタの右側方向の顔の向きをNGとし、かつ、キャラクタの下側方向の顔の向きをNGとする。つまり、キャラクタの顔の向きのうち、右側方向に含まれる右上、右正、右下をNG、下側方向に含まれる右下、中央下、左下をNGとし、それ以外の中央上、左上、左正、中央正をOK(選択)とする。   For example, when the orientation of the subject's face is arranged on the left and on the left, the orientation of the subject's face does not face the character arranged on the right. Accordingly, the direction of the face in the right direction of the character is NG, and the direction of the face in the lower direction of the character is NG. That is, among the character face orientations, the upper right, right positive, and lower right included in the right direction are NG, the lower right, lower center, and lower left included in the lower direction are NG, and the other upper center, upper left, The left positive and the central positive are OK (selected).

被写体の顔の向きが左上で、右側に配置されている場合、被写体の顔の向きは、左側に配置されるキャラクタの方を向く。従って、キャラクタの下側方向の顔の向きをNGとする。つまり、キャラクタの顔の向きのうち、下側方向に含まれる右下、中央下、左下をNGとし、それ以外の右正、右上、中央上、左上、左正、中央正をOKとする。   When the orientation of the subject's face is located on the upper left side and on the right side, the orientation of the subject's face faces the character placed on the left side. Therefore, the direction of the face in the lower direction of the character is NG. That is, among the character face orientations, the lower right, lower center, and lower left included in the lower direction are NG, and the other right positive, upper right, upper center, upper left, left positive, and central positive are OK.

被写体の顔の向きが左上で、中央に配置されている場合、被写体の顔の向きに係わらず、キャラクタの下側方向の顔の向きをNGとする。つまり、キャラクタの顔の向きのうち、下側方向に含まれる右下、中央下、左下をNGとし、それ以外の右正、右上、中央上、左上、左正、中央正をOKとする。   When the orientation of the face of the subject is located at the upper left and in the center, regardless of the orientation of the face of the subject, the face orientation in the lower direction of the character is NG. That is, among the character face orientations, the lower right, lower center, and lower left included in the lower direction are NG, and the other right positive, upper right, upper center, upper left, left positive, and central positive are OK.

続いて、被写体の顔の向きが右上で、左側に配置されている場合は、被写体の顔の向きが左上で、右側に配置される場合に対して左右逆の状態となる。従って、この場合には、NGとするキャラクタの顔の向きを左右逆向きにすればよく、キャラクタの下側方向の顔の向きをNGとする。つまり、下側方向に含まれる右下、中央下、左下をNGとし、それ以外の右正、右上、中央上、左上、左正、中央正をOKとする。   Subsequently, when the orientation of the subject's face is located on the upper right side and on the left side, the orientation of the subject's face is on the upper left side and on the right side, the situation is reversed. Therefore, in this case, the direction of the face of the character to be NG may be reversed left and right, and the direction of the face in the lower direction of the character is NG. That is, the lower right, lower center, and lower left included in the lower direction are NG, and the other right positive, upper right, upper center, upper left, upper left, and central positive are OK.

被写体の顔の向きが右上で、右側に配置されている場合、同じく、被写体の顔の向きが左上で、左側に配置される場合に対して左右逆の状態となる。従って、同様に、NGとするキャラクタの顔の向きを左右逆向きにして、キャラクタの左側方向の顔の向きをNGとし、かつ、下側方向の顔の向きをNGとする。つまり、左側方向に含まれる左上、左正、左下、および、下側方向に含まれる右下、中央下、左下をNGとし、それ以外の右正、右上、中央上、中央正をOKとする。   When the orientation of the subject's face is located on the upper right side and on the right side, similarly, the orientation of the subject's face is on the upper left and the left side is reversed. Therefore, similarly, the direction of the face of the character to be NG is reversed left and right, the face direction of the left side of the character is NG, and the face direction of the lower side is NG. That is, the upper left, upper left, lower left, and lower right, lower center, and lower left included in the left direction are NG, and the other right positive, upper right, upper center, and central positive are OK. .

被写体の顔の向きが右上で、中央に配置されている場合も同様に、被写体の顔の向きが左上で、中央に配置される場合に対して左右逆の状態となる。従って、同様に、NGとするキャラクタの顔の向きを左右逆向きにして、キャラクタの下側方向の顔の向きをNGとする。つまり、下側方向に含まれる右下、中央下、左下をNGとし、それ以外の右正、右上、中央上、左上、左正、中央正をOKとする。   Similarly, when the orientation of the subject's face is located at the upper right and in the center, the orientation of the subject's face is reversed left and right with respect to the case where the orientation of the subject's face is located at the upper left and the center. Accordingly, similarly, the direction of the face of the character to be NG is reversed left and right, and the direction of the face in the lower direction of the character is NG. That is, the lower right, lower center, and lower left included in the lower direction are NG, and the other right positive, upper right, upper center, upper left, upper left, and central positive are OK.

続いて、被写体の顔の向きが中央上の場合、被写体の配置および顔の向きに係わらず、キャラクタの下側方向の顔の向きをNGとする。つまり、下側方向に含まれる右下、中央下、左下をNGとし、それ以外の右正、右上、中央上、左上、左正、中央正をOKとする。   Subsequently, when the orientation of the face of the subject is at the center, regardless of the placement of the subject and the orientation of the face, the face orientation in the lower direction of the character is set to NG. That is, the lower right, lower center, and lower left included in the lower direction are NG, and the other right positive, upper right, upper center, upper left, upper left, and central positive are OK.

なお、表1では、被写体の立体度(N)を超えない範囲であるという意味でキャラクタの立体度を(N以下)としているが、被写体とキャラクタのバランスが取れる範囲であれば、被写体の立体度とキャラクタの立体度とが異なっていてもよい。具体的には、例えば、被写体の立体度(N)に対してキャラクタの立体度が(N/3)よりも大きく(3N)よりも小さい範囲であることが望ましい。   In Table 1, the solidity of the character is set to (N or less) in the sense that it is a range that does not exceed the stereoscopic degree (N) of the subject. The degree and the three-dimensionality of the character may be different. Specifically, for example, it is desirable that the character has a solidity greater than (N / 3) and smaller than (3N) with respect to the subject's solidity (N).

また、組み合わせ可能なキャラクタの立体度および顔の向きに優先順位を設けて、優先順位に従って立体画像テンプレートが選択されるようにしてもよい。例えば、図9および表2に示すように、ユーザ立体度が左上(1)の場合、立体画像100における被写体102の立体度および顔の向き106に対して、キャラクタ104の立体度および顔の向き108a〜108hのうち、108bを1番、108dを2番というように優先順位を付け、立体度および顔の向き108f、108g、および108hの不適切な組み合わせの場合は、選択されないようにNGとする。   In addition, priority may be given to the stereoscopic degree and face direction of characters that can be combined, and the stereoscopic image template may be selected according to the priority. For example, as shown in FIG. 9 and Table 2, when the user stereoscopic degree is upper left (1), the stereoscopic degree and face direction of the character 104 with respect to the stereoscopic degree and face direction 106 of the subject 102 in the stereoscopic image 100 are displayed. 108a to 108h are prioritized such that 108b is No. 1 and 108d is No. 2, and in the case of an inappropriate combination of stereoscopic degree and face orientation 108f, 108g, and 108h, NG is selected so as not to be selected. To do.

また、優先順位の替わりに、これらの立体度および顔の向きをプレビュー画面に表示して、ユーザが選択可能なように構成してもよい。さらに、保存容量を節約するために、あらゆる組み合わせを用意するのではなく、最も適切な組み合わせに近い立体画像テンプレートを用意するようにしてもよい。   Further, instead of the priority order, these three-dimensionality and face orientation may be displayed on the preview screen so that the user can select them. Furthermore, in order to save the storage capacity, not all combinations are prepared, but a stereoscopic image template close to the most appropriate combination may be prepared.

続いて、合成手段44には、立体画像データ記録手段18から立体度および顔の向きと関連付けられた立体画像データと、テンプレート選択手段で選択された立体画像テンプレートが入力される。合成手段44は、立体画像データと、テンプレート選択手段によって選択された立体画像テンプレート(つまり、立体画像の被写体と立体画像テンプレートのキャラクタ)とを合成して、合成立体画像を構成する合成立体画像データを生成し出力する。   Subsequently, the stereoscopic image data associated with the stereoscopic degree and the face direction and the stereoscopic image template selected by the template selection unit are input to the synthesizing unit 44 from the stereoscopic image data recording unit 18. The synthesizing unit 44 synthesizes the stereoscopic image data and the stereoscopic image template selected by the template selection unit (that is, the subject of the stereoscopic image and the character of the stereoscopic image template), and forms the combined stereoscopic image data. Is generated and output.

印刷装置46には、合成手段44から合成立体画像データが入力される。印刷装置46は、合成立体画像データに対応する合成立体画像をプリントアウトすることができるプリンタである。立体画像のプリントとしては、例えば、複数の画像を短冊状に切り取って交互に配置し、パララックスバリア(視差バリア)、またはレンチキュラーレンズを用いて裸眼立体視が可能なように印刷することが挙げられる。   The combined stereoscopic image data is input from the combining unit 44 to the printing device 46. The printing device 46 is a printer that can print out a composite stereoscopic image corresponding to the composite stereoscopic image data. As a print of a stereoscopic image, for example, a plurality of images are cut into strips and alternately arranged, and printed using a parallax barrier (parallax barrier) or a lenticular lens so that autostereoscopic viewing is possible. It is done.

次に、本発明に係る画像処理方法を実現する、本発明に係る立体画像印刷システム1および画像処理装置10の動作を説明する。   Next, operations of the stereoscopic image printing system 1 and the image processing apparatus 10 according to the present invention that realize the image processing method according to the present invention will be described.

図10は、本発明に係る画像処理方法の処理の流れの一例を示すフローチャートである。
まず、立体画像データ入力手段12を介して、素材となる立体画像データが入力される(ステップS10)。立体画像データは、被写体抽出手段14に入力されて立体画像が解析され(ステップS12)、被写体が抽出される。また、被写体の各部位、例えば、顔、左右の手、胴体、足等について、それぞれの領域が抽出される。被写体の顔については顔の向きの検出が行われ、抽出された被写体、被写体の各部位の情報、および被写体の顔の向きの情報が生成され、被写体情報として出力される(ステップS14)。
FIG. 10 is a flowchart showing an example of the processing flow of the image processing method according to the present invention.
First, stereoscopic image data as a material is input via the stereoscopic image data input unit 12 (step S10). The stereoscopic image data is input to the subject extraction means 14 and the stereoscopic image is analyzed (step S12), and the subject is extracted. In addition, each region is extracted for each part of the subject, for example, the face, the left and right hands, the torso, and the foot. For the face of the subject, the orientation of the face is detected, and the extracted subject, information on each part of the subject, and information on the orientation of the subject's face are generated and output as subject information (step S14).

立体画像データ、および被写体情報は、立体度算出手段16に入力され、立体画像データの主画像データおよび副画像データ間の、被写体(顔)のマッチングが行われて対応点が検出される(ステップS16)。対応点検出結果に基づいて、被写体および被写体の顔ごとに視差および距離が算出される(ステップS18)。また、算出された視差および距離から、立体度が算出され出力される(ステップS20)。   The stereoscopic image data and the subject information are input to the stereoscopic degree calculation means 16, and matching of the subject (face) is performed between the main image data and the sub-image data of the stereoscopic image data (step). S16). Based on the corresponding point detection result, the parallax and the distance are calculated for each subject and each face of the subject (step S18). Further, the degree of stereo is calculated and output from the calculated parallax and distance (step S20).

立体度が求められると、立体画像に写っている全ての人物について、立体度の算出が終了したか判定され(ステップS22)、全ての人物についての立体度の算出が終了していなければ、ステップS16へと戻り、残りの人物について立体度が求められる(ステップS22で“N”)。   When the stereoscopic degree is obtained, it is determined whether or not the calculation of the stereoscopic degree has been completed for all persons appearing in the stereoscopic image (step S22). If the calculation of the stereoscopic degree has not been completed for all persons, step Returning to S16, the three-dimensionality is obtained for the remaining persons ("N" in step S22).

全ての人物についての立体度の算出が終了していれば(ステップS22で“Y”)、立体画像データ、ならびに立体度および顔の向きは、立体画像データ記録手段18に入力され、立体度および顔の向き(以下、立体度には顔の向きを含む)と立体画像データとが関連付けられて、すなわち、立体度が立体画像データのExifタグへ書き込まれて、または別のファイルへ出力されて記録される(ステップS24)。例えば、図11に示すファイルフォーマットの例では、立体画像データ30のヘッダ32内のExifタグに立体度が書き込まれる。   If the calculation of the stereoscopic degree for all persons has been completed (“Y” in step S22), the stereoscopic image data, the stereoscopic degree, and the face orientation are input to the stereoscopic image data recording means 18, and the stereoscopic degree and The orientation of the face (hereinafter, the stereoscopic degree includes the orientation of the face) and the stereoscopic image data are associated, that is, the stereoscopic degree is written to the Exif tag of the stereoscopic image data or output to another file. Recording is performed (step S24). For example, in the example of the file format shown in FIG. 11, the stereoscopic degree is written in the Exif tag in the header 32 of the stereoscopic image data 30.

また、ヘッダ32内のExifタグへの記入の例としては、被写体の立体度のみ記録する場合を図12に示し、被写体の各部位ごとの立体度を記録する場合を図13に示す。さらに、複数の被写体がある場合のExifタグへの記入の例としては、図14に示すように、顔立体度を含む各部位の立体度をそれぞれの被写体ごとに記録することができる。   As an example of entry in the Exif tag in the header 32, FIG. 12 shows a case where only the stereoscopic degree of the subject is recorded, and FIG. 13 shows a case where the stereoscopic degree for each part of the subject is recorded. Furthermore, as an example of entry in the Exif tag when there are a plurality of subjects, as shown in FIG. 14, the stereoscopic degree of each part including the facial stereoscopic degree can be recorded for each subject.

このように、被写体の立体度および顔の向きと立体画像データとを関連付けて記録することで、被写体抽出の精度を上げることができ、より自然で立体視しやすい立体画像を得ることができる。   Thus, by recording the stereoscopic degree and face orientation of the subject in association with the stereoscopic image data, the accuracy of subject extraction can be improved, and a more natural and stereoscopic image can be obtained.

続いて、図15〜図18は、立体画像データ記録手段18に記録された、立体画像データおよび立体度(ユーザ立体画像データおよびユーザ立体度)を用いて、立体画像データと立体画像テンプレートとを合成し、立体画像データを印刷する処理の流れの一例を示すフローチャートである。   Subsequently, FIGS. 15 to 18 show the stereoscopic image data and the stereoscopic image template using the stereoscopic image data and the stereoscopic degree (user stereoscopic image data and user stereoscopic degree) recorded in the stereoscopic image data recording unit 18. It is a flowchart which shows an example of the flow of a process which synthesize | combines and prints stereo image data.

まず、ユーザ立体画像データおよびユーザ立体度、および被写体情報(立体画像データのExifタグから、もしくは、立体画像データファイル(Image0001.vct)から)を読み込む(ステップS104)。次に、被写体(ユーザ)情報およびユーザ立体度に基づいて、適切な立体画像テンプレートをテンプレート記録手段40から読み込み、図示しない表示装置に複数表示し(ステップS106)、操作者による合成用の立体画像テンプレート(キャラクタ)の選択が行われる(ステップS108)。なお、ここで選択される立体画像テンプレート(キャラクタ)は、配置については決定されていない。また、合成用の立体画像テンプレート(キャラクタ)の選択は、自動的に行われてもよい。   First, user stereoscopic image data, user stereoscopic degree, and subject information (from the Exif tag of stereoscopic image data or from a stereoscopic image data file (Image0001.vct)) are read (step S104). Next, based on the subject (user) information and the user stereoscopic degree, an appropriate stereoscopic image template is read from the template recording means 40 and displayed on a display device (not shown) (step S106), and a stereoscopic image for synthesis by the operator. A template (character) is selected (step S108). Note that the arrangement of the stereoscopic image template (character) selected here is not determined. Further, the selection of the stereoscopic image template (character) for synthesis may be performed automatically.

合成用の立体画像テンプレート(キャラクタ)が選択されると、立体画像データの被写体の配置位置が検出または選択される(ステップS110)。被写体(ユーザ)の配置位置が左の場合には(ステップS110で“左”)、被写体が左に配置された場合のマトリックスが選択され(ステップS112)、被写体の配置位置が中央の場合には(ステップS110で“中央”)、被写体が中央に配置された場合のマトリックスが選択され(ステップS114)、被写体の配置位置が右の場合には(ステップS110で“右”)、被写体が右に配置された場合のマトリックスが選択される(ステップS116)。   When the stereoscopic image template (character) for synthesis is selected, the subject arrangement position of the stereoscopic image data is detected or selected (step S110). When the subject (user) is placed on the left (“left” in step S110), a matrix when the subject is placed on the left is selected (step S112), and when the subject is placed at the center. (“Center” in step S110), a matrix is selected when the subject is placed in the center (step S114), and when the subject is placed on the right (“right” in step S110), the subject is turned to the right. A matrix when arranged is selected (step S116).

続いて、被写体の立体度(ユーザ立体度)に基づいて、マトリックスが選択される。ユーザ立体度(顔の向き)の左右方向の向きが左の場合であって(ステップS118で“左”)、ユーザ立体度(顔の向き)の上下方向の向きが上の場合(ステップS120で“上”)、ユーザ立体度が左上のマトリックスが選択される(ステップS126)。同様に、ユーザ立体度の左右方向の向きが左の場合であって(ステップS118で“左”)、ユーザ立体度の上下方向の向きが正面の場合(ステップS120で“正面”)、ユーザ立体度が左正面のマトリックスが選択される(ステップS128)。また、ユーザ立体度の左右方向の向きが左の場合であって(ステップS118で“左”)、ユーザ立体度の上下方向の向きが下の場合(ステップS120で“下”)、ユーザ立体度が左下のマトリックスが選択される(ステップS130)。   Subsequently, a matrix is selected based on the stereoscopic degree of the subject (user stereoscopic degree). When the left-right direction of the user stereoscopic degree (face orientation) is left (“left” in step S118), and when the vertical direction of the user stereoscopic degree (face orientation) is up (in step S120) “Up”), a matrix whose user stereoscopic degree is at the upper left is selected (step S126). Similarly, when the left-right direction of the user stereoscopic degree is left (“left” in step S118) and the vertical direction of the user stereoscopic degree is front (“front” in step S120), the user solid A matrix with the left front is selected (step S128). Further, when the direction of the user stereoscopic degree in the left-right direction is left (“left” in step S118), and the vertical direction of the user stereoscopic degree is down (“down” in step S120), the user stereoscopic degree The lower left matrix is selected (step S130).

立体度の左右方向の向きが中央の場合(ステップS118で“中央”)も同様に、ステップS122,S132〜S136において、ユーザ立体度が中央上、中央正面、または中央下のいずれかのマトリックスが選択される。ユーザ立体度の左右方向の向きが右の場合(ステップS118で“右”)も同様に、ステップS124,S138〜S142において、ユーザ立体度が右上、右正面、または右下のいずれかのマトリックスが選択される。   Similarly, in the case where the left-right direction of the stereoscopic degree is the center (“center” in step S118), in steps S122 and S132 to S136, any matrix whose user stereoscopic degree is the center upper, center front, or center lower is the same. Selected. Similarly, when the left-right direction of the user stereoscopic degree is right (“right” in step S118), in steps S124 and S138 to S142, any matrix in which the user stereoscopic degree is upper right, right front, or lower right is obtained. Selected.

ユーザ立体度に基づきマトリックスが選択されると、当該マトリックスに含まれる被写体(ユーザ)とキャラクタの位置関係から、合成可能(適切)な複数の立体画像テンプレートが提示され、一意のキャラクタの配置位置と立体度を有する立体画像テンプレートが、操作者によって選択される(ステップS144)。なお、最も適切と考えられるキャラクタの配置位置と立体度を有する立体画像テンプレートが自動的に選択されるようにしてもよい。   When a matrix is selected on the basis of the user stereoscopic degree, a plurality of three-dimensional image templates that can be combined (appropriate) are presented based on the positional relationship between the subject (user) and the character included in the matrix, A stereoscopic image template having a stereoscopic degree is selected by the operator (step S144). Note that a stereoscopic image template having the most appropriate character placement position and stereoscopic degree may be automatically selected.

キャラクタの配置位置と立体度を有する立体画像テンプレート、および立体画像データは、合成手段44に入力される。キャラクタの配置位置と立体度を有する立体画像テンプレート、および立体画像データは合成されて、合成立体画像データが生成され出力される(ステップS146)。   The stereoscopic image template having the character arrangement position and the stereoscopic degree, and the stereoscopic image data are input to the synthesizing unit 44. The stereoscopic image template having the character arrangement position and the stereoscopic degree and the stereoscopic image data are combined, and the combined stereoscopic image data is generated and output (step S146).

合成立体画像データは、印刷装置46に入力され、立体画像が印刷される(ステップS148)。   The combined stereoscopic image data is input to the printing device 46, and a stereoscopic image is printed (step S148).

このように、ユーザは立体度の値を意識することなく、所望の合成用の立体画像テンプレートを選択するだけで、被写体の配置と立体度(ユーザ立体度)に基づいて、不適切な立体画像テンプレートが選択されることを排除することが可能となり、満足度を向上させることができる。   In this way, the user can select an appropriate composite stereoscopic image template without being aware of the stereoscopic value, and can select an inappropriate stereoscopic image based on the arrangement of the subject and the stereoscopic degree (user stereoscopic degree). It becomes possible to exclude that a template is selected, and satisfaction can be improved.

また、被写体の配置に合わせて、立体画像テンプレートのキャラクタの配置および立体度を変更することで、つまり、被写体とキャラクタの立体感が最も適合した立体画像テンプレートが選択されることで、よりエンターテイメント性が高く満足度が高い立体画像が印刷された立体プリントを得ることができる。   Further, by changing the character arrangement and the stereoscopic degree of the stereoscopic image template in accordance with the arrangement of the subject, that is, by selecting the stereoscopic image template that best matches the stereoscopic effect of the subject and the character, more entertainment properties can be obtained. It is possible to obtain a three-dimensional print on which a three-dimensional image with high and high satisfaction is printed.

なお、本発明においては、上述した画像処理方法の各工程をコンピュータに実行させるための画像処理プログラムとして構成しても良いし、また、コンピュータを、画像処理方法の各工程を実施する各手段として、または、上述した画像処理装置を構成する各手段として機能させる画像処理プログラムとして構成しても良い。
また、本発明を、上述した画像処理プログラムをコンピュータにより読取可能な媒体またはコンピュータにより読取可能なメモリとして構成してもよい。
In the present invention, each step of the above-described image processing method may be configured as an image processing program for causing a computer to execute, or the computer may be configured as each unit for performing each step of the image processing method. Or you may comprise as an image processing program made to function as each means which comprises the image processing apparatus mentioned above.
Further, the present invention may be configured as a computer-readable medium or a computer-readable memory for the above-described image processing program.

以上、本発明の画像処理装置、立体画像印刷システム、画像処理方法およびプログラムについて詳細に説明したが、本発明は、上記実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において、各種の改良や変更を行ってもよい。   The image processing apparatus, the stereoscopic image printing system, the image processing method, and the program according to the present invention have been described in detail above. However, the present invention is not limited to the above-described embodiment, and the scope of the present invention is not deviated. Various improvements and changes may be made.

1 立体画像印刷システム
10 画像処理装置
12 立体画像データ入力手段
14 被写体抽出手段
16 立体度算出手段
18 立体画像データ記録手段
20 顔の向き検出手段
30 立体画像データ
32 ヘッダ
40 テンプレート記録手段
42 テンプレート選択手段
44 合成手段
46 印刷装置
60a〜60d,100 立体画像
61,63,72,88,102 被写体
62,64,74,90,104 キャラクタ
66,68,69,70,76,78,92,94,106,108a〜108h 立体度(顔の向きを含む)
DESCRIPTION OF SYMBOLS 1 Stereoscopic image printing system 10 Image processing apparatus 12 Stereoscopic image data input means 14 Subject extraction means 16 Stereogenicity calculation means 18 Stereoscopic image data recording means 20 Face direction detection means 30 Stereoscopic image data 32 Header 40 Template recording means 42 Template selection means 44 Composing means 46 Printing device 60a to 60d, 100 Stereoscopic image 61, 63, 72, 88, 102 Subject 62, 64, 74, 90, 104 Character 66, 68, 69, 70, 76, 78, 92, 94, 106 , 108a to 108h Three-dimensionality (including face orientation)

Claims (16)

立体画像を構成する立体画像データを外部から入力するための立体画像データ入力手段と、
前記立体画像データから被写体を抽出する被写体抽出手段と、
前記立体画像データに含まれる視点の異なる複数の平面画像データから前記被写体の立体度を算出する立体度算出手段と、
前記立体度と前記立体画像データとを関連付けて記録する立体画像データ記録手段と、
複数種類の立体画像テンプレートが記録されたテンプレート記録手段と、
前記テンプレート記録手段に記録された複数種類の立体画像テンプレートの中から、前記立体画像データと関連付けて記録された立体度に基づいて所定数の立体画像テンプレートを選択するテンプレート選択手段と、
前記立体画像データと前記テンプレート選択手段により選択される所定数の立体画像テンプレートのうちユーザにより選択される1つの立体画像テンプレートとを合成し、合成立体画像を構成する合成立体画像データを出力する合成手段と、を有することを特徴とする画像処理装置。
Stereoscopic image data input means for inputting stereoscopic image data constituting the stereoscopic image from the outside;
Subject extraction means for extracting a subject from the stereoscopic image data;
Stereoscopic degree calculating means for calculating the stereoscopic degree of the subject from a plurality of planar image data having different viewpoints included in the stereoscopic image data;
Stereoscopic image data recording means for recording the stereoscopic degree and the stereoscopic image data in association with each other;
Template recording means in which a plurality of types of stereoscopic image templates are recorded;
A template selection unit that selects a predetermined number of stereoscopic image templates based on the stereoscopic degree recorded in association with the stereoscopic image data from among a plurality of types of stereoscopic image templates recorded in the template recording unit;
Combining the stereoscopic image data with one stereoscopic image template selected by a user from a predetermined number of stereoscopic image templates selected by the template selection means, and outputting combined stereoscopic image data constituting a combined stereoscopic image And an image processing apparatus.
前記テンプレート選択手段は、前記被写体の立体度をNとして、N/3よりも大きく3Nよりも小さい範囲の立体度のキャラクタを含む立体画像テンプレートを選択するものである請求項1に記載の画像処理装置。   2. The image processing according to claim 1, wherein the template selection unit selects a stereoscopic image template including a character having a stereoscopic degree in a range larger than N / 3 and smaller than 3N, where N is the stereoscopic degree of the subject. apparatus. 前記被写体抽出手段は、さらに、前記被写体の顔を抽出するものであって、
さらに、前記被写体の顔の向きを検出する顔の向き検出手段を有する請求項1または2に記載の画像処理装置。
The subject extracting means further extracts a face of the subject,
The image processing apparatus according to claim 1, further comprising a face direction detecting unit configured to detect a face direction of the subject.
前記テンプレート選択手段は、さらに、前記立体画像における被写体の顔の向きおよび該被写体の位置に基づいて、前記立体画像テンプレートを選択するものである請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein the template selection unit is further configured to select the stereoscopic image template based on a face orientation and a position of the subject in the stereoscopic image. 前記テンプレート選択手段は、前記被写体の顔の向きが左側もしくは右側で、該被写体が前記立体画像の左側もしくは右側に配置され、前記立体画像テンプレートに含まれるキャラクタが右側もしくは左側に配置される場合、該被写体の顔の向きが前記キャラクタの方を向く場合には、上下方向のうち前記被写体の顔の向きと逆方向の前記キャラクタの顔の向きを非選択とし、前記被写体の顔の向きが前記キャラクタの方を向かない場合には、左右方向のうち前記被写体の顔の向きと逆方向の前記キャラクタの顔の向きを非選択とし、かつ、上下方向のうち前記被写体の顔の向きと逆方向の前記キャラクタの顔の向きを非選択とし、それ以外の顔の向きの前記キャラクタを含む立体画像テンプレートを選択するものである請求項4に記載の画像処理装置。   The template selection means, when the face direction of the subject is on the left or right side, the subject is arranged on the left or right side of the stereoscopic image, and the character included in the stereoscopic image template is arranged on the right or left side, When the direction of the face of the subject faces the character, the character's face direction opposite to the direction of the subject's face in the up-down direction is not selected, and the face direction of the subject is When not facing the character, the direction of the character's face opposite to the direction of the subject's face in the left-right direction is not selected, and the direction opposite to the direction of the face of the subject in the vertical direction 5. The image according to claim 4, wherein the face orientation of the character is not selected and a stereoscopic image template including the character of any other face orientation is selected. Processing apparatus. 前記テンプレート選択手段は、前記被写体の顔の向きが左側もしくは右側で、該被写体が中央に配置され、前記立体画像テンプレートに含まれるキャラクタが前記被写体の右側もしくは左側に配置される場合には、前記被写体の顔の向きに係わらず、上下方向のうち該被写体の顔の向きと逆方向の前記キャラクタの顔の向きを非選択とし、それ以外の顔の向きの前記キャラクタを含む立体画像テンプレートを選択するものである請求項4に記載の画像処理装置。   The template selecting means is arranged such that when the face of the subject is on the left side or the right side, the subject is placed in the center, and the character included in the stereoscopic image template is placed on the right side or the left side of the subject, Regardless of the orientation of the subject's face, the character's face orientation in the up / down direction opposite to the subject's face orientation is not selected, and a stereoscopic image template including the character with any other face orientation is selected. The image processing apparatus according to claim 4. 前記テンプレート選択手段は、前記被写体の顔の向きが中央の場合には、該被写体の配置および顔の向きに係わらず、上下方向のうち前記被写体の顔の向きと逆方向の前記立体画像テンプレートに含まれるキャラクタの顔の向きを非選択とし、それ以外の顔の向きの前記キャラクタを含む立体画像テンプレートを選択するものである請求項4に記載の画像処理装置。   When the face direction of the subject is the center, the template selection unit applies the stereoscopic image template in the up-down direction opposite to the face direction of the subject regardless of the arrangement of the subject and the face direction. The image processing apparatus according to claim 4, wherein the face direction of the included character is not selected, and a stereoscopic image template including the character having the other face direction is selected. 前記テンプレート選択手段は、前記立体画像テンプレートに含まれるキャラクタの立体度および顔の向きに優先順位を設け、該優先順位に従って前記立体画像テンプレートを選択するものである請求項4に記載の画像処理装置。   The image processing apparatus according to claim 4, wherein the template selection unit sets a priority order for the stereoscopic degree and the face direction of the character included in the stereoscopic image template, and selects the stereoscopic image template according to the priority order. . 前記テンプレート選択手段は、前記立体画像テンプレートに含まれるキャラクタの立体度および顔の向きをプレビュー画面に表示して、該プレビュー画面に表示された複数の立体画像テンプレートの中から、ユーザにより選択される1つの立体画像テンプレートを選択するものである請求項1〜8のいずれかに記載の画像処理装置。   The template selection means displays a character's stereoscopic degree and face orientation included in the stereoscopic image template on a preview screen, and is selected by the user from a plurality of stereoscopic image templates displayed on the preview screen. The image processing apparatus according to claim 1, wherein one stereoscopic image template is selected. 前記被写体抽出手段は、前記被写体の複数の部位を抽出し、
前記立体度算出手段は、前記被写体の複数の部位の立体度を算出するものである請求項1〜9のいずれかに記載の画像処理装置。
The subject extracting means extracts a plurality of parts of the subject,
The image processing apparatus according to claim 1, wherein the three-dimensionality calculation unit calculates the three-dimensionality of a plurality of parts of the subject.
前記立体画像データ記録手段は、前記被写体の立体度を、前記立体画像データのExifタグに記録するものである請求項1〜10のいずれかに記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the stereoscopic image data recording unit is configured to record the stereoscopic degree of the subject in an Exif tag of the stereoscopic image data. 前記立体画像データ記録手段は、前記被写体の立体度を、前記立体画像データとは別のファイルに記録するものである請求項1〜10のいずれかに記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the stereoscopic image data recording unit records the stereoscopic degree of the subject in a file different from the stereoscopic image data. 前記立体度算出手段は、前記視点の異なる複数の平面画像データから前記被写体の視差および前記視点から前記被写体までの距離を算出し、該視差および距離から前記被写体の立体度を算出するものである請求項1〜12のいずれかに記載の画像処理装置。   The stereoscopic degree calculating means calculates the parallax of the subject and the distance from the viewpoint to the subject from a plurality of planar image data having different viewpoints, and calculates the stereoscopic degree of the subject from the parallax and the distance. The image processing apparatus according to claim 1. 請求項1〜13のいずれかに記載の画像処理装置と、
前記画像処理装置から出力される合成立体画像データに対応する合成立体画像を印刷する印刷装置と、を有することを特徴とする立体画像印刷システム。
An image processing device according to any one of claims 1 to 13,
A stereoscopic image printing system, comprising: a printing apparatus that prints a combined stereoscopic image corresponding to the combined stereoscopic image data output from the image processing apparatus.
外部から入力される、立体画像を構成する立体画像データを受け取る立体画像データ入力ステップと、
前記立体画像データから被写体を抽出する被写体抽出ステップと、
前記立体画像データに含まれる視点の異なる複数の平面画像データから前記被写体の立体度を算出する立体度算出ステップと、
前記立体度と前記立体画像データとを関連付けて記録する立体画像データ記録ステップと、
あらかじめ記録されている複数種類の立体画像テンプレートの中から、前記立体画像データと関連付けて記録された立体度に基づいて所定数の立体画像テンプレートを選択するテンプレート選択ステップと、
前記立体画像データと前記選択された所定数の立体画像テンプレートのうちユーザにより選択される1つの立体画像テンプレートとを合成し、合成立体画像を構成する合成立体画像データを出力する合成ステップと、を有することを特徴とする画像処理方法。
A stereoscopic image data input step for receiving stereoscopic image data constituting the stereoscopic image input from the outside;
A subject extraction step of extracting a subject from the stereoscopic image data;
A stereoscopic degree calculating step of calculating the stereoscopic degree of the subject from a plurality of planar image data having different viewpoints included in the stereoscopic image data;
A stereoscopic image data recording step of recording the stereoscopic degree and the stereoscopic image data in association with each other;
A template selection step of selecting a predetermined number of stereoscopic image templates based on the stereoscopic degree recorded in association with the stereoscopic image data from a plurality of types of stereoscopic image templates recorded in advance;
Combining the stereoscopic image data with one stereoscopic image template selected by the user from the selected predetermined number of stereoscopic image templates, and outputting combined stereoscopic image data constituting a combined stereoscopic image; An image processing method comprising:
請求項15に記載の画像処理方法の各ステップをコンピュータに実行させるためのプログラム。   A program for causing a computer to execute each step of the image processing method according to claim 15.
JP2011019751A 2011-02-01 2011-02-01 Image processor, stereoscopic image printing system, image processing method and program Withdrawn JP2012160058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011019751A JP2012160058A (en) 2011-02-01 2011-02-01 Image processor, stereoscopic image printing system, image processing method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011019751A JP2012160058A (en) 2011-02-01 2011-02-01 Image processor, stereoscopic image printing system, image processing method and program

Publications (1)

Publication Number Publication Date
JP2012160058A true JP2012160058A (en) 2012-08-23

Family

ID=46840530

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011019751A Withdrawn JP2012160058A (en) 2011-02-01 2011-02-01 Image processor, stereoscopic image printing system, image processing method and program

Country Status (1)

Country Link
JP (1) JP2012160058A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473809B (en) * 2013-09-27 2016-01-27 武汉大学 Based on the valley water security management method of 3D printing technique
US9342766B2 (en) 2013-08-02 2016-05-17 Seiko Epson Corporation Image generation program and printer for printing composite image on a medium arranged so as to face a lens layer having a plurality of lenses

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9342766B2 (en) 2013-08-02 2016-05-17 Seiko Epson Corporation Image generation program and printer for printing composite image on a medium arranged so as to face a lens layer having a plurality of lenses
CN103473809B (en) * 2013-09-27 2016-01-27 武汉大学 Based on the valley water security management method of 3D printing technique

Similar Documents

Publication Publication Date Title
JP2012160039A (en) Image processor, stereoscopic image printing system, image processing method and program
JP4649219B2 (en) Stereo image generator
TWI554080B (en) An image processing apparatus, a program, an image processing method, a recording method, and a recording medium
JP5325255B2 (en) Stereoscopic image display device, stereoscopic image display method, and stereoscopic image display program
US7321682B2 (en) Image generation system, image generation method, program, and information storage medium
JP4488996B2 (en) Multi-view image creation apparatus, multi-view image creation method, and multi-view image creation program
EP2603834B1 (en) Method for forming images
EP3087554A1 (en) 3-d light field camera and photography method
JP4471979B2 (en) Image composition apparatus and image composition method
JP4958689B2 (en) Stereoscopic image generating apparatus and program
JP2010237410A (en) Image display apparatus and method, and program
US8648953B2 (en) Image display apparatus and method, as well as program
KR101212223B1 (en) Device taking a picture and method to generating the image with depth information
JP4699064B2 (en) Stereoscopic fundus image processing method and processing apparatus
JP2012160058A (en) Image processor, stereoscopic image printing system, image processing method and program
JP2003284095A (en) Stereoscopic image processing method and apparatus therefor
EP2506587A2 (en) Stereoscopic display apparatus
JP2006211383A (en) Stereoscopic image processing apparatus, stereoscopic image display apparatus, and stereoscopic image generating method
JP4698307B2 (en) Stereoscopic image processing method, stereoscopic image processing apparatus, program, and recording medium storing program
JP5367747B2 (en) Imaging apparatus, imaging method, and imaging system
JP2013250757A (en) Image processing device, image processing method, and program
JP5428723B2 (en) Image generating apparatus, image generating method, and program
JP2006201950A (en) Image processing system and image processing method
JP2007194694A (en) Three-dimensional video photographing apparatus and program thereof
JP5604173B2 (en) Playback device, display device, recording device, and storage medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140401