Failed to load .hdr file

Hello everyone, I have a question, I can’t upload data to the 3D slicer, although I’ve searched a lot, but I still don’t understand why it doesn’t work. I am attaching my error and would be very happy if someone could help me.

Operating system:
Slicer version:
Expected behavior:
Actual behavior:
error

Please check the application log (menu: Help / Report a bug) to see if you find any more hints about what goes wrong.

The .hdr extension typically refers to legacy Analyze/Nifti file format, but the extension may also be used for proprietary file formats. Where does this .hdr file comes from? Do you know what file format is used?

1 Like

Thanks a lot for your quick reply. To be honest I did not get the report bug properly.
I downloaded a dataset and this hdr files are CT images that i wanted to load in 3D slicer.
The file format is zip and when you open the zip file there are image, hdr and cls files.

report debug
I attach the report debug.

bug

I’ve never heard of .cls files, so probably this is a custom format you will need to research in order to figure out what’s in the file and then maybe we can help you load it.

1 Like

Where do these images come from? Have you acquired yourself? Using what equipment? If you received it from somewhere, could you ask it in any standard file format, not the equipment-specific custom format?

1 Like

LaTeX software installations typically include some CLS files that can be used as document templates.
Cls included text and hdr files included CT images.

A preclinical micro-computed tomography database including 3D whole body organ segmentations (figshare.com)

Okay, then yes, the .hdr/.img pairs are probably analyze files and they should load in Slicer if you put them in the same folder and load the .hdr file, but the error log indicates some failure. Maybe they are so old ITK no longer recognizes them.

My Professor sent me the link and he can open the files in 3d Slicer but i can not. That’s why i am here for asking help, although i searched a lot but i could not find the solution.

Can you report what versions of Slicer you and your professor are using?

But it works for my professor, for me not. Do you have any suggestion?

For me 5.0.3, i have to ask him

My professor has also 5.0.3

Can you easily share one example (.hdr/img pair) that works for your professor and not for you? (e.g. put it on dropbox or google drive and share the link)

Also please report what OS you are both using.

1 Like

Okay I will update you soon.

I’ve checked the data set and it indeed contains Analyze images. They are loaded into Slicer without problems.

Make sure to have the entire image (.hdr and .img files) available in the folder and open the .hdr file.

image

When you load the segmentation (Organ*.hdr file) then choose Segmentation in the Description column to indicate that it is a segmented structure (it will make it appear nicely overlaid on the image).

The .cls files describe label names and colors. You can manually edit the file in any text editor to bring it into Slicer’s .ctbl format. If you save that .ctbl file and load it into Slicer then after that when loading the segmentation file you can choose that .ctbl file in the Options column, which will make the segmentation loaded with correct segment names and colors.

1 Like

Thank you very much for your time and help.
Now it works properly. Thanks a lot for your complete explanation.

1 Like