CLion图像调试方法研究

本文探讨了在Ubuntu环境下,如何使用CLion进行图像调试。由于Windows下的Visual Studio有Image Watch,但在Ubuntu中CLion的Image Watch插件需付费,作者转向研究了Open Image Debugger的安装与配置,但未成功。随后,作者找到了CLion的OpenCV Image Viewer免费插件,并详细介绍了如何安装和使用这一插件来实现图像调试。
摘要由CSDN通过智能技术生成

在windows下有vistual studio,针对opencv有image watch,在ubuntu下用Clion插件Image Watch要收费,遂研究OpenImageDebugger与CLion问题及在Clion中调试方法

1.Open Image Debugger

Open Image Debugger is a tool for visualizing in-memory buffers during debug sessions, compatible with both GDB and LLDB. It works out of the box with instances of the OpenCV Mat class and Eigen matrices, but can also be customized to work with any arbitrary data structure.

说明及安装步骤见Git官网:OpenImageDebugger

安装时注意:其中PREFIX=/path/to/installation/folder表示gdb-imagewatch的安装路径,如果不设置这个参数,则使用默认的安装路径:/usr/local.

Qt中设置启动时载入.gdbinit:
在这里插入图片描述
但是在CLion中没有这个设置:
参见官网:

  • 6
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

周陽讀書

周陽也想繼往聖之絕學呀~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值