Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7657602B2 - IMAGE SYNTHESIS METHOD, COMPUTER PROGRAM, AND IMAGE SYNTHESIS DEVICE - Google Patents
[go: Go Back, main page]

JP7657602B2 - IMAGE SYNTHESIS METHOD, COMPUTER PROGRAM, AND IMAGE SYNTHESIS DEVICE - Google Patents

IMAGE SYNTHESIS METHOD, COMPUTER PROGRAM, AND IMAGE SYNTHESIS DEVICE Download PDF

Info

Publication number
JP7657602B2
JP7657602B2 JP2021021665A JP2021021665A JP7657602B2 JP 7657602 B2 JP7657602 B2 JP 7657602B2 JP 2021021665 A JP2021021665 A JP 2021021665A JP 2021021665 A JP2021021665 A JP 2021021665A JP 7657602 B2 JP7657602 B2 JP 7657602B2
Authority
JP
Japan
Prior art keywords
image
depth distance
subject
size
distance
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
JP2021021665A
Other languages
Japanese (ja)
Other versions
JP2022124095A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2021021665A priority Critical patent/JP7657602B2/en
Publication of JP2022124095A publication Critical patent/JP2022124095A/en
Application granted granted Critical
Publication of JP7657602B2 publication Critical patent/JP7657602B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Description

本発明は、画像合成方法等に関する。 The present invention relates to an image synthesis method, etc.

従来、撮影した画像にオブジェクトを合成配置する技術がある。
特許文献1には、画像撮影時に被写体までの距離を取得することで撮影空間の実座標空間を生成し、指定した実空間座標に応じてオブジェクトを加工して表示する方法が提案されている。
Conventionally, there is a technique for compositing and arranging an object in a captured image.
Patent Document 1 proposes a method of generating a real coordinate space of the shooting space by acquiring the distance to the subject when shooting an image, and processing and displaying an object according to the specified real space coordinates.

特許第6685814号公報Patent No. 6685814

特許文献1に記載されている技術では、撮影画像と距離情報から生成した実座標空間中の指定した合成位置の座標に応じてオブジェクト画像を加工して合成している。ここでの合成位置指定は3次元座標を2次元の撮影画像に射影した2次元画像上での指定であり、XY座標(平面位置)を指定した時点でZ座標(奥行き位置)が決定されてしまう。従って、撮影画像上の平面位置(XY座標)を固定した状態で、任意に奥行き位置(Z座標)を変化させてオブジェクト画像を合成することができない。 In the technology described in Patent Document 1, an object image is processed and synthesized according to the coordinates of a specified synthesis position in a real coordinate space generated from a captured image and distance information. The synthesis position is specified on a two-dimensional image in which three-dimensional coordinates are projected onto a two-dimensional captured image, and the Z coordinate (depth position) is determined at the time the XY coordinates (planar position) are specified. Therefore, it is not possible to synthesize an object image by arbitrarily changing the depth position (Z coordinate) while keeping the planar position (XY coordinates) on the captured image fixed.

上記の課題を鑑み、本発明は、上記の課題を解決し、直感的な操作で平面上での合成位置と奥行き距離を変更できる画像合成方法を提供することを目的とする。 In view of the above problems, the present invention aims to provide an image synthesis method that solves the above problems and allows intuitive operation to change the synthesis position and depth distance on a plane.

上記目的を達成するために、本発明の画像合成方法は、
第1の画像上に第2の画像を合成する画像合成方法であって、
前記第2の画像を合成するための前記第1の画像上の指定位置を検出する位置検出工程と、
前記指定位置における前記第1の画像の被写体距離情報と、前記第2の画像の被写体の大きさ情報をもとに、前記第2の画像の被写体の大きさを、前記指定位置における前記第1の画像の被写体距離に対応した大きさになるように変更して、合成表示する合成表示工程と、
前記指定位置上において、前記指定位置における前記被写体距離とは異なる奥行き距離に前記第2の画像を配置するための奥行き距離変更操作を検出する奥行き距離変更検出工程と、
前記奥行き距離変更操作に応じて、前記第2の画像の大きさを変更する大きさ変更工程と、
前記奥行き距離変更操作に応じて、変更された奥行き距離情報を表示する奥行き距離情報表示工程と、
を有し、
前記奥行き距離情報表示工程において、前記奥行き距離に対応した前記第1の画像の領域を強調表示することを特徴とする。
In order to achieve the above object, the image synthesis method of the present invention comprises the steps of:
1. A method for compositing a second image onto a first image, comprising the steps of:
a position detection step of detecting a designated position on the first image for synthesizing the second image;
a composite display step of changing a size of the subject of the second image based on subject distance information of the first image at the specified position and size information of the subject of the second image so that the size corresponds to the subject distance of the first image at the specified position, and displaying the composite image;
a depth distance change detection step of detecting a depth distance change operation for disposing the second image at a depth distance different from the subject distance at the specified position on the specified position;
a size changing step of changing a size of the second image in response to the depth distance change operation;
a depth distance information display step of displaying changed depth distance information in response to the depth distance change operation;
having
In the depth distance information display step, a region of the first image corresponding to the depth distance is highlighted .

本発明によれば、直感的な操作で平面上での合成位置と奥行き距離を変更できる画像合成方法を実現できる。 The present invention provides an image synthesis method that allows intuitive changes to the synthesis position and depth distance on a plane.

本発明の実施例の画像合成方法を実行するための主要な機能構成を示すブロック図である。1 is a block diagram showing a main functional configuration for executing an image synthesis method according to an embodiment of the present invention; 実施例にて実行される処理を説明するフローチャートである。4 is a flowchart illustrating a process executed in the embodiment. 実施例にて実行される第1の画像選択に係る表示方法を示す図である。FIG. 11 is a diagram showing a display method relating to a first image selection executed in the embodiment. 実施例にて実行される第2の画像選択に係る表示方法を示す図である。FIG. 11 is a diagram showing a display method relating to a second image selection executed in the embodiment. 実施例にて実行される第2の画像選択に係る被写体抽出を説明する図である。13A to 13C are diagrams illustrating subject extraction according to the second image selection executed in the embodiment. 実施例に係る第2の画像上の基準点の位置を説明する図である。FIG. 13 is a diagram for explaining the position of a reference point on a second image in the embodiment. 実施例にて第1の画像の被写体距離に応じて第2の画像の大きさを変更して合成する方法を説明する図である。11A and 11B are diagrams illustrating a method for changing the size of a second image in accordance with a subject distance of a first image and synthesizing the first image in an embodiment. 奥行き距離を変更した場合に合成される第2の画像の大きさの変化、及び合成する奥行き距離の表示方法の例を説明する図である。13A to 13C are diagrams illustrating an example of a change in size of a second image to be synthesized when the depth distance is changed, and a method of displaying the depth distance to be synthesized. 実施例にて合成する奥行き距離の他の表示方法を説明する図である。13A and 13B are diagrams illustrating another method of displaying the depth distance synthesized in the embodiment.

以下、添付図面を参照して、本発明の好適な実施の形態について実施例を用いて説明する。なお、各図において、同一の部材ないし要素については同一の参照番号を付し、重複する説明は省略ないし簡略化する。 Below, preferred embodiments of the present invention will be described using examples with reference to the attached drawings. Note that in each drawing, the same members or elements are given the same reference numbers, and duplicate descriptions will be omitted or simplified.

なお、以下に説明する実施例では、画像処理装置としてコンピュータを用いて本実施例の画像合成方法を実行する例を説明する。即ち、本実施例は、デスクトップコンピュータ、ラップトップコンピュータ、タブレットコンピュータ及びスマートフォーン等において実行可能である。 In the embodiment described below, an example of executing the image synthesis method of this embodiment using a computer as an image processing device will be described. That is, this embodiment can be executed on a desktop computer, a laptop computer, a tablet computer, a smartphone, etc.

