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?
Asked
Active
Viewed 301 times
2 Answers
2
You can:
- Save with
imwrite
all your debugging images, better in a specific folder. - 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.
-
do you know if there are such programs/extension for IDEs besides VS? – tschale Jul 24 '15 at 13:09
-
@tschale I'm not aware of that, sorry. – Miki Jul 24 '15 at 13:11
-
1@tschale have a look at [Interactive Visual Debugging of Computer Vision applications](http://docs.opencv.org/master/d7/dcf/tutorial_cvv_introduction.html#gsc.tab=0) – Miki Oct 26 '15 at 12:36
-
thank you, this seems really useful at first glance. I'm gonna try it out at the next opportunity – tschale Oct 27 '15 at 09:51
0
If you can use CLion instead Visual Studio you can utilize the OpenCV Image Viewer plugin, which displays matrices while debugging with just one click. There is also an option to save the image on a disk.
https://plugins.jetbrains.com/plugin/14371-opencv-image-viewer
Disclaimer: I'm the author of this plugin

dragon7
- 1,057
- 9
- 23