brainrender-napari icon indicating copy to clipboard operation
brainrender-napari copied to clipboard

[Feature] Use colours provided by `bg-atlasapi` to render annotation labels

Open alessandrofelder opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. Some atlases, such as the Allen Mouse, provide colours for each of the regions of the annotations. We currently use these to colour the meshes, but not the annotation.

Describe the solution you'd like We could use DIRECT colour mode for the napari labels layer to map the atlas colours to the annotation.

Describe alternatives you've considered n/a

Additional context Might be good to double-check rendering performance in napari if/when we implement this. See https://github.com/napari/napari/issues/6397 - @Czaki kindly warned us that the fix for this may not help with DIRECT color mode.

alessandrofelder avatar Nov 13 '23 10:11 alessandrofelder

the https://github.com/napari/napari/pull/6439 is fix for direct color mode

Czaki avatar Nov 13 '23 11:11 Czaki

Ah, even better, then :) thank you @Czaki !

alessandrofelder avatar Nov 13 '23 14:11 alessandrofelder