Giter Club home page Giter Club logo

point-cloud's Introduction

Implementation of [1] written in MATLAB and C++.

Example

The code uses the roof duality code from [2].

The code has been tested on:

  • Windows 7, MATLAB 2015a, Visual Studio 2013.
  • Ubuntu 14.04, MATLAB 2015a, GCC 4.8.2.

Getting started

The code requires SPII, which is used to perform local optimization via automatic differentiation.

Windows

Update include/compile_script.m with the correct folders to Eigen and SPII:

...
%%%%%%%%%
% ACTION REQUIRED:
% Point this to your Eigen include directory.
extra_args{end+1} = '-I"C:\Program Files\Eigen"';
%%%%%%%%

% Default installation directories for Spii
extra_args{end+1} = '-I"C:\Program Files\SPII\include"';
extra_args{end+1} = '-L"C:\Program Files\SPII\lib"';
...

Linux/OSX

Install SPII in the default path.

Examples

A good place to start is with the two scripts:

  • examples/example_2D.m
  • examples/example_3D.m

Extend

If you like to add a new cost function update three files and remove the old mex files:

  • include/PointCloud.h add a new functor, e.g:
class My_regularization { ...
  • include/mex_wrapper.h update with the new functor, e.g.:
...
} else  if (!strcmp(problem_type,"my_cost")){
main_function<Quadratic_data, My_regularization>(nlhs, plhs, nrhs, prhs);
} else 
...
  • PointCloud.m update to allow the new cost function, e.g:
case {'linear','quadratic', 'default', 'length', 'my_cost'}
  • Remove the mex-files in /include

  • You can now switch to the new function as:

Obj.cost_function = 'myCost';

Code authors

  • Johannes Ulén
  • Carl Olsson

References

  1. Curvature-based regularization for surface approximation.
    IEEE Conference on Computer Vision and Pattern Recognition, 2012
    C. Olsson and Y. Boykov.

  2. Optimizing binary MRFs via extended roof duality.
    IEEE Conference on Computer Vision and Pattern Recognition, 2007.
    C. Rother, V. Kolmogorov, V. Lempitsky, and M. Szummer.

point-cloud's People

Contributors

johannesu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

caomw

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.