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

查看:12
本文介绍了在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. 使用 Image Watch 这将使您能够看到在调试期间,您所有的 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天全站免登陆