Ask Your Question
1

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

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

Mr. Onion gravatar image

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

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

Comments

can you cross-check the python sample ?

berak gravatar imageberak ( 2019-12-22 17:15:18 -0600 )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 -0600 )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 -0600 )edit

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

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

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 -0600 )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 -0600 )edit

Do u have any clues what may cause the problem?

Mr. Onion gravatar imageMr. Onion ( 2019-12-23 05:58:58 -0600 )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 -0600 )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 -0600 )edit

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

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

i am using the latest. Maybe i should use the one the author was using? Probably the issue has risen in the future OpenCV updates

Mr. Onion gravatar imageMr. Onion ( 2019-12-23 06:43:58 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

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

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
0

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 279 times

Last updated: Dec 23 '19