Ask Your Question

Revision history [back]

Removing Z rotation from homography matrix before warpPerspective

I'm trying to stitch together Images. I have homography matrix from findHomography() which I then pass to warpPerspective(). My issue is that all of the images are flat 2D ones, meaning they will never need any Z rotation. The findHomography(), however, thinks otherwise. How do I disable Z rotation in homography matrix?