Thank you for the note, Jimmy.
First, sorry that I didn't write it clearer in my previous posting. ImageJ is a freeware from NIH (http://rsbweb.nih.gov/ij/index.html) that have numerous users in medical imaging community. ImageJ has a plugin (http://rsbweb.nih.gov/ij/plugins/index.html) that can open/save image in Analyze format. I was trying to save an MRI image, after some processing using Matlab scripts, in Analyze format and view it using ImageJ.
I tried your very nice example, it works well. Yet, it is still not clear to me why ImageJ cannot read the output file. Using datatype=64, ImageJ can read the file, but this is not the correct datatype and there are sinusoidal modulations across the image.
Thank you.
Wen-Tung
Hi, Jimmy:
I tried to save a comlpex 2D matrix (an MRI image) in Analyze format using your scripts:
datatype=32;
ana = make_ans(myMat,[],[],datatype);
save_untouch_nii(ana,'C:\Data\test');
When trying to read the test.img using ImageJ, it gave error message "Data type 32 not supported".
Is it that I didn't use the scripts correctly?
Thank you.
Wen-Tung
14 Sep 2009
2D Fourier shift
Cyclically shift a 2D matrix or image using the Fourier shift theorem.
Author: Tim
Works great. Concise code.
03 Feb 2009
mriphantom
Simulation of raw MRI data from k-space coordinates using the Shepp and Logan head phantom function.
Author: Ronald Ouwerkerk
Very nice work. However, there are some issues. The contrast in the image reconstructed from feeding a Cartesian trajectory to mriphantom is different from feeding it a spiral trajectory.