ImagingDataCommons / slim

Interoperable web-based slide microscopy viewer and annotation tool
https://imagingdatacommons.github.io/slim/
Apache License 2.0
118 stars 36 forks source link

Implement Color-Coded Class Display #194

Open pedrokohler opened 6 months ago

pedrokohler commented 6 months ago

Allow applying the same color all regions of the same semantics

could we have different classes be displayed in different colors (or give a per color selector so the user could change colors at the class level.

Implement Color-Coded Class Display

Description

Enhance the user experience by implementing the option for different classes to be displayed in different colors, or allowing users to select colors at the class level. This feature will provide visual differentiation and customization options, improving clarity and usability within the application.

Acceptance Criteria

  1. Classes should be displayed in different colors based on user-defined preferences or predefined color schemes.
  2. Users should have the option to customize colors at the class level using a color selector tool.
  3. Ensure that the color-coded class display remains consistent and accurately reflects the assigned colors.
  4. The color customization feature should be intuitive and easy to use, enhancing user control and satisfaction.

From #184

pedrokohler commented 6 months ago

@fedorov

I think this one relates to #193. I think after #193 is done we can add a cog icon similar to the current Annotation Group one and allow the user to change the color of the Annotation Type.

Let me know if that works.

fedorov commented 4 months ago

I agree, this should be handled in the context of #193.

How about the following (developing the ideas you suggested):

  1. A "Display settings" cog icon - same as we have per annotation group right now - is added to the distinct categories and types items in the new sections proposed in https://github.com/ImagingDataCommons/slim/issues/193#issuecomment-2100729206.
  2. On load, distinct colors are picked from some palette for each distinct value of type
fedorov commented 1 month ago

This notebook contains example of a representative TID1500 SR. We need to group by "Finding" and "Finding category". If not present, assign to a group that does not have it populated.

https://colab.research.google.com/drive/1RK6f01pqNPPuqpoq42E48BILfW-f1gHU