JPH07131817A - Method and device for image synthesis - Google Patents

Method and device for image synthesis

Info

Publication number
JPH07131817A
JPH07131817A JP30099193A JP30099193A JPH07131817A JP H07131817 A JPH07131817 A JP H07131817A JP 30099193 A JP30099193 A JP 30099193A JP 30099193 A JP30099193 A JP 30099193A JP H07131817 A JPH07131817 A JP H07131817A
Authority
JP
Japan
Prior art keywords
area
contour
image
pixel
region
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
Application number
JP30099193A
Other languages
Japanese (ja)
Inventor
Tomoo Mitsunaga
知生 光永
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP30099193A priority Critical patent/JPH07131817A/en
Publication of JPH07131817A publication Critical patent/JPH07131817A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To beautifully extract an original object are from an original image by dividing the area on the original image into the object area, a nonobject area, and a contour area by dividing the space into three. CONSTITUTION:A key signal generation part synthesizes a key signal by using a foreground image as an input signal and an (alpha) synthesizing part switches the foreground image and a background image by using this key signal to generate a composite image. The key signal generation part consists of a chroma key are division part 4, an contour decision part 6, and an (alpha) value generation part 6. The chroma key area division part 4 has a function for defining a closed curved surface and a function for deciding an area, and divides the color space where the pixels of the foreground image are arranged on the basis of three-dimensional color information into three by using two closed curved surfaces shaped optionally so that one include the other. The purpose of this division is to remove dust other than the contour part by deciding the contour by the contour decision part 5.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【目次】以下の順序で本発明を説明する。 産業上の利用分野 従来の技術(図12) 発明が解決しようとする課題 課題が解決するための手段(図2) 作用 実施例(図1〜図11) 発明の効果[Table of Contents] The present invention will be described in the following order. Field of Industrial Application Conventional Technology (FIG. 12) Problem to be Solved by the Invention Means for Solving the Problem (FIG. 2) Action Example (FIGS. 1 to 11) Effect of the Invention

【0002】[0002]

【産業上の利用分野】本発明は画像合成方法及び画像合
成装置に関し、特に特殊効果装置に適用して好適なもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image synthesizing method and an image synthesizing apparatus, and is particularly suitable for application to a special effect apparatus.

【0003】[0003]

【従来の技術】従来、映画やテレビの世界で用いられる
対象物の切出し手法に「クロマキー」と呼ばれる技術が
ある。これは前景画像中の原対象物領域を色情報により
抜き出して後景画像にはめ込むというように2枚の画像
を合成する技術で、美しく自然な画像合成を実現するた
めのものである。
2. Description of the Related Art Conventionally, there is a technique called "chroma key" as a method for cutting out an object used in the world of movies and television. This is a technique for synthesizing two images by extracting an original object region in a foreground image based on color information and fitting it into a foreground image, and is for realizing a beautiful and natural image synthesis.

【0004】ここで従来のクロマキー処理の原理を図1
2を用いて説明する。まず前景画像20中の全画素を適
当な色空間上にマツピングし、適当なスライス面を決め
て画素をグループ分けすることにより、画像20上の領
域を色で分割する。すなわち原対象物領域(前景画像中
における対象物領域)と原非対象物領域(前景画像中に
おける非対象物領域)とを色情報に基づいて空間内で対
象物領域21(色空間における対象物領域)と非対象物
領域22(色空間における非対象物領域)とに分割す
る。
Here, the principle of the conventional chroma key processing is shown in FIG.
2 is used for the explanation. First, all pixels in the foreground image 20 are mapped on an appropriate color space, an appropriate slice plane is determined, and the pixels are divided into groups to divide the region on the image 20 into colors. That is, the original object area (object area in the foreground image) and the original non-object area (non-object area in the foreground image) are combined in the object area 21 (object in the color space) based on the color information. Region) and the non-target region 22 (non-target region in color space).

【0005】次にこの情報を元の画像20に適用して画
像20中の各画素を対象物領域21と非対象物領域22
とに分類する。その後各画素について対象物領域21に
属するか否かを示すキー信号を生成する。スイツチヤ2
3に入力される2つの画像信号24及び25のいずれか
をキー信号によつて選択することにより合成画像26を
得る。
Next, this information is applied to the original image 20 so that each pixel in the image 20 is converted into a target region 21 and a non-target region 22.
Classify into and. After that, a key signal indicating whether or not each pixel belongs to the target area 21 is generated. Switch 2
A composite image 26 is obtained by selecting one of the two image signals 24 and 25 input to the signal 3 according to the key signal.

【0006】このようにクロマキー処理は対象物の形状
を考慮せずに領域分割するので、動画中の対象物を抜き
出すのに非常に有効であり、広く利用されている。
As described above, since the chroma key processing divides the area without considering the shape of the object, it is very effective for extracting the object in the moving image and is widely used.

【0007】[0007]

【発明が解決しようとする課題】ところで従来のクロマ
キー処理には次のような問題点がある。すなわち対象物
が背景(非対象物)に近い色を有する場合又は背景(非
対象物)に色むらがある場合は、本来の対象物領域内に
非対象物領域ができたり、逆に非対象物領域内に対象物
領域ができるなどのゴミが生じて原対象物領域をきれい
に抜き出すことができない。
The conventional chroma key processing has the following problems. That is, if the target object has a color close to the background (non-target object) or if the background (non-target object) has uneven color, a non-target area is created within the original target area, or conversely It is impossible to cleanly extract the original target area because dust such as a target area is formed in the target area.

【0008】ここでゴミとは、色空間において物体色と
背景色とが近接し、スライス面をどのように定義して
も、このスライス面の近傍で完全に分離できずに残つて
しまう画素である。従つてゴミも輪郭領域(色空間にお
ける輪郭領域)に含まれる。このため、クロマキーを用
いて画像を合成したときは合成後の画像からゴミを除去
する必要があつた。
Here, the dust is a pixel in which the object color and the background color are close to each other in the color space, and no matter how the slice plane is defined, it cannot be completely separated in the vicinity of the slice plane and remains. is there. Therefore, dust is also included in the contour area (contour area in the color space). Therefore, when the images are combined using the chroma key, it is necessary to remove dust from the combined image.

【0009】こうした問題を解決するための技術とし
て、対象物領域色と非対象物領域色(背景色)との輝度
差を利用してゴミ領域を除去する手法がある(特開平4
−035279号公報)。ところがこの手法は背景色が
一定である場合又は背景の画像情報だけが分かつている
場合には有効であるが、これ以外の場合には対象物領域
色と非対象物領域色との輝度値の差だけを利用して対象
物領域と非対象物領域とを分割することは困難であると
いう問題がある。
As a technique for solving such a problem, there is a method of removing a dust area by utilizing a brightness difference between a target area color and a non-target area color (background color).
No. 335279). However, this method is effective when the background color is constant or when only the image information of the background is known, but in other cases, the brightness values of the target area color and the non-target area color are There is a problem that it is difficult to divide the object area and the non-object area using only the difference.