本実施例の画像合成方法は、デジタルカメラ等の撮像装置から撮影画像と前記撮影画像に対応する距離情報(距離マップ情報)等を取得し、前記撮影画像の所望の平面上の位置及び奥行き位置(奥行き距離)に別の画像を直感的に合成できるようにしている。又、その際に、前記奥行き位置(奥行き距離)に応じた適切な大きさの画像を合成するようにしている。 The image synthesis method of this embodiment acquires a captured image and distance information (distance map information) corresponding to the captured image from an imaging device such as a digital camera, and enables intuitive synthesis of another image at a desired planar position and depth position (depth distance) of the captured image. In addition, at that time, an image of an appropriate size according to the depth position (depth distance) is synthesized.

図1を参照して、本実施例の画像合成方法を実行する画像処理装置としてのコンピュータの構成について説明する。図1は、本実施例の画像合成方法を実行するための主要な機能構成を示すブロック図であり、周辺的な構成要素は図示していない。
図1の入力部10は、マウス、キーボード、ジョイスティック、タッチパネルディスプレイといったユーザによる操作入力を取得するユーザインターフェイスを有する。又、入力部10は、デジタルカメラあるいは他の外部装置から画像や距離情報(距離マップ情報)を取得するインターフェイス(I/F)を有する。
The configuration of a computer as an image processing device that executes the image synthesis method of this embodiment will be described with reference to Fig. 1. Fig. 1 is a block diagram showing the main functional configuration for executing the image synthesis method of this embodiment, and does not show peripheral components.
1 has a user interface for receiving operational input from a user, such as a mouse, a keyboard, a joystick, a touch panel display, etc. The input unit 10 also has an interface (I/F) for receiving images and distance information (distance map information) from a digital camera or other external device.

制御部11は、入力部10、演算部12、記憶部13、出力部14のデータを制御や画像処理装置100全体の各部の制御を行う。即ち、制御部11は、コンピュータとしてのCPUを内蔵しており、不揮発性メモリに記憶されたコンピュータプログラムに基づき、バスを介して画像処理装置100全体の各部の制御を行う。
演算部12は、演算処理装置を有し、例えば記憶部13に格納された演算処理プログラムを実行する。
The control unit 11 controls data in the input unit 10, the calculation unit 12, the storage unit 13, and the output unit 14, and controls each unit of the entire image processing device 100. That is, the control unit 11 has a built-in CPU as a computer, and controls each unit of the entire image processing device 100 via a bus based on a computer program stored in a non-volatile memory.
The calculation unit 12 has a calculation processing device and executes a calculation processing program stored in the storage unit 13, for example.

記憶部13は、半導体メモリ等の一次記憶装置やハードディスク等の二次記憶装置のから構成されている。記憶部13は、コンピュータプログラムとしての演算処理プログラムを記憶すると共に、入力部10を介して入力される画像データ、距離情報、被写体大きさ情報、パラメータ等の各種情報を記憶する。又、記憶部13は、演算部12で合成された画像を格納する。 The storage unit 13 is composed of a primary storage device such as a semiconductor memory and a secondary storage device such as a hard disk. The storage unit 13 stores a calculation processing program as a computer program, and also stores various information such as image data, distance information, subject size information, and parameters input via the input unit 10. The storage unit 13 also stores the image synthesized by the calculation unit 12.

出力部14は、表示部としてのディスプレイ、及び画像等を外部に出力するためのI/Fを含む。なお、本実施例の出力部14のディスプレイは、例えばユーザインターフェイス機能を併せ持つタッチパネルディスプレイとなっている。 The output unit 14 includes a display as a display unit and an I/F for outputting images and the like to the outside. In this embodiment, the display of the output unit 14 is, for example, a touch panel display that also has a user interface function.

次に、図2は実施例にて実行される処理を説明するフローチャートであり、本実施例の画像合成処理について、図2のフローチャートを用いて説明する。
尚、図2のフローチャートに示される処理は、制御部11が例えば記憶部13内の不揮発性メモリに記憶されているコンピュータプログラムを読み出し、制御部11内の揮発性メモリに展開して実行することで各部が動作することにより実現する。
Next, FIG. 2 is a flow chart for explaining the processing executed in the embodiment, and the image synthesis processing of the embodiment will be explained with reference to the flow chart of FIG.
The processing shown in the flowchart of FIG. 2 is realized by the control unit 11 reading out a computer program stored in, for example, non-volatile memory in the storage unit 13, expanding it into volatile memory in the control unit 11, and executing it, thereby causing each unit to operate.

ステップS201で、制御部11は、記憶部13に格納された複数の画像を第1の画像(背景画像)の候補として出力部14のタッチパネルディスプレイに表示する。なお、図3は本実施例にて実行される第1の画像選択に係る表示方法を示す図であり、表示は、図3に示すようなサムネイル表示、又は1つの画像を表示し表示画像をユーザの操作により変更可能なように表示する。
表示された画像に対し入力部10を介してユーザが所望の画像の表示領域に対しタップ操作を行う事で第1の画像(背景画像)が選択される。
In step S201, the control unit 11 displays a plurality of images stored in the storage unit 13 as candidates for the first image (background image) on the touch panel display of the output unit 14. Note that Fig. 3 is a diagram showing a display method related to the first image selection executed in this embodiment, and the display is a thumbnail display as shown in Fig. 3, or a single image is displayed so that the displayed image can be changed by a user operation.
When the user performs a tap operation on the display area of a desired image on the displayed images via the input unit 10, a first image (background image) is selected.

本実施例では、記憶部13に格納された画像は被写体距離情報(被写体距離マップ情報)が付加された画像であり、不図示の撮像装置(カメラ)及び測距部から入力部10のインターフェイスを介して画像処理装置100に入力された画像である。或いは、外部の撮影機器によって撮影された、被写体距離情報(被写体距離マップ情報)が付加された画像を一旦外部装置に保存し、その後、入力部10のインターフェイスを介して取得し、記憶部13に格納した画像などである。ここで、被写体距離情報(被写体距離マップ情報)とは例えば所定画素毎に記録された被写体距離の情報である。 In this embodiment, the image stored in the memory unit 13 is an image to which subject distance information (subject distance map information) has been added, and is an image input to the image processing device 100 from an imaging device (camera) and a distance measurement unit (not shown) via the interface of the input unit 10. Alternatively, it is an image to which subject distance information (subject distance map information) has been added, which has been captured by an external imaging device, and which is temporarily saved in an external device, and then acquired via the interface of the input unit 10 and stored in the memory unit 13. Here, the subject distance information (subject distance map information) is, for example, information on the subject distance recorded for each predetermined pixel.

ステップS202で、制御部11は、図4に示すようにステップS201で選択された第1の画像(背景画像)を出力部14のタッチパネルディスプレイの一部(領域401)に表示する。
図4は、実施例にて実行される第2の画像選択に係る表示方法を示す図である。
前記タッチパネルディスプレイの第1の画像を表示した領域401と異なる領域402に、第1の画像に合成する合成用の複数の画像の候補をユーザが選択可能なように表示する。尚、図4ではサムネイル表示を例に示しているが他の表示方法でもよい。
In step S202, the control unit 11 displays the first image (background image) selected in step S201 in a part (area 401) of the touch panel display of the output unit 14 as shown in FIG.
FIG. 4 is a diagram showing a display method relating to a second image selection executed in the embodiment.
In an area 402 of the touch panel display different from an area 401 in which the first image is displayed, a plurality of candidate images to be combined with the first image are displayed so that the user can select them. Note that although thumbnail display is shown as an example in FIG. 4, other display methods may be used.

