FACTOID # 101: The United States has the world's highest marriage rate - as well as the world's highest divorce rate.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Alpha compositing

In computer graphics, alpha compositing is often useful to render image elements in separate passes, and then combine the resulting multiple 2D images into a single, final image in a process called compositing. For example, compositing is used extensively when combining computer rendered image elements with live footage. Computer graphics (CG) is the field of visual computing, where one utilizes computers both to generate visual images synthetically and to integrate or alter visual and spatial information sampled from the real world. ...


In order to correctly combine these image elements, it is necessary to keep, for each element, an associated matte. This matte contains the coverage information - the shape of the geometry being drawn - and allows us to distinguish between parts of the image where the geometry was actually drawn and other parts of the image which are empty.


To store this matte information, the concept of an alpha channel was introduced by A.R.Smith in the late 1970s, and fully developed in the 1984 paper Compositing Digital Images, by Thomas Porter and Tom Duff. In a 2D image element which stores a color for each pixel, an additional value is stored in the alpha channel containing a value between 0 and 1. A value of 0 means that the pixel does not have any coverage information; i.e. there was no color contribution from any geometry because the geometry did not overlap this pixel. A value of 1 means that the pixel is fully opaque because the geometry completely overlapped the pixel.


If an alpha channel is used in an image, it is common to also multiply the color by the alpha value, in order to save on additional multiplications during the compositing process. This is usually referred to as premultiplied alpha. Thus, assuming that the pixel color is expressed using RGB triples, a pixel value of (0.0, 0.5, 0.0, 0.5) implies a pixel which is fully green and has 50% coverage. An RGB color space is any additive color space based on the RGB color model. ...


With the existence of an alpha channel, it is then easy to express useful compositing image operations, using a compositing algebra defined in the Duff and Porter paper. For example, given two image elements A and B, the most common compositing operation is to combine the images such that A appears in the foreground and B appears in the background; this can be expressed as A over B. In addition to over, Porter and Duff defined the compositing operators in, out, atop, and xor (and the reverse operators rover, rin, rout, and ratop) from a consideration of choices in blending the colors of two pixels when their coverage is, conceptually, overlaid orthogonally:


Image:Alpha_compositing.jpg Illustration of computer graphics alpha compositing operators. ...


The over operator is, in effect, the normal painting operation (see Painter's algorithm). The in operator is the alpha compositing equivalent of clipping. The painters algorithm is one of the simplest solutions to the visibility problem in 3D computer graphics. ...


As an example, the over operator can be accomplished by applying the following formula to each pixel value:

C_o = C_a + C_b times left(1 - alpha_aright)
alpha_o = alpha_a + alpha_b times left(1 - alpha_aright)

where Co is the result of the operation, Ca is the color of the pixel in element A, Cb is the color of the pixel in element B, and αa and αb are the alpha of the pixels in elements A and B respectively. This assumes that the pixel colors of each element have already been premultiplied by alpha.


The Alpha Channel Can be used in various programs such as Adobe Photoshop, Caligari True Space, Paint Shop Pro The Gimp, and other programs. Adobe Photoshop is a graphics editor (with some text and vector graphics capabilities) developed and published by Adobe Systems. ... Paint Shop Pro (PSP) is a bitmap graphics editor and vector graphics editor for computers running the Microsoft Windows operating system that was originally published by Minneapolis-based Jasc Software. ... Often, the name GIMP is used erroneously for the Gimp-Print printer driver set. ...


  Results from FactBites:
 
Rendering model (SVG 1.2) (5223 words)
Graphics elements are composited onto the elements already rendered on the canvas based on an extended Porter-Duff compositing model, in which the resulting color and opacity at any given pixel on the canvas depend on the 'comp-op' specified.
For groups containing compositing operators, the operation used to composite the group onto the canvas is the comp-op property of the container element itself.
In effect, the destination input to the compositing operations for the complex group's children is the original contents of the buffer, rather than the current buffer for the complex group.
Image Compositing (748 words)
Compositing is the name given to the process of combining multiple images as overlapping layers producing a single output image.
An early use of compositing was in the cartoon industry where each artist draws one aspect of the scene as a layer, the multiple layers from each artist are combined to form the current frame.
With an alpha channel indicating opaque (1, white) or transparent (0, fl), layers can now be added together from the background to the foreground such that those parts of a layer that are transparent don't affect anything behind them and those parts that are opaque write over anything behind them.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.