git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
4b81e19
Branches
Tags
master
SVMCrossVal.git
private
ui_selectRoiImage.m
spm2 compatibility, start change study
Christoph Budziszewski
commited
4b81e19
at 2009-05-22 11:16:41
ui_selectRoiImage.m
Blame
History
Raw
function imageList = ui_selectRoiImage(formatstring,wd) switch getSPMVersion case 'SPM5' imageList = spm_vol(spm_select([1 Inf],'image',formatstring,[],wd)); case 'SPM2' imageList = spm_vol(spm_get([1 Inf],'img',formatstring,wd,0)); otherwise [filematrix pathmatrix]= uigetfile(... {'*.nii;*.img;', 'All NIFTI/ANALYZE Files (*.hdr, *.nii, )'; ... '*.*', 'All Files (*.*)'}, ... formatstring,... wd,... 'MultiSelect', 'off'); imageList = spm_vol([pathmatrix filematrix]); end end