ここではステップS201で第1の画像を選択し、ステップS202で第1の画像を表示すると共に合成用の複数の画像を表示する、という順で説明したが、必ずしもこの順序での指定に限定するものではない。予め、領域402に合成用の複数の画像を表示しておくこともできる。 Here, we have described the order of selecting a first image in step S201, and then displaying the first image and multiple images to be combined in step S202, but this order is not necessarily the only option. Multiple images to be combined can also be displayed in advance in area 402.

そして、特定の記憶領域に複数の第1の画像候補を格納しておき、領域401にその中の1つの画像を表示し、領域401のスワイプ動作をすることで他の第1の画像に変更可能なように構成することもできる。或いは、領域401の左右の周辺部に例えばそれぞれ左向き矢印、右向き矢印を表示し、いずれかの矢印をタップ操作することで前記記憶領域内の他の画像を順次表示可能なように構成しても良い。 A configuration may also be adopted in which a plurality of first image candidates are stored in a specific storage area, one of which is displayed in area 401, and which allows the user to change to another first image by swiping area 401. Alternatively, a configuration may also be adopted in which a left-pointing arrow and a right-pointing arrow are displayed on the left and right periphery of area 401, respectively, and the other images in the storage area can be displayed in sequence by tapping on either arrow.

このように構成することで、複雑なメニュー選択等を用いることなく、背景画像としての第1の画像の変更を容易に行うことが可能となる。
ステップS203で、ユーザが入力部10のタッチパネルディスプレイを操作し、タップ操作又はタッチ操作により前記第1の画像(背景画像)に合成する合成用の画像を領域402より選択する。選択された合成用画像を第2の画像とする。即ち、ユーザの指が接触した前記タッチパネルディスプレイ上の座標に表示されている画像が選択された第2の画像となる。
With this configuration, it is possible to easily change the first image used as the background image without using complex menu selection or the like.
In step S203, the user operates the touch panel display of the input unit 10 and selects an image to be combined with the first image (background image) from the area 402 by tapping or touching. The selected image to be combined is set as the second image. That is, the image displayed at the coordinates on the touch panel display touched by the user's finger becomes the selected second image.

制御部11は、選択された第2の画像と共に、第2の画像に付属するメタ情報を取得する。メタ情報は、例えばExif形式で保存されるタグのデータやメーカーノート情報として保存される。ステップS203で取得されるメタ情報は、第2の画像に存在する被写体の大きさに関連する情報(大きさ情報)等を含む。 The control unit 11 acquires the selected second image together with meta information associated with the second image. The meta information is saved, for example, as tag data saved in Exif format or maker note information. The meta information acquired in step S203 includes information related to the size of the subject present in the second image (size information), etc.

被写体の大きさ情報は、第2の画像の中で画像認識された被写体の領域情報(座標情報)とその大きさの情報を含む。なお、被写体の大きさ情報は、画像の1画素が物体空間上で何mmの大きさに相当するかの情報、顔認識や物体認識された物体(被写体)までの距離情報、被写体撮影時の焦点距離情報、又は被写体の大きさを算出可能な他の情報等を含んでもよい。或いは、被写体までの距離毎に画像をレイヤーに分けた場合のレイヤーのマップに関する情報を含んでも良い。 The subject size information includes area information (coordinate information) of the subject recognized in the second image and information on its size. The subject size information may also include information on how many millimeters one pixel of the image corresponds to in object space, distance information to the object (subject) recognized by face recognition or object recognition, focal length information when the subject was photographed, or other information that allows the size of the subject to be calculated. Alternatively, it may include information on a map of layers when the image is divided into layers according to the distance to the subject.

物体認識情報や距離レイヤー情報がメタ情報として添付されている画像の場合は、ユーザの指が接触したタッチパネルディスプレイ上の座標に表示している画像の中の特定の被写体、又は特定のレイヤーを抽出し第2の画像とすることも可能である。
図5は、実施例にて実行される第2の画像選択に係る被写体抽出を説明する図である。例えば図5(A)に示すように画像501に二人の人物502と503が写っており、人物502の領域をタッチして選択した場合、図5(B)に示す502′のように被写体領域のみを切り出して第2の画像とする。このように、第2の画像は、所定の画像から抽出された所定の被写体画像であっても良い。
In the case of an image to which object recognition information or distance layer information is attached as meta information, it is also possible to extract a specific subject or a specific layer from the image displayed at the coordinates on the touch panel display touched by the user's finger and use it as a second image.
5A and 5B are diagrams for explaining subject extraction related to the second image selection executed in the embodiment. For example, as shown in Fig. 5A, two people 502 and 503 are shown in an image 501, and when the area of the person 502 is touched and selected, only the subject area is cut out as shown in Fig. 5B as 502' and used as the second image. In this way, the second image may be a specified subject image extracted from a specified image.

第2の画像が選択された際に、制御部11は、選択された第2の画像において、画像合成時の基準となる点を設定する。
図6は実施例に係る第2の画像上の基準点の位置を説明する図である。基準点は、例えば第2の画像が矩形である場合は図6(A)に示すように、右上601、右下602、左上603、左下604のいずれかの頂点、各辺のいずれかの中点(605~608)、第2の画像の中心点609のいずれかに設定する。或いはユーザがタッチ操作により第2の画像を選択した際の第2の画像上の接触位置の座標610に設定しても良い。
When the second image is selected, the control unit 11 sets a point in the selected second image that will be used as a reference for image synthesis.
6A and 6B are diagrams for explaining the position of a reference point on a second image according to an embodiment. For example, when the second image is rectangular, the reference point is set to any one of the vertices of the upper right 601, lower right 602, upper left 603, and lower left 604, any one of the midpoints of each side (605 to 608), or the center point 609 of the second image, as shown in Fig. 6A. Alternatively, the reference point may be set to the coordinates 610 of the contact position on the second image when the user selects the second image by a touch operation.

特に被写体は地面等に接触している状態が多いため、基準点を下辺の中点607に設定するのが好適である。
第2の画像が、選択された画像中の特定被写体の形状である場合は、図6(B)に示すように、前記特定被写体の最上端611・最下端612・最右端613・最左端614のいずれかに選択する。
In particular, since the subject is often in contact with the ground or the like, it is preferable to set the reference point at the midpoint 607 of the lower side.
If the second image is the shape of a specific subject in the selected image, one of the topmost end 611, bottommost end 612, rightmost end 613, or leftmost end 614 of the specific subject is selected, as shown in FIG. 6B.

或いは、前記特定被写体の形状幅の中間点の最上端615、形状幅の中間点の最下端616、形状高さの中間点の最右端617、形状高さの中間点の最左端618、形状高さ及び形状幅のそれぞれの中間点619、のいずれかに設定する。特に基準点を形状幅の中間点の最下端616に設定するのが好適である。このように、ステップS203では、第2の画像の基準位置を表示させつつ、第2の画像における基準位置を選択する基準選択工程を含む。 Alternatively, the reference point is set to any of the topmost end 615 of the midpoint of the shape width of the specific subject, the bottommost end 616 of the midpoint of the shape width, the rightmost end 617 of the midpoint of the shape height, the leftmost end 618 of the midpoint of the shape height, and the midpoints 619 of both the shape height and the shape width. It is particularly preferable to set the reference point to the bottommost end 616 of the midpoint of the shape width. Thus, step S203 includes a reference selection step of selecting a reference position in the second image while displaying the reference position of the second image.

ステップS204で、ユーザがステップS203においてタッチ操作により選択した第2の画像をタッチパネルディスプレイ上で例えばドラッグ操作し、タッチパネルディスプレイに表示された第1の画像上で指を離すことでドロップする。その場合、ドロップした第1の画像(背景画像)上の指の位置、即ち、指を離した位置を第2の画像を合成する平面上の合成位置(指定位置)とする。 In step S204, the user drags the second image selected by touch operation in step S203 on the touch panel display, for example, and drops it by releasing the finger on the first image displayed on the touch panel display. In this case, the position of the finger on the dropped first image (background image), i.e., the position where the finger is released, is set as the synthesis position (designated position) on the plane where the second image is synthesized.

ここで、ステップS204は、第2の画像を合成するための第1の画像上の指定位置を検出する位置検出工程(位置検出手段)として機能しており、ユーザがタッチパネルディスプレイ上で第2の画像をドラッグした後にドロップした位置を検出している。
制御部11は、タッチパネルディスプレイ上の上記合成位置の座標に対応する第1の画像(背景画像)上の座標(合成位置座標)を取得する。即ち、合成位置座標に対応する第1の画像中の被写体の距離情報を第1の画像のメタ情報より取得する。
Here, step S204 functions as a position detection process (position detection means) that detects a designated position on the first image for synthesizing the second image, and detects the position where the user drops the second image after dragging it on the touch panel display.
The control unit 11 acquires coordinates (composite position coordinates) on the first image (background image) that correspond to the coordinates of the composite position on the touch panel display. That is, the control unit 11 acquires distance information of the subject in the first image that corresponds to the composite position coordinates from the meta information of the first image.

尚、ドラッグ・アンド・ドロップではなく、ステップS203で、例えばタップ操作により第2の画像を選択してから指を離し、第1の画像が表示されたタッチパネルディスプレイ上でタッチ(タップ)操作することにより合成位置を指定するようにしてもよい。
なお、合成位置を指定する際に、タッチパネルディスプレイ上のタッチ(タップ)操作した位置を合成位置にする場合、合成位置の細かな調整をするのが困難な場合がある。そこで合成位置が明確に識別可能なように接触位置からずらした領域でユーザの指に重ならない位置を合成位置として強調表示するようにしても良い。
Incidentally, instead of dragging and dropping, in step S203, the second image may be selected, for example, by a tap operation, and then the finger may be released, and the combination position may be specified by touching (tapping) the touch panel display on which the first image is displayed.
In addition, when specifying the synthesis position, if the position touched (tapped) on the touch panel display is set as the synthesis position, it may be difficult to finely adjust the synthesis position. Therefore, in order to clearly identify the synthesis position, a position that does not overlap with the user's finger in an area shifted from the contact position may be highlighted as the synthesis position.

ステップS205で、制御部11は、取得した第1の画像(背景画像)上の合成位置座標における第1の画像の被写体距離の情報と、第2の画像の大きさに関する情報を演算部12に送信する。演算部12は、入力された情報をもとに第2の画像が、第1の画像上の合成位置座標の被写体距離に配置された場合の大きさ情報を算出する。 In step S205, the control unit 11 transmits information on the subject distance of the first image at the composite position coordinates on the acquired first image (background image) and information on the size of the second image to the calculation unit 12. Based on the input information, the calculation unit 12 calculates size information when the second image is placed at the subject distance of the composite position coordinates on the first image.

即ち、第1の画像上の合成位置座標における被写体距離D1と、第1の画像が撮影された際の焦点距離f1及び第1の画像の1画素の大きさ(像側画素サイズ)s1をもとに、以下の式1でS1を算出する。
ここでS1は、合成位置座標での被写体の距離における第1の画像の1画素の大きさ(物体側画素サイズ)である。
S1=D1s1/f1 (1)
That is, based on the subject distance D1 at the synthesis position coordinates on the first image, the focal length f1 when the first image was captured, and the size of one pixel in the first image (image side pixel size) s1, S1 is calculated using the following equation 1.
Here, S1 is the size of one pixel in the first image at the distance of the subject in the synthesis position coordinates (object-side pixel size).
S1=D1s1/f1 (1)

又、第2の画像中の被写体の大きさ情報に基づき、第2の画像(合成用画像)中の被写体の大きさOsが、物体側画素サイズS1を用いて何画素分のサイズに相当するか換算した換算画素数PN1を算出する。
次に、ステップS206で、演算部12は、第2の画像における被写体の画素数PN2とステップS205で算出した換算画素数PN1の比を用いて、第2の画像の拡大縮小率Rを算出し、算出した拡大縮小率Rをもとに第2の画像を拡大/縮小する。ここで、ステップS203で設定された第2の画像中の画像合成のための基準位置は、拡大/縮小された第2の画像に合わせて再設定される。
In addition, based on the size information of the subject in the second image, a converted pixel number PN1 is calculated by converting the size Os of the subject in the second image (image to be synthesized) into how many pixels it corresponds to using the object-side pixel size S1.
Next, in step S206, the calculation unit 12 calculates a scaling ratio R of the second image using the ratio between the number of pixels PN2 of the object in the second image and the number of converted pixels PN1 calculated in step S205, and enlarges/reduces the second image based on the calculated scaling ratio R. Here, the reference position for image synthesis in the second image set in step S203 is reset to match the enlarged/reduced second image.

ステップS207で、制御部11は、ステップS205で指定された第1の画像上の合成位置座標に、ステップS206で演算された拡大/縮小後の第2の画像の基準点が一致するように合成する。即ち、ステップS203で選択された基準位置を第1の画像上の指定位置と一致させて合成表示を行う。
合成は、拡大/縮小後の第2の画像が合成される領域の第1の画像を、拡大/縮小後の第2の画像で置換することにより行われる。
In step S207, the control unit 11 performs synthesis so that the reference point of the second image after enlargement/reduction calculated in step S206 coincides with the synthesis position coordinates on the first image specified in step S205. That is, synthesis is performed by matching the reference position selected in step S203 with the specified position on the first image.
The compositing is performed by replacing the first image with the scaled second image in the area where the scaled second image is to be composited.

ただし、第2の画像を合成する第1の画像の領域において、第2の画像の合成位置より手前の被写体距離にある領域は、第2の画像で置換せずにそのまま第1の画像を表示する。即ち、第2の画像が合成される第1の画像領域のうち、指定位置の奥行き距離にある領域では第2の画像を表示し、指定位置の奥行き距離より手前にある領域では第1の画像を表示する。これにより被写体の前後の奥行き関係を考慮した合成が可能となる。 However, in the area of the first image into which the second image is composited, areas that are at a subject distance in front of the composite position of the second image display the first image as is without being replaced with the second image. In other words, in the area of the first image into which the second image is composited, areas that are at a depth distance from the specified position display the second image, and areas that are in front of the depth distance from the specified position display the first image. This enables composition that takes into account the depth relationship in front of and behind the subject.

このような処理により、第1の画像上の合成位置座標における、撮像装置(カメラ)から被写体までの奥行き距離の位置に、第2の画像の被写体が配置された場合に、第2の画像の被写体の大きさが、撮像装置から観察される大きさに変更されて合成される。即ち、第2の画像の被写体を合成する場合、合成位置の第1の画像の奥行き距離(被写体距離)が近ければ第2の画像の被写体は第1の画像上に大きいサイズで合成される。一方、合成位置の第1の画像の奥行き距離(被写体距離)が遠ければ第2の画像の被写体は小さいサイズで合成されることになる。 By this processing, when the subject of the second image is placed at a depth distance from the imaging device (camera) to the subject in the composition position coordinates on the first image, the size of the subject of the second image is changed to the size observed from the imaging device and composited. That is, when the subject of the second image is composited, if the depth distance (subject distance) of the first image at the composition position is close, the subject of the second image is composited at a large size on the first image. On the other hand, if the depth distance (subject distance) of the first image at the composition position is far, the subject of the second image is composited at a small size.

