I’m working on a Unity project and I need a related .mhd file along with an .xml file. However, when I export the .mhd image from Slicer3D, I only get the .mhd and .raw files.
Does anyone know how I can generate the .xml file that I need? Should this file be generated from the .raw file, or is there another way to create it from the data exported by Slicer3D?
An image is stored in a single .mha file; or in an .mhd and a .raw file.
There should be no need for any .xml file, because all metadata, including any custom metadata can be stored in the .mha or .mhd file itself. Maybe you worked with NIFTI file format before, which is so limited that it requries an xml sidecar to store custom metadata.
Thank you for your response! I actually managed to solve the issue—I found the .xml file I needed, and it turns out it’s a configuration file specific to my project. Your explanation about the .mhd and .mha files was really helpful, though, and I appreciate you taking the time to clarify that!