Code
Some (possibly obsolete) code available here:
- D. S. Hochbaum: An efficient algorithm for image segmentation, Markov random fields and related problems. J. ACM, 48(4):686--701, 2001.
- A. Chambolle and J. Darbon: On total variation minimization and surface evolution using parametric maximum flows, International Journal of Computer Vision Vol. 84, Nr. 3, Sept. 2009.
- An Experimental Comparison of Min-Cut/Max-Flow Algorithms for Energy Minimization in Vision. Yuri Boykov and Vladimir Kolmogorov. IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), September 2004.
- NEW *EXACT* IMPLEMENTATION (Jan. 2024): download and unzip this file and maxflow-v3.04.src.zip from V. Kolmogorov's software page. Please see instructions in the header of the graphTV.cpp file.
- A networkx-based python implementation is found here but it is very slow (just unzip the file, this dummy site does not allow to share python code).
This is a Matlab implementation of the fast exact (anisotropic) TV minimization algorithm by Chambolle and Darbon. It has been tested under Linux/Unix/MACOSX/Windows(CygWin).
To compile:
./configure
make
Antonin Chambolle, Jérôme Darbon, Jalal Fadili
Note: the idea of the
algorithm seems to be due originally to D. Hochbaum (ref. above), and M. J. Eisner,
D. G. Severance: Mathematical techniques for efficient record segmentation in large shared databases, J. Assoc. Comput. Mach., 23(4):619--635, 1976.