All Topics  
Chroma key

 

   Email Print
   Bookmark   Link






 

Chroma key



 
 
Chroma key is a technique for mixing two images or frames together, in which a color
Color

Color or colour is the visual perception property corresponding in humans to the categories called red, yellow, blue and others....
 (or a small color range) from one image
Image

An image is an artifact, usually two-dimensional , that has a similar appearance to some subject —usually a physical object or a person....
 is removed (or made transparent), revealing another image behind it. This technique is also referred to as color keying, colour-separation overlay (CSO; primarily by the BBC), greenscreen, and bluescreen. It is commonly used for weather forecast broadcasts
Weather forecasting

Bold text'Weather forecasting is the application of science and technology to predict the state of the Earth's atmosphere for a future time and a given location....
, wherein the presenter appears to be standing in front of a large map
Map

A map is a visual representation of an area?a symbolic depiction highlighting relationships between elements of that space such as Object , regions, and topic-comment....
, but in the studio
Studio

A studio is an artist's or worker's workroom, or an artist and his or her employees who work within that studio. This can be for the purpose of architecture, painting, pottery , sculpture, photography, graphic design, cinematography, animation, radio or television broadcasting or the making of music....
 it is actually a large blue or green background.






Discussion
Ask a question about 'Chroma key'
Start a new discussion about 'Chroma key'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Chroma key is a technique for mixing two images or frames together, in which a color
Color

Color or colour is the visual perception property corresponding in humans to the categories called red, yellow, blue and others....
 (or a small color range) from one image
Image

An image is an artifact, usually two-dimensional , that has a similar appearance to some subject —usually a physical object or a person....
 is removed (or made transparent), revealing another image behind it. This technique is also referred to as color keying, colour-separation overlay (CSO; primarily by the BBC), greenscreen, and bluescreen. It is commonly used for weather forecast broadcasts
Weather forecasting

Bold text'Weather forecasting is the application of science and technology to predict the state of the Earth's atmosphere for a future time and a given location....
, wherein the presenter appears to be standing in front of a large map
Map

A map is a visual representation of an area?a symbolic depiction highlighting relationships between elements of that space such as Object , regions, and topic-comment....
, but in the studio
Studio

A studio is an artist's or worker's workroom, or an artist and his or her employees who work within that studio. This can be for the purpose of architecture, painting, pottery , sculpture, photography, graphic design, cinematography, animation, radio or television broadcasting or the making of music....
 it is actually a large blue or green background. The meteorologist stands in front of a bluescreen, and then different weather maps are added on those parts in the image where the color is blue. If the meteorologist himself wears blue clothes, his clothes will become replaced with the background video. This also works for greenscreens, since blue and green are considered the colors least like skin tone. This technique is also used in the entertainment industry, the iconic theatre shots in Mystery Science Theater 3000
Mystery Science Theater 3000

Mystery Science Theater 3000 is an United States cult television comedy series created by Joel Hodgson and produced by Best Brains that ran from 1988 in television to 1999 in television....
, for example.

History

Prior to the introduction of digital compositing
Digital compositing

Digital compositing is the process of digitally assembling multiple images to make a final image, typically for print, film or screen display. It is the evolution into the digital realm of optical film compositing....
, the process was a complex and time consuming one known as "travelling matte
Matte (filmmaking)

Mattes are used in photography and special effects filmmaking to combine two or more image elements into a single, final image. Usually, mattes are used to combine a foreground image with a background image ....
". The blue screen and traveling matte method were developed in the 1930s at RKO Radio Pictures and other studios, and were used to create special effects for The Thief of Bagdad
The Thief of Bagdad (1940 film)

The Thief of Bagdad is a British 1940 in film fantasy film directed by Ludwig Berger, Michael Powell and Tim Whelan, with uncredited contributions by Alexander Korda, his brother Zoltan Korda and William Cameron Menzies....
 (1940). At RKO, Linwood Dunn used travelling matte to create "wipes" – where there were transitions like a windshield wiper in films such as Flying Down to Rio
Flying Down to Rio

Flying Down to Rio is a musical film made by RKO Pictures and released on December 29, in 1933 in film.The film was directed by Thornton Freeland and produced by Merian C....
 (1933).

