Help with creating image input for imaging toolbox

1 Ansicht (letzte 30 Tage)
Matthew Joyner
Matthew Joyner am 27 Apr. 2018
Hello,
I am trying to do some MRI imaging analysis using a fat/water separation toolbox. The toolbox wants data in the form of:
imDataParams.images: acquired images, array of size[nx,ny,1,ncoils,nTE]
imDataParams.TEs: echo times (in seconds)
imDataParams.fieldStrength: (in Tesla)
imDataParams.isclockwise = true/false
I cannnot put all of the picture data into an array with the other imputs, for example, suppose 'Picture' = the image I took. I cannot put [Picture, 1,1,3] without an error. I can make it into a cell but the program seems to want a structure. What should I do if I want to put the picture data into an array with nz, ncoils, and nTE?
picture = imread('MRIm1.jpg');
save('pictureim.mat', 'picture');
PictureIm = im2double(picture);
save('picturedbl.mat', 'PictureIm');
imDataParams.images = [PictureIm, 1, 1, 3];
imDataParams.TE = [.0028,.0038,.0048];
imDataParams.FieldStrength = 9.4;
imDataParams.PrecessionIsClockwise = 1;
save('Picture2.mat', 'imDataParams');

Antworten (0)

Kategorien

Mehr zu Medical Physics finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by