【0010】本発明は以上の点を考慮してなされたもの
で、原画像中から原対象物領域をきれいに抜き出すこと
ができる画像合成装置及び画像合成方法を提案しようと
するものである。
The present invention has been made in consideration of the above points, and it is an object of the present invention to propose an image synthesizing apparatus and an image synthesizing method capable of extracting an original object region from an original image.

【0011】[0011]

【課題を解決するための手段】かかる課題を解決するた
め本発明においては、原画像中より原対象物領域を抜き
出して後景画像にはめ込むことにより合成画像を形成す
る画像合成方法において、色情報を3次元状に配してな
る色空間上に原画像の各画素を配し、任意の形状でかつ
原対象物領域がもつ色を囲むことができる第1の閉曲面
と第1の閉曲面によつて内包される任意の形状でなる第
2の閉曲面とを用いて色空間を3つに分割することによ
り、原画像上の領域を対象物領域、非対象物領域及び輪
郭領域に分割し、輪郭領域の画素に対し、当該各画素が
対象物の輪郭に寄与するか否かを判別して、輪郭領域の
各画素を対象物領域、非対象物領域又は輪郭領域のいず
れかの領域に組み込み、その結果得られた新たな対象物
領域、非対象物領域及び輪郭領域の各情報を用いて画像
合成に必要なキー信号を生成するようにする。
In order to solve such a problem, according to the present invention, in an image synthesizing method for forming a synthetic image by extracting an original object region from an original image and fitting it into a foreground image, color information A first closed curved surface and a first closed curved surface, in which each pixel of the original image is arranged in a color space formed by arranging three-dimensionally and surrounding the color of the original object region in an arbitrary shape By dividing the color space into three by using the second closed curved surface having an arbitrary shape included by, the region on the original image is divided into a target region, a non-target region and a contour region. Then, for each pixel in the contour area, it is determined whether or not each pixel contributes to the contour of the target object, and each pixel in the contour area is determined as a target object area, a non-target object area, or a contour area. Embedded in a new target area, resulting in a new non-target area And to generate a key signal necessary for image synthesis using each information of the contour area.

【0012】また本発明においては、原画像より原対象
物領域を抜き出して後景画像にはめ込むことにより合成
画像を形成する画像合成装置において、色情報を3次元
状に配してなる色空間上に原画像の各画素を配すると共
に、任意の形状でかつ原対象物領域がもつ色を囲むこと
ができる第1の閉曲面と第1の閉曲面によつて内包され
る任意の形状でなる第2の閉曲面とを用いて色空間を3
つに分割することにより、原画像上の領域を対象物領
域、非対象物領域及び輪郭領域に分割する領域分割手段
4と、輪郭領域の画素に対し、当該各画素が対象物の輪
郭に寄与するか否かを判別して、輪郭領域の各画素を対
象物領域、非対象物領域又は輪郭領域のいずれかの領域
に組み込む輪郭判別手段5と、輪郭判別手段5によつて
新たに得られた対象物領域、非対象物領域及び輪郭領域
の各情報を用いて画像合成に必要なキー信号を生成する
キー信号生成手段6とを設けるようにする。
Further, according to the present invention, in an image synthesizing apparatus for forming a synthetic image by extracting an original object region from an original image and fitting it into a foreground image, color information is arranged in a three-dimensional manner on a color space. Each pixel of the original image is arranged on the first closed surface, and it has an arbitrary shape enclosed by the first closed curved surface and the first closed curved surface which can surround the color of the original object region in an arbitrary shape. The second closed surface and the color space 3
Area dividing means 4 that divides the area on the original image into an object area, a non-object area, and a contour area by dividing the original image into pixels, and each pixel contributes to the contour of the object with respect to the pixels of the contour area. It is newly obtained by the contour discriminating means 5 and each of the contour discriminating means 5 which decides whether or not to do so and incorporates each pixel of the contour region into any one of the object region, the non-object region and the contour region. The key signal generating means 6 for generating a key signal necessary for image composition is provided by using each information of the target area, the non-target area, and the contour area.

【0013】[0013]

【作用】色情報を3次元状に配してなる色空間上に原画
像の各画素を配し、任意の形状でかつ原対象物領域がも
つ色を囲むことができる第1の閉曲面と第1の閉曲面に
よつて内包される任意の形状でなる第2の閉曲面とを用
いて色空間を3つに分割することにより、原画像上の領
域を対象物領域、非対象物領域及び輪郭領域に分割す
る。次に輪郭領域の画素に対し、当該各画素が対象物の
輪郭に寄与するか否かを判別して、輪郭領域の各画素を
対象物領域、非対象物領域又は輪郭領域のいずれかの領
域に組み込む。これにより、原画像上の領域を一段と正
確に対象物領域、非対象物領域及び輪郭領域に分割する
ことができるので、原画像中より原対象物領域をきれい
に抜き出すことができる。
A first closed curved surface is provided in which each pixel of an original image is arranged in a color space formed by arranging color information in a three-dimensional manner and which can surround a color of an arbitrary shape and an original object region. By dividing the color space into three by using the second closed curved surface having an arbitrary shape included by the first closed curved surface, the region on the original image is divided into a target region and a non-target region. And a contour area. Next, with respect to the pixels in the contour area, it is determined whether or not each of the pixels contributes to the contour of the target object, and each pixel in the contour area is determined as an object area, a non-target object area, or a contour area. Built in. As a result, the area on the original image can be more accurately divided into the object area, the non-object area, and the contour area, so that the original object area can be extracted neatly from the original image.

【0014】[0014]

【実施例】以下図面について、本発明の一実施例を詳述
する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings.

【0015】図1において、1は全体としてクロマキー
処理の流れを示し、キー信号生成部2において、前景画
像を入力信号としてキー信号を生成し、α合成部3にお
いてこのキー信号を用いることにより前景画像と後景画
像とをスイツチングして合成画像を生成する。
In FIG. 1, reference numeral 1 generally indicates the flow of chroma key processing. The key signal generation unit 2 generates a key signal using the foreground image as an input signal, and the α synthesis unit 3 uses this key signal to foreground the foreground image. An image and a background image are switched to generate a composite image.

【0016】図2に示すように、キー信号生成部2はク
ロマキー領域分割部4と、輪郭判別部5と、α値生成部
6とから構成されている。クロマキー領域分割部4は閉
曲面を定義する機能と領域を判定する機能とを有し、前
景画像の各画素が3次元状の色情報に基づいて配された
色空間を、一方が他方を内包するような2つの任意の形
状の閉曲面を用いて3つに分割することにより画像上の
領域を対象物領域、非対象物領域及び輪郭領域に分割す
る。
As shown in FIG. 2, the key signal generating section 2 is composed of a chroma key area dividing section 4, a contour discriminating section 5, and an α value generating section 6. The chroma key area dividing unit 4 has a function of defining a closed curved surface and a function of determining an area, and includes a color space in which each pixel of the foreground image is arranged based on three-dimensional color information, one of which includes the other. The area on the image is divided into an object area, a non-object area, and a contour area by dividing the area into three using two closed curved surfaces of arbitrary shapes.

