RGB三维色域图绘制
matlab代码
%% RGB色域
clc
clear
[r,g,b] = meshgrid(linspace(0,1,50));
rgb = [r(:), g(:), b(:)];
R=rgb(:,1);G=rgb(:,2);B=rgb(:,3);
k = boundary(R,G,B);
trisurf(k,R,G,B,'FaceColor','interp',...
'FaceVertexCData',rgb,'EdgeColor','none')
xlabel('R*')
ylabel('G*')
zlabel('B*')
axis([-110 110 -110 110 0 100])
view(-10,35)
axis equal
title('sRGB gamut surface in R*G*B* space')