Your script works really great on our machines. One more thing, my research group has access to a cluster and we'd love to run your alignment program on it. I was wondering how difficult would it be to change the .c files so that they can also be compiled on Linux. Any thoughts on this issue?
Thanks a lot for sharing this great piece of work with us. This is a very nice contribution to the Mathworks file exchange repository.
I have one question about your code though. I am looking at your submission on Mar 4. When I run one of your examples, e.g. example_2d_nonrigid_1.m, the results figure shows four images, and I am not sure I understand what is being displayed.
Shouldn't 'transformed image 1' (Icor in your code) be the result of registering Image 1 (I1) onto image 2 (I2)? If so, 'transformed image 1' should look similar to 'image 2', right? However, in your figure 'transformed image 1' resembles more image 1 than image 2. Am I missing something? Is the registration really working in this example?
In my case, it is very hard to set. I hope for my setting method help for you. I'm running this on MATLAB 2014a, Win64 7.
GlewPath = '-IE:/glew/include/GL -LE:/glew/lib/Release/x64 -lglew32';
GlutPath = '-IE:/freeglut/include/GL -LE:/freeglut/lib/x64 -lfreeglut';
14 Jul 2014
A wrapper library for Boykov and Kolmogorov max-flow/min-cut implementation
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'