visual studio 2019 图像监视:在Visual Studio调试器中查看内存中图像

Image Watch是一款用于Visual Studio 2019的插件,可在调试C++应用时可视化内存中的图像。本文介绍了如何下载和安装Image Watch,以及如何在调试过程中利用它来观察和理解代码对图像的操作。步骤包括安装插件、设置项目以支持OpenCV图像,并在调试时通过Local窗口和Image Watch查看图像。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Image Watch is a plug-in for Microsoft Visual Studio that lets you to visualize in-memory images (cv::Mat or IplImage_ objects, for example) while debugging an application. This can be helpful for tracking down bugs, or for simply understanding what a given piece of code is doing.
总的来说Image Watch 就是一个debug时候对于图像的观察的窗口。

stepone:

1.download the Image Watch Installer for visual studio 2019,安装程序是一个单文件,文件的后缀名是.vsix。

The introduction of Image Watch Installer
Image Watch is a watch window for viewing in-memory bitmaps when debugging native C++ code.

The current version has built-in support for OpenCV image types (cv::Mat, cv::Mat_<>, CvMat, _IplImage). To enable user-defined image types please refer to the Image Watch documentation.

This version works with Visual Studio 2019.

Quick Start: Simply break in the debugger and select View > Other Windows > Image Watch. Alternatively, click on the magnifying glass icon next to an image variable in your Locals window or on the debugger Data Tip.

在这里插入图片描述
==2double click on the .vsix file ==
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

3.when the installer has finished, make sure to restart Visual Studio to complete the installation.
关闭visual studio, 安装完成后重新打开visual studio
在这里插入图片描述
打开View Install Log,可以看到拓展程序的安装位置, 已成功完成到 Visual Studio Community 2019 的安装。扩展已经安装到 C:\USER

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值