From Computational Photography, Frédo Durand.