# Proposed custom module for the extension repository

**URL:** <https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134>\
**Category:** Development\
**Created:** [August 22, 2020, 7:47pm UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134 "2020-08-22T19:47:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [August 22, 2020, 7:47pm UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134/1 "2020-08-22T19:47:43Z")

</div>

I hereby propose the [Path Reformat](https://github.com/chir-set/PathReformat) custom scripted module for bundling in the extension repository.

It is described there, repeating its objects would be superfluous in this post.

I believe it may be of interest for any physician dealing with vascular pathology. The primary intent is visual evaluation of cross-section of arterial segments that are not along the orthogonal axes.

 ![Screenshot](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/e/8ececf14fc683fdcaff26db6e2c4bcb6d4c1d335.jpeg)

I insist that this step is _not_ self-promotional.

The code is not written in stone, it may be changed as per your evaluation, within the limits of my coding skills.

I could not find an official way to propose a module or I missed it, so here it goes in the forum.

Lastly, the module dealt in [this topic](https://discourse.slicer.org/t/path-explorer-slicer-igt-does-not-save-trajectory/13132/3) suggested me that this custom module may not be disregarded. But I won’t mind if you consider that it’s not worthwhile.

Regards.

---

<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:** [August 22, 2020, 8:07pm UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134/2 "2020-08-22T20:07:24Z")

</div>

Thank you, this will be a very useful module. I would add it to the SlicerVMTK extension, as this feature is most commonly needed for vascular applications.

If you can send a pull request that adds this to SlicerVMTK extension then it’s great. If you don’t know how to do that then just let me know and I can do it for you.

We will need to decide on the final module name. “Path” word is not great, as we actually mean “curve”. It would be also useful to include “cross-section” in the name. Something like “Cross-section analysis” would be more clear, but if we find a simple and short bane that somehow includes “curve” as well then it is even better.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [August 22, 2020, 8:22pm UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134/3 "2020-08-22T20:22:54Z")

</div>

> [@lassoan](#):
>
> If you can send a pull request

I can manage that and will do it tomorrow morning.

> [@lassoan](#):
>
> “Path” word is not great

Well I chose ‘Path’ because it deals with marksups curves and VMTK centerlines, two different object types. We’ll change this module’s name. To which one… don’t know yet. Does it need to be changed before or after the pull request ?

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [August 23, 2020, 7:50am UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134/4 "2020-08-23T07:50:07Z")

</div>

> [@lassoan](#):
>
> the final module name

How about :

- Curve orthogonal {flow, analysis, navigation, reformat}
- Curve {flow, analysis, navigation, reformat}
- Cross-section {flow, analysis, navigation, reformat} ?

My preferred is Curve orthogonal navigation.

Would it need a complete change in file names and class names ? Or just self.parent.title ?

Last, I think it’s better to change everything before the pull request.

---

<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:** [August 23, 2020, 1:40pm UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134/5 "2020-08-23T13:40:01Z")

</div>

Yes, name change is quite invasive (module name, folder name, class name, various file names), so let’s finalize that before the pull request.

Slicer can do actual vascular navigation (with electromagnetically tracked catheters, using SlicerIGT extension), so I would reserve “navigation” word for that. It would also limit the module’s purpose to only navigate/view, and not to do any quantification or analysis.

I think flow is too restrictive (the tool can be used for things that don’t flow, such as bones, nerves, …).

Reformat and analysis both sound OK. Analysis may be better if we want to add more features not just reformat. For example defining points along the curve and measure distances between those points, computing optimal C-arm rotation angles (see requirements [here](https://discourse.slicer.org/t/how-to-make-fiducial-points-placed-in-curved-planar-reformatted-image-appear-in-the-original-image/12189/8)), measuring cross-section area, minimum/maximum radius (not just circular cross-section area), finding position of minimum/maximum diameter cross-sections, etc.

If we use “analysis” as last word then then I think only the “Cross-section” prefix would work with it (“Curve orthogonal analysis” would be a bit too confusing, and “Curve analysis” would be too general).

So, from the proposed combination, “Cross-section analysis” seems to be the most appropriate name. It is a bit broad, but the module will eventually do more than just position/orient slice view.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [August 23, 2020, 1:51pm UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134/6 "2020-08-23T13:51:21Z")

</div>

> [@lassoan](#):
>
> Cross-section analysis

OK, I’ll rename as such and do the pull request.

---

<div class="post-metadata">

**Author:** ![Romeo\_Guevara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/romeo_guevara/32/3539_2.png) [@Romeo\_Guevara](https://discourse.slicer.org/u/Romeo_Guevara)\
**Post date:** [August 25, 2020, 12:14am UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134/7 "2020-08-25T00:14:50Z")

</div>

Good evening, the module sounds fantastic, is it already in the Slicer module menu? good night

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [August 25, 2020, 6:49am UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134/8 "2020-08-25T06:49:28Z")

</div>

> [@Romeo\_Guevara](#):
>
> is it already in the Slicer module menu

No, it is still being worked on in a pull request.

---

<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:** [October 19, 2020, 1:59pm UTC](https://discourse.slicer.org/t/proposed-custom-module-for-the-extension-repository/13134/9 "2020-10-19T13:59:23Z")

</div>

A post was split to a new topic: [How to make my module available in the Extension manager?](https://discourse.slicer.org/t/how-to-make-my-module-available-in-the-extension-manager/14138)
