JPS59140784A - Chroma-key device - Google Patents

Chroma-key device

Info

Publication number
JPS59140784A
JPS59140784A JP1429783A JP1429783A JPS59140784A JP S59140784 A JPS59140784 A JP S59140784A JP 1429783 A JP1429783 A JP 1429783A JP 1429783 A JP1429783 A JP 1429783A JP S59140784 A JPS59140784 A JP S59140784A
Authority
JP
Japan
Prior art keywords
color
data
signal
key signal
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1429783A
Other languages
Japanese (ja)
Other versions
JPH0527312B2 (en
Inventor
Yoshikazu Yamamoto
嘉一 山本
Yasuhiro Fujimori
泰弘 藤森
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 JP1429783A priority Critical patent/JPS59140784A/en
Publication of JPS59140784A publication Critical patent/JPS59140784A/en
Publication of JPH0527312B2 publication Critical patent/JPH0527312B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/74Circuits for processing colour signals for obtaining special effects
    • H04N9/75Chroma key

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PURPOSE:To obtain a chroma-key device which prevents erroneous composition of an achromatic color area by detecting the distance of a foreground color video signal from the position of an achromatic color on color coordinates, and correcting the level of a key signal according to the distance. CONSTITUTION:Foreground color video data FG.VID and background color video data BG.VID applied to an interface 1 are adjusted to proper phases by a timing signal TRS and outputted. The data FG.VID is applied to a correcting circuit 3 to correct the level of color difference data on each sample according to the distance from the origin (achromatic color) of each sample of the data FG.VID on the color coordinates. The level-corrected signal is compared with a reference point corresponding to a back color, sample by sample, by a key signal generating circuit 4 to generate a key signal with a specific level.

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は5色相の違いを利用して前景画像中の被写体
を前景画像にはめ込むクロマキー装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] This invention relates to a chromakey device that uses differences in five hues to fit a subject in a foreground image into a foreground image.

「背景技術とその問題点」 所定の色例えば青のスクリーンの前に被写体が位置する
前景カラービデオ信号と、背景となる画像の背景カラー
ビデオ信0号とが供給され。
"Background Art and its Problems" A foreground color video signal in which a subject is positioned in front of a screen of a predetermined color, for example, blue, and a background color video signal 0 of an image to be a background are supplied.

前景カラービデオ信号から被写体の輪郭と対応するキー
信号を生成し、このキー信号によって背景の前に被写体
が位置する合成画像を形成するり四マキー装置が知られ
ている。
2. Description of the Related Art A four-key system is known that generates a key signal corresponding to the outline of a subject from a foreground color video signal, and uses this key signal to form a composite image in which the subject is positioned in front of a background.

一般に、ディジタルクロマキー装置では1画像がコンポ
ーネント信号(輝度信号Y1色差信号U、V)で与えら
れる時、バックカラーと対応する参照点(Uo 、 V
O)を(、ty−v)色座標系で設定し、この参照点を
もとにスイッチング用のキー信号が形成される。キー信
号は、2つのレベル(ピーククリップレベルPL及びベ
ースクリップレベルBL)でクリップされ、整形された
うえでスイッチング信号として使用される。
Generally, in a digital chromakey device, when one image is given as component signals (luminance signal Y1 color difference signals U, V), reference points (Uo, V) corresponding to the back color are
O) is set in the (, ty-v) color coordinate system, and a key signal for switching is formed based on this reference point. The key signal is clipped at two levels (peak clip level PL and base clip level BL), shaped, and used as a switching signal.

このピーククリップレベルPL及びペースクリップレベ
ルELの差が不さいと、キー信号の量子化雑音が大きく
なる。そこで、このレベル差を大きくするため、ピーク
クリップレベルPLを高くとると9色座標系の原点付近
(即ち無彩色の領域)のキー信号も中間レベルを持ち、
そのため1合成画像において、無彩色の物体が透けて見
えてしまい、不自然となる。
If the difference between the peak clip level PL and the pace clip level EL is small, the quantization noise of the key signal becomes large. Therefore, in order to increase this level difference, if the peak clip level PL is set high, the key signal near the origin of the nine-color coordinate system (i.e., the achromatic color area) will also have an intermediate level,
Therefore, in one composite image, achromatic objects are visible through the image, resulting in an unnatural image.

そこで、予め無彩色領域に属する色差信号U。Therefore, the color difference signal U belonging to the achromatic color area is used in advance.

■の夫々を予勢大きな値で置き代え1ことが考λられる
。しかし、このように処理された色差信号から、キー信
号を形成Tると、極端にJベルが興なるものが隣り合っ
て存在する場合が生じ1例えば、被写体が半透明のガラ
スコツプの場合には。
It is conceivable to replace each of (2) with a larger predetermined value. However, when a key signal is formed from color difference signals processed in this way, there are cases where objects with extremely strong J bells exist adjacent to each other.1For example, when the subject is a semi-transparent glass tip, .

このガラスの領域で白い点がちらつき、見苦しい画像と
なる。
White dots flicker in this area of the glass, resulting in an unsightly image.

「発明の目的」 この発明は、無彩色領域の誤った合成が防止され、たク
ロマキー装置の提供を目的とTるものである。
[Object of the Invention] An object of the present invention is to provide a chromakey device that prevents erroneous compositing of achromatic color areas.

