Stuff from Price's book 'Computer Vision: Models, Learning and Inference'