# How to contribute my Matlab coding into 3D Slicer

**URL:** <https://discourse.slicer.org/t/how-to-contribute-my-matlab-coding-into-3d-slicer/33765>\
**Category:** Development\
**Tags:** segmentation, extensions-manager, dicom, matlab, 3d-model\
**Created:** [January 14, 2024, 9:06am UTC](https://discourse.slicer.org/t/how-to-contribute-my-matlab-coding-into-3d-slicer/33765 "2024-01-14T09:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [January 14, 2024, 9:06am UTC](https://discourse.slicer.org/t/how-to-contribute-my-matlab-coding-into-3d-slicer/33765/1 "2024-01-14T09:06:31Z")

</div>

Dear All,

I have some code in Matlab syntax. This is about the segmentation tumor on Iodine-131 SPECT imaging.

Anyone know how to contribute my coding into 3D Slicer?

What I meant is I want put into the extension manager.

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [January 14, 2024, 6:15pm UTC](https://discourse.slicer.org/t/how-to-contribute-my-matlab-coding-into-3d-slicer/33765/2 "2024-01-14T18:15:12Z")

</div>

As far as I know you only have two ways:

1. Use [this extension](https://www.slicer.org/w/index.php/Documentation/Nightly/Extensions/MatlabBridge) as interface between Slicer and the Matlab script
2. Port your code to Python and make a normal Python scripted module Slicer extension (maybe you could ask ChatGPT to do it for you)

Hope it helps

---

<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:** [January 15, 2024, 5:33am UTC](https://discourse.slicer.org/t/how-to-contribute-my-matlab-coding-into-3d-slicer/33765/3 "2024-01-15T05:33:29Z")

</div>

I would recommend the second approach (ask ChatGPT or Microsoft Copilot to convert your Matlab functions to Python) to avoid Matlab licensing hassles.
