Hi,
I save a file with .mha extension as follows.
writer = sitk.ImageFileWriter()
writer.SetFileName(filepath)
writer.SetUseCompression(compression)
writer.Execute(data)
Problem
- I am able to read the file via
sitk.ImageFileReader()
and also load it into 3D Slicer/MeVisLab. - But weirdly, when I move the file to another file location, I am unable to read the file using all the the three method mentioned above. I suspect the problem is with
writer.SetFileName()
, but I could not find any relevant issues/documentation to back this claim.
Platform
- Windows 10
- sitk.version == 2.0.0