# Development

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

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

**Page:** 72

---

## [How to handle the resize event of mainwindow](https://discourse.slicer.org/t/how-to-handle-the-resize-event-of-mainwindow/19072)

<div class="topic-metadata">

**Author:** [@wycstar](https://discourse.slicer.org/u/wycstar)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 11:09am UTC](https://discourse.slicer.org/t/how-to-handle-the-resize-event-of-mainwindow/19072 "2021-08-05T11:09:03Z")

</div>

hi all, i added a new widget to the top toolbar of the slicer mainwindow, now i wish it have a maximum width equal to the width of the main window, no matter how i resize the mainwindow. what i want to do is handle the r…

---

## [How to close Data Probe when starting Slicer?](https://discourse.slicer.org/t/how-to-close-data-probe-when-starting-slicer/19066)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 2:06am UTC](https://discourse.slicer.org/t/how-to-close-data-probe-when-starting-slicer/19066 "2021-08-05T02:06:03Z")

</div>

Dear experts, I have a question , this option is always expanded every time I start Slicer. In fact, I don’t use this option often, so I need to close it manually every time. Is there a way to change the unexpanded st…

---

## [Automate printing segmentation volumes?](https://discourse.slicer.org/t/automate-printing-segmentation-volumes/19043)

<div class="topic-metadata">

**Author:** [@J1234](https://discourse.slicer.org/u/J1234)\
**Replies:** 4\
**Last updated:** [August 4, 2021, 4:33am UTC](https://discourse.slicer.org/t/automate-printing-segmentation-volumes/19043 "2021-08-04T04:33:18Z")

</div>

Sorry if this is painfully obvious or already covered elsewhere - I’m fairly new to both python programming and 3D Slicer. I’ve been reading through the docs all morning but so far they’ve been more confusing than helpfu…

---

## [Command Line Interface (CLI) much slower compared to starting in separate python environment](https://discourse.slicer.org/t/command-line-interface-cli-much-slower-compared-to-starting-in-separate-python-environment/19042)

<div class="topic-metadata">

**Author:** [@mcfly3001](https://discourse.slicer.org/u/mcfly3001)\
**Replies:** 5\
**Last updated:** [August 3, 2021, 6:14pm UTC](https://discourse.slicer.org/t/command-line-interface-cli-much-slower-compared-to-starting-in-separate-python-environment/19042 "2021-08-03T18:14:38Z")

</div>

Hi, I created a small script which generates a transform matrix and publishes the matrix via OpenIGTLink (pyigtlink). This script I want to start together with a Slicer Guidelet application. The application will connect…

---

## [Create the SPECT segmentation using fwhm method and gradientweight function (Matlab)](https://discourse.slicer.org/t/create-the-spect-segmentation-using-fwhm-method-and-gradientweight-function-matlab/18936)

<div class="topic-metadata">

**Author:** [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Replies:** 1\
**Last updated:** [August 3, 2021, 5:53pm UTC](https://discourse.slicer.org/t/create-the-spect-segmentation-using-fwhm-method-and-gradientweight-function-matlab/18936 "2021-08-03T17:53:42Z")

</div>

Hi all, Anyone can help me to develop one method for SPECT segmentation? First, we have to find the distance boundary of the volume using fwhm method. Second, we use gradientweight function (Matlab) to calculate the V…

---

## [Python: Programmatically set the Dimensions for ROI](https://discourse.slicer.org/t/python-programmatically-set-the-dimensions-for-roi/18817)

<div class="topic-metadata">

**Author:** [@Panda](https://discourse.slicer.org/u/Panda)\
**Replies:** 1\
**Last updated:** [August 3, 2021, 5:42pm UTC](https://discourse.slicer.org/t/python-programmatically-set-the-dimensions-for-roi/18817 "2021-08-03T17:42:13Z")

</div>

Hello, I am trying to write a script to automate the cropping of volume for quite a few CT scans using Python. Thanks to the previous questions and the documentation, I have been able to figure out pretty much the whole…

---

## [What are the underlying methods used in Segment Editor?](https://discourse.slicer.org/t/what-are-the-underlying-methods-used-in-segment-editor/18871)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 6\
**Last updated:** [August 3, 2021, 12:41pm UTC](https://discourse.slicer.org/t/what-are-the-underlying-methods-used-in-segment-editor/18871 "2021-08-03T12:41:41Z")

</div>

Hi Andras, I need to know what method is used to convert a volume to labelmap using createlabelvolumefromvolume. What is the method behind it. Does it use thresholding? can I get more details on this how this function c…

---

## [How to only expand one QFormLayout of the CollapsibleButton which is operating?](https://discourse.slicer.org/t/how-to-only-expand-one-qformlayout-of-the-collapsiblebutton-which-is-operating/19022)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 3\
**Last updated:** [August 3, 2021, 1:11am UTC](https://discourse.slicer.org/t/how-to-only-expand-one-qformlayout-of-the-collapsiblebutton-which-is-operating/19022 "2021-08-03T01:11:55Z")

</div>

How to only expand one QFormLayout of the CollapsibleButton which is operating?

---

## [Stable public PACS test server?](https://discourse.slicer.org/t/stable-public-pacs-test-server/19026)

<div class="topic-metadata">

**Author:** [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Replies:** 6\
**Last updated:** [August 2, 2021, 7:02pm UTC](https://discourse.slicer.org/t/stable-public-pacs-test-server/19026 "2021-08-02T19:02:15Z")

</div>

Can anyone recommend a stable public PACS test server with a permanent CT or MRI (for reading) included? Thank you.

---

## [SlicerPACSConnector available for testing](https://discourse.slicer.org/t/slicerpacsconnector-available-for-testing/19013)

<div class="topic-metadata">

**Author:** [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Replies:** 3\
**Last updated:** [August 2, 2021, 1:12pm UTC](https://discourse.slicer.org/t/slicerpacsconnector-available-for-testing/19013 "2021-08-02T13:12:24Z")

</div>

Hi, I wrote a PACS connector extension during the last days from scripts I used during the last weeks. This improves the usability of 3D Slicer together with a local (hospital) or remote PACS. The PACS Connector allows…

---

## [‘SetSpacing’: is not a member of ‘itk::VesselTubeSpatialObject\<2\>’](https://discourse.slicer.org/t/setspacing-is-not-a-member-of-itk-vesseltubespatialobject-2/19020)

<div class="topic-metadata">

**Author:** [@Mahesh\_Timmanagoudar](https://discourse.slicer.org/u/Mahesh_Timmanagoudar)\
**Replies:** 1\
**Last updated:** [August 2, 2021, 11:59am UTC](https://discourse.slicer.org/t/setspacing-is-not-a-member-of-itk-vesseltubespatialobject-2/19020 "2021-08-02T11:59:01Z")

</div>

Error C2039 ‘SetSpacing’: is not a member of ‘itk::VesselTubeSpatialObject\<2\>’ \[D:\\W4-rel\\S-bld\\Slicer-build\\E\\TubeTK\\Applications\\SegmentTubeUsingMinimalPath\\SegmentTubeUsingMinimalPathLib.vcxproj\] Slicer D:\\W4\\S-rel\\S-…

---

## [QT+MRML develop](https://discourse.slicer.org/t/qt-mrml-develop/18976)

<div class="topic-metadata">

**Author:** [@yuguoxin](https://discourse.slicer.org/u/yuguoxin)\
**Replies:** 1\
**Last updated:** [July 31, 2021, 10:39pm UTC](https://discourse.slicer.org/t/qt-mrml-develop/18976 "2021-07-31T22:39:27Z")

</div>

main.cpp mainwindow.cpp when running the exe, exception happen can you tell me why?

---

## [Creating Extension for Phantom Touch from 3D systems to manipulate plane in Slicer3D](https://discourse.slicer.org/t/creating-extension-for-phantom-touch-from-3d-systems-to-manipulate-plane-in-slicer3d/18944)

<div class="topic-metadata">

**Author:** [@ajitcpdm](https://discourse.slicer.org/u/ajitcpdm)\
**Replies:** 3\
**Last updated:** [July 31, 2021, 10:26pm UTC](https://discourse.slicer.org/t/creating-extension-for-phantom-touch-from-3d-systems-to-manipulate-plane-in-slicer3d/18944 "2021-07-31T22:26:03Z")

</div>

Guys … please suggest me steps to start with! Integration or creating API interface to work with Phantom Touch!

---

## [Planned intermittent outages for CDash instances today Friday, 2021/7/30 around noon](https://discourse.slicer.org/t/planned-intermittent-outages-for-cdash-instances-today-friday-2021-7-30-around-noon/18995)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 0\
**Last updated:** [July 30, 2021, 3:51pm UTC](https://discourse.slicer.org/t/planned-intermittent-outages-for-cdash-instances-today-friday-2021-7-30-around-noon/18995 "2021-07-30T15:51:02Z")

</div>

URL https://slicer.cdash.org/ What There may be brief intermittent outages while packages are upgraded and when the system reboots Time July 30th, 2021 Time ~12pm ET Duration ~ 1hr Maintenance page We…

---

## [Slicer crashes on exporting segmentation to binary labelmap volume](https://discourse.slicer.org/t/slicer-crashes-on-exporting-segmentation-to-binary-labelmap-volume/18938)

<div class="topic-metadata">

**Author:** [@Panda](https://discourse.slicer.org/u/Panda)\
**Replies:** 2\
**Last updated:** [July 28, 2021, 8:15am UTC](https://discourse.slicer.org/t/slicer-crashes-on-exporting-segmentation-to-binary-labelmap-volume/18938 "2021-07-28T08:15:08Z")

</div>

Hello, attached is a screenshot of the report- I have tried countless things - however not sure why 3d slicer is crashing when I try to export a segmentation to a label map volume. I was closely following this example b…

---

## [Additional code with functions](https://discourse.slicer.org/t/additional-code-with-functions/18951)

<div class="topic-metadata">

**Author:** [@rohan\_n](https://discourse.slicer.org/u/rohan_n)\
**Replies:** 1\
**Last updated:** [July 27, 2021, 7:05pm UTC](https://discourse.slicer.org/t/additional-code-with-functions/18951 "2021-07-27T19:05:52Z")

</div>

Hello, I want to submit my extension to the Extension Manager this week. As you can see in the attached image, each module folder has the main .py file that has same name as the module, but also several other .py fi…

---

## [Is there a way to change the background of the 3D view to the dynamic content of the computer camera?](https://discourse.slicer.org/t/is-there-a-way-to-change-the-background-of-the-3d-view-to-the-dynamic-content-of-the-computer-camera/18926)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [July 26, 2021, 2:22pm UTC](https://discourse.slicer.org/t/is-there-a-way-to-change-the-background-of-the-3d-view-to-the-dynamic-content-of-the-computer-camera/18926 "2021-07-26T14:22:03Z")

</div>

I want to use slicer to implement AR technology, which means I need to set the background of the 3D model to the real content captured by the computer camera. Is there a way to change the background of the 3D view to …

---

## [CMake Error Generator Visual Studio 16 2019 does not support variabl CMAKE\_DEFAULT\_BUILD\_TYPE but it has been specified](https://discourse.slicer.org/t/cmake-error-generator-visual-studio-16-2019-does-not-support-variabl-cmake-default-build-type-but-it-has-been-specified/18873)

<div class="topic-metadata">

**Author:** [@Ciparnieks](https://discourse.slicer.org/u/Ciparnieks)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 1:27pm UTC](https://discourse.slicer.org/t/cmake-error-generator-visual-studio-16-2019-does-not-support-variabl-cmake-default-build-type-but-it-has-been-specified/18873 "2021-07-22T13:27:22Z")

</div>

Hello, When i in Cmake GUI pushing the Generate i have the error CMake Error Generator Visual Studio 16 2019 does not support variabl CMAKE\_DEFAULT\_BUILD\_TYPE but it has been specified. How to solve this problem? …

---

## [CreateLabelVolumeFromVolume fails on Linux but not on Windows 10](https://discourse.slicer.org/t/createlabelvolumefromvolume-fails-on-linux-but-not-on-windows-10/17890)

<div class="topic-metadata">

**Author:** [@geoffkfleee](https://discourse.slicer.org/u/geoffkfleee)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 12:39am UTC](https://discourse.slicer.org/t/createlabelvolumefromvolume-fails-on-linux-but-not-on-windows-10/17890 "2021-06-01T00:39:53Z")

</div>

I am currently running this function in my code in my Python script: slicer.vtkSlicerVolumesLogic().CreateLabelVolumeFromVolume(slicer.mrmlScene, labelVolumeNode, loadedScalarNode) On Windows 10 it properly works, and …

---

## [How to change color of fudicial and line?](https://discourse.slicer.org/t/how-to-change-color-of-fudicial-and-line/18849)

<div class="topic-metadata">

**Author:** [@Guillaume](https://discourse.slicer.org/u/Guillaume)\
**Replies:** 4\
**Last updated:** [July 21, 2021, 1:18pm UTC](https://discourse.slicer.org/t/how-to-change-color-of-fudicial-and-line/18849 "2021-07-21T13:18:21Z")

</div>

Hello, I still have a problem … Well I need to change the color of the fudicial, I saw that it was possible but I do not know why, I am blocking with … I have already tried something but without success. viridis = …

---

## [Write python bindings](https://discourse.slicer.org/t/write-python-bindings/18066)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 22\
**Last updated:** [July 20, 2021, 7:35pm UTC](https://discourse.slicer.org/t/write-python-bindings/18066 "2021-07-20T19:35:37Z")

</div>

Hi, I have some Qt derived classes (widgets) written in C++ and used in SlicerCAT and I would like to bind them in python. I have some experience of working with pybind11 and I do use it in my libraries that are not co…

---

## [How to draw a simple line with vtkMRMLMarkupsLineNode?](https://discourse.slicer.org/t/how-to-draw-a-simple-line-with-vtkmrmlmarkupslinenode/18820)

<div class="topic-metadata">

**Author:** [@Guillaume](https://discourse.slicer.org/u/Guillaume)\
**Replies:** 5\
**Last updated:** [July 20, 2021, 3:19pm UTC](https://discourse.slicer.org/t/how-to-draw-a-simple-line-with-vtkmrmlmarkupslinenode/18820 "2021-07-20T15:19:33Z")

</div>

Hello, I have not found how to make a simple line going from point P1 to point P2. with vtkMRMLMarkupsLineNode … I’m still on Slicer 4.11. Could you help me? Thank you !!

---

## [Build failure of certain extensions on Mac factory due to missing svn](https://discourse.slicer.org/t/build-failure-of-certain-extensions-on-mac-factory-due-to-missing-svn/18813)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 3\
**Last updated:** [July 20, 2021, 2:18pm UTC](https://discourse.slicer.org/t/build-failure-of-certain-extensions-on-mac-factory-due-to-missing-svn/18813 "2021-07-20T14:18:19Z")

</div>

It seems that certain extensions reliably fail to build on Mac due to missing svn command. For example SlicerRT or SlicerHeart: https://slicer.cdash.org/viewBuildError.php?buildid=2323746 https://slicer.cdash.org/viewB…

---

## [Convert a segment to np array](https://discourse.slicer.org/t/convert-a-segment-to-np-array/18797)

<div class="topic-metadata">

**Author:** [@Guillaume](https://discourse.slicer.org/u/Guillaume)\
**Replies:** 9\
**Last updated:** [July 20, 2021, 11:53am UTC](https://discourse.slicer.org/t/convert-a-segment-to-np-array/18797 "2021-07-20T11:53:55Z")

</div>

Hello, I am doing an extension with Slicer 14.11 on windows in Python. So, I try to import the segmentation directly with. It gets stuck at the time of import (for the selection everything works) and convertion. I used …

---

## [Volume rendering and non-linear transform](https://discourse.slicer.org/t/volume-rendering-and-non-linear-transform/18798)

<div class="topic-metadata">

**Author:** [@riep](https://discourse.slicer.org/u/riep)\
**Replies:** 2\
**Last updated:** [July 19, 2021, 3:42pm UTC](https://discourse.slicer.org/t/volume-rendering-and-non-linear-transform/18798 "2021-07-19T15:42:55Z")

</div>

Hi everyone, We have some interests to make volume rendering of volume bound to a non-linear transform. We know that, for now, Slicer does not handle this case. Do you know if this feature has been asked in the past? I…

---

## [Creating a new segment editor widget causes strange behavior in segmentation settings](https://discourse.slicer.org/t/creating-a-new-segment-editor-widget-causes-strange-behavior-in-segmentation-settings/18799)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 1\
**Last updated:** [July 19, 2021, 2:58pm UTC](https://discourse.slicer.org/t/creating-a-new-segment-editor-widget-causes-strange-behavior-in-segmentation-settings/18799 "2021-07-19T14:58:23Z")

</div>

Creating a new segmentation and applying works as expected (it remains visible), but if you type in the python console: slicer.modules.segmenteditor.createNewWidgetRepresentation() then, creating a new segmentation and…

---

## [Python called qSlicerSubjectHierarchyParseLocalDataPlugin function](https://discourse.slicer.org/t/python-called-qslicersubjecthierarchyparselocaldataplugin-function/18600)

<div class="topic-metadata">

**Author:** [@StephenLeePeng](https://discourse.slicer.org/u/StephenLeePeng)\
**Replies:** 8\
**Last updated:** [July 18, 2021, 12:58pm UTC](https://discourse.slicer.org/t/python-called-qslicersubjecthierarchyparselocaldataplugin-function/18600 "2021-07-18T12:58:55Z")

</div>

Operating system: Ubuntu 18.04 Slicer version: 4.13.0 - self build. Expected behavior: When I load a directory contains subdirectory in the Slicer. The directory contains some .stl files. And after load, these stl mod…

---

## [How to set initial size of the main window?](https://discourse.slicer.org/t/how-to-set-initial-size-of-the-main-window/16991)

<div class="topic-metadata">

**Author:** [@spycolyf](https://discourse.slicer.org/u/spycolyf)\
**Replies:** 20\
**Last updated:** [July 18, 2021, 3:02am UTC](https://discourse.slicer.org/t/how-to-set-initial-size-of-the-main-window/16991 "2021-07-18T03:02:58Z")

</div>

@pieper @lassoan @jcfr How do I set the initial size and location of the main SlicerQREADS window. A physician complained it comes up too small and I agreed. Any solutions? Thanks

---

## [Third party library works slower inside Slicer's Python shell - why? how to do performance profiling?](https://discourse.slicer.org/t/third-party-library-works-slower-inside-slicers-python-shell-why-how-to-do-performance-profiling/18742)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 2\
**Last updated:** [July 15, 2021, 10:24am UTC](https://discourse.slicer.org/t/third-party-library-works-slower-inside-slicers-python-shell-why-how-to-do-performance-profiling/18742 "2021-07-15T10:24:24Z")

</div>

Hi, I’m trying to use python package lasio. It is geological library and its main purpose is to read textual files of format .las After installing it (pip install lasio) I can use it as follows: import lasio las = las…

---

## [2D visualization in Slicer (Spectrogram, contour plot)](https://discourse.slicer.org/t/2d-visualization-in-slicer-spectrogram-contour-plot/18727)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 4\
**Last updated:** [July 14, 2021, 11:41pm UTC](https://discourse.slicer.org/t/2d-visualization-in-slicer-spectrogram-contour-plot/18727 "2021-07-14T23:41:02Z")

</div>

Hi, I’m searching for information about 2D visualization in Slicer. For example I can see this doc page but I can’t understand what library is used for 2D plotting? Is it VTK? In near future I have to decide what libra…

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

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