版本 (220.9 KB) 作者: Andrew Horchler
Convert RGB colors to indexed colormap colors

244.0 次下载

更新时间 2017/4/13

来自 GitHub

在 GitHub 上查看许可证

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 (2023). rgb2map (https://github.com/horchler/rgb2map), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016a
Windows macOS Linux
Help CenterMATLAB Answers 中查找有关 Colormaps 的更多信息

启发作品: Convert between RGB and Color Names

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明

Added image

Added image

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库