https://123dok.net/document/y961rw6r-efficient-solution-homography-relative-problem-common-reference-direction.html