I am trying to figure out how the Lossless Rice compression algorithm works on the following file. Here is a DICOM file.
Looking at the information I can see:
$ gdcmdump I160 | grep "Tamar Compression Type"
(07a1,1011) CS [LOSSLESS RICE ] # 14,1 Tamar Compression Type
I can open the image using TomoVision. The image is 512x512, 16bits (unsigned).
The compressed stream:
$ gdcmraw -t 07a1,100a I160 comp.raw
contains (hexdump comp.raw):
1A D5 F8 EB F2 77 A5 CE A3 54 D5 2A C0 5D AA 32...
But TomoVision seems to output a series of zeroes until byte 0x1DE. I can also use a command line tool: DICOMatic to process the file. However without a proper license, the generated file contains a waterwark. So only the first few bytes looks ok:
$ gdcmraw /tmp/I160.dcm /tmp/pixeldata.raw
$ hexdump /tmp/pixeldata.raw |less
Some more encoded files can be found here.