GithubHelp home page GithubHelp logo

memf's Introduction

memf

Memory Efficient Max Flow


This code implements the MEMF algorithm described in the following paper

"Memory Efficient Max Flow for Multi-label Submodular MRFs", 
Thalaiyasingam Ajanthan, Richard Hartley and Mathieu Salzmann,
IEEE Conference on Computer Vision and Pattern Recognition,
June 2016.

Code Assumptions:
	1. The MRF energy has the following form
		E(x) = \sum \theta_{i}(x_i) + \sum \theta_{ij} (x_i, x_j),
		where \theta_{ij} (x_i, x_j) = \gamma_{ij} g(x_i, x_j)
	2. The code currently supports MRF with 4-connected grid structure only
		nodes labelled from 0 --> width * height - 1, in a grid structure.
		E.g. width = 3, height = 2
		0 -- 1 -- 2
		|	 |	  |
		3 -- 4 -- 5

If you use this code, please consider citing the aforementioned paper 
in any resulting publication.

This code is for research purposes only, if you want to use it for commercial purpose
please contact us.

Contact: [email protected]


To assist the user, example.cpp, Makefile and sample data files are provided.

Example usage 
memf.exe 10 10 5 <sample>/toy_unary_10_10_5.txt <sample>/toy_binary_4_10_10.txt ...
		<sample>/toy_binaryPot_10_10_5_l2.txt
	runs the MEMF algorithm on 10x10 image with 5 labels, with 
	quadratic pairwise potential.

memf's People

Contributors

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