tvganesh / deconvlucy

An implementation of Lucy-Richardson algorithm with OpenCV
16 stars 10 forks source link

How to calculate the values the convolution kernel? #1

Closed shehzi-khan closed 7 years ago

shehzi-khan commented 7 years ago

Hi Ganesh,

I'm looking for a deblurring method to reduce motion blur in my image, which contains simple geometrical shapes drawn in black color on a white paper. When I move the paper while holding it in my hand, the motion blur is introduced. I saw your code for deconvlucy.cpp but I couldn't understand how did you calculate the values of convolution kernel. Is it relative to speed of motion, distance from camera or something else? Since I'm moving the object with my hand, so speed and distance may vary.

Thanks,

tvganesh commented 7 years ago

Hi - It is a long time since I did this. I don't quite recall now. You may have to check it out in the net, I guess - Ganesh