Alpha Compositing Details

    Definition of the Over compositing operation:
aresultcresult = afg cfg + (1 - afg) abgcbg
aresult = afg + (1 - afg) abg
    Issues with alpha:
Premultiplied (integral) alphas:
  • pixel contains (a, ar, ag, ab)
  • saves computation
    aresultcresult = afg cfg + abgcbg - afgabgcbg
  • alpha value constrains color magnitude
  • alpha modulates image shape
  • conceptually clean - multiple composites are well defined
Non-premultiplied (independent) alphas:
  • pixel contains (a, 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 4   Slide 3   6.837 Fall '00