# Development

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

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

**Page:** 78

---

## [How to capture right clicked](https://discourse.slicer.org/t/how-to-capture-right-clicked/16668)

<div class="topic-metadata">

**Author:** [@luxiaoyang9999](https://discourse.slicer.org/u/luxiaoyang9999)\
**Replies:** 2\
**Last updated:** [April 20, 2021, 11:59am UTC](https://discourse.slicer.org/t/how-to-capture-right-clicked/16668 "2021-04-20T11:59:04Z")

</div>

Hi all, I am looking to capture right clicked and create a new qt page, but I do not know how to do this. Can someone tell me a possible solution

---

## [Extension versions](https://discourse.slicer.org/t/extension-versions/16963)

<div class="topic-metadata">

**Author:** [@LorenzE](https://discourse.slicer.org/u/LorenzE)\
**Replies:** 4\
**Last updated:** [April 19, 2021, 12:59pm UTC](https://discourse.slicer.org/t/extension-versions/16963 "2021-04-19T12:59:32Z")

</div>

Is it possible to build a loadable extension with the newest Slicer version, i.e., 4.13, and install it in an older slicer version, i.e., 4.11?

---

## [How to get the histogram and area](https://discourse.slicer.org/t/how-to-get-the-histogram-and-area/16027)

<div class="topic-metadata">

**Author:** [@BORIPHAT](https://discourse.slicer.org/u/BORIPHAT)\
**Replies:** 6\
**Last updated:** [April 18, 2021, 7:32pm UTC](https://discourse.slicer.org/t/how-to-get-the-histogram-and-area/16027 "2021-04-18T19:32:26Z")

</div>

Hello, I would like to get the histogram and the area. In the beginning, I follow the Calculating distance using Maurer distance map Topic. But when I copy and paste the script into the Python console. I got the below …

---

## [Rendering windows](https://discourse.slicer.org/t/rendering-windows/13774)

<div class="topic-metadata">

**Author:** [@riep](https://discourse.slicer.org/u/riep)\
**Replies:** 13\
**Last updated:** [April 18, 2021, 5:12am UTC](https://discourse.slicer.org/t/rendering-windows/13774 "2021-04-18T05:12:53Z")

</div>

Hi everyone, I would have a question on how we can set the rendering window layer of a specific marker. In the attached figure I have initialize 5 plane nodes with the interaction glyph visible only for the center one. …

---

## [I can't find the TrackerServer.exe in OpenIGTLinkIF module](https://discourse.slicer.org/t/i-cant-find-the-trackerserver-exe-in-openigtlinkif-module/17055)

<div class="topic-metadata">

**Author:** [@wujie](https://discourse.slicer.org/u/wujie)\
**Replies:** 8\
**Last updated:** [April 15, 2021, 12:37pm UTC](https://discourse.slicer.org/t/i-cant-find-the-trackerserver-exe-in-openigtlinkif-module/17055 "2021-04-15T12:37:56Z")

</div>

I can’t find the TrackerServer.exe in OpenIGTLinkIF module

---

## [Linux build instructions lead to using Qt 5.9.5 on Ubuntu 18.04](https://discourse.slicer.org/t/linux-build-instructions-lead-to-using-qt-5-9-5-on-ubuntu-18-04/13188)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 3\
**Last updated:** [April 18, 2021, 5:07am UTC](https://discourse.slicer.org/t/linux-build-instructions-lead-to-using-qt-5-9-5-on-ubuntu-18-04/13188 "2021-04-18T05:07:31Z")

</div>

I followed the build instructions for Linux, and the prerequisites install command for Ubuntu apparently downloaded Qt 5.9.5, at least this is what the CMake configure output said. The Ubuntu version mentioned in the in…

---

## [C++11 modernization, update to ITK5, removal of obsolete Qt4 and VTK7 support](https://discourse.slicer.org/t/c-11-modernization-update-to-itk5-removal-of-obsolete-qt4-and-vtk7-support/6165)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 2\
**Last updated:** [April 18, 2021, 5:00am UTC](https://discourse.slicer.org/t/c-11-modernization-update-to-itk5-removal-of-obsolete-qt4-and-vtk7-support/6165 "2021-04-18T05:00:06Z")

</div>

This past week we were busy modernizing the Slicer code base to: support only C++11 (including update to use nullptr and override keywords) use ITKv5 remove obsolete Qt4/VTK7 support. Thanks to @phcerdan, @hjmjohnson …

---

## [Very simple extension to change 3d view colors](https://discourse.slicer.org/t/very-simple-extension-to-change-3d-view-colors/17142)

<div class="topic-metadata">

**Author:** [@smallvalthoss](https://discourse.slicer.org/u/smallvalthoss)\
**Replies:** 1\
**Last updated:** [April 17, 2021, 12:46am UTC](https://discourse.slicer.org/t/very-simple-extension-to-change-3d-view-colors/17142 "2021-04-17T00:46:51Z")

</div>

Not sure if this has already been implemented, but here is the link: GitHub - smallvalthoss/ChangeViewBackgroundColors: To be able to change the background color of a scene view for 3DSlicer

---

## [FYI - Windows packages out of date](https://discourse.slicer.org/t/fyi-windows-packages-out-of-date/17103)

<div class="topic-metadata">

**Author:** [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Replies:** 1\
**Last updated:** [April 16, 2021, 1:23pm UTC](https://discourse.slicer.org/t/fyi-windows-packages-out-of-date/17103 "2021-04-16T13:23:51Z")

</div>

Due to this issue, nightly Windows packages are not building are so are a few days out of date on the download page. We anticipate that this will be fixed in the next day or so.

---

## [How to display web page in a dialog using Python?](https://discourse.slicer.org/t/how-to-display-web-page-in-a-dialog-using-python/17112)

<div class="topic-metadata">

**Author:** [@spycolyf](https://discourse.slicer.org/u/spycolyf)\
**Replies:** 9\
**Last updated:** [April 16, 2021, 2:09am UTC](https://discourse.slicer.org/t/how-to-display-web-page-in-a-dialog-using-python/17112 "2021-04-16T02:09:57Z")

</div>

Good afternoon @pieper @jcfr @lassoan, I am working on issue, Help Link Button #65. I would like to launch a help webpage when the user pushes the “Help” button. This seems fairly simple I know, but I finally have a li…

---

## [Is there a way to load images using the Python Interactor in Slicer?](https://discourse.slicer.org/t/is-there-a-way-to-load-images-using-the-python-interactor-in-slicer/17113)

<div class="topic-metadata">

**Author:** [@spycolyf](https://discourse.slicer.org/u/spycolyf)\
**Replies:** 1\
**Last updated:** [April 14, 2021, 7:17pm UTC](https://discourse.slicer.org/t/is-there-a-way-to-load-images-using-the-python-interactor-in-slicer/17113 "2021-04-14T19:17:00Z")

</div>

@jcfr @pieper @lassoan Is there a way to load images using the Python Interactor in slicer? SlicerQREADS hides the menu bar in Slicer so I don’t have access to the file menu and the “Add Data” menu item.

---

## [CTK build error](https://discourse.slicer.org/t/ctk-build-error/17083)

<div class="topic-metadata">

**Author:** [@1116](https://discourse.slicer.org/u/1116)\
**Replies:** 0\
**Last updated:** [April 14, 2021, 10:51am UTC](https://discourse.slicer.org/t/ctk-build-error/17083 "2021-04-14T10:51:11Z")

</div>

I’m building 3dSlicer in release version Due to errors during CTK build, Slicer.exe doesn’t exist. Is there Any way to suppress those warnings? those prerequisites were used: MSVC v142 - VS2019 C++ x64 CMake 3.19.2 …

---

## [Display and interact with a vtkMRMLAnnotationROINode() in the view](https://discourse.slicer.org/t/display-and-interact-with-a-vtkmrmlannotationroinode-in-the-view/17056)

<div class="topic-metadata">

**Author:** [@ond12](https://discourse.slicer.org/u/ond12)\
**Replies:** 2\
**Last updated:** [April 14, 2021, 7:23am UTC](https://discourse.slicer.org/t/display-and-interact-with-a-vtkmrmlannotationroinode-in-the-view/17056 "2021-04-14T07:23:00Z")

</div>

Hi Slicer Community, I apologize in advance if the answer to my question is out there. I’ve seen related threads, but I haven’t manage to get my solution to work. I’m using slicer 4.11 I would like to create a vtkMRM…

---

## [How to add segment editor erase tool logic which is in C++ to a dummy python tool?](https://discourse.slicer.org/t/how-to-add-segment-editor-erase-tool-logic-which-is-in-c-to-a-dummy-python-tool/16781)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 1\
**Last updated:** [April 14, 2021, 5:54am UTC](https://discourse.slicer.org/t/how-to-add-segment-editor-erase-tool-logic-which-is-in-c-to-a-dummy-python-tool/16781 "2021-04-14T05:54:36Z")

</div>

So I was able to create a copy of the smoothing tool in segment editor and name it as “x” (using info from:How can I create a copy of the segment editor erase effect and rename it?), but how can I add C++ functionality o…

---

## [How to through the script call "Colors" plug-in modules and the API?](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897)

<div class="topic-metadata">

**Author:** [@RanChenSignIn](https://discourse.slicer.org/u/RanChenSignIn)\
**Replies:** 6\
**Last updated:** [April 14, 2021, 1:50am UTC](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897 "2021-04-14T01:50:08Z")

</div>

Operating system: Slicer version: Expected behavior: Actual behavior: How to through the script call “Colors” plug-in modules and the API ? Anyone can give me some advice? thank you!

---

## [How to support non-ASCII encoded file paths in python?](https://discourse.slicer.org/t/how-to-support-non-ascii-encoded-file-paths-in-python/15639)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 3\
**Last updated:** [January 23, 2021, 3:22pm UTC](https://discourse.slicer.org/t/how-to-support-non-ascii-encoded-file-paths-in-python/15639 "2021-01-23T15:22:02Z")

</div>

Slicer should start python when it starts. I want to know where the python source files are. I want to add the code #coding:utf-8 to it so that it can support non-ASCII encoded file paths.

---

## [Brain resample module issue](https://discourse.slicer.org/t/brain-resample-module-issue/17046)

<div class="topic-metadata">

**Author:** [@Ludovic\_Ferrer](https://discourse.slicer.org/u/Ludovic_Ferrer)\
**Replies:** 4\
**Last updated:** [April 13, 2021, 11:52am UTC](https://discourse.slicer.org/t/brain-resample-module-issue/17046 "2021-04-13T11:52:18Z")

</div>

Hi everybody, I found a weird behaviour to brains resample module on some PET/CT images I have. Despite that PET/CT ScalarVolumesNodes are correctly displayed with correct informations as regards to the volume properti…

---

## [Sending fiducial points via OpenIGTLinkIF](https://discourse.slicer.org/t/sending-fiducial-points-via-openigtlinkif/5614)

<div class="topic-metadata">

**Author:** [@Chai\_Chun\_Lok](https://discourse.slicer.org/u/Chai_Chun_Lok)\
**Replies:** 8\
**Last updated:** [March 14, 2019, 2:48am UTC](https://discourse.slicer.org/t/sending-fiducial-points-via-openigtlinkif/5614 "2019-03-14T02:48:48Z")

</div>

Hi, I have some questions regarding “OpenIGTLinkIF”. I can see that it can used to send linear transforms in Slicer with an OpenIGTLink example (TrackerServer). However, I found that the I/O configuration can only choose…

---

## [Changing Units for a vtkMRMLScalarVolume Node](https://discourse.slicer.org/t/changing-units-for-a-vtkmrmlscalarvolume-node/17015)

<div class="topic-metadata">

**Author:** [@nathanbmnt](https://discourse.slicer.org/u/nathanbmnt)\
**Replies:** 2\
**Last updated:** [April 12, 2021, 6:59pm UTC](https://discourse.slicer.org/t/changing-units-for-a-vtkmrmlscalarvolume-node/17015 "2021-04-12T18:59:22Z")

</div>

I currently have a module where I load a volume with units of “Shear Wave Velocity”. I want users to be able to select different units for the volume such as “Young’s Modulus” or “Shear Modulus”. When different units are…

---

## [Sliceview crash?](https://discourse.slicer.org/t/sliceview-crash/17007)

<div class="topic-metadata">

**Author:** [@roozbehshams](https://discourse.slicer.org/u/roozbehshams)\
**Replies:** 3\
**Last updated:** [April 8, 2021, 10:13pm UTC](https://discourse.slicer.org/t/sliceview-crash/17007 "2021-04-08T22:13:36Z")

</div>

Hi, In our setup we have a live EM-tracked US showing in the red sliceview (through PlusServer). There are times when this happens to the sliceview: There is a corresponding error message in slicer’s log: \[WARNING\]…

---

## [RFC: New "format" to store custom annotation for a custom slicer application](https://discourse.slicer.org/t/rfc-new-format-to-store-custom-annotation-for-a-custom-slicer-application/17005)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 1\
**Last updated:** [April 8, 2021, 6:19pm UTC](https://discourse.slicer.org/t/rfc-new-format-to-store-custom-annotation-for-a-custom-slicer-application/17005 "2021-04-08T18:19:49Z")

</div>

In the context of the Cell Locator project, a Slicer-based custom application to manually aligning specimens to annotated 3D spaces, we developed a json-based format to store annotation. Current Until now the format ha…

---

## [Building Slicer v4.11.20210226 on Win10](https://discourse.slicer.org/t/building-slicer-v4-11-20210226-on-win10/16999)

<div class="topic-metadata">

**Author:** [@LorenzE](https://discourse.slicer.org/u/LorenzE)\
**Replies:** 1\
**Last updated:** [April 8, 2021, 5:00pm UTC](https://discourse.slicer.org/t/building-slicer-v4-11-20210226-on-win10/16999 "2021-04-08T17:00:28Z")

</div>

I tried to build Slicer at tag v4.11.20210226 on Win10. Git version is 2.31.1. CMake version is 3.19.2. Here is what I did: cd C:/ mkdir Git cd Git git clone https://github.com/Slicer/Slicer.git S4 cd S4 git reset --har…

---

## [Question on using SlicerGT Texture mapping](https://discourse.slicer.org/t/question-on-using-slicergt-texture-mapping/16971)

<div class="topic-metadata">

**Author:** [@jackxiong](https://discourse.slicer.org/u/jackxiong)\
**Replies:** 2\
**Last updated:** [April 8, 2021, 9:20am UTC](https://discourse.slicer.org/t/question-on-using-slicergt-texture-mapping/16971 "2021-04-08T09:20:05Z")

</div>

Hi Andras, maybe this is a simple question, but I really need your help. I have the requirement of using gradient color jpg file make a texture mapping on 3D surface, I have draft code with pure vtk, and it got the expec…

---

## [Can I extract the outline of a single closed segment?](https://discourse.slicer.org/t/can-i-extract-the-outline-of-a-single-closed-segment/9360)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Replies:** 6\
**Last updated:** [April 8, 2021, 8:46am UTC](https://discourse.slicer.org/t/can-i-extract-the-outline-of-a-single-closed-segment/9360 "2021-04-08T08:46:49Z")

</div>

Can I extract the outline/contour of each slice of closed segment and then draw a closed curve from it with code?

---

## [FYI - Nightly Windows build / extensions will be late today](https://discourse.slicer.org/t/fyi-nightly-windows-build-extensions-will-be-late-today/16964)

<div class="topic-metadata">

**Author:** [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Replies:** 1\
**Last updated:** [April 7, 2021, 12:26pm UTC](https://discourse.slicer.org/t/fyi-nightly-windows-build-extensions-will-be-late-today/16964 "2021-04-07T12:26:25Z")

</div>

We had to restart the Windows factory process, and so the windows packages won’t be available until later today.

---

## [Histogram equalization of a vector volume](https://discourse.slicer.org/t/histogram-equalization-of-a-vector-volume/16965)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 2\
**Last updated:** [April 6, 2021, 9:42pm UTC](https://discourse.slicer.org/t/histogram-equalization-of-a-vector-volume/16965 "2021-04-06T21:42:13Z")

</div>

Hi, is there a way to apply a histogram equalization on vector volumes just for display purposes? I wrote a code that performs it, but by altering the data array directly, and saving the original result when the user dec…

---

## [Select nearest neighbour voxels using some voxels as reference?](https://discourse.slicer.org/t/select-nearest-neighbour-voxels-using-some-voxels-as-reference/16175)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 11\
**Last updated:** [April 6, 2021, 1:49pm UTC](https://discourse.slicer.org/t/select-nearest-neighbour-voxels-using-some-voxels-as-reference/16175 "2021-04-06T13:49:37Z")

</div>

Hi, Is there a possibility to select nearest neighbor voxels in an MRI based on the label-map. For-example I have the voxels based on some label. then I need to find nearest neighbour voxels that dont belong to voxels i…

---

## [Is it possible to create a custom toolbars on SlicerCAT/Slicer3d](https://discourse.slicer.org/t/is-it-possible-to-create-a-custom-toolbars-on-slicercat-slicer3d/16944)

<div class="topic-metadata">

**Author:** [@oren](https://discourse.slicer.org/u/oren)\
**Replies:** 1\
**Last updated:** [April 6, 2021, 1:40pm UTC](https://discourse.slicer.org/t/is-it-possible-to-create-a-custom-toolbars-on-slicercat-slicer3d/16944 "2021-04-06T13:40:22Z")

</div>

Operating system:Windows Slicer version:latest Expected behavior: Actual behavior: Hi Is it possible to create a custom toolbars on Slicer3d / SlicerCAT ? I wish to that the ‘favorites toolbar’ will be visible when…

---

## [Running SlicerCAT with user defined toolbars and menues](https://discourse.slicer.org/t/running-slicercat-with-user-defined-toolbars-and-menues/16943)

<div class="topic-metadata">

**Author:** [@oren](https://discourse.slicer.org/u/oren)\
**Replies:** 2\
**Last updated:** [April 5, 2021, 5:29pm UTC](https://discourse.slicer.org/t/running-slicercat-with-user-defined-toolbars-and-menues/16943 "2021-04-05T17:29:00Z")

</div>

Hi I am trying to define the Slicer toolbar (‘Favorites’ toolbar) I have edit ‘CMakeLists.txt’: set(Slicer\_DEFAULT\_FAVORITE\_MODULES “Crop Volume, SegmentEditor”) as described in I have build the project using visua…

---

## [Mac factory error - "svn: error: Failed to locate 'svn'."](https://discourse.slicer.org/t/mac-factory-error-svn-error-failed-to-locate-svn/16938)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Replies:** 8\
**Last updated:** [April 5, 2021, 2:33pm UTC](https://discourse.slicer.org/t/mac-factory-error-svn-error-failed-to-locate-svn/16938 "2021-04-05T14:33:06Z")

</div>

There is an error for the dcmqi extension on the mac factory here: CDash I have a Slicer build on my mac, and I also don’t have svn, but extension build does not fail the same way. Here’s what I get when building loc…

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

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