-你喜欢的颜色图函数
-互补色将自动定义。
* Gabor和高斯色图可视化演示如下
**模板colormap, viridis, magma等不等于matplotlib的一个。
' ' '
%%演示代码
X = linspace(-pi, pi, 256);
[xx, yy] = meshgrid(x, x);
% G = fspecial('高斯',256,20);
G = exp(-1*(xx))^2 + yy ^2)/2*(2^2));
G = G /max(G(:));
S = sin(xx*pi);
对于i = 1:3 %%制作R, G, B色图
[0 0 0];
Tcol (i) = .5;
次要情节(3 2 2 *(张)+ 1)
显示亮度图像(g . * S);Colormap (gca, polcmap(128, tcol));
colorbar;轴形象;轴了
次要情节(3 2 2 *(张)+ 2)
显示亮度图像(G);Colormap (gca, wcmap(128, tcol));
colorbar;轴形象;轴了
结束
' ' '
2018/02/02 R.Takeuchi
2018/10/16 -添加一些模板颜色映射,参见演示。M用于检查使用情况
引用作为
竹内良介(2023)。autocmap(//www.ru-cchi.com/matlabcentral/fileexchange/65936-autocmap), MATLAB中央文件交换。检索.