JP4866065B2 - Chroma key device - Google Patents

Chroma key device Download PDF

Info

Publication number
JP4866065B2
JP4866065B2 JP2005332732A JP2005332732A JP4866065B2 JP 4866065 B2 JP4866065 B2 JP 4866065B2 JP 2005332732 A JP2005332732 A JP 2005332732A JP 2005332732 A JP2005332732 A JP 2005332732A JP 4866065 B2 JP4866065 B2 JP 4866065B2
Authority
JP
Japan
Prior art keywords
value
key value
key
pixel
image
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.)
Active
Application number
JP2005332732A
Other languages
Japanese (ja)
Other versions
JP2007142726A (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.)
Japan Broadcasting Corp
Original Assignee
Japan Broadcasting 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 Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP2005332732A priority Critical patent/JP4866065B2/en
Publication of JP2007142726A publication Critical patent/JP2007142726A/en
Application granted granted Critical
Publication of JP4866065B2 publication Critical patent/JP4866065B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

Description

本発明は、クロマキー装置に係り、特に、背景が複雑な色を有する場合にも高速かつ正確にキー信号を生成することができるだけでなく、容易にキー値を変更できるクロマキー装置に関する。   The present invention relates to a chroma key device, and more particularly to a chroma key device that can easily generate a key signal at high speed and can easily change a key value even when the background has a complex color.

クロマキー装置は、背景画像と合成するための合成対象画像を青色あるいは緑色といった特定の背景色を背景として撮像した前景画像から切り出すためのキー信号を出力する装置である。   The chroma key device is a device that outputs a key signal for cutting out a synthesis target image to be synthesized with a background image from a foreground image captured using a specific background color such as blue or green.

従来から使用されているクロマキー装置は、前景画像の一部を削除領域に指定し、削除領域に含まれる画素の画素値が画素値の各成分(例えば、RGB成分)ごとに予め定められた閾値内(例えば、上限値および下限値)に含まれると判定された場合は、当該画素は削除領域に含まれるとし、閾値外にあると判定された場合は、当該画素は合成対象画像であるとするものが主流である。   A conventionally used chroma key device designates a part of a foreground image as a deletion area, and a pixel value of a pixel included in the deletion area is a predetermined threshold value for each component (for example, RGB component) of the pixel value. If it is determined that the pixel is included in the inner area (for example, the upper limit value and the lower limit value), the pixel is included in the deletion region. What you do is mainstream.

しかし、前景画像の削除領域の色合いは必ずしも一様ではなく照明の具合により色合いが相違するため、削除領域を拡張すると閾値内に含まれる範囲も大きくなるので、合成対象画像も削除されてしまうおそれが生じる。   However, the hue of the foreground image deletion area is not necessarily uniform, and the hue varies depending on the lighting condition. Therefore, if the deletion area is expanded, the range included in the threshold value is increased, and thus the compositing target image may be deleted. Occurs.

そこで、原色成分ごとに閾値を設定するのではなく、色空間内に多面体を設定し、各画素の画素値と当該多面体との距離の関数として多値のキー信号を生成するソフトクロマキー装置も既に提案されている(例えば、特許文献1参照)。   Therefore, instead of setting a threshold value for each primary color component, a soft chroma key device that sets a polyhedron in the color space and generates a multi-value key signal as a function of the pixel value of each pixel and the distance from the polyhedron has already been established. It has been proposed (see, for example, Patent Document 1).

また、キー信号生成装置(Keyer)のキー信号生成方法の詳細が不明な場合にも、キー信号生成装置に予め合成対象画像と削除領域の区別が判明している模擬前景画像を入力し、キー信号生成装置が生成した閾値を記憶するルックアップテーブルを備えるクロマキー装置も提案されている(例えば、特許文献2参照)。
特開平6−225329号公報([0035],[図7]) 特開2002−374540号公報([0008],[図1])
Further, even when the details of the key signal generation method of the key signal generation device (Keyer) are unknown, a simulated foreground image in which the distinction between the synthesis target image and the deletion area is previously known is input to the key signal generation device, and the key There has also been proposed a chroma key device including a look-up table that stores threshold values generated by a signal generation device (see, for example, Patent Document 2).
JP-A-6-225329 ([0035], [FIG. 7]) JP 2002-374540 A ([0008], [FIG. 1])

しかしながら、特許文献1に開示された従来のクロマキー装置には複雑な色の領域を削除領域に設定することが困難であるという課題が、特許文献2に開示された従来のクロマキー装置にはいったん記憶したキー値を変更することが困難であるという課題があった。   However, the conventional chroma key device disclosed in Patent Document 1 has a problem that it is difficult to set a complicated color region as a deletion region in the conventional chroma key device disclosed in Patent Document 2. There is a problem that it is difficult to change the key value.

即ち、特許文献1に開示された従来のクロマキー装置にあっては、赤と青等色空間内の距離が大きい複数の色を背景に指定した場合には、閾値内領域が大きくなりすぎ、合成対象画像までも削除されてしまうおそれを回避できない。   In other words, in the conventional chroma key device disclosed in Patent Document 1, when a plurality of colors having a large distance in the color space such as red and blue are designated as the background, the in-threshold region becomes too large, and the synthesis is performed. The possibility that even the target image is deleted cannot be avoided.

また、特許文献2に開示された従来のクロマキー装置にあっては、キー信号生成装置が出力したキー値をルックアップテーブルに記憶するものであるため、削除領域の色合いに応じて閾値を適切に修正することは困難となる。   Further, in the conventional chroma key device disclosed in Patent Document 2, the key value output by the key signal generation device is stored in the lookup table, so that the threshold value is appropriately set according to the hue of the deletion area. It becomes difficult to correct.

例えば、前景画像に雑音が含まれているときに合成対象画像から雑音を除去するためには、閾値を緩和して合成対象画像に含まれる雑音を除去した後閾値を元に戻して合成対象画像の雑音除去跡を埋め戻すことが必要となるが、特許文献2に開示された従来のクロマキー装置にあってはキー値を変更することは容易ではない。   For example, in order to remove noise from the synthesis target image when noise is included in the foreground image, the threshold is relaxed to remove noise contained in the synthesis target image, and then the threshold is restored to the original synthesis target image. However, in the conventional chroma key device disclosed in Patent Document 2, it is not easy to change the key value.

本発明は、上記の従来の課題を解決するためになされたものであって、背景が複雑な色を有する場合にも適切なキー信号を生成することが可能であるだけでなく、高速処理が可能なクロマキー装置を提供することを目的とする。   The present invention has been made in order to solve the above-described conventional problems, and not only can generate an appropriate key signal even when the background has a complex color, but also can perform high-speed processing. An object is to provide a possible chroma key device.

