# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&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

---

## [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…

---

## [Slicer --no-main-window --python-script in windows command prompt not working](https://discourse.slicer.org/t/slicer-no-main-window-python-script-in-windows-command-prompt-not-working/6481)

<div class="topic-metadata">

**Author:** [@Allison\_Clement](https://discourse.slicer.org/u/Allison_Clement)\
**Replies:** 38\
**Last updated:** [March 15, 2024, 5:01pm UTC](https://discourse.slicer.org/t/slicer-no-main-window-python-script-in-windows-command-prompt-not-working/6481 "2024-03-15T17:01:17Z")

</div>

I am trying to submit a python code to slicer python interactor via the windows command line. I can run my slicer using --python-script mypath. When I add --no-main-window before the --python-script mypath, the code does…

---

## [Slicer doesn't print anything during for loops even with sys.stdout.flush()](https://discourse.slicer.org/t/slicer-doesnt-print-anything-during-for-loops-even-with-sys-stdout-flush/34914)

<div class="topic-metadata">

**Author:** [@leadro](https://discourse.slicer.org/u/leadro)\
**Replies:** 1\
**Last updated:** [March 15, 2024, 3:50pm UTC](https://discourse.slicer.org/t/slicer-doesnt-print-anything-during-for-loops-even-with-sys-stdout-flush/34914 "2024-03-15T15:50:05Z")

</div>

I’m developing a 3DSlicer extension that includes very long processes (huge for loops). I’d like to show the progress with a progressbar (like tqdm) or at least print some progress information at each iteration but nothi…

---

## [Converting 3D slicer obtained information into an oriented bounding box in Python (using simpleitk/vtk etc)](https://discourse.slicer.org/t/converting-3d-slicer-obtained-information-into-an-oriented-bounding-box-in-python-using-simpleitk-vtk-etc/34902)

<div class="topic-metadata">

**Author:** [@Poorvica\_Ramanand](https://discourse.slicer.org/u/Poorvica_Ramanand)\
**Replies:** 0\
**Last updated:** [March 15, 2024, 6:24am UTC](https://discourse.slicer.org/t/converting-3d-slicer-obtained-information-into-an-oriented-bounding-box-in-python-using-simpleitk-vtk-etc/34902 "2024-03-15T06:24:36Z")

</div>

Greetings, I have exported statistical values as below into a CSV file of the CT Liver Segmentation. I wish to convert this information into a bounding box for organs by loading on Python externally in Jupyter/Google Co…

---

## [Segmentation memory size variations](https://discourse.slicer.org/t/segmentation-memory-size-variations/34862)

<div class="topic-metadata">

**Author:** [@SANTIAGO\_PENDON\_MING](https://discourse.slicer.org/u/SANTIAGO_PENDON_MING)\
**Replies:** 2\
**Last updated:** [March 14, 2024, 8:21am UTC](https://discourse.slicer.org/t/segmentation-memory-size-variations/34862 "2024-03-14T08:21:39Z")

</div>

Hi to everyone. Today we’re concerned with segmentation memory sizes. We are using two different approaches to the same problem: linear (input driven) and non-linear (event/button driven). The main steps of the process…

---

## [BUG while saving data as bundle with no segments](https://discourse.slicer.org/t/bug-while-saving-data-as-bundle-with-no-segments/34148)

<div class="topic-metadata">

**Author:** [@MJamal](https://discourse.slicer.org/u/MJamal)\
**Replies:** 12\
**Last updated:** [March 14, 2024, 4:34am UTC](https://discourse.slicer.org/t/bug-while-saving-data-as-bundle-with-no-segments/34148 "2024-03-14T04:34:09Z")

</div>

Hello @lassoan @jcfr @pieper @jamesobutler, I loaded sample data with no segments and then saved it as a bundle. Next time when i load the bundled file and try to add my first segment the effects does not seem to work.…

---

## [Slicer's existing architecture](https://discourse.slicer.org/t/slicers-existing-architecture/34732)

<div class="topic-metadata">

**Author:** [@MJamal](https://discourse.slicer.org/u/MJamal)\
**Replies:** 6\
**Last updated:** [March 14, 2024, 4:30am UTC](https://discourse.slicer.org/t/slicers-existing-architecture/34732 "2024-03-14T04:30:27Z")

</div>

Is it possible to port slicer’s existing architecture from single-threaded to multi-threaded?

---

## [Running a Module in Parallel](https://discourse.slicer.org/t/running-a-module-in-parallel/12641)

<div class="topic-metadata">

**Author:** [@vertebrae](https://discourse.slicer.org/u/vertebrae)\
**Replies:** 19\
**Last updated:** [March 14, 2024, 3:34am UTC](https://discourse.slicer.org/t/running-a-module-in-parallel/12641 "2024-03-14T03:34:11Z")

</div>

Hello, I am currently using a python scripted module to run my vertebra segmentation program. The program uses a for loop to segment multiple fiducial points. This process takes a long time to run and I thought that run…

---

## [Create and save model as an STL file](https://discourse.slicer.org/t/create-and-save-model-as-an-stl-file/34880)

<div class="topic-metadata">

**Author:** [@eychoi](https://discourse.slicer.org/u/eychoi)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 8:39pm UTC](https://discourse.slicer.org/t/create-and-save-model-as-an-stl-file/34880 "2024-03-13T20:39:00Z")

</div>

Hi Experts, I’d like convert labels in a nifti volume into a model, then save the model as an STL file–all on the command line. I was able to create the model using the cli-module: ModelMaker. However, I don’t see a mod…

---

## [Converting a 2D numpy array to a VTK image](https://discourse.slicer.org/t/converting-a-2d-numpy-array-to-a-vtk-image/34825)

<div class="topic-metadata">

**Author:** [@yaraabdelazim](https://discourse.slicer.org/u/yaraabdelazim)\
**Replies:** 4\
**Last updated:** [March 12, 2024, 1:51pm UTC](https://discourse.slicer.org/t/converting-a-2d-numpy-array-to-a-vtk-image/34825 "2024-03-12T13:51:52Z")

</div>

Hello, I am trying to detect edges in a volume and therefore, I use OpenCV. After converting my slice to a numpy array and detecting the edges, I am able to display it in my Jupyter notebook. Here is the result I get: …

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

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