# Development

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

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

**Page:** 108

---

## [Referencing a module widget from another module](https://discourse.slicer.org/t/referencing-a-module-widget-from-another-module/7419)

<div class="topic-metadata">

**Author:** [@MattTroke](https://discourse.slicer.org/u/MattTroke)\
**Replies:** 3\
**Last updated:** [July 4, 2019, 7:43pm UTC](https://discourse.slicer.org/t/referencing-a-module-widget-from-another-module/7419 "2019-07-04T19:43:39Z")

</div>

I have 2 extensions, both built into a custom build of slicer. I have set it up so that ExtensionA (with ModuleABC) depends on ExtensionB (with Module XYZ). I would like to be able to get a handle on ExtensionBModuleXYZM…

---

## [How to capture the return/output of a python script executed from slicer's python interpreter](https://discourse.slicer.org/t/how-to-capture-the-return-output-of-a-python-script-executed-from-slicers-python-interpreter/7395)

<div class="topic-metadata">

**Author:** [@talmazov](https://discourse.slicer.org/u/talmazov)\
**Replies:** 1\
**Last updated:** [July 4, 2019, 7:25pm UTC](https://discourse.slicer.org/t/how-to-capture-the-return-output-of-a-python-script-executed-from-slicers-python-interpreter/7395 "2019-07-04T19:25:36Z")

</div>

Hey, I am trying to develop a script that is independent of slicer’s main execution process. I want to launch this python script using the built-in python interpreter (this way the user does not need to have an independ…

---

## [Slicer FEniCS extension](https://discourse.slicer.org/t/slicer-fenics-extension/7407)

<div class="topic-metadata">

**Author:** [@benzwick](https://discourse.slicer.org/u/benzwick)\
**Replies:** 0\
**Last updated:** [July 4, 2019, 9:39am UTC](https://discourse.slicer.org/t/slicer-fenics-extension/7407 "2019-07-04T09:39:20Z")

</div>

Here is the Slicer FEniCS extension that I developed last week in Boston: I’ve updated the FEniCS integration project week page and included some instructions for installing FEniCS inside Slicer. Thank you @Sam\_Horva…

---

## [Camera Observer Arguments](https://discourse.slicer.org/t/camera-observer-arguments/7405)

<div class="topic-metadata">

**Author:** [@Amine](https://discourse.slicer.org/u/Amine)\
**Replies:** 4\
**Last updated:** [July 4, 2019, 12:42am UTC](https://discourse.slicer.org/t/camera-observer-arguments/7405 "2019-07-04T00:42:37Z")

</div>

I’m trying to add an observer to the camera (and call a function to set a slice plane normal to camera), the function itself works fine but the observer of the camera either states “TypeError: ‘NoneType’ object is not ca…

---

## [Determine performance metrics](https://discourse.slicer.org/t/determine-performance-metrics/7370)

<div class="topic-metadata">

**Author:** [@safa](https://discourse.slicer.org/u/safa)\
**Replies:** 6\
**Last updated:** [July 2, 2019, 2:00pm UTC](https://discourse.slicer.org/t/determine-performance-metrics/7370 "2019-07-02T14:00:48Z")

</div>

can i determine performance metrics (Dice, Accuracy, sensitivity,…) with slicer ?

---

## [Python interactor disconnecting](https://discourse.slicer.org/t/python-interactor-disconnecting/7166)

<div class="topic-metadata">

**Author:** [@pieper](https://discourse.slicer.org/u/pieper)\
**Replies:** 8\
**Last updated:** [July 1, 2019, 5:41pm UTC](https://discourse.slicer.org/t/python-interactor-disconnecting/7166 "2019-07-01T17:41:46Z")

</div>

I’ve noticed that sometimes lately the python interactor will stop processing new commands. This is something new in the past few weeks. It seems to happen when there’s a background exception. @lassoan the other day o…

---

## [Build failure  using Visual Studio 2015  ](https://discourse.slicer.org/t/build-failure-using-visual-studio-2015/7351)

<div class="topic-metadata">

**Author:** [@pradhan.arun479](https://discourse.slicer.org/u/pradhan.arun479)\
**Replies:** 16\
**Last updated:** [July 1, 2019, 2:35am UTC](https://discourse.slicer.org/t/build-failure-using-visual-studio-2015/7351 "2019-07-01T02:35:52Z")

</div>

Operating system: windows 10 Slicer version: 4 Expected behavior: Should build successfully Actual behavior: Build failure . I am new to 3D slicer , I installed on tools required and checked out sources from Github. …

---

## [Slice widget size in custom layouts](https://discourse.slicer.org/t/slice-widget-size-in-custom-layouts/2406)

<div class="topic-metadata">

**Author:** [@mschumaker](https://discourse.slicer.org/u/mschumaker)\
**Replies:** 4\
**Last updated:** [June 29, 2019, 3:29pm UTC](https://discourse.slicer.org/t/slice-widget-size-in-custom-layouts/2406 "2019-06-29T15:29:09Z")

</div>

I’m trying to change slice view sizes as part of the setup of a custom layout. For instance: def formatCustomLayout(self): customLayout = ( XML code ) layoutNode = slicer.app.layoutManager().layoutLogic().GetLa…

---

## [Right Button Press on Markups Fiducial](https://discourse.slicer.org/t/right-button-press-on-markups-fiducial/7345)

<div class="topic-metadata">

**Author:** [@zacbaum](https://discourse.slicer.org/u/zacbaum)\
**Replies:** 1\
**Last updated:** [June 28, 2019, 11:15pm UTC](https://discourse.slicer.org/t/right-button-press-on-markups-fiducial/7345 "2019-06-28T23:15:52Z")

</div>

Hello, I am looking to implement a context menu similar to this one from the script repository - however, I’d like to be able to use a right click instead of a left click with the mouse. I know that I can do something …

---

## [CLI module that outputs multiple volumes](https://discourse.slicer.org/t/cli-module-that-outputs-multiple-volumes/7309)

<div class="topic-metadata">

**Author:** [@kmanduca](https://discourse.slicer.org/u/kmanduca)\
**Replies:** 3\
**Last updated:** [June 28, 2019, 10:28pm UTC](https://discourse.slicer.org/t/cli-module-that-outputs-multiple-volumes/7309 "2019-06-28T22:28:06Z")

</div>

Operating system: linux Slicer version: 4.10.1 Expected behavior: create 3 volumes from a CLI module Actual behavior: Slicer crashes We’re trying to create a CLI module that reads from a directory of dicom files and …

---

## [New segment editor feature added: Split volume](https://discourse.slicer.org/t/new-segment-editor-feature-added-split-volume/7324)

<div class="topic-metadata">

**Author:** [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Replies:** 2\
**Last updated:** [June 27, 2019, 10:19am UTC](https://discourse.slicer.org/t/new-segment-editor-feature-added-split-volume/7324 "2019-06-27T10:19:24Z")

</div>

A new effect has been added to the Segment Editor Extra Effects to split a volume using a segmentation. The output is a volume for each segment, cropped to the extent of the segment with optional padding. This can be use…

---

## [Open Atlas Followup](https://discourse.slicer.org/t/open-atlas-followup/7286)

<div class="topic-metadata">

**Author:** [@Lorensen](https://discourse.slicer.org/u/Lorensen)\
**Replies:** 7\
**Last updated:** [June 27, 2019, 9:30am UTC](https://discourse.slicer.org/t/open-atlas-followup/7286 "2019-06-27T09:30:54Z")

</div>

Folks, At the 2015 Winter Project Week, I presented and improved a project called Open Atlas. After that meeting, I did further improvements. Jesica Forbes and @hjmjohnson approached me about using the tools on their M…

---

## [Sequences extension with custom build](https://discourse.slicer.org/t/sequences-extension-with-custom-build/7332)

<div class="topic-metadata">

**Author:** [@MattTroke](https://discourse.slicer.org/u/MattTroke)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 3:35am UTC](https://discourse.slicer.org/t/sequences-extension-with-custom-build/7332 "2019-06-27T03:35:44Z")

</div>

I am developing a custom build of slicer based on the master-410 branch (I override the revision number to 28257 to match the 4.10.2 release and enable the extension manager). I would like to use the Sequences extension,…

---

## [CUDA version for build machines](https://discourse.slicer.org/t/cuda-version-for-build-machines/7298)

<div class="topic-metadata">

**Author:** [@gregsharp.geo](https://discourse.slicer.org/u/gregsharp.geo)\
**Replies:** 0\
**Last updated:** [June 24, 2019, 7:32pm UTC](https://discourse.slicer.org/t/cuda-version-for-build-machines/7298 "2019-06-24T19:32:50Z")

</div>

I have compiled some information regarding which CUDA version would be most compatible with the Slicer factory build machines. Windows (overload.kitware) The web page says both VS2013 and VS2015 installed. I assume th…

---

## [Diagnosis of Parkinsonian Syndromes based on PET Imaging](https://discourse.slicer.org/t/diagnosis-of-parkinsonian-syndromes-based-on-pet-imaging/7261)

<div class="topic-metadata">

**Author:** [@Tiago](https://discourse.slicer.org/u/Tiago)\
**Replies:** 2\
**Last updated:** [June 23, 2019, 12:19pm UTC](https://discourse.slicer.org/t/diagnosis-of-parkinsonian-syndromes-based-on-pet-imaging/7261 "2019-06-23T12:19:40Z")

</div>

Clinical diagnosis of Parkinsonian Syndromes is challenging. PET imaging using F-18-DOPA is a promissing tool for the diagnosis, but visual evaluation of images is difficult. I’m a Nuclear Medicine Physician and I’m …

---

## [Simplifying slicer.util.load... functions](https://discourse.slicer.org/t/simplifying-slicer-util-load-functions/7270)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 10\
**Last updated:** [June 23, 2019, 3:18am UTC](https://discourse.slicer.org/t/simplifying-slicer-util-load-functions/7270 "2019-06-23T03:18:08Z")

</div>

Currently, it is very complicated to load a volume and get the result as a node: volumeNode = slicer.util.loadVolume('path/to/volume.nrrd', returnNode=True)\[1\] I would propose to make the change of the API to make it w…

---

## [Slicer numpy upgrade](https://discourse.slicer.org/t/slicer-numpy-upgrade/7276)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 2\
**Last updated:** [June 21, 2019, 2:13pm UTC](https://discourse.slicer.org/t/slicer-numpy-upgrade/7276 "2019-06-21T14:13:03Z")

</div>

I was playing around with the ability to pip install packages into Slicer nightly and attempted a upgrade of Numpy from 1.16.2 to 1.16.4 which resulted in some errors (seen below). This got me thinking about if numpy bui…

---

## [Duplicated includes?](https://discourse.slicer.org/t/duplicated-includes/1862)

<div class="topic-metadata">

**Author:** [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Replies:** 11\
**Last updated:** [June 21, 2019, 7:00am UTC](https://discourse.slicer.org/t/duplicated-includes/1862 "2019-06-21T07:00:46Z")

</div>

Is there a reason we are setting the include path to both source and the build directory for VTK and ITK? This means I have nearly 500 include directories for a single compiler invocation (macOS 10.12, SDK 10.13; Qt 5.9.…

---

## [\[Help Request\] QFormBuilder was unable to create a custom widget](https://discourse.slicer.org/t/help-request-qformbuilder-was-unable-to-create-a-custom-widget/5389)

<div class="topic-metadata">

**Author:** [@adamrankin](https://discourse.slicer.org/u/adamrankin)\
**Replies:** 8\
**Last updated:** [June 21, 2019, 6:57am UTC](https://discourse.slicer.org/t/help-request-qformbuilder-was-unable-to-create-a-custom-widget/5389 "2019-06-21T06:57:14Z")

</div>

Hello, Has anyone experienced this error? The widget is question works in another C++ module, but fails when using python and a .ui file QFormBuilder was unable to create a custom widget of the class 'qMRMLVideoCameraI…

---

## [Adopting GraphCutSegmentExtension extension?](https://discourse.slicer.org/t/adopting-graphcutsegmentextension-extension/7248)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 5\
**Last updated:** [June 20, 2019, 6:43pm UTC](https://discourse.slicer.org/t/adopting-graphcutsegmentextension-extension/7248 "2019-06-20T18:43:15Z")

</div>

Dear Slicers, The GraphCutSegmentExtension extension implements loadable module allowing to perform interactive segmentation using start shape prior for graph cut. This is described in more details in this publication …

---

## [No extensions in Extension Manager - 4.10.2 build](https://discourse.slicer.org/t/no-extensions-in-extension-manager-4-10-2-build/7262)

<div class="topic-metadata">

**Author:** [@MattTroke](https://discourse.slicer.org/u/MattTroke)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 4:10pm UTC](https://discourse.slicer.org/t/no-extensions-in-extension-manager-4-10-2-build/7262 "2019-06-20T16:10:28Z")

</div>

I checked out the master-410 branch of Slicer and built it, but there are no extensions available in the Extension Manager when I run it. Instead I get the message “No extensions found for win:64-bit, revision: ‘670e575’…

---

## [Adopting VirtualFractureReconstruction extension?](https://discourse.slicer.org/t/adopting-virtualfracturereconstruction-extension/7237)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 1:23pm UTC](https://discourse.slicer.org/t/adopting-virtualfracturereconstruction-extension/7237 "2019-06-19T13:23:39Z")

</div>

Dear Slicers, The VirtualFractureReconstruction extension implements modules allowing to automatically reposition bone fragments after a fracture (fracture reduction). You can read more on the wiki Associated repo is G…

---

## [How to register two models using Python?](https://discourse.slicer.org/t/how-to-register-two-models-using-python/7233)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Replies:** 1\
**Last updated:** [June 19, 2019, 3:51pm UTC](https://discourse.slicer.org/t/how-to-register-two-models-using-python/7233 "2019-06-19T15:51:57Z")

</div>

I went to calculater a transform between two models. Then I searched and found such module :https://github.com/SlicerIGT/SlicerIGT/blob/master/ModelRegistration/ModelRegistration.py but when I run this code in python c…

---

## [Film Dosimetry - deprecated function](https://discourse.slicer.org/t/film-dosimetry-deprecated-function/7244)

<div class="topic-metadata">

**Author:** [@kmalexander](https://discourse.slicer.org/u/kmalexander)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 2:57pm UTC](https://discourse.slicer.org/t/film-dosimetry-deprecated-function/7244 "2019-06-19T14:57:40Z")

</div>

Seems that there is a bit of deprecated code in the line profile aspect of the Film Dosimetry slicelet. After generating the first couple profiles, the line profile viewer stops displaying the film dose profile, and onl…

---

## [Failing Tests - ImportError: No module named Elastix](https://discourse.slicer.org/t/failing-tests-importerror-no-module-named-elastix/7202)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 11\
**Last updated:** [June 18, 2019, 6:55pm UTC](https://discourse.slicer.org/t/failing-tests-importerror-no-module-named-elastix/7202 "2019-06-18T18:55:15Z")

</div>

There a couple extensions with failing tests for Slicer 4.10 related to a failure to import Elastix. SequenceRegistration: http://slicer.cdash.org/testDetails.php?test=9620798&build=1619449 SlicerCochlea: http://slicer…

---

## [Need help with the research project on methods for registering some objects.](https://discourse.slicer.org/t/need-help-with-the-research-project-on-methods-for-registering-some-objects/6993)

<div class="topic-metadata">

**Author:** [@Maxi](https://discourse.slicer.org/u/Maxi)\
**Replies:** 5\
**Last updated:** [June 17, 2019, 4:51pm UTC](https://discourse.slicer.org/t/need-help-with-the-research-project-on-methods-for-registering-some-objects/6993 "2019-06-17T16:51:51Z")

</div>

Hi, I am getting my masters, so need to complete my research project where I need to superimpose 2 objects based on certain areas (ROI) and look at the differences of other (not superimposed) parts of those 2 objects. Ba…

---

## [Rendering speed slower than "raw" Vtk](https://discourse.slicer.org/t/rendering-speed-slower-than-raw-vtk/7190)

<div class="topic-metadata">

**Author:** [@klayman](https://discourse.slicer.org/u/klayman)\
**Replies:** 2\
**Last updated:** [June 17, 2019, 4:02am UTC](https://discourse.slicer.org/t/rendering-speed-slower-than-raw-vtk/7190 "2019-06-17T04:02:01Z")

</div>

Hello, I am loading a CT volume 600x600x312 to slicer4, and playing with the same volume in raw VTK by using a modified Medical4 demo where I use VtkOpenGLGpuMapper (I guess it’s the same I get in slicer4 when I select V…

---

## [Can't see source code(.cpp files) in solution Slicer.sln. Source code hierarchy is missing in Solution manager.](https://discourse.slicer.org/t/cant-see-source-code-cpp-files-in-solution-slicer-sln-source-code-hierarchy-is-missing-in-solution-manager/7172)

<div class="topic-metadata">

**Author:** [@Programming\_Freak](https://discourse.slicer.org/u/Programming_Freak)\
**Replies:** 1\
**Last updated:** [June 14, 2019, 5:50pm UTC](https://discourse.slicer.org/t/cant-see-source-code-cpp-files-in-solution-slicer-sln-source-code-hierarchy-is-missing-in-solution-manager/7172 "2019-06-14T17:50:02Z")

</div>

I configured slicer.sln using cmake on windows. I opened the project in VS 2015, but I can’t see any source code hierarchy or any src folder. I compiled th solution and I got Slicer.exe generated. But still cpp files i…

---

## [An extension contains common functions for different extensions](https://discourse.slicer.org/t/an-extension-contains-common-functions-for-different-extensions/7143)

<div class="topic-metadata">

**Author:** [@brhoom](https://discourse.slicer.org/u/brhoom)\
**Replies:** 4\
**Last updated:** [June 12, 2019, 7:55pm UTC](https://discourse.slicer.org/t/an-extension-contains-common-functions-for-different-extensions/7143 "2019-06-12T19:55:35Z")

</div>

Dear all, I have two different extension1 and extension2 for two different users user1 and user2. These extensions are using the same functions. I created a common scripted module that both extensions can use. My questi…

---

## [Is there any way to get LabelStatistics to the python?](https://discourse.slicer.org/t/is-there-any-way-to-get-labelstatistics-to-the-python/7115)

<div class="topic-metadata">

**Author:** [@batuhan\_edguer](https://discourse.slicer.org/u/batuhan_edguer)\
**Replies:** 1\
**Last updated:** [June 11, 2019, 8:57pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-get-labelstatistics-to-the-python/7115 "2019-06-11T20:57:38Z")

</div>

I want to get these datas to the script for GUI development. Is there any command to get these datas?

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

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