forked from jaimebarran/mapVBVD
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.m
More file actions
24 lines (19 loc) · 813 Bytes
/
example.m
File metadata and controls
24 lines (19 loc) · 813 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
%%
raw_data = ['/Users/cag/Documents/Dataset/' ...
'20241002_MRIAcquisition_Yiwei/PrePilot_YiweiJia/Raw/' ...
'meas_MID00273_FID178443_BEAT_LIBREon_T2_eye_(23_09_24).dat'];
twix = mapVBVD_JB(raw_data);
%%
% return all image-data
image_data = twix.image();
% return all image-data with all singular dimensions removed/squeezed:
image_data = twix.image{''}; % '' necessary due to a matlab limitation
% return only data for line numbers 1 and 5; all dims higher than 4 are
% grouped into dim 5):
image_data = twix.image(:,:,[1 5],:,:);
% return only data for coil channels 2 to 6; all dims higher than 4 are
% grouped into dim 5); but work with the squeezed data order
% => use '{}' instead of '()':
image_data = twix.image{:,2:6,:,:,:};
%%
image_data = twix.image.unsorted(); % no slicing supported atm