-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
155-overlay_segmentation-function-is-missing #156
155-overlay_segmentation-function-is-missing #156
Conversation
Pfleiderer-Adrian
commented
Jun 15, 2022
- add missing "overlay_segmentation"-function
- adjust function calls with necessary num_classes-value
- add seaborn package for color palette generation
- add seaborn package in the requirements.txt file
- adjust function calls with necessary num_classes-value - add seaborn package for color palette generation - add seaborn package in the requirements.txt file
seaborn needs to be added to setup.py as well |
- add seaborn to setup-file
done. |
So afaik the overlay_segmentation was renamed to overlay_segmentation_greyscale. The reason for that was the the existing overlay segmentation function did not handle RGB valued volume inputs that may exist. It would be great if you pointed the motivation out for me again. (What overlay_segmentation has over overlay_segmentation_greyscale) |
oh ok. now i understand why that was renamed. I will revise the pull request again for RGB volumes.
First, the function calls have not been adjusted. All function-calls still call the old "overlay_segmentation" function. This results in a function not found error. Furthermore, the overlay_segmentation_greyscale function generates extremely dark colors (black, gray, ..) for ascending labels (0, 1, 2, ..) which cannot be recognized on greyscale images (only tested on master-branch maybe this has changed in dev). With the color_palette-function, Seaborn delivers a uniform and ideally distributed color spectrum across all classes to ensure that the colors are as different as possible for each class. |
I just read the github computed diff in the PR tab. But after reading all commits including the merge commit i cannot figure out for the life of me why it says the functions change. I have not seen a case where the colors act in the way you are describing. Do you haave an exaample case? As for the color spectrum that entirely depends on the colormap that is used. Virdis is the scale commonly used by heatmaps. If you want an ideally distributed scolor spectrum you can just set it to hsv for example. |
stale, will close for now |