The credit for development of the bluescreen is given to Larry Butler, who won the Academy Award for special effects for The Thief of Bagdad. He had invented the blue screen and traveling matte technique in order to achieve the visual effects which were unprecedented in 1940. He was also the first special effects man to have created these effects in Technicolor
Technicolor

Technicolor is the trademark for a series of Color film processes pioneered by Technicolor Motion Picture Corporation , now a division of Thomson SA....
, which was in its infancy at the time.

In 1950, Warner Bros.
Warner Bros.

Warner Bros. Entertainment, Inc. is one of the world's largest film producer of film and television.It is a subsidiary of Time Warner, with its headquarters in Burbank, California and New York City....
 employee and ex-Kodak researcher Arthur Widmer
Arthur Widmer

Arthur Widmer was an United States film special effects pioneer. He invented the "Ultra Violet Travelling matte process", an early version of what would become known as bluescreen....
 began working on an ultra violet traveling matte process. He also began developing bluescreen techniques: one of the first films to use them was the 1958 adaptation of the Ernest Hemingway
Ernest Hemingway

Ernest Miller Hemingway was an American novelist, short story author, and journalist. He was part of the 1920s expatriate community in Paris, France, and one of the veterans of World War I later known as "the Lost Generation"....
 novella, The Old Man and the Sea
The Old Man and the Sea

The Old Man and the Sea is a novella by Ernest Hemingway, written in Cuba in 1951 and published in 1952 in literature. It was the last major work of fiction to be produced by Hemingway and published in his lifetime....
, starring Spencer Tracy
Spencer Tracy

Spencer Tracy was a two-time Academy Award winning actor of theatre and film, who appeared in 74 films from 1930 in film to 1967 in film. He is generally regarded as one of the finest actors in motion picture history....
.

The background footage was shot first and the actor or model was filmed against a bluescreen carrying out their actions. To simply place the foreground shot over the background shot would create a ghostly image over a blue-tinged background. The actor or model must be separated from the background and placed into a specially-made "hole" in the background footage. The bluescreen shot was first rephotographed through a blue filter so that only the background is exposed. A special film is used that creates a black and white negative image — a black background with a subject-shaped hole in the middle. This is called a 'female matte'. The bluescreen shot was then rephotographed again, this time through a red and green filter so that only the foreground image was cast on film, creating a black silhouette on an unexposed (clear) background. This is called a 'male matte'.

The background image is then rephotographed through the male matte, and the shot rephotographed through the female matte. An optical printer
Optical printer

An optical printer is a device consisting of one or more film projectors machine linked to a movie camera. It allows filmmakers to re-photograph one or more strips of film....
 with two projectors, a film camera and a 'beam splitter' combines the images together one frame at a time. This part of the process must be very carefully controlled to ensure the absence of 'black lines'. During the 1980s, minicomputer
Minicomputer

A minicomputer is a class of multi-user computers that lies in the middle range of the computing spectrum, in between the largest multi-user systems and the smallest single-user systems ....
s were used to control the optical printer. For The Empire Strikes Back, Richard Edlund
Richard Edlund

Richard Edlund, A.S.C. is a multi-Academy Award-winning US special effects cinematographer.Edlund was born in Fargo, North Dakota. After first joining the Navy, he developed an interest in experimental film and attended the USC School of Cinematic Arts in the late 60s....
 created a 'quad optical printer' that accelerated the process considerably and saved money. He received a special Academy Award
Academy Awards

The Academy Awards, popularly known as the Oscars, are presented annually by the Academy of Motion Picture Arts and Sciences to recognize excellence of professionals in the film industry, including directors, actors, and writers....
 for his innovation.

One drawback to the traditional traveling matte is that the cameras shooting the images to be composited can't be easily synchronized. For decades, such matte shots had to be done "locked-down" so that neither the matted subject nor the background could shift their camera perspective at all. Later, computer-timed motion control
Motion control photography

Motion control photography is a special effects technique used in film that enables precise repetition of camera movements, usually to facilitate special effects photography....
 cameras alleviated this problem, as both the foreground and background could be filmed with the same camera moves.

Petro Vlahos
Petro Vlahos

Petro Vlahos is a Hollywood special effects pioneer who developed the color-difference bluescreen process for the Motion Picture Research Council and, with his brother Paul Vlahos, founded the Ultimatte Corporation in Chatsworth, Los Angeles, California, California, in 1976....
 was awarded an Academy Award for his development of these techniques. His technique exploits the fact that most objects in real-world scenes have a color whose blue color component is similar in intensity to their green color component. Zbig Rybczynski also contributed to bluescreen technology.

