diff --git a/fastRotate/fast_rotate_loose.cpp b/fastRotate/fast_rotate_loose.cpp index b02924e..bffbdd3 100644 --- a/fastRotate/fast_rotate_loose.cpp +++ b/fastRotate/fast_rotate_loose.cpp @@ -19,7 +19,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) const int *dims = mxGetDimensions(prhs[0]); int width = dims[0]; int height = dims[1]; - const int num_of_dims=mxGetNumberOfDimensions(prhs[0]); + const int num_of_dims=mxGetNumberOfDimensions_700(prhs[0]); int dim = 1; // Number of colors (default - gray scale) if(num_of_dims==3) dim=dims[2]; @@ -45,7 +45,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) WIDTH = 2*DW2+1, HEIGHT = 2*DH2+1, DIMS[2] = { WIDTH, HEIGHT }; - plhs[0] = mxCreateNumericArray(num_of_dims, DIMS, mxUINT8_CLASS, mxREAL); + plhs[0] = mxCreateNumericArray_700(num_of_dims, DIMS, mxUINT8_CLASS, mxREAL); source=(unsigned char *)mxGetData(prhs[0]); dest=(unsigned char *)mxGetData(plhs[0]); diff --git a/fastRotate/fast_rotate_loose.mexmaci64 b/fastRotate/fast_rotate_loose.mexmaci64 old mode 100644 new mode 100755 index 115f28b..d62e1d5 Binary files a/fastRotate/fast_rotate_loose.mexmaci64 and b/fastRotate/fast_rotate_loose.mexmaci64 differ diff --git a/fastRotate/fast_rotate_loose_double.cpp b/fastRotate/fast_rotate_loose_double.cpp index 1f59b3d..679bd46 100644 --- a/fastRotate/fast_rotate_loose_double.cpp +++ b/fastRotate/fast_rotate_loose_double.cpp @@ -18,7 +18,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { if (nrhs != 2) mexErrMsgTxt("Usage : fast_rotate(image,ang)"); float angle = (float)mxGetScalar(prhs[1]); - const int *dims = mxGetDimensions(prhs[0]); + const int *dims = mxGetDimensions_700(prhs[0]); int width = dims[0]; int height = dims[1]; const int num_of_dims=mxGetNumberOfDimensions(prhs[0]); @@ -47,7 +47,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) WIDTH = 2*DW2+1, HEIGHT = 2*DH2+1, DIMS[2] = { WIDTH, HEIGHT }; - plhs[0] = mxCreateNumericArray(num_of_dims, DIMS, mxDOUBLE_CLASS, mxREAL); + plhs[0] = mxCreateNumericArray_700(num_of_dims, DIMS, mxDOUBLE_CLASS, mxREAL); source=(unsigned char *)mxGetData(prhs[0]); dest=(double *)mxGetData(plhs[0]); diff --git a/fastRotate/fast_rotate_loose_double.mexmaci64 b/fastRotate/fast_rotate_loose_double.mexmaci64 old mode 100644 new mode 100755 index 21487e0..d8cb9ce Binary files a/fastRotate/fast_rotate_loose_double.mexmaci64 and b/fastRotate/fast_rotate_loose_double.mexmaci64 differ