Source: https://www.cs.jhu.edu/~misha/MyPapers/3DV15.pdf