JPH11316823A - Image synthesizing method and apparatus, and recording medium recording this method - Google Patents
Image synthesizing method and apparatus, and recording medium recording this methodInfo
- Publication number
- JPH11316823A JPH11316823A JP10122602A JP12260298A JPH11316823A JP H11316823 A JPH11316823 A JP H11316823A JP 10122602 A JP10122602 A JP 10122602A JP 12260298 A JP12260298 A JP 12260298A JP H11316823 A JPH11316823 A JP H11316823A
- Authority
- JP
- Japan
- Prior art keywords
- depth information
- image
- depth
- information
- computer
- 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.)
- Pending
Links
Landscapes
- Image Generation (AREA)
- Image Processing (AREA)
Abstract
(57)【要約】
【課題】 奥行情報を所持する複数の画像を、矛盾を生
じることなく合成する画像合成方法および装置を提供す
る。
【解決手段】 奥行情報入力手段110は、画像ファイ
ルを計算機のメモリに読み込む際に、画像ファイルに記
載された奥行情報を画素単位に読み込む。奥行き情報付
与手段120は、入力された各画素の奥行情報に対し、
計算機内に設定された仮想空間において、統一された条
件のもとで新たに奥行情報を付与し、メモリ内の画像デ
ータに奥行情報を新たに付与する。画像合成手段130
は、新たに付与されたメモリ内の奥行情報に従って複数
の画像データを合成する。画像表示手段140は、その
合成結果を表示する。
(57) [Problem] To provide an image synthesizing method and apparatus for synthesizing a plurality of images having depth information without inconsistency. SOLUTION: When reading an image file into a memory of a computer, a depth information input unit 110 reads depth information described in the image file for each pixel. The depth information providing unit 120 calculates, for the input depth information of each pixel,
In the virtual space set in the computer, depth information is newly added under unified conditions, and depth information is newly added to image data in the memory. Image combining means 130
Synthesizes a plurality of image data in accordance with the newly assigned depth information in the memory. The image display means 140 displays the synthesis result.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、複数の異なる画像
データを同一のアプリケーション・プログラムにおいて
合成する画像合成方法に関するものである。[0001] 1. Field of the Invention [0002] The present invention relates to an image synthesizing method for synthesizing a plurality of different image data in the same application program.
【0002】[0002]
【従来の技術】従来、計算機(コンピュータ)上でビッ
トマップ形式で記録された画像の合成、即ち複数の画像
データを同一の領域に重ね合わせる際に、重ね合わせの
結果生じる画像は、重ね合わせる元の画像の各画素が所
持する色情報、または非透過率(α値)を用いていた。2. Description of the Related Art Conventionally, when combining images recorded in a bit map format on a computer (computer), that is, when a plurality of image data are superimposed on the same area, an image resulting from the superimposition is an original image. Color information or non-transmissivity (α value) possessed by each pixel of the image.
【0003】[0003]
【発明が解決しようとする課題】このため、例えば奥行
感のある複数の画像を重ね合わせて合成処理する際に、
画像Aと画像Bとの前後関係などに不自然さを生じるこ
とがあった。これは、一般の画像ファイル形式は各画素
の色情報のみを記録する形式になっており、奥行情報の
記録形式が統一されていないためである。For this reason, for example, when a plurality of images having a sense of depth are superimposed and synthesized,
In some cases, unnaturalness may occur in the anteroposterior relationship between the image A and the image B. This is because the general image file format records only the color information of each pixel, and the recording format of the depth information is not unified.
【0004】これに対し、3次元のデータ構造を記録す
るファイル形式も存在するが、生成される画像は、前記
データ構造を記録したファイルを解釈し画像を生成する
プログラムに大きく依存してしまう。[0004] On the other hand, there is a file format for recording a three-dimensional data structure, but the generated image greatly depends on a program for interpreting a file recording the data structure and generating an image.
【0005】また、仮に奥行情報あるいは各画素ごとの
優先順位を記録した2次元画像が存在したとしても、互
いの奥行情報の相対的な位置関係がわからない、という
問題がある。Further, even if there is a two-dimensional image in which depth information or a priority order for each pixel is recorded, there is a problem that the relative positional relationship between the depth information is not known.
【0006】本発明の課題は、上記問題点を解決した、
奥行情報を所持する複数の画像を、矛盾を生じることな
く合成する画像合成方法および装置を提供することにあ
る。An object of the present invention is to solve the above problems,
It is an object of the present invention to provide an image synthesizing method and apparatus for synthesizing a plurality of images having depth information without inconsistency.
【0007】[0007]
【課題を解決するための手段】本発明は、以下に列記し
た各発明により上記の課題を解決する。The present invention solves the above-mentioned problems by the inventions listed below.
【0008】(1)の発明は、奥行情報を所持する複数
の画像を計算機を用いて合成する方法であって、計算機
内に共通の奥行範囲を構築し、異なる奥行範囲を異なる
記憶容量に記録した複数の画像を、前記計算機内に構築
された共通の奥行範囲並びに前記記憶容量に対応付けて
読み込み、前記読み込んだ画像に対し、前記計算機内に
構築された共通の奥行範囲に応じて新たに奥行情報を付
与し、前記新たに付与された奥行情報に応じて複数の画
像を合成し、前記合成された画像を表示する、ことを特
徴とする画像合成方法である。The invention of (1) is a method for synthesizing a plurality of images having depth information using a computer, wherein a common depth range is constructed in the computer and different depth ranges are recorded in different storage capacities. Read a plurality of images in association with the common depth range and the storage capacity constructed in the computer, and newly read the read image in accordance with the common depth range constructed in the computer. An image synthesizing method, wherein depth information is added, a plurality of images are synthesized according to the newly added depth information, and the synthesized image is displayed.
【0009】(2)の発明は、(1)の発明において、
前記新たに奥行情報を付与する際においては、読み込ん
だもとの画像における奥行情報の取り得る値の数に応じ
て、計算機内に構築する奥行情報の取り得る値の数を決
定することを特徴とする画像合成方法である。[0009] The invention of (2) is based on the invention of (1).
When the new depth information is added, the number of possible values of the depth information to be constructed in the computer is determined according to the number of possible values of the depth information in the read original image. Is an image synthesizing method.
【0010】(3)の発明は、(1)または(2)の発
明において、前記新たに奥行情報を付与する際において
は、新たに付与する奥行情報を、読み込んだもとの画像
の情報から変更及び修正及び編集する処理の1以上をす
ることを特徴とする画像合成方法である。The invention of (3) is characterized in that, in the invention of (1) or (2), when the new depth information is added, the newly added depth information is obtained from the information of the original image read. An image synthesizing method characterized by performing one or more processes of changing, modifying, and editing.
【0011】(4)の発明は、(3)の発明において、
前記新たに奥行情報を付与する際においては、読み込ん
だもとの画像が所持している同一の奥行情報に対してそ
の奥行情報を所持する画素の色情報に応じて新たに奥行
情報を付与することを特徴とする画像合成方法である。The invention according to (4) is the invention according to (3),
When the new depth information is added, the new depth information is newly added to the same depth information possessed by the read original image in accordance with the color information of the pixel having the depth information. An image synthesizing method characterized in that:
【0012】(5)の発明は、奥行情報を所持する複数
の画像を計算機を用いて合成する装置であって、異なる
奥行範囲を異なる記憶容量に記録した複数の画像を、計
算機内に構築された共通の奥行範囲並びに前記記憶容量
に対応付けて読み込む手段と、前記読み込んだ画像に対
し、前記計算機内に構築された共通の奥行範囲に応じて
新たに奥行情報を付与する手段と、前記新たに付与され
た奥行情報に応じて複数の画像を合成する手段と、前記
合成された画像を表示する手段と、を有することを特徴
とする画像合成装置である。The invention of (5) is an apparatus for synthesizing a plurality of images having depth information using a computer, wherein a plurality of images in which different depth ranges are recorded in different storage capacities are constructed in the computer. Means for reading in association with the common depth range and the storage capacity, means for newly adding depth information to the read image in accordance with the common depth range constructed in the computer, An image synthesizing apparatus, comprising: means for synthesizing a plurality of images in accordance with the depth information given to the image, and means for displaying the synthesized image.
【0013】(6)の発明は、(5)の発明において、
前記新たに奥行情報を付与する手段は、読み込んだもと
の画像における奥行情報の取り得る値の数に応じて、計
算機内に構築する奥行情報の取り得る値の数を決定する
ものであることを特徴とする画像合成装置である。The invention according to (6) is the invention according to (5), wherein
The means for adding the new depth information determines the number of possible values of the depth information to be constructed in the computer according to the number of possible values of the depth information in the read original image. An image synthesizing apparatus characterized by the following.
【0014】(7)の発明は、(5)または(6)の発
明において、前記新たに奥行情報を付与する手段は、新
たに付与する奥行情報を、読み込んだもとの画像の情報
から変更及び修正及び編集する処理の1以上を含むこと
を特徴とする画像合成装置である。(7) The invention according to (5) or (6), wherein the means for adding the new depth information changes the newly added depth information from the information of the original image read. And at least one of a correction and an editing process.
【0015】(8)の発明は、(7)の発明において、
前記新たに奥行情報を付与する手段は、読み込んだもと
の画像が所持している同一の奥行情報に対してその奥行
情報を所持する画素の色情報に応じて新たに奥行情報を
付与するものであることを特徴とする画像合成装置であ
る。The invention according to (8) is the invention according to (7), wherein
The means for newly adding depth information is a means for newly adding depth information to the same depth information possessed by the read original image in accordance with the color information of the pixel having the depth information. An image synthesizing apparatus characterized in that:
【0016】(9)の発明は、奥行情報を所持する複数
の画像を計算機を用いて合成する方法を記録した記録媒
体であって、計算機内に共通の奥行範囲を構築する手順
と、異なる奥行範囲を異なる記憶容量に記録した複数の
画像を、前記計算機内に構築された共通の奥行範囲並び
に前記記憶容量に対応付けて読み込む手順と、前記読み
込んだ画像に対し、前記計算機内に構築された共通の奥
行範囲に応じて新たに奥行情報を付与する手順と、前記
新たに付与された奥行情報に応じて複数の画像を合成す
る手順と、前記合成された画像を表示する手順と、を有
することを特徴とする画像合成方法を記録した記録媒体
である。The invention of (9) is a recording medium which records a method of synthesizing a plurality of images having depth information by using a computer, wherein a procedure for constructing a common depth range in the computer and a different depth are provided. A procedure for reading a plurality of images whose ranges are recorded in different storage capacities in association with a common depth range and the storage capacity built in the computer, and for the read image, a procedure built in the calculator. A procedure for adding new depth information according to a common depth range, a procedure for combining a plurality of images according to the newly assigned depth information, and a procedure for displaying the combined image. A recording medium on which an image synthesizing method characterized by the above is recorded.
【0017】(10)の発明は、(9)の発明におい
て、前記新たに奥行情報を付与する手順においては、読
み込んだもとの画像における奥行情報の取り得る値の数
に応じて、計算機内に構築する奥行情報の取り得る値の
数を決定する処理を含むことを特徴とする画像合成方法
を記録した記録媒体である。According to the invention of (10), in the invention of (9), in the step of adding the new depth information, the procedure in the computer according to the number of possible values of the depth information in the read original image is performed. And a process for determining the number of possible values of the depth information to be constructed.
【0018】(11)の発明は、(9)または(10)
の発明において、前記新たに奥行情報を付与する手順に
おいては、新たに付与する奥行情報を、読み込んだもと
の画像の情報から変更及び修正及び編集する処理の1以
上を含むことを特徴とする画像合成方法を記録した記録
媒体である。The invention of (11) is characterized in that (9) or (10)
In the invention, the procedure for adding new depth information includes one or more processes of changing, correcting, and editing the newly added depth information from information of the read original image. This is a recording medium on which an image synthesizing method is recorded.
【0019】(12)の発明は、(11)の発明におい
て、前記新たに奥行情報を付与する手順においては、読
み込んだもとの画像が所持している同一の奥行情報に対
してその奥行情報を所持する画素の色情報に応じて新た
に奥行情報を付与する処理を有することを特徴とする画
像合成方法を記録した記録媒体である。According to the invention of (12), in the invention of (11), in the step of adding the new depth information, the same depth information possessed by the original image which has been read is stored in the depth information. Is a recording medium on which is recorded an image synthesizing method, characterized by having a process of newly adding depth information in accordance with color information of a pixel having.
【0020】本発明においては、画像ファイルを計算機
のメモリに読み込む際に、画像ファイルに記載された奥
行情報を読み込み、メモリ内の画像データに共通の奥行
範囲に応じて奥行情報を新たに付与し、新たに付与され
たメモリ内の奥行情報に従って複数の画像データを合成
し、合成結果を表示することにより、奥行情報を所持す
る複数の画像を、奥行の矛盾を生じることなく合成可能
とする。In the present invention, when the image file is read into the memory of the computer, the depth information described in the image file is read, and the depth information is newly added to the image data in the memory according to the common depth range. By synthesizing a plurality of image data in accordance with the newly assigned depth information in the memory and displaying the synthesis result, it is possible to synthesize a plurality of images having depth information without inconsistency in depth.
【0021】[0021]
【発明の実施の形態】以下、本発明の実施の形態につい
て図を用いて詳細に説明する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0022】図1の構成図は、本発明の基本型の一実施
形態例であって、本発明の第一の実施形態例であり、発
明(1)、(5)の一実施形態例を説明する図である。FIG. 1 is a block diagram showing one embodiment of the basic type of the present invention, which is the first embodiment of the present invention, and shows one embodiment of the inventions (1) and (5). FIG.
【0023】図1において、110は奥行情報入力手段
であり、120は奥行情報付与手段であり、130は画
像合成手段であり、140は画像表示手段である。In FIG. 1, reference numeral 110 denotes a depth information input unit, 120 denotes a depth information adding unit, 130 denotes an image synthesizing unit, and 140 denotes an image display unit.
【0024】奥行情報入力手段110は、入力された画
像ファイルに記録されている奥行情報を計算機内のメモ
リに読み込む手段である。あるいは、同一あるいは他の
計算機のメモリ内に記憶されている画像データが所持す
る奥行情報をそのままメモリ上へ読み込んでも良い。The depth information input means 110 is means for reading the depth information recorded in the input image file into a memory in the computer. Alternatively, depth information possessed by image data stored in the memory of the same or another computer may be directly read into the memory.
【0025】この時、奥行情報は、画像データの画素単
位で記録あるいは記憶されていることを前提とし、その
奥行情報を何階調で表し記録されているかは、あらかじ
め画像自体に記録されているか、または画像自体の構造
から得られるものとする。例えば、1画素の奥行情報が
8ビットの符号なし整数値で記録されている、などであ
る。At this time, it is assumed that the depth information is recorded or stored in pixel units of the image data, and how many gradations the depth information is represented and recorded depends on whether the depth information is recorded in the image itself in advance. Or the structure of the image itself. For example, the depth information of one pixel is recorded as an 8-bit unsigned integer value.
【0026】奥行情報付与手段120は、入力された各
画素の奥行情報に対し、計算機内に設定された仮想空間
Wにおいて、統一された条件のもとで新たに奥行情報を
付与する。The depth information adding means 120 newly adds depth information to the input depth information of each pixel in the virtual space W set in the computer under unified conditions.
【0027】仮想空間Wにおいて1画素あたりの奥行を
K0階調で表すものとし、K0の最大値、最小値をそれぞ
れmax(K0)、min(K0)とし、それぞれが奥行
の最大値(視点に近い)、最小値(視点から遠い)を表
すものとする。[0027] The depth of each pixel in the virtual space W shall be represented by K 0 gradation, and max the maximum value of K 0, the minimum value, respectively (K 0), min (K 0), maximum depth, respectively Value (close to the viewpoint) and minimum value (far from the viewpoint).
【0028】また、奥行情報をmin(K0)=z0 0,
z0 1,...,z0 K0-1=max(K0)で表す。Further, the depth information is represented by min (K 0 ) = z 0 0 ,
z 0 1 ,. . . , Represented by z 0 K0-1 = max (K 0 ).
【0029】また、合成する画像の数をNとし、画像I
i(i=1,2,...,N)の奥行情報の階調をKiと
し、奥行情報をmin(Ki)=zi 0,zi 1,...,
zi Ki-1=max(Ki)で表す。The number of images to be synthesized is N, and the image I
i (i = 1,2, ..., N) the gradation of depth information of the K i, the depth information min (K i) = z i 0, z i 1,. . . ,
It is represented by z i Ki-1 = max (K i ).
【0030】その後、以下の処理を行う。なお、図2は
以下の処理で現れる事象の模式図であり、奥行を8階調
で表している。また、奥行情報付与手段は第3のステッ
プまでであり、第4のステップは画像合成手段における
処理である。Thereafter, the following processing is performed. FIG. 2 is a schematic diagram of an event appearing in the following processing, and the depth is represented by eight gradations. The depth information providing means is up to the third step, and the fourth step is processing in the image synthesizing means.
【0031】適当な原点の元で、合成後の画像の位置
(x,y)にある画素の奥行情報をp(x,y)とし、
画像が記憶されるメモリまたはフレームバッファの奥行
情報を全て初期化する。即ち、全ての画素が視点から最
も遠い点にあるものとし、この値をp0(x,y)とす
る。その後、以下の処理をi=1からi=Nまで行う。Under the appropriate origin, the depth information of the pixel at the position (x, y) of the synthesized image is defined as p (x, y).
Initialize all the depth information of the memory or frame buffer in which the image is stored. That is, it is assumed that all the pixels are at the farthest point from the viewpoint, and this value is set to p 0 (x, y). Thereafter, the following processing is performed from i = 1 to i = N.
【0032】1.Ki=K0であれば、Iiにおける奥行
情報を示す値のデータ型を仮想空間Wにおけるデータ型
に変換し、そのまま奥行情報の値としてIiに付与す
る。この時、図2(a)に示すようにmin(K0)、
max(K0)とmin(Ki)、max(Ki)の値を
揃えれるのが最も合理的である。1. If K i = K 0, and converts the data type of the value that indicates the depth information in the I i in the data type in the virtual space W, applied to the I i as the value of it is depth information. At this time, as shown in FIG. 2A, min (K 0 )
It is most rational that the values of max (K 0 ), min (K i ), and max (K i ) are the same.
【0033】揃えない場合は、図2(b−1),(b−
2)に示すように、min(K0)とmax(K0)の範
囲に収まらないものは、その部分の画素を消去してもよ
いし、あるいは、その部分の奥行情報をmin(K0)
またはmax(K0)としてもよい。この時、Iiに新た
に付加する奥行情報は、図2(b−1),(b−2)に
示すような基準となる値から新たに付与することにな
る。If not aligned, see FIGS. 2 (b-1) and (b-
As shown in 2), if the value does not fall within the range of min (K 0 ) and max (K 0 ), the pixel of that portion may be deleted, or the depth information of that portion may be replaced by min (K 0). )
Alternatively, it may be max (K 0 ). At this time, the depth information newly added to I i is newly added from the reference value as shown in FIGS. 2 (b-1) and 2 (b-2).
【0034】2.Ki<K0であれば、Iiにおける奥行
情報を示す値のデータ型を仮想空間Wにおけるデータ型
に変換し、図2(c)に示すようにmin(K0)とm
ax(K0)内にmin(Ki)とmax(Ki)が含ま
れるように、min(Ki)またはmax(Ki)がz0 j
(j=0,1,...,K0−1)のどれに相当するか
を決定し、その値を基準にして仮想空間Wでの奥行情報
を付与する。2. If K i <K 0, converts the data type of the value that indicates the depth information in the I i in the data type in the virtual space W, as shown in FIG. 2 (c) min and (K 0) m
min (K i ) or max (K i ) is z 0 j so that min (K i ) and max (K i ) are included in ax (K 0 ).
(J = 0, 1,..., K 0 -1) is determined, and depth information in the virtual space W is added based on the value.
【0035】min(K0)とmax(K0)内にmin
(Ki)とmax(Ki)が含まれない場合は、1.と同
様の処理を行う。[0035] min (K 0) and max (K 0) min in the
If (K i ) and max (K i ) are not included, then 1. The same processing is performed.
【0036】3.Ki>K0であれば、Iiにおける奥行
情報を示す値のデータ型を仮想空間Wにおけるデータ型
に変換し、図2(d)に示すようにmin(Ki)とm
ax(Ki)の間からmin(K0)またはmax
(K0)に対応する基準点を設定し、(図2(d)では
min(K0)に対応させているが、どちらでもよい)
その基準点から新たに奥行情報を付与する。3. If K i > K 0 , the data type of the value indicating the depth information in I i is converted to the data type in the virtual space W, and min (K i ) and m are converted as shown in FIG.
min (K 0 ) or max from between ax (K i )
A reference point corresponding to (K 0 ) is set (corresponding to min (K 0 ) in FIG. 2D, but either may be used).
Depth information is newly added from the reference point.
【0037】その際、K0階調におさまらない部分は、
その部分の画素を消去してもよいし、あるいは、その部
分の奥行情報をmin(K0)またはmax(K0)とし
てもよい。At this time, the part that does not fall into the K 0 gradation is
The pixels in that part may be erased, or the depth information of that part may be min (K 0 ) or max (K 0 ).
【0038】4.画像合成手段130において、合成処
理を行う。即ち、計算機のメモリまたはフレームバッフ
ァに記憶されている奥行情報p0(x,y)と、Iiの各
画素の所持する奥行情報pi(x,y)とを比較し、よ
り視点に近い奥行情報を所持する方の色および奥行情報
を新たにp0(x,y)として計算機内のメモリまたは
フレームバッファに記憶する。4. The image synthesizing means 130 performs a synthesizing process. That is, the depth information p 0 (x, y) stored in the memory or the frame buffer of the computer is compared with the depth information p i (x, y) possessed by each pixel of I i , and the viewpoint is closer to the viewpoint. The color and the depth information of the person having the depth information are newly stored in a memory or a frame buffer in the computer as p 0 (x, y).
【0039】この時、各画像Iiの大きさ、即ち縦横の
画素数が異なる場合は、本発明利用者が各画像の位置を
適当に合わせても良いし、例えば左上隅を合わせるなど
の処理を行っても良い。The processing such as the time, the size of each image I i, that is, when the number of pixels in the vertical and horizontal directions are different, to the present invention the user may appropriately align the respective images, for example, align the upper left corner May be performed.
【0040】以上の処理を繰り返し、N枚の画像につい
て処理を終了した後に計算機内のメモリまたはフレーム
バッファに記憶されている色情報に基づき、画像表示手
段140により画像を表示する。The above process is repeated, and after the N images have been processed, the image is displayed by the image display means 140 based on the color information stored in the memory or the frame buffer in the computer.
【0041】また、N枚の画像全ての情報を読み込んで
から画素の奥行情報を新しく付与し、その値を比較して
合成後の色を決定しても良い。この場合、上記処理手順
よりも記憶容量を多く必要とする。It is also possible to newly add pixel depth information after reading information of all N images, and compare the values to determine the combined color. In this case, a larger storage capacity is required than in the above processing procedure.
【0042】以上で述べた処理の流れを図3に示す。FIG. 3 shows the flow of the processing described above.
【0043】本実施形態例により、奥行情報を有する複
数の画像をその奥行の前後関係に不自然さが生じないよ
うに合成することが可能となる、という効果がある。According to the present embodiment, there is an effect that a plurality of images having depth information can be synthesized so as to prevent unnaturalness in the depth order.
【0044】図4は、本発明の第二の実施形態例を示す
構成図であって、発明(2)、(6)の一実施形態例を
説明する図である。FIG. 4 is a block diagram showing a second embodiment of the present invention, and is a view for explaining one embodiment of the inventions (2) and (6).
【0045】本実施形態例の構成および処理は、基本的
に第一の実施形態例と同一であるが、奥行情報付与手段
120において、前段に121の奥行情報記憶容量決定
手段が加わっている。The configuration and processing of this embodiment are basically the same as those of the first embodiment, but the depth information adding means 120 is provided with a depth information storage capacity determining means 121 at the preceding stage.
【0046】第一の実施形態例においては、計算機内の
仮想空間Wにおける1画素あたりの奥行をK0階調で表
すものとし、固定していたが、本実施形態例ではK0が
動的に変化するものである。[0046] In the first embodiment, the depth of each pixel in the virtual space W computing machine shall be represented by K 0 gradation, had been fixed, the dynamic is K 0 in this embodiment It changes to.
【0047】即ち、第一の実施形態例と同様に合成する
画像の数をNとし、画像Ii(i=1,2,...,
N)の奥行情報の階調をKiとした際に、例えば、全画
像の情報をあらかじめ入力してKiのうち最も大きな値
を新たにK0としてもよいし、画像を1つずつ読み込ん
で計算機内のメモリまたはフレームバッファヘ書き込む
際に、そのたびKiとK0とを比較し、大きい方の値をK
0として、第一の実施形態例と同様の処理を行う。That is, as in the first embodiment, the number of images to be synthesized is N, and the images I i (i = 1, 2,.
Gradation depth information N) upon the K i, for example, may be a new K 0 is the highest value among K i of previously entered information of all images, reads an image one by one in when writing computing machine memory or frame buffer f, the time is compared with K i and K 0, the larger value K
Assuming 0 , the same processing as in the first embodiment is performed.
【0048】図5に、以上で述べた第二の実施形態例の
処理の流れを示す。FIG. 5 shows the flow of processing of the second embodiment described above.
【0049】本実施形態例により、奥行情報を有する複
数の画像をその奥行の前後関係に不自然さが生じないよ
うに、かつ、全ての奥行情報が利用されるように合成す
ることが可能となる、という効果がある。According to the present embodiment, it is possible to combine a plurality of images having depth information so that the anteroposterior relation of the depth does not occur and all the depth information is used. Has the effect of becoming
【0050】図6は、本発明の第三の実施形態例であっ
て、発明(3)、(7)または(4)、(8)の一実施
形態例を説明する図である。FIG. 6 is a diagram illustrating a third embodiment of the present invention, which is an embodiment of the invention (3), (7) or (4), (8).
【0051】本実施形態例の構成および処理は基本的に
第一の実施形態例または第二の実施形態例と同一である
が、奥行情報付与手段120において、前段に122の
奥行情報修正手段が加わっている。The structure and processing of this embodiment are basically the same as those of the first embodiment or the second embodiment. However, in the depth information adding means 120, a depth information correcting means 122 is provided at the preceding stage. Have joined.
【0052】本実施形態例は、第一の実施形態例または
第二の実施形態例に加え、実際に画像の奥行情報が表す
距離や画像の持つ色情報を用いて画像を合成することを
主な特徴とする。In this embodiment, in addition to the first embodiment or the second embodiment, the main feature is that the image is actually synthesized using the distance represented by the depth information of the image and the color information of the image. Characteristics.
【0053】即ち、第一の実施形態例と同様に仮想空間
Wにおける奥行情報を表す階調をK0とし、K0の示す最
大値、最小値をそれぞれmax(K0)、min(K0)
とし、奥行情報をmin(K0)=z0 0,
z0 1,...,z0 K0-1=max(K0)で表す。That is, as in the first embodiment, the gradation representing the depth information in the virtual space W is K 0, and the maximum value and the minimum value indicated by K 0 are max (K 0 ) and min (K 0 , respectively). )
And the depth information is represented by min (K 0 ) = z 0 0 ,
z 0 1 ,. . . , Represented by z 0 K0-1 = max (K 0 ).
【0054】合成する画像の数をNとし、画像Ii(i
=1,2,...,N)の奥行情報の階調をKiとし、
奥行情報をmin(Ki)=zi 0,zi 1,...,zi
Ki-1=max(Ki)で表す。When the number of images to be synthesized is N, the image I i (i
= 1, 2,. . . , N), the gradation of the depth information is K i ,
Depth information is represented by min (K i ) = z i 0 , z i 1 ,. . . , Z i
Ki-1 = represented by max (K i).
【0055】また、奥行情報max(Ki)、min
(Ki)(i=0,1,2,...,N)が示す奥行の
値をそれぞれZ(maxi)、Z(mini)とする。Further, depth information max (K i ), min
The values of the depth indicated by (K i ) (i = 0, 1, 2,..., N) are Z (max i ) and Z (min i ), respectively.
【0056】また、仮想空間Wを含む各画像の1階調あ
たりの奥行距離(Z(maxi)−Z(min))/Ki
をΔiとする。例えば、ある画像Ikを生成した仮想空間
内で、奥行2.4mを8階調で表した場合、Δk=2.
4/8=0.3mとなる。The depth distance (Z (max i ) −Z (min)) / K i of each image including the virtual space W per gradation.
Is Δ i . For example, in a virtual space in which a certain image I k is generated, when a depth of 2.4 m is represented by eight gradations, Δ k = 2.
4/8 = 0.3 m.
【0057】この時、全ての画像の奥行情報を仮想空間
W内に入力するには、Z(maxi)のうち最大のもの
をZ(max0)とし、Z(mini)のうち最小のもの
をZ(min0)とし、Δiのうち最小のものをΔ0とし
た時、Z(min0)とZ(max0)との間を、1階調
がΔ0となるだけの階調で表す必要がある。即ち、K0=
(Z(min0)−Z(max0))/Δ0となる。At this time, in order to input the depth information of all the images into the virtual space W, the largest one of Z (max i ) is Z (max 0 ) and the smallest one of Z (min i ) is Z (max i ). things and Z (min 0), Δ when i the smallest of the set to delta 0, between the Z (min 0) and Z (max 0), only the floor 1 gradation becomes delta 0 It must be expressed in tones. That is, K 0 =
(Z (min 0 ) −Z (max 0 )) / Δ 0
【0058】図7はこの様子を模式的に表している。FIG. 7 schematically shows this state.
【0059】Z(min0)とZ(max0)の表す奥行
の値やΔ0は任意の画像のものを適当に選択しても良
く、K0もそれらから導かれる値で良いが、いずれにせ
よ、各画像Iiの所持していた奥行情報は何らかの影響
を受けることになる。The depth value and Δ 0 represented by Z (min 0 ) and Z (max 0 ) may be appropriately selected from those of an arbitrary image, and K 0 may be a value derived therefrom. in any case, the depth information that was in possession of each image I i will be subject to some kind of impact.
【0060】例えば、図7(a)ではI1やI3はさらに
奥行が細分化されることになり、図7(b)ではI2は
奥行情報の間隔が広くなり、I3は奥行が細分化される
ことになる。For example, in FIG. 7 (a), the depth of I 1 and I 3 is further subdivided, and in FIG. 7 (b), the interval of the depth information of I 2 is wide, and the depth of I 3 is I 3. It will be subdivided.
【0061】この時、 1.奥行の間隔が広くなる場合、即ちΔi<Δ0となる場
合は、Iiにおける複数の階調をひとつで表し、その値
で評価する。例えば、奥行情報zi j,zi j+1,zi j+2を
まとめて1階調で表す、などである。その後、階調教K
0における奥行情報に付与し直す。At this time, If the interval between the depth becomes wide, if that is, Δ i <Δ 0 denotes a single multiple gradation in I i, evaluated at the value. For example, the depth information z i j, collectively z i j + 1, z i j + 2 represented by one gradation, and the like. After that, gradation teaching K
Re-attach to the depth information at 0 .
【0062】2.奥行の間隔がさらに狭くなり細分化さ
れる場合は、以下のようにもとの画像の情報から変更や
修正や編集する処理を行う。例えば、zi jとzi j+1の間
に、新たにzi j+1/2となるような情報を補間する場合
は、例えば図8(a)に示すようにzi jを有する画素の
領域とzi j+1を有する画素の領域とが隣接している場合
は、隣接している境界から適当な領域だけをzi j+1/2と
してもよいし、また図8(b)に示すように、zi jを有
する画素の領域とzi j+1を有する画素の領域とに同一あ
るいは類似の色情報を有する部分的な領域がある場合、
その部分の奥行情報を新たにzi j+1/2としてもよい。後
者の場合は(4)、(8)の発明の実施形態例となる。
その後、階調教K0における奥行情報に付与し直す。[0062] 2. When the depth interval is further narrowed and subdivided, a process of changing, correcting, and editing from the information of the original image is performed as follows. For example, between z i j and z i j + 1, when interpolating information such as new a z i j + 1/2 has a z i j, for example, as shown in FIG. 8 (a) When the pixel region and the pixel region having z i j + 1 are adjacent to each other, only an appropriate region from the adjacent boundary may be set to z i j + 1/2 , or FIG. As shown in b), when there is a partial region having the same or similar color information in the pixel region having z i j and the pixel region having z i j + 1 ,
The depth information of the portion may newly be z i j + 1/2. The latter case is an embodiment of the invention of (4) and (8).
Then, re-assigned to the depth information in the floor Torture K 0.
【0063】以上の処理のもとに、第一の実施形態例、
第二の実施形態例と同様の合成処理を行う。Based on the above processing, the first embodiment,
The same combination processing as in the second embodiment is performed.
【0064】本実施形態例の処理の流れは、第一の実施
形態例あるいは第二の実施形態例と同様なものであり、
新たに奥行情報を付与する段階で上記のような処理が加
わる点が異なる。The processing flow of this embodiment is similar to that of the first embodiment or the second embodiment.
The difference is that the above-described processing is added at the stage of adding new depth information.
【0065】本実施形態例により、奥行情報ならびに奥
行範囲を有する複数の画像を、その奥行の前後関係や奥
行の距離に不自然さが生じないように、かつ、全ての奥
行情報が利用されるように合成することが可能となる、
という効果がある。According to the present embodiment, a plurality of images having depth information and a depth range are used without causing unnaturalness in the depth order and the depth distance, and all depth information is used. It becomes possible to synthesize
This has the effect.
【0066】なお、図1、図4、図6の構成図で示した
手段の一部もしくは全部を計算機(コンピュータ)を用
いて機能させることができること、あるいは、図3、図
5の流れ図で示した処理の手順を計算機で実行させるこ
とができることは言うまでもなく、計算機をその手段と
して機能させるためのプログラム、あるいは、計算機で
その処理の手順を実行させるためのプログラムを、その
計算機が読み取り可能な記録媒体、例えば、FD(フロ
ッピーディスク)や、MO、ROM、メモリカード、C
D、DVD、リムーバブルディスクなどに記録して提供
し、配布することが可能である。Note that some or all of the means shown in the configuration diagrams of FIGS. 1, 4 and 6 can be made to function using a computer (computer), or shown in the flow charts of FIGS. 3 and 5. Needless to say, a computer can execute a processing procedure that is executed by a computer, or a program that causes the computer to function as the means or a program that causes the computer to execute the processing procedure. Medium, for example, FD (floppy disk), MO, ROM, memory card, C
D, DVD, removable disk, etc., and can be provided and distributed.
【0067】[0067]
【発明の効果】以上説明したように、本発明は、奥行情
報を所持する複数の画像を、奥行の矛盾を生じることな
く合成することが可能となる、という効果がある。As described above, the present invention has an effect that a plurality of images having depth information can be synthesized without inconsistency in depth.
【図1】本発明の第一の実施形態例を示す構成図であ
る。FIG. 1 is a configuration diagram showing a first embodiment of the present invention.
【図2】(a),(b−1),(b−2),(c),
(d)は、上記第一の実施形態例での奥行情報の付与例
を説明する図である。FIGS. 2 (a), (b-1), (b-2), (c),
(D) is a figure explaining the example of addition of depth information in the said 1st Embodiment.
【図3】上記第一の実施形態例での処理の流れ図であ
る。FIG. 3 is a flowchart of a process in the first embodiment.
【図4】本発明の第二の実施形態例を示す構成図であ
る。FIG. 4 is a configuration diagram showing a second embodiment of the present invention.
【図5】上記第二の実施形態例での処理の流れ図であ
る。FIG. 5 is a flowchart of a process in the second embodiment.
【図6】本発明の第三の実施形態例を示す構成図であ
る。FIG. 6 is a configuration diagram showing a third embodiment of the present invention.
【図7】(a),(b)は、上記第三の実施形態例での
奥行範囲ならびに階調決定例を説明する図である。FIGS. 7A and 7B are diagrams illustrating an example of a depth range and a gradation determination in the third embodiment.
【図8】(a),(b)は、上記第三の実施形態例での
奥行の細分化例を説明する図である。FIGS. 8A and 8B are diagrams illustrating an example of subdivision of depth in the third embodiment.
110…奥行情報入力手段 120…奥行情報付与手段 121…奥行情報記憶容量決定手段 122…奥行情報修正手段 130…画像合成手段 140…画像表示手段 110 depth information input means 120 depth information providing means 121 depth information storage capacity determination means 122 depth information correction means 130 image synthesis means 140 image display means
Claims (12)
を用いて合成する方法であって、 計算機内に共通の奥行範囲を構築し、 異なる奥行範囲を異なる記憶容量に記録した複数の画像
を、前記計算機内に構築された共通の奥行範囲並びに前
記記憶容量に対応付けて読み込み、 前記読み込んだ画像に対し、前記計算機内に構築された
共通の奥行範囲に応じて新たに奥行情報を付与し、 前記新たに付与された奥行情報に応じて複数の画像を合
成し、 前記合成された画像を表示する、 ことを特徴とする画像合成方法。1. A method for combining a plurality of images having depth information using a computer, comprising: constructing a common depth range in the computer; and storing a plurality of images in which different depth ranges are recorded in different storage capacities. Reading in association with the common depth range constructed in the computer and the storage capacity, and newly adding depth information to the read image in accordance with the common depth range constructed in the computer. And combining the plurality of images according to the newly provided depth information, and displaying the combined image.
ては、 読み込んだもとの画像における奥行情報の取り得る値の
数に応じて、計算機内に構築する奥行情報の取り得る値
の数を決定する、 ことを特徴とする請求項1記載の画像合成方法。2. The method according to claim 1, wherein when adding the new depth information, the number of possible values of the depth information to be constructed in the computer is determined according to the number of possible values of the depth information in the read original image. The method according to claim 1, wherein the method is determined.
ては、 新たに付与する奥行情報を、読み込んだもとの画像の情
報から変更及び修正及び編集する処理の1以上をする、 ことを特徴とする請求項1または請求項2に記載の画像
合成方法。3. The method according to claim 1, wherein, when the new depth information is added, at least one of a process of changing, correcting, and editing the newly added depth information from information of the read original image. The image synthesizing method according to claim 1 or 2, wherein
ては、 読み込んだもとの画像が所持している同一の奥行情報に
対してその奥行情報を所持する画素の色情報に応じて新
たに奥行情報を付与する、 ことを特徴とする請求項3に記載の画像合成方法。4. When the new depth information is added, the same depth information held by the read original image is newly added in accordance with the color information of the pixel having the depth information. The image synthesis method according to claim 3, wherein depth information is added.
を用いて合成する装置であって、 異なる奥行範囲を異なる記憶容量に記録した複数の画像
を、計算機内に構築された共通の奥行範囲並びに前記記
憶容量に対応付けて読み込む手段と、 前記読み込んだ画像に対し、前記計算機内に構築された
共通の奥行範囲に応じて新たに奥行情報を付与する手段
と、 前記新たに付与された奥行情報に応じて複数の画像を合
成する手段と、 前記合成された画像を表示する手段と、 を有することを特徴とする画像合成装置。5. An apparatus for synthesizing a plurality of images having depth information using a computer, wherein the plurality of images having different depth ranges recorded in different storage capacities are stored in a common depth range built in the computer. Means for reading in association with the storage capacity; means for newly adding depth information to the read image according to a common depth range constructed in the computer; and the newly added depth. An image combining apparatus, comprising: means for combining a plurality of images according to information; and means for displaying the combined image.
数に応じて、計算機内に構築する奥行情報の取り得る値
の数を決定するものである、 ことを特徴とする請求項5記載の画像合成装置。6. The means for adding new depth information determines the number of possible values of the depth information to be constructed in the computer according to the number of possible values of the depth information in the read original image. The image synthesizing device according to claim 5, wherein
報から変更及び修正及び編集する処理の1以上を含む、 ことを特徴とする請求項5または請求項6に記載の画像
合成装置。7. The means for adding new depth information includes at least one of processing for changing, correcting, and editing newly added depth information from information of a read original image. The image synthesizing apparatus according to claim 5, wherein the image synthesizing apparatus performs the processing.
対してその奥行情報を所持する画素の色情報に応じて新
たに奥行情報を付与するものである、 ことを特徴とする請求項7に記載の画像合成装置。8. The means for adding new depth information, wherein the new depth information is newly added to the same depth information possessed by the read original image in accordance with the color information of the pixel possessing the depth information. The image synthesizing apparatus according to claim 7, wherein information is added.
を用いて合成する方法を記録した記録媒体であって、 計算機内に共通の奥行範囲を構築する手順と、 異なる奥行範囲を異なる記憶容量に記録した複数の画像
を、前記計算機内に構築された共通の奥行範囲並びに前
記記憶容量に対応付けて読み込む手順と、 前記読み込んだ画像に対し、前記計算機内に構築された
共通の奥行範囲に応じて新たに奥行情報を付与する手順
と、 前記新たに付与された奥行情報に応じて複数の画像を合
成する手順と、 前記合成された画像を表示する手順と、 を有することを特徴とする画像合成方法を記録した記録
媒体。9. A recording medium recording a method of synthesizing a plurality of images having depth information using a computer, comprising: a procedure for constructing a common depth range in the computer; A plurality of images recorded in the procedure to read in association with the common depth range and the storage capacity built in the computer, and for the read image, in the common depth range built in the computer A step of newly adding depth information in accordance with the information, a step of combining a plurality of images in accordance with the newly added depth information, and a step of displaying the combined image. A recording medium on which an image composition method is recorded.
おいては、 読み込んだもとの画像における奥行情報の取り得る値の
数に応じて、計算機内に構築する奥行情報の取り得る値
の数を決定する処理を含む、 ことを特徴とする請求項9記載の画像合成方法を記録し
た記録媒体。10. In the procedure for adding new depth information, the number of possible values of the depth information to be constructed in the computer is determined according to the number of possible values of the depth information in the read original image. A recording medium on which the image synthesizing method according to claim 9 is recorded, comprising a process of determining.
おいては、 新たに付与する奥行情報を、読み込んだもとの画像の情
報から変更及び修正及び編集する処理の1以上を含む、 ことを特徴とする請求項9または請求項10に記載の画
像合成方法を記録した記録媒体。11. The procedure for adding new depth information includes one or more of a process of changing, correcting, and editing newly added depth information from information of a read original image. A recording medium on which the image synthesizing method according to claim 9 or 10 is recorded.
おいては、 読み込んだもとの画像が所持している同一の奥行情報に
対してその奥行情報を所持する画素の色情報に応じて新
たに奥行情報を付与する処理を有する、 ことを特徴とする請求項11に記載の画像合成方法を記
録した記録媒体。12. The procedure for adding new depth information includes the step of adding new depth information to the same depth information possessed by the read original image in accordance with the color information of the pixel possessing the depth information. A recording medium recording the image synthesizing method according to claim 11, further comprising a process of giving depth information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10122602A JPH11316823A (en) | 1998-05-06 | 1998-05-06 | Image synthesizing method and apparatus, and recording medium recording this method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10122602A JPH11316823A (en) | 1998-05-06 | 1998-05-06 | Image synthesizing method and apparatus, and recording medium recording this method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH11316823A true JPH11316823A (en) | 1999-11-16 |
Family
ID=14840009
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10122602A Pending JPH11316823A (en) | 1998-05-06 | 1998-05-06 | Image synthesizing method and apparatus, and recording medium recording this method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH11316823A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPWO2019230225A1 (en) * | 2018-05-29 | 2021-07-15 | ソニーグループ株式会社 | Image processing device, image processing method, program |
-
1998
- 1998-05-06 JP JP10122602A patent/JPH11316823A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPWO2019230225A1 (en) * | 2018-05-29 | 2021-07-15 | ソニーグループ株式会社 | Image processing device, image processing method, program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3761085B2 (en) | Image processing apparatus, components thereof, and rendering processing method | |
| JPH0765197A (en) | Method and equipment for processing picture | |
| JPH0785308A (en) | Image display method | |
| JPH0927045A (en) | Image processing device | |
| US6339430B1 (en) | Video game machine and method for changing texture of models | |
| US7050066B2 (en) | Image processing apparatus and image processing program | |
| US6577320B1 (en) | Method and apparatus for processing multiple types of pixel component representations including processes of premultiplication, postmultiplication, and colorkeying/chromakeying | |
| JP2002133438A (en) | Three-dimensional graphics drawing device, three-dimensional graphics drawing method, and computer-readable recording medium recording three-dimensional polygon data | |
| US6522337B1 (en) | Image processing apparatus, image processing method, and recording medium | |
| JP4095530B2 (en) | Image processing apparatus and method | |
| JP2000348206A (en) | Image generation apparatus and image priority determination method | |
| JPH11316823A (en) | Image synthesizing method and apparatus, and recording medium recording this method | |
| JP3903557B2 (en) | Data conversion apparatus and image generation apparatus | |
| JP4487400B2 (en) | Image deformation apparatus and image deformation method | |
| TWI354489B (en) | Device and method for determining color data of pi | |
| JP3910259B2 (en) | Image processing apparatus and method, and rendering apparatus and method | |
| JP2000056750A (en) | Image generation apparatus and image generation method | |
| JP3111971B2 (en) | Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program | |
| JP3936156B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP2000155851A (en) | Texture mapping apparatus, rendering apparatus including the same, and information processing apparatus | |
| JPH11306329A (en) | Image recording method and recording medium recording this method | |
| JP2006025448A (en) | Key signal generation apparatus and method, image composition apparatus, and recording medium | |
| JP2002354276A (en) | Color conversion method and color conversion device | |
| JP4313892B2 (en) | Drawing apparatus, drawing method, and recording medium | |
| JPH09147137A (en) | 3D image generation method |