You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
out side the loop do
GENERIC_ANATOMY_COLORS_list = list(GENERIC_ANATOMY_COLORS.values())
if name in GENERIC_ANATOMY_COLORS:
rgb = list(info.get("color", GENERIC_ANATOMY_COLORS.get(name, (255, 0, 0))))[0:3]
else:
rgb = GENERIC_ANATOMY_COLORS_list[(i%len(GENERIC_ANATOMY_COLORS_list))+1] # picks index from list skipping the background
The text was updated successfully, but these errors were encountered:
I basically am suggesting getting different colors. Having a uniform color would alert the user that the label names are not in the standard list. This is ok only if we provide a way to load his own list with colors.
For simplicity I was proposing just pick random colors. And you are correct, I edited the code by adding a mod for the len of the list.
Describe the bug
When creating a dicom seg object all segments show up as red unless labels are in the
https://github.com/Project-MONAI/MONAILabel/blob/main/monailabel/datastore/utils/colors.py
Expected behavior
Each segment should have different color
Proposed fix
https://github.com/Project-MONAI/MONAILabel/blob/main/monailabel/datastore/utils/convert.py#L98
change to
The text was updated successfully, but these errors were encountered: