Uncompress failed when reading image via sitk.ReadImage

I’m trying to read an image that I downloaded from RIRE website with sitk.ReadImage() but I get “Uncompress failed” message and the resulting image intensity values looks wrong.

I have also tried loading the image inside 3D slicer, but it is not able to show it correctly too.

The images came in .tar.gz format and I extracted them in Ubuntu to get the mhd + bin files.

I have put both the compressed and uncompressed files in the following link in my dropbox

SimpleITK notebook uses RIRE data set for many of the tutorials but some of the RIRE data (patient 109, attached in the link) looks wrong.

I appreciate any help
Thank you

You can extract .bin.Z (header points to .bin)

https://drive.google.com/file/d/15XsWVI8opRlMUxBKV5MBmvw4eCtk-zEI/view?usp=sharing

Sincerely

3 Likes

Thank you
It was the solution

1 Like