また、この発明は、無彩色領域とそれ以外の色領域とで
ステップ状にキー信号が変化することによる合成画像へ
の悪影響が防止されたクロマキー装置の提供を目的とす
るものである◇ 「発明の概要」 この発明は、前景カラービデオ信号及び所定の色と対応
する信号間の色s標上での距離を検出して被写体と対応
するキー信号を発生するりシマキー装置において、前景
カラービデオ信号の色座標上における無彩色の位置との
距離?検出する回路と、この検出された距離に応じたレ
ベル補正をキー信号に対して実質的に行なう補正回路と
を備えたものである。
Further, the present invention aims to provide a chroma key device that prevents the adverse effect on a composite image caused by stepwise changes in key signals between an achromatic color area and other color areas. Summary of the Invention The present invention detects the distance on a color s standard between a foreground color video signal and a signal corresponding to a predetermined color to generate a key signal corresponding to a subject. What is the distance from the achromatic color position on the color coordinates of ? This device includes a detection circuit and a correction circuit that substantially performs level correction on the key signal according to the detected distance.

「実施例」 以下、この発明をY、U、V信号系のディジタルビデオ
信号を対象とするディジタルクシマキ−装置に適用した
一実施例について説明する。
Embodiment Hereinafter, an embodiment will be described in which the present invention is applied to a digital comb keying device that targets digital video signals of Y, U, and V signal systems.

ディジタルクロマキー装置の全体の構成を示す第1図に
おいて、1は、前景カラービデオデータFG、VIDと
背景カラービデ、#デーIBG、VIDとが夫々のタイ
ミング基準信号TR8と共に供給されるインターフェー
スである。このカラービデオデータは、カラーテレビジ
ョンカメラの出力(R,G、B)をマトリックス演算す
ることで形成された輝度信号Y1色差信号U、Vを例え
ば14ニアニア)の比のサンプリング周波数でサンプリ
ングしてなる各成分からなるものである。インターフェ
ース1は、各々のタイミング基準信号TBSからデコー
ドされたタイミング信号(水平同期信号、垂直同期信号
等)をみて、2つのカラービデオデータFG、VID及
びBG、VIDの位相を適切なものとし、後段に出力す
る。
In FIG. 1 showing the overall configuration of a digital chromakey device, reference numeral 1 denotes an interface to which foreground color video data FG, VID and background color video data, # data IBG, VID are supplied together with respective timing reference signals TR8. This color video data is obtained by sampling the luminance signal Y1 and the color difference signals U and V, which are formed by matrix calculation of the output (R, G, B) of a color television camera, at a sampling frequency of, for example, 14 (near). It consists of each component. The interface 1 looks at the timing signals (horizontal synchronization signal, vertical synchronization signal, etc.) decoded from each timing reference signal TBS, sets the phases of the two color video data FG, VID, and BG, VID appropriately, and outputs them to the subsequent stage. Output to.

2は、バックカラーデータ形成回路である。前景カラー
ビデオデータFG、VIDからバックカラーデータが形
成され、このバックカラーデータがカラーキャンセラー
6に供給される。また、前景カラービデオデータFG、
VIDが補正回路3を介してキー信号形成回路4に供給
される。
2 is a back color data forming circuit. Back color data is formed from the foreground color video data FG and VID, and this back color data is supplied to the color canceller 6. Also, foreground color video data FG,
The VID is supplied to a key signal forming circuit 4 via a correction circuit 3.

補正回路3は、後述のように、(U、V)色座標上での
前景カラービデオデータの各サンプルの原点(無彩色)
からの距離に応じ°て、この各サンプルの色差データの
レベルを補正するものである。
As will be described later, the correction circuit 3 determines the origin (achromatic color) of each sample of the foreground color video data on the (U, V) color coordinates.
The level of color difference data of each sample is corrected according to the distance from the sample.

キー信号形成回路4は、バックカラーと対応Tる参照点
(U(1+ Vo)と前景カラービデオデータFG、V
IDとの対応する1サンプル毎に比較演算し、所定レベ
ルのキー信号を発生するものである。このように発生し
たキー信号そのものは、外乱を多く含んでいて、そのま
までは使用できないので、キープ、田七ツサ5において
、クリップ、このクリップ出力のエツジタイミングの調
整、ゲインの調整等の波形整形処理が施され、キープロ
セッサ5からキー信号KE’Y”が得られる。
The key signal forming circuit 4 generates a reference point (U(1+Vo)) corresponding to the back color and the foreground color video data FG, V.
A comparison operation is performed for each sample corresponding to the ID, and a key signal of a predetermined level is generated. The key signal itself generated in this way contains many disturbances and cannot be used as is, so in Keep, Tanatsusa 5 performs waveform shaping processing such as clipping, adjusting the edge timing of this clip output, and adjusting the gain. is applied, and a key signal KE'Y'' is obtained from the key processor 5.

カラーキャンセラー6は、このキー信号KEYをもとに
、前景カラービデオデータFG、VID中からパックカ
ラーを取り除く。例えば被写体が透明な場合に、透けて
見えるパックカラーが除宍される。具体的には、バック
カラーデータをキー信号KEYで振幅変調し、この変調
出力を前景カラービデオデータFG、VIDから減算す
るようになされる。このバックカッ−の除宍は、U及び
Vの信号だけについてなされ、WI度信号Yは、単に通
過Tるだけである〇 こ゛のカラーキャンセラー6には、遅延回路7を介して
前景カラービデオデータF()、VIDが供給される。
The color canceller 6 removes the packed color from the foreground color video data FG and VID based on this key signal KEY. For example, when the subject is transparent, the transparent pack color is removed. Specifically, the back color data is amplitude-modulated using the key signal KEY, and the modulated output is subtracted from the foreground color video data FG and VID. This backlash removal is done only for the U and V signals, and the WI degree signal Y is simply passed through T. (), VID is supplied.

キープ四セッサ5における前述の波形処理に要Tる時間
に相当する遅延量を遅延回路7が有している。
The delay circuit 7 has a delay amount corresponding to the time T required for the above-mentioned waveform processing in the keep processor 5.

そして、カラーキャンセラー6の出力CAN、VIと背
景カラービデオデータBG、VIDとがミキサー8に供
給され、キー信号KEYをもとにして両者のミキシング
が行なわれる。このミキシングは2つのカラービデオデ
ータCAN、MIDとBC)、VIとを単にスイッチン
グして出力する方法の他に。
Then, the outputs CAN and VI of the color canceller 6 and the background color video data BG and VID are supplied to the mixer 8, and mixing of the two is performed based on the key signal KEY. This mixing method involves simply switching and outputting two color video data (CAN, MID and BC) and VI.

