# Development

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

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

**Page:** 103

---

## [Display an image in a separate window](https://discourse.slicer.org/t/display-an-image-in-a-separate-window/8821)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 1\
**Last updated:** [October 17, 2019, 8:39pm UTC](https://discourse.slicer.org/t/display-an-image-in-a-separate-window/8821 "2019-10-17T20:39:34Z")

</div>

Hello. I am trying to display a grayscale OpenCV image in separate window, but no success so far. The code I am executing is as follows and causes Slicer to crash: height, width = image.shape qImg = qt.QImage(np…

---

## [Steps to set up 3D slicer as viewer and annotation tool](https://discourse.slicer.org/t/steps-to-set-up-3d-slicer-as-viewer-and-annotation-tool/8767)

<div class="topic-metadata">

**Author:** [@Jigabytes](https://discourse.slicer.org/u/Jigabytes)\
**Replies:** 3\
**Last updated:** [October 17, 2019, 2:54am UTC](https://discourse.slicer.org/t/steps-to-set-up-3d-slicer-as-viewer-and-annotation-tool/8767 "2019-10-17T02:54:01Z")

</div>

Hi I have requirement where I need to annotate 3D CT scan dicom image slices I would need visualization tool to be able to do so. Is it natural use case for 3D slicer workflow set up? If so can u please provide links tha…

---

## [Tests failed on CircleCI](https://discourse.slicer.org/t/tests-failed-on-circleci/8784)

<div class="topic-metadata">

**Author:** [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Replies:** 4\
**Last updated:** [October 16, 2019, 5:13pm UTC](https://discourse.slicer.org/t/tests-failed-on-circleci/8784 "2019-10-16T17:13:22Z")

</div>

Hello, I’ve posted a pull request with some changes to the Markups module and I noticed that it failed a test on CircleCI. I looked at the details and it looks like the error is related to the DICOM module. Is this some…

---

## [Create cylinder shell shaped segment](https://discourse.slicer.org/t/create-cylinder-shell-shaped-segment/8449)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 19\
**Last updated:** [October 14, 2019, 7:00pm UTC](https://discourse.slicer.org/t/create-cylinder-shell-shaped-segment/8449 "2019-10-14T19:00:46Z")

</div>

Hello, I am using the following code to create a cylinder shell, for segmentation. Running it causes the 3DSlicer to close. Any ideas on why is this happening? segmentationNode = slicer.mrmlScene.AddNewNodeByClass("…

---

## [Call the module through Python and make it complete certain work or modify some of the default values in the module](https://discourse.slicer.org/t/call-the-module-through-python-and-make-it-complete-certain-work-or-modify-some-of-the-default-values-in-the-module/8764)

<div class="topic-metadata">

**Author:** [@yulaomao](https://discourse.slicer.org/u/yulaomao)\
**Replies:** 3\
**Last updated:** [October 13, 2019, 11:17am UTC](https://discourse.slicer.org/t/call-the-module-through-python-and-make-it-complete-certain-work-or-modify-some-of-the-default-values-in-the-module/8764 "2019-10-13T11:17:46Z")

</div>

Hi, I want to call the module through Python and make it complete certain work or modify some of the default values in the module. For example, in “volume rendering” module, “preset” is set to "CT - bones ".

---

## [Update a line by adding some points](https://discourse.slicer.org/t/update-a-line-by-adding-some-points/8754)

<div class="topic-metadata">

**Author:** [@danial](https://discourse.slicer.org/u/danial)\
**Replies:** 3\
**Last updated:** [October 12, 2019, 4:02pm UTC](https://discourse.slicer.org/t/update-a-line-by-adding-some-points/8754 "2019-10-12T16:02:30Z")

</div>

Hello, I want to enlarge a line by adding the points in each iteration, i did it like this : vtkSmartPointer\<vtkPoints\> points = realTimeInsertion-\>getPoints(); vtkSmartPointer\<vtkPolyData\> poly = vtkSmartPoint…

---

## [What is the best way to iterate through DICOM image data with RTSTRUCT contours in a loadable module?](https://discourse.slicer.org/t/what-is-the-best-way-to-iterate-through-dicom-image-data-with-rtstruct-contours-in-a-loadable-module/8743)

<div class="topic-metadata">

**Author:** [@Mik](https://discourse.slicer.org/u/Mik)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 11:44am UTC](https://discourse.slicer.org/t/what-is-the-best-way-to-iterate-through-dicom-image-data-with-rtstruct-contours-in-a-loadable-module/8743 "2019-10-11T11:44:29Z")

</div>

Dear developers, I have CT DICOM files and RTSTRUCT file which contains contours of the organs. SlicerRT module loads series and segmentation without errors, and i want to check what segment each pixel belongs to. Thi…

---

## [Is it possible to view more than two image volumes at the same time in slice viewers?](https://discourse.slicer.org/t/is-it-possible-to-view-more-than-two-image-volumes-at-the-same-time-in-slice-viewers/8738)

<div class="topic-metadata">

**Author:** [@Jason\_West](https://discourse.slicer.org/u/Jason_West)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 12:10am UTC](https://discourse.slicer.org/t/is-it-possible-to-view-more-than-two-image-volumes-at-the-same-time-in-slice-viewers/8738 "2019-10-11T00:10:00Z")

</div>

Hello, I am new here so I would first like to express my gratitude to all of you that are putting in such hard work to make this awesome tool available :slight\_smile: So I know how to set the foreground and background …

---

## [Build machine failing when local clean build doesn't](https://discourse.slicer.org/t/build-machine-failing-when-local-clean-build-doesnt/8721)

<div class="topic-metadata">

**Author:** [@adamrankin](https://discourse.slicer.org/u/adamrankin)\
**Replies:** 4\
**Last updated:** [October 10, 2019, 1:38pm UTC](https://discourse.slicer.org/t/build-machine-failing-when-local-clean-build-doesnt/8721 "2019-10-10T13:38:13Z")

</div>

@jcfr http://slicer.cdash.org/viewBuildError.php?buildid=1716023 I did a clean build of Slicer and SlicerOpenCV yesterday and it passed, but the build machine is failing. How can I go about diagnosing?

---

## [vtkLookUpTable. Bad table range: \[0, -1\]](https://discourse.slicer.org/t/vtklookuptable-bad-table-range-0-1/8718)

<div class="topic-metadata">

**Author:** [@danial](https://discourse.slicer.org/u/danial)\
**Replies:** 2\
**Last updated:** [October 9, 2019, 3:57pm UTC](https://discourse.slicer.org/t/vtklookuptable-bad-table-range-0-1/8718 "2019-10-09T15:57:15Z")

</div>

Operating system: macOS 10.14.6 Slicer version: 4.10.2 Hello, I used a vtkLookUpTable to color a vtkPolyData like this : vtkSmartPointer\<vtkPolyData\> surface = m\_optimizations.at(i).m\_map-\>getShape(); // set the lo…

---

## [Switch from module using c++](https://discourse.slicer.org/t/switch-from-module-using-c/8121)

<div class="topic-metadata">

**Author:** [@rbahegne](https://discourse.slicer.org/u/rbahegne)\
**Replies:** 6\
**Last updated:** [October 8, 2019, 2:18pm UTC](https://discourse.slicer.org/t/switch-from-module-using-c/8121 "2019-10-08T14:18:09Z")

</div>

Hello, Seems simple but i did not find how to switch module programatically. Let’s say i receive a signal containing data, then i create a node, fill it correctly. How can switch automatically to the module “data” ? C…

---

## [Modify a vtkMRMLNode via another thread](https://discourse.slicer.org/t/modify-a-vtkmrmlnode-via-another-thread/8688)

<div class="topic-metadata">

**Author:** [@danial](https://discourse.slicer.org/u/danial)\
**Replies:** 1\
**Last updated:** [October 6, 2019, 6:33pm UTC](https://discourse.slicer.org/t/modify-a-vtkmrmlnode-via-another-thread/8688 "2019-10-06T18:33:19Z")

</div>

Operating system: macOS 10.14.6 Slicer version: 4.10.2 I want to simulate respiratory motion on another thread via QTimer. I did it like this : connect(processTimer, &QTimer::timeout, \[=\]() {breathingProcess();}); vo…

---

## [Transform a vtkMRMLModelNode](https://discourse.slicer.org/t/transform-a-vtkmrmlmodelnode/8684)

<div class="topic-metadata">

**Author:** [@danial](https://discourse.slicer.org/u/danial)\
**Replies:** 2\
**Last updated:** [October 5, 2019, 5:37pm UTC](https://discourse.slicer.org/t/transform-a-vtkmrmlmodelnode/8684 "2019-10-05T17:37:10Z")

</div>

Operating system: macOS 10.14.6 Slicer version: 4.10.2 Hello, I want to set and apply a transformation on a vtkMRMLModelNode by its polyData. I did it like this : \> vtkSmartPointer\<vtkPolyData\> cylinder = vtkMRMLMode…

---

## [Create a vtkMRMLModelNode from a polyData](https://discourse.slicer.org/t/create-a-vtkmrmlmodelnode-from-a-polydata/8679)

<div class="topic-metadata">

**Author:** [@danial](https://discourse.slicer.org/u/danial)\
**Replies:** 2\
**Last updated:** [October 5, 2019, 12:43pm UTC](https://discourse.slicer.org/t/create-a-vtkmrmlmodelnode-from-a-polydata/8679 "2019-10-05T12:43:14Z")

</div>

Operating system: macOS 10.146 Slicer version: 4.10.2 Hello, I want to create a vtkMRMLModelNode and display it in slicer, i did it like this : vtkNew\<vtkMRMLModelNode\> mesh; mesh-\>SetAndObservePolyData(poly); mesh-\>C…

---

## [Segmentation (Extract Skin Py)](https://discourse.slicer.org/t/segmentation-extract-skin-py/7623)

<div class="topic-metadata">

**Author:** [@ThomPote](https://discourse.slicer.org/u/ThomPote)\
**Replies:** 5\
**Last updated:** [October 5, 2019, 12:31pm UTC](https://discourse.slicer.org/t/segmentation-extract-skin-py/7623 "2019-10-05T12:31:51Z")

</div>

Hi, Thanks @lassoan for your previously answers I’m always in troubles with ExtractSkin I tryed to import my own CT scan but it doesn’t work as your example datas Further I will need to load DICOM. masterVolumeNode…

---

## [Images registration](https://discourse.slicer.org/t/images-registration/8672)

<div class="topic-metadata">

**Author:** [@zahiraabdala](https://discourse.slicer.org/u/zahiraabdala)\
**Replies:** 2\
**Last updated:** [October 4, 2019, 4:19pm UTC](https://discourse.slicer.org/t/images-registration/8672 "2019-10-04T16:19:00Z")

</div>

Hi all, i´m traing to register two images but there have different sizes. An image has a size of 256x256x256 and the other one has 256x256x89. Someone can help me? thank a lot

---

## [Resize window to fit data](https://discourse.slicer.org/t/resize-window-to-fit-data/8563)

<div class="topic-metadata">

**Author:** [@rbahegne](https://discourse.slicer.org/u/rbahegne)\
**Replies:** 7\
**Last updated:** [October 4, 2019, 9:00am UTC](https://discourse.slicer.org/t/resize-window-to-fit-data/8563 "2019-10-04T09:00:41Z")

</div>

Hello, I’m searching for a function which i think exist to resize window to fit correctly the image resolution. The function CenterVolume just move the origin but do not fit to the size the window to the data. It’s aut…

---

## [How to get a vertical side bar in QT designer view for Slicer](https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 5\
**Last updated:** [October 4, 2019, 4:39am UTC](https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558 "2019-10-04T04:39:51Z")

</div>

How to get the vertical scroll bar in the designers view for slicer. Regards, Saima Safdar

---

## [Set Orientation at vtkCylinderSource](https://discourse.slicer.org/t/set-orientation-at-vtkcylindersource/8663)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.slicer.org/u/siaeleni)\
**Replies:** 3\
**Last updated:** [October 3, 2019, 7:25pm UTC](https://discourse.slicer.org/t/set-orientation-at-vtkcylindersource/8663 "2019-10-03T19:25:28Z")

</div>

Hello, I would like to Set Orientation/Direction to a vtkCylinderSource that I create in Slicer in python. From vtk documentation I realized that I have to set the orientation through vtkActor, but how can I display it…

---

## [Infinite Mouse Scroll](https://discourse.slicer.org/t/infinite-mouse-scroll/8618)

<div class="topic-metadata">

**Author:** [@Amine](https://discourse.slicer.org/u/Amine)\
**Replies:** 1\
**Last updated:** [October 2, 2019, 1:45am UTC](https://discourse.slicer.org/t/infinite-mouse-scroll/8618 "2019-10-02T01:45:24Z")

</div>

Hi, here is a simple AutoHotKey script to use speed scrolling on a regular mouse wheel if the lateral buttons are pressed before scrolling and then stop when a regular scroll is registred, i found this feature quite int…

---

## [Minimum Slicer installation for fast launch](https://discourse.slicer.org/t/minimum-slicer-installation-for-fast-launch/8642)

<div class="topic-metadata">

**Author:** [@Joshua\_Broder](https://discourse.slicer.org/u/Joshua_Broder)\
**Replies:** 1\
**Last updated:** [October 2, 2019, 12:44am UTC](https://discourse.slicer.org/t/minimum-slicer-installation-for-fast-launch/8642 "2019-10-02T00:44:32Z")

</div>

I’d like to optimize Slicer to launch and display a volume as quickly as possible. The minimum functions I need are the intersecting multiplanar view, each slice view (red/green/yellow), and measurement calipers. Refor…

---

## [Slicer does not show segmentation if multiple segmentations exists](https://discourse.slicer.org/t/slicer-does-not-show-segmentation-if-multiple-segmentations-exists/8577)

<div class="topic-metadata">

**Author:** [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Replies:** 6\
**Last updated:** [October 1, 2019, 2:03pm UTC](https://discourse.slicer.org/t/slicer-does-not-show-segmentation-if-multiple-segmentations-exists/8577 "2019-10-01T14:03:59Z")

</div>

I have several volumes in a scene, each one with an own segmentation. When I try to visualize the corresponding segmentation it is not shown at all, see this picture For reference, I created the different segmentatio…

---

## [Successive loading of large data sets](https://discourse.slicer.org/t/successive-loading-of-large-data-sets/8603)

<div class="topic-metadata">

**Author:** [@Michael\_Ef](https://discourse.slicer.org/u/Michael_Ef)\
**Replies:** 3\
**Last updated:** [September 29, 2019, 4:54pm UTC](https://discourse.slicer.org/t/successive-loading-of-large-data-sets/8603 "2019-09-29T16:54:01Z")

</div>

Dear all, I’d like to render a quite big stack of histological images. Due to the size I am not even able to convert the vector volume to a scalar volume in full resolution (memory allocation issues on a machine with 32…

---

## [I want to connect the slicer to the robotic arm via NDI Polaris Vicra](https://discourse.slicer.org/t/i-want-to-connect-the-slicer-to-the-robotic-arm-via-ndi-polaris-vicra/8523)

<div class="topic-metadata">

**Author:** [@Zhao\_Su](https://discourse.slicer.org/u/Zhao_Su)\
**Replies:** 2\
**Last updated:** [September 26, 2019, 2:37pm UTC](https://discourse.slicer.org/t/i-want-to-connect-the-slicer-to-the-robotic-arm-via-ndi-polaris-vicra/8523 "2019-09-26T14:37:33Z")

</div>

But the robotic arm only supports the TCP communication protocol. Ndi’s communication interface is API. Is there any good solution？ Thanks a lot！

---

## [Loading a color table in c++](https://discourse.slicer.org/t/loading-a-color-table-in-c/8580)

<div class="topic-metadata">

**Author:** [@rbahegne](https://discourse.slicer.org/u/rbahegne)\
**Replies:** 1\
**Last updated:** [September 26, 2019, 1:19pm UTC](https://discourse.slicer.org/t/loading-a-color-table-in-c/8580 "2019-09-26T13:19:30Z")

</div>

Hello, it seems rather simple but i did not manage to manually load a color table in c++. I would like also if possible to set manually the min and max. Thanks

---

## [Texturizing model](https://discourse.slicer.org/t/texturizing-model/8559)

<div class="topic-metadata">

**Author:** [@rprueckl](https://discourse.slicer.org/u/rprueckl)\
**Replies:** 2\
**Last updated:** [September 26, 2019, 7:00am UTC](https://discourse.slicer.org/t/texturizing-model/8559 "2019-09-26T07:00:08Z")

</div>

Hi, I want to texturize a 3d model, but do not want to install the SlicerIGT extension. So, I tried to implement the application of the texture similar to this: My code looks like this: // assign as texture to mode…

---

## [Shift + mouse wheel does not change brush size](https://discourse.slicer.org/t/shift-mouse-wheel-does-not-change-brush-size/8539)

<div class="topic-metadata">

**Author:** [@Ash\_Alarfaj](https://discourse.slicer.org/u/Ash_Alarfaj)\
**Replies:** 5\
**Last updated:** [September 26, 2019, 12:49am UTC](https://discourse.slicer.org/t/shift-mouse-wheel-does-not-change-brush-size/8539 "2019-09-26T00:49:09Z")

</div>

Problem report for Slicer 4.10.2 macosx-amd64: \[please describe expected (( if I press shift + mouse up/down the brush size change ))and actual behavior ((this shortcut did not work)) \]

---

## [showViewControllers(False) removes annotations](https://discourse.slicer.org/t/showviewcontrollers-false-removes-annotations/8547)

<div class="topic-metadata">

**Author:** [@aiden.zhu](https://discourse.slicer.org/u/aiden.zhu)\
**Replies:** 4\
**Last updated:** [September 24, 2019, 9:29pm UTC](https://discourse.slicer.org/t/showviewcontrollers-false-removes-annotations/8547 "2019-09-24T21:29:39Z")

</div>

Operating system: windows Slicer version: 3D Slcier 4.11.0-2019-06-23 Expected behavior: While I try to use cap.showViewControllers(False) via the instruction here: https://www.slicer.org/wiki/Documentation/Nightly/S…

---

## [Loadable module in background](https://discourse.slicer.org/t/loadable-module-in-background/8544)

<div class="topic-metadata">

**Author:** [@fpsiddiqui91](https://discourse.slicer.org/u/fpsiddiqui91)\
**Replies:** 9\
**Last updated:** [September 24, 2019, 5:36pm UTC](https://discourse.slicer.org/t/loadable-module-in-background/8544 "2019-09-24T17:36:48Z")

</div>

Hello Developers, As you might have already noticed, I have been trying all the development options in Slicer. I am now working on using Loadable module for heavy computations while the remaining part of my code will b…

---

## [Automatically create sequence](https://discourse.slicer.org/t/automatically-create-sequence/8503)

<div class="topic-metadata">

**Author:** [@rbahegne](https://discourse.slicer.org/u/rbahegne)\
**Replies:** 10\
**Last updated:** [September 24, 2019, 1:26pm UTC](https://discourse.slicer.org/t/automatically-create-sequence/8503 "2019-09-24T13:26:44Z")

</div>

Hello, I’ve installed the sequence extension and its work fine. Currently i’m working on a module to receive via a specific siemens API, MRI images (dicom format) and displaying them in real time. 1) First question : I…

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

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