Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺
简单将unit8或double类型灰度图以设定的伪彩色图像显示:
figure,imshow(gray,’Colormap’,jet(255));
![unit8或double灰度图像的伪彩色显示[通俗易懂]](https://javaforall.net/wp-content/uploads/2020/11/2020110817443450.jpg)
将灰度图像直接转化为RGB图形:
rgb = ind2rgb(gray2ind(im,255),jet(255));
如果是unit8数据而不是double类型数据可采用如下伪彩色转换:
rgb = label2rgb(gray2ind(im,255),jet(255));
figure,imshow(rgb)
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/193102.html原文链接:https://javaforall.net