[MINC-users] ensuring that mincreshape produces positive axes

Andrew Janke a.janke at gmail.com
Thu Jul 27 10:13:01 EDT 2006


Take a look at man mincreshape, there is a "extra thing" that you have
to do to force mincreshape to flip the slice dimension.

This will always work (and also make everything zyx ordered.

      mincreshape \
      +direction \
      -dimorder zspace,yspace,xspace \
      -dimsize xspace=-1 \
      -dimsize yspace=-1 \
      -dimsize zspace=-1 \
      in.mnc out.mnc


a



On 7/27/06, Audette, Michel <Michel.Audette at medizin.uni-leipzig.de> wrote:
> Hi everyone,
>
> I'm playing with minc volumes in Vtk, and I found that Marching Cubes seems to crash with negative axes. To resolve this, I tried mincreshape, only to get 2 out 3 axes become positive.
>
> maudette at icaw164201:~/research/source/work> mincreshape -clobber +direction becken_cancellous_crop3_blur.mnc becken_cancellous_crop3_blur_plus.mnc
> Copying chunks:..................................................................................................................................................................................................................................................................................................Done.
> maudette at icaw164201:~/research/source/work> mincinfo becken_cancellous_crop3_blur_plus.mnc
> file: becken_cancellous_crop3_blur_plus.mnc
> image: unsigned byte 0 to 255
> image dimensions: zspace yspace xspace
>     dimension name         length         step        start
>     --------------         ------         ----        -----
>     zspace                    290    -0.732422     -1423.84
>     yspace                    209     0.732422     -217.525
>     xspace                    191     0.732422     -33.7188
>
> Is there a trick to achieving this, or do I have to use mincresample and re-specify start points?
>
> Cheers,
>
> Michel
>
> _______________________________________________
> 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/)
Canada->Montreal                                   Cell: +1 (514) 924 2012


More information about the MINC-users mailing list