Computer Vision: Algorithms and Applications. Chapter 4.2.1.

Szeliski's book