[MINC-users] minc2dicom ?
Andrew Janke
a.janke at gmail.com
Thu Oct 19 12:13:54 EDT 2006
> 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
Looks good, although I suspect you will want to add a
-slice $i
to the mincpik line. Also I think you can do this with Imagemagick:
mincpik -slice $1 -scale 1 $infile RGB:tmp.raw
and do away with the mv command. 'man ImageMagick' will tell more.
--
Andrew Janke (a.janke at gmail.com || http://a.janke.googlepages.com/)
Canada->Montreal Cell: +1 (514) 924 2012
More information about the MINC-users
mailing list