Convert DICOM images to JPEG
Medical images, e.g. X-Rays, are commonly stored in the DICOM format. By default you won’t be able to open these in Ubuntu, but there is actually a package in the repositories which lets you convert DICOM image files to more common formats, e.g. JPEG, PNG or bitmap.
sudo apt-get install dcmtk
dcmj2pnm +oj img00000 img00000.jpg
The above commands will install the dcmtk package and take a DICOM image img00000 and convert it to lossy JPEG image img00000.jpg. The dcmj2pnm
command also supports other output formats, e.g. PNG. To print the help text simply run
dcmj2pnm -h
There are other commands in the dcmtk package, e.g. dcmcjpeg
which provides a lot of JPEG encoding options.
thanx! works like a charm