Update: I recently updated my machine, and after recompiling BCFCM3D, it appears to be working fine. I do, however, think the code would benefit from some free(*) statements within the mallocf and mallocd subfunctions. Although I am not a C-professional, I am pretty sure that this poses a significant memory leak that quickly becomes problematic when dealing with large volumes.
Hi. I have been having memory issues with this code. I have been segmenting large volumes (512x512x512) so I have been monitoring my RAM consumption using Windows task manager. When running the program, it slowly but steadily consumes more RAM up until about 7GB (out of 16GB). This takes only about 2 min, but then the program runs for about 10 min and finally crashes with an "Out of Memory" error when more memory clearly exists. What's worse is that MATLAB holds onto this ~6GB chunk of memory, and no manner of memory clearing or packing gets it back. I am not a mex expert, so maybe you could shed some light on this issue? Thanks in advance.
hi i try to run the file but it gives me this error
C:\PROGRA~1\MATLAB\R2009B\BIN\MEX.PL: Error: 'BCFCM3D.c' not found.
??? Error using ==> mex at 221
Unable to complete successfully.
i work in visual studio 2008 and matlab 2009 b
plz help me as soon as possible