原文地址 :https://www.ours1984.top
作用:通过断点 QtCreator调用查看 opencv图像。
安装步骤
1、依赖项安装
ImageWatch需要调试器来调用
插件编译过程中需要用到qt5库
sudo apt-get install gdb qt5-default
2、ImageWatch编译
git clone https://github.com/csantosbh/gdb-imagewatch
cd gdb-imagewatch
sudo ./configure_ubuntu_16.sh
3、设置QtCreator调用
Qt->工具->选项->调试器->GDB->启动时载入.gdbinit文件
使用
打开opencv读取图像的例子
在debug模式下,设置断点,调试运行。。
会自动弹出ImageWatch窗口,如下:
疑惑
这个难道只能适用于opencv开源库的图像吗?其他图像类型呢,也适用吗??