Ask Your Question

Revision history [back]

warpPerspective height adjustment

I'm creating a bird's eye view using warpPerspective() by following example 12-1 in "Learning OpenCV" by Bradski & Kaehler (The same example is readily found online as well). In the example they allow the user to adjust the "height" by changing a value in the homography matrix. However, the problem I'm having is that the effect of changing this variable is counter intuitive to adjusting the actually height of the "bird" in the bird's eye view. That is, at a height of 25 the resulting view appears closer to the ground (therefore, larger) then at a height of 10. Also, in some cases, negative numbers produce acceptable views. Am I not understanding what the "height" variable is supposed to do or do I have something else wrong?