forked from BiomedNMR/arrShow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.m
41 lines (33 loc) · 1.36 KB
/
README.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
34
35
36
37
38
39
40
41
% Copyright (C) 2009-2013 Biomedizinische NMR Forschungs GmbH
% http://www.biomednmr.mpg.de
% Author: Tilman Johannes Sumpf <[email protected]>
%
% Distributed under the Boost Software License, Version 1.0.
% (See accompanying file LICENSE_1_0.txt or copy at
% http://www.boost.org/LICENSE_1_0.txt)
%% before the first run, we need to register some paths for arrayShow
% (this needs to be executed only once from within the arrayShow base folder)
disp('Adding arrShow folders to path');
arrShow.registerPaths();
%% Example: %%%%%%%%%%%%%%%%%%%%%
% create multi-echo, multi-frame, mutli-coil testdata
data1 = createMultiframeTestphan;
% do a standard Fourier reconstruction
img1 = asDataClass.mrIfft(data1);
% notice that the data is a 5-dimensional array with
% size(img1, 1) = 64 = read direction
% size(img1, 2) = 64 = phase direction
% size(img1, 3) = 16 = echoes
% size(img1, 4) = 30 = movie frames
% size(img1, 5) = 4 = coils
disp(size(img1));
% store some informations in a parameter struct
par.patient = 'Phantom';
par.study = 'Test';
par.code = 1.23;
%% display the images with arrayShow
as(img1, 'info', par);
%...try using the mouse wheel or the + and - keys to cycle through the different echoes.
% The windowing can be changed by pressing the 3rd mouse button.
% Doubleclick to reset windowing ...
%