# Development

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

---

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

---

## [Improving Rendering Response Time by Reducing Volume Rendering Quality](https://discourse.slicer.org/t/improving-rendering-response-time-by-reducing-volume-rendering-quality/37750)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 2\
**Last updated:** [August 13, 2024, 12:28pm UTC](https://discourse.slicer.org/t/improving-rendering-response-time-by-reducing-volume-rendering-quality/37750 "2024-08-13T12:28:25Z")

</div>

Hello, I am working on volume rendering and displaying multiple meshes simultaneously (Like below figure). The problem is that the rendering response time slows down as the number of models increases. It seems this is …

---

## [How to Run a Built Slicer Loadable Module on a Released Slicer Version](https://discourse.slicer.org/t/how-to-run-a-built-slicer-loadable-module-on-a-released-slicer-version/37832)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 8\
**Last updated:** [August 13, 2024, 12:12pm UTC](https://discourse.slicer.org/t/how-to-run-a-built-slicer-loadable-module-on-a-released-slicer-version/37832 "2024-08-13T12:12:39Z")

</div>

Hello, I am currently developing a loadable module for 3D Slicer and have successfully built the module. I have also tested running the module within the built version of Slicer. One thing I am curious about is how to …

---

## [Distance Calculation Between Two Model Nodes](https://discourse.slicer.org/t/distance-calculation-between-two-model-nodes/37839)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 2\
**Last updated:** [August 13, 2024, 12:11pm UTC](https://discourse.slicer.org/t/distance-calculation-between-two-model-nodes/37839 "2024-08-13T12:11:37Z")

</div>

Hello, I have two model nodes: one that moves based on a transform handle and another that is fixed. I want to find the shortest distance between these two model nodes. I’ve implemented this functionality with the code…

---

## [InteractionEndEvent for TransformNode](https://discourse.slicer.org/t/interactionendevent-for-transformnode/37852)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 0\
**Last updated:** [August 13, 2024, 12:10pm UTC](https://discourse.slicer.org/t/interactionendevent-for-transformnode/37852 "2024-08-13T12:10:04Z")

</div>

Hello, I would like to trigger an event when the interaction with the transform node’s handles in Slicer 5.7 ends after modifying the transform (similar to the PointEndInteractionEvent feature in Markups). So far, I’ve…

---

## [Build errors with slicer](https://discourse.slicer.org/t/build-errors-with-slicer/36817)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 12:15am UTC](https://discourse.slicer.org/t/build-errors-with-slicer/36817 "2024-08-13T00:15:37Z")

</div>

When I compile Slicer, it always shows the following error. I am using the main version from GitHub. Can someone tell me how to solve this problem?

---

## [Display text on 3D stereoscopic views](https://discourse.slicer.org/t/display-text-on-3d-stereoscopic-views/37807)

<div class="topic-metadata">

**Author:** [@Laura\_A](https://discourse.slicer.org/u/Laura_A)\
**Replies:** 3\
**Last updated:** [August 12, 2024, 11:04pm UTC](https://discourse.slicer.org/t/display-text-on-3d-stereoscopic-views/37807 "2024-08-12T23:04:06Z")

</div>

How can I display text in pop-up 3D views? Steps I follow: I create and show a right and left view with the following code: layoutName = "LeftEyeView" layoutLabel = "Left Eye" layoutColor = \[1.0, 1.0, 0.0\] viewOwner…

---

## [Centerline extraction C++ having different result from the slicer](https://discourse.slicer.org/t/centerline-extraction-c-having-different-result-from-the-slicer/32370)

<div class="topic-metadata">

**Author:** [@liy0na](https://discourse.slicer.org/u/liy0na)\
**Replies:** 2\
**Last updated:** [August 12, 2024, 12:47pm UTC](https://discourse.slicer.org/t/centerline-extraction-c-having-different-result-from-the-slicer/32370 "2024-08-12T12:47:56Z")

</div>

Hello, I have an STL file containing a surface mesh. When I use the slicer I can easily extract the centerlines from it. However when I use the following C++ code. I am only getting 3 output points. vtkSmartPointe…

---

## [How can I get an array from seg.nrrd file in Python?](https://discourse.slicer.org/t/how-can-i-get-an-array-from-seg-nrrd-file-in-python/37842)

<div class="topic-metadata">

**Author:** [@rim](https://discourse.slicer.org/u/rim)\
**Replies:** 1\
**Last updated:** [August 12, 2024, 12:42pm UTC](https://discourse.slicer.org/t/how-can-i-get-an-array-from-seg-nrrd-file-in-python/37842 "2024-08-12T12:42:27Z")

</div>

I want to read the data from the seg.nrrd file using the nrrd.read() function and obtain it in array format as a 3D array. However, the data in the seg.nrrd file consists only of arrays filled with zeros. What might I b…

---

## [Python script to load and output DICOM](https://discourse.slicer.org/t/python-script-to-load-and-output-dicom/37741)

<div class="topic-metadata">

**Author:** [@mingtian126](https://discourse.slicer.org/u/mingtian126)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 5:43pm UTC](https://discourse.slicer.org/t/python-script-to-load-and-output-dicom/37741 "2024-08-06T17:43:52Z")

</div>

Hello, I try to write a python script to do elastix registration in a batch (loop through many subjects). Could you please share some python script to load DICOM series from a folder and Output the volume to DICOM as wel…

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

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