このようにステップS207は合成表示工程(合成表示手段)として機能している。又、指定位置における第1の画像の被写体距離情報と、第2の画像の被写体の大きさ情報をもとに、第2の画像の被写体の大きさを、指定位置における第1の画像の被写体距離に対応した大きさになるように変更して合成表示している。 In this way, step S207 functions as a composite display step (composite display means). Also, based on subject distance information of the first image at the specified position and subject size information of the second image, the size of the subject of the second image is changed to a size that corresponds to the subject distance of the first image at the specified position, and then the composite display is performed.

図7は、実施例にて第1の画像の被写体距離に応じて第2の画像の大きさを変更して合成する方法を説明する図である。
図7に示すように、選択された第2の画像701が、第1の画像上の合成位置702の奥行き距離(被写体距離)に応じて、大きさが変更されて合成される。図7中の703が大きさを変更されて合成された第2の画像701である。
FIG. 7 is a diagram for explaining a method of synthesizing a first image by changing the size of the second image in accordance with the subject distance of the first image in this embodiment.
As shown in Fig. 7, the selected second image 701 is resized and synthesized according to the depth distance (subject distance) of a synthesis position 702 on the first image. 703 in Fig. 7 is the second image 701 that has been resized and synthesized.

尚、ユーザがドラッグ・アンド・ドロップ操作を完了した後でステップS204からステップS207の処理を実行しても良いし、ユーザがドラッグ操作をしている間、ステップS204からステップS207までの処理を周期的に実行しても良い。即ち、ユーザが指定位置を移動している間に、位置検出工程と、合成表示工程とを周期的に実行するようにしても良い。 The processes from step S204 to step S207 may be executed after the user completes the drag-and-drop operation, or the processes from step S204 to step S207 may be executed periodically while the user is performing the drag operation. In other words, the position detection process and the composite display process may be executed periodically while the user is moving the specified position.

周期的に実行することで第1の画像上の距離に応じて第2の画像の大きさを逐次変化させながら表示することができ、ユーザが第2の画像の大きさを確認しながらドロップ位置を変更することが可能となる。又、常に第1の画像上の合成位置と第2の画像の基準点が一致するように表示されるため、これら位置を認識しながら配置(合成位置)を決定することが可能となる。 By executing this periodically, the size of the second image can be changed according to the distance on the first image, allowing the user to change the drop position while checking the size of the second image. In addition, since the composite position on the first image and the reference point of the second image are always displayed to coincide, it is possible to determine the placement (composite position) while recognizing these positions.

次に、ステップS208で、制御部11は、ステップS207で配置した第2の画像の前記第1の画像中での合成する奥行き距離(奥行き位置、被写体距離)を変更するか否かを判定する。
奥行き距離を変更するか否かの判定をする際に、例えば、ユーザが第2の画像を第1の画像上にドラッグして所望の合成位置座標で指を離した場合に合成位置が決定されることとする。
Next, in step S208, the control unit 11 determines whether or not to change the depth distance (depth position, subject distance) at which the second image arranged in step S207 is synthesized in the first image.
When determining whether to change the depth distance, the synthesis position is determined, for example, when the user drags the second image onto the first image and releases his/her finger at the desired synthesis position coordinates.

その時、合成位置座標上で前記所定時間より長い時間タッチしつづけてから指を離したこと、又は合成位置座標上で所定以上の圧力で押してから指を離したことが検出された場合には奥行き距離(被写体距離)を変更すると判定する。或いは、所望の合成位置座標に第2の画像をドラッグ操作してタッチしたままの状態で、他の指でディスプレイをタッチした場合、つまり2点以上のタッチが検出された場合に、奥行き距離を変更すると判定しても良い。 At that time, if it is detected that the finger has been released after touching the synthesis position coordinates for longer than the predetermined time, or that the finger has been released after pressing the synthesis position coordinates with a pressure of a predetermined value or more, it is determined that the depth distance (subject distance) is to be changed. Alternatively, it may be determined that the depth distance is to be changed if the second image is dragged to the desired synthesis position coordinates and kept touching, and another finger is then touched on the display, that is, if two or more touches are detected.

なお、奥行き距離を変更すると判定するための方法は上記の方法に限定されず、他の方法を用いても良い。ここで、ステップS208は、指定位置上において、指定位置における被写体距離とは異なる奥行き距離に第2の画像を配置するための奥行き距離変更操作を検出する奥行き距離変更検出工程(奥行き距離変更検出手段)として機能している。又、上記のように、本実施例では、奥行き距離変更検出工程は、ユーザがタッチパネルディスプレイにタッチした時間又は圧力又は複数点のタッチによって奥行き距離変更操作が行われたことを検出している。 The method for determining that the depth distance is to be changed is not limited to the above method, and other methods may be used. Here, step S208 functions as a depth distance change detection process (depth distance change detection means) that detects a depth distance change operation for placing the second image at a specified position at a depth distance different from the subject distance at the specified position. As described above, in this embodiment, the depth distance change detection process detects that a depth distance change operation has been performed based on the time or pressure with which the user touches the touch panel display, or by touching multiple points.

ステップS208で配置する奥行き距離を変更すると判定された場合は、ステップS209へ処理が移行し、変更しないと判定された場合は、ステップS210へと処理が移行する。
ステップS209で、制御部11は、合成位置座標における、例えばタッチ時間又はタッチ圧力に応じて配置する奥行き距離を変更し、変更した奥行き距離に応じて第2の画像の大きさを変更して第1の合成位置座標上に合成表示する。
If it is determined in step S208 that the depth distance for placement is to be changed, the process proceeds to step S209, and if it is determined that the depth distance is not to be changed, the process proceeds to step S210.
In step S209, the control unit 11 changes the depth distance to be placed at the synthesis position coordinates, for example, depending on the touch time or touch pressure, and changes the size of the second image depending on the changed depth distance, and displays it synthesized on the first synthesis position coordinates.

即ち、ステップS209は、奥行き距離変更操作に応じて、第2の画像の大きさを変更する大きさ変更工程(大きさ変更手段)として機能している。又、奥行き距離変更操作に応じて、変更された奥行き距離情報を表示する奥行き距離情報表示工程(奥行き距離情報表示手段)として機能している。又、本実施例では、奥行き距離変更検出工程において、ユーザがタッチパネルディスプレイにタッチした時間又は圧力又はピンチ操作に応じて前記奥行き距離を変更している。 That is, step S209 functions as a size change process (size change means) that changes the size of the second image in response to the depth distance change operation. It also functions as a depth distance information display process (depth distance information display means) that displays the changed depth distance information in response to the depth distance change operation. In this embodiment, in the depth distance change detection process, the depth distance is changed in response to the time or pressure with which the user touches the touch panel display or a pinch operation.

奥行き距離の変更は徐々に遠方に変化するようにしてもよいし、徐々に手前に変化するように設定してもよい。尚、予め変化方向を選択的に設定できるようにする。
更に又、所定のタッチ時間間隔で奥行き距離と合成する第2の画像サイズを変更して表示を行い、設定された最大又は最小距離に達したら、今度は逆に奥行き距離を最小又は最大距離に向けて徐々に変更するようにしてもよい。
The change in the depth distance may be set so as to gradually change the distance away from the object, or so as to gradually change the distance toward the object. Note that the direction of change may be selectively set in advance.
Furthermore, the size of the second image to be combined with the depth distance may be changed at a predetermined touch time interval and displayed, and when the set maximum or minimum distance is reached, the depth distance may be gradually changed toward the minimum or maximum distance.

