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

Ed Gronenschild ed.gronenschild at mi.unimaas.nl
Thu Dec 15 04:46:17 EST 2005


Hello Andrew,

Thanks for the trick, it works if I change the value for <size3> to 100
instead of 1.
So, to convert a list of say 100 files into a single mnc file the 
command
would be
cat *.ids | rawtominc ....... mydata.mnc 100 256 256

Thanks again,

Ed

>
> Message: 11
> Date: Wed, 14 Dec 2005 09:24:51 -0500
> From: Andrew Janke <a.janke at gmail.com>
> Subject: Re: [MINC-users] How to use rawtominc with multiple files
> To: MINC users mailing list <minc-users at bic.mni.mcgill.ca>
> Message-ID: <d747ed50512140624q6a94933dk at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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
>>



More information about the MINC-users mailing list