本発明のクロマキー装置は、前景画像を合成対象画像と削除領域とに分離するキー値を前記前景画像の画素の画素値を引数として記憶するキー値探索表を作成するキー値探索表作成手段と、前記前景画像の画素の画素値を引数として前記キー値探索表を探索し、当該画素に対応するキー値を決定するキー値決定手段とを含み、前記キー値探索表作成手段が、前記前景画像に少なくとも1つの画像処理対象候補領域を設定する候補領域設定手段と、前記画像処理対象候補領域のそれぞれに含まれる画素の画素値に予め定められた少なくとも1つのキー値を定義するキー値定義手段と、前記画素値を引数とするキー値探索表に前記キー値を記憶するキー値記憶手段とを含み、前記キー値定義手段が、前記画像処理対象候補領域に含まれる画素の画素値により定義される色空間内の距離に応じて前記キー値を定義するものである構成を有している。 The chroma key device according to the present invention includes a key value search table creating means for creating a key value search table for storing a key value for separating a foreground image into a compositing target image and a deletion area, using a pixel value of a pixel of the foreground image as an argument. the pixel values of the pixels of the foreground image and searching for the key value lookup table as an argument, looking contains the key value determining means for determining a key value corresponding to the pixel, said key value lookup table creation means, wherein Candidate area setting means for setting at least one image processing target candidate area in the foreground image, and a key value defining at least one key value predetermined for the pixel value of the pixel included in each of the image processing target candidate areas Definition means; and key value storage means for storing the key value in a key value search table using the pixel value as an argument. The key value definition means includes an image of a pixel included in the candidate area for image processing. Has a configuration is to define the key value according to a distance in a color space defined by the value.

この構成により、背景が複雑な色を有する場合にも適切なキー信号を生成することができるだけでなく、高速処理ができることとなる。   With this configuration, it is possible not only to generate an appropriate key signal even when the background has a complex color, but also to perform high-speed processing.

また、この構成により、キー値を容易に定義できることとなる。 Further, with this configuration, the key value can be easily defined.

本発明のクロマキー装置は、前記キー値定義手段が、前記画像処理対象候補領域に含まれる画素の画素値の各成分の最小値および最大値により定義される色空間内の多様体面と前記画素値の間の距離に応じて前記キー値を定義するものである構成を有している。   In the chroma key device of the present invention, the key value defining means includes the manifold surface in the color space defined by the minimum value and the maximum value of each component of the pixel value of the pixel included in the image processing target candidate region, and the pixel value. The key value is defined according to the distance between the two.

この構成により、画像処理対象候補領域が複雑な色合いを有する場合にも容易にキー値を定義できることとなる。   With this configuration, the key value can be easily defined even when the image processing target candidate region has a complex hue.

本発明のクロマキー装置は、前記キー値定義手段が、前記画像処理対象候補領域に含まれる画素の画素値の各成分の最小値および最大値により定義される色空間内の多様体に含まれる画素値のマハラノビス距離に応じて前記キー値を定義するものである構成を有している。   In the chroma key device according to the present invention, the key value defining means includes a pixel included in a manifold in a color space defined by a minimum value and a maximum value of each component of a pixel value of a pixel included in the image processing target candidate region. The key value is defined according to the Mahalanobis distance of the value.

この構成により、削除領域が複雑な色合いを有する場合にも高精度にキー値を定義できることとなる。   With this configuration, it is possible to define the key value with high accuracy even when the deletion area has a complex color.

本発明のクロマキー装置は、前記キー値定義手段が、前記キー値探索表に記憶されている前記キー値を修正するキー値修正手段を含む構成を有している。   In the chroma key device according to the present invention, the key value defining means includes key value correcting means for correcting the key value stored in the key value search table.

この構成により、画像処理の結果に応じてキー値を変更できることとなる。   With this configuration, the key value can be changed according to the result of the image processing.

本発明のクロマキー装置は、前記キー値修正手段が、前記画像処理対象候補領域に含まれる画素の画素値の各成分の最小値および最大値により定義される色空間内の多様体をモロフォロジ演算により処理したモロフォロジ演算処理後多様体に基づきキー値を修正するものである構成を有している。   In the chroma key device according to the present invention, the key value correcting means performs a morphological operation on a manifold in a color space defined by the minimum value and the maximum value of each component of the pixel value of the pixel included in the image processing target candidate region. The key value is corrected based on the manifold after the processed morphology processing.

この構成により、合成対象画像のヌケを適切に調整できることとなる。   With this configuration, it is possible to appropriately adjust the omission of the synthesis target image.

本発明は、前景画像を合成対象画像と削除領域とに分離するキー値を前記前景画像の画素値を引数として記憶するキー値探索表を設けることにより、背景が複雑な色を有する場合にも高速にキー信号を生成することが可能という効果を有するクロマキー装置を提供できるものである。   The present invention provides a key value search table that stores key values for separating a foreground image into a synthesis target image and a deletion area, using the pixel values of the foreground image as an argument, so that even when the background has a complex color. It is possible to provide a chroma key device having an effect that a key signal can be generated at high speed.

以下、本発明に係るクロマキー装置の実施形態について図面を用いて説明する。   Embodiments of a chroma key device according to the present invention will be described below with reference to the drawings.

なお、本明細書において、画素値とは画像を構成する画素の有する値を意味するものとする。即ち、モノクローム画像にあっては画素の輝度が画素値(スカラ値)であり、カラー画面にあっては画素の色成分の輝度を成分とするベクトル値を画素値とすることができる。   In the present specification, the pixel value means a value that a pixel constituting an image has. That is, the pixel value is a pixel value (scalar value) in a monochrome image, and the vector value having the luminance of the color component of the pixel as a pixel value can be used as a pixel value in a color screen.

例えば、画素の色を3原色成分に分解したR、GおよびBの輝度を成分とするベクトルを画素値としてもよいし、輝度成分、2つの色差成分からなるベクトルを画素値としてもよい。   For example, a pixel value may be a vector whose components are R, G, and B luminances obtained by decomposing the pixel color into three primary color components, or a vector composed of a luminance component and two color difference components.

本発明に係るクロマキー装置の実施形態のブロック図を図1に示す。   A block diagram of an embodiment of a chroma key device according to the present invention is shown in FIG.

即ち、本発明に係るクロマキー装置1は、前景画像FIを合成対象画像OIと削除領域RAとに分離するキー値Kを前景画像FIの画素PXの画素値Cを引数として記憶するキー値探索表LUTを作成するキー値探索表作成手段10と、前景画像FIの画素PXの画素値Cを引数としてキー値探索表LUTを探索し、当該画素PXに対応するキー値Kを決定するキー値決定手段14とを含む。   That is, the chroma key device 1 according to the present invention stores a key value K that separates the foreground image FI into the synthesis target image OI and the deletion area RA, and stores the pixel value C of the pixel PX of the foreground image FI as an argument. A key value search table creating means 10 for creating an LUT, and a key value determination for searching a key value search table LUT with the pixel value C of the pixel PX of the foreground image FI as an argument and determining a key value K corresponding to the pixel PX Means 14.

