mereth
mereth

Reputation: 505

Image stitching algorithm using predefined homography matrix

I am implementing my own image stitching algorithms(using opencv but not the stitcher class), so far i can stitch 2 images using following steps:

  1. Detect keypoints
  2. Descript keypoints
  3. Match keypoints
  4. Calculate homography
  5. Warp images
  6. Blend images

What i'd like to know is, that if let's say i'd like to do video stitching which means i need this algorithm to be fast, could i skip the steps 1-4? i would only compute homography once and then use same matrix for all other frames - of course cameras would be in static position

Upvotes: 0

Views: 1061

Answers (1)

Dmitrii Z.
Dmitrii Z.

Reputation: 2357

Yes you can do that.

You should keep track of different camera parameters like focus which change homography, but basically if you know what and where to rotate - you can skip steps 1-4.

You can see stitching_detail.cpp from opencv source code which despite being buggy in camera parameters estimation and a little bit memory & CPU inefficient, greatly demonstrates stitching pipeline.

Upvotes: 0

Related Questions