両者の境界において、一方のレベルを徐々に減少させる
と共に、他方″のレベルを徐々に増大させるクロスフェ
ードの方法を用いることができる。このミキサー8の出
力は、ディジタルフィルタ9を介してインターフェース
10に供給される。ディジタルフィルタ9は、ミキサー
8の出力の波形を整えるためのものである。
At the boundary between the two, a cross-fade method can be used in which the level of one is gradually decreased while the level of the other is gradually increased. The digital filter 9 is used to adjust the waveform of the output of the mixer 8.

インターフェース10は、カラーキャンセラー6から色
消しがされたCAM、VIDとディジタルフィルタ9か
らの合成カラービデオデータKYD、’VIDと、夫々
のタイミング基準信号と、キー信号KEYとを外部に出
力するためのものである。
The interface 10 is for outputting to the outside the achromatic CAM and VID from the color canceller 6, the composite color video data KYD and 'VID from the digital filter 9, the respective timing reference signals, and the key signal KEY. It is something.

更に、マイクロプロセッサ1i 、CRTモニター12
1びコンソール13が設けられており、コンソール13
からのユーザーのキー人力を翻訳してシステム内部に伝
達したり、各回路ブロックにおいて必要とされる演算処
理を行なったりできるようにされている0 上述のディジタルクロマキー装置におけるカラーキャン
セラー6及びミキサー8の部分の構成は。
Furthermore, a microprocessor 1i, a CRT monitor 12
1 and a console 13 are provided, and the console 13
It is possible to translate the user's key input from the computer and transmit it inside the system, and to perform the necessary arithmetic processing in each circuit block. What is the composition of the parts?

第2図に示すような構成とされている。−例として第3
1fflAに示すように、バックカラー例えば青の塗料
がぬられたバックスクリーン14の前に被写体15例え
ば人物が位置する前景16と、第3図Bに示す背景17
とを考える。
The configuration is as shown in FIG. - As an example, the third
1fflA, a foreground 16 in which a subject 15, for example, a person, is positioned in front of a back screen 14 painted with a back color, for example, blue, and a background 17, shown in FIG. 3B.
I think about that.

パックカラーデータ形成回路2からは、この使用するパ
ックスクリーン14と対応するパックカラーデータDB
が形成され、第2図において、18で示す乗算器に供給
される。この乗算器18には。
The pack color data forming circuit 2 outputs the pack color data DB corresponding to the pack screen 14 to be used.
is formed and fed to a multiplier indicated at 18 in FIG. In this multiplier 18.

キー信号KEYと逆相の即ち被写体15の領域でゲイン
がOとなるキー信号KEYが供給される。したがって、
第3図Cに示すように被写体15の部分を除く斜線領域
にバックカラーが存在するデータが発生し、前景カラー
ビデオデータFG、VIDから減算器19において引か
れる。この結果、第3図りに示すように、被写体15と
対応し、且つ ・バックカラーが除去されたビデオデー
タCAN、MIDが減算器19から発生し1乗算器20
に加えられる。また、背景カラービデオデータBG、V
IDが乗算器21に供給され、キー信号KEYによって
振幅変調され、したがって第3図Eに示すように。
A key signal KEY having a phase opposite to that of the key signal KEY, that is, a gain of O in the region of the subject 15, is supplied. therefore,
As shown in FIG. 3C, data in which the back color exists in the hatched area excluding the subject 15 is generated and is subtracted from the foreground color video data FG and VID by the subtracter 19. As a result, as shown in the third diagram, video data CAN and MID that correspond to the subject 15 and from which the back color has been removed are generated from the subtracter 19 and are output to the multiplier 20.
added to. In addition, background color video data BG, V
ID is applied to multiplier 21 and amplitude modulated by key signal KEY, thus as shown in FIG. 3E.

背景17中で被写体15の領域のデータが除去された出
力が乗算器21から生じる。一方1乗算器20には、キ
ー信号KEYが供給されるので、この乗算器20及び2
1の出力データを加算器22に供給することによって、
第3図Fに示すように。
An output is produced from the multiplier 21 in which the data of the region of the subject 15 in the background 17 has been removed. On the other hand, since the key signal KEY is supplied to the first multiplier 20, the multipliers 20 and 2
By supplying the output data of 1 to the adder 22,
As shown in Figure 3F.