キー値探索表作成手段10は、前景画像FIに少なくとも1つの画像処理対象候補領域PAを設定する候補領域設定手段11と、画像処理対象候補領域PAのそれぞれに含まれる画素PXの画素値Cに予め定められた少なくとも1つのキー値Kを定義するキー値定義手段12と、画素値Cを引数とするキー値探索表LUTにキー値Kを記憶するキー値記憶手段13とを含む。   The key value search table creating means 10 sets the pixel value C of the pixel PX included in each of the candidate area setting means 11 for setting at least one image processing target candidate area PA in the foreground image FI and each of the image processing target candidate areas PA. Key value defining means 12 for defining at least one predetermined key value K and key value storage means 13 for storing the key value K in a key value search table LUT having the pixel value C as an argument are included.

なお、キー値定義手段12は、画像処理対象候補領域PAに含まれる画素PXの画素値Cの各成分(c1,c2,c3・・・cM)の最小値および最大値により定義される色空間内の多様体面と画素値の間の距離に応じてキー値Kを定義するものであってもよい。 The key value defining means 12 is defined by the minimum value and the maximum value of each component (c 1 , c 2 , c 3 ... C M ) of the pixel value C of the pixel PX included in the image processing target candidate area PA. The key value K may be defined according to the distance between the manifold surface in the color space to be processed and the pixel value.

また、キー値定義手段12は、画像処理対象候補領域PAに含まれる画素PXの画素値Cの各成分(c1,c2,c3・・・cM)の最小値Cminmおよび最大値Cmaxmにより定義される色空間内の多様体に含まれる画素値のマハラノビス距離に応じてキー値Kを定義するものであってもよい。 The key value defining means 12 also includes a minimum value C minm and a maximum value of each component (c 1 , c 2 , c 3 ... C M ) of the pixel value C of the pixel PX included in the image processing target candidate area PA. The key value K may be defined according to the Mahalanobis distance of the pixel value included in the manifold in the color space defined by C maxm .

図2は、本発明に係るクロマキー装置1のハードウエア構成を示すブロック図であって、本発明に係るクロマキー装置1はコンピュータ20と周辺機器26とを含む。   FIG. 2 is a block diagram showing a hardware configuration of the chroma key device 1 according to the present invention. The chroma key device 1 according to the present invention includes a computer 20 and a peripheral device 26.

コンピュータ20は、プログラムに基づいて処理を実行するCPU21と、プログラムおよび処理結果を記憶するメモリ22と、周辺機器26が接続される周辺機器インターフェイス(I/F)23と、前景画像FIを取り込み、キー信号Kを出力する画像I/F24と、CPU21、メモリ22、周辺機器I/F23および画像I/F24を相互に結合するバス25により構成される。   The computer 20 captures a CPU 21 that executes processing based on a program, a memory 22 that stores the program and processing results, a peripheral device interface (I / F) 23 to which a peripheral device 26 is connected, and a foreground image FI. The image I / F 24 that outputs the key signal K and the bus 25 that couples the CPU 21, the memory 22, the peripheral device I / F 23, and the image I / F 24 to each other.

周辺機器26は、処理結果を表示する表示装置27と、コンピュータ20に操作指令またはデータを付与するキーボード28と、表示装置27の表示を特定するポインティングデバイス29とを含む。   The peripheral device 26 includes a display device 27 that displays a processing result, a keyboard 28 that gives an operation command or data to the computer 20, and a pointing device 29 that specifies the display of the display device 27.

画像I/F24には、前景画像FIを取得する前景画像取得装置31と、画像合成装置33とが接続される。   Foreground image acquisition device 31 for acquiring foreground image FI and image composition device 33 are connected to image I / F 24.

前景画像取得装置31は、前景画像FIを取得し、前景画像FIをクロマキー装置1および画像合成装置33に送出するように構成されている。   The foreground image acquisition device 31 is configured to acquire the foreground image FI and send the foreground image FI to the chroma key device 1 and the image composition device 33.

画像合成装置33は、クロマキー装置1が出力するキー信号Kに基づいて削除領域RAを削除し前景画像FIから合成対象画像OIを切り出し、合成対象画像OIを背景画像取得装置32によって取得された背景BIと合成して合成画面CIを生成するように構成されている。   The image composition device 33 deletes the deletion area RA based on the key signal K output from the chroma key device 1, cuts out the composition target image OI from the foreground image FI, and obtains the composition target image OI by the background image acquisition device 32. The combined screen CI is generated by combining with the BI.

即ち、本発明に係るクロマキー装置1は、コンピュータ20にクロマキープログラムをインストールすることにより構成されることとなる。   That is, the chroma key device 1 according to the present invention is configured by installing a chroma key program in the computer 20.

以下、コンピュータ20にインストールされるクロマキープログラムのフローチャートを参照しつつ、本発明に係るクロマキー装置1の動作を説明する。   Hereinafter, the operation of the chroma key device 1 according to the present invention will be described with reference to a flowchart of a chroma key program installed in the computer 20.

図3は、クロマキープログラムのフローチャートであって、まずキー値探索表作成ルーチンを実行する(ステップS5)。なお、キー値探索表作成ルーチンの詳細は後述する。   FIG. 3 is a flowchart of the chroma key program. First, a key value search table creation routine is executed (step S5). The details of the key value search table creation routine will be described later.

キー値探索表作成ルーチンが終了したときは、キー値決定ルーチンを実行して(ステップS6)このプログラムを終了する。なお、キー値決定ルーチンの詳細も後述する。   When the key value search table creation routine ends, a key value determination routine is executed (step S6), and this program ends. Details of the key value determination routine will also be described later.

図4は、クロマキープログラムのステップS5で実行されるキー値探索表作成ルーチンの詳細フローチャートであって、まず画像処理対象候補領域設定ルーチンを実行して前景画像FIの中に画像処理対象候補領域ACを設定する(ステップS51)。   FIG. 4 is a detailed flowchart of the key value search table creation routine executed in step S5 of the chroma key program. First, the image processing target candidate area setting routine is executed to include the image processing target candidate area AC in the foreground image FI. Is set (step S51).

画像処理対象候補領域ACの形状は特に規定されず、前景画像FI内の任意の閉曲線で囲まれる領域を画像処理対象候補領域ACとすることも、前景画像FI内の1点を画像処理対象候補領域ACとすることもできる。また、画像処理対象候補領域ACは単連結でなくてもよく、穴があいていてもよい。   The shape of the image processing target candidate area AC is not particularly defined, and an area surrounded by an arbitrary closed curve in the foreground image FI can be set as the image processing target candidate area AC, or one point in the foreground image FI can be set as an image processing target candidate. The region AC can also be used. Further, the image processing target candidate area AC may not be simply connected but may have a hole.

一般的には、マウス等のポインティングデバイスをドラッグして囲まれる領域を画像処理対象候補領域ACとして設定することができる。   In general, an area surrounded by dragging a pointing device such as a mouse can be set as the image processing target candidate area AC.

具体的には、前景画像FIをマウス29のドラッグにより囲んだ領域を画像処理対象候補領域ACと定義してもよく、マウスで指定した2点を対角点とする長方形を画像処理対象候補領域ACと定義してもよい。   Specifically, an area in which the foreground image FI is surrounded by dragging the mouse 29 may be defined as the image processing target candidate area AC, and a rectangle having two diagonal points designated by the mouse is defined as the image processing target candidate area. It may be defined as AC.

