JP2009111935A - Technology of combining two-dimensional image - Google Patents
Technology of combining two-dimensional image Download PDFInfo
- 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
Links
- 239000000463 material Substances 0.000 claims abstract description 244
- 239000000203 mixture Substances 0.000 claims description 26
- 238000013500 data storage Methods 0.000 claims description 2
- 239000002131 composite material Substances 0.000 abstract description 46
- 230000015572 biosynthetic process Effects 0.000 description 23
- 238000003786 synthesis reaction Methods 0.000 description 23
- 238000000034 method Methods 0.000 description 19
- 230000002194 synthesizing effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 239000002994 raw material Substances 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 239000013077 target material Substances 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 1
- 238000009966 trimming Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Studio Circuits (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
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 (
このように素材画像を重ねることによって画像を合成する技術では、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.
しかしながら従来の技術は、異なる合成画像を得ようとすると、その度毎に、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
なお、奥行き情報は素材画像110に対して設定してもよいが、素材画像110は画素の集合体であることに鑑みれば、画素毎に奥行き情報を設定してもよい。そして、画素毎に奥行き情報を設定した場合には、1枚の素材画像に対して複数の奥行き情報を設定することで、素材画像の部分によって数値を異ならせることが可能となる。以降では、奥行き情報は画素毎に設定されるものとし、各画素に奥行き情報として設定される数値を「Z値」と称し、一枚の素材画像に設定されるZ値の集合を「Z値データ」と称して、二つを区別することにする。
The depth information may be set for the
前述した例においては、車を描いた素材画像110aのZ値データ120aは均一のZ値で構成されており、Z値は「2」になっている。また、木を描いた素材画像110bのZ値データ120bは部分によって異なるZ値で構成されており、木の枝や葉に相当する部分のZ値は「3」、幹に相当する部分のZ値は「1」になっている。
In the example described above, the
複数の素材画像110を合成する際には、夫々の素材画像110に設定された(夫々の)Z値データ120のZ値を比較することで、どの素材画像(あるいは素材画像の部分)が手前側になるのかが判断される。図1に示した例においては、Z値の数値が大きいほど手前側として判断されるので、奥側から手前側に向かって(背景画像100)→(素材画像110bの幹の部分)→(素材画像110aの車)→(素材画像110bの枝や葉の部分)という順で重なる。この結果に基づいてそれぞれの画像を合成すると、山の手前側に木があり、その木の幹の手前側に車が停まっており、更に、車の手前側に覆いかぶさる様に木の枝や葉が伸びているという態様の合成画像200が得られる。
When compositing a plurality of
以上に説明した様に、Z値データ120を用いる事によって、複数の素材画像110を、望んだ通りの順序で重ねて合成する事が可能となっている。その一方で、先述した合成例において「車の手前側と背面側に一本ずつ木がある絵」という異なる合成画像も生成したい場合には、木の素材画像をもう一枚用意し、更にその素材画像用のZ値データを作成して、素材画像に予めZ値を設定しておく必要がある。更には、木の本数を増やしたり、木の葉の部分の形を変えたりする等、異なる合成画像を何枚も生成しようとすると大変な手間が発生する。こうした点を鑑みて、本実施例の合成技術は、次に述べる構成を有することで、多様に異なる合成画像を容易に得ることが出来るようになっている。
As described above, by using the
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
画像保存部210には、背景画像100や素材画像110などの画像データが保存されている。それらの画像データの保存形式には、RGBやYUV等の数々の画像形式を採用することができる。
The
Z値は奥行き情報保存部220に、Z値データ120として保存されている。また、Z値データ120は、素材画像110からは独立したデータとなっており、素材画像110との対応関係も設定されていない。Z値データ120は、先述した様に、画素毎に設定されたZ値の集合となっているので、画素毎に異なる値で設定することができる。
The Z value is stored as
合成画像生成部300は、画像保存部210からは画像データを選択し、奥行き情報保存部220からは、Z値データ120を選択し、これらを用いて合成画像200を生成する処理を行う様になっている。
The composite
図3は、合成画像生成部300が素材画像110とZ値データとを用いて合成画像200bを生成する様子を概念的に図示したものである。
FIG. 3 conceptually illustrates how the composite
本実施例の合成画像生成部300は、組合せ選択手段350と合成手段360とから構成されている。また、組合せ選択手段350は、奥行き情報保存部220に保存されているZ値データ120(この場合は120a〜120d)を選択できる様になっている。なお、どの様にして選択するかについては、後ほど詳述する。
The composite
合成画像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
次に合成手段360が、組合せ選択手段350から受信した夫々の組合せのZ値データ120のZ値を比較しながら、夫々のZ値データ120に対応づけられた素材画像110の重なり方を判断する。そして、判断結果に基づいて素材画像110を重ねて合成をする事によって、合成画像200が生成される。
Next, the synthesizing
また、組合せ選択手段350が、素材画像110に組み合わせるZ値データ120を別のZ値データに切り替えれば、新たな組合せを生成することが可能となる。例えば、木の素材画像110bに組み合わせるZ値データを、Z値データ120bからZ値データ120cへと切り替えれば、画像110bと他の素材画像(ここでは車の素材画像110a)との重なり方を変化させることができる。その結果、同じ木の素材画像110bを用いているにも拘わらず、異なる合成画像200を得ることができる。
Further, if the
更に、物体を描いた素材画像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
なお、上述した例で、木を描いた素材画像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
図4は、組合せ選択手段350による組合せ選択処理の流れを示した図である。合成を開始する際に、ユーザーは、どの背景画像100に、どの素材画像110を合成するのかという基本的な情報(合成情報)を制御手段(図示せず)に入力する。
FIG. 4 is a diagram showing a flow of combination selection processing by the
制御手段に上述した合成情報が入力されると、組合せ選択手段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
検索の結果、該当する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
このように、組合せ選択手段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
以上に説明したように、本実施例は、組合せ選択手段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
C.変形例 :
実施例1では、素材画像110に組み合わせるZ値データ120を、組合せ選択手段350が切り替えることによって、全く同じ素材画像110を用いても、見た目が異なる合成画像200を生成できることを説明したが、組合せ選択手段350が素材画像110についても切り替えることで、更に多様な合成画像200を生成することができる。以下では、組合せ選択手段350が、素材画像110をどの様に切り替えているのかについて例をあげて説明する。
C. Modified example:
In the first embodiment, the
図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
まず、時間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
時間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
時間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
時間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
時間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
以上に説明した例では、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
なお、この例にZ値データを一つ加えるだけで、倍の数の異なる合成画像200を生成することができる。図6は、素材画像A(素材画像110c)と素材画像B(素材画像110d)とを4つのZ値データ120(Z値データα〜γ)を用いて合成した場合の組合せのパターンとその合成結果を示した図である。
It should be noted that the
素材画像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
なお、以上に説明した例において素材画像を切り替えた場合には、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
このように、組合せ選択手段350によって、Z値データ120だけでなく素材画像110も選択して切り替えられる様にすれば、「Z値データを現在組み合わせている素材画像に組み合わせ可能なZ値データへと切り替える」、「素材画像を現在組み合わせている素材画像に類似する(現在使用しているZ値データと組み合わせ可能な)素材画像へと切り替える」、「Z値データと素材画像の双方を全く別のデータに切り替える」という3つの方法を用いることができるので、素材画像とZ値データの組合せのパターンを多様に変えながら合成画像200を生成することができる。その結果、少ない素材画像110と少ないZ値データ120とを用いて合成をしても、多様な合成画像200を得ることが可能となる。
As described above, if the
なお、時間に沿って連続に合成する場合は、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
以上、各種の実施例を用いて本発明を説明したが、これらの構成は、以上に説明した内容に限られるものではなく、通常考えられる様な代替手段も当然含まれる。例えば、組合せ選択手段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
100…背景画像、 110…素材画像、 120…Z値データ、
200…合成画像、 210…画像保存部、 220…奥行き情報保存部、
300…合成画像生成部、 350…組合せ選択手段、 360…合成手段
100 ...
200 ...
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.
前記記憶されている素材画像の中の複数の該素材画像の組を、各組に含まれる各々の素材画像に組み合わされる前記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.
前記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.
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)
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)
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 |
-
2007
- 2007-11-01 JP JP2007284656A patent/JP4915005B2/en active Active
Patent Citations (3)
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)
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 |