LOAD IMAGES
Used a picture, of a tiled floor.
plt.imshow(im_mid_v)
plt.imshow(im_left_v)
Get Points
Enter points
Save file
Functions to compute homography
convert Left to middle orientation
Get the points we want to transform the picture to
I took a picture from the same perspective from the left side and the middle. I took the homography of transforming the middle/center view to the left side. The first picture below is warping the middle view to the left perspective using the homography matrix. and The second picture below is warping the left to the middle using the inverse of the homography (so we can go from the left perspective to the middle)
warped = warpImage(im_mid_v, homog_matrix, corners_left_uncrop) #warp middle to the left
warped = warpImage(im_left_v, inv(homog_matrix), im1_pts) #warp left to the middle
Fail cases
imname1 = 'brugesPainting.jpeg'
im1 = skio.imread(imname1)
im1 = sk.img_as_float(im1)
plt.imshow(im1)