次に、画像処理対象候補領域ACに含まれる画素PXの画素値Cに対応するキー値Kを定義する(ステップS52)。   Next, a key value K corresponding to the pixel value C of the pixel PX included in the image processing target candidate area AC is defined (step S52).

キー値Kの定義方法としては以下に示す方法のいずれかを適用することができる。   As a method for defining the key value K, any of the following methods can be applied.

なお、以下においては、画像処理対象候補領域として画像削除候補領域RACおよび画像合成候補領域OACを設定するものとする。   In the following, it is assumed that the image deletion candidate area RAC and the image composition candidate area OAC are set as the image processing target candidate areas.

(キー値定義方法1)
キー値Kは、キーボード28から入力するようにしてもよい。
(Key value definition method 1)
The key value K may be input from the keyboard 28.

例えば、画像削除候補領域RACに対するキー値Kとして削除キー値Kb(例えば“0”)を、画像合成候補領域OACに対するキー値として合成対象画像キー値Kf(例えば“1”)を入力してキー値を定義してもよい。 For example, the deletion key value K b (for example, “0”) is input as the key value K for the image deletion candidate area RAC, and the composition target image key value K f (for example, “1”) is input as the key value for the image combination candidate area OAC. Key values may be defined.

(キー値定義方法2)
画像削除候補領域RACに含まれるすべての画素PXの画素値Cに対して1つの削除キー値Kb(例えば“0”)を、画像合成候補領域OACに含まれるすべての画素の画素値に合成キー値Kf(例えば“1”)を定義してもよい。
(Key value definition method 2)
One deletion key value K b (for example, “0”) is combined with pixel values of all the pixels included in the image combination candidate area OAC for the pixel values C of all the pixels PX included in the image deletion candidate area RAC. A key value K f (eg, “1”) may be defined.

例えば、画像削除候補領域RACに3つの画素PX、PX2、PX3が含まれ、RGB成分の輝度で定義されるそれぞれの画素値が(0,0,0)、(0,0,1)、(0,0,4)である場合には、アドレス(0,0,0)、(0,0,1)、(0,0,4)に削除キー値としてKbが定義される。 For example, the image deletion candidate area RAC includes three pixels PX 1 , PX 2 , and PX 3 , and the pixel values defined by the luminance of the RGB components are (0, 0, 0), (0, 0, 1). ), (0,0,4), K b is defined as a deletion key value at addresses (0,0,0), (0,0,1), (0,0,4). .

また、画像合成候補領域OACに3つの画素PX4、PX5、PX6が含まれ、RGB成分の輝度で定義されるそれぞれの画素値が(1,0,0)、(1,1,0)、(3,0,0)である場合には、アドレス(1,0,0)、(1,1,0)、(3,0,0)に合成キー値としてKfが定義される。 The image composition candidate area OAC includes three pixels PX 4 , PX 5 , and PX 6 , and the pixel values defined by the luminance of the RGB components are (1, 0, 0) and (1, 1, 0). ), (3, 0, 0), K f is defined as a composite key value at addresses (1, 0, 0), (1, 1, 0), (3, 0, 0). .

即ち、前景画像FIに含まれる画素PXをPX(i,j)と、PX(i,j)の画素値をC(i,j)としたとき、画素値C(i,j)に対するアドレスはA(C(i,j))(たとえば、(0,0,0))と、アドレスA(C(i,j))(たとえば、(0,0,0))を引数とするキー値KはL[A(C(i,j))]と記すことができる。   That is, when the pixel PX included in the foreground image FI is PX (i, j) and the pixel value of PX (i, j) is C (i, j), the address for the pixel value C (i, j) is A key value K with arguments A (C (i, j)) (for example, (0,0,0)) and address A (C (i, j)) (for example, (0,0,0)) Can be written as L [A (C (i, j))].

従って、(キー値定義方法2)によれば、キー値は[数1]により算出されることとなる。   Therefore, according to (Key Value Definition Method 2), the key value is calculated by [Equation 1].

Figure 0004866065
Figure 0004866065

即ち、キー値定義方法2によれば、直感的に高精度で削除色を設定することが可能となる。   That is, according to the key value definition method 2, it is possible to intuitively set the deletion color with high accuracy.

(キー値定義方法3)
画像削除候補領域RACに含まれる画素PXの画素値Cの各成分の最大値および最小値で囲まれる色空間の領域内部に対して削除キー値Kbを、画像合成候補領域OACに含まれる画素PXの画素値Cの各成分の最大値および最小値で囲まれる色空間の領域内部に対して合成キー値Kfを設定してもよい。
(Key value definition method 3)
Pixels included in the image combination candidate region OAC are set to the deletion key value K b for the inside of the color space region surrounded by the maximum value and minimum value of each component of the pixel value C of the pixel PX included in the image deletion candidate region RAC. the region inside the color space surrounded by the maximum and minimum values of each component of the pixel value C of the PX may set the synthetic key value K f.

即ち、画像削除候補領域RACに含まれる画素PX(i,j)の画素値C(i,j)=(c(i,j),c2(i,j)・・・cM(i,j))の画素値成分ごとの最大値cmaxmおよび最小値cminm(m=1〜M)は[数2]で定義される。 That is, the pixel value C (i, j) = (c 1 (i, j), c 2 (i, j)... C M (i) of the pixel PX (i, j) included in the image deletion candidate area RAC. , J)), the maximum value c maxm and the minimum value c minm (m = 1 to M) for each pixel value component are defined by [Equation 2].

Figure 0004866065
Figure 0004866065

最大値cmaxmおよび最小値cminmで囲まれる領域としては、最大値cmaxmおよび最小値ckminmで定義される多様体を用いることが適当である。 The region enclosed by the maximum value c maxm and the minimum value c minm, it is suitable to use a manifold that is defined by the maximum value c maxm and minimum value c kminm.

多様体としては、各成分の最大値および最小値で定義される直方体とすることが最も簡便である。   As the manifold, it is most convenient to use a rectangular parallelepiped defined by the maximum value and the minimum value of each component.

同様に、画像合成候補領域OACに含まれる画素PXの画素値Cの各成分の最大値および最小値で囲まれる色空間の領域内部に対して合成キー値Kfを設定することができる。 Similarly, it is possible to set the synthetic key value K f for the area inside the color space surrounded by the maximum and minimum values of each component of the pixel value C of the pixel PX included in the image compositing candidate region OAC.

よって、(キー値定義方法3)によれば[数3]によりキー値Kが算出されることとなる。   Therefore, according to (Key Value Definition Method 3), the key value K is calculated by [Equation 3].

Figure 0004866065
Figure 0004866065

なお、多様体としては、直方体だけでなく、楕円体等を使用することもできる。   As the manifold, not only a rectangular parallelepiped but also an ellipsoid can be used.

