you need to set up the mex compiler by typing
>> mex -setup
and then chose one of the shown options (you should at least have the lcc compiler). Then try to run the region growing again.
I got this error! Can you help me?! Thank you very much. :)
Trying to compile mex file...Error: Could not detect a compiler on local system
which can compile the specified input file(s)
Error using RegionGrowing (line 67)
Could not compile the mex file :(. Please try to do so manually!
This is well done!
I have a minor suggestion for the visualization of the result (nargout == 0). For large No. of slices in a 3D data set, the output of montage() is very hard to grasp. My suggestion is to present only image slices that are part of the segmented volume:
Below line 89, add
% reduce montage size by selecting the interesting slices, only
slices = squeeze( sum(sum( dMask(:,:,1,:) ,1),2) > 0 );
And change line 90 to: