Code Monkey home page Code Monkey logo

ddl_demo's Introduction

DDL_demo

Matlab demo code accompanying the PR paper [J. Yin, H. Zhu, D. Yuan, T. Xue, Sparse Representation over Discriminative Dictionary for Stereo Matching, PR]

Contributed by Hongmei Zhu ([email protected])

Important notes:

(1) The code is provided for academic use only. Use of the code in any commercial or industrial related activities is prohibited.

(2) If you use our codes we request that you cite the paper [J. Yin, H. Zhu, D. Yuan, T. Xue, Sparse Representation over Discriminative Dictionary for Stereo Matching, PR]

(3) Platform: Matlab 2010+ with C compiler

Usage:

  • folders "all15","first8","last7" are used to save the corresponding training samples and learned dictionaries.
  • run CollectPatches.m to generate the training samples
  • run DictTraining.m to learn discriminative dictionary, pretrained dictionaries are already saved in folders "all15","first8","last7", respectively
  • mexLassoWeighted.m/mexLassoWeighted.mexw64, mexTrainDL.m/mexTrainDL.mexw64 are from SPAMS-Julien Toolbox (http://spams-devel.gforge.inria.fr/)
  • Evaluation in the folder "Test"
  • run Middleburytest_2014.m to evaluate on Middlebury benchmark version 3
  • run Middleburytest_2006.m to evaluate on 30 stereo pairs from Middlebury benchmark version 2
  • CostComputingmex.c corresponds to Eq.(12).
  • SGMmex.c is the mex version to re-implement four directions cost aggregation like reference "H. Hirschmuller, Stereo processing by semiglobal matching and mutual information, PAMI".
  • PostProcmex.c is the mex version to re-implement post processing in reference "C. Rhemann, and A. Hosni, and M. Bleyer, and C. Rother, and M. Gelautz, Fast cost-volume filtering for visual correspondence and beyond, CVPR2011".
  • mexLasso.m/mexLasso.mexw64 is from SPAMS-Julien Toolbox (http://spams-devel.gforge.inria.fr/)
  • If you trained a new dictionary, you should change the dictionary name into "*_new.mat" in Middleburytest_2014.m and Middleburytest_2006.m

Enjoy it!

May 18, 2017

ddl_demo's People

Contributors

homay0118 avatar

Watchers

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