danini / magsac

The MAGSAC algorithm for robust model fitting without using an inlier-outlier threshold
Other
415 stars 65 forks source link

TypeError: findHomography(): incompatible function arguments #22

Closed lhaippp closed 3 years ago

lhaippp commented 3 years ago

Firstly, thanks for your contribution!

When I run your demo example, I met such an issue, could you please help me fix it?

image

My opencv version is 3.4.6

lhaippp commented 3 years ago

I solved the issue by adding source&target image height and width

  h, w, _ = img1.shape
  M, mask = pymagsac.findHomography(src_pts, dst_pts, w, h, w, h)