Vincentqyw commited on
Commit
52878a0
1 Parent(s): ca8ae4d

fix: Homography warp

Browse files
Files changed (1) hide show
  1. common/utils.py +1 -1
common/utils.py CHANGED
@@ -201,7 +201,7 @@ def wrap_images(img0, img1, geo_info, geom_type):
201
  title = []
202
  if geom_type == "Homography":
203
  rectified_image1 = cv2.warpPerspective(
204
- img1, H, (img0.shape[1] + img1.shape[1], img0.shape[0])
205
  )
206
  result_matrix = H
207
  title = ["Image 0", "Image 1 - warped"]
 
201
  title = []
202
  if geom_type == "Homography":
203
  rectified_image1 = cv2.warpPerspective(
204
+ img1, H, (img0.shape[1], img0.shape[0])
205
  )
206
  result_matrix = H
207
  title = ["Image 0", "Image 1 - warped"]