File Exchange

image thumbnail

RANSAC algorithm with example of finding homography

version 1.0 (5.23 KB) by

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

4.21429
14 Ratings

189 Downloads

Updated

View License

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.

Comments and Ratings (21)

Athira A

Hi, i'm trying to find Homography i do
d = 2;
n=100;
Points = rand(d,n);
findHomography(Points(:,1:4),Points);
but there an error , could you help me please:
"Error in findHomography>calcDist (line 24)
d = sum((pts2-pts3).^2,1);"
Other issue is when i try to change d= 3;
Thanks

Jiri Skala

Works very well. Exactly what I needed to finish my SIFT image registration.

rukis chang

sky sumbra

Thank you very much
It worked fine for me

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.

sheng

sheng (view profile)

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

maryam

maryam (view profile)

yair_pr

,n,

r89hooda

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

Ehsan

Ehsan (view profile)

good job Edward

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

Van Tan

good

vo danh

MATLAB Release
MATLAB 7.11 (R2010b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video