Skip to content

Add Matplotlib Perceptually Uniform Sequential colormaps - #13587

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
catree:add_matplotlib_colormaps
Jan 9, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
catree:add_matplotlib_colormaps

Conversation

@catree

@catree catree commented Jan 6, 2019 •

Copy link
Copy Markdown
Contributor

Add Matplotlib viridis, plasma, inferno, magma colormaps, see https://bids.github.io/colormap/:

We've made a few new colormaps, all using the same general bluish to reddish to yellowish sequence, because this is relatively friendly to common forms of colorblindness.

Each of these is designed in such a way that it will analytically be perfectly perceptually-uniform, both in regular form and also when converted to black-and-white. So we don't have to worry about that.

Add Matplotlib cividis colormap, see this pull request for more information:

The main advantage of the cividis colormap over others already available is it was optimized specifically with color vision deficiencies in mind. While it is optimized for complete red-green colorblindness and normal color vision, it is also a great colormap for the other deficiencies. This colormap has already been accepted by software packages such as COMSOL, Fiji, and Plotly.

More information will be available in 2018 when our paper is published: Nuñez J, Anderton C, and Renslow R. Optimizing colormaps with consideration for color vision deficiency to enable accurate interpretation of scientific data.

Quick visual and further explanation: http://forum.imagej.net/t/new-lut-for-fiji-cividis/7467

Add also twilight and twilight_shifted colormaps, see this pull request for more information:

Matlotlib currently lacks a good, perceptually uniform color scheme for angular data. This adds "sunlight" and "twilight", two viscm-derived color schemes for angular data.

These color schemes go from white-blue-black-red-white (twilight) and black-red-white-blue-black (sunlight), and are perfectly suited for angular data where low values wrap around to high values. The color schemes print as black-white-black and white-black-white respectively, and work well with color blindness.


Matplotlib colormaps overview, see also Choosing Colormaps and colormaps_reference.py:

matplotlib_colormaps_reference

Twilight colormap with polar coordinates:
colorscale_twilight_polar

Twilight shifted colormap with polar coordinates:
colorscale_twilight_shifted_polar


Beautiful colormaps for oceanography: cmocean

@catree
catree force-pushed the add_matplotlib_colormaps branch from 6a2ff48 to 60b2870 Compare January 6, 2019 21:34
…asma, inferno, magma, cividis, twilight and twilight shifted).
@catree
catree force-pushed the add_matplotlib_colormaps branch from 60b2870 to d745af6 Compare January 6, 2019 21:48

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well done! Thank you 👍

@opencv-pushbot
opencv-pushbot merged commit d745af6 into opencv:3.4 Jan 9, 2019
@alalek alalek mentioned this pull request Jan 10, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants