Daksh Agarwal
Daksh Agarwal

Reputation: 43

How to estimate homography using RANSAC on Lucas-Kanade matching results?

In image matching, with Matlab, I found a vector of correspondence of two images using Lucas-Kanade algorithm and now I have to estimate the homography matrix using RANSAC. Any simple way to do it? Thanks in advance.

Upvotes: 1

Views: 1267

Answers (2)

Dima
Dima

Reputation: 39419

Use estimateGeometricTransform function in the Computer Vision System Toolbox.

Upvotes: 0

nbsrujan
nbsrujan

Reputation: 1189

In Lucas Kanade algorithm flow vectors are estimated by searching for specific points of previous image in next image. If you are using opencv you have function calcOpticalFlowPyrLK. Which gives out coordinates of tracked points in destination image. You can check here.

Having points in current image, and corresponding points in previous image, there are readily available functions to estimate Homography matrix.here

findHomography(srcPoints, dstPoints, method, ransacReprojThreshold);

Upvotes: 2

Related Questions