1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
ext = ('*.yaml');
dos=protocole;
chemin = fullfile(dos,ext);
list = dir(chemin);
switch lower (champ)
case 'dose_per_seance'
switch lower (protocole)
case 'uro_05'
recup_donnees_doseperseance('uro_05');
dossier1 = 'URO_05\faisceau270\dose_per_seance';
dossier2 = 'URO_05\faisceau_90\dose_per_seance';
dossier3 = 'URO_05\faisceau_ant\dose_per_seance';
dossier4 = 'URO_05\faisceau_post\dose_per_seance';
for j=1:numel(list)
YamlStruct1 = ReadYaml(sprintf('URO_05\\IG_PVSIGR_Prostate%d.yaml',j));
for i =1:numel(YamlStruct1.dosimetries.beams)
switch lower (YamlStruct1.dosimetries.beams(i).machine_code)
case 'PRIMUS'
a=fullfile(dossier1,'patient%d.txt',i);
movefile(fullfile(dossier1,'patient%d.txt',i),fullfile(dossier1,'PRIMUS_18MV','patient%d.txt',i));
movefile(fullfile(dossier2,'patient%d.txt',i),fullfile(dossier2,'PRIMUS_18MV','patient%d.txt',i));
movefile(fullfile(dossier3,'patient%d.txt',i),fullfile(dossier3,'PRIMUS_18MV','patient%d.txt',i));
movefile(fullfile(dossier4,'patient%d.txt',i),fullfile(dossier4,'PRIMUS_18MV','patient%d.txt',i));
end
end
end
end |
Partager