Ask Your Question

Revision history [back]

Opencv 4.5.0 / Android / how to implement a Wiener filter ?

Hi

  • https://github.com/opencv/opencv/blob/4.5.0/samples/python/deconvolution.py

This python sample provides an implementation of Wiener filter. I tried this sample with the image found in the tutorial below. I noted a good result with the values R = 3 and SNR(dB) = 20dB

  • https://docs.opencv.org/master/de/d3c/tutorial_out_of_focus_deblur_filter.html

This cpp sample provides an implementation of Wiener filter. The tutorial recommandes the value R = 53 and SNR = 5200 (37-38dB) I can't reproduce this result with theses values but I had a good result with the values R = 3 and SNR(dB) = 20dB

I have some difficulties to convert the samples from Python to Java or from CPP to Java because I don't know identify the good conversions or I have bad filtered images.

Could you please help me to implement a Java sample of the Wiener filter ?

Best regards,

Franck