图像缩略图

Real2RGB和菌落

版本1.9.0.0(22.9 kb) 奥利弗·伍德福德
将强度矩阵转换为trueColor图像。

8.1k下载

Updated08 Jul 2014

查看许可证

该函数将实值强度的MXN矩阵转换为trueColor图像(MXNX3双阵列[0,1]中的MXNX3双阵列[0,1]),无需离散化,通过在输入colormap的颜色之间进行线性插值。可以使用图像或IMShow显示输出,并使用IMWRITE导出,用于纹理映射等。
菌落是按名称或JXK ColorMap表指定的(k = 3或4)。命名的菌落可以以“ - ”为前缀以倒入colormap,并加上“*”后缀,以使每个颜色过渡转换为灰度时覆盖相同数量的灰度。后一种选项允许在用黑白印刷时将菌落适应为线性灰度,例如'热的*'。通过在菌落表的第四列中指定每个颜色跃迁的相对长度,可以是非线性的。

Many old and new colormap functions are included in this submission. The old colormaps have been included, with improvements, for the following reasons. All colormap functions can additionally return the most concise colormap table required to generate that colormap, and they can take in an intensity image and return the truecolor output using that colormap.

包括:
热的- generate the look of false-color thermal (IR) images.
温度 - 温度尺度的蓝白色红色方案。
棕褐色 - 产生旧照片的外观。

在用黑白印刷时,已经创建了一些新的菌落来恢复线性灰度。这些都是:
hicontrast - saturated colors, for maximum level differentiation.
黄昏 - 柔和的阴影从寒冷和深色到温暖而光线。
bright - bright colors, with good level differentiation.
柔和 - 柔和的阴影,具有良好的水平分化。
copper2 - similar to copper, but continues on to white.
pink2 - black to white through several distinct shades of pink.
earth - shades of green and brown.

现在,创建自己的新colormap功能现在非常简单。指定一个简洁的LESCELOMAP表,其中包含的colormap_helper函数将完成其余的。如果您向FEX提交此类colormap功能,请使用标签“ Real2RGB_ColorMap”,以便可以轻松找到它们。

如果您需要更高级的功能,例如对于多维输入值,请查看SC(FEX ID:16233)。此处包含的功能是该功能的子集,分开以易于使用和理解。

这个函数是现在包含在sc包:
//www.tatmou.com/matlabcentral/fileexchange/16233
这里的版本将无法维护。

引用为

奥利弗·伍德福德(Oliver Woodford)(2021)。Real2RGB和菌落(//www.tatmou.com/matlabcentral/fileexchange/23342-real2rgb-colormaps), MATLAB Central File Exchange. Retrieved

MATLABRelease Compatibility
Created with R2007b
Compatible with any release
平台兼容性
Windows macOS Linux

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

Start Hunting!