Skip to content

[Feature] Atlas annotations should be displayed with colors from metadata #218

@alessandrofelder

Description

@alessandrofelder

Is your feature request related to a problem? Please describe.
Currently, atlas annotations display as a labels layer with the default colourmap, but some atlases contain a predefined colour for each region. It would be nice if users had the option to display the annotations with the built-in colours.

Describe the solution you'd like
By default (?, see alternatives) annotations are displayed with the atlas' colour map when they are added to the napari viewer.

Describe alternatives you've considered
Would we need a switch to allow users to use the napari default map: some atlases don't have a good colour map?

Additional context
Zulip discussion related to this, with sample code

From memory, I expect code changes to go in NapariAtlasRepresentation.add_to_viewer function, maybe with a helper function to figure out the colourmap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions