Code covered by the BSD License  

Highlights from
RANSAC algorithm with example of finding homography

4.8 | 8 ratings Rate this file 231 Downloads (last 30 days) File Size: 5.23 KB File ID: #30809 Version: 1.0
image thumbnail

RANSAC algorithm with example of finding homography


Ke Yan (view profile)


RANSAC algorithm with example of line fitting and finding homography of 2 images

| Watch this File

File Information

There are 2 implementations of RANdom SAmple Consensus algorithm in the file, one for 2D line fitting only, the other for general purposes(fitting dataA with data B). Example (Finding a homography between 2 images) is provided and the comments are detailed.


This file inspired Panorama Stitching Using Harris Corners And Sift.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (14)
01 Aug 2015 Chada Keatmanee

Thank you very much
It worked fine for me

Comment only
08 Jul 2015 Toan Nguyen Nam  
11 Jun 2014 Bhanu Pratap Singh

Hey thanks for the code,
but the error that persists is that in the noisy data again the fitting is coming out to be wrong. It fits the co-ordinates the data for noisy data as well.

I am implementing the code on a Image processing method.

Comment only
14 Apr 2014 sheng

sheng (view profile)


How to give our Input in this RANSAC Code. Provide that Code.

16 Jan 2014 maryam

maryam (view profile)

31 Oct 2013 yair_pr


Comment only
18 Apr 2013 Leonardo O. Iheme  
15 Jan 2013 Rahul Hooda

can we use it for fingerprint alignment???
Please tell soon

Comment only
20 Dec 2012 Ehsan

Ehsan (view profile)

good job Edward

24 Jun 2012 Mehryar Emambakhsh

Many thanks Edward, but what if I wanted to fit a 3D line to a noisy 3D data?

Comment only
15 Jun 2012 Van Tan


Comment only
30 May 2012 vo danh  
22 Feb 2012 Maciej Stankiewicz  

Contact us