JP2009111935A - Technology of combining two-dimensional image - Google Patents

Technology of combining two-dimensional image Download PDF

Info

Publication number
JP2009111935A
JP2009111935A JP2007284656A JP2007284656A JP2009111935A JP 2009111935 A JP2009111935 A JP 2009111935A JP 2007284656 A JP2007284656 A JP 2007284656A JP 2007284656 A JP2007284656 A JP 2007284656A JP 2009111935 A JP2009111935 A JP 2009111935A
Authority
JP
Japan
Prior art keywords
image
value data
images
material image
value
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.)
Granted
Application number
JP2007284656A
Other languages
Japanese (ja)
Other versions
JP4915005B2 (en
Inventor
Atsushi Sakai
敦史 酒井
Kenichi Akagi
健一 赤木
Takeshi Fukaya
武史 深谷
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.)
Suncorporation
Original Assignee
Suncorporation
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 Suncorporation filed Critical Suncorporation
Priority to JP2007284656A priority Critical patent/JP4915005B2/en
Publication of JP2009111935A publication Critical patent/JP2009111935A/en
Application granted granted Critical
Publication of JP4915005B2 publication Critical patent/JP4915005B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Circuits (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technology to produce a variety of composite images without increasing the kinds of material images. <P>SOLUTION: A plurality of material images to obtain a composite image and Z-value data representing a context used to combine material images are stored in advance. The Z-value data contains a Z value assigned to each picture element and a context of material images is represented by the magnitudes of Z values. With this, different composite images can be obtained by changing the Z-value data of material images to be combined. As the result, the user can obtain a variety of composite images just by preparing a few material images and Z-value data in advance. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、2枚以上の二次元の画像を重ね合わせて画像を合成する技術に関するものである。   The present invention relates to a technique for synthesizing images by superimposing two or more two-dimensional images.

ある画像を背景にして木や車が描かれている画像を得ようとする場合、背景となる画像に木や車を直接描き込むのではなく、画像を合成する技術が用いられることがある。この技術では、素材となる木の画像や車の画像を用意し、背景画像の所望の位置に重ねることで一枚の絵(合成画像)を生成することができる。また、木の画像と車の画像とが重なる場合にどちらが手前側になるか判断できるように、画像を重ねる順序を表す情報(Z値)が木の画像と車の画像とに夫々設定されている。このZ値は、夫々の素材画像毎に数値で設定され、画像同士が重なった場合に数値を比較する事によって、合成をすることができる様になっている。   When trying to obtain an image in which a tree or a car is drawn against a background of an image, a technique for synthesizing the image instead of directly drawing the tree or the car in the background image may be used. With this technique, a single picture (composite image) can be generated by preparing a tree image or a car image as a material and overlaying it on a desired position of the background image. In addition, information (Z value) indicating the order in which the images are superimposed is set in the tree image and the car image so that it can be determined which side is the front side when the tree image and the car image overlap. Yes. The Z value is set as a numerical value for each material image, and can be combined by comparing the numerical values when the images overlap.

また、例えば1本の木でも詳細に見れば、手前側の部分(枝葉)と奥側の部分(幹)とが存在しているので、より実物に近い合成画像が得られるように、1つの画像の画素毎にZ値を設定可能とした技術も提案されている。この技術を用いれば、例えば、木の手前側に車が停まっている画像でも、木の幹の部分は車の奥側にあるが、こちらに延びた枝葉の先端が車の手前側に重なるような画像を表現することができる(特許文献1、特許文献2など)。   Further, for example, if one tree is viewed in detail, the near side portion (branches and leaves) and the far side portion (stem) exist, so that one composite image closer to the real thing can be obtained. A technique has also been proposed in which a Z value can be set for each pixel of an image. Using this technology, for example, even in an image where the car is parked on the front side of the tree, the trunk of the tree is on the back side of the car, but the tips of the branches and leaves extending here overlap the front side of the car Such an image can be expressed (Patent Document 1, Patent Document 2, etc.).

このように素材画像を重ねることによって画像を合成する技術では、Z値を設定した画像を新たに用意して、素材画像として追加したり、既存の素材画像と差し替えたりすることによって、合成画像の見た目を変えて表現に幅をもたせることができる。先述した木の手前側に車が停まっている例を用いて説明すると、まず、車の画像のZ値よりも手前側になるZ値を設定した人物の素材画像と、人物の素材画像のZ値よりも更に手前側となるZ値を設定した動物の素材画像とを新たに用意する。次に、それら全てを重ね合わせて合成したり、差し替えたりすることによって、木の前に停車した車の前に人が動物を抱いている合成画像や、木の前に動物だけがいる合成画像など、異なる画像を得ることができる。   In the technique of compositing images by overlapping material images in this way, a new image with a Z value set is prepared and added as a material image or replaced with an existing material image. You can change the appearance and give a wider range of expression. To explain using the example in which the car is parked on the front side of the tree described above, first, a material image of a person set with a Z value closer to the Z value than the Z value of the car image, and a material image of the person An animal material image in which a Z value is set on the near side of the Z value is newly prepared. Next, by superimposing and replacing them all together, a composite image in which a person is holding an animal in front of a car parked in front of a tree, or a composite image in which only an animal is in front of a tree Different images can be obtained.

特開2000−196956号公報JP 2000-196956 A 特開平10−145583号公報Japanese Patent Laid-Open No. 10-145583

しかしながら従来の技術は、異なる合成画像を得ようとすると、その度毎に、Z値を設定した素材画像を新たに用意する必要があり、大変面倒であった。   However, the conventional technique is very troublesome because it is necessary to prepare a new material image in which the Z value is set each time a different composite image is obtained.

本発明は、従来の技術が有する上述した課題に対応してなされたものであり、素材画像の種類を徒に増加させることなく、多種類の合成画像を生成することが可能な技術を提供することを目的としたものである。   The present invention has been made in response to the above-described problems of conventional techniques, and provides a technique capable of generating many types of composite images without increasing the types of material images. It is for the purpose.

上述した課題の少なくとも一部を解決するために、本発明の画像合成装置は次の構成を採用した。すなわち、本発明の画像合成装置は、
複数の素材画像を、少なくとも一部が互いに重なるように配置することによって画像を合成する画像合成装置であって、
前記素材画像を、画素の集まりとして表現された態様で複数記憶している素材画像記憶手段と、
前記複数の素材画像を重ね合わせる際の前後関係を表すZ値が画素毎に設定されたZ値データを、複数記憶しているZ値データ記憶手段と、
前記記憶されている複数の素材画像の中から選択した一の素材画像に対して、前記記憶されている複数のZ値データの中から一のZ値データを選択することにより、該素材画像と該Z値データとを組み合わせるZ値データ組合せ手段と、
前記Z値データが組み合わされた複数の素材画像を、該Z値データに設定された前記Z値に従って画素毎に重ね合わせることにより、該複数の素材画像を合成する素材画像合成手段と
を備えることを要旨とする。
In order to solve at least a part of the problems described above, the image composition apparatus of the present invention employs the following configuration. That is, the image composition apparatus of the present invention
An image composition device that synthesizes images by arranging a plurality of material images so that at least some of them overlap each other,
Material image storage means for storing a plurality of the material images in a manner expressed as a collection of pixels;
Z value data storage means for storing a plurality of Z value data in which Z values representing the front-rear relationship when the plurality of material images are superimposed are set for each pixel;
By selecting one Z value data from among the plurality of stored Z value data for one material image selected from the plurality of stored material images, Z value data combining means for combining the Z value data;
Material image combining means for combining the plurality of material images by superimposing the plurality of material images combined with the Z value data for each pixel in accordance with the Z value set in the Z value data. Is the gist.

かかる本発明の画像合成装置においては、複数記憶されている素材画像の中から一の素材画像を選択すると、複数記憶されているZ値データの中から一のZ値データを選択することにより、素材画像とZ値データとを組み合わせる。このようにして複数の素材画像に対してZ値データを組み合わせた後、Z値データに設定されているZ値に従って、素材画像を画素毎に重ね合わせることによって、画像を合成していく。   In the image composition apparatus of the present invention, when one material image is selected from a plurality of stored material images, by selecting one Z value data from among a plurality of stored Z value data, Combining material images and Z-value data. After combining Z value data for a plurality of material images in this way, the images are synthesized by superimposing the material images for each pixel according to the Z value set in the Z value data.

このようにして、素材画像とZ値データとを組み合わせ、Z値データに設定されているZ値に従って素材画像を合成していけば、素材画像とZ値データとの組合せを変更するだけで、異なる画像を合成することができる。このため、たとえ記憶されている素材画像やZ値データの種類が少なかった場合でも、これらの組合せを変更することで、複数の異なる画像を合成することが可能となる。   In this way, if the material image and the Z value data are combined and the material image is synthesized in accordance with the Z value set in the Z value data, only the combination of the material image and the Z value data is changed. Different images can be combined. For this reason, even when the number of stored material images and Z value data is small, it is possible to synthesize a plurality of different images by changing the combination thereof.

また、上述した本発明の画像合成装置においては、次のようにして画像を合成しても良い。先ず、記憶されている複数の素材画像の中から、画像の合成に用いる複数の素材画像を組にまとめて、複数の組を予め順番を付けて記憶しておく。また、各組に含まれるそれぞれの素材画像に対しては、何れのZ値データが組み合わされるかを特定しておく。画像を合成するに際しては、複数記憶されている素材画像の組を、記憶されている順番に従って順次読み出すことにより、複数の素材画像と該素材画像に対して特定されたZ値データとを組み合わせながら、次々と画像を合成していく。ここで、素材画像の組は、組が違うからと言って、その組に含まれる素材画像は必ず異なっている必要はなく、例えば、ある組の素材画像と、その次の組の素材画像とが全く同じであっても構わない。そして、それらの組に組み合わされるZ値データのみが異なっているようなものであっても良い。もちろん、逆に、ある組の素材画像と、その次の組の素材画像とが異なっていても、それらの組に同じZ値データを組み合わせるようにしても構わない。また、素材画像の組に順番を付すにあたっては、必ずしも明示的に番号が付されている必要はなく、各組の順番が認識可能であれば十分であり、例えば、素材画像の組が記憶されている順序によって、実質的に各組に順番が付されているようなものであってもよい。   Further, in the above-described image composition device of the present invention, images may be synthesized as follows. First, among a plurality of stored material images, a plurality of material images used for image synthesis are grouped into a set, and the plurality of sets are stored in order. In addition, it is specified which Z value data is combined with each material image included in each set. When compositing images, a combination of a plurality of material images and Z value data specified for the material images are combined by sequentially reading a plurality of stored material image sets in the order in which they are stored. Then, the images are synthesized one after another. Here, just because a set of material images is different, the material images included in the set do not necessarily have to be different. For example, a material image of one set and a material image of the next set May be exactly the same. Then, only the Z value data combined in these sets may be different. Of course, conversely, even if a set of material images and a next set of material images are different, the same Z-value data may be combined in these sets. In addition, in ordering the order of the set of material images, it is not always necessary to explicitly give a number, and it is sufficient if the order of each set is recognizable. For example, the set of material images is stored. Depending on the order, the order may be assigned to each group substantially.

このようにして画像を合成していけば、予め設定しておいた順番で、次々と異なる画像を合成することが可能となる。   If the images are combined in this way, different images can be combined one after another in the preset order.

また、上述した本発明の画像合成装置においては、素材画像に組み合わせるZ値データを次のようにして選択することとしても良い。先ず、複数の素材画像の中から一つの画像を選択すると、その素材画像の画像サイズ(すなわち、素材画像を構成する画素の縦横の画素数)を検出する。そして、その画像サイズよりも、縦横の画素数の大きなZ値データを選択して、素材画像に組み合わせるようにしても良い。   In the above-described image composition device of the present invention, the Z value data to be combined with the material image may be selected as follows. First, when one image is selected from a plurality of material images, the image size of the material image (that is, the number of vertical and horizontal pixels of the pixels constituting the material image) is detected. Then, Z value data having a larger number of vertical and horizontal pixels than the image size may be selected and combined with the material image.

こうすれば、素材画像の画像サイズが異なっている場合でも、複数記憶されているZ値データの中から適切なZ値データを選択して組み合わせることにより、画像を合成することが可能となる。   In this way, even when the image sizes of the material images are different, it is possible to synthesize an image by selecting and combining appropriate Z value data from a plurality of stored Z value data.

以下では、上述した本願発明の内容を明確にするために、次のような順序に従って実施例を説明する。
A.奥行き情報を用いた画像の合成 :
B.本実施例の合成技術の構成 :
C.変形例 :
Hereinafter, in order to clarify the contents of the present invention described above, examples will be described in the following order.
A. Image composition using depth information:
B. Composition of the synthesis technique of this example:
C. Modified example:

A.奥行き情報を用いた画像の合成 :
背景となる画像(背景画像)の上に、別の小さな画像(素材画像)を重ねて一枚の絵を合成する場合があるが、このような場合には、背景画像の上に素材画像を重ねる順序を示すために、奥行き情報と呼ばれる情報を予め素材画像に設定しておくことが通常となっている。以下では本願発明の実施例について説明するが、その準備として、奥行き情報を用いて素材画像を合成する様子について概要を説明しておく。
A. Image composition using depth information:
In some cases, a single picture is composed by overlaying another small image (material image) on the background image (background image). In such a case, the material image is placed on the background image. In order to indicate the overlapping order, information called depth information is usually set in the material image in advance. In the following, an embodiment of the present invention will be described. As a preparation for this, an outline of how material images are synthesized using depth information will be described.

図1は、山が描かれた背景画像100の上に素材画像110を重ねて、一枚の絵200を合成する例を示した概念図である。背景画像100に重ねる素材画像110としては、車が描かれた画像110aと、木が描かれた画像110bの2つの素材画像が用意されている。夫々の素材画像110には、奥行き情報と呼ばれる数値が設定されている。この奥行き情報の数値の大小によって、素材画像を重ねた時に、何れの素材画像が手前側に来るかを判断できるようになっている。   FIG. 1 is a conceptual diagram showing an example in which a material image 110 is superimposed on a background image 100 on which a mountain is drawn, and a single picture 200 is synthesized. As the material image 110 to be superimposed on the background image 100, two material images, an image 110a in which a car is drawn and an image 110b in which a tree is drawn, are prepared. A numerical value called depth information is set for each material image 110. Depending on the magnitude of the depth information, it is possible to determine which material image comes to the near side when the material images are superimposed.

なお、奥行き情報は素材画像110に対して設定してもよいが、素材画像110は画素の集合体であることに鑑みれば、画素毎に奥行き情報を設定してもよい。そして、画素毎に奥行き情報を設定した場合には、1枚の素材画像に対して複数の奥行き情報を設定することで、素材画像の部分によって数値を異ならせることが可能となる。以降では、奥行き情報は画素毎に設定されるものとし、各画素に奥行き情報として設定される数値を「Z値」と称し、一枚の素材画像に設定されるZ値の集合を「Z値データ」と称して、二つを区別することにする。   The depth information may be set for the material image 110. However, considering that the material image 110 is an aggregate of pixels, the depth information may be set for each pixel. When depth information is set for each pixel, by setting a plurality of depth information for one material image, it is possible to change the numerical value depending on the portion of the material image. Hereinafter, it is assumed that the depth information is set for each pixel, a numerical value set as depth information for each pixel is referred to as a “Z value”, and a set of Z values set for one material image is referred to as a “Z value”. We will call it “data” and distinguish between the two.

前述した例においては、車を描いた素材画像110aのZ値データ120aは均一のZ値で構成されており、Z値は「2」になっている。また、木を描いた素材画像110bのZ値データ120bは部分によって異なるZ値で構成されており、木の枝や葉に相当する部分のZ値は「3」、幹に相当する部分のZ値は「1」になっている。   In the example described above, the Z value data 120a of the material image 110a depicting the car is composed of uniform Z values, and the Z value is “2”. Also, the Z value data 120b of the material image 110b depicting the tree is composed of different Z values depending on the part, the Z value corresponding to the branches and leaves of the tree is “3”, and the Z value corresponding to the trunk is Z. The value is “1”.

複数の素材画像110を合成する際には、夫々の素材画像110に設定された(夫々の)Z値データ120のZ値を比較することで、どの素材画像(あるいは素材画像の部分)が手前側になるのかが判断される。図1に示した例においては、Z値の数値が大きいほど手前側として判断されるので、奥側から手前側に向かって(背景画像100)→(素材画像110bの幹の部分)→(素材画像110aの車)→(素材画像110bの枝や葉の部分)という順で重なる。この結果に基づいてそれぞれの画像を合成すると、山の手前側に木があり、その木の幹の手前側に車が停まっており、更に、車の手前側に覆いかぶさる様に木の枝や葉が伸びているという態様の合成画像200が得られる。   When compositing a plurality of material images 110, by comparing the Z values of the (respective) Z value data 120 set for the respective material images 110, which material image (or material image portion) is in front. It is judged whether it becomes the side. In the example shown in FIG. 1, the larger the value of the Z value, the closer to the front side, so that from the back side to the front side (background image 100) → (the trunk portion of the material image 110b) → (material The vehicle overlaps in the order of (car of image 110a) → (branches and leaves of material image 110b). Based on this result, each image is synthesized. There is a tree on the front side of the mountain, the car is parked on the front side of the trunk of the tree, and the tree branches and leaves are covered with the front side of the car. Is obtained.

以上に説明した様に、Z値データ120を用いる事によって、複数の素材画像110を、望んだ通りの順序で重ねて合成する事が可能となっている。その一方で、先述した合成例において「車の手前側と背面側に一本ずつ木がある絵」という異なる合成画像も生成したい場合には、木の素材画像をもう一枚用意し、更にその素材画像用のZ値データを作成して、素材画像に予めZ値を設定しておく必要がある。更には、木の本数を増やしたり、木の葉の部分の形を変えたりする等、異なる合成画像を何枚も生成しようとすると大変な手間が発生する。こうした点を鑑みて、本実施例の合成技術は、次に述べる構成を有することで、多様に異なる合成画像を容易に得ることが出来るようになっている。   As described above, by using the Z value data 120, a plurality of material images 110 can be superimposed and combined in the desired order. On the other hand, if you want to generate a different composite image, which is a picture with a tree on the front side and the back side of the car, in the previous synthesis example, prepare another material image of the tree. It is necessary to create Z value data for the material image and set the Z value in advance for the material image. Furthermore, it takes a lot of trouble to generate a number of different composite images, such as increasing the number of trees or changing the shape of the leaves of a tree. In view of these points, the composition technique of the present embodiment has a configuration described below so that various different composite images can be easily obtained.

B.本実施例の合成技術の構成 :
図2は、本実施例の合成技術の大まかな構成を概念的に図示したものである。本実施例の合成技術を大きく分けると、画像保存部210と、奥行き情報保存部220と、合成画像生成部300とによって構成されている。
B. Composition of the synthesis technique of this example:
FIG. 2 conceptually illustrates a rough configuration of the synthesis technique of this embodiment. The composition technique according to the present embodiment is roughly divided into an image storage unit 210, a depth information storage unit 220, and a composite image generation unit 300.

画像保存部210には、背景画像100や素材画像110などの画像データが保存されている。それらの画像データの保存形式には、RGBやYUV等の数々の画像形式を採用することができる。   The image storage unit 210 stores image data such as the background image 100 and the material image 110. A number of image formats such as RGB and YUV can be adopted as the storage format of these image data.

Z値は奥行き情報保存部220に、Z値データ120として保存されている。また、Z値データ120は、素材画像110からは独立したデータとなっており、素材画像110との対応関係も設定されていない。Z値データ120は、先述した様に、画素毎に設定されたZ値の集合となっているので、画素毎に異なる値で設定することができる。   The Z value is stored as Z value data 120 in the depth information storage unit 220. Further, the Z value data 120 is data independent of the material image 110, and the correspondence relationship with the material image 110 is not set. Since the Z value data 120 is a set of Z values set for each pixel as described above, it can be set with a different value for each pixel.

合成画像生成部300は、画像保存部210からは画像データを選択し、奥行き情報保存部220からは、Z値データ120を選択し、これらを用いて合成画像200を生成する処理を行う様になっている。   The composite image generation unit 300 selects image data from the image storage unit 210, selects Z-value data 120 from the depth information storage unit 220, and performs a process of generating the composite image 200 using these. It has become.

図3は、合成画像生成部300が素材画像110とZ値データとを用いて合成画像200bを生成する様子を概念的に図示したものである。   FIG. 3 conceptually illustrates how the composite image generation unit 300 generates the composite image 200b using the material image 110 and the Z value data.

本実施例の合成画像生成部300は、組合せ選択手段350と合成手段360とから構成されている。また、組合せ選択手段350は、奥行き情報保存部220に保存されているZ値データ120(この場合は120a〜120d)を選択できる様になっている。なお、どの様にして選択するかについては、後ほど詳述する。   The composite image generation unit 300 according to the present exemplary embodiment includes a combination selection unit 350 and a synthesis unit 360. The combination selection unit 350 can select the Z value data 120 (120a to 120d in this case) stored in the depth information storage unit 220. How to select will be described in detail later.

合成画像200の生成に際しては、まず、組合せ選択手段350が、画像保存部210からは素材画像110を選択し、奥行き情報保存部220からはZ値データ120を選択して、更に、素材画像110にZ値データ120を組み合わせる処理を行う。この処理の結果によって、素材画像110とZ値データ120との間には対応関係が生じる。組合せ選択手段350は、合成に用いる全ての素材画像110(この場合は、車の素材画像110aと、木の素材画像110b)について、上記の組み合せ処理を行ってZ値データ120を対応づけた後、組み合わせた素材画像110とZ値データ120とを合成手段360に転送する。   When generating the composite image 200, first, the combination selection unit 350 selects the material image 110 from the image storage unit 210, selects the Z value data 120 from the depth information storage unit 220, and further, the material image 110. The process of combining the Z value data 120 with the. As a result of this processing, a correspondence relationship is generated between the material image 110 and the Z value data 120. The combination selection unit 350 performs the above combination processing on all the material images 110 (in this case, the car material image 110a and the tree material image 110b) used for composition and associates the Z value data 120 with each other. The combined material image 110 and the Z value data 120 are transferred to the synthesizing unit 360.

次に合成手段360が、組合せ選択手段350から受信した夫々の組合せのZ値データ120のZ値を比較しながら、夫々のZ値データ120に対応づけられた素材画像110の重なり方を判断する。そして、判断結果に基づいて素材画像110を重ねて合成をする事によって、合成画像200が生成される。   Next, the synthesizing unit 360 compares the Z values of the Z value data 120 of each combination received from the combination selecting unit 350, and determines how the material images 110 associated with the respective Z value data 120 overlap. . Then, the composite image 200 is generated by combining the material images 110 based on the determination result.

また、組合せ選択手段350が、素材画像110に組み合わせるZ値データ120を別のZ値データに切り替えれば、新たな組合せを生成することが可能となる。例えば、木の素材画像110bに組み合わせるZ値データを、Z値データ120bからZ値データ120cへと切り替えれば、画像110bと他の素材画像(ここでは車の素材画像110a)との重なり方を変化させることができる。その結果、同じ木の素材画像110bを用いているにも拘わらず、異なる合成画像200を得ることができる。   Further, if the combination selection unit 350 switches the Z value data 120 combined with the material image 110 to another Z value data, a new combination can be generated. For example, if the Z-value data combined with the tree material image 110b is switched from the Z-value data 120b to the Z-value data 120c, the manner in which the image 110b overlaps with another material image (here, the car material image 110a) changes. Can be made. As a result, a different composite image 200 can be obtained despite using the same tree material image 110b.

更に、物体を描いた素材画像110を一枚しか用いていなくても、見え方の異なる物体が複数個所に描かれている合成画像200を生成することもできる。この場合において、組合せ選択手段350は、まず、一枚の素材画像110に対して、複数のZ値データ120を選択する。次に、選択した夫々のZ値データ120を、対象の素材画像110に組み合わせる事で複数の組合せを生成して合成手段360へと転送する。その結果、同じ素材画像110が、背景画像100上の複数個所に、重なり方を変えて合成される。例えば、合成画像200bには、木の素材画像110bとZ値データ120bとを組み合わせて合成された木20bと、木の素材画像110bとZ値データ120cとを組み合わせて合成された木20cと、木の素材画像110bとZ値データ120dとを組み合わせて合成された木20dとが描かれている。これら3本の木には、同じ素材画像110bが用いられているが、組み合わせるZ値データ120を切り替えたことにより、見え方が異なる木の画像として合成されている。   Furthermore, even if only one material image 110 depicting an object is used, it is possible to generate a composite image 200 in which objects with different appearances are depicted at a plurality of locations. In this case, the combination selection unit 350 first selects a plurality of Z value data 120 for one material image 110. Next, each selected Z-value data 120 is combined with the target material image 110 to generate a plurality of combinations and transfer them to the synthesizing unit 360. As a result, the same material image 110 is synthesized at a plurality of locations on the background image 100 while changing the overlapping manner. For example, the synthesized image 200b includes a tree 20b synthesized by combining the tree material image 110b and the Z value data 120b, a tree 20c synthesized by combining the tree material image 110b and the Z value data 120c, A tree 20d synthesized by combining the tree material image 110b and the Z value data 120d is depicted. The same material image 110b is used for these three trees. However, by switching the Z value data 120 to be combined, they are combined as images of trees that look different.

なお、上述した例で、木を描いた素材画像110bと組み合わされた3つのZ値データ120b、120c、120dのうち、Z値データ120bとZ値データ120cは素材画像110bの木の形状と合致する形状になっているが、Z値データ120dは矩形状になっており、素材画像110bの形状とは合致しない。この様に、組合せ選択手段350は、素材画像110と全く同じ形状のZ値データ120を組み合わせる必要はなく、所定の条件を満足していれば異なる形状のZ値データ120を組み合わせることで重なり方を変える事もできる。次に、組合せ選択手段350が、Z値データを選択する方法について説明をする。   In the above example, among the three Z value data 120b, 120c, and 120d combined with the material image 110b depicting the tree, the Z value data 120b and the Z value data 120c match the shape of the tree of the material image 110b. However, the Z value data 120d is rectangular and does not match the shape of the material image 110b. As described above, the combination selection unit 350 does not need to combine the Z value data 120 having the same shape as the material image 110. If the predetermined condition is satisfied, the combination selection unit 350 combines the Z value data 120 having different shapes. Can also be changed. Next, a method in which the combination selection unit 350 selects Z value data will be described.

図4は、組合せ選択手段350による組合せ選択処理の流れを示した図である。合成を開始する際に、ユーザーは、どの背景画像100に、どの素材画像110を合成するのかという基本的な情報(合成情報)を制御手段(図示せず)に入力する。   FIG. 4 is a diagram showing a flow of combination selection processing by the combination selection unit 350. When the synthesis is started, the user inputs basic information (synthetic information) on which background image 100 and which material image 110 are to be synthesized to a control unit (not shown).

制御手段に上述した合成情報が入力されると、組合せ選択手段350は、この情報を読み込み(S600)、この情報の中でユーザーから指定されている画像データを、画像保存部210から選択する(S610)。   When the above-described composite information is input to the control means, the combination selection means 350 reads this information (S600), and selects image data designated by the user from this information from the image storage unit 210 ( S610).

組合せ選択手段350は、指定された素材画像110を選択すると、次に素材画像110に組み合わせるZ値データ120を奥行き情報保存部220から選択する。組合せ選択手段350は、Z値データを選択する際に、素材画像110に組み合わせる事ができるZ値データ120か否かを判断して、(組み合わせ可能な)Z値データ120を選択する様になっている。具体的には、まず、組合せ選択手段350は、対象の素材画像110のサイズ情報(縦の画素数×横の画素数)の読み込みをする(S620)。次に、そのサイズ情報の「縦の画素数」と「横の画素数」に所定の幅を持たせて「縦の画素数±所定画素数」および「横の画素数±所定画素数」を設定する。そして、その設定した範囲に該当するZ値データ120を、奥行き情報保存部220内から検索する(S630)。   When selecting the designated material image 110, the combination selection unit 350 selects the Z value data 120 to be combined with the material image 110 from the depth information storage unit 220. When selecting the Z value data, the combination selection unit 350 determines whether the Z value data 120 can be combined with the material image 110 and selects the Z value data 120 (which can be combined). ing. Specifically, first, the combination selection unit 350 reads size information (the number of vertical pixels × the number of horizontal pixels) of the target material image 110 (S620). Next, the “vertical pixel count ± predetermined pixel count” and “horizontal pixel count ± predetermined pixel count” are set by giving a predetermined width to the “vertical pixel count” and “horizontal pixel count” of the size information. Set. Then, the Z value data 120 corresponding to the set range is searched from the depth information storage unit 220 (S630).

検索の結果、該当するZ値データ120が得られた場合(S640)には、そのZ値データ120を組合せ可能なZ値データ120と判断して、奥行き情報保存部220から選択する(S650)。そして、得られたZ値データ120を素材画像110と組み合わせて、合成手段360へと転送する(S660)。なお、複数のZ値データ120が該当した場合には、素材画像110の画像サイズに最も近いサイズのZ値データ120を選択しても良いし、該当したZ値データ120の中から無作為に選択しても良い。なお、該当するZ値データ120(素材画像と組み合わせ可能なZ値データ)が保存されていなかった場合には、制御手段にエラーであった旨を報知する(S645)。   If the corresponding Z value data 120 is obtained as a result of the search (S640), the Z value data 120 is determined to be combinable Z value data 120 and selected from the depth information storage unit 220 (S650). . Then, the obtained Z value data 120 is combined with the material image 110 and transferred to the synthesizing unit 360 (S660). When a plurality of Z value data 120 are applicable, the Z value data 120 having a size closest to the image size of the material image 110 may be selected, or the Z value data 120 may be randomly selected from the corresponding Z value data 120. You may choose. If the corresponding Z value data 120 (Z value data that can be combined with the material image) is not stored, the control unit is notified that an error has occurred (S645).

このように、組合せ選択手段350は、奥行き情報保存部220から検索することで、素材画像110に組み合せる事が出来るZ値データ120を選択する様になっている。なお、特定のZ値データ120を組み合わせたい場合には、合成情報を入力する際に、素材画像110だけでなく、その素材画像110に組み合わせたいZ値データ120についても入力しておくと良い。そうする事で、組合せ選択手段350は、特定の素材画像110に対して、特定のZ値データ120を選択して組み合わせることができる。また、素材画像110に組み合わせられるZ値データ120を判定する際に、サイズが所定数値の範囲内に含まれているか否かを条件にしたが、これに限らずにZ値データ120を選択することも可能である。例えば、画像のサイズと同じサイズになる様に、Z値データ120を拡大・縮小したり、Z値データ120の一部を切り取って付与する様にしたりしても良い。また、一般的な画像検索技術を用いて形状が類似したZ値データ120を選択する様にしても良い。   As described above, the combination selection unit 350 selects the Z value data 120 that can be combined with the material image 110 by searching from the depth information storage unit 220. If specific Z value data 120 is to be combined, it is preferable to input not only the material image 110 but also the Z value data 120 to be combined with the material image 110 when combining information is input. By doing so, the combination selection unit 350 can select and combine the specific Z value data 120 with respect to the specific material image 110. Further, when determining the Z value data 120 to be combined with the material image 110, the condition is whether or not the size is included in the range of the predetermined numerical value, but the Z value data 120 is selected without being limited thereto. It is also possible. For example, the Z value data 120 may be enlarged or reduced, or a part of the Z value data 120 may be cut out and added so as to have the same size as the image size. Alternatively, the Z value data 120 having a similar shape may be selected using a general image search technique.

以上に説明したように、本実施例は、組合せ選択手段350が、合成する段階において、画像110とZ値データ120とを組み合わせるので、画像110とZ値データ120との関係は、「特定の画像用のZ値」といった固定的な対応関係になっていない。その結果、組合せ選択手段350が、素材画像110に組み合わせるZ値データ120を切り替えることで、同じ素材画像110を利用しても重なり具合が変化し、延いては、合成画像200の見た目を容易に変化させることができる様になっている。また、素材画像110に組み合わせるZ値データ120を無作為に選択する様にすれば、素材画像110を合成する度に組合せが変化し、全く同じ素材画像110を用いても合成された物体の見た目が、多様に異なる合成画像200を得ることもできる。   As described above, in the present embodiment, the combination selection unit 350 combines the image 110 and the Z value data 120 at the stage of synthesis. Therefore, the relationship between the image 110 and the Z value data 120 is “specific”. There is no fixed correspondence such as “Z value for image”. As a result, the combination selection unit 350 switches the Z value data 120 to be combined with the material image 110, so that the overlapping state changes even if the same material image 110 is used, and thus the appearance of the composite image 200 is easily made. It can be changed. In addition, if the Z value data 120 to be combined with the material image 110 is selected at random, the combination changes each time the material image 110 is combined, and the appearance of the combined object looks even if the same material image 110 is used. However, various different composite images 200 can be obtained.

C.変形例 :
実施例1では、素材画像110に組み合わせるZ値データ120を、組合せ選択手段350が切り替えることによって、全く同じ素材画像110を用いても、見た目が異なる合成画像200を生成できることを説明したが、組合せ選択手段350が素材画像110についても切り替えることで、更に多様な合成画像200を生成することができる。以下では、組合せ選択手段350が、素材画像110をどの様に切り替えているのかについて例をあげて説明する。
C. Modified example:
In the first embodiment, the Z value data 120 combined with the material image 110 is switched by the combination selection unit 350, so that the composite image 200 having a different appearance can be generated even when the completely same material image 110 is used. By switching the material image 110 by the selection unit 350, it is possible to generate more various composite images 200. Hereinafter, an example of how the combination selection unit 350 switches the material image 110 will be described.

図5は、組合せ選択手段350が、時間の経過(時間t1〜時間t4)に沿って、素材画像110とZ値データ120との組合せを切り替えている様子を示した図である。この例では、2枚の素材画像110(素材画像Aと素材画像B)と、3つのZ値データ120(Z値データαとZ値データβとZ値データσ)とから、素材画像110とZ値データ120とを組合せ選択手段350が選択して組み合わせる様になっている。詳細には後述するが、このように2種類の素材画像、および3種類のZ値データしか用いなくても、素材画像とZ値データとの組合せを変更することによって、異なる画像を合成することが可能となる。そして、実際の画像の合成では、このようにして複数の素材画像が、背景画像100の上で合成されることにより、1枚の合成画像が得られることになる。以下では、説明の簡素化を図るため、背景画像100との合成については説明を省略し、もっぱら素材画像同士が合成される様子について説明する。   FIG. 5 is a diagram illustrating a state in which the combination selection unit 350 switches the combination of the material image 110 and the Z value data 120 over time (time t1 to time t4). In this example, from two material images 110 (material image A and material image B) and three Z value data 120 (Z value data α, Z value data β, and Z value data σ), the material image 110 and The combination value selecting unit 350 selects and combines the Z value data 120. As will be described in detail later, even if only two types of material images and three types of Z value data are used, different images can be synthesized by changing the combination of the material image and the Z value data. Is possible. In actual image synthesis, a plurality of material images are synthesized on the background image 100 in this way, so that one synthesized image is obtained. In the following, in order to simplify the description, the description of the composition with the background image 100 is omitted, and the state in which the material images are synthesized exclusively will be described.

まず、時間t1では、「素材画像A+Z値データσの組合せ」と、「素材画像B+Z値データβの組合せ」とを合成して1枚目の合成画像200cを生成している。なお、素材画像A(素材画像110c)は全面を白色に塗りつぶした画像になっていて、素材画像B(素材画像110d)は全面を黒色で塗りつぶした画像となっている。そのため、それらを重ねて生成された合成画像200cは、白色と黒色の模様のようになる。   First, at time t1, the “combination of material image A + Z value data σ” and the “combination of material image B + Z value data β” are combined to generate the first composite image 200c. The material image A (material image 110c) is an image in which the entire surface is painted white, and the material image B (material image 110d) is an image in which the entire surface is painted in black. Therefore, the composite image 200c generated by superimposing them is like a white and black pattern.

時間t1での合成を終えると、続いて時間t2での合成を開始する。その際、組合せ選択手段350は、素材画像110を切り替えるか否かの判断をする様になっている。素材画像110の切り替えの判断は、例えば1枚目の合成を開始した時点からの経過時間で切り替えるなど諸々の方法によって判断することが出来る。なお、この例では、素材画像110を選択した(切り替えた)合成からの合成回数と、予め設定しておいた所定回数とを比較して、合成回数が所定回数「3」以上になる場合に、素材画像110を切り替える様に設定している。   When the synthesis at time t1 is completed, the synthesis at time t2 is subsequently started. At that time, the combination selection unit 350 determines whether to switch the material image 110. The switching of the material image 110 can be determined by various methods, for example, by switching based on the elapsed time from the start of the synthesis of the first sheet. In this example, the number of compositing from composition in which the material image 110 is selected (switched) is compared with a predetermined number of times set in advance, and the number of compositing is equal to or greater than the predetermined number of times “3”. The material image 110 is set to be switched.

時間t2の合成では、時間t1での合成から数えて2回目の合成なので、合成回数は「2」となる。従って所定回数未満となるので、組合せ選択手段350は素材画像110を切り替えずに、Z値データ120を切り替える。たとえば、素材画像Aに組み合わせるZ値データ120をZ値データσからZ値データβへと切り替えて、更に、素材画像Bに組み合わせるZ値データ120についてもZ値データβからZ値データαへと切り替える。Z値データ120を切り替えた結果、「素材画像A+Z値データβの組合せ」と、「素材画像B+Z値データαの組合せ」とを合成することになるので2枚の素材画像110の重なり方が異なり、合成画像200は合成画像200cから合成画像200dへと見た目が変化して別の模様の絵になる。   Since the synthesis at time t2 is the second synthesis counting from the synthesis at time t1, the number of synthesis is “2”. Therefore, since it is less than the predetermined number of times, the combination selection unit 350 switches the Z value data 120 without switching the material image 110. For example, the Z value data 120 combined with the material image A is switched from the Z value data σ to the Z value data β, and the Z value data 120 combined with the material image B is also changed from the Z value data β to the Z value data α. Switch. As a result of switching the Z value data 120, the “combination of the material image A + Z value data β” and the “combination of the material image B + Z value data α” are combined, so the overlapping method of the two material images 110 is different. The composite image 200 changes its appearance from the composite image 200c to the composite image 200d and becomes a picture with a different pattern.

時間t3の合成では、合成回数が「3」となって所定回数以上と判断される。従って、組合せ選択手段350は、素材画像110の切り替えを行う。なお、組合せ選択手段350は、時間t2で選択したZ値データ120を再度用いており、Z値データβに組み合わせる素材画像110を素材画像Aから素材画像Bに切り替えて、Z値データαに組み合わせる素材画像110も素材画像Bから素材画像Aへと切り替えている。その結果、「素材画像B+Z値データβの組合せ」と、「素材画像A+Z値データαの組合せ」とを合成することになるので、合成画像200は合成画像200dから合成画像200eへと見た目が変化する。   In the synthesis at time t3, the number of times of synthesis is “3”, and it is determined that the number is equal to or greater than the predetermined number. Therefore, the combination selection unit 350 switches the material image 110. The combination selection unit 350 uses the Z value data 120 selected at time t2 again, switches the material image 110 to be combined with the Z value data β from the material image A to the material image B, and combines it with the Z value data α. The material image 110 is also switched from the material image B to the material image A. As a result, the “combination of the material image B + Z value data β” and the “combination of the material image A + Z value data α” are combined, so that the composite image 200 changes its appearance from the composite image 200d to the composite image 200e. To do.

時間t4では、素材画像110を切り替えた合成(時間t3の合成)から数えて合成回数は「2」になる。従って所定回数未満となるので、素材画像の切り替えは行わずに、Z値データ120を切り替えて、「素材画像B+Z値データσの組合せ」と、「素材画像A+Z値データβの組合せ」とを合成し、見た目が異なる合成画像200fを生成する。   At time t4, the number of synthesis is “2” from the composition (composition at time t3) when the material image 110 is switched. Therefore, since the number of times becomes less than the predetermined number, the Z value data 120 is switched without switching the material images, and the “combination of the material image B + Z value data σ” and the “combination of the material image A + Z value data β” are combined. Then, a composite image 200f having a different appearance is generated.

以上に説明した例では、2枚の素材画像110と3つのZ値データ120という同じデータしか用いていないのにも拘わらず、時間t1〜t4で生成される合成画像(200cと200eと200f)は、4枚とも見た目が異なる合成画像となっている。また、この例では、「素材画像A+Z値データαの組合せ」と「素材画像B+Z値データσの組合せ」との合成と、及び「素材画像A+Z値データσの組合せ」と「素材画像B+Z値データαの組合せ」との合成も可能となっており、更に2枚の異なる合成画像200を生成することが可能となっている。   In the example described above, the composite images (200c, 200e, and 200f) generated at times t1 to t4 are used although only the same data of the two material images 110 and the three Z value data 120 are used. Are composite images with different appearances. In this example, the “combination of material image A + Z value data α” and “combination of material image B + Z value data σ” and “combination of material image A + Z value data σ” and “material image B + Z value data” are combined. It is also possible to synthesize with “a combination of α”, and it is possible to generate two different synthesized images 200.

なお、この例にZ値データを一つ加えるだけで、倍の数の異なる合成画像200を生成することができる。図6は、素材画像A(素材画像110c)と素材画像B(素材画像110d)とを4つのZ値データ120(Z値データα〜γ)を用いて合成した場合の組合せのパターンとその合成結果を示した図である。   It should be noted that the composite image 200 having a double number can be generated by adding only one Z-value data to this example. FIG. 6 shows a combination pattern in the case where the material image A (the material image 110c) and the material image B (the material image 110d) are combined using the four Z value data 120 (Z value data α to γ) and the composition. It is the figure which showed the result.

素材画像AとZ値データαの組合せに、素材画像Bの組合せを切り替えて合成する場合の組合せのパターンは、パターン1(素材画像A+Z値データαに素材画像B+Z値データβを合成)と、パターン2(素材画像A+Z値データαに素材画像B+Z値データσを合成)と、パターン3(素材画像A+Z値データαに素材画像B+Z値データγを合成)の3パターンが得られる。また、素材画像AとZ値データβの組合せに、素材画像Bの組合せを合成する場合にも、パターン4(素材画像A+Z値データβに素材画像B+Z値データαを合成)と、パターン5(素材画像A+Z値データβに素材画像B+Z値データσを合成)と、パターン6(素材画像A+Z値データβに素材画像B+Z値データγを合成)の3パターンが得られる。この様に、素材画像110とZ値データ120とを切り替えて組み合わせをすることで、12パターンもの組合せが得られ、その結果に生成される合成画像200も全て異なる模様となっている。   The combination pattern in the case of combining the combination of the material image A and the Z value data α by switching the combination of the material image B is pattern 1 (compositing the material image B + Z value data β with the material image A + Z value data α), Three patterns of pattern 2 (compositing material image B + Z value data σ with material image A + Z value data α) and pattern 3 (combining material image B + Z value data γ with material image A + Z value data α) are obtained. Further, when the combination of the material image B is combined with the combination of the material image A and the Z value data β, the pattern 4 (the material image B + Z value data α is combined with the material image A + Z value data β) and the pattern 5 ( Three patterns of material image B + Z value data σ are combined with material image A + Z value data β and pattern 6 (material image B + Z value data γ is combined with material image A + Z value data β) are obtained. In this way, by combining the material image 110 and the Z value data 120 and combining them, combinations of 12 patterns are obtained, and the synthesized images 200 generated as a result are all different patterns.

なお、以上に説明した例において素材画像を切り替えた場合には、2枚の素材画像が入れ替わることになるが、画像保存部210に保存されている他の素材画像110に切り替えることも可能である。ただし、その様に多数の素材画像110を切り替えの対象にする場合には、素材画像110のサイズ(縦×横の画素数)が異なるためにZ値データ120に組み合わせられない場合もある。その場合は、(素材画像110に組み合わせられるZ値データ120を検索して切り替える場合と同様に)組合せ選択手段350が、現在使用している素材画像110の画像サイズを読み込んで範囲(「縦の画素数±所定画素数」と「横の画素数±所定画素数」)を決定し、その範囲に基づいて画像保存部210から(組み合わせ可能な)素材画像110を検索して選択する様にすれば良い。   In the example described above, when the material image is switched, the two material images are switched, but it is also possible to switch to another material image 110 stored in the image storage unit 210. . However, when such a large number of material images 110 are to be switched, the size (the number of vertical x horizontal pixels) of the material image 110 may be different and may not be combined with the Z value data 120. In that case, the combination selection unit 350 reads the image size of the currently used material image 110 (as in the case where the Z value data 120 combined with the material image 110 is searched and switched) and reads the range (“vertical” (Number of pixels ± predetermined number of pixels ”and“ number of horizontal pixels ± predetermined number of pixels ”) are determined, and the material image 110 (combinable) is searched and selected from the image storage unit 210 based on the range. It ’s fine.

このように、組合せ選択手段350によって、Z値データ120だけでなく素材画像110も選択して切り替えられる様にすれば、「Z値データを現在組み合わせている素材画像に組み合わせ可能なZ値データへと切り替える」、「素材画像を現在組み合わせている素材画像に類似する(現在使用しているZ値データと組み合わせ可能な)素材画像へと切り替える」、「Z値データと素材画像の双方を全く別のデータに切り替える」という3つの方法を用いることができるので、素材画像とZ値データの組合せのパターンを多様に変えながら合成画像200を生成することができる。その結果、少ない素材画像110と少ないZ値データ120とを用いて合成をしても、多様な合成画像200を得ることが可能となる。   As described above, if the combination selection unit 350 can select and switch not only the Z value data 120 but also the material image 110, “Z value data can be combined with the material image currently combined”. ”,“ Switch to a material image that is similar to the currently combined material image (can be combined with the currently used Z value data) ”,“ Whether the Z value data and the material image are completely different Therefore, the composite image 200 can be generated while changing the pattern of the combination of the material image and the Z value data in various ways. As a result, it is possible to obtain various composite images 200 even if they are combined using a small number of material images 110 and a small amount of Z value data 120.

なお、時間に沿って連続に合成する場合は、Z値データ120を切り替えた履歴を記憶する様にしても良い。そして、次に同じような合成を連続で行う際には、組合せ選択手段350がその履歴を参照できる様にして、履歴に基づいてZ値データ120を切り替えられる様にしても良い。そうすると、他の素材画像110を用いて時間t1から合成を開始しても、同じZ値データ120の切り替えを利用して合成することが可能となる。例えば、空を描いた素材画像110と、雲を描いた素材画像110とを合成して、空模様を合成する際に、昼と夕方での空の変化、あるいは合成したい雲の絵を変える必要がある場合でも、履歴を参照して、前回の空模様の合成に用いたZ値データ120を同じように切り替えて、見え方の異なる空模様を簡単に合成することが可能となる。   In addition, when combining continuously over time, a history of switching the Z value data 120 may be stored. Then, when the same composition is subsequently performed continuously, the combination selection unit 350 may refer to the history, and the Z value data 120 may be switched based on the history. Then, even if composition is started from time t1 using another material image 110, composition can be performed using switching of the same Z value data 120. For example, when a sky image is synthesized by compositing a material image 110 depicting a sky and a material image 110 depicting a cloud, it is necessary to change the sky change in the daytime and evening, or change the picture of the cloud to be synthesized. Even in some cases, it is possible to easily synthesize sky patterns with different appearances by referring to the history and switching the Z value data 120 used in the previous sky pattern synthesis in the same manner.

以上、各種の実施例を用いて本発明を説明したが、これらの構成は、以上に説明した内容に限られるものではなく、通常考えられる様な代替手段も当然含まれる。例えば、組合せ選択手段350が素材画像110を切り替える際に、Z値データ120と組み合わせ可能な素材画像110を検索してくるものとしたが、予め代替可能な素材画像110をユーザーが設定しておいても良いし、Z値データ120に組み合わせられる形にトリミングしたり、拡大や縮小したりすることによって、Z値データ120と組み合わせられる様にしても良い。また、素材画像110の切り替えのタイミングについても、所定の合成回数(あるいは経過時間)を用いて判断し、素材画像Aと素材画像Bの両方の素材画像を切り替えているものとしたが、片方の素材画像110のみを切り替える様にしても良いし、ユーザーが切り替えるタイミングを指定できるようにしても良い。   As described above, the present invention has been described using various embodiments. However, these configurations are not limited to the contents described above, and naturally include alternative means that can be generally considered. For example, when the combination selection unit 350 switches the material image 110, the material image 110 that can be combined with the Z value data 120 is searched. However, the user sets a material image 110 that can be substituted in advance. Alternatively, it may be combined with the Z value data 120 by trimming into a form that can be combined with the Z value data 120, or by enlarging or reducing the data. Further, the timing of switching the material image 110 is also determined using a predetermined number of times of synthesis (or elapsed time), and the material images of the material image A and the material image B are switched. Only the material image 110 may be switched, or the user may be able to specify the switching timing.

山が描かれた背景画像上に素材画像110を重ねて一枚の絵を合成する例を概念的に図示したものである。It conceptually illustrates an example in which a material image 110 is superimposed on a background image on which a mountain is drawn and a single picture is synthesized. 本実施例の合成技術の大まかな構成を概念的に図示したものである。1 schematically illustrates a general configuration of a synthesis technique according to the present embodiment. 合成画像生成部が素材画像とZ値データとを用いて合成画像を生成する様子を概念的に図示したものである。FIG. 2 conceptually illustrates a state in which a composite image generation unit generates a composite image using a material image and Z value data. 組合せ選択手段による組合せ選択処理の流れを示した図である。It is the figure which showed the flow of the combination selection process by a combination selection means. 組合せ選択手段が時間の経過(t1〜t4)に沿って素材画像とZ値データとの組合せを切り替えている様子を示した図である。It is the figure which showed a mode that the combination selection means switched the combination of a raw material image and Z value data along progress of time (t1-t4). 素材画像Aと素材画像Bとを4つのZ値データを用いて合成した場合の組合せのパターンとその合成結果を示した図である。It is the figure which showed the pattern of the combination at the time of synthesize | combining the raw material image A and the raw material image B using four Z value data, and its synthetic | combination result.

符号の説明Explanation of symbols

100…背景画像、 110…素材画像、 120…Z値データ、
200…合成画像、 210…画像保存部、 220…奥行き情報保存部、
300…合成画像生成部、 350…組合せ選択手段、 360…合成手段
100 ... background image 110 ... material image 120 ... Z value data
200 ... Composite image 210 ... Image storage unit 220 ... Depth information storage unit
300 ... Composite image generation unit, 350 ... Combination selection means, 360 ... Synthesis means

Claims (3)

複数の素材画像を、少なくとも一部が互いに重なるように配置することによって画像を合成する画像合成装置であって、
前記素材画像を、画素の集まりとして表現された態様で複数記憶している素材画像記憶手段と、
前記複数の素材画像を重ね合わせる際の前後関係を表すZ値が画素毎に設定されたZ値データを、複数記憶しているZ値データ記憶手段と、
前記記憶されている複数の素材画像の中から選択した一の素材画像に対して、前記記憶されている複数のZ値データの中から一のZ値データを選択することにより、該素材画像と該Z値データとを組み合わせるZ値データ組合せ手段と、
前記Z値データが組み合わされた複数の素材画像を、該Z値データに設定された前記Z値に従って画素毎に重ね合わせることにより、該複数の素材画像を合成する素材画像合成手段と
を備える画像合成装置。
An image composition device that synthesizes images by arranging a plurality of material images so that at least some of them overlap each other,
Material image storage means for storing a plurality of the material images in a manner expressed as a collection of pixels;
Z value data storage means for storing a plurality of Z value data in which Z values representing the front-rear relationship when the plurality of material images are superimposed are set for each pixel;
By selecting one Z value data from among the plurality of stored Z value data for one material image selected from the plurality of stored material images, Z value data combining means for combining the Z value data;
An image comprising: a plurality of material images combined with the Z value data; and a material image combining means for combining the plurality of material images by superimposing the plurality of material images for each pixel according to the Z value set in the Z value data. Synthesizer.
請求項1に記載の画像合成装置であって、
前記記憶されている素材画像の中の複数の該素材画像の組を、各組に含まれる各々の素材画像に組み合わされる前記Z値データが特定されているとともに、各組には順番が付された状態で、複数組記憶している記憶手段を備え、
前記Z値データ組合せ手段は、前記複数記憶されている素材画像の組を、前記記憶されている順番に従って順次読み出すことにより、該複数の素材画像と該素材画像に対して特定された前記Z値データとを組み合わせる手段である画像合成装置。
The image composition device according to claim 1,
The Z value data for combining a plurality of sets of material images in the stored material images with each material image included in each set is specified, and each set is assigned an order. Storage means for storing a plurality of sets in a state,
The Z value data combination means sequentially reads the plurality of stored material image sets in accordance with the stored order, thereby identifying the plurality of material images and the Z value specified for the material image. An image composition device that is a means of combining data.
請求項1に記載の画像合成装置であって、
前記Z値データ組合せ手段は、前記素材画像を選択すると、該素材画像を構成する複数の画素の縦横の画素数に対応する画像サイズを検出して、該画像サイズよりも縦横の画素数の大きな前記Z値データを、該素材画像に組み合わせる手段である画像合成装置。
The image composition device according to claim 1,
When the material value is selected, the Z-value data combination means detects an image size corresponding to the number of vertical and horizontal pixels of a plurality of pixels constituting the material image, and has a larger number of vertical and horizontal pixels than the image size. An image composition device as means for combining the Z value data with the material image.
JP2007284656A 2007-11-01 2007-11-01 Two-dimensional image synthesis technology Active JP4915005B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007284656A JP4915005B2 (en) 2007-11-01 2007-11-01 Two-dimensional image synthesis technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007284656A JP4915005B2 (en) 2007-11-01 2007-11-01 Two-dimensional image synthesis technology

Publications (2)

Publication Number Publication Date
JP2009111935A true JP2009111935A (en) 2009-05-21
JP4915005B2 JP4915005B2 (en) 2012-04-11

Family

ID=40779889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007284656A Active JP4915005B2 (en) 2007-11-01 2007-11-01 Two-dimensional image synthesis technology

Country Status (1)

Country Link
JP (1) JP4915005B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013118553A (en) * 2011-12-05 2013-06-13 Dainippon Printing Co Ltd Composite image generating device
JP2016034162A (en) * 2015-12-09 2016-03-10 大日本印刷株式会社 Composite image generating device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03286271A (en) * 1990-03-30 1991-12-17 Matsushita Electric Ind Co Ltd Picture display device
JPH04372079A (en) * 1991-06-20 1992-12-25 Matsushita Electric Ind Co Ltd Picture display device
JPH0683977A (en) * 1992-08-31 1994-03-25 Fujitsu Ltd Plotting system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03286271A (en) * 1990-03-30 1991-12-17 Matsushita Electric Ind Co Ltd Picture display device
JPH04372079A (en) * 1991-06-20 1992-12-25 Matsushita Electric Ind Co Ltd Picture display device
JPH0683977A (en) * 1992-08-31 1994-03-25 Fujitsu Ltd Plotting system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013118553A (en) * 2011-12-05 2013-06-13 Dainippon Printing Co Ltd Composite image generating device
JP2016034162A (en) * 2015-12-09 2016-03-10 大日本印刷株式会社 Composite image generating device

Also Published As

Publication number Publication date
JP4915005B2 (en) 2012-04-11

Similar Documents

Publication Publication Date Title
US6701064B1 (en) Record carrier, and apparatus and method for playing back a record carrier, and method of manufacturing a record carrier
CN102170527B (en) Image processing apparatus
JP2000101829A5 (en) Image generation methods, devices and computer-readable storage media
US20050281536A1 (en) Generation of image file
CA2607633A1 (en) Stereoscopic image generation device and program
US8907967B2 (en) Image processing apparatus, image processing method and program
JP3472065B2 (en) Animation generation apparatus and animation generation method
JP4915005B2 (en) Two-dimensional image synthesis technology
JP2014013994A (en) Vehicle peripheral image display control device and vehicle peripheral image display control program
CN115272095A (en) Layer processing method and device and electronic equipment
JP2005110159A (en) Generation of decorative image
CN105959579A (en) Partial content replacing device for 360-degree panoramic video
JP2000250942A (en) Book information retrieval space construction and retrieval device and computer readable recording medium recording book information retrieval space construction and retrieval program
JP2005084321A (en) Image processor, and its method and its program, and recording medium where same program is recorded
JP2012221122A (en) Image processing device, image processing method, and program
JP2010193026A (en) Image reproducing apparatus, image reproducing method and program
JP2005313327A (en) Image output controller, image output controlling method, image output control program and printer apparatus
CN103150746A (en) Time line operation control device, time line operation control method, program and image processor
JPH10187926A (en) Image composing device
JP2008187256A (en) Motion image creating device, method and program
JP2000076281A5 (en)
JP4560441B2 (en) Image composition apparatus, image composition method, and image composition program
JP2003153079A (en) Image processor and image processing method
JP2011244364A (en) Image processing apparatus, image combination method, image combination program and recording medium
JP2009206986A (en) Image output device and image output method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101026

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111208

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120104

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150203

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4915005

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250