# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?page=19

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

**Page:** 20

---

## [Error in Opening Files using Slicer 5.6.2](https://discourse.slicer.org/t/error-in-opening-files-using-slicer-5-6-2/36611)

<div class="topic-metadata">

**Author:** [@MPARHAM](https://discourse.slicer.org/u/MPARHAM)\
**Replies:** 3\
**Last updated:** [June 12, 2024, 10:57pm UTC](https://discourse.slicer.org/t/error-in-opening-files-using-slicer-5-6-2/36611 "2024-06-12T22:57:31Z")

</div>

Hi Slicer Community, I am working on a research project and need to redo my segmentations. However, I am encountering an issue when trying to open files in 3D Slicer. Here are the files I have in my folder: 2024-03-05…

---

## [New version of the PRISM Extension don't want to update on 3D Slicer](https://discourse.slicer.org/t/new-version-of-the-prism-extension-dont-want-to-update-on-3d-slicer/36191)

<div class="topic-metadata">

**Author:** [@Kiroky](https://discourse.slicer.org/u/Kiroky)\
**Replies:** 2\
**Last updated:** [June 12, 2024, 6:21pm UTC](https://discourse.slicer.org/t/new-version-of-the-prism-extension-dont-want-to-update-on-3d-slicer/36191 "2024-06-12T18:21:51Z")

</div>

Hello ! I’ve found a problem with the PRISM Module from 3D slicer that i’ve fixed and merged with the master branch on Git. 1 day after it’s supposed to be online if I understood well. My problem is, on the mac and lin…

---

## [Improving Markup Quality in 2D Views](https://discourse.slicer.org/t/improving-markup-quality-in-2d-views/36700)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 4:36pm UTC](https://discourse.slicer.org/t/improving-markup-quality-in-2d-views/36700 "2024-06-11T16:36:41Z")

</div>

Hi all Is there a way to improve the markup quality as seen on the right side of the image? (It doesn’t necessarily have to look like 3D.) Morever, I’d like to enhance the quality of lines and curves, particularly a…

---

## [How to include markup annotations in high-resolution screen capture](https://discourse.slicer.org/t/how-to-include-markup-annotations-in-high-resolution-screen-capture/35813)

<div class="topic-metadata">

**Author:** [@oothomas](https://discourse.slicer.org/u/oothomas)\
**Replies:** 24\
**Last updated:** [June 10, 2024, 9:46pm UTC](https://discourse.slicer.org/t/how-to-include-markup-annotations-in-high-resolution-screen-capture/35813 "2024-06-10T21:46:52Z")

</div>

Hello Slicer Community, I am currently developing an extension for high-resolution screen captures within Slicer. My goal is to programmatically capture images of a reconstructed scene that include markup annotations su…

---

## [How to customize the number on the line markups?](https://discourse.slicer.org/t/how-to-customize-the-number-on-the-line-markups/36681)

<div class="topic-metadata">

**Author:** [@Cavers\_Chen](https://discourse.slicer.org/u/Cavers_Chen)\
**Replies:** 1\
**Last updated:** [June 10, 2024, 1:16pm UTC](https://discourse.slicer.org/t/how-to-customize-the-number-on-the-line-markups/36681 "2024-06-10T13:16:17Z")

</div>

Hi! Recently, I tried to use a line to represent the relationship between segmentation pairs. However, I want to display the custom number. Is there a way to achieve this goal? Displaying the description would be great …

---

## [Slicer qt-loadable-modules as libraries to support other modules](https://discourse.slicer.org/t/slicer-qt-loadable-modules-as-libraries-to-support-other-modules/21594)

<div class="topic-metadata">

**Author:** [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Replies:** 6\
**Last updated:** [June 10, 2024, 12:26pm UTC](https://discourse.slicer.org/t/slicer-qt-loadable-modules-as-libraries-to-support-other-modules/21594 "2024-06-10T12:26:08Z")

</div>

Hello, for Slicer-Liver, we are thinking about the modularity of the extension. We have a set of components already developed in C++, but would like to have a qt-scripted-module, featuring a single UI, be an entry poin…

---

## [Creating an Automated Pulmonary Vessel Quantitation System](https://discourse.slicer.org/t/creating-an-automated-pulmonary-vessel-quantitation-system/36528)

<div class="topic-metadata">

**Author:** [@THartman](https://discourse.slicer.org/u/THartman)\
**Replies:** 2\
**Last updated:** [June 7, 2024, 3:35pm UTC](https://discourse.slicer.org/t/creating-an-automated-pulmonary-vessel-quantitation-system/36528 "2024-06-07T15:35:17Z")

</div>

The extension in its current state takes as an input a volume that has been processed to include two tones of vessel, where a 1 represents an artery and a 2 represents a vein. With this being done, our extension is able…

---

## [Vmtk surface clipping contribution](https://discourse.slicer.org/t/vmtk-surface-clipping-contribution/30456)

<div class="topic-metadata">

**Author:** [@DavidM](https://discourse.slicer.org/u/DavidM)\
**Replies:** 16\
**Last updated:** [June 7, 2024, 9:01am UTC](https://discourse.slicer.org/t/vmtk-surface-clipping-contribution/30456 "2024-06-07T09:01:43Z")

</div>

I have developed a vmtk module that truncates/clips a vessel at user specified markup points (see image). This is a task that is commonly required for CFD software. I am wondering whether there is interest in contributin…

---

## [How extract the radiomics features of many patients for specific region of interests by using python interactor instead of manually one by one patient?](https://discourse.slicer.org/t/how-extract-the-radiomics-features-of-many-patients-for-specific-region-of-interests-by-using-python-interactor-instead-of-manually-one-by-one-patient/26361)

<div class="topic-metadata">

**Author:** [@NAVEED\_ASHRAF](https://discourse.slicer.org/u/NAVEED_ASHRAF)\
**Replies:** 6\
**Last updated:** [June 4, 2024, 8:41pm UTC](https://discourse.slicer.org/t/how-extract-the-radiomics-features-of-many-patients-for-specific-region-of-interests-by-using-python-interactor-instead-of-manually-one-by-one-patient/26361 "2024-06-04T20:41:18Z")

</div>

How extract the radiomics features of many patients for specific region of interests by using python interactor instead of manually one by one patient?

---

## [Debugging a python script in pycharm](https://discourse.slicer.org/t/debugging-a-python-script-in-pycharm/36585)

<div class="topic-metadata">

**Author:** [@RomanStriker](https://discourse.slicer.org/u/RomanStriker)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 4:10pm UTC](https://discourse.slicer.org/t/debugging-a-python-script-in-pycharm/36585 "2024-06-04T16:10:18Z")

</div>

Hi, I have a python script that I would like to debug step by step. I managed to attach Pycharm’s remote debugger to Slicer using these instructions, however, I cannot run the python script in the Slicer GUI’s python co…

---

## [Is there interest in a reader for cardiac electrophysiology electronanatomic maps?](https://discourse.slicer.org/t/is-there-interest-in-a-reader-for-cardiac-electrophysiology-electronanatomic-maps/6356)

<div class="topic-metadata">

**Author:** [@stephan](https://discourse.slicer.org/u/stephan)\
**Replies:** 24\
**Last updated:** [June 4, 2024, 4:03pm UTC](https://discourse.slicer.org/t/is-there-interest-in-a-reader-for-cardiac-electrophysiology-electronanatomic-maps/6356 "2024-06-04T16:03:47Z")

</div>

Hi, for a research project I developed a python scripted module that reads data exported from cardiac electroanatomic mapping systems (Ensite Velocity, CARTO 3, and Rhythmia) and creates models in Slicer from it (with t…

---

## [Can I automate just importing files, changing their type, and then saving them?](https://discourse.slicer.org/t/can-i-automate-just-importing-files-changing-their-type-and-then-saving-them/36501)

<div class="topic-metadata">

**Author:** [@tryingToCode](https://discourse.slicer.org/u/tryingToCode)\
**Replies:** 3\
**Last updated:** [June 3, 2024, 7:41pm UTC](https://discourse.slicer.org/t/can-i-automate-just-importing-files-changing-their-type-and-then-saving-them/36501 "2024-06-03T19:41:03Z")

</div>

I am trying to write a Python script that imports .msg files into 3D Slicer and saves them as nii files. I’ve never automated anything and I am having a bit of a hard time understanding how to write scripts and run them.…

---

## [Save a tree of centerline curves to json files using Python](https://discourse.slicer.org/t/save-a-tree-of-centerline-curves-to-json-files-using-python/36574)

<div class="topic-metadata">

**Author:** [@ruili](https://discourse.slicer.org/u/ruili)\
**Replies:** 1\
**Last updated:** [June 3, 2024, 3:41pm UTC](https://discourse.slicer.org/t/save-a-tree-of-centerline-curves-to-json-files-using-python/36574 "2024-06-03T15:41:50Z")

</div>

Hello, I have created a tree of centerline curves using functions from the “Extract Centerline” module, and now I want to save the curves in a file structure that can reflect the tree structure. In Slicer, I can do this…

---

## [Display node full fill view](https://discourse.slicer.org/t/display-node-full-fill-view/36564)

<div class="topic-metadata">

**Author:** [@fqzhice](https://discourse.slicer.org/u/fqzhice)\
**Replies:** 2\
**Last updated:** [June 3, 2024, 2:14pm UTC](https://discourse.slicer.org/t/display-node-full-fill-view/36564 "2024-06-03T14:14:44Z")

</div>

we create a new extension to load dicom image, code as below: // add to volume node double dirs\[3\]\[3\]; for (int i = 0; i \< 3; i++) for (int j = 0; j \< 3; j++) dirs\[i\]\[j\] = 0.0; dirs\[0\]\[0\] = 1; dirs\[1\]\[1\] = 1; dir…

---

## [Compute co-occurrence matrix from DICOM](https://discourse.slicer.org/t/compute-co-occurrence-matrix-from-dicom/36539)

<div class="topic-metadata">

**Author:** [@sajad\_amiri](https://discourse.slicer.org/u/sajad_amiri)\
**Replies:** 2\
**Last updated:** [June 3, 2024, 11:55am UTC](https://discourse.slicer.org/t/compute-co-occurrence-matrix-from-dicom/36539 "2024-06-03T11:55:15Z")

</div>

Hello friends, I want to know how we can extract the matrices themselves from our DICOM. for example, I want to have a Co-occurrence matrix . to produce new features from this matrix. how can I extract the matrix?

---

## [Issue when enabling the new interaction transform handler using script](https://discourse.slicer.org/t/issue-when-enabling-the-new-interaction-transform-handler-using-script/36509)

<div class="topic-metadata">

**Author:** [@chz31](https://discourse.slicer.org/u/chz31)\
**Replies:** 2\
**Last updated:** [May 31, 2024, 6:14pm UTC](https://discourse.slicer.org/t/issue-when-enabling-the-new-interaction-transform-handler-using-script/36509 "2024-05-31T18:14:01Z")

</div>

Hi, I met a strange issue when I tried to enable interaction transform handler using script using the newest preview Slicer 5.7.0-2024-05-28 in Mac. The command interactionTransformNode.GetDisplayNode().SetEditorVisibi…

---

## [Change slice offset automatically](https://discourse.slicer.org/t/change-slice-offset-automatically/36483)

<div class="topic-metadata">

**Author:** [@Xiaojie\_Guo](https://discourse.slicer.org/u/Xiaojie_Guo)\
**Replies:** 2\
**Last updated:** [May 31, 2024, 1:54am UTC](https://discourse.slicer.org/t/change-slice-offset-automatically/36483 "2024-05-31T01:54:30Z")

</div>

Hi, all I saw a script here, which could change the Red slice. Suppose there is a CT data of 512 slices. I want to scroll from slice 0 to slice 511 automatically, is it possible to implement that using a python script? …

---

## [Layout Manager cannot get the right qMRMLSliceWidget](https://discourse.slicer.org/t/layout-manager-cannot-get-the-right-qmrmlslicewidget/36460)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Replies:** 3\
**Last updated:** [May 30, 2024, 3:29am UTC](https://discourse.slicer.org/t/layout-manager-cannot-get-the-right-qmrmlslicewidget/36460 "2024-05-30T03:29:05Z")

</div>

I create a qMRMLSliceWidget by using this scipt. \>\>\> # layout name is used to create and identify the underlying slice node and should be set to a value that is not used in any of the layouts owned by the layout manage…

---

## [Getting voxel values of a segment](https://discourse.slicer.org/t/getting-voxel-values-of-a-segment/36478)

<div class="topic-metadata">

**Author:** [@Pierre\_Lemois](https://discourse.slicer.org/u/Pierre_Lemois)\
**Replies:** 1\
**Last updated:** [May 29, 2024, 8:01pm UTC](https://discourse.slicer.org/t/getting-voxel-values-of-a-segment/36478 "2024-05-29T20:01:59Z")

</div>

I have an MRI image and a segmentation of an area. I need to obtain the values of each voxel in a segment. I’ve followed the documentation, in particular the section: Get histogram of a segmented region. But I can’t find…

---

## [Visualizing 3D polydata of the model in 2D slice view](https://discourse.slicer.org/t/visualizing-3d-polydata-of-the-model-in-2d-slice-view/4010)

<div class="topic-metadata">

**Author:** [@Feodor](https://discourse.slicer.org/u/Feodor)\
**Replies:** 13\
**Last updated:** [May 29, 2024, 2:28pm UTC](https://discourse.slicer.org/t/visualizing-3d-polydata-of-the-model-in-2d-slice-view/4010 "2024-05-29T14:28:22Z")

</div>

Hi all. The idea is to display the 3d model in the same way as its intersection with the slice plane, that is each 2D slice view display the 3d model from its own “angle of view”. I’m trying to add the polydata of the…

---

## [Plane markup json files - how to create "baseToNode" and "orientation" matrices](https://discourse.slicer.org/t/plane-markup-json-files-how-to-create-basetonode-and-orientation-matrices/31826)

<div class="topic-metadata">

**Author:** [@drobny](https://discourse.slicer.org/u/drobny)\
**Replies:** 4\
**Last updated:** [May 29, 2024, 3:13am UTC](https://discourse.slicer.org/t/plane-markup-json-files-how-to-create-basetonode-and-orientation-matrices/31826 "2024-05-29T03:13:15Z")

</div>

Hi, I’m looking into using slicer for the visualisation of results from another tool. Therefore, I’d like to import plane definitions to quickly inspect whether they are as expected. I use a point and normal vector in …

---

## [Show slice intersection line only in specific view](https://discourse.slicer.org/t/show-slice-intersection-line-only-in-specific-view/36275)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 6\
**Last updated:** [May 28, 2024, 6:46pm UTC](https://discourse.slicer.org/t/show-slice-intersection-line-only-in-specific-view/36275 "2024-05-28T18:46:52Z")

</div>

Hi all, I would like to show intersection line of 2D view only in Axial view. I tried codes below, but it still remain other view. Could I get sloution about this ? def intersectionOnOff(self, flag): slic…

---

## [Remove intesection lines in specific 2D view](https://discourse.slicer.org/t/remove-intesection-lines-in-specific-2d-view/36430)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 0\
**Last updated:** [May 28, 2024, 11:20am UTC](https://discourse.slicer.org/t/remove-intesection-lines-in-specific-2d-view/36430 "2024-05-28T11:20:53Z")

</div>

Hi all, I posted a question last time but did not get solution, so I’m posting it again. I created four 2D slice views looks like the video below. Among these, I only want to display the intersection view in the axial…

---

## [How to update markupsCurve info when it terminated right-click end?](https://discourse.slicer.org/t/how-to-update-markupscurve-info-when-it-terminated-right-click-end/36423)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [May 28, 2024, 1:24am UTC](https://discourse.slicer.org/t/how-to-update-markupscurve-info-when-it-terminated-right-click-end/36423 "2024-05-28T01:24:33Z")

</div>

Hi all, I am using the PointModifiedEvent to update curve information when drawing a curve. When I end the curve drawing interaction with a right-click, I noticed that information from undefined parts remains. To addr…

---

## [How to Copy Nodes with Synchronization](https://discourse.slicer.org/t/how-to-copy-nodes-with-synchronization/36342)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 2\
**Last updated:** [May 28, 2024, 1:22am UTC](https://discourse.slicer.org/t/how-to-copy-nodes-with-synchronization/36342 "2024-05-28T01:22:50Z")

</div>

Hello all, I would like to apply gridTransform to a specific Slice View (panoramic view) to visualize the data, as shown in the image below. I was advised that the easiest way to do this is to copy all the data, app…

---

## [Segmented NRRD File is 0 Bytes After Editing](https://discourse.slicer.org/t/segmented-nrrd-file-is-0-bytes-after-editing/36387)

<div class="topic-metadata">

**Author:** [@DrBorg](https://discourse.slicer.org/u/DrBorg)\
**Replies:** 0\
**Last updated:** [May 25, 2024, 1:46pm UTC](https://discourse.slicer.org/t/segmented-nrrd-file-is-0-bytes-after-editing/36387 "2024-05-25T13:46:08Z")

</div>

Hello, I’m working with a segmented NRRD file and I’m trying to remove certain segments. I wrote the script, shown below, to do this. It appears to work, however, the output SEG.NRRD outputs the following error when o…

---

## [How to display markups node only in a specific slice view?](https://discourse.slicer.org/t/how-to-display-markups-node-only-in-a-specific-slice-view/36298)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [May 21, 2024, 2:31pm UTC](https://discourse.slicer.org/t/how-to-display-markups-node-only-in-a-specific-slice-view/36298 "2024-05-21T14:31:46Z")

</div>

Hi all I would like to make marksupNode and marksupCurveNode visible only in the red slice. (I prefer them to remain invisible in the green and yellow slices.) Could you please provide an example for achieving this? …

---

## [Automating .vtp export to NIFTI with Slicer Modules](https://discourse.slicer.org/t/automating-vtp-export-to-nifti-with-slicer-modules/36285)

<div class="topic-metadata">

**Author:** [@jag](https://discourse.slicer.org/u/jag)\
**Replies:** 1\
**Last updated:** [May 20, 2024, 10:12pm UTC](https://discourse.slicer.org/t/automating-vtp-export-to-nifti-with-slicer-modules/36285 "2024-05-20T22:12:09Z")

</div>

Hi there, I am trying to convert a .vtp segmentation to a compressed NifTi file. I was able to do it with the Slicer GUI via the following steps: Add data → Choose files → select .vtp file Right click on the imported m…

---

## [Can I center the views on a crosshair position?](https://discourse.slicer.org/t/can-i-center-the-views-on-a-crosshair-position/36244)

<div class="topic-metadata">

**Author:** [@sullivak](https://discourse.slicer.org/u/sullivak)\
**Replies:** 2\
**Last updated:** [May 20, 2024, 9:23pm UTC](https://discourse.slicer.org/t/can-i-center-the-views-on-a-crosshair-position/36244 "2024-05-20T21:23:39Z")

</div>

Hi. I can set the location of crosshairs, e.g. slicer.mrmlScene.GetNodesByClass(‘vtkMRMLCrosshairNode’).GetItemAsObject(0).SetCrosshairRAS(point) but is there a way to re-center the views on that location?

---

## [Customizing 3DSlicer for Video Stream Rendering: Combining ScriptModule for GUI and LoadableModule for Stream Display Without GUI](https://discourse.slicer.org/t/customizing-3dslicer-for-video-stream-rendering-combining-scriptmodule-for-gui-and-loadablemodule-for-stream-display-without-gui/36141)

<div class="topic-metadata">

**Author:** [@herryliq](https://discourse.slicer.org/u/herryliq)\
**Replies:** 5\
**Last updated:** [May 18, 2024, 3:44pm UTC](https://discourse.slicer.org/t/customizing-3dslicer-for-video-stream-rendering-combining-scriptmodule-for-gui-and-loadablemodule-for-stream-display-without-gui/36141 "2024-05-18T15:44:45Z")

</div>

Regarding custom development of 3DSlicer, I am still a newbie and constantly exploring and learning. From the official documentation of 3DSlicer, we can see that there are three types of Modules in 3DSlicer: LoadableMo…

[Previous page](https://discourse.slicer.org/c/dev/5.md?page=18)

[Next page](https://discourse.slicer.org/c/dev/5.md?page=20)
