# Mouse movement causes screen flickering in 2D views after using slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNodeWithTerminology()

**URL:** <https://discourse.slicer.org/t/mouse-movement-causes-screen-flickering-in-2d-views-after-using-slicer-modules-segmentations-logic-importlabelmaptosegmentationnodewithterminology/44030>\
**Category:** Support\
**Created:** [August 8, 2025, 4:14pm UTC](https://discourse.slicer.org/t/mouse-movement-causes-screen-flickering-in-2d-views-after-using-slicer-modules-segmentations-logic-importlabelmaptosegmentationnodewithterminology/44030 "2025-08-08T16:14:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![baderstine](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/baderstine/32/79333_2.png) [@baderstine](https://discourse.slicer.org/u/baderstine)\
**Post date:** [August 8, 2025, 4:14pm UTC](https://discourse.slicer.org/t/mouse-movement-causes-screen-flickering-in-2d-views-after-using-slicer-modules-segmentations-logic-importlabelmaptosegmentationnodewithterminology/44030/1 "2025-08-08T16:14:03Z")

</div>

When I add a node using slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNode() everything is normal. However, when I use slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNodeWithTerminology() instead, I get a lot of screen flickering whenever I move my mouse cursor over the 2D view (axial, sagittal, coronal). Is there some reason why importing using a terminology would cause screen flickering? I’m on a M3 MacBook Pro, Sequoia 15.6, Slicer v5.8.1.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [August 13, 2025, 1:44pm UTC](https://discourse.slicer.org/t/mouse-movement-causes-screen-flickering-in-2d-views-after-using-slicer-modules-segmentations-logic-importlabelmaptosegmentationnodewithterminology/44030/2 "2025-08-13T13:44:34Z")

</div>

Do you also see flickering when you load a sample dataset that has terminology information?

What is the resolution of the labelmap you use?

I’ve been thinking what to answer for days but this is so little information that it is basically impossible. Please provide a lot more information, given the special nature of your question. We need to know about your dataset, your use case, your algorithm, etc. Thanks.

---

<div class="post-metadata">

**Author:** ![baderstine](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/baderstine/32/79333_2.png) [@baderstine](https://discourse.slicer.org/u/baderstine)\
**Post date:** [August 13, 2025, 5:28pm UTC](https://discourse.slicer.org/t/mouse-movement-causes-screen-flickering-in-2d-views-after-using-slicer-modules-segmentations-logic-importlabelmaptosegmentationnodewithterminology/44030/3 "2025-08-13T17:28:23Z")

</div>

Apologies for the lack of detail. I experimented with this quite a bit more and found that I was getting the flickering seemingly randomly with either function. The flickering is intermittent and rather unpredictable. Restarting Slicer seems to fix it. I wish I knew more about what caused it but at this point, it does not seem to be related to this particular function.

---

<div class="post-metadata">

**Author:** ![baderstine](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/baderstine/32/79333_2.png) [@baderstine](https://discourse.slicer.org/u/baderstine)\
**Post date:** [August 13, 2025, 5:29pm UTC](https://discourse.slicer.org/t/mouse-movement-causes-screen-flickering-in-2d-views-after-using-slicer-modules-segmentations-logic-importlabelmaptosegmentationnodewithterminology/44030/4 "2025-08-13T17:29:30Z")

</div>

I am using 1.5x1.5x1.5mm images, segmentations, and label maps

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [August 14, 2025, 1:55pm UTC](https://discourse.slicer.org/t/mouse-movement-causes-screen-flickering-in-2d-views-after-using-slicer-modules-segmentations-logic-importlabelmaptosegmentationnodewithterminology/44030/5 "2025-08-14T13:55:07Z")

</div>

Could you please share a video? I thought it was due to slowness (like time of computation of getting terminology of segment in voxel under mouse) but now it does not seem so.

> [@baderstine](#):
>
> I am using 1.5x1.5x1.5mm images, segmentations, and label maps

Yes but are they large volumes? I was asking because I thought it was a performance issue. I guess they are smaller then a normal CT (which are 512x512x150ish)

Has anyone else using Mac has seen flickering?

---

<div class="post-metadata">

**Author:** ![baderstine](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/baderstine/32/79333_2.png) [@baderstine](https://discourse.slicer.org/u/baderstine)\
**Post date:** [December 15, 2025, 9:21pm UTC](https://discourse.slicer.org/t/mouse-movement-causes-screen-flickering-in-2d-views-after-using-slicer-modules-segmentations-logic-importlabelmaptosegmentationnodewithterminology/44030/6 "2025-12-15T21:21:29Z")

</div>

I have not noticed the flickering since switching to 5.10.0

I have noticed a different issue with very large volumes (high slice count) in which certain Segment Editor operations will take a very long time (several seconds rather than nearly immediate). Limiting the number of visible segments and applying to ‘only visible segments’ can speed these operations up so that one at least does seem to be a computation issue.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [December 16, 2025, 9:40am UTC](https://discourse.slicer.org/t/mouse-movement-causes-screen-flickering-in-2d-views-after-using-slicer-modules-segmentations-logic-importlabelmaptosegmentationnodewithterminology/44030/7 "2025-12-16T09:40:59Z")

</div>

Thanks for reporting back! I’ll mark your answer as solution because the particular issue for which you opened the topic has solved itself.

> [@baderstine](#):
>
> certain Segment Editor operations will take a very long time (several seconds rather than nearly immediate)

This is a separate problem but seems important. Can you please start a new post (or issue on GitHub, whichever seems easier for you) with this? Ideally, if you want the community (who work on the Slicer core in their free time) to help in an efficient manner, we’d need a simple way to reproduce it. For example if you could find a short sequence of steps with one of the sample data that brings this out, it would be super helpful. Thanks a lot!
