FYI, in version 5.1.0, FreeSurferColorLUT.txt has a space (" ") instead of an empty line at line 1189. This causes the matlab funciton read_fscolorlut to throw an error.
An easy fix is to change this line: if(~isempty(tline) & tline(1) ~= '#') break; end
to this: if(~isempty(deblank(tline)) & tline(1) ~= '#') break; end
thanks Don, I put your fix in Bruce On Thu, 17 Nov 2011, Don Hagler wrote:
FYI, in version 5.1.0, FreeSurferColorLUT.txt has a space (" ") instead of an empty line at line 1189. This causes the matlab funciton read_fscolorlut to throw an error.
An easy fix is to change this line: if(~isempty(tline) & tline(1) ~= '#') break; end
to this: if(~isempty(deblank(tline)) & tline(1) ~= '#') break; end
freesurfer@nmr.mgh.harvard.edu