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.
引用格式
Andrew Horchler (2026). rgb2map (https://github.com/horchler/rgb2map), GitHub. 检索时间: .
MATLAB 版本兼容性
创建方式
R2016a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > Labels and Styling > Color and Styling >
- MATLAB > Graphics > Images > Convert Image Type >
在 Help Center 和 MATLAB Answers 中查找有关 Color and Styling 的更多信息
标签
致谢
无法下载基于 GitHub 默认分支的版本
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.1.0.0 | Added image Added image |
|
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库。
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库。
