# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=23

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

**Page:** 24

---

## [Where can I find code for functionalities like segmentation, registration etc](https://discourse.slicer.org/t/where-can-i-find-code-for-functionalities-like-segmentation-registration-etc/34831)

<div class="topic-metadata">

**Author:** [@Arun03Kumar](https://discourse.slicer.org/u/Arun03Kumar)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 4:04am UTC](https://discourse.slicer.org/t/where-can-i-find-code-for-functionalities-like-segmentation-registration-etc/34831 "2024-03-12T04:04:14Z")

</div>

Dear 3D slicer family. I am learning the codebase for learning purpose, I learned some UI implementation techniques, but I want to create a toggle button in segmentation or in functionality tools section so that it init…

---

## [Slicer Segmentation inverted normals for closed surface representation](https://discourse.slicer.org/t/slicer-segmentation-inverted-normals-for-closed-surface-representation/34762)

<div class="topic-metadata">

**Author:** [@Thibault\_Pelletier](https://discourse.slicer.org/u/Thibault_Pelletier)\
**Replies:** 4\
**Last updated:** [March 11, 2024, 7:22am UTC](https://discourse.slicer.org/t/slicer-segmentation-inverted-normals-for-closed-surface-representation/34762 "2024-03-11T07:22:08Z")

</div>

Hi everyone, We have recently noticed a problem when exporting STL and OBJ from segmentations in Slicer. Depending on the Volume’s affine, the generated normals can point inside instead of outside. This doesn’t cause a…

---

## [Save view slices to .PNG or .jpeg](https://discourse.slicer.org/t/save-view-slices-to-png-or-jpeg/34806)

<div class="topic-metadata">

**Author:** [@joanne40226](https://discourse.slicer.org/u/joanne40226)\
**Replies:** 0\
**Last updated:** [March 10, 2024, 7:01am UTC](https://discourse.slicer.org/t/save-view-slices-to-png-or-jpeg/34806 "2024-03-10T07:01:22Z")

</div>

Hi community! I now need to save all of the slices from the Red node view. I can only do it by copy image manually. I’m wondering if I can do it in the python interactor to save all slices in a command? Thank you.

---

## [Failed to fetch models from remote server. make sure server address is correct and \<server\_uri\>/v1/models is accessible in browser](https://discourse.slicer.org/t/failed-to-fetch-models-from-remote-server-make-sure-server-address-is-correct-and-server-uri-v1-models-is-accessible-in-browser/26015)

<div class="topic-metadata">

**Author:** [@platanus](https://discourse.slicer.org/u/platanus)\
**Replies:** 9\
**Last updated:** [March 9, 2024, 5:20am UTC](https://discourse.slicer.org/t/failed-to-fetch-models-from-remote-server-make-sure-server-address-is-correct-and-server-uri-v1-models-is-accessible-in-browser/26015 "2024-03-09T05:20:50Z")

</div>

Hello. 3D-Slicer members. I have used well NVIDIA AIAA module in 3d-slicer since June first, 2022. However, it occurred some error nvidia aiaa module in 3d-slicer yesterday. The occurred error is as following. When …

---

## [Python code controls the display of a certain layer of slices in the view](https://discourse.slicer.org/t/python-code-controls-the-display-of-a-certain-layer-of-slices-in-the-view/34781)

<div class="topic-metadata">

**Author:** [@petit223](https://discourse.slicer.org/u/petit223)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 3:05pm UTC](https://discourse.slicer.org/t/python-code-controls-the-display-of-a-certain-layer-of-slices-in-the-view/34781 "2024-03-08T15:05:01Z")

</div>

In the development of the 3D Slicer plug-in, I want to automatically display the corresponding slice on the Green view based on the serial number of the magnetic resonance image entered by the user (I don’t care about th…

---

## [Looking for old Slicer 3D source code with wxWidgets and VTK](https://discourse.slicer.org/t/looking-for-old-slicer-3d-source-code-with-wxwidgets-and-vtk/34752)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 17\
**Last updated:** [March 8, 2024, 9:11am UTC](https://discourse.slicer.org/t/looking-for-old-slicer-3d-source-code-with-wxwidgets-and-vtk/34752 "2024-03-08T09:11:49Z")

</div>

Hi, The question is not about Slicer 3D but I remember I’ve read that Slicer used to be using wxWidgets before it was translated to Qt. Now there is a task to understand how can I combine wxWidgets with VTK (even I don…

---

## [Developing Universal Viewer](https://discourse.slicer.org/t/developing-universal-viewer/34756)

<div class="topic-metadata">

**Author:** [@Islam\_Ibrahim](https://discourse.slicer.org/u/Islam_Ibrahim)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 3:02am UTC](https://discourse.slicer.org/t/developing-universal-viewer/34756 "2024-03-07T03:02:20Z")

</div>

I’m developing a universal viewer for all this plugins to work in concert if i need to make it commercial viewer how can i take permission from owner of the plugins 1- Total Segmentator 2- MONAI Auto3DSeg 3- OpenAnato…

---

## [Crop volume using python](https://discourse.slicer.org/t/crop-volume-using-python/30364)

<div class="topic-metadata">

**Author:** [@Mani\_Barathi](https://discourse.slicer.org/u/Mani_Barathi)\
**Replies:** 9\
**Last updated:** [March 7, 2024, 1:26am UTC](https://discourse.slicer.org/t/crop-volume-using-python/30364 "2024-03-07T01:26:53Z")

</div>

why some dicom data are not cropped in 3d slicer? Once after setting the ROI and click apply button, its not cropping the selected region. Please help to resolve this issue.

---

## [How to use Pycharm to create software with partial slicer functionality](https://discourse.slicer.org/t/how-to-use-pycharm-to-create-software-with-partial-slicer-functionality/34740)

<div class="topic-metadata">

**Author:** [@conffite](https://discourse.slicer.org/u/conffite)\
**Replies:** 0\
**Last updated:** [March 6, 2024, 1:23pm UTC](https://discourse.slicer.org/t/how-to-use-pycharm-to-create-software-with-partial-slicer-functionality/34740 "2024-03-06T13:23:11Z")

</div>

I have been stuck in this problem for a long time, and there are no steps to refer to online. Please help me, I need your guidance

---

## [Adding a new effect to the Segment Editor module](https://discourse.slicer.org/t/adding-a-new-effect-to-the-segment-editor-module/34717)

<div class="topic-metadata">

**Author:** [@yaraabdelazim](https://discourse.slicer.org/u/yaraabdelazim)\
**Replies:** 2\
**Last updated:** [March 6, 2024, 9:23am UTC](https://discourse.slicer.org/t/adding-a-new-effect-to-the-segment-editor-module/34717 "2024-03-06T09:23:27Z")

</div>

Hello, I am trying to develop a SegmentEditor effect that works kind of like the Level Tracing effet but instead of detecting levels, it would detect the edges in the volume. However, I can’t really find any documentati…

---

## [Real-time tracking with Vicon](https://discourse.slicer.org/t/real-time-tracking-with-vicon/2781)

<div class="topic-metadata">

**Author:** [@val.dil](https://discourse.slicer.org/u/val.dil)\
**Replies:** 7\
**Last updated:** [March 5, 2024, 11:35am UTC](https://discourse.slicer.org/t/real-time-tracking-with-vicon/2781 "2024-03-05T11:35:23Z")

</div>

Hello! I want to develop an extension that aim to acquire in real time the position of some markers and visualize them on a MRI, this is in order to track the position of an electrode inside the brain during a brain sur…

---

## [What the "PATH"is?](https://discourse.slicer.org/t/what-the-path-is/34712)

<div class="topic-metadata">

**Author:** [@Tiam66](https://discourse.slicer.org/u/Tiam66)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 9:03am UTC](https://discourse.slicer.org/t/what-the-path-is/34712 "2024-03-05T09:03:44Z")

</div>

when i installed a plugin from developer wizard,it showed a warningWARNING: The script jupyter-server.exe is installed in ‘D:\\slicer\\Slicer 5.6.1\\lib\\Python\\Scripts’ which is not on PATH."i wonder what the “PATH refer to…

---

## [File Save Behavior Query: TIFF Files Auto-Selecting on Second Save](https://discourse.slicer.org/t/file-save-behavior-query-tiff-files-auto-selecting-on-second-save/34665)

<div class="topic-metadata">

**Author:** [@Aram\_Harutyunyan](https://discourse.slicer.org/u/Aram_Harutyunyan)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 8:15am UTC](https://discourse.slicer.org/t/file-save-behavior-query-tiff-files-auto-selecting-on-second-save/34665 "2024-03-05T08:15:29Z")

</div>

I’ve encountered a unexpected behavior in an application running on Ubuntu 22.04 , app version 5.7.0-2024-02-29 , and I’m trying to determine whether it’s a bug or an intended feature. The issue revolves around the proce…

---

## [How to add additional buttons to scriptedsegmenteditoreffect?](https://discourse.slicer.org/t/how-to-add-additional-buttons-to-scriptedsegmenteditoreffect/34151)

<div class="topic-metadata">

**Author:** [@tueboesen](https://discourse.slicer.org/u/tueboesen)\
**Replies:** 3\
**Last updated:** [March 4, 2024, 2:54pm UTC](https://discourse.slicer.org/t/how-to-add-additional-buttons-to-scriptedsegmenteditoreffect/34151 "2024-03-04T14:54:39Z")

</div>

I am creating an extension for segment editor using the scriptedsegmenteditoreffect, and I would like to add another button to the widget. I saw how the on\_apply button is added in setupOptionFrame and tried to add anot…

---

## [Calling SurfaceToolBox Logic Programatically](https://discourse.slicer.org/t/calling-surfacetoolbox-logic-programatically/34668)

<div class="topic-metadata">

**Author:** [@oothomas](https://discourse.slicer.org/u/oothomas)\
**Replies:** 1\
**Last updated:** [March 3, 2024, 6:58am UTC](https://discourse.slicer.org/t/calling-surfacetoolbox-logic-programatically/34668 "2024-03-03T06:58:41Z")

</div>

Hello everyone, I’ve been working on automating the cleaning of polygon models derived from segmentations and encountered a stumbling block. Specifically, I’m having trouble utilizing the logic from the SurfaceToolbox m…

---

## [Intrest in creating a slicing or splitting software using 3D slicer](https://discourse.slicer.org/t/intrest-in-creating-a-slicing-or-splitting-software-using-3d-slicer/34667)

<div class="topic-metadata">

**Author:** [@George\_z](https://discourse.slicer.org/u/George_z)\
**Replies:** 0\
**Last updated:** [March 3, 2024, 3:17am UTC](https://discourse.slicer.org/t/intrest-in-creating-a-slicing-or-splitting-software-using-3d-slicer/34667 "2024-03-03T03:17:40Z")

</div>

Hello, I am interested to know how to use your software to split large dicom files using this opensource also if I can extract or create images of any SOP class and transfer syntax Best Regards George

---

## [How to generate a .seg.nrrd file out of multiple STLs with Python?](https://discourse.slicer.org/t/how-to-generate-a-seg-nrrd-file-out-of-multiple-stls-with-python/34607)

<div class="topic-metadata">

**Author:** [@Dzemal](https://discourse.slicer.org/u/Dzemal)\
**Replies:** 5\
**Last updated:** [March 1, 2024, 5:06am UTC](https://discourse.slicer.org/t/how-to-generate-a-seg-nrrd-file-out-of-multiple-stls-with-python/34607 "2024-03-01T05:06:03Z")

</div>

Hi together, I’m trying to write a code snippet in Python for a pipeline that should generate a .seg.nrrd file by using the actual DICOM and the segmented STLs. In Slicer, I have performed this by using the module ‘Segm…

---

## [Calculation of centroid using image dimension,image spacing and image origin.](https://discourse.slicer.org/t/calculation-of-centroid-using-image-dimension-image-spacing-and-image-origin/34619)

<div class="topic-metadata">

**Author:** [@ebin1234](https://discourse.slicer.org/u/ebin1234)\
**Replies:** 0\
**Last updated:** [February 29, 2024, 5:55pm UTC](https://discourse.slicer.org/t/calculation-of-centroid-using-image-dimension-image-spacing-and-image-origin/34619 "2024-02-29T17:55:55Z")

</div>

I have a doubt in calculation of centroid using image dimension,image spacing and image origin. After that I have to place the 3D view in the center and anterior position . The camera should focus on this centroid . I di…

---

## [A single JPEG image in view](https://discourse.slicer.org/t/a-single-jpeg-image-in-view/34608)

<div class="topic-metadata">

**Author:** [@bzhu](https://discourse.slicer.org/u/bzhu)\
**Replies:** 1\
**Last updated:** [February 29, 2024, 3:20pm UTC](https://discourse.slicer.org/t/a-single-jpeg-image-in-view/34608 "2024-02-29T15:20:34Z")

</div>

I created a customized grid layout, in which most views are used to view nifti files generated from different algorithms and one view is used to display a JPEG file showing analysis/comparison result of the algorithms. …

---

## [How to load FreeSurfer surface files in correct position using Python script](https://discourse.slicer.org/t/how-to-load-freesurfer-surface-files-in-correct-position-using-python-script/13183)

<div class="topic-metadata">

**Author:** [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Replies:** 4\
**Last updated:** [February 28, 2024, 10:17pm UTC](https://discourse.slicer.org/t/how-to-load-freesurfer-surface-files-in-correct-position-using-python-script/13183 "2024-02-28T22:17:17Z")

</div>

Hello, am writing a module which uses FreeSurfer segmentations and surface files. Empirically and based on another discourse post (Nifti file and freesurfer pial file mismatch in slicer) I had previously developed a tra…

---

## [How to mark some strings as translatable?](https://discourse.slicer.org/t/how-to-mark-some-strings-as-translatable/34008)

<div class="topic-metadata">

**Author:** [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Replies:** 11\
**Last updated:** [February 28, 2024, 8:47pm UTC](https://discourse.slicer.org/t/how-to-mark-some-strings-as-translatable/34008 "2024-02-28T20:47:52Z")

</div>

Hi, Python modules generated by the extension wizard are using the ‘\_()’ function for strings to be translated. The simple use case is obvious: \_(“T e x t”). How do we mark formatted strings with runtime place holders…

---

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

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

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