ravi venkat
ravi venkat

Reputation: 21

Camera homography for two different cameras

I am trying to perform camera homography between two different cameras. I have the camera extrinsic and intrinsic parameters shared by the factory between the pair of cameras. I apply the camera homography shared on the opencv page (opencv homography tutorial) and verify the output warped image2 w.r.t image1 and they both are not aligned . I have few questions regarding the same.

  1. Can I apply this method to two different cameras as the tutorial mentions for same cameras at two different positions
  2. If I cannot used the above method, what changes do I need to make for camera homography to work for two different cameras

Thanks, Ravi

Upvotes: 1

Views: 1280

Answers (1)

p10ben
p10ben

Reputation: 445

Yes, you can. In the step where you convert your Euclidean Homograpy (Hab) to a Projective Homography(H'ab):

H'ab = KHabK-1

Use the intrinsic matrices of each camera instead of the same one on both sides: Ka and Kb:

H'ab = KaHabKb-1

Upvotes: 1

Related Questions