# Development

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

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

**Page:** 31

---

## [Annotate a segment with properties from a popup window](https://discourse.slicer.org/t/annotate-a-segment-with-properties-from-a-popup-window/31736)

<div class="topic-metadata">

**Author:** [@biocyberman](https://discourse.slicer.org/u/biocyberman)\
**Replies:** 1\
**Last updated:** [September 15, 2023, 1:13pm UTC](https://discourse.slicer.org/t/annotate-a-segment-with-properties-from-a-popup-window/31736 "2023-09-15T13:13:43Z")

</div>

Hi I am new to 3D Slicer. I am trying to figure out the following to add some custom enhancement to the MONAIlabel plugin: Operating system: Ubuntu Jammy Slicer version: 5.4 Expected behavior: When using the segment …

---

## [Finding a DICOM series based on series description](https://discourse.slicer.org/t/finding-a-dicom-series-based-on-series-description/31726)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 8:06pm UTC](https://discourse.slicer.org/t/finding-a-dicom-series-based-on-series-description/31726 "2023-09-14T20:06:07Z")

</div>

Hi Andras, I am trying to load a dicom folder. The folder contain many series/images. I am interested in loading or extracting a single series based on its series description? Any help please? regards, Saima

---

## [Batch Processing Error - convertedPath](https://discourse.slicer.org/t/batch-processing-error-convertedpath/31720)

<div class="topic-metadata">

**Author:** [@trussel1](https://discourse.slicer.org/u/trussel1)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 6:33pm UTC](https://discourse.slicer.org/t/batch-processing-error-convertedpath/31720 "2023-09-14T18:33:49Z")

</div>

Operating system: Windows Slicer version: 5.40 I have a general understanding of 3D Slicer and have been using for a few years now. I now have a project with a large data set and want to start using Python to segment d…

---

## [How to add custom widget in 3d slicer? just like 2D Slice Widget、3D View Widget、Plot Widget、Table Widget](https://discourse.slicer.org/t/how-to-add-custom-widget-in-3d-slicer-just-like-2d-slice-widget-3d-view-widget-plot-widget-table-widget/31697)

<div class="topic-metadata">

**Author:** [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Replies:** 0\
**Last updated:** [September 14, 2023, 8:41am UTC](https://discourse.slicer.org/t/how-to-add-custom-widget-in-3d-slicer-just-like-2d-slice-widget-3d-view-widget-plot-widget-table-widget/31697 "2023-09-14T08:41:53Z")

</div>

How to add custom widget in 3d slicer? just like 2D Slice Widget、3D View Widget、Plot Widget、Table Widget

---

## [How to delete nodes from scene before creating new nodes with the same name?](https://discourse.slicer.org/t/how-to-delete-nodes-from-scene-before-creating-new-nodes-with-the-same-name/16220)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 6\
**Last updated:** [February 25, 2021, 7:13pm UTC](https://discourse.slicer.org/t/how-to-delete-nodes-from-scene-before-creating-new-nodes-with-the-same-name/16220 "2021-02-25T19:13:34Z")

</div>

Operating system:Windows 11 Slicer version:4.11.20200930 How do I remove some specific nodes with a specific name before creating new nodes of the same type? For example: if I have a node in my scene that starts with “…

---

## [How to use PLUS function in Slicer](https://discourse.slicer.org/t/how-to-use-plus-function-in-slicer/31691)

<div class="topic-metadata">

**Author:** [@Yang\_yang\_Y](https://discourse.slicer.org/u/Yang_yang_Y)\
**Replies:** 0\
**Last updated:** [September 14, 2023, 5:54am UTC](https://discourse.slicer.org/t/how-to-use-plus-function-in-slicer/31691 "2023-09-14T05:54:50Z")

</div>

Hello everyone, I hope to use some of the functions of ultrasound images provided by PLUS, such as ultrasound calibration, in the compiled Slicer environment. My current idea is to call the PLUS function in the source c…

---

## [Disable the display of a segmentation in a specific view programmatically.](https://discourse.slicer.org/t/disable-the-display-of-a-segmentation-in-a-specific-view-programmatically/31669)

<div class="topic-metadata">

**Author:** [@waromero](https://discourse.slicer.org/u/waromero)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 10:26pm UTC](https://discourse.slicer.org/t/disable-the-display-of-a-segmentation-in-a-specific-view-programmatically/31669 "2023-09-13T22:26:47Z")

</div>

Hello! In the UI of the Segmentations module it is possible to configure per-view visibility of a segmentation. (Segmentations / Advanced / Views → uncheck view of interest ). I am interested in doing the same thing p…

---

## [How to expand a segment size via Python](https://discourse.slicer.org/t/how-to-expand-a-segment-size-via-python/14361)

<div class="topic-metadata">

**Author:** [@marianaslicer](https://discourse.slicer.org/u/marianaslicer)\
**Replies:** 14\
**Last updated:** [September 11, 2023, 9:57am UTC](https://discourse.slicer.org/t/how-to-expand-a-segment-size-via-python/14361 "2023-09-11T09:57:30Z")

</div>

Hi everyone, I would like to create a new segment from an existing segment. The idea would be to expand the existing segment in the three directions, adding different margins to each of the directions (e.g. x = 1 mm, y …

---

## [Script to add curve from control points](https://discourse.slicer.org/t/script-to-add-curve-from-control-points/31633)

<div class="topic-metadata">

**Author:** [@ghthomas](https://discourse.slicer.org/u/ghthomas)\
**Replies:** 2\
**Last updated:** [September 11, 2023, 9:16am UTC](https://discourse.slicer.org/t/script-to-add-curve-from-control-points/31633 "2023-09-11T09:16:45Z")

</div>

I have a dataset of thousands of scans that have already been landmarked. I now want to use a subset of existing landmarks to define new curves. This is quite straightforward to do manually by adding curves with the mark…

---

## [How to set colors of markups?](https://discourse.slicer.org/t/how-to-set-colors-of-markups/31636)

<div class="topic-metadata">

**Author:** [@esomjai](https://discourse.slicer.org/u/esomjai)\
**Replies:** 1\
**Last updated:** [September 10, 2023, 12:42pm UTC](https://discourse.slicer.org/t/how-to-set-colors-of-markups/31636 "2023-09-10T12:42:24Z")

</div>

Hi there, just a quick question about the customisation of pre-populating linear and angle measurements this way. Would I be able to include the colour of the angle/line in the code? I tried to use L.SetColor() but nev…

---

## [Clone markups node fails during custom module cleanup](https://discourse.slicer.org/t/clone-markups-node-fails-during-custom-module-cleanup/31619)

<div class="topic-metadata">

**Author:** [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Replies:** 1\
**Last updated:** [September 10, 2023, 1:56am UTC](https://discourse.slicer.org/t/clone-markups-node-fails-during-custom-module-cleanup/31619 "2023-09-10T01:56:21Z")

</div>

I use this code to clone a ClosedCurveMarkups node # Clone the node itemIDToClone = shNode.GetItemByDataNode(dataNode) clonedItemID = slicer.modules.subjecthierarchy.logic().CloneSubjectHierarchyItem(shNode, itemIDToClo…

---

## [Reuse of qMRMLTransformSliders to perform rotation transform in custom scriptable module](https://discourse.slicer.org/t/reuse-of-qmrmltransformsliders-to-perform-rotation-transform-in-custom-scriptable-module/31598)

<div class="topic-metadata">

**Author:** [@bruce](https://discourse.slicer.org/u/bruce)\
**Replies:** 1\
**Last updated:** [September 7, 2023, 11:45am UTC](https://discourse.slicer.org/t/reuse-of-qmrmltransformsliders-to-perform-rotation-transform-in-custom-scriptable-module/31598 "2023-09-07T11:45:40Z")

</div>

In our custom module I’d like to include sliders to perform a rotation transform. This post suggests reusing the slicer.qMRMLTransformSliders widget is the way to go but I can’t seem to access some of the properties from…

---

## [Is there a more detailed tutorial on creating custom slicer application?](https://discourse.slicer.org/t/is-there-a-more-detailed-tutorial-on-creating-custom-slicer-application/31578)

<div class="topic-metadata">

**Author:** [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Replies:** 3\
**Last updated:** [September 6, 2023, 9:49pm UTC](https://discourse.slicer.org/t/is-there-a-more-detailed-tutorial-on-creating-custom-slicer-application/31578 "2023-09-06T21:49:29Z")

</div>

The examples provided on the official website are not detailed enough and hard to learn for me, so Is there a more detailed tutorial on creating custom slicer application? step by step tutorial and examples, video tutor…

---

## [What would be the best way to let a user select scenes and channel colours in a microscopy oriented importer?](https://discourse.slicer.org/t/what-would-be-the-best-way-to-let-a-user-select-scenes-and-channel-colours-in-a-microscopy-oriented-importer/31595)

<div class="topic-metadata">

**Author:** [@EgorZindy](https://discourse.slicer.org/u/EgorZindy)\
**Replies:** 5\
**Last updated:** [September 6, 2023, 9:01pm UTC](https://discourse.slicer.org/t/what-would-be-the-best-way-to-let-a-user-select-scenes-and-channel-colours-in-a-microscopy-oriented-importer/31595 "2023-09-06T21:01:47Z")

</div>

Hello everyone. So for my CZI importer, there are two things I think need to be user-selectable at import time: A CZI file may contain multiple scenes, and a user may decide which scenes need importing. The channel co…

---

## [Match segmentation to volume for deep learning training](https://discourse.slicer.org/t/match-segmentation-to-volume-for-deep-learning-training/31588)

<div class="topic-metadata">

**Author:** [@liyuaaan](https://discourse.slicer.org/u/liyuaaan)\
**Replies:** 1\
**Last updated:** [September 6, 2023, 6:55pm UTC](https://discourse.slicer.org/t/match-segmentation-to-volume-for-deep-learning-training/31588 "2023-09-06T18:55:49Z")

</div>

Hi, I have a question regarding the padding of 3d images (.nii.gz). Say my volume dimension is \[512, 512,273\] , my segmentation is \[183, 263, 374\], they have different origins and coordinates. And then, I want my segmen…

---

## [Physical distances in the slice view via python](https://discourse.slicer.org/t/physical-distances-in-the-slice-view-via-python/31593)

<div class="topic-metadata">

**Author:** [@laurabc](https://discourse.slicer.org/u/laurabc)\
**Replies:** 1\
**Last updated:** [September 6, 2023, 6:28pm UTC](https://discourse.slicer.org/t/physical-distances-in-the-slice-view-via-python/31593 "2023-09-06T18:28:09Z")

</div>

Hello all, I want to measure physical distances in a slice view (I previously reformatted the volume and zoomed in). I know I can set markers and get the physical distance with the line tool, but I would like to do it …

---

## [Run slicer pyradiomics for batch processing](https://discourse.slicer.org/t/run-slicer-pyradiomics-for-batch-processing/31583)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 0\
**Last updated:** [September 6, 2023, 5:42am UTC](https://discourse.slicer.org/t/run-slicer-pyradiomics-for-batch-processing/31583 "2023-09-06T05:42:35Z")

</div>

How to run the slicer pyradiomics for batch processing and saving the results for all patients in one file. I have three labels for each patient and want to extract features for these three labels for each patient. reg…

---

## [Compilation errors](https://discourse.slicer.org/t/compilation-errors/31552)

<div class="topic-metadata">

**Author:** [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Replies:** 11\
**Last updated:** [September 5, 2023, 7:03pm UTC](https://discourse.slicer.org/t/compilation-errors/31552 "2023-09-05T19:03:27Z")

</div>

After going through countless hardships, I have finally solved most of the compilation problems, but there are still some problems that are difficult for me. I would like to ask how to solve these problems? in ITK pro…

---

## [How Do I introduce the Segment Editor module into MY QT program?](https://discourse.slicer.org/t/how-do-i-introduce-the-segment-editor-module-into-my-qt-program/31531)

<div class="topic-metadata">

**Author:** [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Replies:** 4\
**Last updated:** [September 5, 2023, 12:06pm UTC](https://discourse.slicer.org/t/how-do-i-introduce-the-segment-editor-module-into-my-qt-program/31531 "2023-09-05T12:06:01Z")

</div>

I’m developing a program that needs image segmentation, so I want to bring in the Segment Editor module of 3d Slicer, or transform my program into a 3D slicer module, which approach is easier to implement and how? Do you…

---

## [Load MRML file in Python](https://discourse.slicer.org/t/load-mrml-file-in-python/31548)

<div class="topic-metadata">

**Author:** [@AlexBe](https://discourse.slicer.org/u/AlexBe)\
**Replies:** 0\
**Last updated:** [September 4, 2023, 2:51pm UTC](https://discourse.slicer.org/t/load-mrml-file-in-python/31548 "2023-09-04T14:51:25Z")

</div>

Hello! I’m a new user of Slicer. I’m currently busy applying a machine learning method to an MRI dataset, which contains also .mrml files with volumes such as segmentations etc… I’d like to open these .mrml files in pyt…

---

## [About compile errors](https://discourse.slicer.org/t/about-compile-errors/31532)

<div class="topic-metadata">

**Author:** [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Replies:** 7\
**Last updated:** [September 4, 2023, 6:32am UTC](https://discourse.slicer.org/t/about-compile-errors/31532 "2023-09-04T06:32:21Z")

</div>

Hello! When I compiled the 3DSLICER source code, the following error occurred. How Do I fix it? Failed to clone repository: ‘GitHub - KitwareMedical/ITKMorphologicalContourInterpolation: An implementation of morphol…

---

## [Update 3D Visualization programmatically](https://discourse.slicer.org/t/update-3d-visualization-programmatically/30158)

<div class="topic-metadata">

**Author:** [@marm](https://discourse.slicer.org/u/marm)\
**Replies:** 21\
**Last updated:** [September 1, 2023, 12:19pm UTC](https://discourse.slicer.org/t/update-3d-visualization-programmatically/30158 "2023-09-01T12:19:40Z")

</div>

Hi, First of all, thank you for your effort in developing 3DSlicer as it is a great platform. I am developing a 3DSlicer module for surgical tool navigation. I want to update the 3D visualization of a model every time …

---

## [can 3dslicer plot colormap? or develop extension with colormap?](https://discourse.slicer.org/t/can-3dslicer-plot-colormap-or-develop-extension-with-colormap/31488)

<div class="topic-metadata">

**Author:** [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Replies:** 1\
**Last updated:** [September 1, 2023, 1:02am UTC](https://discourse.slicer.org/t/can-3dslicer-plot-colormap-or-develop-extension-with-colormap/31488 "2023-09-01T01:02:16Z")

</div>

can 3dslicer plot colormap? or develop extension with colormap?

---

## [Click on Segment in 3D View](https://discourse.slicer.org/t/click-on-segment-in-3d-view/31483)

<div class="topic-metadata">

**Author:** [@JASON](https://discourse.slicer.org/u/JASON)\
**Replies:** 1\
**Last updated:** [August 31, 2023, 8:49pm UTC](https://discourse.slicer.org/t/click-on-segment-in-3d-view/31483 "2023-08-31T20:49:09Z")

</div>

Hello, I am looking to make a script that will allow me to click within the 3D view on to a segmentation node and get the specific segment under the mouse cursor. Before I start trying to do this the hard way, I wanted …

---

## [Questions about 3DSLICER compilation](https://discourse.slicer.org/t/questions-about-3dslicer-compilation/31463)

<div class="topic-metadata">

**Author:** [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Replies:** 1\
**Last updated:** [August 31, 2023, 8:47am UTC](https://discourse.slicer.org/t/questions-about-3dslicer-compilation/31463 "2023-08-31T08:47:28Z")

</div>

I ran into a number of problems when compiling the 3DSLICER source code. First, I wanted to know what the tool and third-party library versions corresponded to when I compiled the 3DSLICER source code for example: visiu…

---

## [Developing an interactive python program to work with Slicer GUI](https://discourse.slicer.org/t/developing-an-interactive-python-program-to-work-with-slicer-gui/31422)

<div class="topic-metadata">

**Author:** [@ruili](https://discourse.slicer.org/u/ruili)\
**Replies:** 8\
**Last updated:** [August 30, 2023, 10:52am UTC](https://discourse.slicer.org/t/developing-an-interactive-python-program-to-work-with-slicer-gui/31422 "2023-08-30T10:52:13Z")

</div>

Hi all, I am hoping to write some python script that can work with the slicer software interactively to semi-automate the process of vessel segmentation and centerline extraction. Specifically, after loading a volume fi…

---

## [Incremental rebuild of custom (SlicerCAT) application](https://discourse.slicer.org/t/incremental-rebuild-of-custom-slicercat-application/31432)

<div class="topic-metadata">

**Author:** [@darabi](https://discourse.slicer.org/u/darabi)\
**Replies:** 5\
**Last updated:** [August 30, 2023, 10:03am UTC](https://discourse.slicer.org/t/incremental-rebuild-of-custom-slicercat-application/31432 "2023-08-30T10:03:56Z")

</div>

Hello, when I change something in my SlicerCAT based custom application, I would like to make an incremental build, such that only those changed parts are updated/compiled. However, running make in the $BUILD\_DIR/Slice…

---

## [How to rotate a volume use volume center?](https://discourse.slicer.org/t/how-to-rotate-a-volume-use-volume-center/31373)

<div class="topic-metadata">

**Author:** [@icedream](https://discourse.slicer.org/u/icedream)\
**Replies:** 3\
**Last updated:** [August 29, 2023, 1:08am UTC](https://discourse.slicer.org/t/how-to-rotate-a-volume-use-volume-center/31373 "2023-08-29T01:08:40Z")

</div>

when i change the slider bar value of \[LR\],\[PA\],\[IS\]，the volume rotate by a centain point in 3d space but not the center of volume,how to make the rotate center to the center of the volume?

---

## [AddSegmentFromClosedSurfaceRepresentation performance](https://discourse.slicer.org/t/addsegmentfromclosedsurfacerepresentation-performance/30909)

<div class="topic-metadata">

**Author:** [@d0rnkernsky](https://discourse.slicer.org/u/d0rnkernsky)\
**Replies:** 3\
**Last updated:** [August 25, 2023, 1:11pm UTC](https://discourse.slicer.org/t/addsegmentfromclosedsurfacerepresentation-performance/30909 "2023-08-25T13:11:43Z")

</div>

Hello, I am working on a custom module where I need to add many (360) objects to an existing segmentation node. Although the code seems very simple it takes hours to finish. I am not sure what causes the slowdown. Maybe…

---

## [Build error when building SlicerVMTK extension](https://discourse.slicer.org/t/build-error-when-building-slicervmtk-extension/30383)

<div class="topic-metadata">

**Author:** [@paul.w](https://discourse.slicer.org/u/paul.w)\
**Replies:** 10\
**Last updated:** [July 4, 2023, 5:37pm UTC](https://discourse.slicer.org/t/build-error-when-building-slicervmtk-extension/30383 "2023-07-04T17:37:39Z")

</div>

Build error raised when building SlicerVMTK extension SlicerExtension-VMTK within VS2022, the error code shows below: The Slicer 5.3.0 has been successfully built with Release, thus the environment should be okay, w…

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

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