[MINC-users] permuting dimension
Soren Christensen
sorench at gmail.com
Thu Mar 1 02:13:27 EST 2007
Thanks again!
1. worked - minctoraw, rawtominc and a minccopyheader (copies header from
another minc) followed by reediting the step sizes solved it.
Cheers
Soren
On 3/1/07, Andrew Janke <a.janke at gmail.com> wrote:
>
> Two methods...
>
> 1. (what you suggest, minctoraw and then back in).
>
> 2. Evil tricks with mincedit using the editor argument in which you
> specify the editor as sed or the likes.
>
> ie:
>
> mincedit foo.mnc "sed -e 's/xspace/yspace/'"
>
> Note that I haven't checked the above! And of course you will need to
> use an intermediate step to swap dimensions.
>
>
> a
>
> On 3/1/07, Soren Christensen <sorench at gmail.com> wrote:
> > Hi,
> > Is there an easy way to permute dimension of a minc file or is it
> necessary
> > to extract the raw data and re-generate the file.
> > I have a few perfusion dicom data sets where it seems the dicom header
> is
> > simply wrong - so i get something like this:
> > dimension name length step start
> > -------------- ------ ---- -----
> > time 40 unknown unknown
> > yspace 12 9.1 -123.327
> > zspace 128 -1.875 -16.2219
> > xspace 128 -1.875 -120.938
> >
> > yspace and zspace are swapped around (z is indeed the lowest res
> dimention)
> > so basically my question is how do I unswap them in the easiest way?
> >
> > Thanks
> > Soren
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> >
>
>
> --
> Andrew Janke (a.janke at gmail.com || http://a.janke.googlepages.com/)
> Canberra->Australia +61 (402) 700 883
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
More information about the MINC-users
mailing list