diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bea433 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store diff --git a/toolbox_fast_marching/compile_mex.m b/toolbox_fast_marching/compile_mex.m index f81ac98..d17f2ac 100644 --- a/toolbox_fast_marching/compile_mex.m +++ b/toolbox_fast_marching/compile_mex.m @@ -1,16 +1,16 @@ % compile mex file -mex mex/perform_front_propagation_2d.cpp mex/perform_front_propagation_2d_mex.cpp mex/fheap/fib.cpp -mex mex/perform_front_propagation_3d.cpp mex/perform_front_propagation_3d_mex.cpp mex/fheap/fib.cpp -mex mex/perform_circular_front_propagation_2d.cpp mex/perform_front_propagation_2d.cpp mex/fheap/fib.cpp +mex -compatibleArrayDims mex/perform_front_propagation_2d.cpp mex/perform_front_propagation_2d_mex.cpp mex/fheap/fib.cpp +mex -compatibleArrayDims mex/perform_front_propagation_3d.cpp mex/perform_front_propagation_3d_mex.cpp mex/fheap/fib.cpp +mex -compatibleArrayDims mex/perform_circular_front_propagation_2d.cpp mex/perform_front_propagation_2d.cpp mex/fheap/fib.cpp % anisotropic FM -mex mex/anisotropic-fm//perform_front_propagation_anisotropic.cpp -mex mex/anisotropic-fm-feth/fm2dAniso.cpp +%mex -compatibleArrayDims mex/anisotropic-fm//perform_front_propagation_anisotropic.cpp +%mex -compatibleArrayDims mex/anisotropic-fm-feth/fm2dAniso.cpp % compiling skeleton -mex mex/skeleton.cpp +mex -compatibleArrayDims mex/skeleton.cpp % compiling distance transform -mex mex/eucdist2.c +mex -compatibleArrayDims mex/eucdist2.c disp('Compiling perform_front_propagation_mesh, might time some time.'); rep = 'mex/'; @@ -23,16 +23,16 @@ 'gw/gw_core/GW_Face.cpp', ... 'gw/gw_core/GW_Mesh.cpp', ... 'gw/gw_core/GW_Vertex.cpp', ... - 'gw/gw_geodesic/GW_GeodesicFace.cpp', ... - 'gw/gw_geodesic/GW_GeodesicMesh.cpp', ... - 'gw/gw_geodesic/GW_GeodesicPath.cpp', ... - 'gw/gw_geodesic/GW_GeodesicPoint.cpp', ... - 'gw/gw_geodesic/GW_TriangularInterpolation_Cubic.cpp', ... - 'gw/gw_geodesic/GW_GeodesicVertex.cpp', ... + 'gw/gw_geodesic/GW_GeodesicFace.cpp', ... + 'gw/gw_geodesic/GW_GeodesicMesh.cpp', ... + 'gw/gw_geodesic/GW_GeodesicPath.cpp', ... + 'gw/gw_geodesic/GW_GeodesicPoint.cpp', ... + 'gw/gw_geodesic/GW_TriangularInterpolation_Cubic.cpp', ... + 'gw/gw_geodesic/GW_GeodesicVertex.cpp', ... 'gw/gw_geodesic/GW_TriangularInterpolation_Linear.cpp', ... 'gw/gw_geodesic/GW_TriangularInterpolation_Quadratic.cpp', ... }; -str = 'mex '; +str = 'mex -compatibleArrayDims '; for i=1:length(files) str = [str rep files{i} ' ']; end