1.Image watch的安装
打开VS2022,进入管理扩展

点击下载,并安装


2.使用
点击Image watch会弹出一个窗口

运行测试代码:
cpp
#include <iostream>
#include <opencv2/opencv.hpp>
#include <filesystem>
#include <fstream>
#include <vector>
#include <string>
namespace fs = std::filesystem;
using namespace cv;
using namespace std;
int main() {
Mat img = imread("D:\diff_HS_crop_1.png");
imshow("a", img);
waitKey(0);
return 0;
}
显示出图像像素值
