# Development

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

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

**Page:** 16

---

## [How to add "ellipse" based measurement in 2D using Python?](https://discourse.slicer.org/t/how-to-add-ellipse-based-measurement-in-2d-using-python/38261)

<div class="topic-metadata">

**Author:** [@Saladi](https://discourse.slicer.org/u/Saladi)\
**Replies:** 2\
**Last updated:** [September 7, 2024, 11:30am UTC](https://discourse.slicer.org/t/how-to-add-ellipse-based-measurement-in-2d-using-python/38261 "2024-09-07T11:30:27Z")

</div>

Hello Community, We are trying to make some measurements on Ultrasound data using ellipse. I have tried using various extensions but I was able to find ellipsoid only. I need an 2D ellipse markup preferably in Python, a…

---

## [OpenCV extension build fails since June ITK upgrade](https://discourse.slicer.org/t/opencv-extension-build-fails-since-june-itk-upgrade/38158)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 5\
**Last updated:** [September 6, 2024, 11:59am UTC](https://discourse.slicer.org/t/opencv-extension-build-fails-since-june-itk-upgrade/38158 "2024-09-06T11:59:58Z")

</div>

Hi all, The OpenCV extension build fails on all three platform since June 4, most probably due to the ITK upgrade: ENH: Update ITK to 5.4.0 · Slicer/Slicer@acf3dd4 · GitHub This is the first failure on the dashboard: h…

---

## [Adding new segments from multiple numpy arrays](https://discourse.slicer.org/t/adding-new-segments-from-multiple-numpy-arrays/38257)

<div class="topic-metadata">

**Author:** [@roboted](https://discourse.slicer.org/u/roboted)\
**Replies:** 2\
**Last updated:** [September 6, 2024, 11:20am UTC](https://discourse.slicer.org/t/adding-new-segments-from-multiple-numpy-arrays/38257 "2024-09-06T11:20:42Z")

</div>

Hello, I am working on importing numpy arrays into a segmentation so that they are shown in the segment editor as new segments. What I have now after seeing some examples is: label\_map\_volume = slicer.mrmlScene.AddNew…

---

## [How to build NVidia NVAPI in slicer environment](https://discourse.slicer.org/t/how-to-build-nvidia-nvapi-in-slicer-environment/37771)

<div class="topic-metadata">

**Author:** [@alientex](https://discourse.slicer.org/u/alientex)\
**Replies:** 6\
**Last updated:** [September 5, 2024, 4:27am UTC](https://discourse.slicer.org/t/how-to-build-nvidia-nvapi-in-slicer-environment/37771 "2024-09-05T04:27:06Z")

</div>

Hello everyone, I want to add the nvapi SDK to the Slicer environment so that users can choose which GPU to use, similar to how we select a GPU in the NVIDIA Control Panel for a specific application. Can anybody guide …

---

## [Publication of updated segmentations tutorial](https://discourse.slicer.org/t/publication-of-updated-segmentations-tutorial/38074)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 5\
**Last updated:** [September 4, 2024, 3:03pm UTC](https://discourse.slicer.org/t/publication-of-updated-segmentations-tutorial/38074 "2024-09-04T15:03:31Z")

</div>

Hi all, After a long time we finally finished an updated version of the Segment Editor tutorial with @nagy.attila (see for example Project Description | NA-MIC Project Weeks). In the ReadTheDocs documentation the tutor…

---

## [Custom application build fails due to missing DESCRIPTION\_FILE after upgrade to 5.6.2](https://discourse.slicer.org/t/custom-application-build-fails-due-to-missing-description-file-after-upgrade-to-5-6-2/38173)

<div class="topic-metadata">

**Author:** [@darabi](https://discourse.slicer.org/u/darabi)\
**Replies:** 3\
**Last updated:** [September 4, 2024, 2:46pm UTC](https://discourse.slicer.org/t/custom-application-build-fails-due-to-missing-description-file-after-upgrade-to-5-6-2/38173 "2024-09-04T14:46:13Z")

</div>

Hello, I have a custom application which built and ran fine on 5.4.x. After upgrading the dependencies to 5.6.2 and the latest versions of the plugins which I use, the build fails with CMake Error at CMake/SlicerMacroB…

---

## [How to cut segment using closed curve](https://discourse.slicer.org/t/how-to-cut-segment-using-closed-curve/38211)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 0\
**Last updated:** [September 4, 2024, 1:57pm UTC](https://discourse.slicer.org/t/how-to-cut-segment-using-closed-curve/38211 "2024-09-04T13:57:44Z")

</div>

is it possible to preserve the segment area inside the closed curve , erase the outside part ?

---

## [Automated Detection of Aortic Sinus Points and Central Coordinate Calculation in Python](https://discourse.slicer.org/t/automated-detection-of-aortic-sinus-points-and-central-coordinate-calculation-in-python/38192)

<div class="topic-metadata">

**Author:** [@Seokjun\_Hwang](https://discourse.slicer.org/u/Seokjun_Hwang)\
**Replies:** 0\
**Last updated:** [September 4, 2024, 6:52am UTC](https://discourse.slicer.org/t/automated-detection-of-aortic-sinus-points-and-central-coordinate-calculation-in-python/38192 "2024-09-04T06:52:01Z")

</div>

I would like to automatically detect the three protruding points of the aortic sinus, as shown in the picture, using Python. Could you suggest an algorithm or code that can achieve this? The final goal is to identify …

---

## [How to use a standalone python environment for data transfer with 3Dslicer](https://discourse.slicer.org/t/how-to-use-a-standalone-python-environment-for-data-transfer-with-3dslicer/38161)

<div class="topic-metadata">

**Author:** [@wenlin\_x](https://discourse.slicer.org/u/wenlin_x)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 3:48pm UTC](https://discourse.slicer.org/t/how-to-use-a-standalone-python-environment-for-data-transfer-with-3dslicer/38161 "2024-09-02T15:48:32Z")

</div>

How to use a standalone python environment for data transfer with 3Dslicer

---

## [Python script for converting nrrd to gltf](https://discourse.slicer.org/t/python-script-for-converting-nrrd-to-gltf/38101)

<div class="topic-metadata">

**Author:** [@anuragp2018](https://discourse.slicer.org/u/anuragp2018)\
**Replies:** 8\
**Last updated:** [September 2, 2024, 3:13am UTC](https://discourse.slicer.org/t/python-script-for-converting-nrrd-to-gltf/38101 "2024-09-02T03:13:29Z")

</div>

Hello i want python script that convert nrrd to 3d like slicer convert 3d.

---

## [How to access 3DSlicer style (dark/light)](https://discourse.slicer.org/t/how-to-access-3dslicer-style-dark-light/38150)

<div class="topic-metadata">

**Author:** [@Kuan\_Yi\_Wang](https://discourse.slicer.org/u/Kuan_Yi_Wang)\
**Replies:** 1\
**Last updated:** [September 1, 2024, 10:12pm UTC](https://discourse.slicer.org/t/how-to-access-3dslicer-style-dark-light/38150 "2024-09-01T22:12:25Z")

</div>

I am currently helping in developing an extension to 3DSlicer in Python. How can I access the style of 3DSlicer? Without using the OS style since a user may have manually changed the theme for 3DSlicer only.

---

## [Python interpreter encountered a "no OPENSSL\_Applink" error](https://discourse.slicer.org/t/python-interpreter-encountered-a-no-openssl-applink-error/38135)

<div class="topic-metadata">

**Author:** [@hushanwsr](https://discourse.slicer.org/u/hushanwsr)\
**Replies:** 2\
**Last updated:** [August 31, 2024, 2:50pm UTC](https://discourse.slicer.org/t/python-interpreter-encountered-a-no-openssl-applink-error/38135 "2024-08-31T14:50:13Z")

</div>

I am building a project on Windows, and the environment meets the requirements specified in the file. During the build process of most Python-related projects (like python-setuptools, python-pip, python-numpy, etc.), the…

---

## [.ets .vsi File loading](https://discourse.slicer.org/t/ets-vsi-file-loading/38136)

<div class="topic-metadata">

**Author:** [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Replies:** 1\
**Last updated:** [August 30, 2024, 8:29pm UTC](https://discourse.slicer.org/t/ets-vsi-file-loading/38136 "2024-08-30T20:29:11Z")

</div>

We’ve recently came across the proprietary olympus .vsi/.ets file types used primarily at the bioinformatics field. It stores a sequence of images, much like a sequence node, but with with a pyramidal scheme, which lower…

---

## [Creating a DICOM from a JPEG](https://discourse.slicer.org/t/creating-a-dicom-from-a-jpeg/38104)

<div class="topic-metadata">

**Author:** [@vedantr09](https://discourse.slicer.org/u/vedantr09)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 12:03am UTC](https://discourse.slicer.org/t/creating-a-dicom-from-a-jpeg/38104 "2024-08-29T00:03:01Z")

</div>

Hi, Is there a way to create a DICOM file from a JPEG image if I have all the header information. For example, I have a X-ray image with imaging metadata and I would like to create a DICOM with the metadata as tags. An…

---

## [PLY file colors not displayed](https://discourse.slicer.org/t/ply-file-colors-not-displayed/4206)

<div class="topic-metadata">

**Author:** [@Niels](https://discourse.slicer.org/u/Niels)\
**Replies:** 23\
**Last updated:** [August 28, 2024, 8:11pm UTC](https://discourse.slicer.org/t/ply-file-colors-not-displayed/4206 "2024-08-28T20:11:21Z")

</div>

I have an exported ply file that contains color information that I would like to see and be able to access from python. If I load the file I see the model but I do not see the color. I looked at the header of the file an…

---

## [Build Slicer using Qt6 on Win11](https://discourse.slicer.org/t/build-slicer-using-qt6-on-win11/38068)

<div class="topic-metadata">

**Author:** [@chz31](https://discourse.slicer.org/u/chz31)\
**Replies:** 4\
**Last updated:** [August 28, 2024, 4:59pm UTC](https://discourse.slicer.org/t/build-slicer-using-qt6-on-win11/38068 "2024-08-28T16:59:39Z")

</div>

Hi all, Does Slicer build on Windows support Qt6? I could not find Qt 5 install online. I tried to set Qt locations following the instruction. I simply updated Qt 5 to Qt6\_DIR. It reported a Qt5.15 not found error (past…

---

## [Build Slicer on Win11, use git bash to configure Slicer repo failed due to ownership discripancy](https://discourse.slicer.org/t/build-slicer-on-win11-use-git-bash-to-configure-slicer-repo-failed-due-to-ownership-discripancy/38050)

<div class="topic-metadata">

**Author:** [@chz31](https://discourse.slicer.org/u/chz31)\
**Replies:** 2\
**Last updated:** [August 27, 2024, 4:55pm UTC](https://discourse.slicer.org/t/build-slicer-on-win11-use-git-bash-to-configure-slicer-repo-failed-due-to-ownership-discripancy/38050 "2024-08-27T16:55:55Z")

</div>

Hi all, I’m trying to build Slicer on Win 11. However, when I tried to configure the Slicer repository by selecting “open bash here” for the Utility folder, following instruction here, I got an repo owner discrepancy er…

---

## [How to handle slider in the slicer widget](https://discourse.slicer.org/t/how-to-handle-slider-in-the-slicer-widget/37790)

<div class="topic-metadata">

**Author:** [@maniron](https://discourse.slicer.org/u/maniron)\
**Replies:** 2\
**Last updated:** [September 12, 2024, 3:25am UTC](https://discourse.slicer.org/t/how-to-handle-slider-in-the-slicer-widget/37790 "2024-09-12T03:25:29Z")

</div>

Hi, I want to do an operation when ever there is a change in the value of the slider in the red widget

---

## [Develop an extension for coronary tortuosity evaluation](https://discourse.slicer.org/t/develop-an-extension-for-coronary-tortuosity-evaluation/33135)

<div class="topic-metadata">

**Author:** [@michelaf](https://discourse.slicer.org/u/michelaf)\
**Replies:** 3\
**Last updated:** [August 27, 2024, 10:11am UTC](https://discourse.slicer.org/t/develop-an-extension-for-coronary-tortuosity-evaluation/33135 "2024-08-27T10:11:12Z")

</div>

Hi everyone, I am a first year PhD student in biomedical engineering. For my MSc thesis I worked with 3D Slicer to create an extension for an ongoing project at the local hospital. The aim of the project is to develop …

---

## [How to extract both x-, y-, z-coordinates and normalvector at each point of centerline of airwaysegmentation](https://discourse.slicer.org/t/how-to-extract-both-x-y-z-coordinates-and-normalvector-at-each-point-of-centerline-of-airwaysegmentation/35353)

<div class="topic-metadata">

**Author:** [@Johan\_Rubak](https://discourse.slicer.org/u/Johan_Rubak)\
**Replies:** 10\
**Last updated:** [August 24, 2024, 7:44am UTC](https://discourse.slicer.org/t/how-to-extract-both-x-y-z-coordinates-and-normalvector-at-each-point-of-centerline-of-airwaysegmentation/35353 "2024-08-24T07:44:13Z")

</div>

Hi. I want to extract a centerline of an airwaysegmentation. I have tried out different tools for this, among other SlicerVMTK extension, but always ending up in a situation with only the possibility of exporting x-, y-,…

---

## [Resolving Markup Interaction Slowdown on Model Nodes in 3D Viewer](https://discourse.slicer.org/t/resolving-markup-interaction-slowdown-on-model-nodes-in-3d-viewer/38010)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [August 23, 2024, 1:01pm UTC](https://discourse.slicer.org/t/resolving-markup-interaction-slowdown-on-model-nodes-in-3d-viewer/38010 "2024-08-23T13:01:03Z")

</div>

Hi all, Like the video below, the interaction speed of the Markups slows down significantly when hovering over the ModelNode (in the video, it’s a tooth scan), causing the FPS to drop to around 8. Is there a way to res…

---

## [Building extension module for Spect Image Reconstruction](https://discourse.slicer.org/t/building-extension-module-for-spect-image-reconstruction/37993)

<div class="topic-metadata">

**Author:** [@obed](https://discourse.slicer.org/u/obed)\
**Replies:** 0\
**Last updated:** [August 21, 2024, 11:05pm UTC](https://discourse.slicer.org/t/building-extension-module-for-spect-image-reconstruction/37993 "2024-08-21T23:05:04Z")

</div>

Hi Team, We would like to notify the community that are building an extension module that interfaces with a SPECT reconstruction library, Pytomography (pytomography · PyPI). This is to provide a graphic user interface f…

---

## [Running a Python script for smoothing segmentation from the terminal](https://discourse.slicer.org/t/running-a-python-script-for-smoothing-segmentation-from-the-terminal/37843)

<div class="topic-metadata">

**Author:** [@ruili](https://discourse.slicer.org/u/ruili)\
**Replies:** 7\
**Last updated:** [August 20, 2024, 8:52pm UTC](https://discourse.slicer.org/t/running-a-python-script-for-smoothing-segmentation-from-the-terminal/37843 "2024-08-20T20:52:39Z")

</div>

Hello, I have the following script that smooths a binary segmentation using the Joint Taubin method from slicer. Suppose this script is saved at smoothing.py, I am calling it with this command: path/to/slicer --no-splas…

---

## [Failed to build Slicer cause the CTK.build exited with code 1](https://discourse.slicer.org/t/failed-to-build-slicer-cause-the-ctk-build-exited-with-code-1/37872)

<div class="topic-metadata">

**Author:** [@jhan1245](https://discourse.slicer.org/u/jhan1245)\
**Replies:** 4\
**Last updated:** [August 20, 2024, 12:23am UTC](https://discourse.slicer.org/t/failed-to-build-slicer-cause-the-ctk-build-exited-with-code-1/37872 "2024-08-20T00:23:49Z")

</div>

Hello, I have been attempting to build the latest version of Slicer over the past few days, but I encountered a failure when trying to build CTK. And here is the error log what I received. CMake = 3.28.1 Visual studio…

---

## [Why does the interface refresh lag when I set opacity for the display node](https://discourse.slicer.org/t/why-does-the-interface-refresh-lag-when-i-set-opacity-for-the-display-node/37876)

<div class="topic-metadata">

**Author:** [@fl\_wang](https://discourse.slicer.org/u/fl_wang)\
**Replies:** 1\
**Last updated:** [August 19, 2024, 9:17am UTC](https://discourse.slicer.org/t/why-does-the-interface-refresh-lag-when-i-set-opacity-for-the-display-node/37876 "2024-08-19T09:17:30Z")

</div>

femurClipedDisplayNode-\>SetOpacity(0.6); tibiaClipedDisplayNode-\>SetOpacity(0.6);

---

## [Call Slicer plug-in from external python program](https://discourse.slicer.org/t/call-slicer-plug-in-from-external-python-program/37900)

<div class="topic-metadata">

**Author:** [@ning\_w](https://discourse.slicer.org/u/ning_w)\
**Replies:** 7\
**Last updated:** [August 19, 2024, 7:25am UTC](https://discourse.slicer.org/t/call-slicer-plug-in-from-external-python-program/37900 "2024-08-19T07:25:37Z")

</div>

I am trying to do secondary development based on 3D slicer, using Python language, and now I have encountered a problem, and I am here to ask for your help. I want to use the plug-in OpenIGTLink that calls slcier externa…

---

## [Retrieving SegmentationStatistics from Large Datasets Using 3D Slicer API](https://discourse.slicer.org/t/retrieving-segmentationstatistics-from-large-datasets-using-3d-slicer-api/37924)

<div class="topic-metadata">

**Author:** [@JoshOnichino](https://discourse.slicer.org/u/JoshOnichino)\
**Replies:** 2\
**Last updated:** [August 17, 2024, 3:23pm UTC](https://discourse.slicer.org/t/retrieving-segmentationstatistics-from-large-datasets-using-3d-slicer-api/37924 "2024-08-17T15:23:10Z")

</div>

Hello! I a healthcare researcher working on medical image segmentation. I am hoping to automate the retrieval of SegmentationStatistics tables using 3D Slicer’s Python API. However, when I was developing my program, I ra…

---

## [How to make vtkPolyDataBooleanFilter or CombineModels Faster?](https://discourse.slicer.org/t/how-to-make-vtkpolydatabooleanfilter-or-combinemodels-faster/37882)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 4\
**Last updated:** [August 16, 2024, 12:38am UTC](https://discourse.slicer.org/t/how-to-make-vtkpolydatabooleanfilter-or-combinemodels-faster/37882 "2024-08-16T00:38:15Z")

</div>

when i use CombineModels Module to Substract Model A to Model B,it may take a long time to do the task , i find that the CPU and Memory usage is not high ， is there a way to speed up the process using multi process or ot…

---

## [Different Volume Calculation Results](https://discourse.slicer.org/t/different-volume-calculation-results/37896)

<div class="topic-metadata">

**Author:** [@dzzhang](https://discourse.slicer.org/u/dzzhang)\
**Replies:** 4\
**Last updated:** [August 15, 2024, 5:24pm UTC](https://discourse.slicer.org/t/different-volume-calculation-results/37896 "2024-08-15T17:24:50Z")

</div>

I have a binary mask, I loaded it in 3D slicer as a segmentation file, and in Data module, I used “export visible segments to model”. Then in Models module, I can see the model volume is 55349.06 mm^3 (none smooth). T…

---

## [How to make lib file for use in ue5 engine](https://discourse.slicer.org/t/how-to-make-lib-file-for-use-in-ue5-engine/37878)

<div class="topic-metadata">

**Author:** [@sleighmaster](https://discourse.slicer.org/u/sleighmaster)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 7:54am UTC](https://discourse.slicer.org/t/how-to-make-lib-file-for-use-in-ue5-engine/37878 "2024-08-14T07:54:45Z")

</div>

I even made the Slicer.sln file through cmake after cloning the git project. I want to create a plug-in (library) that can use the functions of Slicer in Unreal Engine 5. Does anyone know how?

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

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