Alpha Compositing Details

    Definition of the Over compositing operation:
αresultcresult = αfg cfg + (1 - αfg) αbgcbg
αresult = αfg + (1 - αfg) αbg
    Issues with alpha:
Premultiplied (integral) alphas:
  • pixel contains (α, αr, αg, αb)
  • saves computation
    αresultcresult = αfg cfg + αbgcbg - αfgαbgcbg
  • alpha value constrains color magnitude
  • alpha modulates image shape
  • conceptually clean - multiple composites are well defined
Non-premultiplied (independent) alphas:
  • pixel contains (α, r, g, b)
  • what Photoshop does
  • color values are independent of alpha
  • transparent pixels have a color
  • divison required to get color component back
(An excellent reference on the subject)
Lecture 2   Slide 19   6.837 Fall '01