For Star Trek: The Next Generation
Star Trek: The Next Generation

Star Trek: The Next Generation is a science fiction television program created by Gene Roddenberry as part of the Star Trek franchise. Set in the 24th century, about 70 years after Star Trek: The Original Series, the program features a new crew and a new Starship Enterprise....
, an ultraviolet light matting process was proposed by Don Lee of CIS
CIS

CIS usually refers to the Commonwealth of Independent States, a modern political entity consisting of nine former Soviet Union republics.CIS may also refer to:...
 and developed by Gary Hutzel and the staff of Image G. This involved a fluorescent orange backdrop which made it easier to generate a holdout matte
Matte (filmmaking)

Mattes are used in photography and special effects filmmaking to combine two or more image elements into a single, final image. Usually, mattes are used to combine a foreground image with a background image ....
, thus allowing the effects team to produce effects in a quarter of the time needed for other methods.

Some films make heavy use of chroma key to add backgrounds that are constructed entirely using computer-generated imagery
Computer-generated imagery

Computer-generated imagery is the application of the field of computer graphics or, more specifically, 3D computer graphics to special effects in films, television programs, Television commercials, simulators and simulation generally, and printed media....
 (CGI). Performances from different takes can even be composited together, which allows actors to be filmed separately and then placed together in the same scene. Chroma key allows performers to appear to be in any location without even leaving the studio.