【0017】すなわち原対象物領域がもつ色を囲むこと
ができる第1の閉曲面を、色空間上で定義して、第1の
閉曲面の外側にその第1の閉曲面を内包する第2の閉曲
面を作成することにより、第1の閉曲面の内側に属する
色をもつ領域を対象物領域、第2の閉曲面の外側に属す
る色をもつ領域を非対象物領域、その他を輪郭領域と分
けることができる。ここで画像の空間的な分解能の関係
で、物体の輪郭部分に相当する画素には物体の色の成分
と背景の色の成分とが混合しているので、対象物の輪郭
部分は輪郭領域に含まれていることが分かる。
That is, the first closed curved surface that can surround the color of the original object region is defined in the color space, and the second closed surface that includes the first closed curved surface outside the first closed curved surface is defined. By creating the closed curved surface of, the area having the color belonging to the inside of the first closed curved surface is the object area, the area having the color belonging to the outside of the second closed curved surface is the non-object area, and the others are the contour areas. Can be divided into Because of the spatial resolution of the image, the pixel corresponding to the contour portion of the object has a mixture of the color component of the object and the color component of the background, so that the contour portion of the object is You can see that it is included.

【0018】この実施例において画像上の領域を3つの
領域に分割する目的は、輪郭判別部5において輪郭を判
別することによつて輪郭部以外のゴミを除去するためで
あり、輪郭部の非対象物色を除去するために多面体を用
いて色空間を3つに分割して合成輪郭部を高画質化する
クロマキー手法(1992年発行、 NICOGRAPH論文集、三島
也守志「多面体スライスを用いたクロマキーのソフトウ
エア」)とは異なる。
In this embodiment, the purpose of dividing the area on the image into three areas is to remove dust other than the contour portion by discriminating the contour in the contour discriminating section 5, and not to the contour portion. Chromakey method that uses a polyhedron to remove the object color and divides the color space into three parts to improve the image quality of the composite outline (1992 issue, NICOGRAPH Proceedings, Yasushi Mishima, "Chromakey using polyhedron slices Software ").

【0019】以下にクロマキー領域分割部4が有する2
つの機能について詳細に説明するが、この実施例では閉
曲面の代わりに多面体を用いた例で説明する。以下の図
面において、同一符号が付されているものは同じ機能を
有する。
2 which the chroma key area dividing section 4 has
Two functions will be described in detail. In this embodiment, a polyhedron is used instead of the closed curved surface. In the following drawings, those denoted by the same reference numerals have the same function.

【0020】図3に閉多面体を定義するための操作処理
部のデータの流れを示す。入力装置7は多面体を操作す
るためのコマンドと頂点の指定や座標値などの数値とを
入力することができるキーボードやマウスである。表示
装置8は多面体の形状を確認するためのデイスプレイ装
置である。また頂点座標変換部9は入力装置7から多面
体操作のコマンドを受けて演算し、メモリへの読み書き
を行う演算装置である。さらに内部点及び外部点判別部
10は指定された座標が指定された多面体の内部又は外
部のいずれかにあるかを判別する演算を実行する。
FIG. 3 shows a data flow of the operation processing unit for defining the closed polyhedron. The input device 7 is a keyboard or a mouse capable of inputting commands for operating a polyhedron and numerical values such as vertex designations and coordinate values. The display device 8 is a display device for confirming the shape of the polyhedron. The vertex coordinate conversion unit 9 is a computing device that receives a command for operating a polyhedron from the input device 7, performs a computation, and reads / writes to / from a memory. Further, the internal point / external point discriminating unit 10 executes an operation for discriminating whether the designated coordinates are inside or outside the designated polyhedron.

【0021】ここで多面体を操作するには2種類のコマ
ンドがあり、入力装置7によつてコマンドを入力するこ
とにより任意の形状の多面体を定義することができる。
すなわち最初のコマンドによつて、頂点座標変換部9は
予め記録された大小2つの多面体の頂点データを頂点座
標元データメモリA及びBから読み込み、この頂点デー
タを頂点座標データメモリA及びBに書き込む。この2
つの多面体は一方が他方を内包するように定義されてい
る。
There are two kinds of commands for operating the polyhedron, and by inputting the command with the input device 7, a polyhedron of any shape can be defined.
That is, according to the first command, the vertex coordinate conversion unit 9 reads the vertex data of the large and small polyhedra recorded in advance from the vertex coordinate source data memories A and B, and writes this vertex data in the vertex coordinate data memories A and B. . This 2
Two polyhedra are defined so that one contains the other.

【0022】次のコマンドによつて、頂点座標変換部9
は多面体の任意の1頂点を指定し、新しい座標を入力し
て頂点座標データメモリA及びBの頂点データを更新す
ることにより多面体を変形させる。ここで頂点座標変換
部9において、頂点データを更新する前に、座標を変換
するときに大小2つの多面体が交差するか否かを判定す
る。
By the following command, the vertex coordinate conversion unit 9
Specifies any one vertex of the polyhedron, inputs new coordinates, and updates the vertex data in the vertex coordinate data memories A and B to deform the polyhedron. Here, in the vertex coordinate conversion unit 9, before updating the vertex data, it is determined whether or not two large and small polyhedra intersect each other when the coordinates are converted.

【0023】大小2つの多面体が交差するか否かの判定
は、変更した頂点が大きい多面体の頂点のとき、この変
更した頂点が座標変換後に小さい多面体の内部に移動す
るか否かによつて判定されるか、又は変更した頂点が小
さい多面体の頂点のとき、この変更した頂点が座標変換
後に大きい多面体の外部に移動するか否かによつて判定
される。交差判定のための演算は頂点座標変換部9から
の指示によつて内部点及び外部点判別部10によつてな
される。判定の結果2つの多面体が交差した場合、座標
は変換されない。
Whether or not two large and small polyhedra intersect each other is determined by whether or not the changed vertex moves to the inside of the small polyhedron after coordinate conversion when the changed vertex is the vertex of the large polyhedron. If the changed vertex is a vertex of a small polyhedron, it is determined whether the changed vertex moves to the outside of the large polyhedron after coordinate conversion. The calculation for the intersection determination is performed by the internal point / external point determination unit 10 according to an instruction from the vertex coordinate conversion unit 9. If the result of the determination is that the two polyhedra intersect, the coordinates are not transformed.

【0024】このように閉多面体を定義した後、領域を
判定する。図4に領域判定処理の流れを示す。表示装置
11は画像データを確認するためのデイスプレイ装置で
あり、領域判定部12は演算をしてメモリへの読み書き
を行う演算装置である。
After defining the closed polyhedron in this way, the region is determined. FIG. 4 shows the flow of the area determination processing. The display device 11 is a display device for confirming image data, and the area determination unit 12 is a calculation device for performing calculation and reading / writing from / to a memory.

