forked from tkkarjal/magia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_qc.m
31 lines (28 loc) · 811 Bytes
/
input_qc.m
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
function input_qc(subject,input,frames)
dose = aivo_get_info(subject,'dose');
if(dose > 2.1)
weight = aivo_get_info(subject,'weight');
if(weight > 0)
if(max(input) > 1000)
input = input*0.001;
end
c = dose/weight;
input = input/c;
t = mean(frames,2);
tracer = aivo_get_info(subject,'tracer');
if(iscell(tracer))
tracer = tracer{1};
end
try
fig = calculate_input_boundaries(tracer);
title('Reference tissue input inspection');
hold on; plot(t,input,'k','LineWidth',2);
xlim([0 t(end)]);
add_to_qc_pic(subject,fig)
close(fig);
catch
warning('Could not create input qc figure.');
end
end
end
end