Giter Site home page Giter Site logo

image_match's Introduction

image_match

This is a SIFT implementation + pose estimation in MATLAB. It uses the classic DoG blob detector for feature point detection and the SIFT descriptor for feature point correspondence. Pose estimation uses RANSAC to compute the best homography using matched feature points in the "reference" and "current" images. Note that this was a side project I did for fun and is far from a fast/robust implementation.

Installation instructions:

git clone https://github.com/justinblaber/image_match.git

Then, in MATLAB:

>> addpath('image_match');
>> test_image_match

Below is a step by step explanation of test_image_match.m:

  1. The first cell:
ref_img = imread('test.png');

ref = image_match(ref_img(40:250,70:280));
ref.get_feature_points();
ref.get_descriptors();
ref.plot_feature_points();

computes the feature points (using DoG blob detector) and descriptors (SIFT) for the reference image. The resulting plot should look like:

alt text

  1. The next cell does the same thing for the deformed image:
T = projective2d([0.89   1.24  0.002; 
                  -0.95  1     0.0025;
                  0      0     1]);
cur_img = imwarp(ref_img,T); 

cur = image_match(cur_img);
cur.get_feature_points();
cur.get_descriptors();
cur.plot_feature_points();

The resulting plot should look like:

alt text

  1. The next cell determines the "match points":
match_points = image_match.get_match_points(ref,cur);
image_match.plot_match_points(ref,cur,match_points);

The resulting plot should look like:

alt text

  1. The last cell uses RANSAC to determine the match points to use for pose estimation (which computes a homography):
[h_pose, match_points_pose] = image_match.get_pose(ref,cur,match_points);
image_match.plot_match_points(ref,cur,match_points_pose);
image_match.plot_pose(ref,cur,h_pose);

The resulting plots should look like:

alt text

alt text

image_match's People

Contributors

justinblaber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

image_match's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.