Source: http://vision.ia.ac.cn/zh/teaching/CV2015/Course9.pdf