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
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
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 ?
02 May 2011
maxflow
A wrapper library for Boykov and Kolmogorov max-flow/min-cut implementation
Author: Miki Rubinstein
??? Error using ==> maxflowmex
Function "mxGetIr_700" is obsolete in file ".\compat32.cpp", line 264.
(64-bit mex files using sparse matrices must be rebuilt with the "-largeArrayDims" option.
See the R2006b release notes for more details.)
Error in ==> maxflow at 35
[flow,labels] = maxflowmex(A,T);
Error in ==> test1 at 32
[flow,labels] = maxflow(A,T)