-
Notifications
You must be signed in to change notification settings - Fork 0
/
brukerRawToImages.m
23 lines (19 loc) · 999 Bytes
/
brukerRawToImages.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function brukerRawToImages(folderPath, experimentsFolders, gMaxBruker, filename)
% brukerRawToImages - Transform raw Bruker Images to niftis.
% It concatenates them in the order expressed with the experimentsFolders variable.
% Calculates the xps structure needed for the md-dmro toolbox.
% INPUTS:
% folderPath: Folder path of the bruker folder with the images
% experimentsFolders: vector of the desired folder to get the xps and
% concatenation done
% gMaxBruker: Max gradeint strength of the bruker system. Needed for the
% correct B-tensor calculation. Note: I am looking for a way
% to extract it fromparameters
% filename: file name for the nifti and xps soutput
% Author: Ricardo Rios
% email: [email protected]
xps = xpsFromBrukerRaw(folderPath, experimentsFolders, gMaxBruker);
allData = extractDataFromBrukerRaw(folderPath, experimentsFolders);
save([filename '_xps'], 'xps')
niftiwrite(allData,filename)
end