# Development

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

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

**Page:** 47

---

## [How does 3Dslicer compile offline locally](https://discourse.slicer.org/t/how-does-3dslicer-compile-offline-locally/25849)

<div class="topic-metadata">

**Author:** [@lhf](https://discourse.slicer.org/u/lhf)\
**Replies:** 7\
**Last updated:** [October 24, 2022, 4:05am UTC](https://discourse.slicer.org/t/how-does-3dslicer-compile-offline-locally/25849 "2022-10-24T04:05:48Z")

</div>

Operating system: Slicer version: Expected behavior: Actual behavior:

---

## [sitkUtils.PullVolumeFromSlicer does not create sitk::Image in Slicer 5.1](https://discourse.slicer.org/t/sitkutils-pullvolumefromslicer-does-not-create-sitk-image-in-slicer-5-1/25669)

<div class="topic-metadata">

**Author:** [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Replies:** 7\
**Last updated:** [October 22, 2022, 3:12pm UTC](https://discourse.slicer.org/t/sitkutils-pullvolumefromslicer-does-not-create-sitk-image-in-slicer-5-1/25669 "2022-10-22T15:12:16Z")

</div>

Using sitkUtils.PullVolumeFromSlicer from lungmask import mask import SimpleITK as sitk import sitkUtils self.showStatusMessage(' Creating lungs with AI .…

---

## [I need a python code to get center line of segmentations](https://discourse.slicer.org/t/i-need-a-python-code-to-get-center-line-of-segmentations/25779)

<div class="topic-metadata">

**Author:** [@hbr](https://discourse.slicer.org/u/hbr)\
**Replies:** 11\
**Last updated:** [October 22, 2022, 4:44am UTC](https://discourse.slicer.org/t/i-need-a-python-code-to-get-center-line-of-segmentations/25779 "2022-10-22T04:44:57Z")

</div>

i wanna write a code to get center of seg and dont know how do it. please help

---

## [Launching slicer executable from command line](https://discourse.slicer.org/t/launching-slicer-executable-from-command-line/25824)

<div class="topic-metadata">

**Author:** [@Shravan\_Seshadri](https://discourse.slicer.org/u/Shravan_Seshadri)\
**Replies:** 1\
**Last updated:** [October 21, 2022, 12:35pm UTC](https://discourse.slicer.org/t/launching-slicer-executable-from-command-line/25824 "2022-10-21T12:35:32Z")

</div>

I am trying to launch the 3d slicer from a linux command line to install monailabel plugin. I am remotely ssh’sd into a linux machine- and am serving monailabel server to localhost but when i run the slicer executable no…

---

## [How to hide the main window until my module is loaded](https://discourse.slicer.org/t/how-to-hide-the-main-window-until-my-module-is-loaded/25810)

<div class="topic-metadata">

**Author:** [@Corain](https://discourse.slicer.org/u/Corain)\
**Replies:** 3\
**Last updated:** [October 21, 2022, 7:38am UTC](https://discourse.slicer.org/t/how-to-hide-the-main-window-until-my-module-is-loaded/25810 "2022-10-21T07:38:21Z")

</div>

Operating system: Win 10 Slicer version: Slicer 5.0.3 Expected behavior: Directly show the GUI of my module when I open MyModule.exe. Actual behavior: It will show the Slicer welcome page for a second first and then j…

---

## [Embedding URI in a mrml scene file, for viewing the mrml scene on a remote slicer application](https://discourse.slicer.org/t/embedding-uri-in-a-mrml-scene-file-for-viewing-the-mrml-scene-on-a-remote-slicer-application/25373)

<div class="topic-metadata">

**Author:** [@Rajesh\_Ds](https://discourse.slicer.org/u/Rajesh_Ds)\
**Replies:** 11\
**Last updated:** [October 20, 2022, 3:00pm UTC](https://discourse.slicer.org/t/embedding-uri-in-a-mrml-scene-file-for-viewing-the-mrml-scene-on-a-remote-slicer-application/25373 "2022-10-20T15:00:29Z")

</div>

This is a sample .mrml scene file. It is having a local filepath embedded in it which points to the niftii file corresponding to a particular segmentation result shown in the mrml scene. Is it possible to replace th…

---

## [How to segment brain tumor in offline enviroment?](https://discourse.slicer.org/t/how-to-segment-brain-tumor-in-offline-enviroment/25776)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [October 20, 2022, 1:29am UTC](https://discourse.slicer.org/t/how-to-segment-brain-tumor-in-offline-enviroment/25776 "2022-10-20T01:29:00Z")

</div>

should i buld a monai label server local? or there is another way to do these work?

---

## [Serial video tutorials on 3D Slicer extension (Python scripted modules) development with GitHub source codes](https://discourse.slicer.org/t/serial-video-tutorials-on-3d-slicer-extension-python-scripted-modules-development-with-github-source-codes/25710)

<div class="topic-metadata">

**Author:** [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Replies:** 3\
**Last updated:** [October 19, 2022, 1:08pm UTC](https://discourse.slicer.org/t/serial-video-tutorials-on-3d-slicer-extension-python-scripted-modules-development-with-github-source-codes/25710 "2022-10-19T13:08:29Z")

</div>

Hi everyone, I have been working on the 3D Slicer extension (Python scripted modules) development for a while and learned a lot from the 3D Slicer forum. Really appreciate all the active replies to my questions! I woul…

---

## [My SliceView is only updated after scrolling the mouse](https://discourse.slicer.org/t/my-sliceview-is-only-updated-after-scrolling-the-mouse/25563)

<div class="topic-metadata">

**Author:** [@Niels](https://discourse.slicer.org/u/Niels)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 6:40am UTC](https://discourse.slicer.org/t/my-sliceview-is-only-updated-after-scrolling-the-mouse/25563 "2022-10-19T06:40:50Z")

</div>

In my module I change areas of my volume by clicking with the mouse in one of the slice views (red/green/blue). This works fine. But all changes are reflected in all the views, except the view that I actually click in. …

---

## [Tranformation of labelmap not working on script](https://discourse.slicer.org/t/tranformation-of-labelmap-not-working-on-script/25499)

<div class="topic-metadata">

**Author:** [@justomont](https://discourse.slicer.org/u/justomont)\
**Replies:** 8\
**Last updated:** [October 19, 2022, 6:35am UTC](https://discourse.slicer.org/t/tranformation-of-labelmap-not-working-on-script/25499 "2022-10-19T06:35:21Z")

</div>

Operating system: MacOS BigSur 11.6 Slicer version: 5.0.3 Expected behavior: Transform labelmap volume node Actual behavior: Labelmap volume node is not transformed Hello everyone, I’m developing a script, that amon…

---

## [How to get the center coordinates of Slice intersections](https://discourse.slicer.org/t/how-to-get-the-center-coordinates-of-slice-intersections/25624)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 4\
**Last updated:** [October 19, 2022, 6:14am UTC](https://discourse.slicer.org/t/how-to-get-the-center-coordinates-of-slice-intersections/25624 "2022-10-19T06:14:43Z")

</div>

---

## [Modify transform widget](https://discourse.slicer.org/t/modify-transform-widget/25747)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 4\
**Last updated:** [October 19, 2022, 5:01am UTC](https://discourse.slicer.org/t/modify-transform-widget/25747 "2022-10-19T05:01:16Z")

</div>

The transform widget is now a square,Does the transform widget have that sphere type or modify it into a sphere.

---

## [Event about vtkMRMLModelNode](https://discourse.slicer.org/t/event-about-vtkmrmlmodelnode/25744)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 3\
**Last updated:** [October 19, 2022, 4:59am UTC](https://discourse.slicer.org/t/event-about-vtkmrmlmodelnode/25744 "2022-10-19T04:59:05Z")

</div>

In the logic of my custom module, I can know that a new node has been added to the scene by OnMRMLSceneNodeAdded. For example, vtkMRMLModelNode, I can tell that a vtkMRMLMOdelNode was created and its displayNode was crea…

---

## [How to iterate through a model based on pixels?](https://discourse.slicer.org/t/how-to-iterate-through-a-model-based-on-pixels/25728)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 3\
**Last updated:** [October 18, 2022, 2:19am UTC](https://discourse.slicer.org/t/how-to-iterate-through-a-model-based-on-pixels/25728 "2022-10-18T02:19:11Z")

</div>

How to iterate through a model (:point\_down:) based on pixels? I want to find the largest inscribed circle based on this. Like this way or this by cv2 .

---

## [How to Receive and Visualize PolyData from IGTLink](https://discourse.slicer.org/t/how-to-receive-and-visualize-polydata-from-igtlink/25736)

<div class="topic-metadata">

**Author:** [@Jack\_Zhang](https://discourse.slicer.org/u/Jack_Zhang)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 8:35pm UTC](https://discourse.slicer.org/t/how-to-receive-and-visualize-polydata-from-igtlink/25736 "2022-10-17T20:35:23Z")

</div>

Operating system: Windows 10 Slicer version:5.0.3 I’ve written a program that sends a polydata message over IGTLink to Slicer. As a demo run, I just want to create a line between two points and add it to the 3D widget.…

---

## [Load a scene from .mnc file](https://discourse.slicer.org/t/load-a-scene-from-mnc-file/12331)

<div class="topic-metadata">

**Author:** [@Eloi\_gbrt](https://discourse.slicer.org/u/Eloi_gbrt)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 4:36pm UTC](https://discourse.slicer.org/t/load-a-scene-from-mnc-file/12331 "2022-10-17T16:36:42Z")

</div>

Hello, In the module i develop in python, i need to load a scene. This scene i need to load is a .mnc file. Does someone know how to load this type of file with python or if i have to convert it and if so the tools i h…

---

## [Segments Table View KeyPress event not detected](https://discourse.slicer.org/t/segments-table-view-keypress-event-not-detected/25722)

<div class="topic-metadata">

**Author:** [@ssv](https://discourse.slicer.org/u/ssv)\
**Replies:** 0\
**Last updated:** [October 16, 2022, 3:01pm UTC](https://discourse.slicer.org/t/segments-table-view-keypress-event-not-detected/25722 "2022-10-16T15:01:42Z")

</div>

How to detect keypress event on segments table view . I used installfilter function apply on segmentstable in my custom module and detect events but it only give me QPaint,Enter,Help and Leave events

---

## [Howto get imageDirections from a ROI?](https://discourse.slicer.org/t/howto-get-imagedirections-from-a-roi/25713)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 1\
**Last updated:** [October 16, 2022, 5:11am UTC](https://discourse.slicer.org/t/howto-get-imagedirections-from-a-roi/25713 "2022-10-16T05:11:17Z")

</div>

I want to create a volume from a ROI: nodeName = "MyNewVolume" imageSize = list(map(int, dim)) # the size of the ROI voxelType=vtk.VTK\_UNSIGNED\_CHAR imageOrigin = cn\[0\] # the origin of the ROI imageSpacing = \[1.0, 1.0,…

---

## [Unable to add scalars to \`vtkMRMLMarkupsCurveNode\`](https://discourse.slicer.org/t/unable-to-add-scalars-to-vtkmrmlmarkupscurvenode/21341)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 4\
**Last updated:** [October 15, 2022, 12:45pm UTC](https://discourse.slicer.org/t/unable-to-add-scalars-to-vtkmrmlmarkupscurvenode/21341 "2022-10-15T12:45:24Z")

</div>

Hi, I’m trying to create scalars and add it to the vtkMRMLMarkupsCurveNode. Then I go to the Markups module and I cant find any scalars except PedigreeIDs. Probably I do something wrong… here is the script I use: # Cre…

---

## [Is there any callback for the mouse click when adding a new markup?](https://discourse.slicer.org/t/is-there-any-callback-for-the-mouse-click-when-adding-a-new-markup/25695)

<div class="topic-metadata">

**Author:** [@Eduardo\_Fares](https://discourse.slicer.org/u/Eduardo_Fares)\
**Replies:** 2\
**Last updated:** [October 14, 2022, 2:05pm UTC](https://discourse.slicer.org/t/is-there-any-callback-for-the-mouse-click-when-adding-a-new-markup/25695 "2022-10-14T14:05:43Z")

</div>

Hello, I am developing a new application for 3D Slicer, however I cannot find a resolution to my problem. I am running a way to add control points via mouse click, the way I found in the repository script. selectionNode…

---

## [Long running process problem](https://discourse.slicer.org/t/long-running-process-problem/25632)

<div class="topic-metadata">

**Author:** [@bzhu](https://discourse.slicer.org/u/bzhu)\
**Replies:** 4\
**Last updated:** [October 14, 2022, 12:53am UTC](https://discourse.slicer.org/t/long-running-process-problem/25632 "2022-10-14T00:53:35Z")

</div>

I have a set of code for imaging processing that takes quite a long while to run. If I run the code in command-line with PythonSlicer, the code completes and generates a new image. However, when I run the code inside m…

---

## [Installing ITK Python package in Slicer 5.1 and above](https://discourse.slicer.org/t/installing-itk-python-package-in-slicer-5-1-and-above/25636)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 5:59pm UTC](https://discourse.slicer.org/t/installing-itk-python-package-in-slicer-5-1-and-above/25636 "2022-10-11T17:59:33Z")

</div>

Following the integration of Slicer pull request #6564 adding support for ITK custom namespace, it is now possible to install ITK python package from PyPI and use associated filter. The use of functionalities relying on…

---

## [Windows Nightly build error: pip install of SimpleITK build failing](https://discourse.slicer.org/t/windows-nightly-build-error-pip-install-of-simpleitk-build-failing/25629)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 5\
**Last updated:** [October 10, 2022, 11:52pm UTC](https://discourse.slicer.org/t/windows-nightly-build-error-pip-install-of-simpleitk-build-failing/25629 "2022-10-10T23:52:00Z")

</div>

Between Oct 7 and Oct 8, the installation of SimpleITK from its build tree started to fail. Notes: The commits introduced between these two dates are likely unrelated. The error can NOT be reproduced by locally runnin…

---

## [Bar charts with categorical data](https://discourse.slicer.org/t/bar-charts-with-categorical-data/25615)

<div class="topic-metadata">

**Author:** [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Replies:** 6\
**Last updated:** [October 10, 2022, 5:10pm UTC](https://discourse.slicer.org/t/bar-charts-with-categorical-data/25615 "2022-10-10T17:10:05Z")

</div>

vtkMRMLChartNode is no longer supported in Slicer 5 - how are we supposed to realize somting like as it was (is) described in https://www.slicer.org/wiki/Documentation/Nightly/Developers/Charts ? Thank you.

---

## [Accessing VolumeNode in loadable](https://discourse.slicer.org/t/accessing-volumenode-in-loadable/25580)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.slicer.org/u/leo)\
**Replies:** 2\
**Last updated:** [October 10, 2022, 3:46pm UTC](https://discourse.slicer.org/t/accessing-volumenode-in-loadable/25580 "2022-10-10T15:46:56Z")

</div>

I am currently attempting to implement this Python script in a loadable module in order to acces voxels. My attempts until node ended always with my custom module breaking. My understanding right now is that the way I tr…

---

## [Is there a better solution for head registration?](https://discourse.slicer.org/t/is-there-a-better-solution-for-head-registration/25356)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 28\
**Last updated:** [October 10, 2022, 2:18am UTC](https://discourse.slicer.org/t/is-there-a-better-solution-for-head-registration/25356 "2022-10-10T02:18:05Z")

</div>

we now have different registration solutions for head registration,like elastix,ants,brainsfit we now have different serials for registration,like T1,T2,Flair,PCA,CT if we choose T1 as fixed volume , Other serials as m…

---

## [tempDICOMDatabase crashes slicer](https://discourse.slicer.org/t/tempdicomdatabase-crashes-slicer/25515)

<div class="topic-metadata">

**Author:** [@talmazov](https://discourse.slicer.org/u/talmazov)\
**Replies:** 2\
**Last updated:** [October 4, 2022, 10:54pm UTC](https://discourse.slicer.org/t/tempdicomdatabase-crashes-slicer/25515 "2022-10-04T22:54:54Z")

</div>

Hey all, I am experiencing a peculiar issue and I was hoping for some help to help me narrow down the problem. I have the following piece of code dicomDataDir = os.path.dirname(context.scene.DICOM\_dir).replace(os.sep,…

---

## [Right-clicking in patient/study/series list](https://discourse.slicer.org/t/right-clicking-in-patient-study-series-list/25518)

<div class="topic-metadata">

**Author:** [@fghazouani](https://discourse.slicer.org/u/fghazouani)\
**Replies:** 2\
**Last updated:** [October 3, 2022, 4:38pm UTC](https://discourse.slicer.org/t/right-clicking-in-patient-study-series-list/25518 "2022-10-03T16:38:33Z")

</div>

Hello, How to add an item like “View DICOM metadata, Delete, Export to file system, …” to the right-click in the Dicom browser. Thank you.

---

## [IGT Volume Reconstruction Logic](https://discourse.slicer.org/t/igt-volume-reconstruction-logic/25523)

<div class="topic-metadata">

**Author:** [@Isabella\_Romero](https://discourse.slicer.org/u/Isabella_Romero)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 2:45pm UTC](https://discourse.slicer.org/t/igt-volume-reconstruction-logic/25523 "2022-10-03T14:45:43Z")

</div>

Hi, I have done a segmentation to an image, and now I am trying to do the reconstruction of it using the IGT Volume Reconstruction Module. I am trying to automate it vie Python. I found the module logic with this comma…

---

## [Import Volume Recontruction from IGT](https://discourse.slicer.org/t/import-volume-recontruction-from-igt/22261)

<div class="topic-metadata">

**Author:** [@Karl-Philippe](https://discourse.slicer.org/u/Karl-Philippe)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 10:42am UTC](https://discourse.slicer.org/t/import-volume-recontruction-from-igt/22261 "2022-10-03T10:42:07Z")

</div>

Hello, I am trying to import the logic of the volumereconstruction module from the SlicerIGT extension for use in my own python script but I get an error saying that the module is not found even though I installed the S…

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

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