# Development

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

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

**Page:** 99

---

## [sitkUtils.PullVolumeFromSlicer makes Slicer crash](https://discourse.slicer.org/t/sitkutils-pullvolumefromslicer-makes-slicer-crash/9781)

<div class="topic-metadata">

**Author:** [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Replies:** 45\
**Last updated:** [February 13, 2020, 4:31pm UTC](https://discourse.slicer.org/t/sitkutils-pullvolumefromslicer-makes-slicer-crash/9781 "2020-02-13T16:31:58Z")

</div>

Hi all, Snippet to reproduce: import SampleData import sitkUtils as su sampleDataLogic = SampleData.SampleDataLogic() node = sampleDataLogic.downloadMRHead() su.PullVolumeFromSlicer(node) Tried on latest nightly for …

---

## [Updating DCMTK to 3.6.5](https://discourse.slicer.org/t/updating-dcmtk-to-3-6-5/9888)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Replies:** 6\
**Last updated:** [February 11, 2020, 1:38pm UTC](https://discourse.slicer.org/t/updating-dcmtk-to-3-6-5/9888 "2020-02-11T13:38:17Z")

</div>

Last time Slicer DCMTK was updated was over a year ago, and I would like to update to the latest 3.6.5 release. Currently, Slicer is using a patched version of DCMTK, but the only patch applied is this, as I understand: h…

---

## [Programmatically Create a SegmentationNode and LabelMapNode from Polygon Coordinates](https://discourse.slicer.org/t/programmatically-create-a-segmentationnode-and-labelmapnode-from-polygon-coordinates/8448)

<div class="topic-metadata">

**Author:** [@rmd](https://discourse.slicer.org/u/rmd)\
**Replies:** 11\
**Last updated:** [February 10, 2020, 8:58pm UTC](https://discourse.slicer.org/t/programmatically-create-a-segmentationnode-and-labelmapnode-from-polygon-coordinates/8448 "2020-02-10T20:58:02Z")

</div>

Operating system: Windows 10 Slicer version: 4.10.2 Hello, I have some manually drawn ROIs represented as points in the row, column, slice coordinate frame. I am trying to programmatically generate a vtkMRMLSegmentati…

---

## [About the time.sleep](https://discourse.slicer.org/t/about-the-time-sleep/10171)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Replies:** 2\
**Last updated:** [February 10, 2020, 12:55am UTC](https://discourse.slicer.org/t/about-the-time-sleep/10171 "2020-02-10T00:55:03Z")

</div>

for \_ in range(20): n += 1 print('n') time.sleep(1) The printing results seems to be printed in the last time… Can I replace the time.sleep in slicer for waiting time?

---

## [Scene initialization and modified state](https://discourse.slicer.org/t/scene-initialization-and-modified-state/10152)

<div class="topic-metadata">

**Author:** [@rprueckl](https://discourse.slicer.org/u/rprueckl)\
**Replies:** 5\
**Last updated:** [February 9, 2020, 12:54pm UTC](https://discourse.slicer.org/t/scene-initialization-and-modified-state/10152 "2020-02-09T12:54:42Z")

</div>

In my application, at startup or after a scene change, I do some initialization tasks for some of my modules. After this is finished, the scene of course is always marked as modified and when I try to close the applicati…

---

## [Wrong segment IDs when exporting labelmap to file](https://discourse.slicer.org/t/wrong-segment-ids-when-exporting-labelmap-to-file/10011)

<div class="topic-metadata">

**Author:** [@Mostafa\_Darwiche](https://discourse.slicer.org/u/Mostafa_Darwiche)\
**Replies:** 8\
**Last updated:** [February 8, 2020, 12:39pm UTC](https://discourse.slicer.org/t/wrong-segment-ids-when-exporting-labelmap-to-file/10011 "2020-02-08T12:39:12Z")

</div>

Hello, I am developing a scriptedLoadableModules and I am currently facing a small issue. So, I’am loading a segmentation and labelmap in which, for the sake of simplicity, I have three segmented regions (IDs: 3, 6 an…

---

## [How to call the slicer python interactor?](https://discourse.slicer.org/t/how-to-call-the-slicer-python-interactor/10119)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Replies:** 2\
**Last updated:** [February 6, 2020, 5:30am UTC](https://discourse.slicer.org/t/how-to-call-the-slicer-python-interactor/10119 "2020-02-06T05:30:06Z")

</div>

I studied the Shortcut keys in slicer and I want to custom a KEY(not default ctrl+3) to call the slicer python interactor. Can I do it with py? Thanks!

---

## [Install python library with extension](https://discourse.slicer.org/t/install-python-library-with-extension/10110)

<div class="topic-metadata">

**Author:** [@PaoloZaffino](https://discourse.slicer.org/u/PaoloZaffino)\
**Replies:** 7\
**Last updated:** [February 5, 2020, 8:59am UTC](https://discourse.slicer.org/t/install-python-library-with-extension/10110 "2020-02-05T08:59:59Z")

</div>

Hi all, the extension I’m developing needs an external python library. I can install it by using pip\_install in the python shell but, of course I need to embed this into the installation process. How can I do this? T…

---

## [Display 2 VolumeNodes at the same time](https://discourse.slicer.org/t/display-2-volumenodes-at-the-same-time/10087)

<div class="topic-metadata">

**Author:** [@electus](https://discourse.slicer.org/u/electus)\
**Replies:** 1\
**Last updated:** [February 5, 2020, 6:52am UTC](https://discourse.slicer.org/t/display-2-volumenodes-at-the-same-time/10087 "2020-02-05T06:52:17Z")

</div>

Hi guys, I am trying to diyplay 2 volumes at the same time in the 2D Views and i am facing 2 problems. One of the volume is a CT and the other has some random values, while being of the same size as the CT. When I add…

---

## [Screen flash when the mouse move to the module](https://discourse.slicer.org/t/screen-flash-when-the-mouse-move-to-the-module/10107)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 4:31pm UTC](https://discourse.slicer.org/t/screen-flash-when-the-mouse-move-to-the-module/10107 "2020-02-04T16:31:12Z")

</div>

Screen flash when the mouse move to the module. class testWidget(object): def init(self, parent = None): if not parent: self.parent = slicer.qMRMLWidget() self.parent.setLayout(qt.QVBoxLayout()) self.parent.s…

---

## [Running a loadable module as a slicelet](https://discourse.slicer.org/t/running-a-loadable-module-as-a-slicelet/158)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 6\
**Last updated:** [February 4, 2020, 4:23am UTC](https://discourse.slicer.org/t/running-a-loadable-module-as-a-slicelet/158 "2020-02-04T04:23:50Z")

</div>

(question posted by Samira on slicer-devel) I am looking into slicelet now and I want to run my loadable extension as a slicelet. What do I need to add to the extension code? And is there any guide on how to do that?

---

## [Heads up on Qt changes in 2020](https://discourse.slicer.org/t/heads-up-on-qt-changes-in-2020/10066)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 4\
**Last updated:** [February 3, 2020, 2:09pm UTC](https://discourse.slicer.org/t/heads-up-on-qt-changes-in-2020/10066 "2020-02-03T14:09:21Z")

</div>

I was reading a recent Qt blog post titled “Qt offering changes 2020” which might impact some Slicer development. Quick Excerpts: From February onward, everyone, including open-source Qt users, will require valid Qt a…

---

## [get a set of 2D planar contours ](https://discourse.slicer.org/t/get-a-set-of-2d-planar-contours/10085)

<div class="topic-metadata">

**Author:** [@loubna](https://discourse.slicer.org/u/loubna)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 2:02pm UTC](https://discourse.slicer.org/t/get-a-set-of-2d-planar-contours/10085 "2020-02-03T14:02:32Z")

</div>

Hi; I have a sert of IRM images of brain, i used segment editor to segment ROI using (manually or semi-automatic segmentation ) but even the segment tool, i obtained Always a label Map as master representation. What I …

---

## [Rebuild? TVTK in Slicer](https://discourse.slicer.org/t/rebuild-tvtk-in-slicer/10005)

<div class="topic-metadata">

**Author:** [@hkirvesl](https://discourse.slicer.org/u/hkirvesl)\
**Replies:** 5\
**Last updated:** [February 2, 2020, 11:57pm UTC](https://discourse.slicer.org/t/rebuild-tvtk-in-slicer/10005 "2020-02-02T23:57:22Z")

</div>

We are developing a Slicer Extension for aligning 3D shapes. We have previously created our module and it runs like a charm, but because the algorithm is bit time consuming we wanted to parallelize the algorithm. Becau…

---

## [Building slicer with latest VTK](https://discourse.slicer.org/t/building-slicer-with-latest-vtk/9083)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 9\
**Last updated:** [February 1, 2020, 6:20pm UTC](https://discourse.slicer.org/t/building-slicer-with-latest-vtk/9083 "2020-02-01T18:20:02Z")

</div>

More and more VTK problems are surfacing for which it is very hard to find the potential VTK patches that we could backport (virtual reality Qt widget, plot marker style issue, etc.). So, it is time to bit the bullet and…

---

## [simpleITK, ITK,VTK Autocompletion](https://discourse.slicer.org/t/simpleitk-itk-vtk-autocompletion/10055)

<div class="topic-metadata">

**Author:** [@manjula](https://discourse.slicer.org/u/manjula)\
**Replies:** 3\
**Last updated:** [February 1, 2020, 2:06pm UTC](https://discourse.slicer.org/t/simpleitk-itk-vtk-autocompletion/10055 "2020-02-01T14:06:21Z")

</div>

Hi all, Maybe this is not the most appropriate place to post this. I am using linux system and eclipse +PyDev for 3D Slicer extension development that we are building. But the auto completion/suggestions for vtk,itk a…

---

## [Module is not registered on Windows/Linux nightly built](https://discourse.slicer.org/t/module-is-not-registered-on-windows-linux-nightly-built/10060)

<div class="topic-metadata">

**Author:** [@shanshan](https://discourse.slicer.org/u/shanshan)\
**Replies:** 1\
**Last updated:** [February 1, 2020, 1:41pm UTC](https://discourse.slicer.org/t/module-is-not-registered-on-windows-linux-nightly-built/10060 "2020-02-01T13:41:40Z")

</div>

Slicer Ver 4.11 2020-01-31 on Windows Slicer Ver 4.11 2020-01-31 on Mac Slicer Ver 4.11 2020-01-30 on Linux I am having trouble with loading a module we coded last summer into the nightly built of Slicer on Windows an…

---

## [Display vtkimage in 2D views](https://discourse.slicer.org/t/display-vtkimage-in-2d-views/9891)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 12\
**Last updated:** [January 31, 2020, 2:11am UTC](https://discourse.slicer.org/t/display-vtkimage-in-2d-views/9891 "2020-01-31T02:11:01Z")

</div>

I have a vtkImage data and I would like to display this data in my slicer 2D views After run this code, I could find node in my Slicer However, I can not find image in my 2D views And also, the in volume module the “A…

---

## [Update of Slicer issue tracker](https://discourse.slicer.org/t/update-of-slicer-issue-tracker/437)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 27\
**Last updated:** [January 30, 2020, 9:28pm UTC](https://discourse.slicer.org/t/update-of-slicer-issue-tracker/437 "2020-01-30T21:28:04Z")

</div>

Hi Everyone, Now that @freephile migrated the issue tracker to its new home: (still available from http://na-mic.org/Bug and http://www.na-mic.org/Bug to ensure existing links work) We are planning to upgrade the v…

---

## [Python Script for segment growing and Logical operations](https://discourse.slicer.org/t/python-script-for-segment-growing-and-logical-operations/10004)

<div class="topic-metadata">

**Author:** [@manjula](https://discourse.slicer.org/u/manjula)\
**Replies:** 9\
**Last updated:** [January 30, 2020, 3:17pm UTC](https://discourse.slicer.org/t/python-script-for-segment-growing-and-logical-operations/10004 "2020-01-30T15:17:01Z")

</div>

Hi all, I want to write a python code to grow a segment margin. (need to overlap and also grow in to a specified intensity only) Then i want to subtract the newly grown segment from the original. How do i do that ? I…

---

## [Concurrent calls to slicer app processEvents() crashing slicer](https://discourse.slicer.org/t/concurrent-calls-to-slicer-app-processevents-crashing-slicer/9970)

<div class="topic-metadata">

**Author:** [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 7:53pm UTC](https://discourse.slicer.org/t/concurrent-calls-to-slicer-app-processevents-crashing-slicer/9970 "2020-01-27T19:53:08Z")

</div>

Slicer is randomly crashing if I register a callback to the dicom indexer and make my callback call slicer.app.processEvents() self.indexer = ctk.ctkDICOMIndexer() self.indexer.connect("progress(int)", updateProgress) s…

---

## [Control of rotation in Curved Planar Reformat (instead of using Frenet Serret frame)](https://discourse.slicer.org/t/control-of-rotation-in-curved-planar-reformat-instead-of-using-frenet-serret-frame/9898)

<div class="topic-metadata">

**Author:** [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Replies:** 5\
**Last updated:** [January 27, 2020, 8:12pm UTC](https://discourse.slicer.org/t/control-of-rotation-in-curved-planar-reformat-instead-of-using-frenet-serret-frame/9898 "2020-01-27T20:12:03Z")

</div>

Hello, I was excited to discover the Curved Planar Reformat module recently. It does 95% of what I need it for. However, the rotation of the images in the straightened volume is sometimes awkward for my purposes. I am…

---

## [Ctk collapsible button in qt designer](https://discourse.slicer.org/t/ctk-collapsible-button-in-qt-designer/9955)

<div class="topic-metadata">

**Author:** [@Juicy](https://discourse.slicer.org/u/Juicy)\
**Replies:** 2\
**Last updated:** [January 26, 2020, 7:15pm UTC](https://discourse.slicer.org/t/ctk-collapsible-button-in-qt-designer/9955 "2020-01-26T19:15:20Z")

</div>

Hi I am hoping someone can help me with how to use ctk collapsible buttons in qt designer when trying to design a UI for a scripted module. I first drag and drop a ctk collasible button into the UI area. Then I have to …

---

## [About the Qtimer and QTextBrower](https://discourse.slicer.org/t/about-the-qtimer-and-qtextbrower/9946)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Replies:** 5\
**Last updated:** [January 26, 2020, 12:04pm UTC](https://discourse.slicer.org/t/about-the-qtimer-and-qtextbrower/9946 "2020-01-26T12:04:35Z")

</div>

I want to update the text in slicer extension by Qtimer and QTextBrower, but nothing happon after run the main(). The code as follows: self.text= qt.QTextBrowser() parametersFormLayout2D.addRow("received:", self.text)…

---

## [3D Slicer Hardware requirements](https://discourse.slicer.org/t/3d-slicer-hardware-requirements/9937)

<div class="topic-metadata">

**Author:** [@manjula](https://discourse.slicer.org/u/manjula)\
**Replies:** 2\
**Last updated:** [January 24, 2020, 11:23pm UTC](https://discourse.slicer.org/t/3d-slicer-hardware-requirements/9937 "2020-01-24T23:23:54Z")

</div>

As i understand 3D Slicer is mainly built on VTK and ITK. I understand answers to the following will depend on the type of data and size of data and what you are going to do with it but in general is it possible to tell…

---

## [How to automatically convert a labelmap volume to a segmentation node upon loading labelmap volume](https://discourse.slicer.org/t/how-to-automatically-convert-a-labelmap-volume-to-a-segmentation-node-upon-loading-labelmap-volume/9931)

<div class="topic-metadata">

**Author:** [@Vincent\_C](https://discourse.slicer.org/u/Vincent_C)\
**Replies:** 8\
**Last updated:** [January 25, 2020, 1:37am UTC](https://discourse.slicer.org/t/how-to-automatically-convert-a-labelmap-volume-to-a-segmentation-node-upon-loading-labelmap-volume/9931 "2020-01-25T01:37:08Z")

</div>

Hi, I want to script Slicer to automatically convert labelmap volume to a segmentation node when I load the labelmap volume, rather than having to right-click and convert it through the GUI. How can I achieve this? Can …

---

## [How to manage parameterNode in a ScriptedModule](https://discourse.slicer.org/t/how-to-manage-parameternode-in-a-scriptedmodule/9938)

<div class="topic-metadata">

**Author:** [@apparrilla](https://discourse.slicer.org/u/apparrilla)\
**Replies:** 1\
**Last updated:** [January 24, 2020, 11:27pm UTC](https://discourse.slicer.org/t/how-to-manage-parameternode-in-a-scriptedmodule/9938 "2020-01-24T23:27:32Z")

</div>

Hi everyone, I´m trying to save my nodes in a parameter Node to manage them all over the module but I have problems no iniciate it. def setup(self): ScriptedLoadableModuleWidget.setup(self) self.parameterNode = None …

---

## [Getting more information from mouse pointer in 3D view](https://discourse.slicer.org/t/getting-more-information-from-mouse-pointer-in-3d-view/9935)

<div class="topic-metadata">

**Author:** [@Niels](https://discourse.slicer.org/u/Niels)\
**Replies:** 4\
**Last updated:** [January 24, 2020, 4:34pm UTC](https://discourse.slicer.org/t/getting-more-information-from-mouse-pointer-in-3d-view/9935 "2020-01-24T16:34:29Z")

</div>

Hello slicer developers, For my module I need the user to mouse click in the 3D view and see if it hits the 3D model. I found this example: https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get\_scalar\_…

---

## [Slice multiple volumes](https://discourse.slicer.org/t/slice-multiple-volumes/9900)

<div class="topic-metadata">

**Author:** [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Replies:** 10\
**Last updated:** [January 24, 2020, 3:29pm UTC](https://discourse.slicer.org/t/slice-multiple-volumes/9900 "2020-01-24T15:29:03Z")

</div>

Hi, is there a way to display multiple volumes on a slice window? For example, I have 2 volumes that has no overlap, can I slice both of them via the yellow slice window? Or any other special slice window?

---

## [How to prevent Slicer from "forgetting" slicer.util.loadColorTable after closing a scene](https://discourse.slicer.org/t/how-to-prevent-slicer-from-forgetting-slicer-util-loadcolortable-after-closing-a-scene/9932)

<div class="topic-metadata">

**Author:** [@Vincent\_C](https://discourse.slicer.org/u/Vincent_C)\
**Replies:** 7\
**Last updated:** [January 24, 2020, 1:57am UTC](https://discourse.slicer.org/t/how-to-prevent-slicer-from-forgetting-slicer-util-loadcolortable-after-closing-a-scene/9932 "2020-01-24T01:57:34Z")

</div>

Hi all, I am using slicer.util.loadColorTable('c:/Users…) in slicerrc.py to direct Slicer to load a custom color table file in a specified location. This works great, however, when I close the scene and “Add Data into t…

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

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