How to convert nrrd file to xml+hdr
Show older comments
Dear Expert,
I have nrrd file after done segmentation using 3D Slicer. I want convert it to xml and hdr file. The example of xml and hdr file as attached. The original file (dicom) also I have as attached. you can get all the data in this link.
Anyone can help me to convert nrrd file to xml+hdr
Please help me
Answers (1)
vidyesh
on 27 Oct 2025
0 votes
Hello Mohd,
I have not taken a look at your files yet, but the below functions should help you achieve te conversion:
1) NNRD Format File Reader: https://www.mathworks.com/matlabcentral/fileexchange/50830-nrrd-format-file-reader?s_tid=ta_fx_results
2) There are multiple ways to create an XML file, I feel this would be the best in your case:
Categories
Find more on DICOM Format in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!