# MatlabBridge generated module without data volume format conversion

**URL:** <https://discourse.slicer.org/t/matlabbridge-generated-module-without-data-volume-format-conversion/6865>\
**Category:** Development\
**Created:** [May 21, 2019, 9:25am UTC](https://discourse.slicer.org/t/matlabbridge-generated-module-without-data-volume-format-conversion/6865 "2019-05-21T09:25:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpgao](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@wpgao](https://discourse.slicer.org/u/wpgao)\
**Post date:** [May 21, 2019, 9:25am UTC](https://discourse.slicer.org/t/matlabbridge-generated-module-without-data-volume-format-conversion/6865/1 "2019-05-21T09:25:04Z")

</div>

Hi Guys,

We used matlabbridge to develop our own module. The method we have developed using matlab and only support .nii file. However, with the module generated by matlabbridge according to the tutorial, it seems that the module convert the data volume to “.nrrd” format first and then set the nrrd volume to the function. If so, is there any way to skip the conversion.  
Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 21, 2019, 5:09pm UTC](https://discourse.slicer.org/t/matlabbridge-generated-module-without-data-volume-format-conversion/6865/2 "2019-05-21T17:09:59Z")

</div>

Slicer can write the image in .nii format as well, just change the file extension in the module .xml file from nrrd to nii.

---

<div class="post-metadata">

**Author:** ![wpgao](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@wpgao](https://discourse.slicer.org/u/wpgao)\
**Post date:** [May 22, 2019, 9:31am UTC](https://discourse.slicer.org/t/matlabbridge-generated-module-without-data-volume-format-conversion/6865/3 "2019-05-22T09:31:06Z")

</div>

> [@lassoan](#):
>
> can write the image in .nii format as well, just change the file extension in the module .xm

Hi Lasso,

It works! Thanks!
