在OpenCV中调试代码期间如何保存图像? [英] How to save images during debugging the code in opencv?

查看:64
本文介绍了在OpenCV中调试代码期间如何保存图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用不同的过滤器来减少OPENCV中嘈杂图像产生的噪声.我想知道在调试代码期间如何捕获或保存结果图像吗?

Im working on reducing noise from noisy image in OPENCV using different filters. i want to know that how i capture or save the result images during debugging code?

推荐答案

您可以:

  1. 使用imwrite保存所有调试图像,最好将其保存在特定的文件夹中.
  2. 使用图像观看,它将使您能够看到在调试过程中,将所有Mat都放在一个功能强大的查看器中.只需下载并安装它.您可以在VS中访问Image Watch查看器:View-> Other Windows-> Image Watch
  1. Save with imwrite all your debugging images, better in a specific folder.
  2. Use Image Watch which will enable you to see all your Mat in a nice and powerful viewer during debugging. Just download and install it. You can access the Image Watch viewer in VS: View -> Other Windows -> Image Watch

我建议第二种方法,我个人认为非常有用. 还要查看答案.

I recommend the second approach, which personally I find very useful. Have a look also at this answer.

这篇关于在OpenCV中调试代码期间如何保存图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