i have tool in linux called img2dcm convert jpg dicom (dcm) format follows: img2dcm image-001.jpg image-001.dcm (i've tried use python based script doesn't works...)
i have 100 images , doing hand nightmare...
i'm wondering if possible bash script loop i:1:100 convert each image-i.jpg ? (notice couldn't image-1 should image image-001, 002...010..020..099 until 100...).
thank in advance... .
here's example:
for in {1..100} j=$(printf "%03d" $i) img2dcm image-$j.jpg image-$j.dcm done
Comments
Post a Comment