I tried to compile the jcvoronoi_mex.cpp in Matlab, which resulted in errors when using Visual Studio C++ compiler. When I removed the brackets around "ArrayDimensions", the mex file compiled. The resulting file was strangely much smaller than the mex file in the actual mex folder.
Using the newly compiled mex file results in expected grain map and I no longer experience the memory issue, at least when I tested on three files where this issue has previously appeared.
Hello!
I tried to compile the jcvoronoi_mex.cpp in Matlab, which resulted in errors when using Visual Studio C++ compiler. When I removed the brackets around "ArrayDimensions", the mex file compiled. The resulting file was strangely much smaller than the mex file in the actual mex folder.
Using the newly compiled mex file results in expected grain map and I no longer experience the memory issue, at least when I tested on three files where this issue has previously appeared.
-Tuomo