Unwarp images of planar object

asked Feb 22 '16

jakir gravatar image

updated Feb 22 '16

I have two images viewing the same planar object. I can compute a homography (findHomography) or the fundamental matrix (findFundamentalMatrix). I can warp one image to the other or vice versa (using the inverse homography). This all works fine.

What I want to do is to rectify each image (not warp one to the other), based on the given information. For example like the house facade here:

""

Source http://users.cecs.anu.edu.au/~hartley... , page 6

The problem is that I don't have any information about point positions on the plane - only a lot of correspondences between two images of an object known to be planar. Can this be done from just the homography between the two images?

Preview: (hide)

Comments

Yes I think so. In your example page 6 I think hypothesis is " all windows are rectangle". you can match a window corner with a rectangle and find so homography.

LBerger gravatar imageLBerger (Feb 22 '16)edit

Thanks - the house facade is just an example. For this specific example I think I would need to know the aspect ratio of the (physical) window rectangle for it to work.

jakir gravatar imagejakir (Feb 22 '16)edit