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

Download this file

37 lines (30 with data), 974 Bytes

 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
%VSD_IMPORTPHANTOM imports the surface of the VSD phantom.
%
% AUTHOR: Maximilian C. M. Fischer
% COPYRIGHT (C) 2023 Maximilian C. M. Fischer
% LICENSE: EUPL v1.2
%
clearvars; close all
addpath(genpath('..\src'))
VSD_addPathes('..\..\..\..\..\')
%% Settings
dicomDBpath = 'D:\sciebo\SMIR\VSDFullBodyBoneReconstruction';
phantomXLSX = '..\res\VSD_Phantom.xlsx';
visualizeSubjects = 1;
% Load phantom
phantom = readtable(phantomXLSX);
%% Import
NoS = size(phantom, 1);
patchProps.FaceAlpha = 0.5;
for s=1:NoS
% Import data
VSD_importData(phantom(s,:), dicomDBpath, {'EuropeanSpinePhantom'})
if visualizeSubjects
load(['..\..\Bones\' phantom.ID{s} '.mat'], 'B')
visualizeMeshes([B(1:end).mesh],patchProps)
anatomicalViewButtons('ASR')
set(gcf,'Name',['VSD: ' phantom.ID{s}],'NumberTitle','off')
end
end
% [List.f, List.p] = matlab.codetools.requiredFilesAndProducts([mfilename '.m']);
% List.f = List.f'; List.p = List.p';