1. 程式人生 > >matlab 彩色圖和熱力圖疊加顯示

matlab 彩色圖和熱力圖疊加顯示

im = imread('color.jpg'); %彩色圖

im = double(im);

gray = imread('gray.jpg'); % 熱力圖

gray = double(gray);

cmap = colormap(jet(256));

rgb = ind2rgb(gray,cmap);

rgb = rgb * 255;


figure(1);

imshow(uint8(im*0.6+rgb*0.4),[]);