# can any body help me how to open .mhd format images in matlab with .raw header

**URL:** https://discourse.slicer.org/t/can-any-body-help-me-how-to-open-mhd-format-images-in-matlab-with-raw-header/6092
**Category:** Support
**Created:** [March 10, 2019, 6:33pm UTC](https://discourse.slicer.org/t/can-any-body-help-me-how-to-open-mhd-format-images-in-matlab-with-raw-header/6092 "2019-03-10T18:33:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hira](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hira](https://discourse.slicer.org/u/hira)
#### Post date: [March 10, 2019, 6:33pm UTC](https://discourse.slicer.org/t/can-any-body-help-me-how-to-open-mhd-format-images-in-matlab-with-raw-header/6092/1 "2019-03-10T18:33:43Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [March 10, 2019, 6:47pm UTC](https://discourse.slicer.org/t/can-any-body-help-me-how-to-open-mhd-format-images-in-matlab-with-raw-header/6092/2 "2019-03-10T18:47:06Z")

</div>

There is a Matlab toolbox called [Read Medical 3D Data](https://www.mathworks.com/matlabcentral/fileexchange/29344-read-medical-data-3d) that can help reading mha/mhd+raw files.

There is also a [reader](https://github.com/PlusToolkit/PlusMatlabUtils/blob/master/MatlabMetafileIO/mha_read_volume.m) within the PlusMatlabUtils repo within the PlusToolkit github organization.

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [March 10, 2019, 7:30pm UTC](https://discourse.slicer.org/t/can-any-body-help-me-how-to-open-mhd-format-images-in-matlab-with-raw-header/6092/3 "2019-03-10T19:30:51Z")

</div>

The fact that you wrote to this forum suggests that you want to do at least some of your workflow in Slicer. Can I ask what is that?

Also you can use the Matlab Bridge extension to do some of your processing in Matlab from Slicer:  
[https://www.slicer.org/wiki/Documentation/Nightly/Extensions/MatlabBridge](https://www.slicer.org/wiki/Documentation/Nightly/Extensions/MatlabBridge)
