How to interpolate colors and plot as an image?

1 次查看(过去 30 天)
Hi, I have nine points (X,Y coordinate) and the color in each point (currentl in three vectors). I wish to show an image of the interpolation between the colors. how do i do that? so far I got
if true
% code
[X, Y] = meshgrid([-1 0 1], [-1 0 1]);
red_dist= [0 0.5 0; 0.5 1 1 ;0 1 1 ];
green_dist = [0 1 1; 1 1 1 ;1 1 0 ];
blue_dist = [1 1 0; 1 1 0.5;0 0.5 0 ];
end
thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Red 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by