又、奥行距離の変更は、タッチ時間以外にもタッチ圧力に応じて変更するようにしても良い。又、奥行き距離の変更間隔は等間隔でもよいし距離応じて間隔を変更してもよく、その場合、例えば遠距離になるほど奥行き距離の変更間隔を広くするのが好ましい。 The depth distance may be changed according to the touch pressure as well as the touch time. The intervals at which the depth distance is changed may be equal or may vary according to the distance. In this case, it is preferable to increase the intervals at which the depth distance is changed as the distance increases.

尚、前記ステップS208で2つ以上のタッチ点が検知された場合に距離変更するように構成した場合は、ピンチ操作(2つのタッチ点の距離を変更する操作)を検知しピンチ操作に合わせて奥行き距離の変更を行うようにしても良い。ピンチ操作では、例えば2つのタッチ点の距離を広げた場合に奥行き距離を近づけ、2つのタッチ点の距離を狭めた場合に奥行き距離を遠ざけるように処理を行う。この際に、特定の被写体体である第2の画像のみのサイズを変更すると共に、対応する奥行き距離を画面に例えば数字で表示する事で従来のピンチ操作による拡大縮小とは異なり、3次元位置の合成作業が容易となる。 If the distance is changed when two or more touch points are detected in step S208, a pinch operation (an operation to change the distance between two touch points) may be detected and the depth distance may be changed in accordance with the pinch operation. In a pinch operation, for example, when the distance between two touch points is increased, the depth distance is made closer, and when the distance between two touch points is decreased, the depth distance is made farther. In this case, the size of only the second image, which is a specific subject, is changed, and the corresponding depth distance is displayed on the screen, for example, as a number, making it easier to synthesize three-dimensional positions, unlike conventional zooming in and out using a pinch operation.

尚、変更した奥行き距離をユーザが視覚的に認知可能なように、変更した奥行き距離と同じ奥行き距離にある第1の画像中の被写体を強調表示することが望ましい。又、その際、強調表示は、対応する奥行き距離の画像領域を特定の色で表示したり、輝度を変えて表示したりすることが望ましい。 In addition, it is preferable to highlight the subject in the first image that is at the same depth distance as the changed depth distance so that the user can visually recognize the changed depth distance. In addition, in this case, it is preferable to highlight the image area of the corresponding depth distance in a specific color or with a different brightness.

図8は、奥行き距離を変更した場合に合成される第2の画像の大きさの変化、及び合成する奥行き距離の表示方法の例を説明する図である。
例えば図8(A)に示すように、合成された第2の画像801aの大きさを、図7の状態よりも大きく変更した際に、第1の画像中の点線802aで示した領域を、対応する奥行き距離の領域として、強調表示する。
FIG. 8 is a diagram for explaining a change in size of the second image to be synthesized when the depth distance is changed, and an example of a method of displaying the depth distance to be synthesized.
For example, as shown in Figure 8 (A), when the size of the synthesized second image 801a is changed to be larger than the state in Figure 7, the area indicated by the dotted line 802a in the first image is highlighted as the area of the corresponding depth distance.

このように、奥行き距離に対応した第1の画像の領域を強調表示することで、変更した第2の画像の大きさが、強調表示された第1の画像の領域と同じ奥行き距離に配置した場合の大きさである、ということが容易に視覚的に認識可能となる。又、図8(B)のように第2の画像を合成する奥行き距離を近づけると合成された第2の画像801bの大きさが変化し、それに合わせて第1の画像中の奥行き距離と等距離の被写体位置を示す点線802bを変化させる。尚、図8(B)は図8(A)に比べ第2の画像を合成する奥行き距離を撮像装置(カメラ)に近づけているため大きく表示されて合成される。 In this way, by highlighting the area of the first image that corresponds to the depth distance, it is easy to visually recognize that the size of the changed second image is the size when it is placed at the same depth distance as the highlighted area of the first image. Also, as in Figure 8 (B), when the depth distance at which the second image is synthesized is brought closer, the size of the synthesized second image 801b changes, and the dotted line 802b indicating the subject position at the same distance as the depth distance in the first image is changed accordingly. Note that in Figure 8 (B), the depth distance at which the second image is synthesized is brought closer to the imaging device (camera) compared to Figure 8 (A), so it is displayed larger and synthesized.

合成する奥行き距離の表示方法としては、図8の803aや803bのように、タッチパネルディスプレイ上のいずれかの領域に、合成する奥行き距離の数値を表示するようにすることもできる。 As a method of displaying the depth distance to be synthesized, the numerical value of the depth distance to be synthesized can be displayed in one of the areas on the touch panel display, as shown in 803a or 803b in Figure 8.

図9は、実施例にて合成する奥行き距離の他の表示方法を説明する図である。
図9のように配置可能な最大から最小の奥行き距離を示す距離バー901a、901bを表示している。このように奥行き距離をバー表示することで、現在設定している、合成のための奥行き距離がどの位置にあるかを表示することでユーザに合成のための奥行き距離を示す事もできる。
図9(A)は図8(A)と同じ距離に第2の画像を配置した例を示し、図9(B)は図8(B)と同じ距離に第2の画像を配置した例を示している。
FIG. 9 is a diagram for explaining another method of displaying the depth distance synthesized in the embodiment.
9, distance bars 901a and 901b are displayed, which indicate the maximum and minimum depth distances that can be arranged. By displaying the depth distance as a bar in this way, it is possible to show the user the depth distance for composition by displaying the position of the currently set depth distance for composition.
FIG. 9A shows an example in which the second image is arranged at the same distance as in FIG. 8A, and FIG. 9B shows an example in which the second image is arranged at the same distance as in FIG. 8B.

尚、第1の画像を輝度信号に変換し、奥行き距離に応じた疑似カラーを重畳表示すると共に、距離バー901a、901bを同様の疑似カラーのバー表示にして距離をわかりやすく表示するようにしても良い。
又、合成する奥行き距離を変更した後に、合成した第2の画像の大きさを、第1の画像上の合成位置座標上の距離における大きさに戻す操作を用意する必要がある。
The first image may be converted into a luminance signal and a pseudo color corresponding to the depth distance may be superimposed on the image, and the distance bars 901a and 901b may be displayed as similar pseudo color bars to clearly show the distance.
Furthermore, after changing the depth distance for synthesis, it is necessary to provide an operation for returning the size of the synthesized second image to the size at the distance on the synthesis position coordinates on the first image.

例えば、奥行き距離を変更した後に、合成された第2の画像領域でのダブルタップ操作を検出することで、合成する奥行き距離を、合成座標上の第1の画像の奥行き距離にリセットするようにしても良い。それと共に、第2の画像の大きさを合成座標上の第1の画像の奥行き距離に合うように変更する。 For example, after changing the depth distance, the depth distance to be synthesized may be reset to the depth distance of the first image on the synthesis coordinates by detecting a double tap operation in the synthesized second image area. At the same time, the size of the second image may be changed to match the depth distance of the first image on the synthesis coordinates.

