# Development

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

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

**Page:** 88

---

## [Strange creation of multiple desktops on Linux](https://discourse.slicer.org/t/strange-creation-of-multiple-desktops-on-linux/13085)

<div class="topic-metadata">

**Author:** [@PaoloZaffino](https://discourse.slicer.org/u/PaoloZaffino)\
**Replies:** 9\
**Last updated:** [September 14, 2020, 7:23am UTC](https://discourse.slicer.org/t/strange-creation-of-multiple-desktops-on-linux/13085 "2020-09-14T07:23:33Z")

</div>

Hi all, I am running Slicer in Arch Linux (gnome and wayland). When I load an image in slicer, a strange thing happens in gnome: multiple desktops are added to the system. In gnome there is always a new, fresh and emp…

---

## [Cannot find rectangle segmentation option](https://discourse.slicer.org/t/cannot-find-rectangle-segmentation-option/13286)

<div class="topic-metadata">

**Author:** [@Yusuke](https://discourse.slicer.org/u/Yusuke)\
**Replies:** 23\
**Last updated:** [September 11, 2020, 5:54pm UTC](https://discourse.slicer.org/t/cannot-find-rectangle-segmentation-option/13286 "2020-09-11T17:54:48Z")

</div>

Hi, This page mentions ‘Rectangle’ in segmentation effect but I cannot find it in my options. https://www.slicer.org/wiki/Documentation/Nightly/Modules/Editor Could you tell me where I can find ‘Rectangle’ for segm…

---

## [Linux Vs Windows: Which Is The Efficient OS For 3D slicer?](https://discourse.slicer.org/t/linux-vs-windows-which-is-the-efficient-os-for-3d-slicer/13429)

<div class="topic-metadata">

**Author:** [@N.Arjmandi](https://discourse.slicer.org/u/N.Arjmandi)\
**Replies:** 1\
**Last updated:** [September 10, 2020, 9:08pm UTC](https://discourse.slicer.org/t/linux-vs-windows-which-is-the-efficient-os-for-3d-slicer/13429 "2020-09-10T21:08:43Z")

</div>

I want to segment CT images using deep learning in Python.for image pre-processing I will use 3D slicer. Which Is The efficient OS For 3D slicer, Linux or Windows?

---

## [Getting a 2D binary mask from a 3D Binary Volume](https://discourse.slicer.org/t/getting-a-2d-binary-mask-from-a-3d-binary-volume/13422)

<div class="topic-metadata">

**Author:** [@evanakm](https://discourse.slicer.org/u/evanakm)\
**Replies:** 9\
**Last updated:** [September 10, 2020, 6:35pm UTC](https://discourse.slicer.org/t/getting-a-2d-binary-mask-from-a-3d-binary-volume/13422 "2020-09-10T18:35:04Z")

</div>

My segmentation is a 3D binary volume (shown in green in the screenshot) imported from a RTSS file. I need to do two things: Extract the 2D mask in all three planar directions (the specific voxels that are shown in …

---

## [Convert 3D Segmentation to contours along different axis](https://discourse.slicer.org/t/convert-3d-segmentation-to-contours-along-different-axis/13400)

<div class="topic-metadata">

**Author:** [@evanakm](https://discourse.slicer.org/u/evanakm)\
**Replies:** 1\
**Last updated:** [September 9, 2020, 1:51pm UTC](https://discourse.slicer.org/t/convert-3d-segmentation-to-contours-along-different-axis/13400 "2020-09-09T13:51:30Z")

</div>

If I use SlicerRT to export a segmentation to a Dicom RTSS file using , the 2D contours are all along axial slices. Is there a way to export the contours along a perpendicular direction?

---

## [Rotating a implicit function called vtkCylinder](https://discourse.slicer.org/t/rotating-a-implicit-function-called-vtkcylinder/13323)

<div class="topic-metadata">

**Author:** [@Anish\_Basnet](https://discourse.slicer.org/u/Anish_Basnet)\
**Replies:** 6\
**Last updated:** [September 10, 2020, 11:26am UTC](https://discourse.slicer.org/t/rotating-a-implicit-function-called-vtkcylinder/13323 "2020-09-10T11:26:54Z")

</div>

Hello everyone, I am new to VTK and this forum. I just wanted to know if there is a solution to rotate an implicit function called vtkCylinder by 90 degrees. I would like to add the clip functionality in ModelClip exten…

---

## [How to: Install pymedphys in MacOS](https://discourse.slicer.org/t/how-to-install-pymedphys-in-macos/12870)

<div class="topic-metadata">

**Author:** [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Replies:** 1\
**Last updated:** [September 9, 2020, 9:49am UTC](https://discourse.slicer.org/t/how-to-install-pymedphys-in-macos/12870 "2020-09-09T09:49:01Z")

</div>

The current code works in Linux and Windows: from slicer.util import pip\_install; pip\_install('pymedphys') However that is not the case for MacOS. In case you want to use this cool library that includes gamma compariso…

---

## [Creating an RTStruct file with contour data](https://discourse.slicer.org/t/creating-an-rtstruct-file-with-contour-data/13390)

<div class="topic-metadata">

**Author:** [@evanakm](https://discourse.slicer.org/u/evanakm)\
**Replies:** 0\
**Last updated:** [September 8, 2020, 1:54pm UTC](https://discourse.slicer.org/t/creating-an-rtstruct-file-with-contour-data/13390 "2020-09-08T13:54:13Z")

</div>

I know that it is possible to use SlicerRT to import a Dicom RT file with contour data (There are tutorials out there which I just worked through). I currently have stack of CT images, with contour data in an SR file. If…

---

## ['vtkSlicerOpenIGTLinkIFModuleMRMLPython.vtkMRMLIGTL' has no attribute 'ReceiveEvent'](https://discourse.slicer.org/t/vtksliceropenigtlinkifmodulemrmlpython-vtkmrmligtl-has-no-attribute-receiveevent/13387)

<div class="topic-metadata">

**Author:** [@luigi-palladino](https://discourse.slicer.org/u/luigi-palladino)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 1:12pm UTC](https://discourse.slicer.org/t/vtksliceropenigtlinkifmodulemrmlpython-vtkmrmligtl-has-no-attribute-receiveevent/13387 "2020-09-08T13:12:40Z")

</div>

Hi, I got this issue executing this code on Slicer 4.11.0-2019-09-25: def addConnectorObservers(self): eventON = \[slicer.vtkMRMLIGTLConnectorNode.ConnectedEvent, self.onStatus\] self.cnode.AddObserver(…

---

## [Cannot zoom and scroll in slice view(slicelets)](https://discourse.slicer.org/t/cannot-zoom-and-scroll-in-slice-view-slicelets/13365)

<div class="topic-metadata">

**Author:** [@Chintha\_Siva\_Prasad](https://discourse.slicer.org/u/Chintha_Siva_Prasad)\
**Replies:** 5\
**Last updated:** [September 8, 2020, 12:01pm UTC](https://discourse.slicer.org/t/cannot-zoom-and-scroll-in-slice-view-slicelets/13365 "2020-09-08T12:01:46Z")

</div>

I created a slicelet of custom layouts that has three slice nodes. But I am not able to zoom into the slice view or scroll through the imgaes. Why is this happening?

---

## [Set Slice nodes for volumes](https://discourse.slicer.org/t/set-slice-nodes-for-volumes/13362)

<div class="topic-metadata">

**Author:** [@Chintha\_Siva\_Prasad](https://discourse.slicer.org/u/Chintha_Siva_Prasad)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 5:03am UTC](https://discourse.slicer.org/t/set-slice-nodes-for-volumes/13362 "2020-09-08T05:03:03Z")

</div>

I have all three slice nodes(red, green, and yellow) in the scene. When I load a volume I just want to get the 2d view in red and green slices. Then I want the 2d view of another volume in yellow slice keeping the previo…

---

## [Preserve image rescale and slope when saving in NRRD file](https://discourse.slicer.org/t/preserve-image-rescale-and-slope-when-saving-in-nrrd-file/13357)

<div class="topic-metadata">

**Author:** [@Chris\_Rorden](https://discourse.slicer.org/u/Chris_Rorden)\
**Replies:** 1\
**Last updated:** [September 6, 2020, 6:29pm UTC](https://discourse.slicer.org/t/preserve-image-rescale-and-slope-when-saving-in-nrrd-file/13357 "2020-09-06T18:29:26Z")

</div>

@ lassoan I would argue that NRRD and NIfTI are very similar from a user perspective, but one core problem with DICOM to NRRD conversion is that NRRD is unable to preserve rescale intercept (0028,1052) and slope (0028,10…

---

## ["Jump slices" but for camera in 3D view](https://discourse.slicer.org/t/jump-slices-but-for-camera-in-3d-view/13336)

<div class="topic-metadata">

**Author:** [@mangotee](https://discourse.slicer.org/u/mangotee)\
**Replies:** 1\
**Last updated:** [September 4, 2020, 2:31pm UTC](https://discourse.slicer.org/t/jump-slices-but-for-camera-in-3d-view/13336 "2020-09-04T14:31:32Z")

</div>

Hi, a quick question - in the markups module, we can “jump slices”, e.g. onto a fiducial, and we can center slice views onto that fiducial. That way, we can easily focus on a point in 3D. Is there a way to automatically…

---

## [Impossibility to test for coverage in extensions](https://discourse.slicer.org/t/impossibility-to-test-for-coverage-in-extensions/13291)

<div class="topic-metadata">

**Author:** [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Replies:** 7\
**Last updated:** [September 4, 2020, 10:45am UTC](https://discourse.slicer.org/t/impossibility-to-test-for-coverage-in-extensions/13291 "2020-09-04T10:45:36Z")

</div>

I am trying to test the coverage in my extension. This is easily performed by pytest --cov-report term --cov=Dosimetry4D However this results in $ pytest --cov-report term --cov=Dosimetry4D Failed to import the site m…

---

## [LibArchive build errors](https://discourse.slicer.org/t/libarchive-build-errors/13310)

<div class="topic-metadata">

**Author:** [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Replies:** 22\
**Last updated:** [September 3, 2020, 6:07pm UTC](https://discourse.slicer.org/t/libarchive-build-errors/13310 "2020-09-03T18:07:42Z")

</div>

I’m trying to compile the most recent preview version of Slicer on Windows 10. In debug mode, the LibArchive project is failing with the errors below. Does anyone have an idea what might cause this? Release mode is build…

---

## [Build Failure (Windows)](https://discourse.slicer.org/t/build-failure-windows/13197)

<div class="topic-metadata">

**Author:** [@jrl](https://discourse.slicer.org/u/jrl)\
**Replies:** 14\
**Last updated:** [September 3, 2020, 5:50pm UTC](https://discourse.slicer.org/t/build-failure-windows/13197 "2020-09-03T17:50:37Z")

</div>

I am having trouble with the initial build. I think Qt, CMake, and Git are installed correctly. However, with Visual Studio, the instructions provided say “when configuring the installer, enable installation of Visual St…

---

## [How to draw a line on sagittal view](https://discourse.slicer.org/t/how-to-draw-a-line-on-sagittal-view/13306)

<div class="topic-metadata">

**Author:** [@DavidCai1246](https://discourse.slicer.org/u/DavidCai1246)\
**Replies:** 4\
**Last updated:** [September 2, 2020, 11:03pm UTC](https://discourse.slicer.org/t/how-to-draw-a-line-on-sagittal-view/13306 "2020-09-02T23:03:53Z")

</div>

For the application I am working on, I would like to draw horizontal lines in the sagittal view to mark specific slices that I am interested in. Is there code that can help me achieve this? I know that in the Markups mo…

---

## [Slicer 3D DICOM Import Issues with pydicom DICOM files](https://discourse.slicer.org/t/slicer-3d-dicom-import-issues-with-pydicom-dicom-files/13281)

<div class="topic-metadata">

**Author:** [@jdp](https://discourse.slicer.org/u/jdp)\
**Replies:** 7\
**Last updated:** [September 2, 2020, 5:18pm UTC](https://discourse.slicer.org/t/slicer-3d-dicom-import-issues-with-pydicom-dicom-files/13281 "2020-09-02T17:18:17Z")

</div>

I am trying to develop a DICOM file from scratch (using pydicom) that can be imported into slicer 3D. This DICOM from scratch can be read by other programs with no issue. Although the DICOM I can generate has a Patient N…

---

## [Mac images not being built](https://discourse.slicer.org/t/mac-images-not-being-built/13277)

<div class="topic-metadata">

**Author:** [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Replies:** 4\
**Last updated:** [September 2, 2020, 1:40pm UTC](https://discourse.slicer.org/t/mac-images-not-being-built/13277 "2020-09-02T13:40:21Z")

</div>

I have noticed that in the last three days the mac extension images are not being built see: http://slicer.cdash.org/index.php?project=SlicerPreview&date=2020-08-31&filtercount=1&showfilters=1&field1=buildname&compare1…

---

## [Core Infrastructure Initiative (CII) badge](https://discourse.slicer.org/t/core-infrastructure-initiative-cii-badge/810)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 2\
**Last updated:** [September 2, 2020, 8:04am UTC](https://discourse.slicer.org/t/core-infrastructure-initiative-cii-badge/810 "2020-09-02T08:04:23Z")

</div>

Working on cleanup the Slicer openhub https://www.openhub.net/p/slicer we ended up creating Core Infrastructure Initiative (CII) badge. See https://bestpractices.coreinfrastructure.org/projects/1162

---

## [Display Text in Slice view](https://discourse.slicer.org/t/display-text-in-slice-view/13264)

<div class="topic-metadata">

**Author:** [@DavidCai1246](https://discourse.slicer.org/u/DavidCai1246)\
**Replies:** 5\
**Last updated:** [August 31, 2020, 9:17pm UTC](https://discourse.slicer.org/t/display-text-in-slice-view/13264 "2020-08-31T21:17:56Z")

</div>

I’m would like to display unique text in the slice view for each slice. I’m currently trying to use the python script to display text in slice view: view=slicer.app.layoutManager().threeDWidget(0).threeDView() # Set te…

---

## [Using Segment Editor effects programmatically](https://discourse.slicer.org/t/using-segment-editor-effects-programmatically/11561)

<div class="topic-metadata">

**Author:** [@mangotee](https://discourse.slicer.org/u/mangotee)\
**Replies:** 6\
**Last updated:** [August 31, 2020, 7:56pm UTC](https://discourse.slicer.org/t/using-segment-editor-effects-programmatically/11561 "2020-08-31T19:56:44Z")

</div>

Hi all, I’m wondering how to script some simple steps from the Segment Editor. I know that there are a few recipes from Andras and others in this forum, which are great, thanks for the continuous support. In one of the…

---

## [How to add existing module and do further development](https://discourse.slicer.org/t/how-to-add-existing-module-and-do-further-development/13260)

<div class="topic-metadata">

**Author:** [@Yusuke](https://discourse.slicer.org/u/Yusuke)\
**Replies:** 2\
**Last updated:** [August 31, 2020, 7:28pm UTC](https://discourse.slicer.org/t/how-to-add-existing-module-and-do-further-development/13260 "2020-08-31T19:28:36Z")

</div>

Hi, I would like to try to load NVIDIA AIAA module from my local repo so that I can try it out and make further changes. I follow the following instruction on this README, ai-assisted-annotation-client/slicer-plugin/RE…

---

## [Module documentation](https://discourse.slicer.org/t/module-documentation/11929)

<div class="topic-metadata">

**Author:** [@drouin-simon](https://discourse.slicer.org/u/drouin-simon)\
**Replies:** 6\
**Last updated:** [August 31, 2020, 6:03pm UTC](https://discourse.slicer.org/t/module-documentation/11929 "2020-08-31T18:03:19Z")

</div>

I would like to know what is the current preferred way to write documentation for a Slicer scripted module? This page suggest writing a wiki page: https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/…

---

## [Edit UI raies 'Designer cannot be opened because of a problem' ](https://discourse.slicer.org/t/edit-ui-raies-designer-cannot-be-opened-because-of-a-problem/13176)

<div class="topic-metadata">

**Author:** [@Yusuke](https://discourse.slicer.org/u/Yusuke)\
**Replies:** 16\
**Last updated:** [August 28, 2020, 5:51pm UTC](https://discourse.slicer.org/t/edit-ui-raies-designer-cannot-be-opened-because-of-a-problem/13176 "2020-08-28T17:51:01Z")

</div>

Hi, I am following this tutorial; https://github.com/PerkLab/PerkLabBootcamp/blob/master/Doc/day3\_2\_SlicerProgramming.pptx?raw=true ‘Edit UI’ button was not working in my Slicer (page 36) and my understanding is that t…

---

## [How to modify the default mouse leftbuttondown to rightbuttondown?](https://discourse.slicer.org/t/how-to-modify-the-default-mouse-leftbuttondown-to-rightbuttondown/13207)

<div class="topic-metadata">

**Author:** [@pingdan](https://discourse.slicer.org/u/pingdan)\
**Replies:** 1\
**Last updated:** [August 28, 2020, 3:42am UTC](https://discourse.slicer.org/t/how-to-modify-the-default-mouse-leftbuttondown-to-rightbuttondown/13207 "2020-08-28T03:42:45Z")

</div>

I use vtkImagePlaneWidget to display a image. the default operation is leftbutton change window/level, now I need to rightbutton change window/level, how can I do?

---

## [Any suggestions for image sensor/camera with image stitching](https://discourse.slicer.org/t/any-suggestions-for-image-sensor-camera-with-image-stitching/13155)

<div class="topic-metadata">

**Author:** [@Satish](https://discourse.slicer.org/u/Satish)\
**Replies:** 4\
**Last updated:** [August 28, 2020, 1:51am UTC](https://discourse.slicer.org/t/any-suggestions-for-image-sensor-camera-with-image-stitching/13155 "2020-08-28T01:51:08Z")

</div>

Hello Slicers, We are looking for a compact camera sensor for a hand held 3D scanning device. User of the device may not be able to scan the entire object in one scan and hence need build a functionality to stitch these…

---

## [vtkMRMLAnnotationROINode instantiation before changing Interaction Mode](https://discourse.slicer.org/t/vtkmrmlannotationroinode-instantiation-before-changing-interaction-mode/13158)

<div class="topic-metadata">

**Author:** [@EricM](https://discourse.slicer.org/u/EricM)\
**Replies:** 3\
**Last updated:** [August 27, 2020, 7:39am UTC](https://discourse.slicer.org/t/vtkmrmlannotationroinode-instantiation-before-changing-interaction-mode/13158 "2020-08-27T07:39:02Z")

</div>

Hi Slicer Community, I apologize in advance if the answer to my question is out there. I’ve seen related threads, but I haven’t been able to piece it together to get my solution working. Basically, I would like to inst…

---

## [How to activate slice intersections from python module?](https://discourse.slicer.org/t/how-to-activate-slice-intersections-from-python-module/13162)

<div class="topic-metadata">

**Author:** [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Replies:** 4\
**Last updated:** [August 25, 2020, 8:49pm UTC](https://discourse.slicer.org/t/how-to-activate-slice-intersections-from-python-module/13162 "2020-08-25T20:49:32Z")

</div>

Hello, I’m having a hard time figuring out how to turn on the “Slice Intersections” from a scripted python module (equivalent to clicking the checkbox at the bottom of the crosshair menu on the toolbar). I’ve searched t…

---

## [How to package 3D Slicer on Ubuntu 16.04, which has been build](https://discourse.slicer.org/t/how-to-package-3d-slicer-on-ubuntu-16-04-which-has-been-build/13175)

<div class="topic-metadata">

**Author:** [@Aitekk](https://discourse.slicer.org/u/Aitekk)\
**Replies:** 3\
**Last updated:** [August 26, 2020, 3:11pm UTC](https://discourse.slicer.org/t/how-to-package-3d-slicer-on-ubuntu-16-04-which-has-been-build/13175 "2020-08-26T15:11:01Z")

</div>

Operating system:Ubuntu 16.04 Slicer version:4.11 Expected behavior:To package 3D Slicer on Ubuntu 16.04 for installing Slicer on other Ubuntu computers. Actual behavior:I cannot find instructions for packaging on Ubu…

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

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