[MINC-users] Usage of mincconcat
Andrew Janke
a.janke at gmail.com
Wed Sep 4 23:02:28 EDT 2013
Hi Andrew,
> I'm trying to use mincconcat to stitch some images together.
>
> For example, I have A.mnc:
>
> dimension name length step start
> -------------- ------ ---- -----
> yspace 1 0.1 -5.7
> zspace 750 0.00295238 15.5531
> xspace 750 -0.00295238 33.3619
>
> and B.mnc:
> dimension name length step start
> -------------- ------ ---- -----
> yspace 1 0.1 -5.7
> zspace 750 0.00295238 15.5531
> xspace 750 -0.00295238 31.1476
>
> I've tried concating them along x with something like this:
>
> mincconcat -concat_dimension xspace A.mnc B.mnc C.mnc
>
> This comes back with an error:
> "Don't use an image dimension as a loop dimension."
>
> Is there a way to concat these images to make one image with
> xspace:length=1500?
Indeed there is. mincconcat in general will only work if you are
concat'ing on the slowest varying dimension of a file. Thus before you
concat do this:
mincreshape -dimorder xspace,yspace,zspace A.mnc A_res.mnc
mincreshape -dimorder xspace,yspace,zspace B.mnc B_res.mnc
At which point:
mincconcat -concat_dimension xspace A_res.mnc B_res.mnc C.mnc
Should get you what you are after.
a
More information about the MINC-users
mailing list