Maybe this project can learn from the implemenation of matplotlib's Colormap. They must have a fast conversion mechanism too!
Also check matplotlib's colormaps_reference.py and its matplotlib.colors.LinearSegmentedColormap implementation.
Also check out the scimage.color utilities and especially the source code of colorconv.py.
Maybe this project can learn from the implemenation of matplotlib's Colormap. They must have a fast conversion mechanism too!
Also check matplotlib's colormaps_reference.py and its matplotlib.colors.LinearSegmentedColormap implementation.
Also check out the scimage.color utilities and especially the source code of colorconv.py.