【0025】多面体が存在する色空間の座標系は画像デ
ータの形式による。この実施例においてはRGB空間で
表現されたデータの例を説明する。ここでRGB空間と
は、赤(R)、緑(G)及び青(B)の3色の強度によ
つて色を表現する空間を言う。画像データメモリ13及
びキー信号データメモリ14にはそれぞれ図5(A)及
び(B)に示すように画像データ及びキー信号データが
格納されている。ここでαは0〜1の値をとる。
The coordinate system of the color space in which the polyhedron exists depends on the format of the image data. In this embodiment, an example of data expressed in RGB space will be described. Here, the RGB space is a space in which colors are represented by the intensities of three colors of red (R), green (G), and blue (B). The image data memory 13 and the key signal data memory 14 store image data and key signal data, respectively, as shown in FIGS. 5 (A) and 5 (B). Here, α takes a value of 0 to 1.

【0026】領域判定部12は画像データから画素値を
逐次読み込み、この画素の色空間上での位置が2つの多
面体で分けられる3つの空間のうちのどの空間に属する
かを判別し、その結果をキー信号データメモリ14の該
当する画素の番地に書き込む。ここでどの空間に属する
かの判別は以下の手順で行われる。
The area determination unit 12 sequentially reads pixel values from the image data, determines which of the three spaces divided by the two polyhedrons the position of this pixel in the color space belongs to, and the result is determined. Is written in the address of the corresponding pixel in the key signal data memory 14. Here, the determination of which space belongs is performed by the following procedure.

【0027】画素の色空間上での位置は画素値(R、
G、B)に等しい。内部点及び外部点判別部10におい
て判別を2回行い、その判別の結果を小さい多面体の内
部に画素が存在する場合、大きい多面体の外部に画素が
存在する場合、これら以外の場合の3つに分ける。これ
ら3つの場合に基づいてキー信号データメモリ14の該
当する画素にα値を書き込む。
The position of the pixel in the color space is the pixel value (R,
G, B). The inner point / outer point discriminating unit 10 discriminates twice, and the discrimination result is divided into three cases, namely, when a pixel exists inside a small polyhedron, when a pixel exists outside a large polyhedron, and in other cases. Divide. Based on these three cases, the α value is written in the corresponding pixel of the key signal data memory 14.

【0028】すなわち画素が小さい多面体の内部に存在
する(対象物領域に存在する)場合はα=1、画素が大
きい多面体の外部に存在する(非対象物領域に存在す
る)場合はα=0、画素がこれら以外の場所に存在する
(輪郭領域に存在する)場合はα= 0.5を書き込む。こ
こで小さい多面体の内部に非対象物領域をおき、大きい
多面体の外部が対象物領域になるようにしたほうが多面
体の形状を作成し易い場合は、画素が小さい多面体の内
部に存在する(非対象物領域に存在する)場合はα=
0、画素が大きい多面体の外部に存在する(対象物領域
に存在する)場合はα=1、画素がこれら以外の場所に
存在する(輪郭領域に存在する)場合はα=0.5を書き
込む。
That is, α = 1 when the pixel exists inside the small polyhedron (exists in the object area), and α = 0 when the pixel exists outside the large polyhedron (exists in the non-object area). , If a pixel exists in a place other than these (exists in the contour area), write α = 0.5. If it is easier to create the shape of the polyhedron by placing the non-target area inside the small polyhedron and making the outside of the large polyhedron the target area, the pixels are inside the small polyhedron (non-target). Exists in the object area) α =
0, α = 1 when the pixel exists outside the large polyhedron (existing in the object area), and α = 0.5 when the pixel exists in other locations (existing in the contour area).

【0029】次に輪郭判別部5は、図6に示すようにキ
ー信号データメモリ14、輪郭判別処理用キー信号デー
メモリ15及び輪郭判別処理用演算部16から構成され
ている。輪郭判別部5は輪郭領域中の画素に対し、それ
が対象物の輪郭に寄与するものであるか否かを判別して
ゴミを除去する。ここで、除去されたゴミは対象物領域
又は非対象物領域に組み込まれる。
Next, the contour discriminating section 5 comprises a key signal data memory 14, a contour discriminating processing key signal data memory 15 and a contour discriminating processing calculating section 16, as shown in FIG. The contour discriminating unit 5 discriminates whether or not the pixel in the contour region contributes to the contour of the object and removes dust. Here, the removed dust is incorporated in the target area or the non-target area.

【0030】すなわち図7に示すように、まずクロマキ
ー領域分割によつて得られ、キー信号データメモリ14
に格納されているキー信号データを輪郭判別処理用のキ
ー信号データメモリ15にコピーする。次にこのコピー
したキー信号データについての輪郭領域を細線化する。
That is, as shown in FIG. 7, the key signal data memory 14 is first obtained by dividing the chroma key area.
The key signal data stored in the key signal data memory 15 for contour discrimination processing is copied. Next, the contour area of the copied key signal data is thinned.

【0031】ここで細線化とは、領域の連結関係が損な
われないという条件の下で、領域を小さくしていく処理
を言う。例えば、ある画素とその8近傍に注目し、その
画素を消すことによつて、その画素を通過する縦、横及
び斜めの4方向の画素の連続性が無くなる場合は消さな
いという規則に基づいて細線化する。この実施例におい
ては、輪郭領域の画素において上述の規則にあてはまら
ない場合はその画素値を輪郭領域でない近傍の画素値に
書き換える。この操作を繰り返すことにより太さが
「1」の輪郭領域を作ることができる。図8に細線化処
理の例を示す。
Here, thinning means a process of reducing the area under the condition that the connection relation of the areas is not damaged. For example, based on a rule that paying attention to a certain pixel and its eight neighborhoods and erasing the pixel, if the continuity of the vertical, horizontal, and diagonal four-direction pixels passing through the pixel is lost, the pixel is not erased. Make a thin line. In this embodiment, when the pixel in the contour area does not satisfy the above rule, the pixel value is rewritten to a pixel value in the vicinity of the contour area. By repeating this operation, a contour area with a thickness of "1" can be created. FIG. 8 shows an example of thinning processing.

【0032】次に、細線化された輪郭領域のうち対象物
の輪郭に寄与する輪郭だけを検出する。ここで細線化さ
れた輪郭領域のうち対象物に寄与する輪郭だけを検出す
るには、細線化された輪郭領域のすべての画素につい
て、その画素の8近傍に対象物領域画素と非対象物領域
画素との両方が存在するか否かを調べ、画素がその条件
に該当する場合は当該画素は対象物の輪郭に寄与する画
素であるとする。これに該当する画素は画素値をα=
0.7に書き換える。この操作によつて、輪郭判別処理用
キー信号データメモリ15に、対象物の輪郭がα値とし
て形成される。図9に輪郭検出処理の例を示す。
Next, only the contours that contribute to the contour of the object are detected from the thinned contour area. Here, in order to detect only the contours that contribute to the object in the thinned contour area, for all the pixels of the thinned contour area, the object area pixel and the non-object area are provided in the vicinity of 8 of the pixels. It is checked whether or not both the pixel and the pixel exist, and when the pixel satisfies the condition, the pixel is a pixel that contributes to the contour of the object. The pixel corresponding to this has a pixel value α =
Rewrite to 0.7. By this operation, the contour of the object is formed as the α value in the contour discrimination processing key signal data memory 15. FIG. 9 shows an example of contour detection processing.

