# Development

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

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

**Page:** 50

---

## [Is there has a algorithm to find the longgest axis in a model](https://discourse.slicer.org/t/is-there-has-a-algorithm-to-find-the-longgest-axis-in-a-model/25019)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 0\
**Last updated:** [August 31, 2022, 3:09am UTC](https://discourse.slicer.org/t/is-there-has-a-algorithm-to-find-the-longgest-axis-in-a-model/25019 "2022-08-31T03:09:29Z")

</div>

is there has a algorithm to find the longgest axis in a model and find the input point and target point of the longest axis in the model?

---

## [Segment the Active Volume](https://discourse.slicer.org/t/segment-the-active-volume/24728)

<div class="topic-metadata">

**Author:** [@michabermoy](https://discourse.slicer.org/u/michabermoy)\
**Replies:** 3\
**Last updated:** [August 31, 2022, 2:12am UTC](https://discourse.slicer.org/t/segment-the-active-volume/24728 "2022-08-31T02:12:47Z")

</div>

Is it possible to segment the active volume so that all other components of the volume are completely removed? For example:

---

## [How to initialize 100 DataNode for a new created SequenceNode without adding into the scene?](https://discourse.slicer.org/t/how-to-initialize-100-datanode-for-a-new-created-sequencenode-without-adding-into-the-scene/24986)

<div class="topic-metadata">

**Author:** [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Replies:** 1\
**Last updated:** [August 30, 2022, 3:47am UTC](https://discourse.slicer.org/t/how-to-initialize-100-datanode-for-a-new-created-sequencenode-without-adding-into-the-scene/24986 "2022-08-30T03:47:33Z")

</div>

Hi everyone, I am trying to write my first extension module related to sequence annotation but am stuck at the SequenceNode initialization step. I have a SequenceBrowser with one SequenceNode containning 100 vtkMRMLSca…

---

## [Fail to import matlab.engine from python script](https://discourse.slicer.org/t/fail-to-import-matlab-engine-from-python-script/24955)

<div class="topic-metadata">

**Author:** [@wpgao](https://discourse.slicer.org/u/wpgao)\
**Replies:** 5\
**Last updated:** [August 29, 2022, 4:45am UTC](https://discourse.slicer.org/t/fail-to-import-matlab-engine-from-python-script/24955 "2022-08-29T04:45:56Z")

</div>

Hi Guy, Recently, I try to call matlab R2022a in 3D Slicer 5.1.0, but failed! when “import matlab.engine”, 3D Slicer crashed. The problem may occur in line 8 in the file “enginesession.py” in the matlabengine for pyth…

---

## [Difference and use cases for \`vtkMRMLProceduralColorNode\` and \`vtkMRMLColorTableNode\`](https://discourse.slicer.org/t/difference-and-use-cases-for-vtkmrmlproceduralcolornode-and-vtkmrmlcolortablenode/24602)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 3\
**Last updated:** [August 29, 2022, 3:34am UTC](https://discourse.slicer.org/t/difference-and-use-cases-for-vtkmrmlproceduralcolornode-and-vtkmrmlcolortablenode/24602 "2022-08-29T03:34:27Z")

</div>

Hi, I’m wondering what is the difference between vtkMRMLProceduralColorNode and vtkMRMLColorTableNode? For example I can see that vtkMRMLColorTableNode creates discrete color map while vtkMRMLProceduralColorNode create…

---

## [Organizing imports in python extensions that rely on other slicer extensions](https://discourse.slicer.org/t/organizing-imports-in-python-extensions-that-rely-on-other-slicer-extensions/24959)

<div class="topic-metadata">

**Author:** [@pll\_llq](https://discourse.slicer.org/u/pll_llq)\
**Replies:** 5\
**Last updated:** [August 28, 2022, 12:55pm UTC](https://discourse.slicer.org/t/organizing-imports-in-python-extensions-that-rely-on-other-slicer-extensions/24959 "2022-08-28T12:55:20Z")

</div>

I have a file in my scripted python extension that interacts with another extension (SlicerIGT Watchdog specifically). I want to import vtkMRMLWatchdogNode in my python code to use it for type hints. When I add it to the…

---

## [An extension for whole slide microscopic images](https://discourse.slicer.org/t/an-extension-for-whole-slide-microscopic-images/23131)

<div class="topic-metadata">

**Author:** [@gaoyi.cn](https://discourse.slicer.org/u/gaoyi.cn)\
**Replies:** 11\
**Last updated:** [August 28, 2022, 11:03am UTC](https://discourse.slicer.org/t/an-extension-for-whole-slide-microscopic-images/23131 "2022-08-28T11:03:49Z")

</div>

Dear All, Whole slide microscopy histopathology images can be as large as several GB in file size, with jpeg compression. I’m preparing an extension that uses python script module to dynamically load portions of the who…

---

## [Modules failed to be instantiated](https://discourse.slicer.org/t/modules-failed-to-be-instantiated/24912)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 3\
**Last updated:** [August 28, 2022, 3:10am UTC](https://discourse.slicer.org/t/modules-failed-to-be-instantiated/24912 "2022-08-28T03:10:09Z")

</div>

This is fine under debug, but has a lot of errors under Release

---

## [SlicerCustomAppTemplate build fails on Loadable Module](https://discourse.slicer.org/t/slicercustomapptemplate-build-fails-on-loadable-module/24939)

<div class="topic-metadata">

**Author:** [@brandus1](https://discourse.slicer.org/u/brandus1)\
**Replies:** 1\
**Last updated:** [August 27, 2022, 10:35pm UTC](https://discourse.slicer.org/t/slicercustomapptemplate-build-fails-on-loadable-module/24939 "2022-08-27T22:35:41Z")

</div>

I have a SlicerCustomApplication with a loadable module with this tree structure: . ├── CMakeLists.txt ├── Logic │ ├── CMakeLists.txt │ ├── vtkKernelFeedMultiply.cxx │ ├── vtkKernelFeedMultiply.h │ ├── vtkSlicer…

---

## [Markups distorted when zoom isn't constant along different axes](https://discourse.slicer.org/t/markups-distorted-when-zoom-isnt-constant-along-different-axes/24879)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 8:49pm UTC](https://discourse.slicer.org/t/markups-distorted-when-zoom-isnt-constant-along-different-axes/24879 "2022-08-26T20:49:10Z")

</div>

Hi, It is probably predictable that markups may work incorrectly with 3D view where zoom along different axes is different (in the animation Z-axis zoomed 8 times). Does somebody know where to find methods that are res…

---

## [Limit computation only to current slices](https://discourse.slicer.org/t/limit-computation-only-to-current-slices/24335)

<div class="topic-metadata">

**Author:** [@brandus1](https://discourse.slicer.org/u/brandus1)\
**Replies:** 4\
**Last updated:** [August 26, 2022, 8:45pm UTC](https://discourse.slicer.org/t/limit-computation-only-to-current-slices/24335 "2022-08-26T20:45:05Z")

</div>

Hello, I have a 200x200x200 vtk array of 20 components (representing 10 complex numbers). I need to do a fairly heavy matrix multiplication on each set of 20 components. This needs to happen in real time as the user ch…

---

## [Elastix in custom module](https://discourse.slicer.org/t/elastix-in-custom-module/24813)

<div class="topic-metadata">

**Author:** [@Vincebisca](https://discourse.slicer.org/u/Vincebisca)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 3:20pm UTC](https://discourse.slicer.org/t/elastix-in-custom-module/24813 "2022-08-26T15:20:52Z")

</div>

Hello, I want to implement BSpline registration in a custom module in a seamless way for the user. For the registration I want to use Elastix with the “Generic (all)” preset. I imported Elastix logic and used ElastixLo…

---

## [The brain i stripped from T1 volume can render in 3D window,but can't see any info in 2D window](https://discourse.slicer.org/t/the-brain-i-stripped-from-t1-volume-can-render-in-3d-window-but-cant-see-any-info-in-2d-window/24920)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 1:41am UTC](https://discourse.slicer.org/t/the-brain-i-stripped-from-t1-volume-can-render-in-3d-window-but-cant-see-any-info-in-2d-window/24920 "2022-08-26T01:41:32Z")

</div>

the data i have saved in mrb file in dropbox the scene like this i have tryed most of the lookup table,but can’t see 2D info i tryed to convert volume to labelmap volume ,it can be seen in 2D window,but it’s not w…

---

## [Sharing python code between (scripted loadable) modules](https://discourse.slicer.org/t/sharing-python-code-between-scripted-loadable-modules/24921)

<div class="topic-metadata">

**Author:** [@shai-ikko](https://discourse.slicer.org/u/shai-ikko)\
**Replies:** 2\
**Last updated:** [August 25, 2022, 11:07pm UTC](https://discourse.slicer.org/t/sharing-python-code-between-scripted-loadable-modules/24921 "2022-08-25T23:07:48Z")

</div>

Hi, I’m trying to add some functionality to Slicer, and I want to make a couple of separate modules which will use the same underlying libraries. It’s not clear to me if there’s a nice way to do this without explicit sy…

---

## [How to select different segmentation nodes for the Paint effect?](https://discourse.slicer.org/t/how-to-select-different-segmentation-nodes-for-the-paint-effect/24918)

<div class="topic-metadata">

**Author:** [@Dwij\_Mistry](https://discourse.slicer.org/u/Dwij_Mistry)\
**Replies:** 0\
**Last updated:** [August 25, 2022, 12:15pm UTC](https://discourse.slicer.org/t/how-to-select-different-segmentation-nodes-for-the-paint-effect/24918 "2022-08-25T12:15:21Z")

</div>

Dear sir, I have two segment tables. segment table 1 is connected to the default segment selector drop-down, which is “Segmentation” (This configuration will never going to change) segment table 2 is connected to t…

---

## [Cannot hide tool bars and module panel](https://discourse.slicer.org/t/cannot-hide-tool-bars-and-module-panel/24913)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Replies:** 0\
**Last updated:** [August 25, 2022, 7:14am UTC](https://discourse.slicer.org/t/cannot-hide-tool-bars-and-module-panel/24913 "2022-08-25T07:14:09Z")

</div>

I am developing a custom app and want to hide slicer’s tool bars and module panel. Inside the qXXAppMainWindowPrivate::setupUi function , I added several lines at the bottom auto modulePanel = mainWindow-\>findChildre…

---

## [Error while loading the DICOM module in custom application](https://discourse.slicer.org/t/error-while-loading-the-dicom-module-in-custom-application/24831)

<div class="topic-metadata">

**Author:** [@Shoshoda](https://discourse.slicer.org/u/Shoshoda)\
**Replies:** 4\
**Last updated:** [August 24, 2022, 12:41pm UTC](https://discourse.slicer.org/t/error-while-loading-the-dicom-module-in-custom-application/24831 "2022-08-24T12:41:00Z")

</div>

Hello, I have been trying to create a custom application following the SlicerCAT solution from Kitware. I tried to generate a first application to check the good functioning but I have the following problem : some modul…

---

## [Vtkglew-9.1d.dll not found](https://discourse.slicer.org/t/vtkglew-9-1d-dll-not-found/24906)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 0\
**Last updated:** [August 24, 2022, 12:22pm UTC](https://discourse.slicer.org/t/vtkglew-9-1d-dll-not-found/24906 "2022-08-24T12:22:06Z")

</div>

i always get an error when i compile Debug affet i\`ve packaged Release, but the dynamic library exists, has anyone ever been in this situation

---

## [Can't access MarkupFiducialList control points](https://discourse.slicer.org/t/cant-access-markupfiduciallist-control-points/24894)

<div class="topic-metadata">

**Author:** [@ChristophG123](https://discourse.slicer.org/u/ChristophG123)\
**Replies:** 5\
**Last updated:** [August 23, 2022, 9:40pm UTC](https://discourse.slicer.org/t/cant-access-markupfiduciallist-control-points/24894 "2022-08-23T21:40:01Z")

</div>

Slicer Version: 5.1.0-2022-07-17 OS: Windows 10 Hi, I’m not sure why, but when I try accessing control points from my MarkupFiducialList, it says it doesn’t have the attribute “GetNthControlPoint”. What I’m trying to…

---

## [Display VTK Wedge in Slicer as Segmentation](https://discourse.slicer.org/t/display-vtk-wedge-in-slicer-as-segmentation/24838)

<div class="topic-metadata">

**Author:** [@connorh](https://discourse.slicer.org/u/connorh)\
**Replies:** 4\
**Last updated:** [August 23, 2022, 6:01pm UTC](https://discourse.slicer.org/t/display-vtk-wedge-in-slicer-as-segmentation/24838 "2022-08-23T18:01:43Z")

</div>

I’m trying to split a segment based on its rotational position (e.g. only getting a 15 deg wedge of the segmentation). I’m thinking the way to do this is to create a vtkWedge shape and take its intersection with the exis…

---

## [how to close this cmd widget](https://discourse.slicer.org/t/how-to-close-this-cmd-widget/24892)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 1\
**Last updated:** [August 23, 2022, 5:44pm UTC](https://discourse.slicer.org/t/how-to-close-this-cmd-widget/24892 "2022-08-23T17:44:08Z")

</div>

I want to remove this CMD window from my installation package, thanks.

---

## [Is there have a solution to use the thirdpaty software to convert dicom files to nifti files?](https://discourse.slicer.org/t/is-there-have-a-solution-to-use-the-thirdpaty-software-to-convert-dicom-files-to-nifti-files/24875)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 3\
**Last updated:** [August 23, 2022, 3:55pm UTC](https://discourse.slicer.org/t/is-there-have-a-solution-to-use-the-thirdpaty-software-to-convert-dicom-files-to-nifti-files/24875 "2022-08-23T15:55:17Z")

</div>

I have tryed to use slicer it self to convert dicom files to nifti files,but it seems to have problems. is there have a thirty party software to use subprocess to convert dicom files to nifti files?

---

## ['qSlicerScriptedLoadableModule' object is not subscriptable](https://discourse.slicer.org/t/qslicerscriptedloadablemodule-object-is-not-subscriptable/24881)

<div class="topic-metadata">

**Author:** [@Doodads](https://discourse.slicer.org/u/Doodads)\
**Replies:** 0\
**Last updated:** [August 23, 2022, 10:21am UTC](https://discourse.slicer.org/t/qslicerscriptedloadablemodule-object-is-not-subscriptable/24881 "2022-08-23T10:21:17Z")

</div>

Hi all, The following error was printed in the python interactor upon start-up after I added a custom module path to Slicer. Traceback (most recent call last): File "~/CreateMesh/CreateMesh.py", line 43, in \_\_init\_\_ …

---

## [How to judge whether the order of 2 groups of points in 3D space has changed in space?](https://discourse.slicer.org/t/how-to-judge-whether-the-order-of-2-groups-of-points-in-3d-space-has-changed-in-space/24826)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 5\
**Last updated:** [August 21, 2022, 2:34pm UTC](https://discourse.slicer.org/t/how-to-judge-whether-the-order-of-2-groups-of-points-in-3d-space-has-changed-in-space/24826 "2022-08-21T14:34:26Z")

</div>

As shown in the figure below, the points of the closed curve on the left are arranged counterclockwise. The open curve on the right has a change in the order of points in the square. The two groups of points are two-dime…

---

## [Incomplete Python Wrapping of vtkSegmentation](https://discourse.slicer.org/t/incomplete-python-wrapping-of-vtksegmentation/24396)

<div class="topic-metadata">

**Author:** [@edwardwang1](https://discourse.slicer.org/u/edwardwang1)\
**Replies:** 3\
**Last updated:** [August 21, 2022, 7:58am UTC](https://discourse.slicer.org/t/incomplete-python-wrapping-of-vtksegmentation/24396 "2022-08-21T07:58:12Z")

</div>

Hi there, As per my other thread, I have been trying to access some C++ functions through Python. Specifically, I am trying to access the GetPossibleConversions function of vtkSegmentation. The function was not availabl…

---

## [Model files are now saved in LPS coordinate system](https://discourse.slicer.org/t/model-files-are-now-saved-in-lps-coordinate-system/10446)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 18\
**Last updated:** [August 21, 2022, 2:59am UTC](https://discourse.slicer.org/t/model-files-are-now-saved-in-lps-coordinate-system/10446 "2022-08-21T02:59:34Z")

</div>

While Slicer uses RAS coordinate system internally, images, transforms, and markups files are stored in LPS coordinate system, because DICOM and all medical image computing software (maybe except a few very old ones) use…

---

## [How to forbidden left and right mouse event on vtkMRMLMarkupsLineNode](https://discourse.slicer.org/t/how-to-forbidden-left-and-right-mouse-event-on-vtkmrmlmarkupslinenode/24833)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [August 20, 2022, 2:37am UTC](https://discourse.slicer.org/t/how-to-forbidden-left-and-right-mouse-event-on-vtkmrmlmarkupslinenode/24833 "2022-08-20T02:37:42Z")

</div>

i made a line node like the picture and i want the line node to not react on mouse left and mouse right event how to do it in the C++ or python Code?

---

## [How to generate a "mean model" between few amount of surface mesh?](https://discourse.slicer.org/t/how-to-generate-a-mean-model-between-few-amount-of-surface-mesh/24793)

<div class="topic-metadata">

**Author:** [@joanne40226](https://discourse.slicer.org/u/joanne40226)\
**Replies:** 5\
**Last updated:** [August 19, 2022, 7:04am UTC](https://discourse.slicer.org/t/how-to-generate-a-mean-model-between-few-amount-of-surface-mesh/24793 "2022-08-19T07:04:56Z")

</div>

Hi community, i want to generate a “mean model” between few amount (i will show the schematic diagram with 2 data sets) of surface mesh as shown below. Besides, the suface mesh are already aligned. Is there any m…

---

## [Use Mesh to Mask a Segmentation](https://discourse.slicer.org/t/use-mesh-to-mask-a-segmentation/24819)

<div class="topic-metadata">

**Author:** [@connorh](https://discourse.slicer.org/u/connorh)\
**Replies:** 1\
**Last updated:** [August 18, 2022, 5:36pm UTC](https://discourse.slicer.org/t/use-mesh-to-mask-a-segmentation/24819 "2022-08-18T17:36:43Z")

</div>

Hello, I have a polydata mesh (currently loaded as a modelNode) that I would like to use the geometry to mask a segmentation of the registered CT scan. I’m looking for a way to convert this mesh to a filled segmentation…

---

## [Use Elastix inside my module](https://discourse.slicer.org/t/use-elastix-inside-my-module/713)

<div class="topic-metadata">

**Author:** [@marlene](https://discourse.slicer.org/u/marlene)\
**Replies:** 5\
**Last updated:** [July 20, 2017, 1:02pm UTC](https://discourse.slicer.org/t/use-elastix-inside-my-module/713 "2017-07-20T13:02:52Z")

</div>

Hello everybody, I am sorry if this will result you as a silly question, I need to call the 3DSlicer Elastix extension inside my module. I cannot find informations about how to know which parameters I need to set befor…

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

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