DigitalSlideArchive / HistomicsUI

A Girder plugin for pathology image annotations and analysis.
Apache License 2.0
56 stars 19 forks source link

Transparency slider and interactive mode does not work for centroid-and-size-only annotations #45

Open kheffah opened 5 years ago

kheffah commented 5 years ago

In the screenshot below, the annotation transparency slider is set to zero, yet the centroid-and-size-only (CASO) elements are not affected and retain their "native" fill value.

image

A related problem occurs when I activate interactive mode and hover over an the element text -- it fades everything except the element itself (expected behavior) but fails to fade out CASO elements (the bug).

If the simplest fix for this is to not show transparency for CASO elements, that's totally OK. The issue of interactive mode for CASO elements remains withstanding even if this simple fix is adopted, though.

kheffah commented 5 years ago

@manthey While I doubt this issue and issue DigitalSlideArchive/HistomicsTK#719 are related, I'm just turning your attention to this in case they are .

kheffah commented 5 years ago

@manthey If the simplest fix for this is to not show transparency for CASO elements, that's totally OK. The issue of interactive mode for CASO elements remains withstanding even if this simple fix is adopted, though.

manthey commented 2 years ago

This is a more complex issue that it initially appeared. We have some code that implies we intended to not highlight an element when there were too many of them to remain performant (default is 5000), but, when we load centroids the number of elements that AREN'T centroids is often below this threshold which leads to inconsistent behavior. One solution would be to prevent highlighting annotations if part of the elements are shown as centroids. The other option would be to see if we can improve the performance of toggling large numbers of opacities and then do it for centroid annotations, too.