[MINC-users] mincreshape +direction

Vladimir S. FONOV vladimir.fonov at gmail.com
Wed Mar 18 00:04:41 EDT 2015


to convert to the "image dimension" use -dimsize yspace=-1


On Tue, Mar 17, 2015 at 6:10 PM, Alex Zijdenbos <zijdenbos at gmail.com> wrote:

> Hi Jessie,
>
> Having bitten by this (rather counter-intuitive I'll admit) behaviour more
> than once mysefl, I can answer your question: mincreshape's +/-direction
> options only work on image dimensions, which are the two fastest-varying
> dimensions. In your case, yspace is not an "image dimension" as it is the
> slowest-varyinhg dimension.
>
> You'll need to convert yspace to be an image dimension first - check the
> mincreshape man page and examples for how exactly to do that.
>
> -- Alex
>
> On Tue, Mar 17, 2015 at 10:22 PM, ting guo <jessieguo80 at hotmail.com>
> wrote:
>
> > Dear Minc Users,
> > I was trying to use mincreshape to flip a image to give positive yspace,
> > but it didn't work. The following are what I did and what I got as
> results.
> > As you can see, the image remains unchanged. Am I missing certain
> important
> > options? How can I flip the image and have positive yspace? I would
> really
> > appreciate your suggestions.
> > Thank you very much!
> > Jessie
> > $ mincinfo ImageA.mnc
> >
> >
> >
> >
> >
> >
> >
> > file: ImageA.mnc
> > image: unsigned short 0 to 4095
> > image dimensions: yspace zspace xspace
> >     dimension name         length         step        start
> >     --------------         ------         ----        -----
> >     yspace                    128           -1      13.7688
> >     zspace                    192     -1.04167      115.005
> >     xspace                     88     -1.04167      38.0225
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > $ mincreshape +ydirection -unsigned -short ImageA.mnc ImageB.mnc
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Copying
> >
> chunks:................................................................................................................................Done.
> >
> > $ mincinfo ImageB.mncfile: ImageB.mncimage: unsigned short 0 to
> 65535image
> > dimensions: yspace zspace xspace    dimension name         length
> >  step        start    --------------         ------         ----
> > -----    yspace                    128           -1      13.7688
> zspace
> >                   192     -1.04167      115.005
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >     xspace                     88     -1.04167      38.0225
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> >
> >
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>



-- 
Best regards,

 Vladimir S. Fonov ~ vladimir <dot> fonov <at> gmail <dot> com


More information about the MINC-users mailing list