【0033】上述の細線化処理及び輪郭検出処理におけ
る画素値の処理は輪郭判別処理演算部16においてなさ
れる。
The processing of pixel values in the above-described thinning processing and contour detection processing is performed by the contour discrimination processing calculation section 16.

【0034】輪郭検出後、検出された対象物の輪郭に寄
与する画素を元のキー信号データメモリ14にコピーす
る。
After the contour detection, the pixels contributing to the detected contour of the object are copied to the original key signal data memory 14.

【0035】上述のように輪郭判別部5において細線化
処理及び輪郭検出処理を行うことにより、以下に述べる
ようにゴミを容易に除去することができる。すなわち色
情報以外のトポロジカルな情報に基づいてゴミと輪郭と
を判別しているので、例えば色むらのある画像でも容易
にゴミと輪郭とを判別することができる。従つて一般的
な背景(非対象物領域)に容易に対応することができ
る。
By performing the thinning process and the contour detecting process in the contour discriminating unit 5 as described above, dust can be easily removed as described below. That is, since the dust and the contour are discriminated based on topological information other than the color information, it is possible to easily discriminate the dust and the contour even in an image having color unevenness. Therefore, it is possible to easily deal with a general background (non-target area).

【0036】ゴミの除去処理は以下の手順で実行され
る。第1の処理は、輪郭判別処理用キー信号データメモ
リ15のα= 0.7である画素値を元のキー信号データメ
モリ14に書き込むことによつて、元のキー信号データ
メモリ14に輪郭を形成する。第2の処理は、キー信号
データメモリ14上で、α= 0.7である画素値の8近傍
について、その画素値がα= 0.5であればα= 0.7に書
き換える。第3の処理は、第2の処理を該当する画素が
無くなるまで繰り返す。第4の処理は、キー信号データ
メモリ14上で、α= 0.5である画素値について、その
8近傍にα=0又はα=1の画素があればその画素値で
書き換える。第5の処理は、該当する画素が無くなるま
で第4の処理を繰り返す。図10にゴミ除去処理の例を
示す。
The dust removal process is executed in the following procedure. In the first process, the contour is formed in the original key signal data memory 14 by writing the pixel value of α = 0.7 of the contour discrimination processing key signal data memory 15 into the original key signal data memory 14. . In the second processing, on the key signal data memory 14, for 8 neighborhoods of the pixel value of α = 0.7, if the pixel value is α = 0.5, it is rewritten to α = 0.7. The third process repeats the second process until there are no corresponding pixels. In the fourth processing, for the pixel value of α = 0.5 on the key signal data memory 14, if there is a pixel of α = 0 or α = 1 in the 8 vicinity, the pixel value is rewritten. In the fifth process, the fourth process is repeated until there are no corresponding pixels. FIG. 10 shows an example of dust removal processing.

【0037】以上の操作により、クロマキー領域分割部
4で分割された3つの領域を一段と正確に分割すること
ができる。すなわち最初の領域分割で求めた輪郭領域の
うち、対象物の輪郭が属している領域はα= 0.7とな
り、それ以外はゴミであると判別されて周囲の対象物領
域又は非対象物領域に組み込まれるので、画像上の領域
を一段と正確に対象物領域(α=1)、非対象物領域
(α=0)及び輪郭領域(α=0.7 )に分割することが
できる。従つて3つのα値をもつキー信号が作成された
ことになる。
By the above operation, the three areas divided by the chroma key area dividing section 4 can be divided more accurately. That is, of the contour areas obtained by the first area division, the area to which the contour of the object belongs is α = 0.7, and the other areas are determined to be dust, and are incorporated in the surrounding object area or non-object area. Therefore, the area on the image can be more accurately divided into the object area (α = 1), the non-object area (α = 0) and the contour area (α = 0.7). Therefore, a key signal having three α values is created.

【0038】図11に示すようにα値生成部6は、キー
信号データメモリ14と、カウンタ17と、対象物領域
からの画素距離を知るための作業領域として用いられる
α値生成処理用キー信号データメモリAと、非対象物領
域からの画素距離を知るための作業領域として用いられ
るα値生成処理用キー信号データメモリBと、画素値を
処理するα値生成処理用演算部18とから構成されてい
る。
As shown in FIG. 11, the α value generation unit 6 uses the key signal data memory 14, the counter 17, and the α value generation processing key signal used as a work area for knowing the pixel distance from the object area. It is composed of a data memory A, an α value generation processing key signal data memory B used as a work area for knowing a pixel distance from a non-target area, and an α value generation processing operation unit 18 processing a pixel value. Has been done.

【0039】α値生成部6は前景画像と後景画像とをき
れいに合成するために、輪郭領域のα値を適当な値に決
める。最適な合成が得られるように、α値を生成するた
めの適当なアルゴリズムを選択することができる。
The α value generating unit 6 determines the α value of the contour area to an appropriate value in order to synthesize the foreground image and the background image cleanly. Appropriate algorithms for generating the α value can be selected to obtain the optimal synthesis.

【0040】上述のように輪郭領域に属する画素は、対
象物の色成分とそれ以外の色成分とが含まれるので、後
述するα合成部3で用いられるα合成を用いて、α値を
前景の画素値から後景の画素値に次第に変化するように
設定することにより自然な合成画像を生成する。以下に
自然な合成を得るためのα値の決定方法を説明する。
As described above, the pixels belonging to the contour area include the color components of the object and the other color components, so that the α value is calculated by using α synthesis used in the α synthesis unit 3 described later. A natural composite image is generated by setting such that the pixel value of 1 is gradually changed to the pixel value of the background. The method of determining the α value for obtaining a natural composition will be described below.

【0041】輪郭領域のある画素(x、y)に対し、対
象物領域からの画素距離d1(x、y)と非対象物領域
からの画素距離d2(x、y)が分かつたとし、α
(x、y)=d2/(d1+d2)とする。
For a pixel (x, y) having an outline area, it is assumed that the pixel distance d1 (x, y) from the object area and the pixel distance d2 (x, y) from the non-object area are separated.
(X, y) = d2 / (d1 + d2).

【0042】まず元のキー信号データp(x、y)を読
み込み、α生成処理用のキー信号データメモリA及びB
の当該画素pa(x、y)、pb(x、y)に以下の規
則で書き込む(ステツプ(1))。すなわちα値生成処
理用キー信号データメモリAには、p=0の場合はpa
=−1を書き込み、p<>0の場合はpa=1−pを書
き込む。またα値生成処理用キー信号データメモリBに
は、p=1の場合はpb=−1を書き込み、p<>1の
場合はpb=pを書き込む。
First, the original key signal data p (x, y) is read and the key signal data memories A and B for α generation processing are read.
Is written in the pixel pa (x, y), pb (x, y) of the pixel in accordance with the following rule (step (1)). That is, when p = 0, the key signal data memory A for α value generation processing is pa
= -1 is written, and if p << 0, then pa = 1-p is written. Further, in the α value generation processing key signal data memory B, pb = −1 is written when p = 1, and pb = p is written when p << 1.