背景17に被写体15がはめ込まれた画像と対応する出
力ビデオデータKYD、VIDが得られる。
Output video data KYD and VID corresponding to an image in which the subject 15 is embedded in the background 17 are obtained.

ここで、キー信号の形成方法の一例について第4図を参
照して説明する。まず、第4図の(U。
Here, an example of a method for forming a key signal will be explained with reference to FIG. 4. First, (U.

■)色差座標上でバックカラーと対応する参照点を(U
o、vo)としたとき、原点とこの点を結んでできる軸
をX軸、それに垂直で(Uo + Vo )を通るのを
Y軸とする。参照点(Uo、vo)と任意の(U’、 
V)値と企結ぶベクトルでX軸、Y軸の各々への寄与分
をx、yで示すと X= (’U  TJo ) cosθ+(V−Vo 
) sinθy= (V−VO) casθ−(UUo
)sinθθ=tab−” (”7U0) と表わされる。そこで1次式で示すような関数でキー信
号を定義する。
■) Set the reference point corresponding to the back color on the color difference coordinates (U
o, vo), the axis formed by connecting the origin and this point is the X axis, and the axis perpendicular to it and passing through (Uo + Vo) is the Y axis. Reference point (Uo, vo) and arbitrary (U',
If the contributions to the X and Y axes are expressed as x and y in a vector connecting the V) value, then
) sinθy= (V-VO) casθ-(UUo
) sin θθ=tab-” (”7U0). Therefore, a key signal is defined by a function as shown by a linear equation.

