-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnhpMpiSwapDimensions.m
More file actions
29 lines (28 loc) · 931 Bytes
/
nhpMpiSwapDimensions.m
File metadata and controls
29 lines (28 loc) · 931 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
function ni = nhpMpiSwapDimensions(ni,swapType)
%
% Sawp the dimensions of the nifti file created by loading a series of
% analzuse fiels from the rbuker scanner.
%
% ni = nhpMpiSwapDimensions(ni,swapType)
%
% This might not be used. Still work in progress.
%
% Franco (c) Stanford Vista Team 2012
switch swapType
case 'x'
case 'y'
[ni.data] = applyCannonicalXform(ni.data, img2std, ni.pixdim, insertMarkerFlag);
case 'z'
ni.data = applyCannonicalXform(ni.data, img2std, ni.pixdim, insertMarkerFlag);
case 'xy'
ni.data = applyCannonicalXform(ni.data, img2std, ni.pixdim, insertMarkerFlag);
case 'xz'
ni.data = applyCannonicalXform(ni.data, img2std, ni.pixdim, insertMarkerFlag);
case 'yz'
ni.data = applyCannonicalXform(ni.data, img2std, ni.pixdim, insertMarkerFlag);
case 'xyz'
ni.data = applyCannonicalXform(ni.data, img2std, ni.pixdim, insertMarkerFlag);
otherwise
keyboard
end
end