Convert RGB colors to indexed colormap colors
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Convert RGB colors to indexed colormap colors.
rgb2map converts an RGB image or colormap to an indexed color image or colormap using color differences. rgb2map calculates the color difference between each RGB pixel in an input image and every RGB triplet in the input colormap by calculating ΔE in the CIE L*a*b* color space (CIE 1976 standard). The min function is used to find the index of the minimum ΔE (if more than one minimum value exists, the index of the first is returned). The function is an alternative to Matlab's rgb2ind.
Cite As
Andrew Horchler (2026). rgb2map (https://github.com/horchler/rgb2map), GitHub. Retrieved .
Acknowledgements
Inspired: Convert between RGB and Color Names
General Information
- Version 1.1.0.0 (221 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.1.0.0 | Added image Added image |