【0043】次にカウンタ17を「0」にセツトし(ス
テツプ(2))、キー信号データメモリA及びBの両方
に次の処理を行う(ステツプ(3))。すなわち各画素
において画素値がカウンタ値と等しい場合、その8近傍
の画素値で「1」より小さい整数のものをカウンタ値+
1に書き換える。その後カウンタ17を「1」増加させ
る(ステツプ(4))。上述のステツプ(3)〜(4)
を当該画素が無くなるまで繰り返す(ステツプ
(5))。
Next, the counter 17 is set to "0" (step (2)), and the following processing is performed on both the key signal data memories A and B (step (3)). That is, when the pixel value is equal to the counter value in each pixel, the pixel values of the eight neighboring pixels that are integers smaller than “1” are counted
Rewrite to 1. After that, the counter 17 is incremented by "1" (step (4)). The above steps (3) to (4)
Is repeated until the relevant pixel is exhausted (step (5)).

【0044】最後に元のキー信号デーテメモリ14にお
いて、輪郭領域(α(x、y)= 0.7)である画素のα
値をd1(x、y)=pa(x、y)、d2(x、y)
=pb(x、y)、α(x、y)=d2/(d1+d
2)で計算して更新する(ステツプ(6))。
Finally, in the original key signal data memory 14, α of the pixel which is the contour area (α (x, y) = 0.7)
The values are d1 (x, y) = pa (x, y), d2 (x, y)
= Pb (x, y), α (x, y) = d2 / (d1 + d
It is calculated and updated in 2) (step (6)).

【0045】以上の処理により、対象物領域から非対象
物領域に次第に減少するα値をもつキー信号を生成する
ことができる。
By the above processing, it is possible to generate a key signal having an α value that gradually decreases from the object area to the non-object area.

【0046】最後にα合成部3はキー信号生成部2で生
成されたキー信号を用いて前景画像と後景画像とをスイ
ツチングする。すなわちキー信号生成部2より、キー信
号が各画素に対し「0」〜「1」の値で得られていると
し、α合成と呼ばれる手法を用いて合成画素を求める。
Finally, the α synthesizing section 3 uses the key signal generated by the key signal generating section 2 to switch between the foreground image and the foreground image. That is, assuming that the key signal is obtained from the key signal generation unit 2 with a value of “0” to “1” for each pixel, a combined pixel is obtained using a method called α combination.

【0047】ここでα合成とは、キー信号α(0〜
1)、前景画素f(x、y)、後景画素b(x、y)が
与えられたとき、合成画素d(x、y)をd=af+
(1−a)bで求める手法である。
Here, the α synthesis is the key signal α (0 to 0
1), when the foreground pixel f (x, y) and the foreground pixel b (x, y) are given, the composite pixel d (x, y) is changed to d = af +
This is the method of obtaining by (1-a) b.

