Help with creating image input for imaging toolbox
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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');
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Medical Physics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!