These tools read and visualize Analyze MRI data files (.hdr, .img). Further work will create functions to write files. See http://eeg.sourceforge.net/ for more information and regular updates.
Darren Weber (2019). MRI Analyze tools (https://www.mathworks.com/matlabcentral/fileexchange/1878-mri-analyze-tools), MATLAB Central File Exchange. Retrieved .
thank you!It is a very useful tool!
I have been trying to use the avw_img_read function to read in the eigenvalues and eigenvectors from a Diffusion Tensor Image. I appended 12 of these files (3 files for eigenvalues, 9 for eigenvector components) into a single volume in Analyze before exporting it as a .hdr and .img file for use with this code. That is, there are 12 224x224x65 files appended into one. This code doesn't seem to recognize that--the result is instead just one 224x224x65 double (labeled 'img' by default) in the avw struct. How can I get the code to recognize the other 11 data files in that one .img/.hdr file?
Thank you very much. Great Code, saved lot of time.
I've found that
"hist.exp_time = sprintf('%2d-%2d-%2.0f',datime(4),datime(5),datime(6));"
doesn't make up the 10 bytes required, so I had to modify it to "%2.1f". But sometimes I still get a 347 byte hdr file. I'm not quite sure why that happens...
Thanks for these programs, I would never have been able to do this from scratch.
How to use these files ?
Extremely well made. Finding these files has saved me 2 weeks of programming.
Very helpful for writing Analyze 7.5 format.
very helpful to learn the analyse formats. could you please give suggestion to convert thses .img format to .tiff format?
The file handling alone makes this a very useful tool.
This revision incorporates important modifications to the handling of flipped orientations. It also contains an updated viewer and some modifications to work on matlab 5.
Inspired: Tools for NIfTI and ANALYZE image