当前位置:网站首页>深度学习热力图可视化的方式
深度学习热力图可视化的方式
2022-07-28 05:17:00 【一知半解百晓生】
heatmap:是你要叠加在原始图像的热力图
img :是你的原始图片
- 首先将heatmap的最大值缩放到0-255之间的unit8类型
- 然后再将heatmap转化成彩色图像
可以使用从cv2中的函数
heatmap = cv2.applyColorMap(heatmap,cv2.COLORMAP_JET)
- 将heatmap 和 img加权
superimposed_img = (heatmap*0.3+img*0.7).astype(np.uint8)
对superimposed_img就可以可视化了
边栏推荐
- 自定义Json返回数据
- lamda 获取当前循环数,AtomicInteger
- 【SLAM】LVI-SAM解析——综述
- 多模块打包:程序包:xxx不存在
- 分享几种管理C程序中标志位的方法
- 多系统架构设计思考
- When SQL queries the list, the data is inconsistent twice, and limit is automatically added
- 2022 summer practice (PowerDesigner tutorial learning record) (first week)
- List<Long>,List<Integer>互相转换
- JVM篇 笔记3:类加载与字节码技术
猜你喜欢

ByteBuffer.position 抛出异常 IllegalArgumentException

Video twins: the starting point of informatization upgrading of smart Parks

IDEA使用dev-tool实现热部署

Personal summary of restful interface use

Flask Development & get/post request

在ruoyi生成的对应数据库的代码 之后我该怎么做才能做出下边图片的样子

Scope, execution process and life cycle of bean

集合框架的操作使用

7. < tag string and API trade-offs> supplement: Sword finger offer 05. replace spaces

【SLAM】LVI-SAM解析——综述
随机推荐
【单例模式】懒汉模式的线程安全问题
C language characters and strings
图像增强——MSRCR
Mysql基本查询
oracle查看锁表语句、解锁方法
解决Oracle使用in语句不能超过1000问题
Offline loading of wkwebview and problems encountered
正则表达式
C language: addition and deletion of linked list in structure
PyTorch 使用 MaxPool 实现图像的膨胀和腐蚀
Response<T>类
ES6 new variable modifiers let and const, new basic data type symbol
JVM篇 笔记4:内存模型
子父线程交互
分享几种管理C程序中标志位的方法
多模块打包:程序包:xxx不存在
New arrow function in ES6
低照度图像数据集
regular expression
SimpleDateFormat线程不安全和DateTimeFormatter线程安全