# Development

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

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

**Page:** 66

---

## [How to connect virtual camera to Slicer with Plus ？](https://discourse.slicer.org/t/how-to-connect-virtual-camera-to-slicer-with-plus/20283)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [October 22, 2021, 6:08pm UTC](https://discourse.slicer.org/t/how-to-connect-virtual-camera-to-slicer-with-plus/20283 "2021-10-22T18:08:35Z")

</div>

I can load the camera into the Slicer through Plus, but if I want to capture the surgical field of view under the microscope to the computer through the capture card, then start the virtual camera to Plus and then tran…

---

## [Changes to the Markups Module](https://discourse.slicer.org/t/changes-to-the-markups-module/19871)

<div class="topic-metadata">

**Author:** [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Replies:** 28\
**Last updated:** [October 22, 2021, 3:24pm UTC](https://discourse.slicer.org/t/changes-to-the-markups-module/19871 "2021-10-22T15:24:30Z")

</div>

Several updates to the Markups module and the addition of a Markups toolbar were added in commit: ENH: Improve control point state management and add markups toolbar · Slicer/Slicer@09d12ae · GitHub and are available in …

---

## [Centered Jump Slice doesn't restore](https://discourse.slicer.org/t/centered-jump-slice-doesnt-restore/20295)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 3\
**Last updated:** [October 22, 2021, 3:16pm UTC](https://discourse.slicer.org/t/centered-jump-slice-doesnt-restore/20295 "2021-10-22T15:16:44Z")

</div>

I have a scene file that I’ve switched to use Centered Jump Slice crosshair behavior. But when I save the file, quit slicer, restart slicer, and open the file, the Centered Jump Slice behavior isn’t restored, and I get t…

---

## [Can't display model from C++](https://discourse.slicer.org/t/cant-display-model-from-c/20277)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 9\
**Last updated:** [October 22, 2021, 12:22am UTC](https://discourse.slicer.org/t/cant-display-model-from-c/20277 "2021-10-22T00:22:59Z")

</div>

Hi, Here is my first attempt to add a model but I can’t display scalars on 3D view: vtkNew\<vtkPoints\> pts; vtkNew\<vtkDoubleArray\> derivs; ... vtkNew\<vtkPolyData\> polyData; polyData-\>SetPoints(pts); polyData…

---

## [Annotation in 3D view (like slice view)?](https://discourse.slicer.org/t/annotation-in-3d-view-like-slice-view/20285)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 3\
**Last updated:** [October 21, 2021, 7:04pm UTC](https://discourse.slicer.org/t/annotation-in-3d-view-like-slice-view/20285 "2021-10-21T19:04:09Z")

</div>

Is there a way (in python is fine, doesn’t need to be a feature add) to add an annotation to the bottom left (or right, or top; any corner, really) of the 3D view? This post: Display text in a 3D view seems to talk about…

---

## [Slicer Preview Release package for Windows failed to upload](https://discourse.slicer.org/t/slicer-preview-release-package-for-windows-failed-to-upload/20264)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 7\
**Last updated:** [October 21, 2021, 6:44pm UTC](https://discourse.slicer.org/t/slicer-preview-release-package-for-windows-failed-to-upload/20264 "2021-10-21T18:44:10Z")

</div>

If I try to download the latest Slicer Preview Release then I got an empty zip file of 22 bytes. It seems that there was an upload error. @Sam\_Horvath @jcfr Could you please have a look at this and remove the invalid f…

---

## ["Keep only whole cells when clipping" not saved in mrml scene file](https://discourse.slicer.org/t/keep-only-whole-cells-when-clipping-not-saved-in-mrml-scene-file/20261)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 3\
**Last updated:** [October 21, 2021, 11:55am UTC](https://discourse.slicer.org/t/keep-only-whole-cells-when-clipping-not-saved-in-mrml-scene-file/20261 "2021-10-21T11:55:29Z")

</div>

This is somewhat relevant to Clipping of models is too slow. Enabling “Keep only whole cells when clipping” speeds up the clipping a lot for complex models. This setting, however, is not saved in the scene file, making …

---

## [How to deploy a custom slicer application on docker?](https://discourse.slicer.org/t/how-to-deploy-a-custom-slicer-application-on-docker/20200)

<div class="topic-metadata">

**Author:** [@qiqi5210](https://discourse.slicer.org/u/qiqi5210)\
**Replies:** 11\
**Last updated:** [October 21, 2021, 2:01am UTC](https://discourse.slicer.org/t/how-to-deploy-a-custom-slicer-application-on-docker/20200 "2021-10-21T02:01:20Z")

</div>

Hello, everyone, slicerjupiter and slicerdocker, which I recently learned, are really good functions. I use slicerjupiter to display the main window, which will be displayed locally, but not on the web page. Running slic…

---

## [Import external segmentation map](https://discourse.slicer.org/t/import-external-segmentation-map/20265)

<div class="topic-metadata">

**Author:** [@Han\_Liu](https://discourse.slicer.org/u/Han_Liu)\
**Replies:** 3\
**Last updated:** [October 20, 2021, 6:32pm UTC](https://discourse.slicer.org/t/import-external-segmentation-map/20265 "2021-10-20T18:32:09Z")

</div>

Hi all, I am working on a deep learning project where the network generates a semantically segmented mask from .dcm CT input. For instance, if I want to separate out the kidneys, with the input being a 200x512x512 3D ar…

---

## [Notification when \`qMRMLSliceWidget\` added](https://discourse.slicer.org/t/notification-when-qmrmlslicewidget-added/20252)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 6\
**Last updated:** [October 20, 2021, 4:04pm UTC](https://discourse.slicer.org/t/notification-when-qmrmlslicewidget-added/20252 "2021-10-20T16:04:09Z")

</div>

Hi, Is there some kind of signal when qMRMLSliceWidget added? I’m trying to add a toolbutton to it and there is no preblem to do that on existing qMRMLSliceWidget (there is an example in scrit repo) but when new slice …

---

## [LV (cardiac) segmentation and short axis alignment ](https://discourse.slicer.org/t/lv-cardiac-segmentation-and-short-axis-alignment/20266)

<div class="topic-metadata">

**Author:** [@ShaneKirkbride](https://discourse.slicer.org/u/ShaneKirkbride)\
**Replies:** 0\
**Last updated:** [October 20, 2021, 3:48pm UTC](https://discourse.slicer.org/t/lv-cardiac-segmentation-and-short-axis-alignment/20266 "2021-10-20T15:48:36Z")

</div>

Hello, I’m wondering if 3D slicer has any cardiac functions that would allow me to segment and align the LV into short axis. (I know this is a big ask…) Thanks, ~Shane

---

## [Window resize with model clipping enabled is extremely slow](https://discourse.slicer.org/t/window-resize-with-model-clipping-enabled-is-extremely-slow/20208)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 4\
**Last updated:** [October 20, 2021, 12:04pm UTC](https://discourse.slicer.org/t/window-resize-with-model-clipping-enabled-is-extremely-slow/20208 "2021-10-20T12:04:41Z")

</div>

I have a relatively complex model (20 million polys). When I enable clipping, resizing the slicer window is extremely slow - it basically hangs the program for 30-40 seconds. If I select “Keep only whole cells when clipp…

---

## [How to set the customized layout whenever I switch to the developed module?](https://discourse.slicer.org/t/how-to-set-the-customized-layout-whenever-i-switch-to-the-developed-module/20255)

<div class="topic-metadata">

**Author:** [@wpgao](https://discourse.slicer.org/u/wpgao)\
**Replies:** 1\
**Last updated:** [October 20, 2021, 5:01am UTC](https://discourse.slicer.org/t/how-to-set-the-customized-layout-whenever-i-switch-to-the-developed-module/20255 "2021-10-20T05:01:06Z")

</div>

Hi Guys, I had defined a customized layout with a module. When the module was activated, the layout work. However, after I switch to other module and then get back, the customized layout doesn’t work. So how to set the…

---

## [Plastimatch landwarp with variable rbf radius](https://discourse.slicer.org/t/plastimatch-landwarp-with-variable-rbf-radius/20226)

<div class="topic-metadata">

**Author:** [@simonoxen](https://discourse.slicer.org/u/simonoxen)\
**Replies:** 2\
**Last updated:** [October 20, 2021, 4:45am UTC](https://discourse.slicer.org/t/plastimatch-landwarp-with-variable-rbf-radius/20226 "2021-10-20T04:45:35Z")

</div>

Hi, I’ve been developing a module for manual refinement of normalization (WarpDrive - github, video). This module runs plastimatch landwarp based on source and target fiducials set by the user via different tools access…

---

## [How to enlarge(zoom in/out) the volume of a slice with python code?](https://discourse.slicer.org/t/how-to-enlarge-zoom-in-out-the-volume-of-a-slice-with-python-code/20049)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 6\
**Last updated:** [October 20, 2021, 3:27am UTC](https://discourse.slicer.org/t/how-to-enlarge-zoom-in-out-the-volume-of-a-slice-with-python-code/20049 "2021-10-20T03:27:02Z")

</div>

如何用python代码放大某个slice的volume呢? How to enlarge(zoom in/out) the volume of a slice with python code?

---

## [Markups toolbar complexity for simple tasks](https://discourse.slicer.org/t/markups-toolbar-complexity-for-simple-tasks/19913)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 15\
**Last updated:** [October 19, 2021, 7:45pm UTC](https://discourse.slicer.org/t/markups-toolbar-complexity-for-simple-tasks/19913 "2021-10-19T19:45:49Z")

</div>

There have been recent changes to how users create and place markups using the toolbar. These changes have been written up in the following post. It appears to be a great change to support easier functionality when us…

---

## [Flip image data](https://discourse.slicer.org/t/flip-image-data/20249)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 7:40pm UTC](https://discourse.slicer.org/t/flip-image-data/20249 "2021-10-19T19:40:03Z")

</div>

Hi, I is it possible to flip vtkImageData and wrap the result in vtkMRMLScalarVolumeNode? For example I can see that VTK has vtkImageFlip but for me it doesnt work: vtkNew\<vtkImageData\> imageData; imageData-\>SetDi…

---

## [Slicer Scripted Module not calling updateParameterNodeFromGUI when UI is updated](https://discourse.slicer.org/t/slicer-scripted-module-not-calling-updateparameternodefromgui-when-ui-is-updated/20122)

<div class="topic-metadata">

**Author:** [@tsims](https://discourse.slicer.org/u/tsims)\
**Replies:** 3\
**Last updated:** [October 19, 2021, 7:38pm UTC](https://discourse.slicer.org/t/slicer-scripted-module-not-calling-updateparameternodefromgui-when-ui-is-updated/20122 "2021-10-19T19:38:09Z")

</div>

Hi everyone, I am working on python module for slicer and am running into a weird issue where my updateParameterNodeFromGUI function is not being called when I interacted with the UI. Is there a signal I may have broken…

---

## [Markups draw curve](https://discourse.slicer.org/t/markups-draw-curve/20238)

<div class="topic-metadata">

**Author:** [@simonoxen](https://discourse.slicer.org/u/simonoxen)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 12:39pm UTC](https://discourse.slicer.org/t/markups-draw-curve/20238 "2021-10-19T12:39:52Z")

</div>

Hi, I started testing this idea of placing markups by drawing, markups are placed as the pointer moves and resampled. I found it to be easier in some occasions rather than clicking multiple times. I would be …

---

## [Update existing volume from SimpleITK image](https://discourse.slicer.org/t/update-existing-volume-from-simpleitk-image/20239)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 11:26am UTC](https://discourse.slicer.org/t/update-existing-volume-from-simpleitk-image/20239 "2021-10-19T11:26:39Z")

</div>

Thank you simonoxen. It worked for me. I need guidance with one other issue. I use the method sitkUtils.PushVolumeToSlicer each time I want to display a volume node on screen. I have a button and whenever this button is…

---

## [Memory management between scenes and nodes](https://discourse.slicer.org/t/memory-management-between-scenes-and-nodes/20198)

<div class="topic-metadata">

**Author:** [@ebrahim](https://discourse.slicer.org/u/ebrahim)\
**Replies:** 2\
**Last updated:** [October 19, 2021, 4:13am UTC](https://discourse.slicer.org/t/memory-management-between-scenes-and-nodes/20198 "2021-10-19T04:13:53Z")

</div>

Does adding a node to a scene give ownership of the node to the scene? i.e. will the node be deallocated cleanly when the scene is destroyed? I am talking about adding a node via vtkMRMLScene::AddNode

---

## [saveNode returns False](https://discourse.slicer.org/t/savenode-returns-false/20207)

<div class="topic-metadata">

**Author:** [@S\_Arbabi](https://discourse.slicer.org/u/S_Arbabi)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 8:28pm UTC](https://discourse.slicer.org/t/savenode-returns-false/20207 "2021-10-18T20:28:53Z")

</div>

Hi, I’m saving a node as nrrd file, it returns False. All shown in here: Any ideas? Best

---

## [Note on python dependencies](https://discourse.slicer.org/t/note-on-python-dependencies/20202)

<div class="topic-metadata">

**Author:** [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 1:49pm UTC](https://discourse.slicer.org/t/note-on-python-dependencies/20202 "2021-10-18T13:49:37Z")

</div>

This note is for python extension developers. With the introduction of setuptools==58 in the Slicer pull 5925 all dependencies that rely on 2to3 libraries are totally broken as discussed in several python packages like j…

---

## [Add an actor (vtkCubeAxesActor) to the scene in C++](https://discourse.slicer.org/t/add-an-actor-vtkcubeaxesactor-to-the-scene-in-c/19294)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 12\
**Last updated:** [October 17, 2021, 9:54pm UTC](https://discourse.slicer.org/t/add-an-actor-vtkcubeaxesactor-to-the-scene-in-c/19294 "2021-10-17T21:54:02Z")

</div>

Hi, I have some understanding how to add vtkObject inherited objects as described here via MRML nodes but I can’t find a way to add vtkCubeAxesActor (and in general vtkActor). Though I have found some information on th…

---

## [Proposition to modify \`slicerMacroBuildAppLibrary\`](https://discourse.slicer.org/t/proposition-to-modify-slicermacrobuildapplibrary/20043)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 2\
**Last updated:** [October 16, 2021, 11:03pm UTC](https://discourse.slicer.org/t/proposition-to-modify-slicermacrobuildapplibrary/20043 "2021-10-16T23:03:00Z")

</div>

Hi, I need to link to my SlicerCAT main target qMyApp (that is added via slicerMacroBuildAppLibrary) from external module. From that external module I can see that qMyApp target is defined (it is exported in SlicerTarg…

---

## [Subject hierarchy doesn't show custom scalar volume node](https://discourse.slicer.org/t/subject-hierarchy-doesnt-show-custom-scalar-volume-node/20156)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 9:15am UTC](https://discourse.slicer.org/t/subject-hierarchy-doesnt-show-custom-scalar-volume-node/20156 "2021-10-15T09:15:42Z")

</div>

Hi, I’m making first steps in developing custom nodes. I’ve created vtkMRMLSeis3DStackNode inherited from vtkMRMLSeis3DStackNode. I registered it using scene-\>RegisterNodeClass(vtkSmartPointer\<vtkMRMLSeis3DStackNode\>::…

---

## [How to reset a ctk.ctkComboBox?](https://discourse.slicer.org/t/how-to-reset-a-ctk-ctkcombobox/20164)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 0\
**Last updated:** [October 15, 2021, 3:12am UTC](https://discourse.slicer.org/t/how-to-reset-a-ctk-ctkcombobox/20164 "2021-10-15T03:12:51Z")

</div>

How to reset a ctk.ctkComboBox to index=0? 就是说, 一个ctk.ctkComboBox改变时,另一个 ctk.ctkComboBox恢复到index=0… In other words, when a ctk.ctkComboBox is changed, another ctk.ctkComboBox is restored(or reset) to index=0… @lasso…

---

## [Slicer crashes due to vtkDebugLeaks when clicking on a qMRMLNodeComboBox](https://discourse.slicer.org/t/slicer-crashes-due-to-vtkdebugleaks-when-clicking-on-a-qmrmlnodecombobox/19469)

<div class="topic-metadata">

**Author:** [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Replies:** 12\
**Last updated:** [October 14, 2021, 10:37pm UTC](https://discourse.slicer.org/t/slicer-crashes-due-to-vtkdebugleaks-when-clicking-on-a-qmrmlnodecombobox/19469 "2021-10-14T22:37:31Z")

</div>

Hi all, I’m not sure whether this belongs here or on GitHub. I just installed today’s preview (4.13.0-2021-08-31 r30139 / 62817ae) and then the TorchIO extension using the new, very nice Extensions Manager. I am on Ubu…

---

## [Automatic Pelvic bone segmentation using deep learning](https://discourse.slicer.org/t/automatic-pelvic-bone-segmentation-using-deep-learning/20152)

<div class="topic-metadata">

**Author:** [@AMK](https://discourse.slicer.org/u/AMK)\
**Replies:** 1\
**Last updated:** [October 14, 2021, 4:07pm UTC](https://discourse.slicer.org/t/automatic-pelvic-bone-segmentation-using-deep-learning/20152 "2021-10-14T16:07:32Z")

</div>

Hi, I am trying to segment pelvic region using deep learning. During my research for open-source data, I found a github link to this page. ICT-MIRACLE-lab/CTPelvic1K: Resources of the paper “Deep Learning to Segment Pe…

---

## [Optimize the expansion interface](https://discourse.slicer.org/t/optimize-the-expansion-interface/20147)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 12:59pm UTC](https://discourse.slicer.org/t/optimize-the-expansion-interface/20147 "2021-10-14T12:59:45Z")

</div>

The icons displayed on this interface are very uncoordinated. Can they be optimized? I think the previous interface looks great

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

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