ステップS210で、制御部11は、第2の画像に対し第1の画像上のXY方向の座標位置を移動するかを判定する。移動を実行すると判定された場合は、合成する奥行き距離(奥行き位置)を変更せずに、つまり合成する奥行き距離変更後の第2の画像の大きさを変えずに移動を実行する。例えば、合成された第2の画像領域中の2点を同時にタッチした場合は、第2の画像の移動のための操作であると判定し、上記2点を同時に動かすことで第2の画像の移動を行う。その際、基準点と選択した2点の関係を保持したまま移動を行う。移動後はステップS204に戻り、ステップS204以降の処理を繰り返す。 In step S210, the control unit 11 determines whether to move the coordinate positions in the X and Y directions on the first image relative to the second image. If it is determined that the movement should be performed, the movement is performed without changing the depth distance (depth position) to be combined, that is, without changing the size of the second image after the depth distance to be combined is changed. For example, if two points in the combined second image area are touched simultaneously, it is determined that this is an operation to move the second image, and the second image is moved by moving the two points simultaneously. In this case, the movement is performed while maintaining the relationship between the reference point and the two selected points. After the movement, the process returns to step S204, and the processes from step S204 onwards are repeated.

ステップS211で、制御部11は、合成画像を選択するためにタッチパネルディスプレイ上に表示した画像の領域402にユーザがタッチしたかを判定し、それによって、他の画像を第1の画像に追加合成するか否かを判定する。追加合成すると判定した場合は、ステップS203に戻り、ステップS203以降の処理を実行する。追加合成がない場合は、合成画像の生成が終了するまでユーザからの入力待ち状態とする。 In step S211, the control unit 11 determines whether the user has touched the area 402 of the image displayed on the touch panel display to select a composite image, and thereby determines whether or not to additionally composite another image into the first image. If it is determined that additional composite is to be performed, the process returns to step S203, and the process from step S203 onward is executed. If additional composite is not to be performed, the process waits for input from the user until the generation of the composite image is completed.

合成した第2の画像を第1の画像中から削除する場合は、第1の画像に合成された第2の画像中の2点をタッチして第1の画像領域外にドラッグする。又は、第1の画像に合成された第2の画像にタッチしてから所定の速度以上で高速に移動させた場合に削除操作と判定して削除してもよい。
以上のように、本実施例によれば、撮影画像に付属した撮影情報等を用いることで、画像中の所望の位置に存在する被写体の大きさを、より自由に合成することが可能となる。
When deleting the composite second image from the first image, two points in the second image composited with the first image are touched and dragged out of the first image area. Alternatively, when the second image composited with the first image is touched and then moved at a high speed equal to or faster than a predetermined speed, it may be determined as a deletion operation and deleted.
As described above, according to this embodiment, by using the shooting information and the like attached to the captured image, it becomes possible to more freely synthesize the size of a subject existing at a desired position in the image.

以上、本発明をその好適な実施例に基づいて詳述してきたが、本発明は上記実施例に限定されるものではなく、本発明の主旨に基づき種々の変形が可能であり、それらを本発明の範囲から除外するものではない。
なお、本実施例における制御の一部、又は全部を上述した実施例の機能を実現するコンピュータプログラムをネットワーク又は各種記憶媒体を介して画像処理装置に供給するようにしてもよい。そしてその画像処理装置におけるコンピュータ(又はCPUやMPU等)がプログラムを読み出して実行するようにしてもよい。その場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することとなる。
The present invention has been described in detail above based on its preferred embodiments, but the present invention is not limited to the above embodiments. Various modifications are possible based on the gist of the present invention, and these modifications are not excluded from the scope of the present invention.
A computer program for implementing all or part of the control in this embodiment may be supplied to the image processing device via a network or various storage media. Then, a computer (or a CPU, MPU, etc.) in the image processing device may read and execute the program. In this case, the program and the storage medium storing the program constitute the present invention.

100 コンピュータ
10 入力部
11 制御部
12 演算部
13 記憶部
14 出力部

REFERENCE SIGNS LIST 100 Computer 10 Input section 11 Control section 12 Calculation section 13 Storage section 14 Output section

Claims (13)

第1の画像上に第2の画像を合成する画像合成方法であって、
前記第2の画像を合成するための前記第1の画像上の指定位置を検出する位置検出工程と、
前記指定位置における前記第1の画像の被写体距離情報と、前記第2の画像の被写体の大きさ情報をもとに、前記第2の画像の被写体の大きさを、前記指定位置における前記第1の画像の被写体距離に対応した大きさになるように変更して、合成表示する合成表示工程と、
前記指定位置上において、前記指定位置における前記被写体距離とは異なる奥行き距離に前記第2の画像を配置するための奥行き距離変更操作を検出する奥行き距離変更検出工程と、
前記奥行き距離変更操作に応じて、前記第2の画像の大きさを変更する大きさ変更工程と、
前記奥行き距離変更操作に応じて、変更された奥行き距離情報を表示する奥行き距離情報表示工程と、
を有し、
前記奥行き距離情報表示工程において、前記奥行き距離に対応した前記第1の画像の領域を強調表示することを特徴とする画像合成方法。
1. A method for compositing a second image onto a first image, comprising the steps of:
a position detection step of detecting a designated position on the first image for synthesizing the second image;
a composite display step of changing a size of the subject of the second image based on subject distance information of the first image at the specified position and size information of the subject of the second image so that the size corresponds to the subject distance of the first image at the specified position, and displaying the composite image;
a depth distance change detection step of detecting a depth distance change operation for disposing the second image at a depth distance different from the subject distance at the specified position on the specified position;
a size changing step of changing a size of the second image in response to the depth distance change operation;
a depth distance information display step of displaying changed depth distance information in response to the depth distance change operation;
having
The image synthesis method according to claim 1, wherein in said depth distance information display step, a region of said first image corresponding to said depth distance is highlighted .
前記奥行き距離情報表示工程において、前記奥行き距離の数値を表示することを特徴とする請求項に記載の画像合成方法。 2. The image synthesis method according to claim 1 , wherein the depth distance information display step displays a numerical value of the depth distance. 前記奥行き距離情報表示工程において、前記奥行き距離をバー表示することを特徴とする請求項に記載の画像合成方法。 2. The image synthesis method according to claim 1 , wherein the depth distance is displayed as a bar in the depth distance information display step. 前記合成表示工程において、前記第2の画像が合成される前記第1の画像の領域のうち、前記指定位置の前記奥行き距離にある領域では前記第2の画像を表示し、前記指定位置の前記奥行き距離より手前にある領域では前記第1の画像を表示することを特徴とする請求項1に記載の画像合成方法。 The image synthesis method according to claim 1, characterized in that, in the synthesis display step, the second image is displayed in an area of the first image into which the second image is synthesized, the area being at the depth distance from the specified position, and the first image is displayed in an area in front of the depth distance from the specified position. 前記奥行き距離変更検出工程は、ユーザがタッチパネルディスプレイにタッチした時間又は圧力又は複数点のタッチによって前記奥行き距離変更操作が行われたことを検出することを特徴とする請求項1に記載の画像合成方法。 The image synthesis method according to claim 1, characterized in that the depth distance change detection process detects that the depth distance change operation has been performed based on the time or pressure with which the user touches the touch panel display, or by touching multiple points. 前記奥行き距離変更検出工程において、ユーザがタッチパネルディスプレイにタッチした時間又は圧力又はピンチ操作に応じて前記奥行き距離を変更することを特徴とする請求項1に記載の画像合成方法。 The image synthesis method according to claim 1, characterized in that in the depth distance change detection process, the depth distance is changed according to the time, pressure, or pinch operation of the user touching the touch panel display. 前記第2の画像における基準位置を選択する基準選択工程を更に有し、選択された前記基準位置を前記第1の画像上の前記指定位置と一致させて合成表示することを特徴とする請求項1に記載の画像合成方法。 The image synthesis method according to claim 1, further comprising a reference selection step of selecting a reference position in the second image, and synthesizing and displaying the selected reference position by matching it with the specified position on the first image. 前記基準選択工程において、前記第2の画像の前記基準位置を表示させることを特徴とする請求項に記載の画像合成方法。 8. The image synthesis method according to claim 7 , wherein in the reference selection step, the reference position of the second image is displayed. 前記第2の画像は、所定の画像から抽出された所定の被写体画像であることを特徴とする請求項1に記載の画像合成方法。 The image synthesis method according to claim 1, characterized in that the second image is a specified subject image extracted from a specified image. ユーザが前記指定位置を移動している間に、前記位置検出工程と、前記合成表示工程とを周期的に実行することを特徴とする請求項1に記載の画像合成方法。 The image synthesis method according to claim 1, characterized in that the position detection process and the synthesis display process are performed periodically while the user is moving the specified position. 前記位置検出工程は、ユーザがタッチパネルディスプレイ上で前記第2の画像をドラッグした後にドロップした位置を検出することを特徴とする請求項1に記載の画像合成方法。 The image synthesis method according to claim 1, characterized in that the position detection step detects a position where the user drags and drops the second image on a touch panel display. 請求項1~1のいずれか1項に記載の画像合成方法の各工程をコンピュータにより制御するためのコンピュータプログラム。 A computer program for controlling each step of the image synthesis method according to any one of claims 1 to 11 by a computer. 第1の画像上に第2の画像を合成する画像合成装置であって、
前記第2の画像を合成するための前記第1の画像上の指定位置を検出する位置検出手段と、
前記指定位置における前記第1の画像の被写体距離情報と、前記第2の画像の被写体の大きさ情報をもとに、前記第2の画像の被写体の大きさを、前記指定位置における前記第1の画像の被写体距離に対応した大きさになるように変更して、合成表示する合成表示手段と、
前記指定位置上において、前記指定位置における前記被写体距離とは異なる奥行き距離に前記第2の画像を配置するための奥行き距離変更操作を検出する奥行き距離変更検出手段と、
前記奥行き距離変更操作に応じて、前記第2の画像の大きさを変更する大きさ変更手段と、
前記奥行き距離変更操作に応じて、変更された奥行き距離情報を表示する奥行き距離情報表示手段と、を有し、
前記奥行き距離情報表示手段により、前記奥行き距離に対応した前記第1の画像の領域を強調表示することを特徴とする画像合成装置。
An image synthesis device for synthesizing a second image on a first image, comprising:
a position detection means for detecting a designated position on the first image for combining the second image;
a composite display means for changing a size of the subject of the second image based on subject distance information of the first image at the specified position and subject size information of the second image so that the size corresponds to the subject distance of the first image at the specified position, and displaying the composite image;
a depth distance change detection means for detecting a depth distance change operation for disposing the second image at a depth distance different from the subject distance at the specified position on the specified position;
a size changing means for changing a size of the second image in response to the depth distance changing operation;
a depth distance information display means for displaying changed depth distance information in response to the depth distance change operation ,
an area of the first image corresponding to the depth distance is highlighted by the depth distance information display means ;
JP2021021665A 2021-02-15 2021-02-15 IMAGE SYNTHESIS METHOD, COMPUTER PROGRAM, AND IMAGE SYNTHESIS DEVICE Active JP7657602B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021021665A JP7657602B2 (en) 2021-02-15 2021-02-15 IMAGE SYNTHESIS METHOD, COMPUTER PROGRAM, AND IMAGE SYNTHESIS DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021021665A JP7657602B2 (en) 2021-02-15 2021-02-15 IMAGE SYNTHESIS METHOD, COMPUTER PROGRAM, AND IMAGE SYNTHESIS DEVICE