K=alxl+blyl (a、bは正の任意の定数である。) 左辺のKを一定(t& K oでおいたとき、それを満
た丁(U、V)値は、ひし形の辺上に並ぶことになるO このように発生されたキー信号には、キープロセッサ5
に導かれ、クリップ回路によって波形整形され乞。例え
ばバックスクリーン14の前に透明なコツプが被写体1
5としておがれている前景16を撮像した場合、コツプ
の中央部では、バックカラーが透けて見えるため、第5
図Aに示すように被写体15の輪郭と対応して大レベル
となりその中央部でレベルがやや小となるキー信号Kが
キー信号形成回路4から生じる。キー信号は2例えば8
ビツトを1サンプルとするデジタル信号であるが、第5
図では、説明の都合上、信号アナログ波形によって示し
ている。そして、ベースクリップレベルBL及びピーク
クリップレベルPLをスレッショルドレベルとするクリ
ップ動作がなされる。つまり、EL以下は、全て0のレ
ベルとし。
K=alxl+blyl (a, b are any positive constants.) When K on the left side is constant (t & K o, the (U, V) values that satisfy it are lined up on the sides of the rhombus. The key signal generated in this way is processed by the key processor 5.
The waveform is shaped by a clip circuit. For example, a transparent tip is in front of the back screen 14 as subject 1.
If you take an image of the foreground 16 that is falling down as 5, the back color is transparent in the center of the tip, so the 5th
As shown in FIG. A, a key signal K is generated from the key signal forming circuit 4, which has a high level corresponding to the contour of the subject 15 and a slightly low level at the center thereof. The key signal is 2, for example 8
It is a digital signal with one bit as one sample, but the fifth
In the figure, a signal analog waveform is shown for convenience of explanation. Then, a clip operation is performed using the base clip level BL and the peak clip level PL as threshold levels. In other words, everything below EL is set to level 0.

PL以上は、全て255のレベルとするのである。All levels above PL are set to level 255.

これによって、第5図Bに示すようなキー信号KEYが
形I&される。第5図Cは、逆位相のキー信号KEYを
示している。
As a result, the key signal KEY as shown in FIG. 5B is generated as I&. FIG. 5C shows the key signal KEY of opposite phase.

上述のベースクリップレベルBL及びピーククリップレ
ベルPLの夫々は第4図に示すものとなり。
The above-mentioned base clip level BL and peak clip level PL are shown in FIG. 4, respectively.

同図において23で示す小さなひし形の中に含まれるも
のは全て0,24で示す大きなひし形の外は全て255
とされ1両者の間に位置する部分は。
In the same figure, everything contained within the small diamond marked 23 is 0, and everything outside the large diamond marked 24 is 255.
1. The part located between the two is.

キー信号の傾斜を決定する中間レベルの領域となる。バ
ッタスクリーン14から被写体15になる、  境界で
は+  (U6 g ’/1) )がら被fK15の色
に応じた位置まで変化Tることになる。
This is an intermediate level area that determines the slope of the key signal. From the grasshopper screen 14 to the subject 15, at the boundary there is a change T from +(U6 g'/1)) to a position corresponding to the color of the subject fK15.

ピーククリップレベルPLを原点0を中心とTる無彩色
領域にががらないように/11ざくして、第■象限内に
おざめれば、無彩色領域での誤った合成が生じない。し
かし、その場合には、2つのクリップレベルBL及びP
L間のレベル差が小さくなり、キー信号の振幅が不足し
、8/Nが悪くなる。そこで、第4図に示すように、ピ
ーククリップレベルPLを大きくしているのである。
If the peak clip level PL is reduced by /11 so as not to fall into the achromatic region T centered on the origin 0, and placed within the second quadrant, erroneous compositing in the achromatic region will not occur. However, in that case, two clip levels BL and P
The level difference between L becomes small, the amplitude of the key signal becomes insufficient, and 8/N deteriorates. Therefore, as shown in FIG. 4, the peak clip level PL is increased.

ざて、この一実施例における補正回路3は、前景カラー
ビデオデータFG、VIDの色差データ(U、v)の原
点0がらの距離を求める距離検出回路と、この求められ
た距離に応じて色差データのレベルを補正するレベル補
正回路とから構成される。
The correction circuit 3 in this embodiment includes a distance detection circuit that calculates the distance from the origin 0 of the color difference data (U, v) of the foreground color video data FG and VID, and a color difference detection circuit that calculates the distance from the origin 0 of the foreground color video data FG and VID. It is composed of a level correction circuit that corrects the level of data.

距離検出回路の構成の例が第6図、第7図、第8図に夫
々示されている。第6図に示す例は2色差データU、V
の2乗υ2.v2の値を演算回路41゜42により演算
し9両者を加算回路43により加算し、加算出力の平方
根分演算回路44で求める。
Examples of the configuration of the distance detection circuit are shown in FIGS. 6, 7, and 8, respectively. The example shown in FIG. 6 is two color difference data U, V.
squared υ2. The value of v2 is calculated by the calculation circuits 41 and 42, and both are added by the addition circuit 43, and the square root of the addition output is calculated by the calculation circuit 44.

この平方根(へ17伝)即ち原点からの距離のデータD
が比較回路45に供給され、無彩色領域を定める基準値
D0と比較される。原点からの距離がり、より小さい場
合には、無彩色領域内にあると判断され、この距離のデ
ータDがラッチ46に取り込まれ、そうでない場合には
、ラッチ46がクリアされる。
This square root (He 17), that is, the data D of the distance from the origin
is supplied to a comparison circuit 45 and compared with a reference value D0 that defines an achromatic color area. If the distance from the origin is smaller, it is determined that the distance is within the achromatic color area, and data D of this distance is taken into the latch 46, and if not, the latch 46 is cleared.

第7図に示す距離検出回路は、実際に即して構成の簡略
化を図ったものである。
The distance detection circuit shown in FIG. 7 has a simplified configuration in accordance with the actual situation.

第7図において、47.48は、2を補数とするコード
で伝送される色差データU、Vを絶対値に変換するRO
Mを夫々示す。このROM 47 。
In FIG. 7, 47.48 is an RO that converts the color difference data U and V transmitted in a two's complement code into absolute values.
M is shown respectively. This ROM 47.

48から出力される絶対値IUI、IVIが比較回路4
9.50に供給され、基準値り、と比較される。この基
準値Doは、原点近傍の無彩色領域を定めるものなので
、高々5ビツトで表現されるものである。比較回路49
.50がら9色差データの絶対値が基準値Doと等しい
が又は小さい場合にH(?ilレベル)となる出方が発
生する。これらの比較回路49.50の出力がANDゲ
ート51に供給される。
The absolute values IUI and IVI output from the comparator circuit 4
9.50 and compared with the reference value. Since this reference value Do defines the achromatic color area near the origin, it is expressed by at most 5 bits. Comparison circuit 49
.. When the absolute value of the color difference data from 50 to 9 is equal to or smaller than the reference value Do, an output of H (?il level) occurs. The outputs of these comparison circuits 49 and 50 are supplied to an AND gate 51.

また1色差データの絶対値がROM 52に供給2  
Also, the absolute value of the color difference data is supplied to the ROM 52.
.

される。このROM52は、  IUI  +IVI2
の平方根即ち原点からの距離データD’4;6出カする
もので、この距離データDがラッチ53に供給される。
be done. This ROM52 is IUI +IVI2
That is, distance data D'4;6 from the origin is output, and this distance data D is supplied to the latch 53.

ラッチ53のクリア端子にANDゲート51の出力が供
給されている。このANDゲート51の出力は+  (
−1)o≦U≦Do r−Do≦v≦I)o) CD場
合ニHとなり、それ以外でLとなる。したがって、上述
の不等式で定義される無彩色領域に含まれる色差データ
の場合に、その距離データDがラッチ53に取り込まれ
る。
The output of the AND gate 51 is supplied to the clear terminal of the latch 53. The output of this AND gate 51 is + (
-1) o≦U≦Do r-Do≦v≦I) o) In the case of CD, it becomes dH, and in other cases it becomes L. Therefore, in the case of color difference data included in the achromatic color area defined by the above-mentioned inequality, the distance data D is taken into the latch 53.

第8図に示す距離検出回路は1色差データの絶対値IU
1.)Vl をROM47.48で求め1両者を加算回
路54に供給して、その出方に距離データDを発生する
もので、ある。この距離データD(−1Ul+1Vl)
 がう7チ55及び比較図1i856に供給される。比
較回路56に基準値Doが供給され、(D≦Do )の
場合にHとなり、それ以外でLとなる比較出力が発生し
、この比較出力がラッチ55のクリア端子に供給される
The distance detection circuit shown in Fig. 8 is based on the absolute value IU of one color difference data.
1. ) Vl is determined in the ROM 47, 48, and both are supplied to the adder circuit 54, and the distance data D is generated at the output thereof. This distance data D (-1Ul+1Vl)
7chi 55 and comparison diagram 1i856. A reference value Do is supplied to the comparison circuit 56, and a comparison output is generated which becomes H when (D≦Do) and becomes L otherwise, and this comparison output is supplied to the clear terminal of the latch 55.

