[MINC-development] weird minc 2 bug
Jonathan HARLAP
jharlap at bic.mni.mcgill.ca
Wed Jun 7 12:48:56 EDT 2006
Here's a neat one:
Take a CDF file, run it through mincconvert -2 to get the corresponding
HDF file. Now open both file in register (or just use
mincinfo/mincheader). You'll see that the dimension order is, as it
should be, identical.
Now, the fun part. Run mincinfo -dimnames on the two files, and observe
the different dimension order.
This fun bug is great in that it's a subtle little glitch in mincinfo,
but affects many little programs, such as mni-perllib's
MNI::MincUtilities::get_dimension_order()
Example output below.
Cheers,
J
% mincinfo m?.mnc
file: m1.mnc
image: signed__ short 0 to 4095
image dimensions: xspace zspace yspace
dimension name length step start
-------------- ------ ---- -----
xspace 124 1.4 -86.8
zspace 256 -1.01562 118.492
yspace 256 -1.01562 130.992
file: m2.mnc
image: signed__ short 0 to 4095
image dimensions: xspace zspace yspace
dimension name length step start
-------------- ------ ---- -----
xspace 124 1.4 -86.8
zspace 256 -1.01562 118.492
yspace 256 -1.01562 130.992
% mincinfo -dimnames m?.mnc
xspace zspace yspace
xspace yspace zspace
More information about the MINC-development
mailing list