[MINC-users] mincreshape +direction

Alex Zijdenbos zijdenbos at gmail.com
Tue Mar 17 18:10:12 EDT 2015


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
>
>


More information about the MINC-users mailing list