Has anyone successfully ran this code, if so, please tell me your secret.
There has been a lot of work put into this program, so would love to be able to run it. Tried stereo.fig, I get an error, tried torr_tool.fig after reading the manual, I get an error, then finally tried manually running functions and I got more errors.
One small thing I noticed just more for the aesthetics of the final result where you colour the surface of your 3D model, you need to have an inverse cosine (or acos in Matlab) to compute the angle between the camera view vector and vertex normals when doing the dot product. At the moment the variable 'angles' is actually not the angle but the cosine of the angle between the two vectors. Therefore putting acos in front of the dot product significantly improves the colouring of the surface.
I met the same issue when mexing other cpp files. This is the incompatibility of Matlab with Mac OS X. You need to modify MATLB_ROOT/bin/mexopts.sh, change all 10.7 (4 places) under miaci64 section, and modify the MW_SDKROOT to, e.g., /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
Then, mex -setup. Now you should be able to mex all the cpp files.
Thanks for this useful toolbox.
I am not able to compile the c files successfully. I have Matlab2013b version running on mac osx 10.9 and xcode 5. (Maybe that's the problem.)
Running compile_c_files.m i get the following errors:
xcodebuild: error: SDK "macosx10.7" cannot be located.
xcrun: error: unable to find utility "clang", not a developer tool or in PATH
mex: compile of ' "bspline_error_2d_double.c"' failed.
Unable to complete successfully.
Error in compile_c_files (line 8)
Do you have an idea how to solve this?
Many thanks in Advance!
An awesome library.
Dear Dirk, in file image_registration.m at line 533 to 543, shouldn't
come after computing filter size for Gaussian, i.e. after line 541
Since, O_trans is converted to vector, size(O_trans,2) is 1.
Thus, size(Istatic,2)/size(O_trans,2) = size(Istatic,2)
which is very large(around 130 for an image of size 400*530).