Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update perform_front_propagation_3d_mex.cpp #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion matlab/toolbox_graph/mex/perform_front_propagation_3d_mex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
#include "mex.h"



// PBR - MKR 20220503
// old prototype in /Applications/MATLAB_R2021b.app/extern/include/matrix.h
// LIBMMWMATRIX_PUBLISHED_API_EXTERN_C mxArray *mxCreateNumericArray(mwSize ndim, const mwSize *dims, mxClassID classid, mxComplexity flag);
// type of param 2 not correct: old = const mwSize *dims new = const int dims[3]
#undef mxCreateNumericArray
LIBMMWMATRIX_PUBLISHED_API_EXTERN_C mxArray * mxCreateNumericArray(mwSize ndim, const int dims[3], mxClassID classid, mxComplexity flag);
LIBMMWMATRIX_PUBLISHED_API_EXTERN_C mxArray * mxCreateNumericArray(mwSize ndim, const int dims[3], mxClassID classid, mxComplexity flag){
return mxCreateNumericArray_730(ndim,(const mwSize *)dims,classid,flag);
}

void mexFunction( int nlhs, mxArray *plhs[],
int nrhs, const mxArray*prhs[] )
{
Expand Down Expand Up @@ -117,4 +128,4 @@ void mexFunction( int nlhs, mxArray *plhs[],
GW_DELETEARRAY(Q);

return;
}
}