Rank: 911 based on 154 downloads (last 30 days) and 1 file submitted
photo

Miki Rubinstein

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Miki Rubinstein
Updated   File Tags Downloads
(last 30 days)
Comments Rating
16 Sep 2008 maxflow A wrapper library for Boykov and Kolmogorov max-flow/min-cut implementation Author: Miki Rubinstein max, flow, min, cut, graph cut, mathematics 154 20
  • 3.88889
3.9 | 9 ratings
Comments and Ratings on Miki Rubinstein's Files View all
Updated File Comment by Comments Rating
14 Jul 2014 maxflow A wrapper library for Boykov and Kolmogorov max-flow/min-cut implementation Author: Miki Rubinstein Falak Shah

All those troubled by the error

Error using maxflowmex
Function "mxGetIr_700" is obsolete.
(64-bit mex files using sparse matrices must be rebuilt with the "-largeArrayDims" option.
See the R2006b release notes for more details.)

try using this:It will solve the problem

mex -largeArrayDims 'maxflowmex.cpp' 'maxflow-v3.0/graph.cpp' 'maxflow-v3.0/maxflow.cpp'

09 Mar 2012 maxflow A wrapper library for Boykov and Kolmogorov max-flow/min-cut implementation Author: Miki Rubinstein Cédric Devivier

I just compiled it and it does work fine. The files I've used to compile are available at the following address:
http://ecco-qua.tk/?fi=Ln4Ba4dxsE&fn=maxflow.zip

I modified a bit some codes to remove the "deprecated conversion" warnings.

Hope it helps.

09 Feb 2012 maxflow A wrapper library for Boykov and Kolmogorov max-flow/min-cut implementation Author: Miki Rubinstein Antoniuk

Hi all,
Can't comile mex file... here is my output

/usr/local/matlab79/bin/mex -I.. -O -output maxflowmex.mexa64 maxflowmex.cpp

Warning: You are using gcc version "4.6.2". The earliest gcc version supported
with mex is "4.1". The latest version tested for use with mex is "4.2".
To download a different version of gcc, visit http://gcc.gnu.org

In file included from maxflow-v3.0/graph.h:43:0,
from maxflowmex.cpp:20:
maxflow-v3.0/block.h: In member function ‘Type* Block<Type>::New(int)’:
maxflow-v3.0/block.h:124:76: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
maxflow-v3.0/block.h: In member function ‘Type* DBlock<Type>::New()’:
maxflow-v3.0/block.h:223:76: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
maxflowmex.o: In function `mexFunction':
maxflowmex.cpp:(.text+0x116): undefined reference to `Graph<float, float, float>::Graph(int, int, void (*)(char*))'
maxflowmex.cpp:(.text+0x139): undefined reference to `Graph<float, float, float>::reallocate_nodes(int)'
maxflowmex.cpp:(.text+0x209): undefined reference to `Graph<float, float, float>::reallocate_arcs()'
maxflowmex.cpp:(.text+0x3ee): undefined reference to `Graph<float, float, float>::maxflow(bool, Block<int>*)'
maxflowmex.cpp:(.text+0x464): undefined reference to `Graph<float, float, float>::~Graph()'
collect2: ld returned 1 exit status

mex: link of ' "maxflowmex.mexa64"' failed.

Can some one help me with it ?

13 Jul 2011 maxflow A wrapper library for Boykov and Kolmogorov max-flow/min-cut implementation Author: Miki Rubinstein JD

Per 23 june 2010 comment, I also tried flipping image.
Per 17 Aug 2009 comment I also tried simple binary test images (black X and black blob on white background.
Binary labeling does not match source image in any case.

Was someone able to get proper labeling for an image? If so, what image did you use?

13 Jul 2011 maxflow A wrapper library for Boykov and Kolmogorov max-flow/min-cut implementation Author: Miki Rubinstein JD

Thanks for upload. Need help with interpreting output to confirm code runs properly.

The code builds and runs fine on R2010b-64 bit system with VisualStudio2008-64. However, Test2.m output produces a binary labeled image of the waterfallf.bmp picture that does not match RGB image. The boundary between labeled regions does not match coastline or any other feature.
What is the correct output for Test2.m ?

Contact us