Skip to content
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

Conversation

Pfleiderer-Adrian
Copy link

  • 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
@muellerdo muellerdo added bug Something isn't working enhancement New feature or request labels Jun 30, 2022
@muellerdo
Copy link
Member

seaborn needs to be added to setup.py as well

@muellerdo muellerdo changed the base branch from master to development June 30, 2022 10:12
@Pfleiderer-Adrian
Copy link
Author

seaborn needs to be added to setup.py as well

done.

@Deathlymad
Copy link
Collaborator

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)
Furthermore it would be great if you removed the need for seaborn. Matplotlib can handle colormaps in a similar fashion which would remove the need for the library.

@Pfleiderer-Adrian
Copy link
Author

Pfleiderer-Adrian commented Jul 8, 2022

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.

oh ok. now i understand why that was renamed. I will revise the pull request again for RGB volumes.

It would be great if you pointed the motivation out for me again. (What overlay_segmentation has over overlay_segmentation_greyscale) Furthermore it would be great if you removed the need for seaborn. Matplotlib can handle colormaps in a similar fashion which would remove the need for the library.

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.

@Deathlymad
Copy link
Collaborator

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.

@Deathlymad
Copy link
Collaborator

stale, will close for now

@Deathlymad Deathlymad closed this May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants