# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?page=27

[Latest](https://discourse.slicer.org/latest.md) · [Categories](https://discourse.slicer.org/categories.md) · [Tags](https://discourse.slicer.org/tags.md)

**Page:** 28

---

## [Make launcher with extension module](https://discourse.slicer.org/t/make-launcher-with-extension-module/32774)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 6\
**Last updated:** [November 27, 2023, 12:48pm UTC](https://discourse.slicer.org/t/make-launcher-with-extension-module/32774 "2023-11-27T12:48:21Z")

</div>

Hi all I am trying to create an application launcher with custom and built extionsion modules. I would like the modules loaded in slicer already when the custom application is installed by launcher. I found a similar …

---

## [Problems applying AutoThresholdMethod](https://discourse.slicer.org/t/problems-applying-autothresholdmethod/30281)

<div class="topic-metadata">

**Author:** [@Ikannuna](https://discourse.slicer.org/u/Ikannuna)\
**Replies:** 2\
**Last updated:** [November 27, 2023, 5:11am UTC](https://discourse.slicer.org/t/problems-applying-autothresholdmethod/30281 "2023-11-27T05:11:59Z")

</div>

Hello and good afternoon, Iam new to 3D Slicer and using it in a project for university. The goal is to segment DICOM bone scans automatically with python via the implemented AutoThresholdMethod’s Otsu, Iso Data, Maxim…

---

## [Change models color](https://discourse.slicer.org/t/change-models-color/32971)

<div class="topic-metadata">

**Author:** [@Santiago\_Cutiller](https://discourse.slicer.org/u/Santiago_Cutiller)\
**Replies:** 3\
**Last updated:** [November 26, 2023, 9:52pm UTC](https://discourse.slicer.org/t/change-models-color/32971 "2023-11-26T21:52:41Z")

</div>

Hello! I’m trying to take my first steps in developing extensions for 3D slicer. I want to make an extension that changes the color of a model: model\_name = "ModelName" node\_model = getNode(model\_name) node\_model.GetDi…

---

## [Build Slicer with IGT](https://discourse.slicer.org/t/build-slicer-with-igt/33037)

<div class="topic-metadata">

**Author:** [@1116](https://discourse.slicer.org/u/1116)\
**Replies:** 0\
**Last updated:** [November 26, 2023, 3:54pm UTC](https://discourse.slicer.org/t/build-slicer-with-igt/33037 "2023-11-26T15:54:02Z")

</div>

I am building Slicer with SlicerIGT. I want the IGT module to be automatically added in Slicer when the Slicer.exe is created. Where should I put the following commands in the top CMakeLists.txt of the Slicer code? Is…

---

## [Is there a faster way to read and write a segment as a numpy array?](https://discourse.slicer.org/t/is-there-a-faster-way-to-read-and-write-a-segment-as-a-numpy-array/32487)

<div class="topic-metadata">

**Author:** [@abhilaksh\_singh\_reen](https://discourse.slicer.org/u/abhilaksh_singh_reen)\
**Replies:** 6\
**Last updated:** [November 26, 2023, 12:11pm UTC](https://discourse.slicer.org/t/is-there-a-faster-way-to-read-and-write-a-segment-as-a-numpy-array/32487 "2023-11-26T12:11:40Z")

</div>

Hi. My team is building a Python Scripted Slicer Module for an organ segmentation task. We have a Segmentation Model to which we are only giving a single slice as input (at a time) and the model outputs the mask for tha…

---

## [Slicer constantly closing after distanceFilter.Update()](https://discourse.slicer.org/t/slicer-constantly-closing-after-distancefilter-update/33020)

<div class="topic-metadata">

**Author:** [@Dayo](https://discourse.slicer.org/u/Dayo)\
**Replies:** 4\
**Last updated:** [November 25, 2023, 8:14pm UTC](https://discourse.slicer.org/t/slicer-constantly-closing-after-distancefilter-update/33020 "2023-11-25T20:14:24Z")

</div>

Hello. I’m trying to calculate the distance between two meshes using vtkDistancePolyDataFilter() in my extension. Below is a snippet of my code: distanceFilter = vtk.vtkDistancePolyDataFilter() distanceFilter.SetInput…

---

## [Build SlicerCAT on Ubuntu 22.04.3 LTS](https://discourse.slicer.org/t/build-slicercat-on-ubuntu-22-04-3-lts/33019)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 0\
**Last updated:** [November 25, 2023, 12:25pm UTC](https://discourse.slicer.org/t/build-slicercat-on-ubuntu-22-04-3-lts/33019 "2023-11-25T12:25:34Z")

</div>

Hi, I wanted to share I could successfully build the app with the following code: cat /etc/os-release | grep PRETTY\_NAME # prints 'PRETTY\_NAME="Ubuntu 22.04.3 LTS"' sudo apt update && sudo apt install git subversion b…

---

## [How to customize the Segment Editor effects - Paint/Erase options in Python?](https://discourse.slicer.org/t/how-to-customize-the-segment-editor-effects-paint-erase-options-in-python/33011)

<div class="topic-metadata">

**Author:** [@rajmadhan](https://discourse.slicer.org/u/rajmadhan)\
**Replies:** 0\
**Last updated:** [November 24, 2023, 7:14pm UTC](https://discourse.slicer.org/t/how-to-customize-the-segment-editor-effects-paint-erase-options-in-python/33011 "2023-11-24T19:14:54Z")

</div>

Operating system: Windows 10 Slicer version: 5.4.0 Expected behavior: I would like to customize the Segment Editor options for the Paint/Erase effects in Python. Desired functionality: Set a fixed brush diameter, s…

---

## [How to modify CTKAppLauncherLib?](https://discourse.slicer.org/t/how-to-modify-ctkapplauncherlib/32972)

<div class="topic-metadata">

**Author:** [@qiqi5210](https://discourse.slicer.org/u/qiqi5210)\
**Replies:** 2\
**Last updated:** [November 23, 2023, 8:59pm UTC](https://discourse.slicer.org/t/how-to-modify-ctkapplauncherlib/32972 "2023-11-23T20:59:38Z")

</div>

In Windows, when compiling Slicer, is Slicer directly downloaded and used with the pre-compiled CTKAppLauncher? Specifically, the CTKAppLauncher-0.1.31-win-amd64.tar file. If I want to modify CTKAppLauncherLib, do I need…

---

## [PyTorch3D in 3D Slicer](https://discourse.slicer.org/t/pytorch3d-in-3d-slicer/25143)

<div class="topic-metadata">

**Author:** [@Connor-Bowley](https://discourse.slicer.org/u/Connor-Bowley)\
**Replies:** 18\
**Last updated:** [November 23, 2023, 12:48pm UTC](https://discourse.slicer.org/t/pytorch3d-in-3d-slicer/25143 "2023-11-23T12:48:20Z")

</div>

As part of SlicerSALT, the SlicerDentalModelSeg extension used PyTorch3D to run segment and number teeth from a vtkMRMLModelNode of an intraoral scan. There was some difficulty in getting PyTorch3D to install in Slicer, …

---

## [Scripted/cli Python module](https://discourse.slicer.org/t/scripted-cli-python-module/32950)

<div class="topic-metadata">

**Author:** [@PaoloZaffino](https://discourse.slicer.org/u/PaoloZaffino)\
**Replies:** 2\
**Last updated:** [November 22, 2023, 8:38pm UTC](https://discourse.slicer.org/t/scripted-cli-python-module/32950 "2023-11-22T20:38:55Z")

</div>

Hi all, I was wondering if it is possible to write a scripted Python module that can be used both via GUI and command line. Thanks a lot. Paolo

---

## [VSCode runs SlicerCAT everytime new jupyter notebook is created](https://discourse.slicer.org/t/vscode-runs-slicercat-everytime-new-jupyter-notebook-is-created/32962)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 0\
**Last updated:** [November 22, 2023, 4:35pm UTC](https://discourse.slicer.org/t/vscode-runs-slicercat-everytime-new-jupyter-notebook-is-created/32962 "2023-11-22T16:35:43Z")

</div>

Hi, I’ve build Slicer Jupyter extension and can successively use it within SlicerCAT application. But now everytime I create jupyter notebook in VSCode it tries to detect exsiting Jupyter Kernels and suddenly runs my S…

---

## [Build Python extenstion](https://discourse.slicer.org/t/build-python-extenstion/32904)

<div class="topic-metadata">

**Author:** [@d0rnkernsky](https://discourse.slicer.org/u/d0rnkernsky)\
**Replies:** 3\
**Last updated:** [November 21, 2023, 4:22am UTC](https://discourse.slicer.org/t/build-python-extenstion/32904 "2023-11-21T04:22:07Z")

</div>

Hello everyone! I am working on a python extension, which I would like to make easily shareable only with people from my lab. Ideally, I would like to use Extension Manager’s “Install from file…” functionality. I don’t…

---

## [The B-Spline Explicit Active Surfaces](https://discourse.slicer.org/t/the-b-spline-explicit-active-surfaces/32918)

<div class="topic-metadata">

**Author:** [@whu](https://discourse.slicer.org/u/whu)\
**Replies:** 0\
**Last updated:** [November 21, 2023, 3:00am UTC](https://discourse.slicer.org/t/the-b-spline-explicit-active-surfaces/32918 "2023-11-21T03:00:44Z")

</div>

Is there anyone who focusing on the segmentation using the B-Spline Explicit Active Surfaces ? the paper is : https://arxiv.org/abs/2309.02335 or some other implementation using BSEA ? thanks.

---

## [SyntaxError Using subprocess in MorphoSourceImportV2 Module](https://discourse.slicer.org/t/syntaxerror-using-subprocess-in-morphosourceimportv2-module/32866)

<div class="topic-metadata">

**Author:** [@othomas2](https://discourse.slicer.org/u/othomas2)\
**Replies:** 6\
**Last updated:** [November 17, 2023, 2:06pm UTC](https://discourse.slicer.org/t/syntaxerror-using-subprocess-in-morphosourceimportv2-module/32866 "2023-11-17T14:06:44Z")

</div>

Hello Slicer Community, I’m developing a module, MorphoSourceImportV2, for 3D Slicer to download media from MorphoSource in the background. However, I’ve encountered a SyntaxError when trying to use the subprocess modul…

---

## [How does slicer repair damaged surfaces when converting binary labelmap into closed surfaces?](https://discourse.slicer.org/t/how-does-slicer-repair-damaged-surfaces-when-converting-binary-labelmap-into-closed-surfaces/32862)

<div class="topic-metadata">

**Author:** [@aebopi1999](https://discourse.slicer.org/u/aebopi1999)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 12:27pm UTC](https://discourse.slicer.org/t/how-does-slicer-repair-damaged-surfaces-when-converting-binary-labelmap-into-closed-surfaces/32862 "2023-11-17T12:27:12Z")

</div>

I noticed that in Slicer, when converting a binary labelmap to a closed surface, it automatically repairs damaged surfaces, as shown in the right image. However, when I tried to use some VTK methods to convert a label…

---

## [How to setup subject hierarchy tree filtering?](https://discourse.slicer.org/t/how-to-setup-subject-hierarchy-tree-filtering/32435)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 8\
**Last updated:** [November 15, 2023, 6:14pm UTC](https://discourse.slicer.org/t/how-to-setup-subject-hierarchy-tree-filtering/32435 "2023-11-15T18:14:25Z")

</div>

I’m currently having difficulty filtering the subject hierarchy using the attribute filter API. The following illustrates the unexpected behavior upon using setAttributeFilter. Does anyone know why this may be happening? …

---

## [Difference between opencv images and 3D slicer ](https://discourse.slicer.org/t/difference-between-opencv-images-and-3d-slicer/32671)

<div class="topic-metadata">

**Author:** [@Saman\_Fouladi](https://discourse.slicer.org/u/Saman_Fouladi)\
**Replies:** 5\
**Last updated:** [November 15, 2023, 12:49pm UTC](https://discourse.slicer.org/t/difference-between-opencv-images-and-3d-slicer/32671 "2023-11-15T12:49:49Z")

</div>

Hello. I trained my 2D unet with images which were loaded using opencv in png format. The predicted results are promising for organ segmentation. To work with 3D nrrd image (to show in 3D Slicer), I convert a 3D image t…

---

## [Print output does not immediately appear in Python console](https://discourse.slicer.org/t/print-output-does-not-immediately-appear-in-python-console/32825)

<div class="topic-metadata">

**Author:** [@MLDawn](https://discourse.slicer.org/u/MLDawn)\
**Replies:** 2\
**Last updated:** [November 15, 2023, 10:47am UTC](https://discourse.slicer.org/t/print-output-does-not-immediately-appear-in-python-console/32825 "2023-11-15T10:47:31Z")

</div>

May I ask a basic question. In my python script I keep printing messages using Python’s print() commant. However, these messasges will not appear instantly! For example, if the user pushes a button in my Python plugin, a…

---

## [Fit sphere to points](https://discourse.slicer.org/t/fit-sphere-to-points/32820)

<div class="topic-metadata">

**Author:** [@ben.rodwell](https://discourse.slicer.org/u/ben.rodwell)\
**Replies:** 2\
**Last updated:** [November 15, 2023, 2:14am UTC](https://discourse.slicer.org/t/fit-sphere-to-points/32820 "2023-11-15T02:14:26Z")

</div>

I am trying to fir a sphere between 4 control points using the script below. I have set my four points using the markups module and when I run the script in the python interactor it generates a new model in the models mo…

---

## [Python debug against Slicer \`HEAD\`](https://discourse.slicer.org/t/python-debug-against-slicer-head/32670)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 2\
**Last updated:** [November 14, 2023, 9:35pm UTC](https://discourse.slicer.org/t/python-debug-against-slicer-head/32670 "2023-11-14T21:35:04Z")

</div>

Hi, I have visited the 3D Slicer documentation Python debugging documentation: Python debugging — 3D Slicer documentation And have visited the SlicerDebuggingTools README: GitHub - SlicerRt/SlicerDebuggingTools: Exte…

---

## [Info level logging messages do not appear in Python console](https://discourse.slicer.org/t/info-level-logging-messages-do-not-appear-in-python-console/26418)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 2:45pm UTC](https://discourse.slicer.org/t/info-level-logging-messages-do-not-appear-in-python-console/26418 "2022-11-24T14:45:34Z")

</div>

I built the latest Slicer 5.3, and I now see the changes in the Python console. It’s great to see Qt and VTK errors there too. However, one thing that could make my day to day work very hard is that the output from logg…

---

## [Get or Generate the polydata of a nrrd volume data](https://discourse.slicer.org/t/get-or-generate-the-polydata-of-a-nrrd-volume-data/32815)

<div class="topic-metadata">

**Author:** [@drd](https://discourse.slicer.org/u/drd)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 7:39pm UTC](https://discourse.slicer.org/t/get-or-generate-the-polydata-of-a-nrrd-volume-data/32815 "2023-11-14T19:39:38Z")

</div>

Hello Team, Kindly wanted to know if we can get the polydata of a nrrd volume data in slicer? Thanks

---

## [3D Slicer for Plastic Surgery Simulation](https://discourse.slicer.org/t/3d-slicer-for-plastic-surgery-simulation/32793)

<div class="topic-metadata">

**Author:** [@tjain](https://discourse.slicer.org/u/tjain)\
**Replies:** 3\
**Last updated:** [November 13, 2023, 11:36pm UTC](https://discourse.slicer.org/t/3d-slicer-for-plastic-surgery-simulation/32793 "2023-11-13T23:36:53Z")

</div>

I’m with FaceTouchUp which is an online Plastic Surgery Simulator. We’ve been doing 2D simulations for plastic surgery online. We’re now looking at 3D simulations and discovered 3D Slicer. I’m here to get your thoughts. …

---

## [How can I subscribe to monitor individual extensions on Slicer dashboard?](https://discourse.slicer.org/t/how-can-i-subscribe-to-monitor-individual-extensions-on-slicer-dashboard/2261)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Replies:** 18\
**Last updated:** [November 13, 2023, 7:59pm UTC](https://discourse.slicer.org/t/how-can-i-subscribe-to-monitor-individual-extensions-on-slicer-dashboard/2261 "2023-11-13T19:59:07Z")

</div>

@jcfr mentioned The good news is that CDash support email notification and now support specifying more than one repository. Can someone help me figure out how to do this? My guess was that this should be configured i…

---

## [Save Segmentation Node as VTK file using the Python Console](https://discourse.slicer.org/t/save-segmentation-node-as-vtk-file-using-the-python-console/32755)

<div class="topic-metadata">

**Author:** [@jhernandezr](https://discourse.slicer.org/u/jhernandezr)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 2:36am UTC](https://discourse.slicer.org/t/save-segmentation-node-as-vtk-file-using-the-python-console/32755 "2023-11-13T02:36:09Z")

</div>

Hi there! Me and my team are trying to develop a code where we export automatically as vtk segmentatino nodes, however we are not able to do so. To be specific, we have a label node with the same structure as the segme…

---

## [OBB Not Aligned with Segmentde](https://discourse.slicer.org/t/obb-not-aligned-with-segmentde/32746)

<div class="topic-metadata">

**Author:** [@jamieawren](https://discourse.slicer.org/u/jamieawren)\
**Replies:** 4\
**Last updated:** [November 11, 2023, 11:38pm UTC](https://discourse.slicer.org/t/obb-not-aligned-with-segmentde/32746 "2023-11-11T23:38:20Z")

</div>

Hi Everyone, I’m calculating a bounding box for a segment, and the output’s measurement appear to be correct, i.e. I’m using a 20mm paint brush and the height and width are 20mm. When I use the code found here (Script r…

---

## [Vtk.util cannot be found in ParrallelProcessing](https://discourse.slicer.org/t/vtk-util-cannot-be-found-in-parrallelprocessing/32730)

<div class="topic-metadata">

**Author:** [@wrc](https://discourse.slicer.org/u/wrc)\
**Replies:** 1\
**Last updated:** [November 11, 2023, 9:39pm UTC](https://discourse.slicer.org/t/vtk-util-cannot-be-found-in-parrallelprocessing/32730 "2023-11-11T21:39:27Z")

</div>

Hi, I want to transfer numpy array to vtkPoints in a script under the extension ParrallelProcessing. I use import vtk fp = vtk.vtkPoints() fp.SetData(vtk.util.numpy\_support.numpy\_to\_vtk(points)) but return AttributeEr…

---

## [Slicer build error - ‘class QLatin1String’ has no member named ‘arg’de](https://discourse.slicer.org/t/slicer-build-error-class-qlatin1string-has-no-member-named-arg-de/32747)

<div class="topic-metadata">

**Author:** [@Ankit\_Mishra](https://discourse.slicer.org/u/Ankit_Mishra)\
**Replies:** 1\
**Last updated:** [November 11, 2023, 9:32pm UTC](https://discourse.slicer.org/t/slicer-build-error-class-qlatin1string-has-no-member-named-arg-de/32747 "2023-11-11T21:32:15Z")

</div>

/home/ankit/Slicer/Base/QTGUI/qSlicerExtensionsLocalWidget.cxx: In member function ‘void {anonymous}::qSlicerExtensionsDescriptionLabel::labelText(const QString&)’: /home/ankit/Slicer/Base/QTGUI/qSlicerExtensionsLocalWi…

---

## [New transform widget for Slicer](https://discourse.slicer.org/t/new-transform-widget-for-slicer/20483)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 8\
**Last updated:** [November 9, 2023, 3:06pm UTC](https://discourse.slicer.org/t/new-transform-widget-for-slicer/20483 "2023-11-09T15:06:00Z")

</div>

Hi devs. Like I mentioned on the Slicer meeting. I would be interested in contributing a transform widget similar to the one used in the following video: Virtual surgical planning using a DCIA free flap for mandibular re…

[Previous page](https://discourse.slicer.org/c/dev/5.md?page=26)

[Next page](https://discourse.slicer.org/c/dev/5.md?page=28)
