mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
285 stars 185 forks source link

Update jcvoronoi_mex.cpp #2118

Closed nyyssont closed 5 months ago

nyyssont commented 5 months ago

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