# Development

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

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

**Page:** 23

---

## [Distances between segments](https://discourse.slicer.org/t/distances-between-segments/35195)

<div class="topic-metadata">

**Author:** [@ILB](https://discourse.slicer.org/u/ILB)\
**Replies:** 8\
**Last updated:** [April 3, 2024, 6:47am UTC](https://discourse.slicer.org/t/distances-between-segments/35195 "2024-04-03T06:47:51Z")

</div>

Hi! Is there any software or stl viewer I can use that gives measurements between segments? For example, if I segment the liver and the aorta, is there a way to click between to points (one in the liver and the other in…

---

## [Problems following the Slicer extension tutorial](https://discourse.slicer.org/t/problems-following-the-slicer-extension-tutorial/35237)

<div class="topic-metadata">

**Author:** [@BerDom.Ing](https://discourse.slicer.org/u/BerDom.Ing)\
**Replies:** 0\
**Last updated:** [April 2, 2024, 5:35pm UTC](https://discourse.slicer.org/t/problems-following-the-slicer-extension-tutorial/35237 "2024-04-02T17:35:03Z")

</div>

In the PerkLab’s Slicer bootcamp training Scripting and module development tutorial , I encountered the following issues: After downloading the 3D model, I couldn’t load it with “c = getNode(‘Cautery’)”; instead, I h…

---

## [Surgical planning and guidance](https://discourse.slicer.org/t/surgical-planning-and-guidance/35220)

<div class="topic-metadata">

**Author:** [@ILB](https://discourse.slicer.org/u/ILB)\
**Replies:** 1\
**Last updated:** [April 2, 2024, 12:50pm UTC](https://discourse.slicer.org/t/surgical-planning-and-guidance/35220 "2024-04-02T12:50:07Z")

</div>

Hello everyone! Do you know if there is a software or 3D Slicer extension that allow doing some preoperative surgical planning over a 3D model? The idea is to simulate something like a tumor extirpation to plan which is…

---

## [Could not find nodes in the scene by name or id 'R'](https://discourse.slicer.org/t/could-not-find-nodes-in-the-scene-by-name-or-id-r/35225)

<div class="topic-metadata">

**Author:** [@LucaB](https://discourse.slicer.org/u/LucaB)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 12:07pm UTC](https://discourse.slicer.org/t/could-not-find-nodes-in-the-scene-by-name-or-id-r/35225 "2024-04-02T12:07:13Z")

</div>

Operarting system: Macos Sonoma 14.1 Slicer version: 5.6.1 Expected behaviour Bounding box. Hello, I am trying to extract the bounding box from slicer. I am running in the python terminal all steps as previously ment…

---

## [Segmentation selection changed event (custom segment editor effect)](https://discourse.slicer.org/t/segmentation-selection-changed-event-custom-segment-editor-effect/27856)

<div class="topic-metadata">

**Author:** [@lukas\_n](https://discourse.slicer.org/u/lukas_n)\
**Replies:** 5\
**Last updated:** [April 1, 2024, 10:13pm UTC](https://discourse.slicer.org/t/segmentation-selection-changed-event-custom-segment-editor-effect/27856 "2024-04-01T22:13:24Z")

</div>

I am trying to write a function that is triggered when the user selects a different segmentation in the segment editor module. I searched for such event methods but could not find the right one. My guess is that there is…

---

## [Loading VivoQuant .rmha images into slicer (some rough code provided)](https://discourse.slicer.org/t/loading-vivoquant-rmha-images-into-slicer-some-rough-code-provided/35169)

<div class="topic-metadata">

**Author:** [@EgorZindy](https://discourse.slicer.org/u/EgorZindy)\
**Replies:** 6\
**Last updated:** [April 1, 2024, 5:44pm UTC](https://discourse.slicer.org/t/loading-vivoquant-rmha-images-into-slicer-some-rough-code-provided/35169 "2024-04-01T17:44:37Z")

</div>

Hello, I adapted some nifty matlab code to read .rmha images into 3d slicer. As I understand, these are VivoQuant labelled ROI images. The original code was written by Joseph Dalton Brook, which he made available in hi…

---

## [How to see the commands of what I manually do](https://discourse.slicer.org/t/how-to-see-the-commands-of-what-i-manually-do/35055)

<div class="topic-metadata">

**Author:** [@ILB](https://discourse.slicer.org/u/ILB)\
**Replies:** 5\
**Last updated:** [April 1, 2024, 3:22pm UTC](https://discourse.slicer.org/t/how-to-see-the-commands-of-what-i-manually-do/35055 "2024-04-01T15:22:31Z")

</div>

Hi! Is there a way to see the commands that I execute while segmenting an image? For example, if I select a specific module or if I add a segment, I would like to know what would be the commands to introduce to automate…

---

## [How to change height for editing mode for qMRMLSubjectHierarchyTreeView](https://discourse.slicer.org/t/how-to-change-height-for-editing-mode-for-qmrmlsubjecthierarchytreeview/35177)

<div class="topic-metadata">

**Author:** [@zina](https://discourse.slicer.org/u/zina)\
**Replies:** 3\
**Last updated:** [April 1, 2024, 2:06pm UTC](https://discourse.slicer.org/t/how-to-change-height-for-editing-mode-for-qmrmlsubjecthierarchytreeview/35177 "2024-04-01T14:06:44Z")

</div>

When I am editing row value in qMRMLSubjectHierarchyTreeView it’s looks very small. How can I change height? In not editing mode, rows looks ok.

---

## [Deletion of "vtkMRMLFolderDisplayNode"](https://discourse.slicer.org/t/deletion-of-vtkmrmlfolderdisplaynode/35072)

<div class="topic-metadata">

**Author:** [@Aamir\_Khan1](https://discourse.slicer.org/u/Aamir_Khan1)\
**Replies:** 1\
**Last updated:** [April 1, 2024, 12:10pm UTC](https://discourse.slicer.org/t/deletion-of-vtkmrmlfolderdisplaynode/35072 "2024-04-01T12:10:57Z")

</div>

Hi, In my module, I create a folder using the following code: @staticmethod def create\_folder\_item\_in\_subject\_hierarchy(serial\_number): shNode = slicer.vtkMRMLSubjectHierarchyNode.GetSubjectHierarchyNod…

---

## [Fail to install itk 5.3rc04.post3 in 3D Slicer](https://discourse.slicer.org/t/fail-to-install-itk-5-3rc04-post3-in-3d-slicer/35187)

<div class="topic-metadata">

**Author:** [@Cheyuan\_Chang](https://discourse.slicer.org/u/Cheyuan_Chang)\
**Replies:** 1\
**Last updated:** [March 31, 2024, 7:17pm UTC](https://discourse.slicer.org/t/fail-to-install-itk-5-3rc04-post3-in-3d-slicer/35187 "2024-03-31T19:17:09Z")

</div>

Hello, I am using 3Dslicer 5.7 and find problem with installing itk Is there any problem to solve this installation problem? The error code was posted below ERROR: Could not find a version that satisfies the requireme…

---

## [TensorFlow x Slicer](https://discourse.slicer.org/t/tensorflow-x-slicer/33646)

<div class="topic-metadata">

**Author:** [@VincentMillot](https://discourse.slicer.org/u/VincentMillot)\
**Replies:** 7\
**Last updated:** [March 28, 2024, 9:51pm UTC](https://discourse.slicer.org/t/tensorflow-x-slicer/33646 "2024-03-28T21:51:02Z")

</div>

Dear Slicer Community, I’m new here and I wanted to share an extension I made to use my TensorFlow models for image segmentation directly into slicer. I’ve already read here that most deep learning models are developed …

---

## [Help to publish new extension](https://discourse.slicer.org/t/help-to-publish-new-extension/14560)

<div class="topic-metadata">

**Author:** [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Replies:** 13\
**Last updated:** [March 28, 2024, 9:39pm UTC](https://discourse.slicer.org/t/help-to-publish-new-extension/14560 "2024-03-28T21:39:02Z")

</div>

Hi, I have created a new extension, created a GIT node but am unable to proceed. Could you guys help me ? What is the easiest way (Windows) to publish (and later update) this extension and to get it included in Sli…

---

## [Edit Segmentation Locally](https://discourse.slicer.org/t/edit-segmentation-locally/35154)

<div class="topic-metadata">

**Author:** [@yaraabdelazim](https://discourse.slicer.org/u/yaraabdelazim)\
**Replies:** 3\
**Last updated:** [March 28, 2024, 4:45pm UTC](https://discourse.slicer.org/t/edit-segmentation-locally/35154 "2024-03-28T16:45:53Z")

</div>

Hello, I have recently developped a module that segments an MRI based on edge/contour detection. However, some of the time, those contours aren’t “perfect”. For instance, sometimes they’re not closed. Other times, they’…

---

## [Bump VTK minimum OpenGL version to 4.1](https://discourse.slicer.org/t/bump-vtk-minimum-opengl-version-to-4-1/35144)

<div class="topic-metadata">

**Author:** [@jspanchu](https://discourse.slicer.org/u/jspanchu)\
**Replies:** 6\
**Last updated:** [March 28, 2024, 12:57pm UTC](https://discourse.slicer.org/t/bump-vtk-minimum-opengl-version-to-4-1/35144 "2024-03-28T12:57:40Z")

</div>

Posting this in Slicer3D forum for better visibility. Please feel free to move it to appropriate category where it’s more visible. We’re looking to update the minimum required OpenGL version in VTK from 3.2 to 4.1 for t…

---

## [Is it possible to integrate Slicer UI module/view into our Qt 6 QML application?](https://discourse.slicer.org/t/is-it-possible-to-integrate-slicer-ui-module-view-into-our-qt-6-qml-application/23414)

<div class="topic-metadata">

**Author:** [@luxel](https://discourse.slicer.org/u/luxel)\
**Replies:** 5\
**Last updated:** [March 26, 2024, 5:27pm UTC](https://discourse.slicer.org/t/is-it-possible-to-integrate-slicer-ui-module-view-into-our-qt-6-qml-application/23414 "2024-03-26T17:27:26Z")

</div>

We already have a surgical device application built with Qt 6.2 + QML (using C++ and JavaScript), and we’re looking for integrating some of the 3D Slicer UI modules or UI views as part of our UI, without building/running…

---

## [How to Debug? GDB Not Recognizing Source Files for 3D Slicer Debug Build](https://discourse.slicer.org/t/how-to-debug-gdb-not-recognizing-source-files-for-3d-slicer-debug-build/35098)

<div class="topic-metadata">

**Author:** [@Aram\_Harutyunyan](https://discourse.slicer.org/u/Aram_Harutyunyan)\
**Replies:** 1\
**Last updated:** [March 26, 2024, 1:29pm UTC](https://discourse.slicer.org/t/how-to-debug-gdb-not-recognizing-source-files-for-3d-slicer-debug-build/35098 "2024-03-26T13:29:54Z")

</div>

I’m using the debug build of 3D Slicer for enhanced debugging capabilities but face issues with GDB not recognizing some source files, hindering my debugging. Despite building 3D Slicer with debug flags and attempting to…

---

## [Missing bytecode files in Slicer installation package](https://discourse.slicer.org/t/missing-bytecode-files-in-slicer-installation-package/35095)

<div class="topic-metadata">

**Author:** [@Albi](https://discourse.slicer.org/u/Albi)\
**Replies:** 0\
**Last updated:** [March 26, 2024, 11:01am UTC](https://discourse.slicer.org/t/missing-bytecode-files-in-slicer-installation-package/35095 "2024-03-26T11:01:44Z")

</div>

Hi, I recently tried to create an installation package of Slicer. Thanks to whoever implement this as it is really straightforward with the available make package command. After installing the freshly packaged version …

---

## [Best way to code and test changes on C++ modules](https://discourse.slicer.org/t/best-way-to-code-and-test-changes-on-c-modules/35069)

<div class="topic-metadata">

**Author:** [@randomizedid](https://discourse.slicer.org/u/randomizedid)\
**Replies:** 1\
**Last updated:** [March 26, 2024, 8:33am UTC](https://discourse.slicer.org/t/best-way-to-code-and-test-changes-on-c-modules/35069 "2024-03-26T08:33:37Z")

</div>

Hi everyone, I am new to Slicer and C++ development. I have more experience with Python, and I have noticed that modifying a Python script after installation and restarting the software lets you see the change. Is there…

---

## [Converting Array of Points to Segmentation Node](https://discourse.slicer.org/t/converting-array-of-points-to-segmentation-node/35037)

<div class="topic-metadata">

**Author:** [@THartman](https://discourse.slicer.org/u/THartman)\
**Replies:** 1\
**Last updated:** [March 24, 2024, 3:21pm UTC](https://discourse.slicer.org/t/converting-array-of-points-to-segmentation-node/35037 "2024-03-24T15:21:13Z")

</div>

Operating system: Windows Slicer version: 5.6.1 Expected behavior: I am trying to programmatically create several segments within a file, to be passed into the Vascular Modelling Toolkit in order to extract the centerl…

---

## [Unable to build Slicer: stopped by CTK with error MSB8066](https://discourse.slicer.org/t/unable-to-build-slicer-stopped-by-ctk-with-error-msb8066/34969)

<div class="topic-metadata">

**Author:** [@RolandLau](https://discourse.slicer.org/u/RolandLau)\
**Replies:** 1\
**Last updated:** [March 24, 2024, 1:29pm UTC](https://discourse.slicer.org/t/unable-to-build-slicer-stopped-by-ctk-with-error-msb8066/34969 "2024-03-24T13:29:27Z")

</div>

Hi,everyone. I followed instruction at https://slicer.readthedocs.io/en/latest/developer\_guide/build\_instructions/windows.html trying to build slicer,but build stopped with error MSB8066. Slicer source: latest main …

---

## [GUI using markups module](https://discourse.slicer.org/t/gui-using-markups-module/35002)

<div class="topic-metadata">

**Author:** [@rkraaijveld](https://discourse.slicer.org/u/rkraaijveld)\
**Replies:** 1\
**Last updated:** [March 23, 2024, 3:16pm UTC](https://discourse.slicer.org/t/gui-using-markups-module/35002 "2024-03-23T15:16:52Z")

</div>

Hi there! I’m trying to add the markups module into my own module, particularly the ruler button. I’ve worked with the segment editor widget before, but I can’t seem to find as much information about the markups module.…

---

## [Quick research: Is there a good idea to implement DTI-ALPS method as a Slicer Extension?](https://discourse.slicer.org/t/quick-research-is-there-a-good-idea-to-implement-dti-alps-method-as-a-slicer-extension/35027)

<div class="topic-metadata">

**Author:** [@acsenrafilho](https://discourse.slicer.org/u/acsenrafilho)\
**Replies:** 0\
**Last updated:** [March 22, 2024, 6:41pm UTC](https://discourse.slicer.org/t/quick-research-is-there-a-good-idea-to-implement-dti-alps-method-as-a-slicer-extension/35027 "2024-03-22T18:41:44Z")

</div>

Hello, Slicers! I am currently doing a postdoc in the MRI image processing area, including DTI image processing. I found the DTI-ALPS index in recent papers, and it looked very promising for several applications. In a …

---

## [Running a python script in slicer](https://discourse.slicer.org/t/running-a-python-script-in-slicer/35019)

<div class="topic-metadata">

**Author:** [@Matteboo](https://discourse.slicer.org/u/Matteboo)\
**Replies:** 1\
**Last updated:** [March 22, 2024, 12:53pm UTC](https://discourse.slicer.org/t/running-a-python-script-in-slicer/35019 "2024-03-22T12:53:48Z")

</div>

Hello, I’m trying to run a python script using slicer I tried \>\>\> C:\\Users\\matte\\AppData\\Local\\slicer.org\\Slicer 5.6.0\\Slicer.exe --python-script "C:\\Users\\matte\\Documents\\Matteo\\script\\hello\_world.py" File "\<consol…

---

## [Mouse click to open selected segment in Segment Editor](https://discourse.slicer.org/t/mouse-click-to-open-selected-segment-in-segment-editor/26524)

<div class="topic-metadata">

**Author:** [@xerox](https://discourse.slicer.org/u/xerox)\
**Replies:** 5\
**Last updated:** [March 22, 2024, 11:54am UTC](https://discourse.slicer.org/t/mouse-click-to-open-selected-segment-in-segment-editor/26524 "2024-03-22T11:54:34Z")

</div>

Operating system: Windows 10 Slicer version: 5.0.3 Hi, I have a Slicer extension built that creates 2D segmentations. I want the user to be able to highlight the segments when they hover with their mouse and when they…

---

## [Trouble Storing a certain Volume State in a Scene View](https://discourse.slicer.org/t/trouble-storing-a-certain-volume-state-in-a-scene-view/34994)

<div class="topic-metadata">

**Author:** [@Adam-Ismaili-92](https://discourse.slicer.org/u/Adam-Ismaili-92)\
**Replies:** 0\
**Last updated:** [March 20, 2024, 7:45pm UTC](https://discourse.slicer.org/t/trouble-storing-a-certain-volume-state-in-a-scene-view/34994 "2024-03-20T19:45:46Z")

</div>

\# Consider having defined “origin” (a 3d array point), “axis1” (a 3d array axis), “alpha” (a float) # Rotation process transform1 = vtk.vtkTransform() transform1.Translate(-origin\[0\], -origin\[1\], -origin\[2\]) transfor…

---

## [3d slicer custom app: how to obfuscate python code](https://discourse.slicer.org/t/3d-slicer-custom-app-how-to-obfuscate-python-code/35006)

<div class="topic-metadata">

**Author:** [@aymeric.chataigner](https://discourse.slicer.org/u/aymeric.chataigner)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 1:56pm UTC](https://discourse.slicer.org/t/3d-slicer-custom-app-how-to-obfuscate-python-code/35006 "2024-03-21T13:56:28Z")

</div>

Hi, We would like to obfuscate the python code in the install archive of our 3D Slicer custom app. We tried to use cython without success for now. Do you have any solution, any advice ? Regards

---

## [Control point grid output from NiftyReg not loaded correctly](https://discourse.slicer.org/t/control-point-grid-output-from-niftyreg-not-loaded-correctly/34967)

<div class="topic-metadata">

**Author:** [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 7:59am UTC](https://discourse.slicer.org/t/control-point-grid-output-from-niftyreg-not-loaded-correctly/34967 "2024-03-21T07:59:23Z")

</div>

I’m integrating NiftyReg into an extension. I registered two images with f3d and saved the control point grid (to later get the deformation). However, the grid isn’t loaded correctly into Slicer. In the Data module it …

---

## [How to hide the code of the script module?](https://discourse.slicer.org/t/how-to-hide-the-code-of-the-script-module/26135)

<div class="topic-metadata">

**Author:** [@qiqi5210](https://discourse.slicer.org/u/qiqi5210)\
**Replies:** 25\
**Last updated:** [March 20, 2024, 6:54pm UTC](https://discourse.slicer.org/t/how-to-hide-the-code-of-the-script-module/26135 "2024-03-20T18:54:59Z")

</div>

Hello everyone, I would like to ask how to hide the code of the script module. I am developing the script module recently, and I feel that it is a bit insecure to be able to directly see all the code. Hope to get everyo…

---

## [Filling Contours In A Volume](https://discourse.slicer.org/t/filling-contours-in-a-volume/34973)

<div class="topic-metadata">

**Author:** [@yaraabdelazim](https://discourse.slicer.org/u/yaraabdelazim)\
**Replies:** 0\
**Last updated:** [March 19, 2024, 12:42pm UTC](https://discourse.slicer.org/t/filling-contours-in-a-volume/34973 "2024-03-19T12:42:00Z")

</div>

Hello, I am currently working on a module that segments based on Edge Detection using SimpleITK filters. The results I’m getting are satisfying, however, I’m only segmenting the contours themselves and not the whole sur…

---

## [Having trouble Installing extenssion ](https://discourse.slicer.org/t/having-trouble-installing-extenssion/34904)

<div class="topic-metadata">

**Author:** [@Ajith\_perera](https://discourse.slicer.org/u/Ajith_perera)\
**Replies:** 3\
**Last updated:** [March 18, 2024, 8:25pm UTC](https://discourse.slicer.org/t/having-trouble-installing-extenssion/34904 "2024-03-18T20:25:28Z")

</div>

Operating system:Linux, X86\_64, RHEL8 Slicer version:GitHub(overnight) Expected behavior: Actual behavior: Hello: I am trying to install 3Dslicer and extensions with apptainer using the following definitions. export…

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

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