# Development

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

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

**Page:** 25

---

## [Resolution of the "Draw" effect](https://discourse.slicer.org/t/resolution-of-the-draw-effect/34513)

<div class="topic-metadata">

**Author:** [@yaraabdelazim](https://discourse.slicer.org/u/yaraabdelazim)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 8:54am UTC](https://discourse.slicer.org/t/resolution-of-the-draw-effect/34513 "2024-02-27T08:54:09Z")

</div>

Hello, I am new at 3D slicer but I am trying to improve the resolution of the line drawn with the Draw effect in the SegmentEditor module by interpolating between two consecutive points so that the line or the shape dra…

---

## [New to Slicer: Overlaying a .mrml file on a DICOM image](https://discourse.slicer.org/t/new-to-slicer-overlaying-a-mrml-file-on-a-dicom-image/34545)

<div class="topic-metadata">

**Author:** [@Arjun\_Moorthy](https://discourse.slicer.org/u/Arjun_Moorthy)\
**Replies:** 3\
**Last updated:** [February 27, 2024, 7:51pm UTC](https://discourse.slicer.org/t/new-to-slicer-overlaying-a-mrml-file-on-a-dicom-image/34545 "2024-02-27T19:51:13Z")

</div>

I’m new to slicer, and I’m working with a prostate cancer dataset (PROSTATE-MRI-US-BIOPSY - The Cancer Imaging Archive (TCIA)) and I have patient MRI/US DICOM data and .mrml file biopsy vectors and I’d like to overlay .m…

---

## [How to do cross section with free angle?](https://discourse.slicer.org/t/how-to-do-cross-section-with-free-angle/10016)

<div class="topic-metadata">

**Author:** [@Illusion](https://discourse.slicer.org/u/Illusion)\
**Replies:** 18\
**Last updated:** [February 27, 2024, 3:48pm UTC](https://discourse.slicer.org/t/how-to-do-cross-section-with-free-angle/10016 "2024-02-27T15:48:19Z")

</div>

Slicer version: 4.10.2 How to use the slicer to do free-angle cross-section, not only the three anatomy planes? How could I get the cross-section like the several cross-sections in blue planes? Thank you very much!

---

## [Consistent formatting and indentation of Slicer C++ sources](https://discourse.slicer.org/t/consistent-formatting-and-indentation-of-slicer-c-sources/34550)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 6:29pm UTC](https://discourse.slicer.org/t/consistent-formatting-and-indentation-of-slicer-c-sources/34550 "2024-02-26T18:29:06Z")

</div>

After updating the C++ source files to a common indentation style \[1\], we are now finalizing the integration of .clang-format configuration files as well as pre-commit configuration ensuring that IDE can appropriately fo…

---

## [How to use the functionality I'm interested in 3D Slicer as a library for my own program?](https://discourse.slicer.org/t/how-to-use-the-functionality-im-interested-in-3d-slicer-as-a-library-for-my-own-program/34537)

<div class="topic-metadata">

**Author:** [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Replies:** 1\
**Last updated:** [February 26, 2024, 1:35pm UTC](https://discourse.slicer.org/t/how-to-use-the-functionality-im-interested-in-3d-slicer-as-a-library-for-my-own-program/34537 "2024-02-26T13:35:22Z")

</div>

How to use the functionality I’m interested in 3D Slicer as a library for my own program?

---

## [Slicer crashes after calling request\_adapter (wgpu)](https://discourse.slicer.org/t/slicer-crashes-after-calling-request-adapter-wgpu/34521)

<div class="topic-metadata">

**Author:** [@lscoder](https://discourse.slicer.org/u/lscoder)\
**Replies:** 1\
**Last updated:** [February 26, 2024, 12:20am UTC](https://discourse.slicer.org/t/slicer-crashes-after-calling-request-adapter-wgpu/34521 "2024-02-26T00:20:54Z")

</div>

Operating system: Ubuntu 22.04.4 LTS (kernel 6.5.0-18-generic) Slicer version: 5.6.1 r32438 / 117ce5f and 5.7.0-2024-02-20 r32729 / 2762f0c I am trying to run a python script (WebGPU) on Slicer but it crashes consisten…

---

## [How to generate cross sectional view in dicom dentistry using python ?](https://discourse.slicer.org/t/how-to-generate-cross-sectional-view-in-dicom-dentistry-using-python/34520)

<div class="topic-metadata">

**Author:** [@Team\_Python](https://discourse.slicer.org/u/Team_Python)\
**Replies:** 0\
**Last updated:** [February 24, 2024, 3:15pm UTC](https://discourse.slicer.org/t/how-to-generate-cross-sectional-view-in-dicom-dentistry-using-python/34520 "2024-02-24T15:15:37Z")

</div>

I have generated axial, coronal, and sagittal images using DICOM in Python programming. Now I want to create a cross-sectional cone beam, meaning I want to separate all teeth individually, but I don’t understand how to d…

---

## [Missing exception handling](https://discourse.slicer.org/t/missing-exception-handling/34473)

<div class="topic-metadata">

**Author:** [@Heiko\_Stark](https://discourse.slicer.org/u/Heiko_Stark)\
**Replies:** 1\
**Last updated:** [February 22, 2024, 3:56pm UTC](https://discourse.slicer.org/t/missing-exception-handling/34473 "2024-02-22T15:56:40Z")

</div>

Slicer is not able to load a malformed nii.gz file in 5.6.1, which is possible with version 4.8. Missing error message: only visible in logging window and cryptic. A meaningful error message or more tolerant loading woul…

---

## [Stop python script without causing 3D Slicer to close](https://discourse.slicer.org/t/stop-python-script-without-causing-3d-slicer-to-close/34463)

<div class="topic-metadata">

**Author:** [@Teresa\_Marotta](https://discourse.slicer.org/u/Teresa_Marotta)\
**Replies:** 1\
**Last updated:** [February 22, 2024, 3:27am UTC](https://discourse.slicer.org/t/stop-python-script-without-causing-3d-slicer-to-close/34463 "2024-02-22T03:27:40Z")

</div>

Is there a way to stop a python script from running in the Python Console without closing 3D Slicer? I’m running a script to populate data into a table and I want to stop the script and export the data to a csv file. I t…

---

## [Merging masks of nifti format and assigning conductivities to each](https://discourse.slicer.org/t/merging-masks-of-nifti-format-and-assigning-conductivities-to-each/34401)

<div class="topic-metadata">

**Author:** [@savvy73](https://discourse.slicer.org/u/savvy73)\
**Replies:** 3\
**Last updated:** [February 21, 2024, 3:17am UTC](https://discourse.slicer.org/t/merging-masks-of-nifti-format-and-assigning-conductivities-to-each/34401 "2024-02-21T03:17:44Z")

</div>

Hi, I have masks of different regions of brain in niftii format. I want to combine all the masks and assign conductivities to the same after which I need to mesh the output. I wanted to know if it can be done using 3D sl…

---

## [Tab changed event in customized tabbed view](https://discourse.slicer.org/t/tab-changed-event-in-customized-tabbed-view/34432)

<div class="topic-metadata">

**Author:** [@bzhu](https://discourse.slicer.org/u/bzhu)\
**Replies:** 2\
**Last updated:** [February 20, 2024, 11:55pm UTC](https://discourse.slicer.org/t/tab-changed-event-in-customized-tabbed-view/34432 "2024-02-20T23:55:20Z")

</div>

With a customized tab view, I have several tabs in a layout. (See Customized tabbed view Within each tab, there are a group of views. I need to place some action code when the active tab is changed. Help to capture thi…

---

## [SlicerCAT as web service](https://discourse.slicer.org/t/slicercat-as-web-service/32976)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 7\
**Last updated:** [February 19, 2024, 12:24pm UTC](https://discourse.slicer.org/t/slicercat-as-web-service/32976 "2024-02-19T12:24:33Z")

</div>

Hi, I’m thinking about making a web service based on SlicerCAT. That means SlicerCAT should be run as a backend and the frontend should control what is rendered in SlicerCAT and all the VTK interaction (same as we do i…

---

## [Relation between μ and Zeff](https://discourse.slicer.org/t/relation-between-and-zeff/34382)

<div class="topic-metadata">

**Author:** [@styrene](https://discourse.slicer.org/u/styrene)\
**Replies:** 0\
**Last updated:** [February 18, 2024, 4:09am UTC](https://discourse.slicer.org/t/relation-between-and-zeff/34382 "2024-02-18T04:09:17Z")

</div>

Hey guys, recently I plan to write an extension for advanced post-processing of dual-energy CT, but I can’t construct a relation between the linear decay coefficient μ and the effective atomic number Zeff, do you have an…

---

## [Many extensions are not getting updates for Slicer Stable Release](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 6\
**Last updated:** [February 17, 2024, 8:45pm UTC](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343 "2024-02-17T20:45:39Z")

</div>

Nightly build of many extensions for Slicer-5.6 have build errors on Windows and macOS. The errors started to show up a few weeks ago. For example, SlicerHeart extension failures: https://slicer.cdash.org/index.php?pro…

---

## [Slicer DCMTK needs an update](https://discourse.slicer.org/t/slicer-dcmtk-needs-an-update/34363)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Replies:** 3\
**Last updated:** [February 16, 2024, 8:13pm UTC](https://discourse.slicer.org/t/slicer-dcmtk-needs-an-update/34363 "2024-02-16T20:13:48Z")

</div>

Slicer is using DCMTK version 3.6.6, which based on the tag in GitHub - commontk/DCMTK at patched-DCMTK-3.6.6\_20210115 is from October 2021! Current version of DCMTK is 3.6.8: git.dcmtk.org Git - dcmtk.git/summary. Mich…

---

## [Can I change the color of only certain parts of the mesh?](https://discourse.slicer.org/t/can-i-change-the-color-of-only-certain-parts-of-the-mesh/34337)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 3\
**Last updated:** [February 15, 2024, 10:40pm UTC](https://discourse.slicer.org/t/can-i-change-the-color-of-only-certain-parts-of-the-mesh/34337 "2024-02-15T22:40:57Z")

</div>

Operating system: window 10 Slicer version: 5.4 hi slicer users, Is it possible in slicer to select a specific area on the mesh (e.g. by dragging the mouse) and change the color of only that area? If it is possibl…

---

## [Create labelmap nrrd file from numpy array](https://discourse.slicer.org/t/create-labelmap-nrrd-file-from-numpy-array/34285)

<div class="topic-metadata">

**Author:** [@Elias\_Kim](https://discourse.slicer.org/u/Elias_Kim)\
**Replies:** 1\
**Last updated:** [February 13, 2024, 5:00pm UTC](https://discourse.slicer.org/t/create-labelmap-nrrd-file-from-numpy-array/34285 "2024-02-13T17:00:20Z")

</div>

Hi, I’m interested in converting a numpy array into a .nrrd file that functions as a label map in 3D slicer. This numpy array represents the output of a custom semantic segmentation model, containing 33 distinct classe…

---

## [Slicer crashes after installing and importing tensorflow on linux](https://discourse.slicer.org/t/slicer-crashes-after-installing-and-importing-tensorflow-on-linux/34259)

<div class="topic-metadata">

**Author:** [@CyprienB](https://discourse.slicer.org/u/CyprienB)\
**Replies:** 2\
**Last updated:** [February 12, 2024, 6:29pm UTC](https://discourse.slicer.org/t/slicer-crashes-after-installing-and-importing-tensorflow-on-linux/34259 "2024-02-12T18:29:58Z")

</div>

Operating system: Fedora Linux 39 Slicer version: Slicer-5.6.1 Expected behavior: Import tensorflow from a python extension Actual behavior: Slicer crashes after installing tensorflow Hello, After installing Slicer-…

---

## [Slicer 5.6: unable to change interactor style](https://discourse.slicer.org/t/slicer-5-6-unable-to-change-interactor-style/34010)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 8\
**Last updated:** [February 12, 2024, 7:52am UTC](https://discourse.slicer.org/t/slicer-5-6-unable-to-change-interactor-style/34010 "2024-02-12T07:52:25Z")

</div>

Hi, In previous releases of Slicer (5.2 for example) it used to be possible to change interactor (from this post): lm = slicer.app.layoutManager() rw = lm.sliceWidget('Red').sliceView().renderWindow() style = vtk.vtkIn…

---

## [Need Help Turning X-Ray To 3D Scan](https://discourse.slicer.org/t/need-help-turning-x-ray-to-3d-scan/34249)

<div class="topic-metadata">

**Author:** [@BabyMama937](https://discourse.slicer.org/u/BabyMama937)\
**Replies:** 0\
**Last updated:** [February 11, 2024, 6:29pm UTC](https://discourse.slicer.org/t/need-help-turning-x-ray-to-3d-scan/34249 "2024-02-11T18:29:18Z")

</div>

Hi, how can convert X-Ray scans to 3D scans? Thank you!

---

## [Create dock widgets over Slicer views](https://discourse.slicer.org/t/create-dock-widgets-over-slicer-views/20584)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 16\
**Last updated:** [February 10, 2024, 6:56pm UTC](https://discourse.slicer.org/t/create-dock-widgets-over-slicer-views/20584 "2024-02-10T18:56:16Z")

</div>

Hi. I’m having problems implementing a floating (unmovable) widget container over the views like in these images: As you can see the floating widgets appear over the views (3D and slices) and I think they sh…

---

## [Request for Detailed Steps to Reproduce Issues: Loading Photos in Slicer 3D and more](https://discourse.slicer.org/t/request-for-detailed-steps-to-reproduce-issues-loading-photos-in-slicer-3d-and-more/34227)

<div class="topic-metadata">

**Author:** [@Aram\_Harutyunyan](https://discourse.slicer.org/u/Aram_Harutyunyan)\
**Replies:** 1\
**Last updated:** [February 9, 2024, 4:13pm UTC](https://discourse.slicer.org/t/request-for-detailed-steps-to-reproduce-issues-loading-photos-in-slicer-3d-and-more/34227 "2024-02-09T16:13:23Z")

</div>

I’m trying to contribute in this project but from the user’s point of view I could not recreate many issues and one of them for example is Fix initialization of MRML node selector linked to parameter node on scene load ·…

---

## [How to draw curve on model surface?](https://discourse.slicer.org/t/how-to-draw-curve-on-model-surface/34211)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 0\
**Last updated:** [February 8, 2024, 2:48pm UTC](https://discourse.slicer.org/t/how-to-draw-curve-on-model-surface/34211 "2024-02-08T14:48:42Z")

</div>

i have two markups point on a model surface , is it possible to draw a curve on the model surface to connect two markups point through python script? or is there any extensions can do this work?

---

## [Connecting 3D Slicer with XNAT](https://discourse.slicer.org/t/connecting-3d-slicer-with-xnat/34182)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 2\
**Last updated:** [February 8, 2024, 2:12am UTC](https://discourse.slicer.org/t/connecting-3d-slicer-with-xnat/34182 "2024-02-08T02:12:43Z")

</div>

Is there any plugin for connecting slicer with xnat? regards, Saima

---

## [Different approach for centerline extraction](https://discourse.slicer.org/t/different-approach-for-centerline-extraction/34036)

<div class="topic-metadata">

**Author:** [@nmg-earthling](https://discourse.slicer.org/u/nmg-earthling)\
**Replies:** 6\
**Last updated:** [February 7, 2024, 9:24pm UTC](https://discourse.slicer.org/t/different-approach-for-centerline-extraction/34036 "2024-02-07T21:24:24Z")

</div>

Hello Slicer Community, I have some scripts written for a client about 9 or 10 years ago for automated centerline extraction (and calculating metrics for those centerlines) that I developed with VMTK. The client recent…

---

## [How to convert between ITK transforms and Slicer transform nodes?](https://discourse.slicer.org/t/how-to-convert-between-itk-transforms-and-slicer-transform-nodes/34074)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 8\
**Last updated:** [February 7, 2024, 4:06pm UTC](https://discourse.slicer.org/t/how-to-convert-between-itk-transforms-and-slicer-transform-nodes/34074 "2024-02-07T16:06:28Z")

</div>

I am creating a scripted module for ANTs registration (wip). It is invoking a wrapped itk::ANTSRegistration. For Slicer node ↔ ITKImage conversion, I am using previously added utility functions. But I am not aware of a c…

---

## [How to replace viewer layout with a png image](https://discourse.slicer.org/t/how-to-replace-viewer-layout-with-a-png-image/34120)

<div class="topic-metadata">

**Author:** [@tbone](https://discourse.slicer.org/u/tbone)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 11:58am UTC](https://discourse.slicer.org/t/how-to-replace-viewer-layout-with-a-png-image/34120 "2024-02-07T11:58:42Z")

</div>

Hi everyone, I’m new to Slicer and this might be a simple question, but I’ve been trying to change the viewer layout from a Python script so that I can load a simple png image into it. For example, it could just replace …

---

## [Progress bar window's inside is transparent when displaying it](https://discourse.slicer.org/t/progress-bar-windows-inside-is-transparent-when-displaying-it/34107)

<div class="topic-metadata">

**Author:** [@Gabriel\_J](https://discourse.slicer.org/u/Gabriel_J)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 7:51am UTC](https://discourse.slicer.org/t/progress-bar-windows-inside-is-transparent-when-displaying-it/34107 "2024-02-06T07:51:41Z")

</div>

Hello, I’m developing a Python plugin using the Extension Wizard template as the code basis, and I would like to add a loading bar. I’ve seen that it can be done like this: progress\_bar = slicer.util.createProgressDia…

---

## [How to access and manipulate segmentation node as a numpy array?](https://discourse.slicer.org/t/how-to-access-and-manipulate-segmentation-node-as-a-numpy-array/34110)

<div class="topic-metadata">

**Author:** [@tueboesen](https://discourse.slicer.org/u/tueboesen)\
**Replies:** 3\
**Last updated:** [February 5, 2024, 9:01am UTC](https://discourse.slicer.org/t/how-to-access-and-manipulate-segmentation-node-as-a-numpy-array/34110 "2024-02-05T09:01:28Z")

</div>

I have a segmentation node, which is a object of type \<MRMLCorePython.vtkMRMLSegmentationNode(0xcf8dfe0) at 0x7f89a3712a00\> So if I understand this correctly then that means it can have any number of binary segmentation…

---

## [Slicer build error on Windows on the dashboard](https://discourse.slicer.org/t/slicer-build-error-on-windows-on-the-dashboard/33967)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 17\
**Last updated:** [February 2, 2024, 7:19am UTC](https://discourse.slicer.org/t/slicer-build-error-on-windows-on-the-dashboard/33967 "2024-02-02T07:19:29Z")

</div>

Since January 21, Slicer build on Windows has been failing (4 out of 5 cases) - see dashbaord with this error: LINK : fatal error LNK1104: cannot open file 'D:\\D\\P\\S-0-build\\DCMTK-build\\bin\\Release\\ofstd.dll' \[D:\\D\\P\\S-…

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

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