Code Monkey home page Code Monkey logo

patchmatch's Introduction

patchmatch

patchmatch以及patchmatchstereo算法的python版实现

  • patchmatch参考 github
  • patchmatchstereo参考李迎松博士的c++版代码

由于patchmatchstereo没有做任何优化,并且是python的代码,主要是方便解析算法的原理构造,适合跑小图,patch_size尽量小一些。

使用

python patchmatchstereo.py

patch_size=5, n_iter=3 结果

| Initialize memory cost 0.002 seconds.
| Initialize parameters cost 7.834 seconds.
| Initialize gray cost 4.167 seconds.
| Initialize gradient cost 2.902 seconds.
| Initialize cost 140.518 seconds.
| Initialize cost 9.439 seconds.
| Propagation iter 0 cost 2033.533 seconds.
| Propagation iter 0 cost 1755.244 seconds.
| Propagation iter 1 cost 1753.473 seconds.
| Propagation iter 1 cost 1764.548 seconds.
| Propagation iter 2 cost 1839.081 seconds.
| Propagation iter 2 cost 1751.648 seconds.
| Propagation cost 10897.527 seconds.
| Plane to disparity cost 1.132 seconds.
| LR check cost 2.028 seconds.
| Fill holes cost 1.012 seconds.
| Total match cost 10916.557 seconds.
| Get disparity map cost 0.004 seconds.
| Get disparity cloud cost 24.264 seconds.

patchmatch's People

Contributors

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