Computer development also made it easier to incorporate motion into composited shots, even when using handheld cameras. Reference-points can now be placed onto the colored background (usually as a painted grid, X's marked with tape, or equally spaced tennis balls attached to the wall). In post-production, a computer can use the references to adjust the position of the background, making it match the movement of the foreground perfectly. Modern advances in software and computational power have even eliminated the need to use grids or tracking marks – the software analyzes the relative motion of colored pixels against other colored pixels and solves the 'motion' to create a camera motion algorithm which can be used in compositing software to match the motion of composited elements to a moving background plate.

Weathermen often use a field monitor to the side of the screen to see where they are putting their hands. A newer technique is to project a faint image onto the screen.

The process

The principal subject is filmed or photographed against a background consisting of a single color or a relatively narrow range of colors, usually blue
Blue

Blue is a colour, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 440?490 Nanometre....
 or green
Green

Green is a color, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 520?570-Nanometre....
 because these colors are considered to be the furthest away from skin tone. The portions of the video which match the preselected color are replaced by the alternate background video. This process is commonly known as "keying", "keying out" or simply a "key".

Green is currently used as a backdrop more than any other color because image sensors in cameras are most sensitive to green. Therefore the green camera channel contains the least "noise" and can produce the cleanest key/matte/mask. Additionally, less light is needed to illuminate green because of the higher sensitivity to green in the image sensors. Blue was used before digital keying became commonplace because it was necessary for the optical process, but it needed more illumination than green.

In analog color TV, color is represented by the phase of the chroma subcarrier relative to a reference oscillator. Chroma key is achieved by comparing the phase of the video to the phase corresponding to the preselected color. In-phase portions of the video are replaced by the alternate background video.

In digital color TV, color is represented by three numbers (red, green, blue). Chroma key is achieved by a simple numerical comparison between the video and the preselected color. If the color at a particular point on the screen matches (either exactly, or in a range), then the video at that point is replaced by the alternate background video.

Clothing

A chroma key subject must not wear clothing similar in color to the chroma key color(s) (unless intentional), because the clothing may be replaced with the background video. An example of intentional use of this is when an actor wears a blue covering over a part of his body to make it invisible in the final shot. This technique can be used to achieve an effect similar to that used in the Harry Potter
Harry Potter

Harry Potter is a Heptalogy fantasy novels written by British author J. K. Rowling. The books chronicle the adventures of the eponymous adolescent wizard Harry Potter , together with Ron Weasley and Hermione Granger, his friends from the Hogwarts School of Witchcraft and Wizardry....
 films to create the effect of an invisibility cloak
Cloak of invisibility

A cloak of invisibility is a theme that has occurred in fiction, and is a device which is under some scientific inquiry....
.

Background

Blue
Blue

Blue is a colour, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 440?490 Nanometre....
 is generally used for both weather maps and special effects because it is complementary
Complementary color

Complementary colors are pairs of colors that are of ?opposite? hue in some color model. The exact hue ?complementary? to a given hue depends on the model in question, and perceptual uniformity, additive color, and subtractive color models, for example, have differing complements for any given color....
 to human
Human

A human being, also human or man, is a member of a species of bipedalism primates in the family Hominidae . Mitochondrial DNA evidence indicates that modern humans originated in east Africa about 200,000 years ago....
 skin
Skin

The skin is the outer covering of the body, also known as the epidermis. It is the largest organ of the integumentary system made up of multiple layers of epithelial biological tissue, and guards the underlying muscles, bones, ligaments and organ s....
 tone. The use of blue is also tied to the fact that the blue emulsion layer of film has the finest crystals and thus good detail and minimal grain (in comparison to the red and green layers of the emulsion.) In the digital world, however green
Green

Green is a color, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 520?570-Nanometre....
 has become the favored color because digital cameras retain more detail in the green channel and it requires less light than blue. Green not only has a higher luminance value than blue but also in early digital formats the green channel was sampled twice as often as the blue, making it easier to work with. The choice of color is up to the effects artists and the needs of the specific shot. In the past decade, the use of green has become dominant in film special effects. Also, the green background is favored over blue for outdoors filming where the blue sky might appear in the frame and could accidentally be replaced in the process. Although green and blue are the most common, any color can be used. Red is usually avoided due to its prevalence in normal human skin pigments, but can be often used for objects and scenes which do not involve people.

Occasionally, a magenta
Magenta

Magenta is a purplish pink color evoked by lights with less power in yellowish-green wavelengths than in blue and red wavelengths . In light experiments, magenta can be produced by removing the lime-green wavelengths from white light....
 background is used, as in some software applications where the magenta or fuchsia
Fuchsia (color)

Fuchsia is a purple color named after the flower of the fuchsia plant. Fuchsia is used as an alias for electric magenta.There is also a somewhat redder and slightly less saturated hue termed fashion fuchsia that is used in women's fashion ....
 key value #FF00FF is sometimes referred to as "magic pink".

With better imaging and hardware, many companies are avoiding the confusion often experienced by weather presenters, who must otherwise watch themselves on a monitor to see the image shown behind them, by lightly projecting a copy of the background image onto the blue/green screen. This allows the presenter to accurately point and look at the map without referring to monitors.

A newer technique is to use a retroreflective curtain
Curtain

A curtain is a piece of cloth intended to block or obscure light, or drafts, or water in the case of a shower curtain. Curtains hung over a doorway are known as porti?res....
 in the background, along with a ring of bright LEDs around the camera lens. This requires no light to shine on the background other than the LEDs, which use an extremely small amount of power and space unlike big stage lights, and require no rigging. This advance was made possible by the invention of practical blue LEDs in the 1990s, which also allow for emerald green LEDs.

There is also a form of color keying that uses light spectrum invisible to human eye. Called Thermo-Key, it uses infrared as the key color, which would not be replaced by background image during postprocessing.

Even lighting

The biggest challenge when setting up a bluescreen or greenscreen is even lighting and the avoidance of shadow
Shadow

File:Shadow, Ronald Reagan Building - Washington, D.C..jpgA shadow is an area where direct light from a light source cannot reach due to obstruction by an object....
, because it is best to have as narrow a color range as possible being replaced. A shadow would present itself as a darker color to the camera and might not register for replacement. This can sometimes be seen in low-budget or live broadcasts where the errors cannot be manually repaired. The material being used affects the quality and ease of having it evenly lit. Materials which are shiny will be far less successful than those that are not. A shiny surface will have areas that reflect the lights making them appear pale, while other areas may be darkened. A matte surface will diffuse the reflected light and have a more even color range. In order to get the cleanest key from shooting greenscreen it is necessary to create a value difference between the subject and the greenscreen. In order to differentiate the subject and screen a two-stop difference can be used, either by making the greenscreen two stops higher than the subject or vice versa.

Programming

There are several different quality- and speed-optimized techniques for implementing color keying in software.

In most versions, a function f(r,g,b)->a is applied to every pixel in the image. a <= 0 means the pixel is the green screen, a >= 1 means the pixel is in the foreground object. Values between 0 and 1 indicate a pixel that is partially covered by the foreground object. A usable green screen example, which matches how chroma key was done on an optical printer
Optical printer

An optical printer is a device consisting of one or more film projectors machine linked to a movie camera. It allows filmmakers to re-photograph one or more strips of film....
, is f(r,g,b)->K0*b-K1*g+K2 (K0..2 are user-adjustable constants, 1 is a good initial guess for all of them).

Often the software does screen spill removal from the colors as well as figure out the alpha. This may be a separate function g(r,g,b)->(r,g,b), a very simple green screen example is g(r,g,b)->(r,min(g,b),b). Or f is changed to return (r,g,b,a) all at once, this is useful if part of the calculation is shared.

Most keyers use far more complicated functions. A popular approach is to describe a closed 3D surface in RGB space and determine the signed distance the point (r,g,b) is from this surface, or to find the distance the point (r,g,b) is between two closed nested surfaces. It is also very common for f to depend on more than just the current pixel's color, it may also use the x,y position, the values of nearby pixels, the value from reference images, and values from user-drawn masks.

A different class of algorithm tries to figure out a 2D path that separates the foreground from the background. This path can be the output, or the image can be drawn by filling the path with alpha=1 as a final step. An example of such an algorithm is the use of active contour
Active contour

Active contour, also called snakes, is a framework for delineating an object outline from a possibly 2D .This framework attempts to minimize an energy associated to the current contour as a sum of an internal and external energy:...
. Most research in recent years has been into these algorithms.

See also

  • Compositing
    Compositing

    Compositing is the combining of visual elements from separate sources into single images, often to create the illusion that all those elements are parts of the same scene....
  • Federal Standard 1037C
    Federal Standard 1037C

    Federal Standard 1037C, entitled Telecommunications: Glossary of Telecommunication Terms is a United States Federal Standard, issued by the General Services Administration pursuant to the Federal Property and Administrative Services Act of 1949, as amended....
  • Drew Carey's Green Screen Show
    Drew Carey's Green Screen Show

    Drew Carey's Green Screen Show was an improvisational comedy television series that aired in the fall of 2004 on The WB Television Network, and the fall of 2005 on Comedy Central....
  • Film production
  • Front projection effect
    Front projection effect

    A front projection effect is an in-camera effect visual effects process in film production for combining foreground performance with pre-filmed background footage....
  • Matte (filmmaking)
    Matte (filmmaking)

    Mattes are used in photography and special effects filmmaking to combine two or more image elements into a single, final image. Usually, mattes are used to combine a foreground image with a background image ....
  • Primatte chromakey technology
    Primatte chromakey technology

    Primatte is a high-end chroma key technology used in motion picture, television and photographic host applications to remove solid colored backgrounds and replace them with transparency to facilitate ?background replacement?....
  • Optical printer
    Optical printer

    An optical printer is a device consisting of one or more film projectors machine linked to a movie camera. It allows filmmakers to re-photograph one or more strips of film....
  • Rear projection effect
    Rear projection effect

    Rear projection is an in-camera special effects technique in film production for combining foreground performances with pre-filmed backgrounds. It was widely used for many years in driving scenes, or to show other forms of "distant" background motion....
  • Reverse bluescreen
    Reverse bluescreen

    Reverse bluescreen is a special effects technique pioneered by John Dykstra for shooting the flying sequences in the film Firefox .The model is painted with a phosphorus paint and photographed with strong lighting against a black background, then rephotographed with ultraviolet light....
  • Schüfftan process
    Schüfftan process

    The Sch?fftan process is a movie special effect named after its inventor, Eugen Sch?fftan . It was widely used in the first half of the 20th century before being almost completely replaced by the matte and bluescreen effects....
  • Signal processing
    Signal processing

    Signal processing is the analysis, interpretation, and manipulation of signal . Signals of interest include: audio signal processing, , time-varying measurement values and sensor data, for example biological data such as electrocardiograms, control system signals, telecommunication transmission signals such as radio signals, and many others....
  • Sodium vapor process
    Sodium vapor process

    The sodium vapor process is a technique for combining actors and background footage, developed exclusively by The Walt Disney Company as an alternative to the more common bluescreen process....
  • Video
    Video

    Video is the technology of electronics Videography, recording, processing, storing, transmitting, and reconstructing a sequence of still images representing Scene in motion....
  • Virtual set


External links