(キー値定義方法4)
キー値定義方法3は、画像削除候補領域RACに含まれる画素の画素値に対してKbを、画像合成候補領域OACに含まれる画素の画素値に対してKfを割り付けるハードクロマキーであるが、半透明の合成効果を得るためにKfとKbの間の値を割り付けるソフトクロマキーに対してもキー値定義方法3を適用することもできる。
(Key value definition method 4)
Key value definition method 3, a K b for the pixel values of pixels included in the image deleting candidate region RAC, is a hard chromakey allocating K f to the pixel values of the pixels included in the image compositing candidate region OAC The key value definition method 3 can also be applied to a soft chroma key that assigns a value between K f and K b in order to obtain a translucent composite effect.

即ち、[数4]で定義される画像削除候補領域多様体の表面から内側に第1の距離di以上離れた内部境界IBの内側に対しては削除キー値Kbを割り当て、[数4]で定義される画像削除候補領域多様体の表面から外側に第2の距離do以上離れた外部境界EBの外側に対しては削除キー値Kbより大きい合成キー値Kfを割り当て、内部境界IBの外側かつ外部境界EBの内側の領域に対しては合成キー値Kf以下削除キー値Kb以上間の中間キー値Km(離散値であっても、連続値であってもよい)を割り付ける。 That is, a deletion key value K b is assigned to the inside of the internal boundary IB that is separated from the surface of the image deletion candidate region manifold defined by [Equation 4] by a first distance d i or more inside, and [Equation 4 ] Assign the delete key value K b greater than synthetic key value K f from the surface of the image deletion candidate region manifold outwardly defined for the outside of the second distance d o more distant outer boundaries EB, the internal For an area outside the boundary IB and inside the external boundary EB, an intermediate key value K m between the composite key value K f or less and the deletion key value K b or more (may be a discrete value or a continuous value) ).

Figure 0004866065
Figure 0004866065

図5は、色空間が2次元である場合のソフトクロマキー値のグラフであって、(a)の実線の長方形は[数5]で表される画像削除候補領域長方形、一点鎖線の長方形は境界から第1の距離di内側の長方形、二点鎖線の長方形は境界から第2の距離do外側の長方形を表す。 FIG. 5 is a graph of soft chroma key values when the color space is two-dimensional. The solid line rectangle in (a) is the image deletion candidate area rectangle represented by [Equation 5], and the alternate long and short dash line rectangle is the boundary. A rectangle inside the first distance d i and a rectangle indicated by a two-dot chain line represents a rectangle outside the second distance d o from the boundary.

Figure 0004866065
Figure 0004866065

(b)はキー値の割り付けの一例を示し、画像削除候補領域長方形の境界から第2の距離do外側の画素に対してはキー値Kfが割り付けられ、画像削除候補領域長方形の境界から第1の距離di内側の画素に対してはキー値Kbが割り付けられ、一点鎖線の長方形の外側で二点鎖線の長方形の内側の画素に対してはKfとKbの間の値で連続的に変化するキー値が割り当てられる。
(キー値定義方法5)
画像処理対象候補領域AC(画像削除候補領域RACまたは画像合成候補領域OAC)に含まれる画素の画素値の平均値ベクトルμに基づき、キー値Kを定義してもよい。
(B) shows an example of assignment of key values, from the boundary of the image deletion candidate region rectangle for the second distance d o outside the pixel assigned key value K f, from the boundary of the image deletion candidate region rectangular A key value K b is assigned to the pixels inside the first distance d i , and a value between K f and K b for the pixels outside the one-dot chain line rectangle and inside the two-dot chain line rectangle. A continuously changing key value is assigned.
(Key value definition method 5)
The key value K may be defined based on the average value vector μ of the pixel values included in the image processing target candidate area AC (the image deletion candidate area RAC or the image composition candidate area OAC).

画像処理対象候補領域ACに含まれる画素の画素値の平均値ベクトルμは[数6]により算出される。   An average value vector μ of pixel values of pixels included in the image processing target candidate area AC is calculated by [Equation 6].

Figure 0004866065
Figure 0004866065

そして、画素値平均値μから予め定められた半径rの球体中にある画素値に対応するキー値探索表LUTのアドレスにキー値Kを書き込むようにしてもよい。   Then, the key value K may be written to the address of the key value search table LUT corresponding to the pixel value in the sphere having a predetermined radius r from the pixel value average value μ.

この場合、キー値は[数7]に基づいて決定される。   In this case, the key value is determined based on [Equation 7].

Figure 0004866065
Figure 0004866065

なお、半径rは、ユークリッド距離を含む任意のノルムで定義することができる。   The radius r can be defined by an arbitrary norm including the Euclidean distance.

即ち、キー値定義方法5によれば、前景画像FIに雑音が含まれていても、雑音に起因する想定外の色が削除領域に含まれることを回避することができる。さらに、半径rを大きくすれば、削除領域を複数設定しなくてもよく効率的に削除領域を設定することが可能となる。
(キー値定義方法6)
画像処理対象候補領域ACに含まれる画素値の平均値からのマハラノビス距離Dに基づいてキー値を定義することもできる。
That is, according to the key value definition method 5, even if noise is included in the foreground image FI, it is possible to avoid an unexpected color caused by the noise from being included in the deletion region. Further, if the radius r is increased, it is possible to set the deletion area efficiently without having to set a plurality of deletion areas.
(Key value definition method 6)
The key value can also be defined based on the Mahalanobis distance D from the average value of the pixel values included in the image processing target candidate area AC.

画像処理対象候補領域ACに含まれる画素の画素値と、画像処理対象候補領域ACに含まれる画素の画素値の平均値μとの間のマハラノビス距離Dは[数8]により定義される。   The Mahalanobis distance D between the pixel value of the pixels included in the image processing target candidate area AC and the average value μ of the pixel values of the pixels included in the image processing target candidate area AC is defined by [Equation 8].

Figure 0004866065
Figure 0004866065

そして、平均値μとの間のマハラノビス距離Dが所定の閾値r以下である画素値を有する画素に対してキー値Kを割り付ける。   Then, a key value K is assigned to a pixel having a pixel value having a Mahalanobis distance D between the average value μ and a predetermined threshold value r or less.

即ち、キー値は[数9]に基づいて決定される。   That is, the key value is determined based on [Equation 9].

Figure 0004866065
Figure 0004866065

即ち、キー値定義方法6によれば、色の変化を考慮して高精度に削除領域を設定することが可能となる。
(キー値定義方法7)
修正されたマハラノビス距離に基づいてキー値を定義してもよい。
That is, according to the key value definition method 6, it is possible to set the deletion area with high accuracy in consideration of the color change.
(Key value definition method 7)
Key values may be defined based on the modified Mahalanobis distance.

即ち、キー値Kを[数10]に基づいて決定してもよい。   That is, the key value K may be determined based on [Equation 10].

Figure 0004866065
Figure 0004866065

