matlab画热力图深度图

热力图主要用pcolor函数,
img=imread(‘E:\Data_Set\RESIDE\OTS_BETA(室外合成)\clear\clear\0138.jpg’) ;
load(‘E:\Data_Set\RESIDE\OTS_BETA(室外合成)\depth\depth\0138.mat’)
subplot(1,2,1)
depth2=flipdim(depth,1);%原距离图的垂直镜像,本身是反的,否则画出来是反的,用flipdim函数
h=pcolor(depth2);%热度图
axis equal
set(h,‘edgecolor’,‘none’,‘facecolor’,‘interp’);%去掉网格,平滑热度图
colorbar;%显示图例
subplot(1,2,2)
imshow(img)

在这里插入图片描述
ref
https://blog.csdn.net/Eric_KEY/article/details/64602292
https://www.cnblogs.com/chenwenyan/p/6836578.html
https://blog.csdn.net/liuyifang0810680/article/details/78784102

猜你喜欢

转载自blog.csdn.net/qq_35608277/article/details/85259282