原文:https://blog.csdn.net/u011574296/article/details/73286820
在VS中用OpenCV進行開發時,調試經常需要去查看當前圖像的內容(圖像大小,通道數,鼠標所指像元在圖像中的行列數和像素值),介紹一個配合VS使用的OpenCV開發神器——Image Watch。
1.下載最新版本Image Watch(ImageWatch.vsix),下載地址:
https://marketplace.visualstudio.com/items?itemName=VisualCPPTeam.ImageWatch2017
2.安裝ImageWatch,雙擊ImageWatch.vsix進行安裝即可;
使用
打開一個OpenCV工程,在Debug下設置斷點,通過view -> other windows -> Image Watch打開Image Watch窗口,即可顯示cv::Mat圖像