this will read in a single volume.
P = 'yourfilenamehere.img';
ahdr = spm_vol(P);
avol = spm_read_vols(ahdr);
modify as need be.
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Robert C. Welsh, PhD
Research Investigator
Department of Radiology
University of Michigan
(734) - 764 - 2412 (fax)
[log in to unmask]
>>> "farzaneh s.mostafaie" <[log in to unmask]> 10/05/05 9:18 AM >>>
Hi,
I am sure that this question was asked many times before ,but I could not find the direct answer, Here is my question:
If I want to work with 'img' files (generally with any 3D format images),
What should I type in MATLAB to get these files as a 3D matrix and do my own calculations on it ? I want to bring the image into workspace of MATLAB and access to
Each voxel and its value in the image.
Thanks a lot for your guides.
Best wishes,
Farzaneh*
Send instant messages to your online friends http://uk.messenger.yahoo.com
**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.
|