即ち、キー値定義方法7によれば、大き目の色の変化が許容され、効率的な削除領域の設定が可能となる。
(キー値定義方法8)
画像処理対象候補領域ACに含まれる画素の画素値の平均値からのマハラノビス距離Dに基づいてキー値を定義する方法をソフトクロマキーに適用することもできる。
That is, according to the key value definition method 7, a large color change is allowed, and an efficient deletion area can be set.
(Key value definition method 8)
A method of defining the key value based on the Mahalanobis distance D from the average value of the pixel values included in the image processing target candidate area AC may be applied to the soft chroma key.

即ち、[数11]によりキー値を決定することも可能である。   In other words, the key value can be determined by [Equation 11].

Figure 0004866065
Figure 0004866065

なお、関数K(d)としては、例えば、[数12]に示す折れ線関数を適用することができる。   As the function K (d), for example, the polygonal line function shown in [Equation 12] can be applied.

Figure 0004866065
Figure 0004866065

即ち、キー値定義方法8によれば、マハラノビス距離に基づいて可変キー値を定義することができる。
(キー値定義方法9)
また、任意の画素値に対して外部(例えば、キーボード28)から直接キー値を入力するようにしてもよい。即ち、色空間内の任意の点に任意のキー値を定義してもよい。
That is, according to the key value definition method 8, the variable key value can be defined based on the Mahalanobis distance.
(Key value definition method 9)
Alternatively, the key value may be directly input from the outside (for example, the keyboard 28) for an arbitrary pixel value. That is, an arbitrary key value may be defined at an arbitrary point in the color space.

あるいは、任意の画素値に予め定められたキー値を設定するようにして、入力すべきデータ数を低減してもよい。   Alternatively, the number of data to be input may be reduced by setting a predetermined key value for an arbitrary pixel value.

また、画素値を入力する代わりに、色空間内のアドレスを直接入力するようにしてもよい。   Further, instead of inputting a pixel value, an address in the color space may be directly input.

従って、キー値定義方法9によれば、別のキー信号生成装置に記憶されているキー値を本発明に係るクロマキー装置のキー値探索表LUTに記憶することも可能となる。
(キー値定義方法10)
以上説明したキー値定義方法1から9において、既にキー値探索表LUTに記憶されていたキー値である旧キー値Kpを考慮するようにしてもよい。
Therefore, according to the key value defining method 9, the key value stored in another key signal generating device can be stored in the key value search table LUT of the chroma key device according to the present invention.
(Key value definition method 10)
Or in the key-value definition method 1 from 9 described already may be considered an old key value K p is a key value stored in the key value searching table LUT.

即ち、設定方法1から9により設定したキー値を暫定キー値Ktとすれば、新たなキー値Kを旧キー値Kpと暫定キー値Ktを独立変数とする関数Jにより[数13]に基づいて定義するようにしてもよい。 That is, if the key value set by the setting methods 1 to 9 is the temporary key value K t , the new key value K is expressed by the function J using the old key value K p and the temporary key value K t as independent variables [Equation 13 ] May be defined based on the above.

Figure 0004866065
Figure 0004866065

ここで、関数Jとしては、最大値を選択する関数、最小値を選択する関数、荷重平均値を算出する関数等を適用することができる。
(キー値定義方法11)
また、既にキー値探索表LUTに旧キー値Kpが記憶されている場合には、例えばキーボード28から入力されたモルフォロジコマンドに基づいて、モルフォロジ演算によりキー値を修正するようにしてもよい。
Here, as the function J, a function for selecting the maximum value, a function for selecting the minimum value, a function for calculating the load average value, or the like can be applied.
(Key value definition method 11)
Also, already when the old key value K p in the key value search table LUT is stored based on, for example, Morphological commands entered from the keyboard 28, it may be corrected key value by morphological operations.

モルフォロジ演算として膨張演算を適用する場合にはキー値は[数14]により定義される。   When the dilation operation is applied as the morphology operation, the key value is defined by [Equation 14].

Figure 0004866065
Figure 0004866065

ただし、EはStructural Elementであり、例えば[数15]により定義される閉領域を使用することができる。   However, E is a Structural Element, and for example, a closed region defined by [Equation 15] can be used.

Figure 0004866065
Figure 0004866065

図6は、2次元の色空間における膨張演算の過程を示すグラフであって、(a)は膨張演算前の多様体Lp(A(C))の内部にキー値“1”を割り付けた状態を示し、(b)は膨張演算後の多様体Lp(A(C+ΔC))の内部にキー値“1”を、外部にキー値“0”を割り付けた状態を示す。なお、[数13]においてΔc=Δc2=1としている。 FIG. 6 is a graph showing the process of expansion operation in a two-dimensional color space. FIG. 6A shows a key value “1” assigned to the interior of a manifold L p (A (C)) before expansion operation. (B) shows a state in which the key value “1” is assigned to the inside of the manifold L p (A (C + ΔC)) after expansion and the key value “0” is assigned to the outside. In [Equation 13], Δc 1 = Δc 2 = 1.

即ち、削除領域を膨張させることにより、合成画像における「ヌケの悪い状態」を解消することが可能となる。   That is, by expanding the deletion area, it is possible to eliminate the “bad state” in the composite image.

モルフォロジ演算として収縮演算を適用する場合にはキー値は[数16]により定義される。   When the contraction operation is applied as the morphology operation, the key value is defined by [Equation 16].

Figure 0004866065
Figure 0004866065

ただし、EはStructural Elementであり、例えば[数17]により定義される閉領域を使用することができる。   However, E is a Structural Element, and for example, a closed region defined by [Equation 17] can be used.

Figure 0004866065
Figure 0004866065

図7は、2次元の色空間における収縮演算の過程を示すグラフであって、(a)は膨張演算前の多様体Lp(A(C))の内部にキー値“1”を割り付けた状態を示し、(b)は収縮演算後の多様体Lp(A(C+ΔC))の内部にキー値“1”を割り付けた状態を示す。なお、[数17]においてΔc=Δc2=1としている。 FIG. 7 is a graph showing the process of contraction calculation in a two-dimensional color space, where (a) assigns the key value “1” to the interior of the manifold L p (A (C)) before the expansion calculation. (B) shows a state in which the key value “1” is assigned to the inside of the manifold L p (A (C + ΔC)) after the contraction calculation. In [Equation 17], Δc 1 = Δc 2 = 1.

即ち、削除領域を収縮させることにより、合成画像における「ヌケ過ぎの状態」を解消することが可能となる。   In other words, by shrinking the deletion area, it is possible to eliminate the “too much missing state” in the composite image.

モルフォロジ演算としては、膨張演算、収縮演算の外に、膨張演算の後に収縮演算を行うClose演算、収縮演算の後に膨張演算を行うOpen演算を適用することができる。   As the morphology operation, in addition to the expansion operation and the contraction operation, a Close operation that performs the contraction operation after the expansion operation and an Open operation that performs the expansion operation after the contraction operation can be applied.

