proportions of a perspective-deformed rectangle

Here is my attempt at answering my question after reading the paper Zhengyou Zhang , Li-Wei He, “Whiteboard scanning and image enhancement” http://research.microsoft.com/en-us/um/people/zhang/papers/tr03-39.pdf I manipulated the equations for some time in SAGE, and came up with this pseudo-code in c-style: // in case it matters: licensed under GPLv2 or later // legend: // sqr(x) = … Read more