|
44 | 44 | end |
45 | 45 |
|
46 | 46 | %% Convert VSD to STAPLE format |
47 | | -vsdSubjectXLSX = fullfile('VSD', 'MATLAB\res\VSD_Subjects.xlsx'); |
48 | | -[~, ~, rawXLSXsdta] = xlsread(vsdSubjectXLSX); |
49 | | -vsdSubjects = cell2table(rawXLSXsdta(2:end,:),'VariableNames',rawXLSXsdta(1,:)); |
| 47 | +vsdSubjects = readtable(fullfile('VSD\MATLAB\res\', 'VSD_Subjects.xlsx')); |
50 | 48 | % Remove subjects with incomplete skeletal anatomy |
51 | 49 | vsdSubjects = vsdSubjects(cellfun(@(x) isempty(strfind(x,'cut off')), vsdSubjects.Comment),:); %#ok<STREMP> |
52 | 50 |
|
53 | | -for n_sub = 4%:size(vsdSubjects,1) |
| 51 | +% Select subjects to be processed |
| 52 | +subs = 1;%1:size(vsdSubjects,1); |
| 53 | + |
| 54 | +for n_sub = subs |
54 | 55 | load(fullfile('VSD', 'Bones', [vsdSubjects.ID{n_sub} '.mat']),'B','M') |
55 | 56 | subFolder = fullfile(datasets_folder, ['VSD_' vsdSubjects.ID{n_sub}] , input_geom_format); |
56 | 57 | if ~isfolder(subFolder) |
|
120 | 121 | % create model folder if required |
121 | 122 | if ~isfolder(output_models_folder); mkdir(output_models_folder); end |
122 | 123 |
|
123 | | -for n_d = 4%:numel(datasets) |
| 124 | +for n_d = subs |
124 | 125 |
|
125 | 126 | % current dataset being processed |
126 | 127 | cur_dataset = datasets{n_d}; |
|
138 | 139 | [sign_side , cur_side] = bodySide2Sign(sides{n_side}); |
139 | 140 |
|
140 | 141 | % cell array with the bone geometries that you would like to process |
141 | | - bones_list = {'pelvis_no_sacrum', ['femur_', cur_side],... |
142 | | - ['tibia_', cur_side], ['talus_', cur_side],... |
143 | | - ['calcn_', cur_side]}; |
| 142 | + bones_list = {... |
| 143 | + 'pelvis_no_sacrum', ... |
| 144 | + ['femur_', cur_side],... |
| 145 | + ['tibia_', cur_side], ... |
| 146 | + ['talus_', cur_side],... |
| 147 | + ['calcn_', cur_side]}; |
144 | 148 |
|
145 | 149 | % model and model file naming |
146 | 150 | cur_model_name = ['auto_',datasets{n_d},'_',upper(cur_side)]; |
|
0 commit comments