Close演算またはOpen演算により、削除すべき色の登録漏れ、あるいは雑音に含まれる色の誤登録を回避することが可能となる。
(キー値定義方法12)
さらに、既にキー値探索表LUTに“1”および“0”の2値のキー値Kが記憶されている場合には、例えばキーボード28から入力されたフィルタリングコマンドに基づいて、フィルタリング処理によりキー値を修正することも可能である。
By the Close operation or the Open operation, it is possible to avoid omission of registration of a color to be deleted or erroneous registration of a color included in noise.
(Key value definition method 12)
Further, when binary key values K of “1” and “0” are already stored in the key value search table LUT, for example, based on a filtering command input from the keyboard 28, a key value is obtained by filtering processing. It is also possible to correct.

即ち、キー値探索表LUTからキー値が“1”である領域Fを抽出した後、領域Fを単連結領域F、F2・・・FNに分割する。そして、各単連結領域Fnの体積を算出し、体積が予め定められた閾値以下の単連結領域Fsmallを選択する。 That is, after extracting the area F having the key value “1” from the key value search table LUT, the area F is divided into single connected areas F 1 , F 2 ... F N. Then, to calculate the volume of each single connected region F n, volume selects the single connection region F small below a predetermined threshold.

最後に、単連結領域Fsmallに含まれる画素に対して、[数18]によりキー値“0”を割り付ける。 Finally, the key value “0” is assigned to the pixels included in the single connected area F small by [Equation 18].

Figure 0004866065
Figure 0004866065

即ち、キー値をフィルタリング処理することにより、誤登録された雑音に含まれる色のように、色空間内における微小な領域を取り除くことが可能となる。   That is, by filtering the key value, it is possible to remove a minute area in the color space, such as a color included in misregistered noise.

(キー値定義方法1)から(キー値定義方法12)の1つにより定義されたキー値を、画素値Cを引数としてキー値探索表LUTに記憶する(ステップS53)。   The key value defined by one of (key value defining method 1) to (key value defining method 12) is stored in the key value search table LUT with the pixel value C as an argument (step S53).

画素値C(i,j)は、M次元のベクトル値として一般化することができる。   The pixel value C (i, j) can be generalized as an M-dimensional vector value.

即ち、画素値C(i,j)は[数19]によって定義できる。   That is, the pixel value C (i, j) can be defined by [Equation 19].

Figure 0004866065
Figure 0004866065

そして、画素値C(i,j)に対応するアドレスAを決定する。ベクトル値を直接アドレスとすることも可能であるが、要素ckが“0”から“(Qk−1)”までの整数値をとる場合には、[数20]により画素値を1次元の整数に変換してもよい。 Then, an address A corresponding to the pixel value C (i, j) is determined. Although the vector value can be directly set as an address, when the element c k takes an integer value from “0” to “(Q k −1)”, the pixel value is one-dimensionally expressed by [Equation 20]. May be converted to an integer.

Figure 0004866065
Figure 0004866065

例えば、画素値CがRGB輝度の3成分(cR,cG,cB)で表され、それぞれが0〜255の256階調を有する場合には、3次元ベクトルの画素値を[数21]により1次元の整数に変換することができる。 For example, when the pixel value C is represented by three components (c R , c G , c B ) of RGB luminance and each has 256 gradations from 0 to 255, the pixel value of the three-dimensional vector is expressed as [Expression 21]. ] Can be converted into a one-dimensional integer.

Figure 0004866065
Figure 0004866065

[数21]によれば、キー値探索表LUTは約1700万番地を備える必要があることとなるが、輝度階調を間引くことによりメモリ容量を低減することが可能である。   According to [Equation 21], the key value search table LUT needs to have about 17 million addresses, but the memory capacity can be reduced by thinning the luminance gradation.

例えば、[数22]を適用することができる。   For example, [Equation 22] can be applied.

Figure 0004866065
Figure 0004866065