【0048】実際のクロマキー合成においては、対象物
をブルーバツク等の単一色背景で撮影し、前景画像とす
ることが多い。このような場合には単一色背景の画素値
をb0とし、d=f+(1−a)(b−b0)で求める
と結果が良いことが公表されている(上述の「多面体ス
ライスを用いたクロマキーのソフトウエア」)。この実
施例においては、上述の非対象物領域から単一色背景の
画素値b0を知ることができるので、α合成を適用する
ことができる。
In actual chroma key composition, the object is often photographed in a single-color background such as blue back, and used as the foreground image. In such a case, it has been announced that the result is good if the pixel value of the single color background is set to b0 and the result is obtained by d = f + (1-a) (b-b0) (the above-mentioned "using polyhedral slices" Chroma key software "). In this embodiment, since the pixel value b0 of the single color background can be known from the above-mentioned non-object region, the α combination can be applied.

【0049】以上の構成において、前景画像から原対象
物領域を抜き出して後景画像にはめ込んで自然な合成画
像を形成する場合、まずキー信号生成部2において、前
景画像を入力信号として、クロマキー領域分割部4で閉
多面体を定義して領域判定を行うことにより画像上の領
域を対象物領域、非対象物領域及び輪郭領域の3つの領
域に分割する。
In the above configuration, when the original object area is extracted from the foreground image and fitted into the foreground image to form a natural composite image, first, the key signal generating section 2 uses the foreground image as an input signal and the chroma key area. The dividing unit 4 defines a closed polyhedron and performs area determination to divide the area on the image into three areas of an object area, a non-object area, and a contour area.

【0050】次に輪郭判別部5において、クロマキー領
域分割部4で得られたキー信号データを一度コピーし、
このコピーされたキー信号データについて輪郭領域を細
線化し、輪郭を検出する。検出された対象物の輪郭に寄
与する画素を元のキー信号データにコピーしてゴミを除
去する。これにより画像を一段と正確に対象物領域、非
対象物領域及び輪郭領域の3つの領域に分割することが
でき、3つのα値をもつキー信号を生成することができ
る。
Next, in the contour discriminating section 5, the key signal data obtained in the chroma key area dividing section 4 is once copied,
The contour area of the copied key signal data is thinned to detect the contour. Pixels that contribute to the detected contour of the object are copied to the original key signal data to remove dust. As a result, the image can be more accurately divided into the three regions of the target region, the non-target region, and the contour region, and the key signal having three α values can be generated.

【0051】その後α値生成部6において、前景画像中
の原対象物領域を後景画像にきれいに合成するために、
輪郭領域のα値を決め、α合成部3において、キー信号
生成部2で生成されたキー信号を用いて前景画像と後景
画像とをスイツチングすることにより画像を合成する。
Thereafter, in the α value generation unit 6, in order to synthesize the original object area in the foreground image neatly with the foreground image,
The α value of the contour area is determined, and the α combining unit 3 combines the images by switching the foreground image and the background image using the key signal generated by the key signal generating unit 2.

【0052】以上の構成によれば、クロマキー領域分割
部4において、画像上の領域を対象物領域、非対象物領
域及び輪郭領域の3つの領域に分割し、輪郭判別部5で
細線化処理及び輪郭検出処理を実行して色情報以外のト
ポロジカルな情報に基づいてゴミと輪郭とを判別してゴ
ミを除去するようにしたことにより、原画像上の領域を
一段と正確に対象物領域、非対象物領域及び輪郭領域に
分割することができるので、非対象物領域に色むらがあ
る場合でも対象物領域を原画像よりきれいに抜き出すこ
とができる。
According to the above configuration, the chroma key area dividing section 4 divides the area on the image into three areas of the object area, the non-object area and the contour area, and the contour discriminating section 5 performs thinning processing and By performing contour detection processing and distinguishing dust and contours based on topological information other than color information and removing dust, the area on the original image can be more accurately targeted areas and non-target areas. Since it can be divided into the object area and the contour area, the object area can be extracted neatly from the original image even when the non-object area has uneven color.

【0053】なお上述の実施例においては、対象物の輪
郭に寄与する画素値をα= 0.7とする場合について述べ
たが、本発明はこれに限らず、輪郭に寄与する画素値を
他の値にしてもよい。
In the above embodiment, the case where the pixel value contributing to the contour of the object is set to α = 0.7 has been described. However, the present invention is not limited to this, and the pixel value contributing to the contour may be another value. You may

【0054】また上述の実施例においては、RGBを色
情報とした色空間を用いた場合について述べたが、本発
明はこれに限らず、色相、彩度及び輝度を色情報とした
色空間を用いてもよい。
In the above embodiment, the case where the color space in which RGB is the color information is used has been described, but the present invention is not limited to this, and a color space in which hue, saturation and luminance are the color information is used. You may use.

【0055】[0055]

【発明の効果】上述のように本発明によれば、色空間上
に原画像の各画素を配し、任意の形状でかつ原対象物領
域がもつ色を囲むことができる第1の閉曲面と第1の閉
曲面によつて内包される任意の形状でなる第2の閉曲面
とを用いて色空間を3つに分割して、原画像上の領域を
対象物領域、非対象物領域及び輪郭領域に分割する。次
に輪郭領域の画素に対し、当該各画素が対象物の輪郭に
寄与するか否かを判別し、輪郭領域の各画素を対象物領
域、非対象物領域又は輪郭領域のいずれかの領域に組み
込むことにより、原画像上の領域を一段と正確に対象物
領域、非対象物領域及び輪郭領域に分割することができ
るので、原画像中より原対象物領域をきれいに抜き出す
ことができる。
As described above, according to the present invention, each pixel of the original image is arranged in the color space, and the first closed surface capable of enclosing the color of the original object region in an arbitrary shape. And the second closed curved surface having an arbitrary shape enclosed by the first closed curved surface, the color space is divided into three, and the region on the original image is a target region and a non-target region. And a contour area. Next, with respect to the pixels in the contour area, it is determined whether or not each of the pixels contributes to the contour of the target object, and each pixel in the contour area is set as the target area, the non-target area, or the contour area. By incorporating it, the area on the original image can be more accurately divided into the object area, the non-object area, and the contour area, so that the original object area can be extracted neatly from the original image.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施例におけるクロマキー処理の流れ
を示すブロツク図である。
FIG. 1 is a block diagram showing a flow of chroma key processing in an embodiment of the present invention.

【図2】キー信号生成部の説明に供するブロツク図であ
る。
FIG. 2 is a block diagram for explaining a key signal generation unit.

【図3】クロマキー領域分割部における閉多面体操作処
理の説明に供するブロツク図である。
FIG. 3 is a block diagram for explaining a closed polyhedron operation process in a chroma key area dividing unit.

【図4】クロマキー領域分割部における領域判定処理の
説明に供するブロツク図である。
FIG. 4 is a block diagram for explaining a region determination process in a chroma key region dividing unit.

【図5】実施例における画像データとキー信号データと
の構成の説明に供する略線図である。
FIG. 5 is a schematic diagram used for explaining a configuration of image data and key signal data in the embodiment.

【図6】輪郭判別処理部の説明に供するブロツク図であ
る。
FIG. 6 is a block diagram for explaining a contour determination processing unit.

【図7】輪郭判別処理部における処理の流れの説明に供
するブロツク図である。
FIG. 7 is a block diagram for explaining a processing flow in a contour determination processing unit.

【図8】輪郭判別処理部における細線化処理の説明に供
する略線図である。
FIG. 8 is a schematic diagram for explaining a thinning process in a contour determination processing unit.

【図9】輪郭判別処理部における輪郭検出処理の説明に
供する略線図である。
FIG. 9 is a schematic diagram for explaining a contour detection process in a contour determination processing unit.

【図10】輪郭判別処理部におけるゴミ除去処理の説明
に供する略線図である。
FIG. 10 is a schematic diagram for explaining dust removal processing in a contour determination processing unit.

【図11】α値生成部の説明に供するブロツク図であ
る。
FIG. 11 is a block diagram for explaining an α value generation unit.

【図12】従来のクロマキー処理の原理の説明に供する
ブロツク図である。
FIG. 12 is a block diagram for explaining the principle of conventional chroma key processing.

【符号の説明】[Explanation of symbols]

1……クロマキー処理の流れ、2……キー信号生成部、
3……α合成部、4……クロマキー領域分割部、5……
輪郭判別部、6……α値生成部、7……入力装置、8、
11……表示装置、9……頂点座標変換部、10……内
部点及び外部点判別部、12……領域判定部、13……
画像データメモリ、14……キー信号データメモリ、1
5……輪郭判別処理用キー信号データメモリ、16……
輪郭判別処理演算部、17……カウンタ、18……α値
生成処理演算部、20……前景画像、21……対象物領
域、22……非対象物領域、23……スイツチヤ、2
4、25……画像入力信号、26……合成画像。
1 ... Flow of chroma key processing, 2 ... Key signal generation unit,
3 ... α combiner, 4 ... Chromakey region divider, 5 ...
Contour discriminating unit, 6 ... α value generating unit, 7 ... input device, 8,
11 ... Display device, 9 ... Vertex coordinate conversion unit, 10 ... Internal point and external point discrimination unit, 12 ... Region determination unit, 13 ...
Image data memory, 14 ... Key signal data memory, 1
5 ... Key signal data memory for contour discrimination processing, 16 ...
Contour discrimination processing calculation unit, 17 ... Counter, 18 ... α value generation processing calculation unit, 20 ... Foreground image, 21 ... Target region, 22 ... Non-target region, 23 ... Switcher, 2
4, 25 ... Image input signal, 26 ... Composite image.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 5/272 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location H04N 5/272

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】原画像中より原対象物領域を抜き出して後
景画像にはめ込むことにより合成画像を形成する画像合
成方法において、 色情報を3次元状に配してなる色空間上に上記原画像の
各画素を配し、 任意の形状でかつ上記原対象物領域がもつ色を囲むこと
ができる第1の閉曲面と上記第1の閉曲面によつて内包
される任意の形状でなる第2の閉曲面とを用いて上記色
空間を3つに分割することにより、上記原画像上の領域
を対象物領域、非対象物領域及び輪郭領域に分割し、 上記輪郭領域の画素に対し、当該各画素が対象物の輪郭
に寄与するか否かを判別して、上記輪郭領域の上記各画
素を対象物領域、非対象物領域又は輪郭領域のいずれか
の領域に組み込み、 その結果得られた新たな対象物領域、非対象物領域及び
輪郭領域の各情報を用いて画像合成に必要なキー信号を
生成することを特徴とする画像合成方法。
1. An image synthesizing method for forming a synthetic image by extracting an original object region from an original image and fitting it into a foreground image, wherein the original information is placed in a color space in which color information is three-dimensionally arranged. A first closed curved surface, which has each pixel of the image and has an arbitrary shape and can surround the color of the original object region, and an arbitrary shape enclosed by the first closed curved surface. By dividing the color space into three using the closed curved surface of 2 and dividing the region on the original image into a target region, a non-target region and a contour region, with respect to the pixels of the contour region, It is determined whether or not each of the pixels contributes to the contour of the object, and the pixels of the contour area are incorporated into any of the object area, the non-object area, or the contour area, and the result is obtained. Information of the new target area, non-target area, and contour area An image synthesizing method characterized in that a key signal necessary for image synthesizing is generated by using the key signal.
【請求項2】上記輪郭領域の画素において、当該画素が
所定の規則に当てはまらない場合は当該画素の値を輪郭
領域でない近傍の画素値に書き換える処理を実行すると
共に、上記処理を実行された上記輪郭領域の画素のう
ち、上記対象物領域の輪郭に寄与する画素だけを検出す
ることを特徴とする請求項1に記載の画像合成方法。
2. In the pixel of the contour area, when the pixel does not meet a predetermined rule, the value of the pixel is rewritten to a pixel value in the vicinity of the contour area, and the processing is executed. The image synthesizing method according to claim 1, wherein only pixels that contribute to the contour of the object area are detected among the pixels of the contour area.
【請求項3】原画像より原対象物領域を抜き出して後景
画像にはめ込むことにより合成画像を形成する画像合成
装置において、 色情報を3次元状に配してなる色空間上に上記原画像の
各画素を配すると共に、任意の形状でかつ上記原対象物
領域がもつ色を囲むことができる第1の閉曲面と上記第
1の閉曲面によつて内包される任意の形状でなる第2の
閉曲面とを用いて上記色空間を3つに分割することによ
り、上記原画像上の領域を対象物領域、非対象物領域及
び輪郭領域に分割する領域分割手段と、 上記輪郭領域の画素に対し、当該各画素が対象物の輪郭
に寄与するか否かを判別して、上記輪郭領域の上記各画
素を対象物領域、非対象物領域又は輪郭領域のいずれか
の領域に組み込む輪郭判別手段と、 上記輪郭判別手段によつて新たに得られた対象物領域、
非対象物領域及び輪郭領域の各情報を用いて画像合成に
必要なキー信号を生成するキー信号生成手段とを具える
ことを特徴とする画像合成装置。
3. An image synthesizing apparatus for forming a synthetic image by extracting an original object region from an original image and fitting it into a foreground image, wherein the original image is placed on a color space in which color information is three-dimensionally arranged. Of the first closed curved surface having the arbitrary shape and surrounding the color of the original object region and the arbitrary shape enclosed by the first closed curved surface. An area dividing unit that divides the area on the original image into an object area, a non-object area, and a contour area by dividing the color space into three using the two closed curved surfaces. For a pixel, it is determined whether or not each pixel contributes to the contour of the object, and the contour that incorporates each pixel of the contour area into any of the object area, the non-object area, or the contour area Newly obtained by the discriminating means and the contour discriminating means. Object area,
An image synthesizing apparatus, comprising: a key signal generating means for generating a key signal necessary for image synthesizing by using each information of the non-object region and the contour region.
【請求項4】上記輪郭判別手段は、 上記輪郭領域の画素において、当該画素が所定の規則に
当てはまらない場合は当該画素の値を輪郭領域でない近
傍の画素値に書き換える細線化手段と、 上記細線化手段によつて細線化された上記輪郭領域のう
ち、上記対象物領域の輪郭に寄与する画素だけを検出す
る輪郭検出手段とを具えることを特徴とする請求項3に
記載の画像合成装置。
4. The thinning means for rewriting the value of the pixel to a pixel value in the vicinity of the non-contour area when the pixel does not meet a predetermined rule among the pixels in the contour area. 4. The image synthesizing apparatus according to claim 3, further comprising: a contour detecting unit that detects only pixels that contribute to the contour of the object region in the contour region thinned by the converting unit. .
JP30099193A 1993-11-05 1993-11-05 Method and device for image synthesis Pending JPH07131817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30099193A JPH07131817A (en) 1993-11-05 1993-11-05 Method and device for image synthesis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30099193A JPH07131817A (en) 1993-11-05 1993-11-05 Method and device for image synthesis

Publications (1)

Publication Number Publication Date
JPH07131817A true JPH07131817A (en) 1995-05-19

Family

ID=17891517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30099193A Pending JPH07131817A (en) 1993-11-05 1993-11-05 Method and device for image synthesis

Country Status (1)

Country Link
JP (1) JPH07131817A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100781519B1 (en) * 2006-03-08 2007-12-03 삼성전자주식회사 Image output apparatus and method for numbers of chromakey color
WO2008041270A1 (en) * 2006-09-29 2008-04-10 Fujitsu Microelectronics Limited Image synthesizing device and image synthesizing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100781519B1 (en) * 2006-03-08 2007-12-03 삼성전자주식회사 Image output apparatus and method for numbers of chromakey color
WO2008041270A1 (en) * 2006-09-29 2008-04-10 Fujitsu Microelectronics Limited Image synthesizing device and image synthesizing method

Similar Documents

Publication Publication Date Title
US7903111B2 (en) Depth image-based modeling method and apparatus
US5077608A (en) Video effects system able to intersect a 3-D image with a 2-D image
JP3647487B2 (en) Texture mapping device
US6429875B1 (en) Processing image data
US20070253640A1 (en) Image manipulation method and apparatus
US5355174A (en) Soft edge chroma-key generation based upon hexoctahedral color space
GB2336266A (en) Processing image signals at an object boundary
JPH03218581A (en) Picture segmentation method
TWI716874B (en) Image processing apparatus, image processing method, and image processing program
JP3728884B2 (en) Image processing apparatus and method, image composition apparatus, and recording medium
JP3945524B2 (en) Key signal generation apparatus and method, image composition apparatus, and recording medium
JPH07131817A (en) Method and device for image synthesis
US20040164982A1 (en) Method and apparatus for editing three-dimensional model, and computer readable medium
KR100541011B1 (en) Apparatus for Virtual Image Synthesis
JP2000151982A (en) Image compositor, image compositing method image generating device, image generating method and served medium
CN111951367B (en) Character rendering method, character processing method and device
JP4707867B2 (en) Video composition device
JP2701056B2 (en) Secondary representation method for three-dimensional objects
JPH0440176A (en) Television special effect device
JP2987169B2 (en) How to make a cutout mask
JPH08329280A (en) Image composition device
JP2710616B2 (en) Object surface processing method and processing device for two-dimensional representation of three-dimensional object
JP2022029239A (en) Image processing apparatus, image processing method, and program
CN117671040A (en) Color chart generation method and device, electronic equipment and computer readable storage medium
JPH11144074A (en) Image processor