git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
aa21d53
Branches
Tags
master
SVMCrossVal.git
private
parseCoordinateTextField.m
radius frontend enabled, fixed backend problems. radius working
Christoph Budziszewski
commited
aa21d53
at 2009-03-18 14:50:47
parseCoordinateTextField.m
Blame
History
Raw
function voxelList = parseCoordinateTextField(model) s = get(model.txtVoxelDef,'String'); rows = size(s,1); voxelList = []; for i = 1:rows if all(isspace(s(i,:))) continue; end line = s(i,:); if (strfind(line,'+')) % has radius [roi rem] = strtok(line,'+'); rad = eval(str2mat(rem(2:end))); else % radius set to 0 roi = line; rad = 0; end coord.name = roi; coord.rad = rad; voxelList = [voxelList; coord]; end end