[MINC-users] How to use rawtominc with multiple files

Andrew Janke a.janke at gmail.com
Wed Dec 14 09:24:51 EST 2005


Hi Ed,

presuming you have 100 "slices" and they are sorted in alphabetic
order this will do the trick:

   cat *.ids | rawtominc -coronal -short -signed \
   -xstep 0.89843 -ystep 1.5 -zstep -0.89843 \
   -mri -origin 0 0 0 -scan_range  -clobber
   -swap_bytes  mydata.mnc  1 256 256


a

On 14/12/05, Ed Gronenschild <ed.gronenschild at mi.unimaas.nl> wrote:
> Hi list members,
>
> I don't know how to convert a list of 124 raw image files
> representing a coronal volume stack
> with 124 slices, where each slice corresponds to a file, into a
> single minc file by means of rawtominc.
>
> For a single file I use the following
>
> rawtominc -coronal -short -signed -xstep 0.89843 -ystep 1.5 -zstep
> -0.89843 -mri -origin 0 0 0
> -scan_range  -clobber -swap_bytes -input 1128000MR96.ids  mydata.mnc
> 1 256 256
>
> That of course will only result in a single slice stack.
>
> System: Mac G5 OS X.3 and X.4
>
> Kind regards,
>
> Ed
>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>


--
Andrew Janke      (a.janke at gmail.com || www.cmr.uq.edu.au/~rotor)
Canada->Montreal                                   Cell: +1 (514) 924 2012



More information about the MINC-users mailing list