Video difference key generator

Abstract: A video difference key generator has a stored reference video image. An input video image is compared with the reference video image by an absolute difference circuit which subtracts corresponding pixels of the two video images, the smaller from the larger, to produce a difference video image. The difference video image may be filtered, and then is input to a transfer function circuit to produce an output which may be used as a key signal for compositing video images.

Description: The present invention is related to key generators for video processors, and more particularly to a video difference key generator which compares a reference video image to an input video image and computes the absolute differences between images on a pixel by pixel basis. In television production it is common to combine two video signals in such a manner that a portion of a scene represented by one of the video signals appears in the foreground superimposed over a background scene formed from the other video signal. This is done by generating a key signal which determines, for each pixel of the scene represented by the foreground video signal, whether the foreground scene is displayed without attenuation in the composite of the two video signals or should be replaced at least partially by the corresponding pixel from the background scene. Such a key signal is commonly generated from the color components of the foreground video signal by forming the foreground signal while the foreground subject appears against a backing screen of uniform color selected from colors which do not appear in the foreground subject, i.e., generally a saturated shade of blue. For each pixel of the foreground scene corresponding to the color of the backing screen a key signal of one is generated, and for each pixel of the foreground subject which is not the color of the backing screen a key signal of zero is generated. The transition of the key signal from one to zero may be blurred so that the transition is not abrupt, and the key signal will have a value between one and zero. The key signal is then multiplied with the background scene and one minus the key signal is multiplied with foreground scene, and the resulting multiplicands are summed to produce the composite video output. In some recent digital systems the key signal is a digital signal having a number of bits, such as eight, to encompass transition values or to crease effects where the foreground scene is semitransparent. U.S. Patent US-A-4,485,403 issued November 27, 1984 to Gerhard Illetschko entitled "Noise Reduction System for Television Signals" and U.S. Patent US-A-4,549,213 issued October 22, 1985 to Gerhard Illetschko entitled "System for Reduction of Noise in a Television Signal" describes a motion detector which compares consecutive frames of a video picture to detect when there is motion within the picture. This output generates a signal which is used to control the amount of noise reduction applied to a video picture. With additional circuitry this output could be used to generate a key signal for compositing. Other types of key signals may be generated for recursive effects or the like by operator control. Each key generation circuit requires a separate circuit depending upon the key application. What is desired is a key generator which may be used to generate any desired type of key including the traditional chroma key. JP-A-60,190,078 discloses a picture synthesizing device that stores a background image from a camera as a reference and then compares the reference with an image comprising the background image together with an inserted object from the camera. The comparison output is fed to an edge detect circuit which produces a signal corresponding to a key signal for the inserted object, which signal is used to write data from the camera scene to another stored scene to produce a synthesized picture. According to the present invention there is provided a key generator comprising: means for generating a synthesized video image as a function of a desired key signal type; means for selecting in response to a select command between the synthesized video image and an input video image to produce a reference video image as a function of the desired key signal type; means for storing the reference video image in response to a command signal; means for determining the absolute difference between the reference video image from the storing means and the input video image to produce a difference video image; and means for deriving from the difference video image a key signal of the desired key signal type. Thus there is disclosed a video difference key generator which stores a reference video image in a digital frame store or synthesizes the reference video image under user control. The reference video image is compared with an input video image and the absolute difference on a pixel by pixel basis is determined. The difference video image is processed with a look-up table which can emulate conventional clip and gain circuitry to provide threshold levels and edge softness as well as many non-conventional transfer functions. The reference video image may be any desired video image, such as a black frame to generate luminance keys, a pure color frame to generate chroma keys, a prior frame of the picture video to generate motion keys, a key frame to compare with incoming keys or the like. The resulting output is a key signal which can be used in the compositing of video images. The objects, advantages and other novel features of the present invention will be apparent from the following detailed description when read in conjunction with the appended claims and attached drawing. The Figure is a block diagram of a video difference key generator according to the present invention. Referring now to the Figure an input selector 20 under user control selects either an input video image or a synthesized video image, such as a black video image, a pure color video image, etc., to be applied to a reference frame store 10. The input video image is also applied to an absolute difference circuit 12. A control circuit 14, which may be a microprocessor, determines whether the selector 20 output video image, stored as a reference video image in the reference frame store 10, is the input video image or the synthesized video image generated by the control circuit. The reference video image from the reference frame store 10 is compared with the input video image in the absolute difference circuit 12 to output a difference video signal which represents the difference in absolute value between respective pixels of the reference video image and the input video image. The control circuit 14 may enable the difference circuit 12 to compare only luminance data, only chrominance data, only key data or any combination of these components of the input video image. The difference video signal is then applied to an optional filter circuit 16, the parameters of which are controlled by appropriate signals from the control circuit 14 as is well known in the art. Filtering provides the ability to ramp sharp edges and reduce noise spikes in the difference video signal according to the parameters of the filter 16 as determined by the control circuit 14. Finally the key signal is obtained through a look-up table ROM 18 which provides a transfer function. The look-up function from the table 18 is executed under control of the control circuit 14 and may emulate a conventional clip and gain circuit to produce a key output. The control circuit 14 may vary the values of clip and gain in the look-up table 18 to provide thresholding and softness of the difference video signal, or may further modify the key output to provide, for instance, bands of absolute difference. The resulting key output may be used as a key signal in the compositing of video images. The reference video image stored in the reference frame store 10 may be a frame of video black. An input video image is compared with the stored reference video image and the difference is the luminance level of the input video image. Alternatively a color may be stored in the reference frame store 10 and compared with the chrominance components of the input video image to obtain a type of chroma key. Further the reference video image may be any other type of video image including synthesized patterns or a frame of the video picture input. The result is a flexible, single key generator for generating any type of key within the imagination of an operator depending upon the selected reference signal and the control signals from the control circuit 14. Thus the present invention provides a video difference key generator having a reference video image stored in a frame store for comparison with an input video image to generate a key output which may be used as a key signal for compositing video images, the type of key being a function of the stored reference video image and the control signals from a control circuit.

Claims: A key generator comprising: means (14) for generating a synthesized video image as a function of a desired key signal type; means (20) for selecting in response to a select command between the synthesized video image and an input video image to produce a reference video image as a function of the desired key signal type; means (10) for storing the reference video image in response to a command signal; means (12) for determining the absolute difference between the reference video image from the storing means and the input video image to produce a difference video image; and means (18) for deriving from the difference video image a key signal of the desired key signal type. The key generator according to claim 1 further comprising means (16) for filtering the difference video image prior to input to the key signal deriving means. The key generator according to claim 1 or claim 2 wherein the deriving means (18) comprises a look-up table (18) having a transfer function that converts the difference video image into the key signal. The key generator as claimed in any preceding claim wherein the generating means (14) comprises a microprocessor control circuit (14) that generates a synthesized video image, said microprocessor control circuit further generating the command signal, the select command and parameters for the determining (12) and deriving (18) means according to the desired key signal type.

Inventors: BARNETT RONNIE D, PARKES STEVEN M, BARNETT, RONNIE D., PARKES, STEVEN M.
Applicants: GRASS VALLEY GROUP, THE GRASS VALLEY GROUP, INC.
Application year: 1987
Main classification: H04N5
IPC codes: H04N5, H04N9, H04N7