vistalab / vistasoft

VISTASOFT is the main software repository of the VISTA lab at Stanford University.
http://vistalab.stanford.edu
148 stars 142 forks source link

dtiCreateQuenchStats.m uses wrong interpolation method #293

Closed roeysc closed 6 years ago

roeysc commented 6 years ago

Dear all,

I think that dtiCreateQuenchStats.m has a small bug that need fixing. Line 197 reads:

vals = dtiGetValFromFibers(data, fg, mat,'nearest');

Yet in fact, the 'nearest' interpolation is not used and instead, the default 'trilinear' is used (this has important effects especially at GM-WM and WM-CSF interface). The reason is that the 4th argument of dtiGetValFromFibers() is not the interpMethod, but rather the valName. It should therefore read:

vals = dtiGetValFromFibers(data, fg, mat, [], 'nearest');

Best, Roey

wandell commented 6 years ago

Thanks. I made the change in master as you suggest and pushed.