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

Add color module #5

Merged
merged 1 commit into from
Sep 9, 2023
Merged

Add color module #5

merged 1 commit into from
Sep 9, 2023

Conversation

cgohlke
Copy link
Member

@cgohlke cgohlke commented Sep 8, 2023

This PR adds a new color module to the PhasorPy package.

For now it provides two color palettes and a wavelength2rgb function, which maps visible wavelengths to approximate sRGB color components. It can, for example, be used to colorize hyperspectral image stacks for visualization.

More specialty palettes and functions for compositing phasor histograms and intensity images may be added to the module.

Copy link
Contributor

@bruno-pannunzio bruno-pannunzio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR, I looked through it and I think it will be useful. I used some colormaps from matlotlib for other uses and I think this is a better approach. I will try to think how to use something like this for mapping the phasor circle to a colormap.

@cgohlke cgohlke merged commit 9afa6d1 into phasorpy:main Sep 9, 2023
@cgohlke cgohlke deleted the color branch September 9, 2023 01:47
@cgohlke cgohlke added the enhancement New feature or request label Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants