Ask Your Question

Getting absolutely different result from deblur c++ example [closed]

asked 2019-12-22 14:14:07 -0500

Mr. Onion gravatar image

updated 2019-12-22 16:29:31 -0500

berak gravatar image

Hey guys. I am following this example tutorial: here is the tutorial. And with the same parameters, same image and definitely same code i am getting absolutely other result. Where can the problem be located? Even when i am trying to set the most optimal other parameters i am not getting the desired result.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2019-12-24 01:51:35.629752


can you cross-check the python sample ?

berak gravatar imageberak ( 2019-12-22 17:15:18 -0500 )edit

I am not quite familiar with python development, can u give me a short instruction how to run this script?

Mr. Onion gravatar imageMr. Onion ( 2019-12-23 04:24:58 -0500 )edit

Figured it out by myself. Works like a charm! Even with my own photos. I also rewrote the code to C# and used OpenCVSharp. The problem is the same as in C++.

Mr. Onion gravatar imageMr. Onion ( 2019-12-23 04:38:48 -0500 )edit

and, if you could make it work, what's the solution now ?

berak gravatar imageberak ( 2019-12-23 05:20:07 -0500 )edit

Sorry? I desperately need the c++ or c# code to work, not the python :(

Mr. Onion gravatar imageMr. Onion ( 2019-12-23 05:24:45 -0500 )edit

ah sorry, misunderstood it , then. (and yea, the python code is entirely different, from scratch)

berak gravatar imageberak ( 2019-12-23 05:47:57 -0500 )edit

Do u have any clues what may cause the problem?

Mr. Onion gravatar imageMr. Onion ( 2019-12-23 05:58:58 -0500 )edit

no clue so far, but i can reproduce the problem:

image description

tried to toggle opencl usage / hw optimizations -- to no avail.

if we can't find the problem, we'll probably have to raise an issue on github, and ping the author

berak gravatar imageberak ( 2019-12-23 06:00:24 -0500 )edit

yep, that's exactly what i get. Looking forward to your research, will be very thankful for the solution!

Mr. Onion gravatar imageMr. Onion ( 2019-12-23 06:08:48 -0500 )edit

btw, opencv version ? master(4.2.0-dev) here

berak gravatar imageberak ( 2019-12-23 06:41:12 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2019-12-23 16:17:54 -0500

Mr. Onion gravatar image

Solved the problem, mate. I was supposed to use the same image but with another quality

edit flag offensive delete link more

answered 2019-12-23 22:18:23 -0500

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-12-22 14:10:26 -0500

Seen: 88 times

Last updated: Dec 23 '19