Skip to content

Dark halo around label maps when image is not specified. #682

@denbonte

Description

@denbonte

Dear Developers,

Thank you for all the work you put into the extension: I started using itkwidgets recently and find it really impressive!

I'm running into a problem that I did not see mentioned in any of the open issues, nor on the documentation or somewhere else. Since the images I'm trying to visualize (a CT scan and segmentation mask pair) are pretty sizy (and I ideally would like not to downsample them), I'm spawning a widget that is rendering the segmentation mask only.

Upon first loading/rendering (the "rough" rendering), the visualization looks beautiful!

image

After a few seconds, however, a dark halo gets rendered around the label map:

image

Is there any way I can stop this from happening? Note that, if I were to load the image as well, such halo would not be present. This is running in Google Colab using itkwidgets[all]==1.0a36 and: the very simple snippet

viewer = view(label_image=output_image)

I tried messing with most of the parameters (e.g., gradient_opacity, blend_mode, the shadows in the rendering) - but nothing worked.

Thank you in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions