[MINC-users] minc2dicom ?
Simon Fristed Eskildsen
se at hst.aau.dk
Thu Oct 19 06:09:50 EDT 2006
Thanks for the tip Andrew. dicom2 didn't like png input, so I ended up
with the following:
for i in `seq 0 $slices`; do
mincpik -scale 1 $infile tmp.rgb
mv tmp.rgb tmp.raw
dicom2 -d --size=$cols:$rows tmp.raw
dcm2v tmp.raw.dcm -o $prefix\_$i.v
done
Simon
Andrew Janke wrote:
>> I'm stuck with some image conversion problems. I need to convert minc
>> into the vista format. I can convert dicom to vista, but I'm not sure if
>> there is a tool for converting minc into dicom.
>> Maybe I'll have to write some minc2vista code, but I really hope I don't.
>> Any suggestions?
>>
>
> Conversion to DICOM is somethat that I myself never plan to support or
> even implement. The main reason being that there is (paradoxically)
> no DICOM standard for the sort of thing we do.
>
> However my suggestion would be something like this:
>
> for i in `seq 0 <nslices>`;
> do
>
> mincpik infile.mnc tmp.png;
> dicom2 tmp.png out_$i.dcm;
> done
>
> I dont have the syntax for dicom2 right but you can get it from here:
>
> http://www.barre.nom.fr/medical/dicom2/
>
>
>
More information about the MINC-users
mailing list