> I used the command spm_vol_minc to view the info of a .mnc file. The
> resolution is 128x128, slices 13, volumes 120. But the spm_vol_minc
> give me a 128 128 13 1024 matrix. Please tell me the meaning of this
> matrix. thanks.
The spm_vol utility just works with one 3D volume at a time, and I'm afraid it
doesn't handle MINC files with multiple volumes especially well. You can get
more of the info about your MINC file from the *.private.cdf field, although
it may take a while to interpret it.
The *.dim field that you are looking at contains the dimensions of the first
volume. The first three fields are the x, y and z dimensions, whereas the
last field (1024) indicates that the data are byte-swapped int16.
> P.S. How to convert a .dcm or .analyze data set to a .mnc file. I
> tried to use the perl script dicom_to_mnc and ana2mnc, but they did
> not work. thanks
I know nothing about these perl scripts I'm afraid. All I know is what I've
found at the BIC web site (
http://www.bic.mni.mcgill.ca/software/distribution/ ). When I did the
conversions of the old templates etc to MINC, I used the raw2minc command (on
left-right flipped versions of) the old SPM99 data. The command lines took a
form similar to:
rawtominc -transverse -byte -unsigned -range 0 255 -real_range 0 1 -orange 0
255 -xstep 2 -ystep 2 -zstep 2 -xstart -90 -ystart -126 -zstart -72 -xdircos
1 0 0 -ydircos 0 1 0 -zdircos 0 0 1 -nomodality apriori/gray.mnc 91 109 91 <
apriori/gray.img
You would probably need to change this for your data though.
Best regards,
-John
|