# Development

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

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

**Page:** 17

---

## [Improving Rendering Response Time by Reducing Volume Rendering Quality](https://discourse.slicer.org/t/improving-rendering-response-time-by-reducing-volume-rendering-quality/37750)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 2\
**Last updated:** [August 13, 2024, 12:28pm UTC](https://discourse.slicer.org/t/improving-rendering-response-time-by-reducing-volume-rendering-quality/37750 "2024-08-13T12:28:25Z")

</div>

Hello, I am working on volume rendering and displaying multiple meshes simultaneously (Like below figure). The problem is that the rendering response time slows down as the number of models increases. It seems this is …

---

## [How to Run a Built Slicer Loadable Module on a Released Slicer Version](https://discourse.slicer.org/t/how-to-run-a-built-slicer-loadable-module-on-a-released-slicer-version/37832)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 8\
**Last updated:** [August 13, 2024, 12:12pm UTC](https://discourse.slicer.org/t/how-to-run-a-built-slicer-loadable-module-on-a-released-slicer-version/37832 "2024-08-13T12:12:39Z")

</div>

Hello, I am currently developing a loadable module for 3D Slicer and have successfully built the module. I have also tested running the module within the built version of Slicer. One thing I am curious about is how to …

---

## [Distance Calculation Between Two Model Nodes](https://discourse.slicer.org/t/distance-calculation-between-two-model-nodes/37839)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 2\
**Last updated:** [August 13, 2024, 12:11pm UTC](https://discourse.slicer.org/t/distance-calculation-between-two-model-nodes/37839 "2024-08-13T12:11:37Z")

</div>

Hello, I have two model nodes: one that moves based on a transform handle and another that is fixed. I want to find the shortest distance between these two model nodes. I’ve implemented this functionality with the code…

---

## [InteractionEndEvent for TransformNode](https://discourse.slicer.org/t/interactionendevent-for-transformnode/37852)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 0\
**Last updated:** [August 13, 2024, 12:10pm UTC](https://discourse.slicer.org/t/interactionendevent-for-transformnode/37852 "2024-08-13T12:10:04Z")

</div>

Hello, I would like to trigger an event when the interaction with the transform node’s handles in Slicer 5.7 ends after modifying the transform (similar to the PointEndInteractionEvent feature in Markups). So far, I’ve…

---

## [Build errors with slicer](https://discourse.slicer.org/t/build-errors-with-slicer/36817)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 12:15am UTC](https://discourse.slicer.org/t/build-errors-with-slicer/36817 "2024-08-13T00:15:37Z")

</div>

When I compile Slicer, it always shows the following error. I am using the main version from GitHub. Can someone tell me how to solve this problem?

---

## [Display text on 3D stereoscopic views](https://discourse.slicer.org/t/display-text-on-3d-stereoscopic-views/37807)

<div class="topic-metadata">

**Author:** [@Laura\_A](https://discourse.slicer.org/u/Laura_A)\
**Replies:** 3\
**Last updated:** [August 12, 2024, 11:04pm UTC](https://discourse.slicer.org/t/display-text-on-3d-stereoscopic-views/37807 "2024-08-12T23:04:06Z")

</div>

How can I display text in pop-up 3D views? Steps I follow: I create and show a right and left view with the following code: layoutName = "LeftEyeView" layoutLabel = "Left Eye" layoutColor = \[1.0, 1.0, 0.0\] viewOwner…

---

## [Centerline extraction C++ having different result from the slicer](https://discourse.slicer.org/t/centerline-extraction-c-having-different-result-from-the-slicer/32370)

<div class="topic-metadata">

**Author:** [@liy0na](https://discourse.slicer.org/u/liy0na)\
**Replies:** 2\
**Last updated:** [August 12, 2024, 12:47pm UTC](https://discourse.slicer.org/t/centerline-extraction-c-having-different-result-from-the-slicer/32370 "2024-08-12T12:47:56Z")

</div>

Hello, I have an STL file containing a surface mesh. When I use the slicer I can easily extract the centerlines from it. However when I use the following C++ code. I am only getting 3 output points. vtkSmartPointe…

---

## [How can I get an array from seg.nrrd file in Python?](https://discourse.slicer.org/t/how-can-i-get-an-array-from-seg-nrrd-file-in-python/37842)

<div class="topic-metadata">

**Author:** [@rim](https://discourse.slicer.org/u/rim)\
**Replies:** 1\
**Last updated:** [August 12, 2024, 12:42pm UTC](https://discourse.slicer.org/t/how-can-i-get-an-array-from-seg-nrrd-file-in-python/37842 "2024-08-12T12:42:27Z")

</div>

I want to read the data from the seg.nrrd file using the nrrd.read() function and obtain it in array format as a 3D array. However, the data in the seg.nrrd file consists only of arrays filled with zeros. What might I b…

---

## [Python script to load and output DICOM](https://discourse.slicer.org/t/python-script-to-load-and-output-dicom/37741)

<div class="topic-metadata">

**Author:** [@mingtian126](https://discourse.slicer.org/u/mingtian126)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 5:43pm UTC](https://discourse.slicer.org/t/python-script-to-load-and-output-dicom/37741 "2024-08-06T17:43:52Z")

</div>

Hello, I try to write a python script to do elastix registration in a batch (loop through many subjects). Could you please share some python script to load DICOM series from a folder and Output the volume to DICOM as wel…

---

## [Matching Monai orientation with "arrayFromVolume" output](https://discourse.slicer.org/t/matching-monai-orientation-with-arrayfromvolume-output/37810)

<div class="topic-metadata">

**Author:** [@chbricout](https://discourse.slicer.org/u/chbricout)\
**Replies:** 1\
**Last updated:** [August 11, 2024, 9:32pm UTC](https://discourse.slicer.org/t/matching-monai-orientation-with-arrayfromvolume-output/37810 "2024-08-11T21:32:51Z")

</div>

Hi everyone, I’m developing a simple extension to integrate a motion estimation model into Slicer. I’m using MONAI for most of the training, including data loading. However, I’ve noticed that the volume I get when using…

---

## [Long path using ninja](https://discourse.slicer.org/t/long-path-using-ninja/1702)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 13\
**Last updated:** [December 27, 2017, 4:21pm UTC](https://discourse.slicer.org/t/long-path-using-ninja/1702 "2017-12-27T16:21:39Z")

</div>

Configuring Slicer with ninja as the make program, and VS2015 cl.exe as compiler, I run into the error below. This doesn’t happen with pure VS2015 build in one letter longer build dir (C:/Dev/Sn/ vs C:/Dev/Svs/). Is ninj…

---

## [Semi automatic annotation of 2D image based on specific features](https://discourse.slicer.org/t/semi-automatic-annotation-of-2d-image-based-on-specific-features/37805)

<div class="topic-metadata">

**Author:** [@calrnence](https://discourse.slicer.org/u/calrnence)\
**Replies:** 0\
**Last updated:** [August 9, 2024, 9:11pm UTC](https://discourse.slicer.org/t/semi-automatic-annotation-of-2d-image-based-on-specific-features/37805 "2024-08-09T21:11:45Z")

</div>

Hello, For this project I am working on, I am trying to use Python to draw a circle where the circle’s edge sits on an outline of a specific feature in a 2D image. I would like the program to be able to automatically id…

---

## [How can we make a http get request from a plugin](https://discourse.slicer.org/t/how-can-we-make-a-http-get-request-from-a-plugin/37668)

<div class="topic-metadata">

**Author:** [@maniron](https://discourse.slicer.org/u/maniron)\
**Replies:** 6\
**Last updated:** [August 9, 2024, 4:13am UTC](https://discourse.slicer.org/t/how-can-we-make-a-http-get-request-from-a-plugin/37668 "2024-08-09T04:13:05Z")

</div>

Hi, I am trying to hit my backend flask python server from the plugin which is integrated with 3D slicer but due to some reasons its not working. Kindly help me out how I can achieve it

---

## [VMTK - cross-sectional perimeter calculation](https://discourse.slicer.org/t/vmtk-cross-sectional-perimeter-calculation/37747)

<div class="topic-metadata">

**Author:** [@JoGervCon](https://discourse.slicer.org/u/JoGervCon)\
**Replies:** 3\
**Last updated:** [August 8, 2024, 5:26pm UTC](https://discourse.slicer.org/t/vmtk-cross-sectional-perimeter-calculation/37747 "2024-08-08T17:26:11Z")

</div>

Hi, I am using the VMTK extension to calculate the cross sectional area of arteries. Is there a function that can calculate the perimeter of the cross sectional area along the centerline?

---

## [Lighting in 3D stereoscopic view](https://discourse.slicer.org/t/lighting-in-3d-stereoscopic-view/37769)

<div class="topic-metadata">

**Author:** [@Laura\_A](https://discourse.slicer.org/u/Laura_A)\
**Replies:** 1\
**Last updated:** [August 8, 2024, 12:46pm UTC](https://discourse.slicer.org/t/lighting-in-3d-stereoscopic-view/37769 "2024-08-08T12:46:42Z")

</div>

I am trying to apply the lighting of the 3D view a the left and right eye 3D stereoscopic views, but the lighting is only applied to the view in the 3D Slicer UI. Steps I follow: Load a model in 3D Slicer Create 3D st…

---

## [Error while attempting to extract Network Properties](https://discourse.slicer.org/t/error-while-attempting-to-extract-network-properties/37755)

<div class="topic-metadata">

**Author:** [@THartman](https://discourse.slicer.org/u/THartman)\
**Replies:** 2\
**Last updated:** [August 8, 2024, 10:15am UTC](https://discourse.slicer.org/t/error-while-attempting-to-extract-network-properties/37755 "2024-08-08T10:15:25Z")

</div>

I’m working on batch processing several vessel networks to extract the network properties tables, but I am getting the following error on all of the vessels in my dataset. Does anyone have any information on what exactl…

---

## [Precompiled headers to speed up builds](https://discourse.slicer.org/t/precompiled-headers-to-speed-up-builds/37760)

<div class="topic-metadata">

**Author:** [@aymeric.chataigner](https://discourse.slicer.org/u/aymeric.chataigner)\
**Replies:** 0\
**Last updated:** [August 8, 2024, 7:03am UTC](https://discourse.slicer.org/t/precompiled-headers-to-speed-up-builds/37760 "2024-08-08T07:03:58Z")

</div>

Hi, I would like to precompile Qt, Vtk and Itk headers to speed up the build in the Slicer-build directory. I created some empty libraries in Libs directory to precompile the most common headers (QString, QObject, VtkO…

---

## [Scissors segment, rectangle shape selection from a python script](https://discourse.slicer.org/t/scissors-segment-rectangle-shape-selection-from-a-python-script/30757)

<div class="topic-metadata">

**Author:** [@Honeee](https://discourse.slicer.org/u/Honeee)\
**Replies:** 1\
**Last updated:** [August 8, 2024, 1:55am UTC](https://discourse.slicer.org/t/scissors-segment-rectangle-shape-selection-from-a-python-script/30757 "2024-08-08T01:55:40Z")

</div>

Operating system: Windows Slicer version: 5.2.2 Hello, I’m a beginner on 3D Slicer and I’m struggling on a project. I aim to write a program in the application startup script .slicerrc.py which should enable me to imp…

---

## [Py file has no effect after translation](https://discourse.slicer.org/t/py-file-has-no-effect-after-translation/37708)

<div class="topic-metadata">

**Author:** [@MikhayEeer](https://discourse.slicer.org/u/MikhayEeer)\
**Replies:** 3\
**Last updated:** [August 7, 2024, 9:35am UTC](https://discourse.slicer.org/t/py-file-has-no-effect-after-translation/37708 "2024-08-07T09:35:02Z")

</div>

Hello, I built the source code of slicer according to the instructions in the document, and used update\_translation.py to generate .ts files. However, when I opened the software and used the languagetools extension, I fo…

---

## [please help me！！error install total segmentator module！！](https://discourse.slicer.org/t/please-help-me-error-install-total-segmentator-module/37736)

<div class="topic-metadata">

**Author:** [@hjl](https://discourse.slicer.org/u/hjl)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 2:07pm UTC](https://discourse.slicer.org/t/please-help-me-error-install-total-segmentator-module/37736 "2024-08-06T14:07:46Z")

</div>

I encountered this problem when I downloaded the total segmentator module. In my computer the true path of PythonSlicer.exe is ‘C:/ProgramData/slicer.org/Slicer 5.6.2/bin/PythonSlicer.exe’,not my computer system i…

---

## [Mouse Interaction with ModelNode: Hover and Click Functions](https://discourse.slicer.org/t/mouse-interaction-with-modelnode-hover-and-click-functions/37664)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 2\
**Last updated:** [August 6, 2024, 8:18am UTC](https://discourse.slicer.org/t/mouse-interaction-with-modelnode-hover-and-click-functions/37664 "2024-08-06T08:18:45Z")

</div>

Hello, I want to create a feature that interacts with a modelNode through the mouse. Specifically, when the mouse hovers over a model, I want its color to change, and when clicked, I want the camera to center on that mo…

---

## [How to build & debug correct way of custom loadable-modules](https://discourse.slicer.org/t/how-to-build-debug-correct-way-of-custom-loadable-modules/37713)

<div class="topic-metadata">

**Author:** [@jhan1245](https://discourse.slicer.org/u/jhan1245)\
**Replies:** 0\
**Last updated:** [August 5, 2024, 8:34pm UTC](https://discourse.slicer.org/t/how-to-build-debug-correct-way-of-custom-loadable-modules/37713 "2024-08-05T20:34:15Z")

</div>

Hello, I’m starting development with Slicer for the first time and I’m having trouble finding solid answers or documentation about custom Loadable Modules. I’d like to know how to build and debug a Loadable Module with …

---

## [How to compile MRML library](https://discourse.slicer.org/t/how-to-compile-mrml-library/37669)

<div class="topic-metadata">

**Author:** [@tomasbkk](https://discourse.slicer.org/u/tomasbkk)\
**Replies:** 4\
**Last updated:** [August 5, 2024, 7:11am UTC](https://discourse.slicer.org/t/how-to-compile-mrml-library/37669 "2024-08-05T07:11:59Z")

</div>

I’m trying to separate MRML library from Slicer and be able to build it separtely. So far I’ve gotten Slicer source code and used CMake to create VS solution files but I cannot find the MRML project or any of the other p…

---

## [Generate 360 Panoramic View from CBCT Dicom Images](https://discourse.slicer.org/t/generate-360-panoramic-view-from-cbct-dicom-images/27771)

<div class="topic-metadata">

**Author:** [@NX\_Dev](https://discourse.slicer.org/u/NX_Dev)\
**Replies:** 6\
**Last updated:** [August 3, 2024, 9:43pm UTC](https://discourse.slicer.org/t/generate-360-panoramic-view-from-cbct-dicom-images/27771 "2024-08-03T21:43:25Z")

</div>

I have 288 dicom images of cbct series, I have generated axial, saggital, coronal and also 3d rendering view from these images, the last thing I want to generate is the 360 panoramic view. I am unable to generate it in p…

---

## [Rendering for CT and dsa registration](https://discourse.slicer.org/t/rendering-for-ct-and-dsa-registration/37662)

<div class="topic-metadata">

**Author:** [@fqzhice](https://discourse.slicer.org/u/fqzhice)\
**Replies:** 1\
**Last updated:** [August 2, 2024, 8:53am UTC](https://discourse.slicer.org/t/rendering-for-ct-and-dsa-registration/37662 "2024-08-02T08:53:03Z")

</div>

I made registration from CT to DSA, The right-top image is generated after DRR projection. i want to paint drr image on VR window, Also DSA video is on background layer. The user can move or rotate drr projected image m…

---

## [Load image with correct orientation](https://discourse.slicer.org/t/load-image-with-correct-orientation/36711)

<div class="topic-metadata">

**Author:** [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Replies:** 3\
**Last updated:** [August 1, 2024, 12:45pm UTC](https://discourse.slicer.org/t/load-image-with-correct-orientation/36711 "2024-08-01T12:45:21Z")

</div>

Hi team, Thank you for the help in advance. I’m trying to load 2 images into 3D Slicer. If I load it manually (Import data), 3D Slicer display them in the correct orientation as below. Image 0 (Green view) Image 1…

---

## [Unable to build an extension](https://discourse.slicer.org/t/unable-to-build-an-extension/37655)

<div class="topic-metadata">

**Author:** [@andrew\_why\_not](https://discourse.slicer.org/u/andrew_why_not)\
**Replies:** 1\
**Last updated:** [August 1, 2024, 12:40pm UTC](https://discourse.slicer.org/t/unable-to-build-an-extension/37655 "2024-08-01T12:40:02Z")

</div>

Hello, Trying to build a Python extension for distribution. It is highly required to prepare a .zip file so that users would be able to install it quickly. After performing make package on MacOS, I have a .tar.gz file.…

---

## [How to add and edit module](https://discourse.slicer.org/t/how-to-add-and-edit-module/37626)

<div class="topic-metadata">

**Author:** [@Jessica\_de\_Kort](https://discourse.slicer.org/u/Jessica_de_Kort)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 7:46pm UTC](https://discourse.slicer.org/t/how-to-add-and-edit-module/37626 "2024-07-31T19:46:57Z")

</div>

Hi there. I added a custom module into Slicer but I don’t know how to edit it through Slicer. Do I have to redownload the module everytime?

---

## [Creating Multiple Modules from a Single Module Code](https://discourse.slicer.org/t/creating-multiple-modules-from-a-single-module-code/37642)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 7:41pm UTC](https://discourse.slicer.org/t/creating-multiple-modules-from-a-single-module-code/37642 "2024-07-31T19:41:58Z")

</div>

Hello, I have created a module that works well, and I would like to replicate this task multiple times, (with multiple GUI) creating modules named module1, module2, module3, and so on. The number of replications may var…

---

## [Seeking Guidance on Developing Custom Features using C++ (loadable module / core)](https://discourse.slicer.org/t/seeking-guidance-on-developing-custom-features-using-c-loadable-module-core/37488)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 4\
**Last updated:** [July 31, 2024, 7:16pm UTC](https://discourse.slicer.org/t/seeking-guidance-on-developing-custom-features-using-c-loadable-module-core/37488 "2024-07-31T19:16:33Z")

</div>

Hello, I am currently developing a custom app using Slicer. So far, I have been using Python and Scripted Modules for my development. However, I now need to accomplish the following tasks: Develop Custom Markups Creat…

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

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