# Development

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

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

**Page:** 15

---

## [How to apply RescaleIntensityImageFilter automatically by a python script](https://discourse.slicer.org/t/how-to-apply-rescaleintensityimagefilter-automatically-by-a-python-script/39575)

<div class="topic-metadata">

**Author:** [@oscampo](https://discourse.slicer.org/u/oscampo)\
**Replies:** 1\
**Last updated:** [October 7, 2024, 10:11pm UTC](https://discourse.slicer.org/t/how-to-apply-rescaleintensityimagefilter-automatically-by-a-python-script/39575 "2024-10-07T22:11:38Z")

</div>

Hi. I’m developing a very simple script to load MR and automatically rescale Intensity range for furter analisys. I need access to the filter module and I’m using: slicer.modules.simplefilters but how I can access to …

---

## [slicer.util.MRMLNodeNotFoundException Error](https://discourse.slicer.org/t/slicer-util-mrmlnodenotfoundexception-error/39532)

<div class="topic-metadata">

**Author:** [@BenAsh](https://discourse.slicer.org/u/BenAsh)\
**Replies:** 1\
**Last updated:** [October 3, 2024, 9:34pm UTC](https://discourse.slicer.org/t/slicer-util-mrmlnodenotfoundexception-error/39532 "2024-10-03T21:34:03Z")

</div>

Hi there. So I’ve been trying to run a one of the simple filters on my scans, that one being the “RichardsonLucyDeconvolutionImageFilter”. However, whenever I attempt to run this (or any other Simple Filter) I am hit wit…

---

## [How to Include Python Libraries Offline (without pip) in a Custom Slicer Application?](https://discourse.slicer.org/t/how-to-include-python-libraries-offline-without-pip-in-a-custom-slicer-application/39484)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [October 2, 2024, 12:40pm UTC](https://discourse.slicer.org/t/how-to-include-python-libraries-offline-without-pip-in-a-custom-slicer-application/39484 "2024-10-02T12:40:54Z")

</div>

Hi all, I’m currently developing a custom application using Slicer. At the moment, I’m installing the necessary Python libraries via pip (using slicer.util.pip\_install('library')). However, I’m looking for a way to inc…

---

## [Combine two surface meshes and stitch edges](https://discourse.slicer.org/t/combine-two-surface-meshes-and-stitch-edges/39467)

<div class="topic-metadata">

**Author:** [@darabi](https://discourse.slicer.org/u/darabi)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 2:40am UTC](https://discourse.slicer.org/t/combine-two-surface-meshes-and-stitch-edges/39467 "2024-10-02T02:40:15Z")

</div>

Hello, I have two surfaces which are generated with a 3D scanner and registered using Fiducial Registration. Irrelevant parts of the scan are removed after registration by cutting along a manually placed curve on the su…

---

## [Is there any way to disable right-click context menu between Module Panel and Views?](https://discourse.slicer.org/t/is-there-any-way-to-disable-right-click-context-menu-between-module-panel-and-views/39440)

<div class="topic-metadata">

**Author:** [@apparrilla](https://discourse.slicer.org/u/apparrilla)\
**Replies:** 2\
**Last updated:** [October 1, 2024, 9:19pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-disable-right-click-context-menu-between-module-panel-and-views/39440 "2024-10-01T21:19:34Z")

</div>

I want to disable this mouse right-click qAction: I´ve tried: pluginHandler = slicer.qSlicerSubjectHierarchyPluginHandler.instance() pluginLogic = pluginHandler.pluginLogic() pluginLogic.allowedViewContextMenuAct…

---

## [Confusion in branch naming for publishing my extension](https://discourse.slicer.org/t/confusion-in-branch-naming-for-publishing-my-extension/39462)

<div class="topic-metadata">

**Author:** [@rasakereh](https://discourse.slicer.org/u/rasakereh)\
**Replies:** 6\
**Last updated:** [October 1, 2024, 3:26pm UTC](https://discourse.slicer.org/t/confusion-in-branch-naming-for-publishing-my-extension/39462 "2024-10-01T15:26:40Z")

</div>

I want to publish my scripted extension to the extension manager but after going through different doc pages, I am still confused about branch names. What I want to do: publish my extension on both stable version and pr…

---

## [Extension Wizard Cannot Load module on Mac](https://discourse.slicer.org/t/extension-wizard-cannot-load-module-on-mac/39471)

<div class="topic-metadata">

**Author:** [@alexjin](https://discourse.slicer.org/u/alexjin)\
**Replies:** 4\
**Last updated:** [October 1, 2024, 1:17pm UTC](https://discourse.slicer.org/t/extension-wizard-cannot-load-module-on-mac/39471 "2024-10-01T13:17:16Z")

</div>

Hi, I encountered a problem where if these lines are included in the code, the module cannot be loaded through extension wizard: # Check if binary labelmap is valid if binary\_labelmap.GetNumberOf…

---

## [How to make module modification take effect without restarting the application?](https://discourse.slicer.org/t/how-to-make-module-modification-take-effect-without-restarting-the-application/38420)

<div class="topic-metadata">

**Author:** [@dingdanpeng](https://discourse.slicer.org/u/dingdanpeng)\
**Replies:** 6\
**Last updated:** [September 30, 2024, 9:43pm UTC](https://discourse.slicer.org/t/how-to-make-module-modification-take-effect-without-restarting-the-application/38420 "2024-09-30T21:43:22Z")

</div>

Operating system:Win11 Slicer version:5.7.0 Every time I modify the plug code, I need to restart the software for it to take effect. Pressing reload does not work. This is because only restart Slicer can take effect or…

---

## [Automate thresholding w. unknown values - Max Entropy (Python)](https://discourse.slicer.org/t/automate-thresholding-w-unknown-values-max-entropy-python/39443)

<div class="topic-metadata">

**Author:** [@mhal0018](https://discourse.slicer.org/u/mhal0018)\
**Replies:** 1\
**Last updated:** [September 30, 2024, 2:05pm UTC](https://discourse.slicer.org/t/automate-thresholding-w-unknown-values-max-entropy-python/39443 "2024-09-30T14:05:36Z")

</div>

Hey there. I’m currently building a script to segment aneurysms and surrounding blood vessels from CT scans. I have successfully created a modular python script that completes the entire process from importing PNGs, appl…

---

## [3D Slicer and lungcaner](https://discourse.slicer.org/t/3d-slicer-and-lungcaner/38520)

<div class="topic-metadata">

**Author:** [@Chris3D](https://discourse.slicer.org/u/Chris3D)\
**Replies:** 1\
**Last updated:** [September 30, 2024, 1:54pm UTC](https://discourse.slicer.org/t/3d-slicer-and-lungcaner/38520 "2024-09-30T13:54:35Z")

</div>

Hello everyone, i am new to 3d Slicer and am very excited after i am digging deeper into it. And i have a question if there is already an extension for the following purpose: I have often the problem, when i get new C…

---

## [Ways to load nodes into Slicer scene WITHOUT displaying them immediately](https://discourse.slicer.org/t/ways-to-load-nodes-into-slicer-scene-without-displaying-them-immediately/1138)

<div class="topic-metadata">

**Author:** [@che85](https://discourse.slicer.org/u/che85)\
**Replies:** 15\
**Last updated:** [September 26, 2024, 3:36pm UTC](https://discourse.slicer.org/t/ways-to-load-nodes-into-slicer-scene-without-displaying-them-immediately/1138 "2024-09-26T15:36:48Z")

</div>

Hi Developers, I am wondering, if it’s possible to load nodes (volume, fiducial) into a Slicer scene without having them displayed immediately within the slice views. I am asking this, because I want to load a bunch of…

---

## [Ct scan data auto alignment  w.r.t cad data/image](https://discourse.slicer.org/t/ct-scan-data-auto-alignment-w-r-t-cad-data-image/38534)

<div class="topic-metadata">

**Author:** [@Midhun](https://discourse.slicer.org/u/Midhun)\
**Replies:** 0\
**Last updated:** [September 25, 2024, 12:45pm UTC](https://discourse.slicer.org/t/ct-scan-data-auto-alignment-w-r-t-cad-data-image/38534 "2024-09-25T12:45:32Z")

</div>

Looking for ways to to auto align the CT scan data w.r.t cad image

---

## [Programatically save Overlapping Segments](https://discourse.slicer.org/t/programatically-save-overlapping-segments/38512)

<div class="topic-metadata">

**Author:** [@tito21](https://discourse.slicer.org/u/tito21)\
**Replies:** 6\
**Last updated:** [September 24, 2024, 3:55pm UTC](https://discourse.slicer.org/t/programatically-save-overlapping-segments/38512 "2024-09-24T15:55:14Z")

</div>

Hi, I am using Slicer as part of a workflow that includes segmentation of overlapping regions. The segmentation needs to be saved programmatically. When I save as a .nrrd file with slicer.modules.segmentations.logic…

---

## [Split large python script into smaller files](https://discourse.slicer.org/t/split-large-python-script-into-smaller-files/38516)

<div class="topic-metadata">

**Author:** [@maximeb](https://discourse.slicer.org/u/maximeb)\
**Replies:** 2\
**Last updated:** [September 24, 2024, 1:07pm UTC](https://discourse.slicer.org/t/split-large-python-script-into-smaller-files/38516 "2024-09-24T13:07:34Z")

</div>

Hi! Our team is developing a 3D Slicer module. However, we are unable to fragment the code that is used so our script has now more than 3 000 lines in one python script (and we would like to have for example 10 python …

---

## [Help with deep learning algorithms for a PhD project](https://discourse.slicer.org/t/help-with-deep-learning-algorithms-for-a-phd-project/38508)

<div class="topic-metadata">

**Author:** [@sandigeeup](https://discourse.slicer.org/u/sandigeeup)\
**Replies:** 0\
**Last updated:** [September 24, 2024, 9:02am UTC](https://discourse.slicer.org/t/help-with-deep-learning-algorithms-for-a-phd-project/38508 "2024-09-24T09:02:58Z")

</div>

Can anyone here recommend anyone who has good experience in a deep learning algorithms and could help guide me for my PhD project? Thanks in advance.

---

## [Slicer Density Lung Segmentation](https://discourse.slicer.org/t/slicer-density-lung-segmentation/22751)

<div class="topic-metadata">

**Author:** [@PaoloZaffino](https://discourse.slicer.org/u/PaoloZaffino)\
**Replies:** 3\
**Last updated:** [September 24, 2024, 12:28am UTC](https://discourse.slicer.org/t/slicer-density-lung-segmentation/22751 "2024-09-24T00:28:34Z")

</div>

Dear all, I would like to inform you that Slicer has a new extension: Slicer Density Lung Segmentation. In this extension, we provide a tool to classify lung tissue density on CT images. Its first use is for images of…

---

## [How to interact with 3D Slicer from an external Python environment?](https://discourse.slicer.org/t/how-to-interact-with-3d-slicer-from-an-external-python-environment/38454)

<div class="topic-metadata">

**Author:** [@wenlin\_x](https://discourse.slicer.org/u/wenlin_x)\
**Replies:** 8\
**Last updated:** [September 23, 2024, 4:58am UTC](https://discourse.slicer.org/t/how-to-interact-with-3d-slicer-from-an-external-python-environment/38454 "2024-09-23T04:58:56Z")

</div>

I have attempted to use the pyigtl and slicerio libraries, but neither was successful in displaying the three surfaces of the instrument tip in real-time within 3D Slicer. My requirement is to execute this externally, al…

---

## [Adding an icon to a ctkCheckablePushButton is difficult](https://discourse.slicer.org/t/adding-an-icon-to-a-ctkcheckablepushbutton-is-difficult/38468)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 1\
**Last updated:** [September 21, 2024, 9:52pm UTC](https://discourse.slicer.org/t/adding-an-icon-to-a-ctkcheckablepushbutton-is-difficult/38468 "2024-09-21T21:52:04Z")

</div>

Does someone know why I cannot get the right side icon to not render over the text? class CustomCheckablePushButton(ctk.ctkCheckablePushButton): def \_\_init\_\_(self, text="", parent=None): super().\_\_init\_\_(par…

---

## [Extension assistance - basic tools to start](https://discourse.slicer.org/t/extension-assistance-basic-tools-to-start/38442)

<div class="topic-metadata">

**Author:** [@Shirly\_Someck](https://discourse.slicer.org/u/Shirly_Someck)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 5:47pm UTC](https://discourse.slicer.org/t/extension-assistance-basic-tools-to-start/38442 "2024-09-19T17:47:13Z")

</div>

I’ve started using 3D slicer, and managed to get a manual protocol for my project (probe view for DBS surgeries). It really is an amazing tool! Now I want to create an extension by using python, but am struggling greatl…

---

## [CLI script to screen capture 3D View](https://discourse.slicer.org/t/cli-script-to-screen-capture-3d-view/38401)

<div class="topic-metadata">

**Author:** [@Jithendra](https://discourse.slicer.org/u/Jithendra)\
**Replies:** 5\
**Last updated:** [September 19, 2024, 11:34am UTC](https://discourse.slicer.org/t/cli-script-to-screen-capture-3d-view/38401 "2024-09-19T11:34:29Z")

</div>

Could some one share the solution for creating 3d views of volume and segmentation using cli commands. I tried one example to execute the command line\_loopfolders\_volumerendering.py using /Applications/Slicer.app/Conte…

---

## [Input segments in new module](https://discourse.slicer.org/t/input-segments-in-new-module/5064)

<div class="topic-metadata">

**Author:** [@ThomPote](https://discourse.slicer.org/u/ThomPote)\
**Replies:** 13\
**Last updated:** [September 19, 2024, 11:34am UTC](https://discourse.slicer.org/t/input-segments-in-new-module/5064 "2024-09-19T11:34:03Z")

</div>

Hi, I’m trying to create a new module. I can select differents nodes like Volume and Segmentation node as input. But how can I select my different segments in Segmentation as input before running the analyse with appl…

---

## [When will the Totalsegmentor 2.4 plugin support 3D Slicer?](https://discourse.slicer.org/t/when-will-the-totalsegmentor-2-4-plugin-support-3d-slicer/38365)

<div class="topic-metadata">

**Author:** [@zhang\_ming](https://discourse.slicer.org/u/zhang_ming)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 2:24am UTC](https://discourse.slicer.org/t/when-will-the-totalsegmentor-2-4-plugin-support-3d-slicer/38365 "2024-09-18T02:24:54Z")

</div>

I was looking for the update of 2.4 version totalsegmentor support slicer!!!

---

## [Slicer Crashing on importing antspynet (macOS M3)](https://discourse.slicer.org/t/slicer-crashing-on-importing-antspynet-macos-m3/38154)

<div class="topic-metadata">

**Author:** [@IVarha](https://discourse.slicer.org/u/IVarha)\
**Replies:** 3\
**Last updated:** [September 17, 2024, 3:59pm UTC](https://discourse.slicer.org/t/slicer-crashing-on-importing-antspynet-macos-m3/38154 "2024-09-17T15:59:09Z")

</div>

Hello I am creating a slicer extension and using antspynet in my development. Previously I used it on windows and it was working fine. I tried to install it in windows environment and it worked well. I tested imports on…

---

## [How to add segmentation to a specific frame in sequence browser](https://discourse.slicer.org/t/how-to-add-segmentation-to-a-specific-frame-in-sequence-browser/38201)

<div class="topic-metadata">

**Author:** [@maniron](https://discourse.slicer.org/u/maniron)\
**Replies:** 4\
**Last updated:** [September 17, 2024, 1:54pm UTC](https://discourse.slicer.org/t/how-to-add-segmentation-to-a-specific-frame-in-sequence-browser/38201 "2024-09-17T13:54:43Z")

</div>

Kindly help me out with adding my model segmentation output to a sequence browser to a specific frame . I have been trying to find a solution for along if any one have a solution let me know

---

## [Virtual straightening of the spine based on CT (or MRI) images](https://discourse.slicer.org/t/virtual-straightening-of-the-spine-based-on-ct-or-mri-images/38360)

<div class="topic-metadata">

**Author:** [@medmax](https://discourse.slicer.org/u/medmax)\
**Replies:** 4\
**Last updated:** [September 13, 2024, 4:02pm UTC](https://discourse.slicer.org/t/virtual-straightening-of-the-spine-based-on-ct-or-mri-images/38360 "2024-09-13T16:02:51Z")

</div>

New to this forum, but not to Slicer. Impressed by the diversity of applications I am looking for a software package capable of “redressing” the (CT) image of the spine in such a way that it follows a straight axis. I t…

---

## [Break ModelNode Rendering After Repeated Camera Reset and Zoom](https://discourse.slicer.org/t/break-modelnode-rendering-after-repeated-camera-reset-and-zoom/38321)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 6\
**Last updated:** [September 13, 2024, 4:23am UTC](https://discourse.slicer.org/t/break-modelnode-rendering-after-repeated-camera-reset-and-zoom/38321 "2024-09-13T04:23:51Z")

</div>

Hi all, As shown below, my code resets the camera and performs zoom operations. layoutManager = slicer.app.layoutManager() threeDWidget = layoutManager.threeDWidget("View1") threeDView = threeDWidget.threeDView() thre…

---

## [Thick slab reconstruction does not work with MicroCT](https://discourse.slicer.org/t/thick-slab-reconstruction-does-not-work-with-microct/38311)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 2\
**Last updated:** [September 11, 2024, 9:27pm UTC](https://discourse.slicer.org/t/thick-slab-reconstruction-does-not-work-with-microct/38311 "2024-09-11T21:27:54Z")

</div>

Hi all, I noticed when working with MicroCT data that the thick slab reconstruction is not really meant for this modality. The minimum thickness is set to 1mm, which makes it basically unusable for volumes with very sma…

---

## [Batch co-registration using BRAINSfit (script)](https://discourse.slicer.org/t/batch-co-registration-using-brainsfit-script/24285)

<div class="topic-metadata">

**Author:** [@dokay1](https://discourse.slicer.org/u/dokay1)\
**Replies:** 2\
**Last updated:** [September 9, 2024, 2:36pm UTC](https://discourse.slicer.org/t/batch-co-registration-using-brainsfit-script/24285 "2024-09-09T14:36:54Z")

</div>

For those looking for a script for Batch co-reg. You still have to add the string “FIXED” (case sensitive) to the name of the volume you want to use as the reference/fixed volume for co-registration. PoolOfVolumes = get…

---

## [Using Resample Scalar/Vector/DWI Volume in python](https://discourse.slicer.org/t/using-resample-scalar-vector-dwi-volume-in-python/38271)

<div class="topic-metadata">

**Author:** [@lord\_bubbacub](https://discourse.slicer.org/u/lord_bubbacub)\
**Replies:** 3\
**Last updated:** [September 8, 2024, 6:05pm UTC](https://discourse.slicer.org/t/using-resample-scalar-vector-dwi-volume-in-python/38271 "2024-09-08T18:05:23Z")

</div>

Resample Scalar/Vector/DWI Volume — 3D Slicer documentation Hi I’m trying to automate use of the resamplescalarvectordwivolume using python in the slicer console. My operation involves rescaling a ct based volume to matc…

---

## [How to add another module (Reformat) into a module that I have created?](https://discourse.slicer.org/t/how-to-add-another-module-reformat-into-a-module-that-i-have-created/38077)

<div class="topic-metadata">

**Author:** [@Saladi](https://discourse.slicer.org/u/Saladi)\
**Replies:** 3\
**Last updated:** [September 7, 2024, 7:30pm UTC](https://discourse.slicer.org/t/how-to-add-another-module-reformat-into-a-module-that-i-have-created/38077 "2024-09-07T19:30:55Z")

</div>

Hi community, I am trying to develop a new module from my research work, in that “Reformat” module is essential. I want to have some features (offset, rotation, etc) into my existing module. I am developing in Python bu…

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

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