# Development

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

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

**Page:** 41

---

## [Exporting jpgs of MRI slices](https://discourse.slicer.org/t/exporting-jpgs-of-mri-slices/28057)

<div class="topic-metadata">

**Author:** [@hchattaway](https://discourse.slicer.org/u/hchattaway)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 3:54pm UTC](https://discourse.slicer.org/t/exporting-jpgs-of-mri-slices/28057 "2023-02-28T15:54:51Z")

</div>

I am looking to do the following… I can write the Python code, but I am new to the 3d-slicer API and just need some guidance… I want to: Load up a folder(s) of nii image files into 3d-slicer… I’ve done this part and s…

---

## [How to write an axial/sagittal/coronal slice of a volume to DICOM file using Python script](https://discourse.slicer.org/t/how-to-write-an-axial-sagittal-coronal-slice-of-a-volume-to-dicom-file-using-python-script/28044)

<div class="topic-metadata">

**Author:** [@anhhtmsc](https://discourse.slicer.org/u/anhhtmsc)\
**Replies:** 4\
**Last updated:** [February 28, 2023, 2:12pm UTC](https://discourse.slicer.org/t/how-to-write-an-axial-sagittal-coronal-slice-of-a-volume-to-dicom-file-using-python-script/28044 "2023-02-28T14:12:36Z")

</div>

Hello everyone, I want to write an axial/sagittal/coronal slice from a loaded volumeNode to a DICOM file using Python script. I tried to get the vtkImageData of the volumeNode and convert it to a sitkImage, then write o…

---

## [slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNode() Not workign with given SegmentIDs](https://discourse.slicer.org/t/slicer-modules-segmentations-logic-importlabelmaptosegmentationnode-not-workign-with-given-segmentids/27998)

<div class="topic-metadata">

**Author:** [@Alex\_Shen](https://discourse.slicer.org/u/Alex_Shen)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 11:09pm UTC](https://discourse.slicer.org/t/slicer-modules-segmentations-logic-importlabelmaptosegmentationnode-not-workign-with-given-segmentids/27998 "2023-02-23T23:09:41Z")

</div>

Hi, having this issue trying to convert labelmap volume to a segmentation node. My labelmap volume here has only 0s and 1s, so theoretically, only one segment will be created running this function. If I run the followi…

---

## [Fiducial registration module for SlicerCAT](https://discourse.slicer.org/t/fiducial-registration-module-for-slicercat/27908)

<div class="topic-metadata">

**Author:** [@Kaubert](https://discourse.slicer.org/u/Kaubert)\
**Replies:** 3\
**Last updated:** [February 23, 2023, 4:01pm UTC](https://discourse.slicer.org/t/fiducial-registration-module-for-slicercat/27908 "2023-02-23T16:01:38Z")

</div>

Hi there, I’m looking for the source code of the module “Fiducial registration” in order to include it in a SlicerCAT build. I know that the module “Fiducial Registration Wizard” from IGT extension is very similar but …

---

## [Building custom module inside 3D slicer that contains pre trained models (built in tensorflow)](https://discourse.slicer.org/t/building-custom-module-inside-3d-slicer-that-contains-pre-trained-models-built-in-tensorflow/27929)

<div class="topic-metadata">

**Author:** [@rahulhere](https://discourse.slicer.org/u/rahulhere)\
**Replies:** 5\
**Last updated:** [February 23, 2023, 2:59pm UTC](https://discourse.slicer.org/t/building-custom-module-inside-3d-slicer-that-contains-pre-trained-models-built-in-tensorflow/27929 "2023-02-23T14:59:31Z")

</div>

Hi All, I have a few pre trained medical image segmentation models built in tensorflow. I would like to build modules which I can use to test their segmentation prediction on scans that I import into 3D slicer. I know t…

---

## [Can I block 3d slicer's ability to save data?](https://discourse.slicer.org/t/can-i-block-3d-slicers-ability-to-save-data/27947)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 4\
**Last updated:** [February 23, 2023, 9:13am UTC](https://discourse.slicer.org/t/can-i-block-3d-slicers-ability-to-save-data/27947 "2023-02-23T09:13:26Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 Hi , slicer users I was wondering if it is possible to block the 3d slicer’s save function to process data that needs to be secure. Is it possible in the same way as …

---

## [SlicerCustomAppTemplate Build Error](https://discourse.slicer.org/t/slicercustomapptemplate-build-error/27717)

<div class="topic-metadata">

**Author:** [@Kaubert](https://discourse.slicer.org/u/Kaubert)\
**Replies:** 4\
**Last updated:** [February 23, 2023, 4:48am UTC](https://discourse.slicer.org/t/slicercustomapptemplate-build-error/27717 "2023-02-23T04:48:06Z")

</div>

Hi there, I am having trouble building SlicerCustomAppTemplate while I am not encountering any errors when building the latest version of Slicer. Here is my configuration: Windows 11 Cmake 3.22.4 Qt 5.15.2 Visual S…

---

## [Release of Slicer 5.2.2 in progress](https://discourse.slicer.org/t/release-of-slicer-5-2-2-in-progress/27951)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 5\
**Last updated:** [February 22, 2023, 11:08pm UTC](https://discourse.slicer.org/t/release-of-slicer-5-2-2-in-progress/27951 "2023-02-22T23:08:25Z")

</div>

This evening, regular preview and stable builds of Slicer and associated extensions will be disabled in favor of a patch release. Fixes to be integrated in the Slicer@5.2 maintenance branch are associated with PR-6782. …

---

## [GetNodeByClass(vtkMRMLScalarVolumeNode) returns vtkMRMLMultiVolumeNode](https://discourse.slicer.org/t/getnodebyclass-vtkmrmlscalarvolumenode-returns-vtkmrmlmultivolumenode/27960)

<div class="topic-metadata">

**Author:** [@pearsonm](https://discourse.slicer.org/u/pearsonm)\
**Replies:** 2\
**Last updated:** [February 22, 2023, 3:32am UTC](https://discourse.slicer.org/t/getnodebyclass-vtkmrmlscalarvolumenode-returns-vtkmrmlmultivolumenode/27960 "2023-02-22T03:32:51Z")

</div>

Hi, I am writing a module to process dynamic nuclear medicine images and I have an issue that might be a bug. I load 2 DICOM datasets as vtkMRMLScalarVolumeNode but another module also creates a vtkMRMLMultiVolumeNode. …

---

## [Help on specific type of transforms](https://discourse.slicer.org/t/help-on-specific-type-of-transforms/27955)

<div class="topic-metadata">

**Author:** [@roshans17](https://discourse.slicer.org/u/roshans17)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 3:57pm UTC](https://discourse.slicer.org/t/help-on-specific-type-of-transforms/27955 "2023-02-21T15:57:12Z")

</div>

Hi all, I was wondering if anyone had insights into the problem I am having. I am trying to transform 15 nodes (bones) by passing in a file that has their respective transformation matrix. An example of the .dat file tha…

---

## [Merge CT volume node with a model node in python](https://discourse.slicer.org/t/merge-ct-volume-node-with-a-model-node-in-python/9457)

<div class="topic-metadata">

**Author:** [@talmazov](https://discourse.slicer.org/u/talmazov)\
**Replies:** 22\
**Last updated:** [February 19, 2023, 9:33pm UTC](https://discourse.slicer.org/t/merge-ct-volume-node-with-a-model-node-in-python/9457 "2023-02-19T21:33:40Z")

</div>

I know 3D slicer can merge two volume/slice nodes from separate CT data but is it possible to merge an PLY/STL loaded model node with a CT volume/slice node?

---

## [Processing slows down after many iterations](https://discourse.slicer.org/t/processing-slows-down-after-many-iterations/27910)

<div class="topic-metadata">

**Author:** [@nrex45](https://discourse.slicer.org/u/nrex45)\
**Replies:** 1\
**Last updated:** [February 19, 2023, 2:18am UTC](https://discourse.slicer.org/t/processing-slows-down-after-many-iterations/27910 "2023-02-19T02:18:05Z")

</div>

Somewhat related question: I’m looping through the following code a couple of hundred times and after a while slicer starts to run slower and slower… based on experience this usually means I’m creating some kind of node …

---

## [Media control symbol in button with same style - Play Stop Previous and Next](https://discourse.slicer.org/t/media-control-symbol-in-button-with-same-style-play-stop-previous-and-next/27901)

<div class="topic-metadata">

**Author:** [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Replies:** 1\
**Last updated:** [February 18, 2023, 2:36pm UTC](https://discourse.slicer.org/t/media-control-symbol-in-button-with-same-style-play-stop-previous-and-next/27901 "2023-02-18T14:36:21Z")

</div>

Hi guys, I’m trying to build an extension that can control the images play back. I made the UI with media control symbol and the timeline slider. I got one problem where I can’t find the set of unicode symbol that rend…

---

## [How to open multiple DICOM series using python script](https://discourse.slicer.org/t/how-to-open-multiple-dicom-series-using-python-script/27861)

<div class="topic-metadata">

**Author:** [@anhhtmsc](https://discourse.slicer.org/u/anhhtmsc)\
**Replies:** 3\
**Last updated:** [February 17, 2023, 3:09pm UTC](https://discourse.slicer.org/t/how-to-open-multiple-dicom-series-using-python-script/27861 "2023-02-17T15:09:06Z")

</div>

Hello everyone, I want to use the WebServer module of 3D Slicer to make a WADO Server. I can load DICOM files into the scene from a folder. I need to open multiple DICOM series simultaneously, then control the volumes t…

---

## [CLI XML schema password](https://discourse.slicer.org/t/cli-xml-schema-password/27065)

<div class="topic-metadata">

**Author:** [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Replies:** 6\
**Last updated:** [February 17, 2023, 4:46am UTC](https://discourse.slicer.org/t/cli-xml-schema-password/27065 "2023-02-17T04:46:09Z")

</div>

Greetings everyone. Would it be desirable to have a special XML field for passwords in the CLI XML schema? I have a use case that a CLI calls some functions via paramiko on a ssh connections and the user needs to input…

---

## [Custom outputs using SegmentGeometry module](https://discourse.slicer.org/t/custom-outputs-using-segmentgeometry-module/27793)

<div class="topic-metadata">

**Author:** [@laurabc](https://discourse.slicer.org/u/laurabc)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 2:06pm UTC](https://discourse.slicer.org/t/custom-outputs-using-segmentgeometry-module/27793 "2023-02-16T14:06:40Z")

</div>

Hello community, I have a 3D segment and I want to extract as much information as possible from the cross-sectional cuts along the segment principal axis. SegmentGeometry module is being very useful, thank you @jmhuie f…

---

## [Using 3D Slicer as a background service](https://discourse.slicer.org/t/using-3d-slicer-as-a-background-service/27802)

<div class="topic-metadata">

**Author:** [@GradyC](https://discourse.slicer.org/u/GradyC)\
**Replies:** 4\
**Last updated:** [February 15, 2023, 4:51pm UTC](https://discourse.slicer.org/t/using-3d-slicer-as-a-background-service/27802 "2023-02-15T16:51:50Z")

</div>

Hello, I am currently developing a project where I think 3D Slicer’s rasterization would come in handy. To keep things simple I am developing a 3D printer where we must convert an .STL file to a .TIFF stack. There is ple…

---

## [Is it possible to map a general vescular model to individual CT image for preliminary judgement?](https://discourse.slicer.org/t/is-it-possible-to-map-a-general-vescular-model-to-individual-ct-image-for-preliminary-judgement/27693)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [February 15, 2023, 8:10am UTC](https://discourse.slicer.org/t/is-it-possible-to-map-a-general-vescular-model-to-individual-ct-image-for-preliminary-judgement/27693 "2023-02-15T08:10:05Z")

</div>

In some clinical applications, some doctors ask me if there is a way to register blood vessels to the actual patient’s head through AR. I don’t know how to do it. Can someone help me with some suggestions?

---

## [Place Fiducial Marker with EndPlacementEvent observer](https://discourse.slicer.org/t/place-fiducial-marker-with-endplacementevent-observer/27797)

<div class="topic-metadata">

**Author:** [@kleingeo](https://discourse.slicer.org/u/kleingeo)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 5:39am UTC](https://discourse.slicer.org/t/place-fiducial-marker-with-endplacementevent-observer/27797 "2023-02-15T05:39:37Z")

</div>

I am trying to execute a function after a fiducial marker is placed. I was trying to implement it with this: def onMarkupEndInteraction(caller, event): # Do stuff pass interactionNode = slicer.app.applicationLo…

---

## [Volume Reslice for Calibrated Ultrasound Images](https://discourse.slicer.org/t/volume-reslice-for-calibrated-ultrasound-images/11546)

<div class="topic-metadata">

**Author:** [@Winona\_Richey](https://discourse.slicer.org/u/Winona_Richey)\
**Replies:** 4\
**Last updated:** [February 15, 2023, 4:19am UTC](https://discourse.slicer.org/t/volume-reslice-for-calibrated-ultrasound-images/11546 "2023-02-15T04:19:33Z")

</div>

Operating system: Windows 7 and MacOS 10.14.6 Slicer version: 4.10.1 Expected behavior: 1. Set the incoming tracked image as the driver for the corresponding 2D viewer. 2. Find the appropriate mode from the Mode list …

---

## [How to find the upper-direction of mesh data ( idea , task, reference anything )](https://discourse.slicer.org/t/how-to-find-the-upper-direction-of-mesh-data-idea-task-reference-anything/27737)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 3:57am UTC](https://discourse.slicer.org/t/how-to-find-the-upper-direction-of-mesh-data-idea-task-reference-anything/27737 "2023-02-15T03:57:30Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 I have several mesh data files (.ply), and the orientation of objects in these files is always random. like this : With the goal of having all meshes have the same…

---

## [How to make one model node unselectable](https://discourse.slicer.org/t/how-to-make-one-model-node-unselectable/27721)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 4\
**Last updated:** [February 10, 2023, 10:38am UTC](https://discourse.slicer.org/t/how-to-make-one-model-node-unselectable/27721 "2023-02-10T10:38:54Z")

</div>

when i move the fiducial point, i want to move the point on the suface of the head ,but when close to the tube,the point attach to the tube , is it possible to make the tube unselectable use code? i understand move th…

---

## [How to write data into regedit in slicer?](https://discourse.slicer.org/t/how-to-write-data-into-regedit-in-slicer/27736)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 10:37am UTC](https://discourse.slicer.org/t/how-to-write-data-into-regedit-in-slicer/27736 "2023-02-10T10:37:02Z")

</div>

i have made a simple application use 3dslicer , and wants to write some data into regedit but write data into regedit in win10 need administrator privileges i have tryed some code in netword and in chatgpt,it doesn’t w…

---

## [Upload works from slicer's python console (server)](https://discourse.slicer.org/t/upload-works-from-slicers-python-console-server/27718)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 1\
**Last updated:** [February 9, 2023, 1:16pm UTC](https://discourse.slicer.org/t/upload-works-from-slicers-python-console-server/27718 "2023-02-09T13:16:14Z")

</div>

Operating system: window 11 Slicer version: 5.2.1 I am using a private sftp server to store data. The data I handle is sensitive to security, so I can’t experiment easily, so I’m asking a question because I want to ge…

---

## [How to find the closest mesh to a specific markups point (algorithm , idea )](https://discourse.slicer.org/t/how-to-find-the-closest-mesh-to-a-specific-markups-point-algorithm-idea/27715)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 3\
**Last updated:** [February 9, 2023, 11:32am UTC](https://discourse.slicer.org/t/how-to-find-the-closest-mesh-to-a-specific-markups-point-algorithm-idea/27715 "2023-02-09T11:32:08Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 hi Slicer users I want to get only the position value of the inner mesh closest to the center point of this mesh. Can anyone recommend an idea or algorithm?

---

## [Detect subject hierarchy node deletion before its children get deleted](https://discourse.slicer.org/t/detect-subject-hierarchy-node-deletion-before-its-children-get-deleted/27517)

<div class="topic-metadata">

**Author:** [@Albi](https://discourse.slicer.org/u/Albi)\
**Replies:** 1\
**Last updated:** [February 9, 2023, 9:59am UTC](https://discourse.slicer.org/t/detect-subject-hierarchy-node-deletion-before-its-children-get-deleted/27517 "2023-02-09T09:59:45Z")

</div>

In a custom module I would like to detect the deletion of an item to take appropriate action before its children gets deleted. I observed that the signal SubjectHierarchyItemAboutToBeRemovedEvent of the item is emitted a…

---

## [How to setup slicer's web server?](https://discourse.slicer.org/t/how-to-setup-slicers-web-server/27696)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 5\
**Last updated:** [February 9, 2023, 5:01am UTC](https://discourse.slicer.org/t/how-to-setup-slicers-web-server/27696 "2023-02-09T05:01:02Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 HI , slicer users I need to create a communication module that works on slicer. I have never done network coding before. So I’m trying to do a toy project that turns …

---

## [Create a paint brush](https://discourse.slicer.org/t/create-a-paint-brush/27652)

<div class="topic-metadata">

**Author:** [@devD](https://discourse.slicer.org/u/devD)\
**Replies:** 1\
**Last updated:** [February 8, 2023, 8:55pm UTC](https://discourse.slicer.org/t/create-a-paint-brush/27652 "2023-02-08T20:55:24Z")

</div>

Hi, I am making an extension. I want to add one button to it which creates a paint brush with optional diameter (such as the one that exists in Segment Editor), the only thing it should return is the area in pixels in w…

---

## [Did sitkUtils.PullVolumeFromSlicer() break with Slicer 5.2?](https://discourse.slicer.org/t/did-sitkutils-pullvolumefromslicer-break-with-slicer-5-2/26863)

<div class="topic-metadata">

**Author:** [@Alex\_Gilman](https://discourse.slicer.org/u/Alex_Gilman)\
**Replies:** 9\
**Last updated:** [February 7, 2023, 2:00pm UTC](https://discourse.slicer.org/t/did-sitkutils-pullvolumefromslicer-break-with-slicer-5-2/26863 "2023-02-07T14:00:50Z")

</div>

Under Ubuntu 20.04, sitkUtils.PullVolumeFromSlicer() works fine in Slicer 5.0.3. In 5.2.1 and later, the call consistently raises an error: File "/bin/slicer5.2.1/Slicer-5.2.1-linux-amd64/bin/Python/sitkUtils.py", lin…

---

## [Script transform application](https://discourse.slicer.org/t/script-transform-application/26509)

<div class="topic-metadata">

**Author:** [@Nicolas\_Tempier](https://discourse.slicer.org/u/Nicolas_Tempier)\
**Replies:** 4\
**Last updated:** [February 7, 2023, 1:39pm UTC](https://discourse.slicer.org/t/script-transform-application/26509 "2023-02-07T13:39:36Z")

</div>

Operating system: Linux Mint Slicer version: 5.0.3 Hi, I have a transforms file (from ANTs registration) .mat and I would like to script the application of this transform via slicer on another image. When I was using …

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

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