JP3277815B2 - Image data encoding apparatus / method and decoding apparatus / method - Google Patents

Image data encoding apparatus / method and decoding apparatus / method

Info

Publication number
JP3277815B2
JP3277815B2 JP17144996A JP17144996A JP3277815B2 JP 3277815 B2 JP3277815 B2 JP 3277815B2 JP 17144996 A JP17144996 A JP 17144996A JP 17144996 A JP17144996 A JP 17144996A JP 3277815 B2 JP3277815 B2 JP 3277815B2
Authority
JP
Japan
Prior art keywords
image
foreground
combination
selection flag
corrected
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.)
Expired - Fee Related
Application number
JP17144996A
Other languages
Japanese (ja)
Other versions
JPH1023405A (en
Inventor
陽一 矢ヶ崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP17144996A priority Critical patent/JP3277815B2/en
Publication of JPH1023405A publication Critical patent/JPH1023405A/en
Application granted granted Critical
Publication of JP3277815B2 publication Critical patent/JP3277815B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像データの符号
化装置/方法及び復号装置/方法に関し、例えば、ビデ
オテープやビデオディスクなど記録媒体を介して画像デ
ータの記録再生を行う記録再生システムや、テレビ放送
やテレビ会議システムに適用して好適なものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data encoding apparatus / method and decoding apparatus / method, for example, a recording / reproducing system for recording / reproducing image data via a recording medium such as a video tape or a video disk, This is suitable for application to a television broadcast or a video conference system.

【0002】[0002]

【従来の技術】従来の一般的な画像の合成方法を図7に
示す。すなわち、合成画像Iを生成する場合には、前景
画像Fと背景画像Bをある混合比で合成する。この混合
比は、寄与率α(Key信号、Matte値)と呼ばれ
る。ここで、α=0ならば前景画像であり、α=1なら
ば背景画像であり、前景画像と背景画像の境界は、0<
α<1となる。この合成を式で表すと I=αF+(1−α)B ・・・(1) なる式(1)となる。
2. Description of the Related Art FIG. 7 shows a conventional general image synthesizing method. That is, when generating the composite image I, the foreground image F and the background image B are composited at a certain mixing ratio. This mixture ratio is called a contribution ratio α (Key signal, Mate value). Here, if α = 0, it is a foreground image, if α = 1, it is a background image, and the boundary between the foreground image and the background image is 0 <
α <1. When this synthesis is expressed by an equation, the following equation (1) is obtained: I = αF + (1−α) B (1)

【0003】さて、前景画像Fと寄与率αが生成され
て、すぐに、もしくは、その場で、背景画像Bとの合成
が行われるとは限らず、時間的に後で合成されたり、別
の場所で合成される。
Now, the foreground image F and the contribution ratio α are generated, and the synthesis with the background image B is not always performed immediately or on the spot. It is synthesized at the place.

【0004】このため、図8に示すように、符号化側に
おいて生成した前景画像Fと寄与率αをそれぞれ符号化
器311,312で符号化し、さらに、それらを多重化
器320で多重化して、記録媒体330に記録したり、
もしくは、伝送路を通じて伝送が行われる。
[0004] For this reason, as shown in FIG. 8, foreground image F and contribution rate α generated on the encoding side are encoded by encoders 311 and 312, respectively, and further multiplexed by multiplexer 320. , Recorded on the recording medium 330,
Alternatively, transmission is performed through a transmission path.

【0005】そして、図9に示すように、復号側では、
これらの情報を記録媒体330から再生し、もしくは、
伝送路から受け取り、逆多重化器410によって分離
し、それぞれの符号化器421,422で復号すること
により前景画像Fと寄与率αをもとめ、それらを合成器
430により新しい背景画像B*と合成する。このとき
合成器430は、2個の乗算器431,432と1個の
加算器433により上述の式(1)を用いて合成画像I
を生成する。
[0005] As shown in FIG. 9, on the decoding side,
The information is reproduced from the recording medium 330, or
The foreground image F and the contribution rate α are obtained by receiving from the transmission path, demultiplexing by the demultiplexer 410 and decoding by the respective encoders 421 and 422, and combining them with the new background image B * by the combiner 430. I do. At this time, the combiner 430 uses two multipliers 431 and 432 and one adder 433 to obtain the composite image I using the above-described equation (1).
Generate

【0006】[0006]

【発明が解決しようとする課題】ところで、上述の従来
例では合成するべき前景画像Fが予め求められていた
が、例えば図10に示すように前景画像Fが分離されて
いない画像を取り扱う場合には、入力画像Iから、ま
ず、寄与率αを推定し、その寄与率αを用いて、元の画
像の背景画像Bから、前景画像Fを分離し、新しい背景
画像B*と合成する。この合成を式で表すと、 入力画像:I=αF+(1−α)B ・・・(2.1) 合成画像:I*=αF+(1−α)B* ・・・(2.2) なる式(2)となる。
By the way, in the above-mentioned conventional example, the foreground image F to be synthesized is obtained in advance. However, for example, when an image in which the foreground image F is not separated as shown in FIG. First estimates the contribution rate α from the input image I, uses the contribution rate α to separate the foreground image F from the background image B of the original image, and combines it with the new background image B *. When this composition is expressed by a formula, input image: I = αF + (1-α) B (2.1) Composite image: I * = αF + (1-α) B * (2.2) Equation (2) is obtained.

【0007】このような例は、ブルーバック画像(背景
を青一色にした画像)から、クロマキー手法を用いて、
寄与率αを計算して、合成を行う場合などに多く見られ
る。このように、前景画像Fを分離してから合成する場
合には、伝送もしくは記録するために、従来例のように
前景画像Fと寄与率αを符号化すると無駄が生じる。な
ぜなら、図11に示すように、入力画像Iから前景画像
Fを求めるためには、入力画像Iから背景画像Bと寄与
率αを計算する各演算処理部301,302に加えて、
前景画像Fを求めるための F=(I−(1−α)B)/α ・・・(3) ただし、α=0、1の場合には、F=Iとする。
[0007] In such an example, a chroma key method is used to convert a blue-back image (an image with a solid blue background).
It is often seen when the contribution ratio α is calculated and then synthesized. As described above, when the foreground image F is separated and then synthesized, encoding the foreground image F and the contribution rate α as in the conventional example for transmission or recording causes waste. Because, as shown in FIG. 11, in order to obtain the foreground image F from the input image I, in addition to the arithmetic processing units 301 and 302 for calculating the background image B and the contribution rate α from the input image I,
F = (I− (1−α) B) / α (3) for finding the foreground image F However, when α = 0 and 1, F = I.

【0008】なる式(3)の計算を行う計算処理部30
3が必要である。
A calculation processing unit 30 for calculating the following equation (3)
3 is required.

【0009】しかし、式(2.2)で明らかなように、
合成のためには前景画像αFが必要なため前景画像Fと
寄与率αから再び前景画像αFを計算し直す無駄が生
じ、問題があった。
However, as is apparent from equation (2.2),
Since the foreground image αF is required for the synthesis, there is a problem in that the foreground image αF must be calculated again from the foreground image F and the contribution rate α, which causes a problem.

【0010】本発明の目的は、上記の問題を解消した画
像データの符号化装置/方法及び復号装置/方法を提供
することにある。
An object of the present invention is to provide an image data encoding apparatus / method and a decoding apparatus / method which solve the above-mentioned problems.

【0011】[0011]

【課題を解決するための手段】本発明では、上述した課
題を解決するために、前景画像Fが分離されている場合
と、分離されていない場合に、前景画像Fをそれぞれの
場合に適切な画像データに変換して、符号化する際の演
算量を減らす。また、上記の画像データがどのように変
換されたかを示すフラグを符号化し、画像データとαと
共に多重化する。復号側では、そのフラグに応じて、適
切な合成方法を選択し、合成する際の演算量を減らす。
これにより、画像データを符号化する場合の前処理や復
号した後の後処理において、無駄な演算をなくすことが
できる。また、画像データの符号化効率も向上する。
According to the present invention, in order to solve the above-mentioned problems, when the foreground image F is separated and when the foreground image F is not separated, the foreground image F is appropriately separated in each case. Conversion to image data and reduction in the amount of calculation when encoding. Further, a flag indicating how the image data is converted is encoded and multiplexed with the image data and α. On the decoding side, an appropriate combining method is selected in accordance with the flag, and the amount of calculation for combining is reduced.
Accordingly, in the pre-processing when encoding the image data and the post-processing after the decoding, unnecessary computation can be eliminated. Further, the coding efficiency of image data is also improved.

【0012】すなわち、本発明に係る画像データの符号
化装置は、入力画像Iから寄与率α及び背景画像Bを求
める手段と、上記入力画像Iから上記背景画像Bの影響
を補正した前景画像αFを求める手段と、少なくとも、 (A)前景画像Fと寄与率αとの組み合わせ、及び (B)入力画像Iから背景画像Bの影響を補正した前景
補正画像αFと寄与率αとの組み合わせ、を含む2種類
以上の組み合わせの中から選択を行い、選択フラグを出
力するコントローラと、上記コントローラにより選択さ
れた組み合わせをそれぞれ符号化する符号化手段と、上
記符号化した組み合わせと上記選択フラグとを多重化し
て出力する多重化手段とを備えることを特徴とする。
That is, the image data encoding apparatus according to the present invention comprises a means for obtaining a contribution rate α and a background image B from an input image I, and a foreground image αF obtained by correcting the influence of the background image B from the input image I. And (A) a combination of the foreground image F and the contribution rate α, and (B) a combination of the foreground correction image αF obtained by correcting the influence of the background image B from the input image I and the contribution rate α. A controller that selects from among two or more types of combinations and outputs a selection flag, an encoding unit that encodes each of the combinations selected by the controller, and a multiplex of the encoded combination and the selection flag. And multiplexing means for converting and outputting.

【0013】また、本発明に係る画像データの符号化方
法は、少なくとも、 (A)前景画像Fと寄与率αとの組み合わせ、及び (B)入力画像Iから背景画像Bの影響を補正した前景
補正画像αFと寄与率αとの組み合わせ、を含む2種類
以上の組み合わせの中から選択を行い、選択フラグを出
力し、入力画像Iから、上記選択フラグが示す組み合わ
せに応じて、寄与率α、前景画像F、背景画像Bの影響
を補正した前景補正画像αFのいずれかを求め、符号化
を行い、上記符号化を行った画像情報の組み合わせと選
択フラグとを多重化して出力することを特徴とする。
Further, the image data encoding method according to the present invention comprises at least (A) a combination of a foreground image F and a contribution rate α, and (B) a foreground obtained by correcting the influence of the background image B from the input image I. A selection is made from two or more combinations including a combination of the corrected image αF and the contribution ratio α, a selection flag is output, and the contribution ratio α, from the input image I according to the combination indicated by the selection flag, One of the foreground corrected image αF in which the influence of the foreground image F and the background image B is corrected is obtained, encoded, and the combination of the encoded image information and the selection flag are multiplexed and output. And

【0014】また、本発明に係る画像データの復号装置
は、少なくとも、 (A)前景画像Fと寄与率αとの組み合わせ、及び (B)入力画像Iから背景画像Bの影響を補正した前景
補正画像αFと寄与率αとの組み合わせ、を含む2種類
以上の組み合わせの中から選択を行い、選択フラグを出
力し、上記選択された組み合わせをそれぞれ符号化し、
符号化された組み合わせと選択フラグとを多重化して生
成された画像データを逆多重化する手段と、上記逆多重
化手段より得られる選択フラグに基づき、上記逆多重化
された画像データがどの組み合わせかを判別するコント
ローラと、上記逆多重化手段より得られる上記寄与率
α、上記前景画像F、上記前景補正画像αFのいずれか
の符号化データを復号する復号手段とを備えることを特
徴とする。
The image data decoding apparatus according to the present invention comprises at least (A) a combination of a foreground image F and a contribution rate α, and (B) a foreground correction in which the influence of the background image B from the input image I is corrected. A selection is made from two or more combinations including a combination of the image αF and the contribution ratio α, a selection flag is output, and the selected combination is encoded,
Means for demultiplexing the image data generated by multiplexing the encoded combination and the selection flag, and the combination of the demultiplexed image data based on the selection flag obtained by the demultiplexing means. And a decoding means for decoding any of the coded data of the contribution ratio α, the foreground image F, and the foreground corrected image αF obtained by the demultiplexing means. .

【0015】さらに、本発明に係る画像データの復号方
法は、少なくとも、 (A)前景画像Fと寄与率αとの組み合わせ、及び (B)入力画像Iから背景画像Bの影響を補正した前景
補正画像αFと寄与率αとの組み合わせ、を含む2種類
以上の組み合わせの中から選択が行われ、選択フラグが
出力され、上記選択された組み合わせがそれぞれ符号化
され、符号化された組み合わせと選択フラグとが多重化
して生成された画像データを逆多重化し、上記逆多重化
して得た選択フラグに基づき、上記逆多重化した画像デ
ータがどの組み合わせかをコントローラが判別し、上記
コントローラが判別した上記寄与率α、上記前景画像
F、上記前景補正画像αFのいずれかの画像データをそ
れぞれ復号することを特徴とする。
Further, the image data decoding method according to the present invention comprises at least (A) a combination of a foreground image F and a contribution rate α, and (B) a foreground correction in which the influence of the background image B from the input image I is corrected. A selection is made from two or more types of combinations including a combination of the image αF and the contribution rate α, a selection flag is output, the selected combinations are coded, and the coded combination and the selection flag are coded. Demultiplexes the image data generated by multiplexing, the controller determines which combination of the demultiplexed image data is based on the selection flag obtained by demultiplexing, and the controller determines the combination. It is characterized in that any one of the image data of the contribution rate α, the foreground image F, and the foreground correction image αF is decoded.

【0016】[0016]

【0017】[0017]

【0018】[0018]

【0019】[0019]

【0020】[0020]

【0021】[0021]

【発明の実施の形態】以下、本発明に係る画像データの
符号化装置/方法及び復号装置/方法のいくつかの好ま
しい実施の形態について図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Some preferred embodiments of an image data encoding apparatus / method and decoding apparatus / method according to the present invention will be described below with reference to the drawings.

【0022】図1及び図2は本発明の第1の実施の形態
を示す図である。
FIG. 1 and FIG. 2 are views showing a first embodiment of the present invention.

【0023】この第1の実施の形態では、図1に示す符
号化装置10のように、入力画像Iから第1及び第2の
演算処理部11,12で背景画像Bと寄与率αを計算す
るとともに、上記入力画像Iと算出された背景画像Bと
寄与率αから第3の演算処理部13により前景画像αF
を求める。
In the first embodiment, the background image B and the contribution ratio α are calculated from the input image I by the first and second arithmetic processing units 11 and 12, as in the encoding device 10 shown in FIG. And the third arithmetic processing unit 13 calculates the foreground image αF from the input image I, the calculated background image B, and the contribution ratio α.
Ask for.

【0024】このように、入力画像Iから前景画像Fを
分離する際に、前景画像Fを求めずに補正された前景画
像αFを求める演算では、上述の従来例における式
(3)の除算は必要なく、次の式(4)でαFを求める
ことができる。
As described above, when the foreground image F is separated from the input image I, in the operation of obtaining the corrected foreground image αF without obtaining the foreground image F, the above-described division of the equation (3) in the conventional example is performed. ΑF can be obtained without using the following equation (4).

【0025】 αF=(I−(1−α)B) ・・・(4) ただし、α=0、1の場合には、αF=Iとする。ΑF = (I− (1−α) B) (4) However, when α = 0 and 1, αF = I.

【0026】また、寄与率αを符号化してもよいが、寄
与率αの代わりに(1−α)を符号化してもよい。
Although the contribution rate α may be encoded, (1-α) may be encoded instead of the contribution rate α.

【0027】そして、生成した前景画像αFと寄与率α
をそれぞれ符号化器14,15で符号化し、さらに、そ
れらを多重化器16で多重化して、記録媒体17に記録
したり、もしくは、伝送路を通じて伝送を行う。
Then, the generated foreground image αF and contribution ratio α
Are encoded by encoders 14 and 15, respectively, and are multiplexed by a multiplexer 16 to be recorded on a recording medium 17 or transmitted through a transmission path.

【0028】そして、復号側では、図2に示す復号装置
20のように、上記多重化された前景画像αFと寄与率
αの情報を記録媒体17から再生し、もしくは、伝送路
から受け取り、逆多重化器21によって分離し、それぞ
れの符号化器22,23で復号することにより前景画像
αFと寄与率αをもとめ、それらを合成器24で新しい
背景画像B*と合成することにより合成画像I*を生成
する。
On the decoding side, the multiplexed foreground image αF and the information of the contribution rate α are reproduced from the recording medium 17 or received from the transmission path, and the reverse is performed, as in the decoding device 20 shown in FIG. The foreground image αF and the contribution ratio α are obtained by the separation by the multiplexer 21 and the decoding by the respective encoders 22 and 23, and the synthesized image I is obtained by synthesizing them with the new background image B * by the synthesizer 24. Generate *.

【0029】このとき合成器24では、それぞれ1個の
乗算器25と加算器26により、 I*=αF+(1−α)B* ・・・(4) なる式(4)を用いて合成画像Iを生成する。
At this time, in the synthesizer 24, a single multiplier 25 and an adder 26 are used to obtain a synthesized image using the following equation (4): I * = αF + (1−α) B * (4) Generate I.

【0030】このように、復号側では、αFが復号され
るので、寄与率αと前景画像Fの乗算は必要ない。ま
た、寄与率αは、新しい背景画像B*と、(1−α)の
乗算に使われるだけなので、寄与率αの代わりに、(1
−α)を符号化してあれば、(1−α)を求める計算を
省略できる。
As described above, since αF is decoded on the decoding side, there is no need to multiply the contribution rate α by the foreground image F. Also, since the contribution rate α is only used for multiplication of the new background image B * and (1−α), (1) is used instead of the contribution rate α.
If (-α) is encoded, the calculation for (1-α) can be omitted.

【0031】次に、図3及び図4は本発明の第2の実施
の形態を示す図である。
Next, FIG. 3 and FIG. 4 are views showing a second embodiment of the present invention.

【0032】この第2の実施の形態では、図3に示す符
号化装置30のように、入力画像Iから第1及び第2の
演算処理部31,32で背景画像Bと寄与率αを計算し
て、算出した背景画像Bと寄与率αをそれぞれ符号化器
33,34で符号化するとともに、上記入力画像Iをそ
のまま符号化器35で符号化する。そして、上記符号化
器33,34,35で符号化された背景画像B、寄与率
αと入力画像Iを多重化器36で多重化して、記録媒体
37に記録したり、もしくは、伝送路を通じて伝送を行
う。
In the second embodiment, the background image B and the contribution ratio α are calculated from the input image I by the first and second arithmetic processing units 31 and 32 as in the encoding device 30 shown in FIG. Then, the calculated background image B and contribution ratio α are encoded by the encoders 33 and 34, respectively, and the input image I is encoded by the encoder 35 as it is. Then, the background image B, the contribution rate α and the input image I encoded by the encoders 33, 34, and 35 are multiplexed by the multiplexer 36 and recorded on the recording medium 37 or transmitted through a transmission path. Perform transmission.

【0033】このように、第2の実施の形態では、入力
画像Iから前景画像Fを求めずに入力画像Iをそのまま
符号化する。また、入力画像Iから背景画像Bを分離し
て符号化する。さらに、寄与率αを符号化して、それら
を多重化して、記録媒体37に記録したり、もしくは、
伝送路を通じて伝送が行われる。
As described above, in the second embodiment, the input image I is encoded without obtaining the foreground image F from the input image I. Further, the background image B is separated from the input image I and encoded. Further, the contribution rate α is encoded and multiplexed and recorded on the recording medium 37, or
Transmission is performed through a transmission path.

【0034】この第2の実施の形態は、背景画像Bを符
号化するため、背景画像Bの符号化に多くのデータが必
要でない場合、たとえば、入力画像Iがブルーバック画
像のように背景画像Bが均一もしくは簡単な場合に意味
を持つ。
In the second embodiment, the background image B is encoded. Therefore, when a large amount of data is not required for encoding the background image B, for example, when the input image I is a background image such as a blue background image. It is significant when B is uniform or simple.

【0035】そして、復号側では、図4に示す復号装置
40のように、上記多重化された背景画像B、寄与率α
と入力画像Iの情報を記録媒体37から再生し、もしく
は、伝送路から受け取り、逆多重化器41によって分離
し、それぞれの復号器42,43,44で背景画像B、
寄与率αと入力画像Iを復号する。演算処理部45で
は、上記背景画像B、寄与率αと入力画像Iの3つのデ
ータを用いて、入力画像Iから背景画像Bの影響を取り
除き、前景画像αFを求める。合成器46では、乗算器
47により得られる新しい背景画像B*と(1−α)の
乗算結果を上記演算処理部45で算出された前景画像α
Fに加算器48で加えることにより、合成画像I*を生
成する。
On the decoding side, as in the decoding device 40 shown in FIG.
And the information of the input image I is reproduced from the recording medium 37 or received from the transmission path, demultiplexed by the demultiplexer 41, and decoded by the respective decoders 42, 43, 44 into the background image B,
The contribution ratio α and the input image I are decoded. The arithmetic processing unit 45 removes the influence of the background image B from the input image I and obtains the foreground image αF using the three data of the background image B, the contribution ratio α, and the input image I. The combiner 46 multiplies the result of multiplication of the new background image B * obtained by the multiplier 47 by (1−α) with the foreground image α calculated by the arithmetic processing unit 45.
By adding to F by the adder 48, a composite image I * is generated.

【0036】このように、第2の実施の形態では、符号
化装置30側で計算された寄与率αによる合成結果が望
ましくない場合でも、入力画像Iと背景画像Bから別の
手法で計算し直すことができる利点がある。その意味で
は、符号化される情報が冗長であるが、背景画像Bが均
一に近く、入力画像Iや寄与率αに比べてごく少ない情
報量で符号化できる場合には、符号化効率の点からは問
題ない。
As described above, in the second embodiment, even when the result of synthesis based on the contribution rate α calculated by the encoding device 30 is not desirable, calculation is performed by another method from the input image I and the background image B. There is an advantage that can be fixed. In that sense, the information to be encoded is redundant, but if the background image B is nearly uniform and can be encoded with a very small amount of information compared to the input image I and the contribution rate α, the efficiency of encoding is reduced. There is no problem from.

【0037】次に、図5及び図6に示す本発明の第3の
実施の形態では、符号化装置100側で、入力画像に適
した画像データの組み合わせを決定し、その組み合わせ
情報をフラグとして符号化する。具体的な例は、 (1)前景画像Fと寄与率α (2)前景画像αFと寄与率α (3)入力画像I、寄与率αおよび背景画像B である。
Next, in the third embodiment of the present invention shown in FIGS. 5 and 6, the encoding apparatus 100 determines a combination of image data suitable for an input image, and uses the combination information as a flag. Encode. Specific examples are (1) foreground image F and contribution rate α (2) foreground image αF and contribution rate α (3) input image I, contribution rate α, and background image B.

【0038】この第3の実施の形態における符号化装置
100は、図5に示すように、入力画像(I又はF)が
供給されるコントローラ110により制御される第1及
び第2のスイッチ111,112と第1及び第2の切替
スイッチ121,122を備えるとともに、第1乃至第
3の演算処理部131,132,133、第1乃至第4
の符号化器141,142,143,144と多重化器
150を備えてなる。
As shown in FIG. 5, the encoding apparatus 100 according to the third embodiment has first and second switches 111 and 111 controlled by a controller 110 to which an input image (I or F) is supplied. 112, first and second changeover switches 121 and 122, and first to third arithmetic processing units 131, 132, 133, first to fourth
, Encoders 141, 142, 143, and 144 and a multiplexer 150.

【0039】この符号化装置100において、上記コン
トローラ110は、入力画像と利用者の選択に応じて、
上記の3つの組み合わせ(1),(2),(3)から、
最適な組み合わせを選択するものであって、上記第1及
び第2の切替スイッチ121,122を制御して、前景
画像F(1の場合)もしくは入力画像I(3の場合)を
そのまま符号化するか、入力画像Iから補正された前景
画像αFを計算する(2の場合)かを選択するとととも
に、上記第1及び第2のスイッチ111,112を制御
して、背景画像Bを符号化する(3の場合)か否かを選
択する。さらに、上記コントローラ110は、この選択
情報をフラグとして出力する。選択情報は、例えば次の
表1のように2ビットのフラグに割り当てられる。
In the encoding device 100, the controller 110 operates according to the input image and the selection of the user.
From the above three combinations (1), (2) and (3),
An optimal combination is selected, and the foreground image F (in the case of 1) or the input image I (in the case of 3) is encoded as it is by controlling the first and second changeover switches 121 and 122. And calculating the corrected foreground image αF from the input image I (in the case of 2), and controls the first and second switches 111 and 112 to encode the background image B ( 3) or not. Further, the controller 110 outputs this selection information as a flag. The selection information is assigned to a 2-bit flag, for example, as shown in Table 1 below.

【0040】[0040]

【表1】 [Table 1]

【0041】上記第1の演算処理部131は、上記第1
のスイッチ111を介して供給される入力画像(I)か
ら背景画像Bとを計算する。また、上記第2の演算処理
部132は、入力画像(I又はF)から寄与率αを計算
する。さらに、上記第3の演算処理部133は、上記第
1の切替スイッチ121を介して供給される入力画像I
と算出された背景画像Bと寄与率αから前景画像αFを
上述の式(4)を用いて算出する。
The first arithmetic processing unit 131 performs the first
From the input image (I) supplied via the switch 111 of FIG. Further, the second arithmetic processing unit 132 calculates the contribution rate α from the input image (I or F). Further, the third arithmetic processing unit 133 controls the input image I supplied via the first switch 121.
The foreground image αF is calculated from the calculated background image B and the contribution ratio α using the above-described equation (4).

【0042】第1の符号化器141は、上記第1の演算
処理部131により算出された背景画像Bを符号化して
第2のスイッチ112を介して多重化器150に供給す
る。また、第2の符号化器142は、上記第2の演算処
理部132により算出された寄与率αを符号化して上記
多重化器150に供給する。上記第2の符号化器142
では、寄与率αの代わりに(1−α)を符号化してもよ
い。また、第3の符号化器143は、上記第2の切替ス
イッチ122を介して供給される入力画像(I又はF)
又は上記第1の演算処理部131により算出された前景
画像αFを符号化して上記多重化器150に供給する。
さらに、第4の符号化器144は、上記コントローラ1
10により与えられる上記選択情報(フラグ)を符号化
して上記多重化器150に供給する。
The first encoder 141 encodes the background image B calculated by the first arithmetic processing unit 131 and supplies it to the multiplexer 150 via the second switch 112. Further, the second encoder 142 encodes the contribution rate α calculated by the second arithmetic processing unit 132 and supplies the result to the multiplexer 150. The second encoder 142
Then, (1-α) may be encoded instead of the contribution rate α. In addition, the third encoder 143 controls the input image (I or F) supplied via the second switch 122.
Alternatively, the foreground image αF calculated by the first arithmetic processing unit 131 is encoded and supplied to the multiplexer 150.
Further, the fourth encoder 144 is provided with the controller 1
The selection information (flag) given by 10 is encoded and supplied to the multiplexer 150.

【0043】そして、上記多重化器150は、上記第1
乃至第4の符号化器141,142,143,144に
より符号化された背景画像Bと寄与率αと入力画像(I
又はF)又は前景画像αFと選択情報(フラグ)を多重
化して、記録媒体160に記録したり、もしくは、伝送
路を通じて伝送を行う。
Then, the multiplexer 150 is connected to the first
, The background image B encoded by the fourth encoders 141, 142, 143, and 144, the contribution rate α, and the input image (I
Or F) or multiplexes the foreground image αF with the selection information (flag) and records it on the recording medium 160 or transmits it through a transmission path.

【0044】この第3の実施の形態における復号装置2
00は、図6に示すように、逆多重化器210、第1乃
至第4の復号器221,222,223,224、演算
処理部230及び合成器240を備えるとともに、コン
トローラ250により制御される第1及び第2のスイッ
チ261,262と第1及び第2の切替スイッチ27
1,272を備えてなる。
The decoding device 2 according to the third embodiment
6 includes a demultiplexer 210, first to fourth decoders 221, 222, 223, and 224, an arithmetic processing unit 230, and a combiner 240 as shown in FIG. First and second switches 261, 262 and first and second changeover switches 27
1,272.

【0045】そして、この復号装置200では、上記多
重化された背景画像Bと寄与率αと入力画像(I又は
F)又は前景画像αFと選択情報(フラグ)の情報を記
録媒体160から再生し、もしくは、伝送路から受け取
り、逆多重化器210によって分離し、第1乃至第4の
復号器221,222,223,224で背景画像Bと
寄与率αと入力画像(I又はF)又は前景画像αFと選
択情報(フラグ)を復号する。
The decoding apparatus 200 reproduces the multiplexed background image B, contribution ratio α, input image (I or F) or foreground image αF, and information of selection information (flag) from the recording medium 160. Alternatively, the image data is received from the transmission path, separated by the demultiplexer 210, and the first to fourth decoders 221, 222, 223 and 224 receive the background image B, the contribution rate α, the input image (I or F) or the foreground The image αF and the selection information (flag) are decoded.

【0046】コントローラ250は、第4の復号器22
4により復号された選択情報(フラグ)に基づいて、上
述の(1)から(3)のどの画像の組み合わせが符号化
されているかを判別して第1及び第2のスイッチ26
1,262と第1及び第2の切替スイッチ271,27
2を制御する。
The controller 250 controls the fourth decoder 22
4 to determine which image combination of the above (1) to (3) is encoded based on the selection information (flag) decoded by the first and second switches 26 and 26.
1, 262 and first and second changeover switches 271, 27
2 is controlled.

【0047】すなわち、画像情報は(1)前景画像F、
(2)前景画像αF、(3)入力画像Iのいずれかであ
るので、上記コントローラ250は、上記選択情報(フ
ラグ)に従って適切な処理を行うように上記第1及び第
2の切替スイッチ271,272を制御する。
That is, the image information includes (1) a foreground image F,
(2) Foreground image αF or (3) Input image I, the controller 250 sets the first and second changeover switches 271 and 271 so as to perform appropriate processing according to the selection information (flag). 272 is controlled.

【0048】(1)前景画像Fの場合には、乗算器24
1により寄与率αとの乗算を行い、前景画像αFを求め
る。
(1) For the foreground image F, the multiplier 24
The foreground image αF is obtained by multiplying by 1 with the contribution rate α.

【0049】(2)前景画像αFの場合には、処理を行
わない。
(2) In the case of the foreground image αF, no processing is performed.

【0050】(3)入力画像Iの場合には、寄与率αお
よび背景画像Bを用いて演算処理部230により前景画
像αFを求める。
(3) In the case of the input image I, the foreground image αF is obtained by the arithmetic processing unit 230 using the contribution ratio α and the background image B.

【0051】また、上記コントローラ250は、(3)
の場合に上記演算処理部230における処理で必要な背
景画像Bを上記第1の復号器221で復号して上記演算
処理部230に与えるように、上記第1及び第2のスイ
ッチ261,262を制御する。
Further, the controller 250 has (3)
In the case of (1), the first and second switches 261 and 262 are set so that the background image B necessary for the processing in the arithmetic processing unit 230 is decoded by the first decoder 221 and given to the arithmetic processing unit 230. Control.

【0052】そして、これらの処理によって、前景画像
αFと寄与率αが求められるので、合成器240により
新しい背景画像B*と合成を行う。
Then, the foreground image αF and the contribution ratio α are obtained by these processes, so that the synthesizer 240 synthesizes with the new background image B *.

【0053】すなわち、上記合成器240では、上記第
2の復号器222により復号された寄与率αと上記第1
及び第2の切替スイッチ271,272によりより選択
された前景画像αFとから、乗算器242と加算器24
3により上述の式(4)を用いて合成画像I*を生成す
る。
That is, in the combiner 240, the contribution rate α decoded by the second decoder 222 and the first
And a foreground image αF selected by the second changeover switches 271 and 272, and a multiplier 242 and an adder 24.
3, a composite image I * is generated by using the above-described equation (4).

【0054】なお、本発明は上述の実施の形態にのみ限
定されるものではなく、例えば、上記の(1)から
(3)のうちの2つの場合の組み合わせに対応し、1ビ
ットのフラグを用いるというような種々の変形が考えら
れる。
The present invention is not limited to the above-described embodiment. For example, the present invention corresponds to a combination of the two cases (1) to (3) and sets a 1-bit flag. Various modifications such as use are conceivable.

【0055】[0055]

【発明の効果】以上のように、本発明に係る画像データ
の符号化装置及び符号化方法によれば、前景画像Fが分
離されている場合と、入力画像と前景画像Fとが分離さ
れていない場合、等の2以上の組み合わせの中から、適
切な組み合わせを選択し、選択フラグと重畳して出力す
ることで、符号化する際の演算量を減らすことができ
る。また、本発明に係る画像データの復号装置及び復号
方法によれば、復号側において、選択フラグに基づいて
適切な合成方法の選択が可能となり、合成する際の演算
量を減らすことができる。
As described above, according to the apparatus and method for encoding image data according to the present invention, the case where the foreground image F is separated and the case where the input image and the foreground image F are separated. If there is no such combination, an appropriate combination is selected from two or more combinations, and is output while being superimposed on the selection flag, so that the amount of calculation at the time of encoding can be reduced. Further, according to the image data decoding apparatus and the decoding method according to the present invention, it is possible to select an appropriate combination method on the decoding side based on the selection flag, and it is possible to reduce the amount of calculation when combining.

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

【図1】本発明に係る画像符号化方法の第1の実施の形
態を説明するため符号化装置の構成図である。
FIG. 1 is a configuration diagram of an encoding device for describing a first embodiment of an image encoding method according to the present invention.

【図2】上記第1の実施の形態における復号装置の構成
図である。
FIG. 2 is a configuration diagram of a decoding device according to the first embodiment.

【図3】本発明の第2の実施の形態を説明するため符号
化装置の構成図である。
FIG. 3 is a configuration diagram of an encoding device for explaining a second embodiment of the present invention.

【図4】上記第2の実施の形態における復号装置の構成
図である。
FIG. 4 is a configuration diagram of a decoding device according to the second embodiment.

【図5】本発明の第3の実施の形態を説明するため符号
化装置の構成図である。
FIG. 5 is a configuration diagram of an encoding device for explaining a third embodiment of the present invention.

【図6】上記第3の実施の形態における復号装置の構成
図である。
FIG. 6 is a configuration diagram of a decoding device according to the third embodiment.

【図7】一般的な画像の合成方法を示す図である。FIG. 7 is a diagram showing a general method of synthesizing an image.

【図8】従来の画像合成方法における符号化側の基本的
な構成図である。
FIG. 8 is a basic configuration diagram on the encoding side in a conventional image combining method.

【図9】従来の画像合成方法における復号側の基本的な
構成図である。
FIG. 9 is a basic configuration diagram on the decoding side in a conventional image synthesis method.

【図10】前景画像が分離されていない画像を取り扱う
場合の画像の合成方法を示す図である。
FIG. 10 is a diagram illustrating a method of synthesizing an image when an image whose foreground image is not separated is handled.

【図11】前景画像が分離されていない画像を取り扱う
場合の符号化側の基本的な構成図である。
FIG. 11 is a basic configuration diagram on the encoding side when an image whose foreground image is not separated is handled.

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

10,30,100 符号化装置、20,40,200
復号装置、11,12,13,31,32,45,1
31,132,133,230 演算処理部、14,1
5,33,34,35,141,142,143,14
4 符号化器、16,36,150 多重化器、17,
37,160 記録媒体、21,41,210 逆多重
化器、22,23,42,43,45,221,22
2,223,224 復号器、24,46,240 合
成器、111,112,261,262 スイッチ、1
21,122,271,272 切替スイッチ
10, 30, 100 encoding device, 20, 40, 200
Decoding device, 11, 12, 13, 31, 32, 45, 1
31, 132, 133, 230 arithmetic processing unit, 14, 1
5,33,34,35,141,142,143,14
4 encoder, 16, 36, 150 multiplexer, 17,
37,160 recording medium, 21,41,210 demultiplexer, 22,23,42,43,45,221,22
2,223,224 decoder, 24,46,240 synthesizer, 111,112,261,262 switch, 1
21,122,271,272 Changeover switch

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力画像Iから寄与率α及び背景画像B
を求める手段と、 上記入力画像Iから上記背景画像Bの影響を補正した前
景画像αFを求める手段と、 少なくとも、 (A)前景画像Fと寄与率αとの組み合わせ、及び (B)入力画像Iから背景画像Bの影響を補正した前景
補正画像αFと寄与率αとの組み合わせ、 を含む2種類以上の組み合わせの中から選択を行い、選
択フラグを出力するコントローラと、 上記コントローラにより選択された組み合わせをそれぞ
れ符号化する符号化手段と、 上記符号化した組み合わせと上記選択フラグとを多重化
して出力する多重化手段とを備えることを特徴とする画
像データの符号化装置。
1. A contribution rate α and a background image B from an input image I
Means for obtaining a foreground image αF in which the influence of the background image B is corrected from the input image I; and (A) a combination of the foreground image F and the contribution rate α; and (B) the input image I A combination of a foreground corrected image αF in which the influence of the background image B is corrected and a contribution ratio α, and a controller that selects from two or more combinations and outputs a selection flag, and a combination selected by the controller. And a multiplexing unit that multiplexes the encoded combination and the selection flag and outputs the multiplexed combination and the selection flag.
【請求項2】 少なくとも、 (A)前景画像Fと寄与率αとの組み合わせ、及び (B)入力画像Iから背景画像Bの影響を補正した前景
補正画像αFと寄与率αとの組み合わせ、 を含む2種類以上の組み合わせの中から選択を行い、選
択フラグを出力し、 入力画像Iから、上記選択フラグが示す組み合わせに応
じて、寄与率α、前景画像F、背景画像Bの影響を補正
した前景補正画像αFのいずれかを求め、符号化を行
い、 上記符号化を行った画像情報の組み合わせと選択フラグ
とを多重化して出力することを特徴とする画像データの
符号化方法。
2. At least: (A) a combination of a foreground image F and a contribution rate α; and (B) a combination of a foreground correction image αF obtained by correcting an influence of a background image B from an input image I and a contribution rate α. A selection flag is output from two or more combinations including the selection flag, and a selection flag is output. From the input image I, the influence of the contribution ratio α, the foreground image F, and the background image B is corrected in accordance with the combination indicated by the selection flag. A method for encoding image data, wherein one of the foreground-corrected images αF is obtained, encoded, and a combination of the encoded image information and a selection flag are multiplexed and output.
【請求項3】少なくとも、 (A)前景画像Fと寄与率αとの組み合わせ、及び (B)入力画像Iから背景画像Bの影響を補正した前景
補正画像αFと寄与率αとの組み合わせ、 を含む2種類以上の組み合わせの中から選択を行い、選
択フラグを出力し、上記選択された組み合わせをそれぞ
れ符号化し、符号化された組み合わせと選択フラグとを
多重化して生成された画像データを逆多重化する手段
と、 上記逆多重化手段より得られる選択フラグに基づき、上
記逆多重化された画像データがどの組み合わせかを判別
するコントローラと、 上記逆多重化手段より得られる上記寄与率α、上記前景
画像F、上記前景補正画像αFのいずれかの符号化デー
タを復号する復号手段とを備えることを特徴とする画像
データの復号装置。
3. At least: (A) a combination of a foreground image F and a contribution ratio α; and (B) a combination of a foreground correction image αF obtained by correcting the influence of the background image B from the input image I and a contribution ratio α. Selection from among two or more types of combinations, including outputting a selection flag, encoding each of the selected combinations, and demultiplexing the image data generated by multiplexing the encoded combination with the selection flag. Means for determining the combination of the demultiplexed image data based on the selection flag obtained by the demultiplexing means; and the contribution rate α obtained by the demultiplexing means; A decoding device for decoding any one of the encoded data of the foreground image F and the foreground corrected image αF.
【請求項4】上記選択フラグに基づき、必要であれば計
算を行い、上記前景補正画像αFを求める手段と、 新しい背景画像B*と上記前景補正画像αFとを合成す
る合成手段とをさらに備えることを特徴とする請求項3
に記載の画像データの復号装置。
4. A means for calculating the foreground corrected image αF based on the selection flag, if necessary, and a synthesizing means for synthesizing the new background image B * and the foreground corrected image αF. 4. The method according to claim 3, wherein
3. An image data decoding device according to claim 1.
【請求項5】少なくとも、 (A)前景画像Fと寄与率αとの組み合わせ、及び (B)入力画像Iから背景画像Bの影響を補正した前景
補正画像αFと寄与率αとの組み合わせ、 を含む2種類以上の組み合わせの中から選択が行われ、
選択フラグが出力され、上記選択された組み合わせがそ
れぞれ符号化され、符号化された組み合わせと選択フラ
グとが多重化して生成された画像データを逆多重化し、 上記逆多重化して得た選択フラグに基づき、上記逆多重
化した画像データがどの組み合わせかをコントローラが
判別し、 上記コントローラが判別した上記寄与率α、上記前景画
像F,上記前景補正画像αFのいずれかの画像データを
それぞれ復号することを特徴とする画像データの復号方
法。
5. At least: (A) a combination of a foreground image F and a contribution rate α; and (B) a combination of a foreground correction image αF obtained by correcting the influence of the background image B from the input image I and a contribution rate α. Selection is made from two or more combinations including
A selection flag is output, the selected combination is encoded, and the coded combination and the selection flag are multiplexed to demultiplex the image data generated. The controller determines which combination the demultiplexed image data is based on, and decodes any one of the contribution ratio α, the foreground image F, and the foreground corrected image αF determined by the controller. A decoding method of image data, characterized by the following.
【請求項6】上記選択フラグに基づき、必要であれば計
算を行い、上記前景補正画像αFを求め、 新しい背景画像B*と上記前景補正画像αFとを合成す
ることを特徴とする請求項5に記載の画像データの復号
方法。
6. The foreground corrected image αF is calculated based on the selection flag if necessary, and a new background image B * is combined with the foreground corrected image αF. 2. A method for decoding image data according to item 1.
JP17144996A 1996-07-01 1996-07-01 Image data encoding apparatus / method and decoding apparatus / method Expired - Fee Related JP3277815B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17144996A JP3277815B2 (en) 1996-07-01 1996-07-01 Image data encoding apparatus / method and decoding apparatus / method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17144996A JP3277815B2 (en) 1996-07-01 1996-07-01 Image data encoding apparatus / method and decoding apparatus / method

Publications (2)

Publication Number Publication Date
JPH1023405A JPH1023405A (en) 1998-01-23
JP3277815B2 true JP3277815B2 (en) 2002-04-22

Family

ID=15923317

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17144996A Expired - Fee Related JP3277815B2 (en) 1996-07-01 1996-07-01 Image data encoding apparatus / method and decoding apparatus / method

Country Status (1)

Country Link
JP (1) JP3277815B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW455812B (en) * 1997-06-16 2001-09-21 Sony Computer Entertainment Inc Method and apparatus for generating composite image, and information processing system
US20050027927A1 (en) * 2003-07-31 2005-02-03 Weirauch Charles R. Data storage media with sector data control information
JP4735572B2 (en) * 2007-03-12 2011-07-27 セイコーエプソン株式会社 Image data encoding apparatus, image data decoding apparatus, image processing apparatus, and electronic apparatus
JP4845998B2 (en) * 2009-05-13 2011-12-28 日本電信電話株式会社 Animation method, animation apparatus, and animation program

Also Published As

Publication number Publication date
JPH1023405A (en) 1998-01-23

Similar Documents

Publication Publication Date Title
US6188725B1 (en) Interlaced video signal encoding and decoding method, by conversion of selected fields to progressive scan frames which function as reference frames for predictive encoding
EP0637893B1 (en) Transcoding device
JP2709786B2 (en) Apparatus including at least one encoder for encoding a digital signal and at least one decoder for decoding an encoded digital signal and encoder and decoder used in the apparatus
US6614846B1 (en) Method and apparatus for transmitting, encoding and decoding video signal and recording/reproducing method of optical disc
EP0966162A1 (en) Video signal reproducing device and hierarchical video signal decoder
KR20070078783A (en) Encoding apparatus, decoding apparatus, encoding method, decoding method, program of encoding method, program of decoding method, recording medium in which program of encoding method is recorded, and recording medium in which program of decoding method is recorded
EP1443776B1 (en) Video signal processing system
JPH06253339A (en) First encoder for encoding first digital signal, second encoder for encoding second digital signal, and coded digital signal decoding system comprising at least one decoder, and encoder and decoder for using in the system
JP3277815B2 (en) Image data encoding apparatus / method and decoding apparatus / method
JP4835648B2 (en) Speech encoding method and speech decoding method
KR20000022500A (en) Method of encoding information, its encoder, its decoding/ synthesizing method, its decoder/synthesizer and recording which those methods are recorded.
JP2904427B2 (en) Missing voice interpolation device
US6400414B1 (en) Transmitter, receiver, transmitter-receiver, transmitting method, receiving method and transmitting/receiving method
JP3683210B2 (en) Video / audio transmission system
JPH10112857A (en) Method and device for coding and decoding image signal
KR960012478B1 (en) Adaptable ms-stereo digital audio coder &amp; decoder
JPH07107441A (en) Video signal transmission/reception equipment
JPH0686253A (en) Moving image data transmitter
JP2936576B2 (en) Encoding device
JPH11346348A (en) Video/audio synchronization method and video/audio multiplexer
JPH0759092A (en) Transmitter for picture signal
JP2004153631A (en) Digital image and sound recorder
JP2002281383A (en) Device and method for editing material information
KR20090000002A (en) Digital radio signal generating apparatus
JPH10271081A (en) Mpeg2-ts multiplexing method and device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020115

LAPS Cancellation because of no payment of annual fees