Publications (2)

Publication Number Publication Date
JP2022124095A JP2022124095A (en) 2022-08-25
JP7657602B2 true JP7657602B2 (en) 2025-04-07

Family

ID=82941205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021021665A Active JP7657602B2 (en) 2021-02-15 2021-02-15 IMAGE SYNTHESIS METHOD, COMPUTER PROGRAM, AND IMAGE SYNTHESIS DEVICE

Country Status (1)

Country Link
JP (1) JP7657602B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7828393B2 (en) * 2024-06-17 2026-03-11 カバー株式会社 Program, method, and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001024920A (en) 1999-07-02 2001-01-26 Ricoh Co Ltd Digital camera
JP2001358927A (en) 2000-06-13 2001-12-26 Megafusion Corp Image processing system and image processing method
JP2002171398A (en) 2000-12-04 2002-06-14 Konica Corp Image processing method and electronic camera
JP2010224607A (en) 2009-03-19 2010-10-07 Casio Computer Co Ltd Image composition apparatus and program
JP2011147109A (en) 2009-12-16 2011-07-28 Canon Inc Image capturing apparatus and image processing apparatus
JP2017192106A (en) 2016-04-15 2017-10-19 キヤノン株式会社 Imaging apparatus and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001024920A (en) 1999-07-02 2001-01-26 Ricoh Co Ltd Digital camera
JP2001358927A (en) 2000-06-13 2001-12-26 Megafusion Corp Image processing system and image processing method
JP2002171398A (en) 2000-12-04 2002-06-14 Konica Corp Image processing method and electronic camera
JP2010224607A (en) 2009-03-19 2010-10-07 Casio Computer Co Ltd Image composition apparatus and program
JP2011147109A (en) 2009-12-16 2011-07-28 Canon Inc Image capturing apparatus and image processing apparatus
JP2017192106A (en) 2016-04-15 2017-10-19 キヤノン株式会社 Imaging apparatus and control method thereof

Also Published As

Publication number Publication date
JP2022124095A (en) 2022-08-25

Similar Documents

Publication Publication Date Title
JP5511573B2 (en) Display control apparatus, control method therefor, program, and storage medium
KR101231469B1 (en) Method, apparatusfor supporting image processing, and computer-readable recording medium for executing the method
TWI540488B (en) Gallery application for content viewing
US7472354B2 (en) Graphical user interface having an attached toolbar for drag and drop editing in detail-in-context lens presentations
US9129367B2 (en) Navigating digital images using detail-in-context lenses
US8237818B2 (en) Camera
EP2793170A2 (en) Objects in screen images
KR102193567B1 (en) Electronic Apparatus displaying a plurality of images and image processing method thereof
KR20180018561A (en) Apparatus and method for scaling video by selecting and tracking image regions
JPWO2010032402A1 (en) Data display apparatus, integrated circuit, data display method, data display program, and recording medium
CN107273027A (en) Image display device and method for displaying image
TWI714513B (en) Book display program product and book display device
JPWO2010134324A1 (en) Content display device and content display method
CN103391396B (en) Display control apparatus and display control method
JP2016200860A (en) Information processing apparatus, control method thereof, and program
JP7657602B2 (en) IMAGE SYNTHESIS METHOD, COMPUTER PROGRAM, AND IMAGE SYNTHESIS DEVICE
US20150277705A1 (en) Graphical user interface user input technique for choosing and combining digital images as video
JP6747262B2 (en) User interface method, information processing apparatus, information processing system, and information processing program
JP2016038728A (en) Image display device, control method of image display device and program thereof
JP5991538B2 (en) Data processing apparatus, data processing system, and program
KR20140127131A (en) Method for displaying image and an electronic device thereof
JP2004336466A (en) Metadata registration method
JP6182930B2 (en) Depth production support device, depth production method, and program
CN104081333A (en) Remote display area including input lenses each depicting a region of a graphical user interface
US20220283698A1 (en) Method for operating an electronic device in order to browse through photos

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240214

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241210

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250206

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250326

R150 Certificate of patent or registration of utility model

Ref document number: 7657602

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150