[8406bc]: / MATLAB / import / VSD_importSubjects.m

Download this file

41 lines (34 with data), 1.1 kB

 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
41
%VSD_IMPORTSUBJECTS imports the surfaces of VSD subjects.
%
% AUTHOR: Maximilian C. M. Fischer
% COPYRIGHT (C) 2019-2023 Maximilian C. M. Fischer
% LICENSE: EUPL v1.2
%
clearvars; close all
addpath(genpath('..\src'))
VSD_addPathes('..\..\..\..\..\')
%% Settings
dicomDBpath = 'D:\sciebo\SMIR\VSDFullBodyBoneReconstruction';
subjectXLSX = '..\res\VSD_Subjects.xlsx';
visualizeSubjects = 1;
% Load subjects & meta data
Subjects = readtable(subjectXLSX);
%% Import
NoS = size(Subjects, 1);
patchProps.FaceAlpha = 0.5;
for s=1:NoS
% Import data
VSD_importData(Subjects(s,:), dicomDBpath)
if visualizeSubjects
load(['..\..\Bones\' Subjects.ID{s} '.mat'], 'B')
visualizeMeshes([B(1:end).mesh],patchProps)
anatomicalViewButtons('LPS')
set(gcf,'Name',['VSD subject: ' Subjects.ID{s}],'NumberTitle','off')
% axis off tight; view(0,0);
% title(Subjects.ID{s})
% export_fig(Subjects.ID{s}, '-tif', '-r300')
% close(gcf)
end
end
% [List.f, List.p] = matlab.codetools.requiredFilesAndProducts([mfilename '.m']);
% List.f = List.f'; List.p = List.p';