図8はクロマキープログラムのステップS6で実行されるキー値処理ルーチンのフローチャートであって、まず前景画像FIに含まれる1つの画素PX(i,j)の画素値C(i,j)を読み込み(ステップS61)、画素値C(i,j)からアドレスA(C)を算出する(ステップS62)。   FIG. 8 is a flowchart of the key value processing routine executed in step S6 of the chroma key program. First, the pixel value C (i, j) of one pixel PX (i, j) included in the foreground image FI is read ( In step S61, an address A (C) is calculated from the pixel value C (i, j) (step S62).

そして、キー値探索表LUTを使用してアドレスA(C)に対応するキー値Kを探索し(ステップS63)、画素PXのアドレス(i,j)およびキー値Kを出力する(ステップS64)。   Then, the key value K corresponding to the address A (C) is searched using the key value search table LUT (step S63), and the address (i, j) of the pixel PX and the key value K are output (step S64). .

そして、前景画像FIの全画素についてキー値が決定されたか否かを判定し(ステップS65)、全画素についてキー値が決定されるまでステップS61〜ステップS64までの処理を繰り返し、全画素についてキー値が決定されたときにこのルーチンを終了する。   Then, it is determined whether or not the key value has been determined for all the pixels of the foreground image FI (step S65), and the processing from step S61 to step S64 is repeated until the key value is determined for all the pixels, and the key is determined for all the pixels. The routine ends when the value is determined.

以上説明したように、本発明に係るクロマキー装置によれば、背景が複雑な色を有する場合にも適切なキー信号を生成することが可能であるだけでなく、高速処理が可能となる。   As described above, according to the chroma key device of the present invention, it is possible not only to generate an appropriate key signal even when the background has a complex color, but also to perform high-speed processing.

以上のように、本発明に係るクロマキー装置は、背景が複雑な色を有する場合にも適切なキー信号を高速に生成することが可能となるという効果を有し、画像合成装置等として有効である。   As described above, the chroma key device according to the present invention has an effect that an appropriate key signal can be generated at high speed even when the background has a complex color, and is effective as an image composition device or the like. is there.

本発明に係るクロマキー装置の実施形態のブロック図Block diagram of an embodiment of a chroma key device according to the present invention 本発明に係るクロマキー装置のハードウエア構成を示すブロック図The block diagram which shows the hardware constitutions of the chroma key apparatus based on this invention 本発明に係るクロマキー装置が実行するクロマキープログラムのフローチャートFlowchart of chroma key program executed by chroma key device according to the present invention キー値探索表作成ルーチンの詳細フローチャートDetailed flowchart of the key value search table creation routine 色空間が2次元である場合のソフトクロマキー値のグラフGraph of soft chroma key values when the color space is two-dimensional 2次元の色空間における膨張演算の過程を示すグラフA graph showing the process of dilation in a two-dimensional color space 2次元の色空間における収縮演算の過程を示すグラフA graph showing the process of shrinkage calculation in a two-dimensional color space キー値処理ルーチンのフローチャートFlowchart of key value processing routine

符号の説明Explanation of symbols

1 クロマキー装置
11 候補領域設定手段
12 キー値定義手段
13 キー値記憶手段
14 キー値決定手段
DESCRIPTION OF SYMBOLS 1 Chroma key apparatus 11 Candidate area setting means 12 Key value definition means 13 Key value storage means 14 Key value determination means

Claims (5)

前景画像を合成対象画像と削除領域とに分離するキー値を前記前景画像の画素の画素値を引数として記憶するキー値探索表を作成するキー値探索表作成手段と、
前記前景画像の画素の画素値を引数として前記キー値探索表を探索し、当該画素に対応するキー値を決定するキー値決定手段とを含み、
前記キー値探索表作成手段が、
前記前景画像に少なくとも1つの画像処理対象候補領域を設定する候補領域設定手段と、
前記画像処理対象候補領域のそれぞれに含まれる画素の画素値に予め定められた少なくとも1つのキー値を定義するキー値定義手段と、
前記画素値を引数とするキー値探索表に前記キー値を記憶するキー値記憶手段とを含み、
前記キー値定義手段が、
前記画像処理対象候補領域に含まれる画素の画素値により定義される色空間内の距離に応じて前記キー値を定義するものであるクロマキー装置。
A key value search table creating means for creating a key value search table for storing a key value for separating a foreground image into a compositing target image and a deletion area, using a pixel value of a pixel of the foreground image as an argument;
Wherein the pixel values of the pixels of the foreground image and searching for the key value lookup table as an argument, looking contains the key value determining means for determining a key value corresponding to the pixel,
The key value search table creation means includes:
Candidate area setting means for setting at least one image processing target candidate area in the foreground image;
Key value defining means for defining at least one key value predetermined for a pixel value of a pixel included in each of the image processing target candidate regions;
Key value storage means for storing the key value in a key value search table using the pixel value as an argument,
The key value defining means
A chroma key device that defines the key value according to a distance in a color space defined by a pixel value of a pixel included in the candidate area for image processing .
前記キー値定義手段が、
前記画像処理対象候補領域に含まれる画素の画素値の各成分の最小値および最大値により定義される色空間内の多様体面と前記画素値の間の距離に応じて前記キー値を定義するものである請求項1に記載のクロマキー装置。
The key value defining means
The key value is defined according to the distance between the manifold surface in the color space defined by the minimum value and the maximum value of each component of the pixel value of the pixel included in the image processing target candidate area and the pixel value chromakey apparatus according to claim 1 is.
前記キー値定義手段が、
前記画像処理対象候補領域に含まれる画素の画素値の各成分の最小値および最大値により定義される色空間内の多様体に含まれる画素値のマハラノビス距離に応じて前記キー値を定義するものである請求項に記載のクロマキー装置。
The key value defining means
The key value is defined according to the Mahalanobis distance of the pixel value included in the manifold in the color space defined by the minimum value and the maximum value of each component of the pixel value of the pixel included in the image processing target candidate area The chroma key device according to claim 1 .
前記キー値定義手段が、
前記キー値探索表に記憶されている前記キー値を修正するキー値修正手段を含む請求項1から請求項3までのいずれか1項に記載のクロマキー装置。
The key value defining means
The chroma key device according to any one of claims 1 to 3, further comprising key value correcting means for correcting the key value stored in the key value search table .
前記キー値修正手段が、
前記画像処理対象候補領域に含まれる画素の画素値の各成分の最小値および最大値により定義される色空間内の多様体をモロフォロジ演算により処理したモロフォロジ演算処理後多様体に基づきキー値を修正するものである請求項4に記載のクロマキー装置。
The key value correcting means is
The key value is corrected based on the manifold after the morphological calculation process, in which the manifold in the color space defined by the minimum value and the maximum value of each component of the pixel value of the pixel included in the image processing target candidate area is processed by the morphological calculation. The chroma key device according to claim 4 , wherein
JP2005332732A 2005-11-17 2005-11-17 Chroma key device Active JP4866065B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005332732A JP4866065B2 (en) 2005-11-17 2005-11-17 Chroma key device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005332732A JP4866065B2 (en) 2005-11-17 2005-11-17 Chroma key device

Publications (2)

Publication Number Publication Date
JP2007142726A JP2007142726A (en) 2007-06-07
JP4866065B2 true JP4866065B2 (en) 2012-02-01

Family

ID=38205072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005332732A Active JP4866065B2 (en) 2005-11-17 2005-11-17 Chroma key device

Country Status (1)

Country Link
JP (1) JP4866065B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008126371A1 (en) 2007-04-02 2008-10-23 M.Soft Co., Ltd. Image synthesizing method and image synthesizing system
CN111813482A (en) * 2020-07-09 2020-10-23 长沙景嘉微电子股份有限公司 2D desktop color key method and device in GPGPU and graphics processor
JP7309132B1 (en) 2023-02-07 2023-07-18 株式会社ヘミボーラ Image Synthesis Method in Chroma Key Processing

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3923138B2 (en) * 1997-06-10 2007-05-30 Necインフロンティア株式会社 Point addition method in POS system
JPH1127693A (en) * 1997-07-03 1999-01-29 Sony Corp Chroma key
JP2000253419A (en) * 1999-03-02 2000-09-14 Matsushita Electric Ind Co Ltd Chroma key device and electric apparatus
JP2001275130A (en) * 2000-03-28 2001-10-05 Matsushita Electric Ind Co Ltd Bluescreening processor and its processing method
JP2002095007A (en) * 2000-09-19 2002-03-29 Sony Corp Chroma key device
GB2374745A (en) * 2001-04-18 2002-10-23 Quantel Ltd Chroma keying system using a programmable look-up table
JP2002369019A (en) * 2001-06-07 2002-12-20 Canon Inc Color adjustment method and device for image information
JP4004863B2 (en) * 2002-06-07 2007-11-07 日本放送協会 Chroma key device

Also Published As

Publication number Publication date
JP2007142726A (en) 2007-06-07

Similar Documents

Publication Publication Date Title
US6141462A (en) Image processing using adjoining relationships between image parts
US10332262B2 (en) Removal of background information from digital images
US20150332435A1 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP2004522228A (en) A method for representing and comparing digital images.
JPH0695636A (en) Method and apparatus for generating color pallet, data processing system and method for generating input for lookuptable
JP6098298B2 (en) Image processing apparatus and computer program
JP3679139B2 (en) Color image converter
JP4866065B2 (en) Chroma key device
US8908964B2 (en) Color correction for digital images
EP0566915B1 (en) Sharpness processing apparatus
JP2014209327A (en) Image processing apparatus, image processing method, and image processing program
JP2000004360A (en) Reverse dither method of low complexity and low memory consumption
JP6091400B2 (en) Image processing device
JP6031566B1 (en) Feature extraction device, image search device, method, and program
JP6711031B2 (en) Image processing apparatus, image processing method, image processing system and program
JPWO2019082283A1 (en) Image analyzer
JP2018190394A (en) Data extension method and device in monitoring video
JP5883963B2 (en) Image processing device
JPH1063833A (en) Processor and method for image processing
JP6919433B2 (en) Image processing equipment, image processing methods, image processing systems and programs
JPH11232469A (en) Picture data processor and storage medium recorded with picture data processing program
JP4760819B2 (en) Information processing apparatus and information processing program
CN111951367A (en) Character rendering method, character processing method and device
JP2021174307A (en) Display control device, display control method, and program
JP2020201616A (en) Image processing device, image processing program, and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110324

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110405

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110506

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111018

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141118

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4866065

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250