この距離データDはI(U、V)座標糸において、その
原点を中心とする正方形の軌跡を描く。
This distance data D draws a square locus centered on the origin in the I (U, V) coordinate thread.

同様に1M準値り。も、原点を中心と′する正方形の軌
跡を描く。この基準値り。の軌跡が無彩色領域となる。
Similarly, the price is near 1M. also draws a square locus centered at the origin. This standard value. The locus becomes an achromatic region.

厳密に原点からの距離を求める場合には、軌跡が円とな
る。しかし上述のように、正方形の軌跡により近似して
も、殆ど問題が生ぜず。
If the distance from the origin is determined strictly, the trajectory will be a circle. However, as mentioned above, approximation using a square locus causes almost no problems.

距離検出回路の構成の簡略化を図ることができる。The configuration of the distance detection circuit can be simplified.

このように求められた距離データDを用いて。Using the distance data D obtained in this way.

色差データのレベルを補正する。第9図は、距離検出回
路及びレベル補正回路の両者からなる補正回路4の一例
の構成を示す。
Correct the level of color difference data. FIG. 9 shows an example of the configuration of the correction circuit 4, which includes both a distance detection circuit and a level correction circuit.

第9図では、第8図と同様の距離検出回路が用いられて
いる。但し、距離データDが発生する加算回路54とラ
ッチ55との間にROM57が設けられている。このR
OM57は、与えられ起距離データD及び最大値LOか
ら補正データを発生するものである。この補正データが
ラッチ55を介してALU58,59の一方の入力端子
に供給される。
In FIG. 9, a distance detection circuit similar to that in FIG. 8 is used. However, a ROM 57 is provided between the adder circuit 54 where the distance data D is generated and the latch 55. This R
The OM 57 generates correction data from the given starting distance data D and the maximum value LO. This correction data is supplied to one input terminal of ALUs 58 and 59 via latch 55.

ALU 58 * 59の他方の端子には9色差データ
U j、、 Vが夫々供給される。このALU 5 B
 。
Nine color difference data U j, , V are supplied to the other terminal of the ALU 58 * 59, respectively. This ALU 5 B
.

59に夫々コントロール信号DM+ * DM、が供給
される。このフン)0−ル信号DMH、DM2は。
59 are supplied with control signals DM+*DM, respectively. These 0-R signals DMH and DM2 are.

参照点(Uo + Vo )を(U * V )座標系
のどの象限に設定しているかで変化するものである。
This changes depending on in which quadrant of the (U*V) coordinate system the reference point (Uo + Vo) is set.

