Git Product home page Git Product logo

template-matching's Introduction

Template Matching

Template matching between two consecutive images. This project can load two images side by side and can find a template (patch image) from left image in the right image accurately. In this approach the matchTemplate function of opencv and Normalized Cross Corelation (NCC) are exploited to find the best and precise template in the following (right) image. For this purpose instead of searching inside the whole image (common approach), I just select a bigger patch (30x bigger than the reference patch in the left image) for searching the corresponding patch. The benefit of this approach compare to the former approach (whole image) is the search space is more smaller and consequently the computation time is better. This method is useful when the images have the nearby viewpoint.

Libraries for C++:

  • Clang++ - stdlibe=c++11
  • OpenCV 3.0
  • Qt 4.8.6
  • Cmake 3.0

Build and Run the C++:

  1. mkdir build
  2. cd build
  3. cmake ..
  4. make
  5. ./bin/release/template_matching

ibraries for Python:

  • Python 2.7.9
  • OpenCV 3.0 - python module
  • PyQt 4.11.3
  • Numpy 1.9.2

Run the Python:

  1. python python/templatematchingui.py

template-matching's People

Contributors

amin-abouee avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.