# Development

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

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

**Page:** 39

---

## [Slicer Coverage Testing?](https://discourse.slicer.org/t/slicer-coverage-testing/28764)

<div class="topic-metadata">

**Author:** [@hannahm](https://discourse.slicer.org/u/hannahm)\
**Replies:** 6\
**Last updated:** [April 11, 2023, 7:36am UTC](https://discourse.slicer.org/t/slicer-coverage-testing/28764 "2023-04-11T07:36:40Z")

</div>

I know there have previous discussions about using the coverage python module with scripted modules (How to generate a test coverage report for scripted module?), but I was wondering if there was any additional thought t…

---

## [Custom processInteractionEvents](https://discourse.slicer.org/t/custom-processinteractionevents/28807)

<div class="topic-metadata">

**Author:** [@DRDMT](https://discourse.slicer.org/u/DRDMT)\
**Replies:** 5\
**Last updated:** [April 11, 2023, 4:46am UTC](https://discourse.slicer.org/t/custom-processinteractionevents/28807 "2023-04-11T04:46:44Z")

</div>

Hello Team, Kindly wanted to know from where is the function “processInteractionEvents()” triggered? How can we use this function in our custom module to capture mouse move event? Regards

---

## [New feature: Python console displays more log messages](https://discourse.slicer.org/t/new-feature-python-console-displays-more-log-messages/25739)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 13\
**Last updated:** [April 10, 2023, 2:20pm UTC](https://discourse.slicer.org/t/new-feature-python-console-displays-more-log-messages/25739 "2023-04-10T14:20:31Z")

</div>

Until now, the Python console only displayed Python outputs and Python log messages. Therefore, if a Python command executed a VTK method and that VTK method logged an error or warning, it was not immediately visible for…

---

## [3D slicer build error](https://discourse.slicer.org/t/3d-slicer-build-error/28447)

<div class="topic-metadata">

**Author:** [@Anjalimukundan](https://discourse.slicer.org/u/Anjalimukundan)\
**Replies:** 4\
**Last updated:** [April 10, 2023, 11:04am UTC](https://discourse.slicer.org/t/3d-slicer-build-error/28447 "2023-04-10T11:04:45Z")

</div>

Hello Everyone, I am trying to use slicer modules any create an application. The compilation of the slicer is done, but I am unable to find the installed folder for header, lib and dll files. Can we use the slicer mod…

---

## [Finding coordinates for plane-line intersection](https://discourse.slicer.org/t/finding-coordinates-for-plane-line-intersection/28813)

<div class="topic-metadata">

**Author:** [@esomjai](https://discourse.slicer.org/u/esomjai)\
**Replies:** 2\
**Last updated:** [April 9, 2023, 4:52pm UTC](https://discourse.slicer.org/t/finding-coordinates-for-plane-line-intersection/28813 "2023-04-09T16:52:50Z")

</div>

I was wondering if there’s s script I could use to get the coordinates of my intersection point where my plane and line meet. I would like to use this coordinate later on for angle measurements as my project involves an…

---

## [Is it possible to override default stack behavior of slicer viewport?](https://discourse.slicer.org/t/is-it-possible-to-override-default-stack-behavior-of-slicer-viewport/28805)

<div class="topic-metadata">

**Author:** [@turtleizzy](https://discourse.slicer.org/u/turtleizzy)\
**Replies:** 2\
**Last updated:** [April 10, 2023, 12:58am UTC](https://discourse.slicer.org/t/is-it-possible-to-override-default-stack-behavior-of-slicer-viewport/28805 "2023-04-10T00:58:37Z")

</div>

I want to implement an image plugin that generates and displays image on the fly with a parameter derived from the position of a slider. Is it possible to make use of the slider control above the viewport and override th…

---

## [Slicer fails to download custom sample data](https://discourse.slicer.org/t/slicer-fails-to-download-custom-sample-data/28561)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 25\
**Last updated:** [April 7, 2023, 8:50pm UTC](https://discourse.slicer.org/t/slicer-fails-to-download-custom-sample-data/28561 "2023-04-07T20:50:29Z")

</div>

I have this code: which results in a download error: The file can be downloaded using Chrome and curl.exe. What is wrong?

---

## [How to duplicate a vtkMRMLScalarVolumeNode using Python?](https://discourse.slicer.org/t/how-to-duplicate-a-vtkmrmlscalarvolumenode-using-python/28758)

<div class="topic-metadata">

**Author:** [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Replies:** 5\
**Last updated:** [April 6, 2023, 7:30pm UTC](https://discourse.slicer.org/t/how-to-duplicate-a-vtkmrmlscalarvolumenode-using-python/28758 "2023-04-06T19:30:21Z")

</div>

Hi everyone, I am trying to duplicate a vtkMRMLScalarVolumeNode: node\_CopyVolume = slicer.mrmlScene.AddNewNodeByClass('vtkMRMLScalarVolumeNode') What can I do to copy the volume data from node\_OriginVolume to the node…

---

## [Python logging with string formatting issue](https://discourse.slicer.org/t/python-logging-with-string-formatting-issue/3366)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 7\
**Last updated:** [July 3, 2018, 10:43pm UTC](https://discourse.slicer.org/t/python-logging-with-string-formatting-issue/3366 "2018-07-03T22:43:22Z")

</div>

I’m having issues when writing a debug log message in python while also using the % string formatting operator. It gets interpreted correctly at the info log level, but not at the debug level. Any idea why the behavior …

---

## [Compile from source - QSocketNotifier errord](https://discourse.slicer.org/t/compile-from-source-qsocketnotifier-errord/28772)

<div class="topic-metadata">

**Author:** [@Peng\_Wang](https://discourse.slicer.org/u/Peng_Wang)\
**Replies:** 1\
**Last updated:** [April 6, 2023, 1:34am UTC](https://discourse.slicer.org/t/compile-from-source-qsocketnotifier-errord/28772 "2023-04-06T01:34:28Z")

</div>

Operating system: Ubuntu 23.04 Slicer version: 5.3 I am compiling Slicer from source on Ubuntu. It uses the Qt from system (v5.15.8). When I run Slicer from the Slicer-build/ it give the following error and quit after…

---

## [How to export individual slices or calculate a centroid for each slice of a segmentation?](https://discourse.slicer.org/t/how-to-export-individual-slices-or-calculate-a-centroid-for-each-slice-of-a-segmentation/28622)

<div class="topic-metadata">

**Author:** [@Melanie](https://discourse.slicer.org/u/Melanie)\
**Replies:** 4\
**Last updated:** [April 1, 2023, 3:48am UTC](https://discourse.slicer.org/t/how-to-export-individual-slices-or-calculate-a-centroid-for-each-slice-of-a-segmentation/28622 "2023-04-01T03:48:15Z")

</div>

I have some medical images, saved as .nrrd files. (segmented) I would like to calculate the centroid for each slice along a single axis. (Entire segmnet is currently aligned) Then create a line of best fit for this. A…

---

## [Transition of macOS Preview build from host 10.13 (High Sierra) to 13 (Ventura)](https://discourse.slicer.org/t/transition-of-macos-preview-build-from-host-10-13-high-sierra-to-13-ventura/28668)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 2\
**Last updated:** [March 31, 2023, 4:07pm UTC](https://discourse.slicer.org/t/transition-of-macos-preview-build-from-host-10-13-high-sierra-to-13-ventura/28668 "2023-03-31T16:07:49Z")

</div>

In the next few days, we will transition the Slicer preview build for application and extensions from factory-south-macos (10.13 / High Sierra) to computron (13 / Ventura). Implications for users Our deployment target …

---

## [Threshold min and max values](https://discourse.slicer.org/t/threshold-min-and-max-values/28643)

<div class="topic-metadata">

**Author:** [@Contente](https://discourse.slicer.org/u/Contente)\
**Replies:** 4\
**Last updated:** [March 29, 2023, 7:31pm UTC](https://discourse.slicer.org/t/threshold-min-and-max-values/28643 "2023-03-29T19:31:03Z")

</div>

I’m trying to create an automatic segment generator by using the threshold method for any given DICOM images. However, as it may seems, the values from the extremes of the range varies with distinct Volume Nodes provide…

---

## [Getting pointer on module's logic and open/show the logic widget](https://discourse.slicer.org/t/getting-pointer-on-modules-logic-and-open-show-the-logic-widget/28654)

<div class="topic-metadata">

**Author:** [@adeguet1](https://discourse.slicer.org/u/adeguet1)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 2:40pm UTC](https://discourse.slicer.org/t/getting-pointer-on-modules-logic-and-open-show-the-logic-widget/28654 "2023-03-29T14:40:43Z")

</div>

In python, we can do: slicer.util.getModuleLogic(name) and getModuleLogic. Is there an equivalent in C++? For example, when loading a MRML scene, in the UpdateScene callback, I’d like to make sure a module exists and h…

---

## [VS Code launches two Slicers on selecting workspace](https://discourse.slicer.org/t/vs-code-launches-two-slicers-on-selecting-workspace/27204)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 7\
**Last updated:** [March 29, 2023, 12:05pm UTC](https://discourse.slicer.org/t/vs-code-launches-two-slicers-on-selecting-workspace/27204 "2023-03-29T12:05:49Z")

</div>

Hi all, I’ve used VS Code with Slicer without problems in the past. However, for about a week, something strange and annoying happens when I start VS Code or when I switch workspaces: two Slicer instances are launched,…

---

## [Python librairies](https://discourse.slicer.org/t/python-librairies/28623)

<div class="topic-metadata">

**Author:** [@Nicolas\_Tempier](https://discourse.slicer.org/u/Nicolas_Tempier)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 1:56pm UTC](https://discourse.slicer.org/t/python-librairies/28623 "2023-03-28T13:56:59Z")

</div>

Hello everyone, I have a little misunderstanding because I managed to install a python library "openslide-python==1.2.0 "on my machine but when I try to install it on another machine on slicer, it returns the following…

---

## [How does 3d slicer calculate the segmentation volume of dicom image？](https://discourse.slicer.org/t/how-does-3d-slicer-calculate-the-segmentation-volume-of-dicom-image/28596)

<div class="topic-metadata">

**Author:** [@lyh-ecnu](https://discourse.slicer.org/u/lyh-ecnu)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 5:06am UTC](https://discourse.slicer.org/t/how-does-3d-slicer-calculate-the-segmentation-volume-of-dicom-image/28596 "2023-03-28T05:06:52Z")

</div>

hello,I have a project that requires a lot of calculations about the segmentation volume of dicom image.Firstly I tried to use python’s simpleitk library to calculate it,My code looks roughly like this： file = sitk.Read…

---

## [Push 2D slice to slice view](https://discourse.slicer.org/t/push-2d-slice-to-slice-view/27738)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Replies:** 6\
**Last updated:** [March 27, 2023, 6:36pm UTC](https://discourse.slicer.org/t/push-2d-slice-to-slice-view/27738 "2023-03-27T18:36:06Z")

</div>

Hi all. I am writing a scripted module in python. I have multiple 2d numpy arrays. Each array represents a slice (in paraview terms) of a volume. I have calculated internally the origin, orientation of each slice. I wou…

---

## [Couldn't Register customized DisplayableManager to extension module](https://discourse.slicer.org/t/couldnt-register-customized-displayablemanager-to-extension-module/28560)

<div class="topic-metadata">

**Author:** [@RuoyanMeng](https://discourse.slicer.org/u/RuoyanMeng)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 9:47am UTC](https://discourse.slicer.org/t/couldnt-register-customized-displayablemanager-to-extension-module/28560 "2023-03-27T09:47:19Z")

</div>

Hi, I tried to customize a slice DisplayableManager and register it to vtkMRMLSliceViewDisplayableManagerFactory. But after successfully compiling our extension, When starting the 3D slicer, it will report “/Slicer/Slic…

---

## [Min distance between a curveNode and another node?](https://discourse.slicer.org/t/min-distance-between-a-curvenode-and-another-node/28566)

<div class="topic-metadata">

**Author:** [@pixilla](https://discourse.slicer.org/u/pixilla)\
**Replies:** 1\
**Last updated:** [March 26, 2023, 4:25am UTC](https://discourse.slicer.org/t/min-distance-between-a-curvenode-and-another-node/28566 "2023-03-26T04:25:00Z")

</div>

Hello, I wanted to find the minimum distance between the curve (defined by a list of point in a vtkmrmlCurveNode) and other nodes which are vtkPolyData by using (I think) a vtkPolyDataDistanceFIlter. I started by create…

---

## [How to get 'Axes.vtp'?](https://discourse.slicer.org/t/how-to-get-axes-vtp/28572)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 1\
**Last updated:** [March 26, 2023, 3:23am UTC](https://discourse.slicer.org/t/how-to-get-axes-vtp/28572 "2023-03-26T03:23:07Z")

</div>

I want to use the orientation marker ‘Axes.vtp’, but Howto to get the ‘Axes.vtp’? like👇:

---

## [Docker is sunsetting Free Team organizations](https://discourse.slicer.org/t/docker-is-sunsetting-free-team-organizations/28497)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 9\
**Last updated:** [March 25, 2023, 6:13am UTC](https://discourse.slicer.org/t/docker-is-sunsetting-free-team-organizations/28497 "2023-03-25T06:13:06Z")

</div>

Summary Docker is ending the Free Team organizations support that we are leveraging to publish, manage and store the slicer docker images available on dockerhub. See https://hub.docker.com/u/slicer Additional impacted …

---

## [3D mouse cursor for stereoscopic displays](https://discourse.slicer.org/t/3d-mouse-cursor-for-stereoscopic-displays/28370)

<div class="topic-metadata">

**Author:** [@LucasGandel](https://discourse.slicer.org/u/LucasGandel)\
**Replies:** 3\
**Last updated:** [March 24, 2023, 10:20am UTC](https://discourse.slicer.org/t/3d-mouse-cursor-for-stereoscopic-displays/28370 "2023-03-24T10:20:58Z")

</div>

Hello, We would like have a 3D cursor in the 3D view, similar to the new widget that was recently merged in VTK. This widget replaces the mouse cursor by a 3D point representation that is projected on the surface when …

---

## [Can we rotate the slice in single model like in MITK](https://discourse.slicer.org/t/can-we-rotate-the-slice-in-single-model-like-in-mitk/28531)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 3\
**Last updated:** [March 23, 2023, 12:00pm UTC](https://discourse.slicer.org/t/can-we-rotate-the-slice-in-single-model-like-in-mitk/28531 "2023-03-23T12:00:08Z")

</div>

Can we rotate the slice in single model like in MITK。 Anyway including python scripts, will be helpful !

---

## [Code style in Python modules?](https://discourse.slicer.org/t/code-style-in-python-modules/28529)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 1\
**Last updated:** [March 22, 2023, 9:18pm UTC](https://discourse.slicer.org/t/code-style-in-python-modules/28529 "2023-03-22T21:18:41Z")

</div>

Is there some preferred style for Python code in extensions? What tools (e.g. black) can enforce it?

---

## [Export "vtkMRMLModelNode" as .OBJ](https://discourse.slicer.org/t/export-vtkmrmlmodelnode-as-obj/28484)

<div class="topic-metadata">

**Author:** [@Contente](https://discourse.slicer.org/u/Contente)\
**Replies:** 3\
**Last updated:** [March 22, 2023, 1:36pm UTC](https://discourse.slicer.org/t/export-vtkmrmlmodelnode-as-obj/28484 "2023-03-22T13:36:14Z")

</div>

I have a segmentation that was converted into models in order to use the Surface Toolkit with them and access decimation and other optimization methods. However, I want to export the models that have been processed to a…

---

## [3dslicer and unity communication to use registration algorithms](https://discourse.slicer.org/t/3dslicer-and-unity-communication-to-use-registration-algorithms/28513)

<div class="topic-metadata">

**Author:** [@JAN\_CARLOS\_ALVIRA\_ME](https://discourse.slicer.org/u/JAN_CARLOS_ALVIRA_ME)\
**Replies:** 2\
**Last updated:** [March 22, 2023, 9:41am UTC](https://discourse.slicer.org/t/3dslicer-and-unity-communication-to-use-registration-algorithms/28513 "2023-03-22T09:41:51Z")

</div>

Hello, I am working with the registration algorithms that 3dslicer offers me, but I have to make it receive data from unity 3d and thus be able to calculate the transformation matrices, I don’t know if it can be done tha…

---

## [What's wrong, after upgrading to the new version of the Mac, opening the Slicer reported '\[FD\]' error?](https://discourse.slicer.org/t/whats-wrong-after-upgrading-to-the-new-version-of-the-mac-opening-the-slicer-reported-fd-error/28502)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 1\
**Last updated:** [March 21, 2023, 8:43pm UTC](https://discourse.slicer.org/t/whats-wrong-after-upgrading-to-the-new-version-of-the-mac-opening-the-slicer-reported-fd-error/28502 "2023-03-21T20:43:11Z")

</div>

After upgrading to the new version(13.2.1 (22D68),macOS Ventura) of the Mac, opening the Slicer reported ‘\[FD\]’ error? \[DEBUG\]\[Qt\] 22.03.2023 01:52:08 \[\] (unknown:0) - Session start time .......: 2023-03-22 01:52:08 \[DE…

---

## [Using CurvedPlanarReformat without 3D Slicer GUI](https://discourse.slicer.org/t/using-curvedplanarreformat-without-3d-slicer-gui/28463)

<div class="topic-metadata">

**Author:** [@aalihashemi](https://discourse.slicer.org/u/aalihashemi)\
**Replies:** 1\
**Last updated:** [March 21, 2023, 3:47am UTC](https://discourse.slicer.org/t/using-curvedplanarreformat-without-3d-slicer-gui/28463 "2023-03-21T03:47:55Z")

</div>

Hi, I want to straighten some arteries using the curved planar reformat algorithm but I don’t want to use 3D Slicer GUI because my code has its own GUI and other parts. Now my question is which way is preferred for this…

---

## [Getting files with different size in Python and GUI using the same decimation method](https://discourse.slicer.org/t/getting-files-with-different-size-in-python-and-gui-using-the-same-decimation-method/28477)

<div class="topic-metadata">

**Author:** [@Contente](https://discourse.slicer.org/u/Contente)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 7:31pm UTC](https://discourse.slicer.org/t/getting-files-with-different-size-in-python-and-gui-using-the-same-decimation-method/28477 "2023-03-20T19:31:02Z")

</div>

Hello, everyone. In order to use the decimation method, we call the method: segmentation.SetConversionParameter("Decimation factor", "0.90") My question is: by default, this method implements the DecimatePro algorithm…

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

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