つまり、ALU58159の出力に現れる補正後の色差
データは、参照点(Uo + ”6 )を中心と′Tる
ひし形の領域からなるべく離れる必要があり。
In other words, the corrected color difference data appearing in the output of the ALU58159 needs to be as far away from the diamond-shaped area as possible with the reference point (Uo + "6) as the center.

そのために、参照点の設定されている象限に応じて、 
ALU 58 # 59の行なう演算を加算又は減算に
切り替える必要がある。
For this, depending on the quadrant in which the reference point is set,
It is necessary to switch the operation performed by ALU 58 #59 to addition or subtraction.

At、ty58.59の出力に現れる色差データがキー
信号発生回路4に供給される。無彩色領域に含まれる色
差データは、ALU58159において補正データが合
成されることにより、参照点(UosVo)から離れる
ように補正されているので、キー信号のレベルも増大さ
れる。したがって、無彩色の被写体が透けて見える誤合
成は生じない。
The color difference data appearing at the outputs of At and ty58.59 is supplied to the key signal generation circuit 4. Since the color difference data included in the achromatic color area is corrected to move away from the reference point (UosVo) by combining correction data in the ALU 58159, the level of the key signal is also increased. Therefore, erroneous composition in which an achromatic subject appears transparent does not occur.

ROM57における補正データの形成について第10図
を参照して説明する。Cv、v)座標系において、ピー
ククリップレベルPLで規定される大きなひし形24(
第4図参照)内で、基準値Doは、原点Oを中心とする
正方形の無彩色領域25を規定Tる。この無彩色領域2
5内に含まれる色差データに対してROM 57は、補
正データを発生する。
Formation of correction data in the ROM 57 will be explained with reference to FIG. Cv, v) coordinate system, a large diamond 24 (
(see FIG. 4), the reference value Do defines a square achromatic region 25 centered on the origin O. This achromatic area 2
ROM 57 generates correction data for the color difference data contained within 5.

この補正データは、原点Oからの距離データDに対して
、(O≦D≦DO)の範囲で26で示すように非直線的
に変化するもので、また、(−D≦D≦0)の範囲で2
7で示すように非直線的に変化するものである。(D=
O)の場合に補正データは、最大値L0となる。
This correction data changes non-linearly as shown by 26 in the range (O≦D≦DO) with respect to the distance data D from the origin O, and (-D≦D≦0). 2 in the range of
7, it changes non-linearly. (D=
In the case of O), the correction data has the maximum value L0.

また、この一実施例のように、参照点が第■象限に設定
されている場合には、コントロール信号DJ +、DM
zによって、第11図に示すように。
In addition, as in this embodiment, when the reference point is set in the quadrant ①, the control signals DJ +, DM
z, as shown in FIG.

ALU5 Bが減算動作(A−B)を行ない、ALU5
9が加算動作(A十B)を行なうように制御される。し
たがってI ALU 5 B a 59の出力に発生す
る補正後の色差データは、U成分が負方向に大となり、
■成分が正方向に大となるので、第■象限の方向へ移動
される。
ALU5 B performs subtraction operation (A-B), and ALU5
9 is controlled to perform an addition operation (A + B). Therefore, in the corrected color difference data generated in the output of I ALU 5 B a 59, the U component increases in the negative direction,
Since the (2) component increases in the positive direction, it is moved toward the (2) quadrant.

この一実施例と異なり、参照点が第1象限に設定されて
いれば、第11図に示されるように。
Unlike this embodiment, if the reference point is set in the first quadrant, as shown in FIG.

ALU5B、59が共に減算動作を行ない、第■象限の
方に移るような補正がなされる。参照点が第■象限に設
定されている場合には、第■象限に補正後の色差データ
が移動し、これが第■象限に設定されている場合には、
第■象限に補正後の色差データが移動するようにされる
Both ALUs 5B and 59 perform a subtraction operation, and a correction is made to move toward the second quadrant. If the reference point is set in the 2nd quadrant, the corrected color difference data will move to the 2nd quadrant, and if this is set in the 2nd quadrant,
The corrected color difference data is moved to the second quadrant.

第12図は、この発明の他の実施例を示す。上述の一実
施例と異なり、キー信号形成回路4から発生したキー信
号に対して直接に補正を行なうのがこの実施例である。
FIG. 12 shows another embodiment of the invention. Unlike the above embodiment, this embodiment directly corrects the key signal generated from the key signal forming circuit 4.

補正データの発生は、前述の一実施例と同様になされる
。但し、キー信号形成回路4で生じる遅延を補償するた
めの遅延回路60が加算回路54の出力に設けられてい
る。キー信号形成回路4からのキー信号とラッチ55か
らの補正データとが加算回路61に供給され、この加算
回路61の出力に補正後のキー信号が発生する。
The correction data is generated in the same manner as in the previous embodiment. However, a delay circuit 60 is provided at the output of the adder circuit 54 to compensate for the delay occurring in the key signal forming circuit 4. The key signal from the key signal forming circuit 4 and the correction data from the latch 55 are supplied to an adder circuit 61, and a corrected key signal is generated at the output of the adder circuit 61.

なお、補正データに関する第10図に示すゲイン特性は
、−例であって、直線的な特性を含めて種々の変更が可
能である。
Note that the gain characteristics shown in FIG. 10 regarding the correction data are examples, and various changes including linear characteristics are possible.

「発明の効果」 この発明に依れば、無彩色領域を含むようなりリップレ
ベルを設定して、キー信号の”/Nを良くする場合に、
無彩色領域での誤った合成を防止することができる。ま
た、無彩色領域に含まれるデータを補正する場合、この
発明では、その補正量を原点からの距離に応じて変化さ
せているので。
"Effects of the Invention" According to this invention, when setting the lip level to include an achromatic color area and improving the "/N" of the key signal,
Erroneous compositing in achromatic areas can be prevented. Furthermore, when correcting data included in the achromatic color area, the amount of correction is changed according to the distance from the origin in the present invention.

周辺のデータとの連続性を保つことができる。したがっ
て、ガラスの半透明な被写体の場合に、この被写体がじ
らついて見えることを防止することができる。
Continuity with surrounding data can be maintained. Therefore, in the case of a translucent glass object, it is possible to prevent the object from appearing flickering.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例の全体の構成を示すブロッ
ク図、第2図はこの発明の一実施例のカラーキャンセラ
ー及びミキサーの構成を示すブロック図、第3図はこの
発明の一実施例の動作説明に用いる路線図、第4図及び
第5図はキー信号の形成及び波形整形の動作説明に用い
る路線図及び波形図、第6図、第7図及び第8図は色差
データの原点からの距離を求める距離検出回路の一例。 他の例及び更に他の例の構成を夫々示すブロック図、第
9図はこの発明の一実施例における補正回路の一例の構
成を示すブ四ツク図、第10図及び第11図はこの補正
回路の動作説明に用いる路線図、第12図は補正回路の
他の例の構成を示すブロック図である。 3・・・・・・補正回路、4・・・・・・キー信号形成
回路。 5・・・・・・キープ四セッサ、8・・・・・・・・ミ
キサー。 14・・・・・・パックスクリーン、15・・・・・・
被写体。 16・・・・・・前景、17・・・・・・背景、47.
48・・・・°・・絶対値を得るためのROM、57・
・・・・・補正データを発生するROM 、58 e 
59 ””” ALU 。 代理人  杉 浦 正 知 第5図 第6図 O 第8図 n
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of a color canceller and mixer in an embodiment of the invention, and FIG. 3 is an embodiment of the invention. Figures 4 and 5 are route maps and waveform diagrams used to explain the operation of key signal formation and waveform shaping, and Figures 6, 7, and 8 are color difference data diagrams. An example of a distance detection circuit that calculates the distance from the origin. FIG. 9 is a block diagram showing the structure of an example of a correction circuit in an embodiment of the present invention, and FIGS. 10 and 11 are block diagrams showing the structure of another example and still another example. FIG. 12, which is a route diagram used to explain the operation of the circuit, is a block diagram showing the configuration of another example of the correction circuit. 3... Correction circuit, 4... Key signal forming circuit. 5...Keep four processors, 8...Mixer. 14... Pack screen, 15...
subject. 16...Foreground, 17...Background, 47.
48...°...ROM for obtaining absolute value, 57.
...ROM that generates correction data, 58 e
59 ``”” ALU. Agent Masato Sugiura Figure 5 Figure 6 O Figure 8 n

Claims (1)

【特許請求の範囲】[Claims] 所定の色のスクリーンの前に被写体が位置する前景カラ
ービデオ信号と、背景カラービデオ信号とが供給され、
上記前景カラービデオ信号及び上記所定の色と対応Tる
信号間の色座標上での距離を検出して、上記被写体と対
応するキー信号を発生し、このキー信号によって上記背
景の前に上記被写体が位置する合成カラービデオ信号を
形成するようにしたクロマキー装置において、上記前景
カラービデオ信号の上記色座標上における無彩色の位置
との距離を検出Tる回路と、この検出された距離に応じ
たレベル補正を上記キー信号に対して実質的に行なう補
正回路とを備えたクロマキー装置。
A foreground color video signal in which a subject is positioned in front of a screen of a predetermined color and a background color video signal are provided;
The distance on color coordinates between the foreground color video signal and the signal corresponding to the predetermined color is detected to generate a key signal corresponding to the subject, and the key signal causes the subject to appear in front of the background. The chroma key device is configured to form a composite color video signal where the foreground color video signal is located, and includes a circuit for detecting the distance between the foreground color video signal and the achromatic color position on the color coordinates, and a correction circuit that substantially performs level correction on the key signal.
JP1429783A 1983-01-31 1983-01-31 Chroma-key device Granted JPS59140784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1429783A JPS59140784A (en) 1983-01-31 1983-01-31 Chroma-key device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1429783A JPS59140784A (en) 1983-01-31 1983-01-31 Chroma-key device

Publications (2)

Publication Number Publication Date
JPS59140784A true JPS59140784A (en) 1984-08-13
JPH0527312B2 JPH0527312B2 (en) 1993-04-20

Family

ID=11857153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1429783A Granted JPS59140784A (en) 1983-01-31 1983-01-31 Chroma-key device

Country Status (1)

Country Link
JP (1) JPS59140784A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6152094A (en) * 1984-08-16 1986-03-14 クオンテル リミテツド Video signal editing device
US5231504A (en) * 1991-12-30 1993-07-27 Xerox Corporation Method for improved color reproduction using linear mixing calculations based on positional relationships between an original color and an achromatic region in a linear mixing space
JP2006295686A (en) * 2005-04-13 2006-10-26 Canon Inc Image processing method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6226048B1 (en) * 1996-09-12 2001-05-01 Sony Corporation Image signal processing apparatus having a signal level corrector circuit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50155129A (en) * 1974-06-03 1975-12-15
JPS5742283A (en) * 1980-08-26 1982-03-09 Matsushita Electric Ind Co Ltd Chromachy signal generator
JPS57204691A (en) * 1981-06-11 1982-12-15 Sony Corp Key signal generating method of chromakey device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50155129A (en) * 1974-06-03 1975-12-15
JPS5742283A (en) * 1980-08-26 1982-03-09 Matsushita Electric Ind Co Ltd Chromachy signal generator
JPS57204691A (en) * 1981-06-11 1982-12-15 Sony Corp Key signal generating method of chromakey device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6152094A (en) * 1984-08-16 1986-03-14 クオンテル リミテツド Video signal editing device
US5231504A (en) * 1991-12-30 1993-07-27 Xerox Corporation Method for improved color reproduction using linear mixing calculations based on positional relationships between an original color and an achromatic region in a linear mixing space
JP2006295686A (en) * 2005-04-13 2006-10-26 Canon Inc Image processing method

Also Published As

Publication number Publication date
JPH0527312B2 (en) 1993-04-20

Similar Documents

Publication Publication Date Title
EP0074824B1 (en) Chromakey apparatus
US5313275A (en) Chroma processor including a look-up table or memory
EP1188147B1 (en) Video-apparatus with histogram modification means
EP0172754B1 (en) Color correction circuit
US5313304A (en) Chroma keyer with fringe control offset
JPH0212435B2 (en)
US4523221A (en) TV Receiver circuitry for performing chroma gain, auto-flesh control and the matrixing of I and Q signals to (R-Y), (B-Y) and (G-Y) signals
US7034896B2 (en) Gradation correction apparatus
US4951127A (en) Digital color-signal-processing circuit that provides independent processing of hue and saturation components in a color television
JPS59140784A (en) Chroma-key device
US4987481A (en) Video noise reduction system
JPH10145808A (en) Method and device for generating synthetic video signal
EP1526740A1 (en) Method and apparatus for temporally recursive chrominance signal noise reduction
JPH0239153B2 (en)
JPH035118B2 (en)
US6788342B1 (en) Color video camera for generating a luminance signal with unattenuated harmonics
JPH0347631B2 (en)
JP2503614B2 (en) Video signal contour correction device
JPS63292776A (en) Contour correcting device
JPH0634516B2 (en) Chromaki device
JPH0462239B2 (en)
JP2001346222A (en) Video signal processor
GB2204208A (en) Image signal highlighting
JP2796626B2 (en) Level control circuit
JPS6266791A (en) Chroma-key unit