Skip to content

Commit

Permalink
updating fast_rotate for matlab 2017 and mac: changed to mxCreateNume…
Browse files Browse the repository at this point in the history
…ricArray_700 in the cpp file
  • Loading branch information
stellastyl committed May 26, 2017
1 parent a6a9e2a commit 3337649
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fastRotate/fast_rotate_loose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand All @@ -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]);
Expand Down
Binary file modified fastRotate/fast_rotate_loose.mexmaci64
100644 → 100755
Binary file not shown.
4 changes: 2 additions & 2 deletions fastRotate/fast_rotate_loose_double.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down Expand Up @@ -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]);
Expand Down
Binary file modified fastRotate/fast_rotate_loose_double.mexmaci64
100644 → 100755
Binary file not shown.

0 comments on commit 3337649

Please sign in to comment.