Formula for Alvar (http://virtual.vtt.fi/virtual/proj2/multimedia/alvar.html)