[MINC-users] ensuring that mincreshape produces positive axes
Audette, Michel
Michel.Audette at medizin.uni-leipzig.de
Thu Jul 27 10:25:56 EDT 2006
Hi Andrew,
thanks for both this response and the previous one on mincmorph, which I failed to answer.
You're the cornerstone of minc-users.
I'll give it a try, although I need x-y-z ordering.
Cheers,
Michel
-----Original Message-----
From: minc-users-bounces at bic.mni.mcgill.ca on behalf of Andrew Janke
Sent: Thu 7/27/2006 4:13 PM
To: MINC users mailing list
Subject: Re: [MINC-users] ensuring that mincreshape produces positive axes
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
_______________________________________________
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