GithubHelp home page GithubHelp logo

liuf1989 / conditional-lk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenhsuanlin/conditional-lk

0.0 1.0 0.0 4 MB

The Conditional Lucas-Kanade Algorithm (ECCV 2016)

MATLAB 87.97% C 12.03%

conditional-lk's Introduction

The Conditional Lucas & Kanade Algorithm

Chen-Hsuan Lin, Rui Zhu, and Simon Lucey
European Conference on Computer Vision (ECCV), 2016

Paper: https://www.andrew.cmu.edu/user/chenhsul/paper/ECCV2016.pdf
Poster: https://www.andrew.cmu.edu/user/chenhsul/paper/ECCV2016poster.pdf

We provide the MATLAB code for planar image alignment experiments.
If you find our code useful for your research, please cite

@inproceedings{lin2016conditional,
  title={The Conditional Lucas \& Kanade Algorithm},
  author={Lin, Chen-Hsuan and Zhu, Rui and Lucey, Simon},
  booktitle={European Conference on Computer Vision (ECCV)},
  pages={793--808},
  year={2016},
  organization={Springer International Publishing}
}

Prerequisites

You would need to first compile MTIMESX (https://www.mathworks.com/matlabcentral/fileexchange/25977-mtimesx-fast-matrix-multiply-with-multi-dimensional-support). This is required for fast computation for optimizing Conditional LK. Please follow the instructions in the MATLAB File Exchange to compile this library.

Running the code

To train the linear regressors, run runTrain under the matlab directory.
Run runTest to evaluate the trained regressors. There is also a number of different parameters that can be adjusted for the experiment in setParams.m.

The nonlinear optimization methods we provide include:

  • Levenberg-Marquardt using the MATLAB built-in lsqnonlin function
  • Gauss-Newton with GPU support
  • Levenberg-Marquardt with GPU support
  • Vanilla gradient descent
  • Limited-memory BFGS (LBFGS)

(new) We have additionaly included support using the minFunc library (https://www.cs.ubc.ca/~schmidtm/Software/minFunc.html) if you wish to use LBFGS for optimization (nice if you have limited RAM). Other optimization methods in minFunc are also compatible.
We did not use minFunc for our experiments, but if you wish to use it, please place the minFunc_2012 directory in the repository root and follow the instructions to compile.

We also provide a script visualizeGradients.m to help visualize the learned gradients. You would need imdisp (https://www.mathworks.com/matlabcentral/fileexchange/22387-imdisp) to run this script.


Please contact me ([email protected]) if you have any questions!

conditional-lk's People

Contributors

chenhsuanlin 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.