-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetOrientationDigpts.m
36 lines (23 loc) · 1.04 KB
/
setOrientationDigpts.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
32
33
function [refpts, headvol, headsurf, pialsurf, labelssurf, probe, fwmodel, imgrecon, hbconc] = ...
setOrientationDigpts(digpts, refpts, headvol, headsurf, pialsurf, labelssurf, probe, fwmodel, imgrecon, hbconc)
if isempty(digpts.orientation)
return;
end
refpts.orientation = digpts.orientation;
refpts.center = digpts.center;
headvol = saveHeadvolOrient(headvol, digpts);
headsurf.orientation = digpts.orientation;
headsurf.center = digpts.center;
pialsurf.orientation = digpts.orientation;
pialsurf.center = digpts.center;
labelssurf.orientation = digpts.orientation;
labelssurf.center = digpts.center;
probe.orientation = digpts.orientation;
probe.center = digpts.center;
fwmodel.orientation = digpts.orientation;
fwmodel.center = digpts.center;
fwmodel.headvol.orientation = digpts.orientation;
imgrecon.orientation = digpts.orientation;
imgrecon.center = digpts.center;
hbconc.orientation = refpts.orientation;
hbconc.center = refpts.center;