How to interpolate colors and plot as an image?

1 Ansicht (letzte 30 Tage)
Itzik Ben Shabat
Itzik Ben Shabat am 3 Aug. 2015
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

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by