[MINC-users] Usage of mincconcat

Andrew Janke a.janke at gmail.com
Thu Sep 5 08:58:03 EDT 2013


On 5 September 2013 22:50, Andrew Wood <andrew at biospective.com> wrote:
> Thanks for that. What I've actually done is split a large image into tiles
> or cubes for processing. Now that I've got processed hyperslabs, I'm
> stitching them back together. From what you described, I'll have to reshape
> the slabs for concatting into rows, then reshape the rows for concatting
> into slices, then reshape the slices for concatting back to the full volume.
>
> I suppose there's no way to stitch them without taking a big reshaping I/O
> hit?

This is only the case if you are concatenating along a dimension that
is already in the file(s). If when you reshape you do this:

   mincreshape -dimrange yspace=100,0  3d.mnc y-100.mnc

to pull out y slice #100 you will remove the y dimension.

Then you can concat with:

   mincconcat -concay_dimension yspace y-100.mnc ....  3d.mnc

Note that in the above you will have to manually store the starts,
steps and direction cosines.

Or, just bash the volume back together ignoring start/step/etc and use
minccopy to overwrite the data in a copy of the original file.


a


More information about the MINC-users mailing list