05-28-2014 01:59 AM
Hello,
has someone an idea if a bilateral filter for image smoothing is available in the vision framework? I did not find anything similar. At the moment I use a median filter for image smoothing (remove noise an texture) but the results produced by ImageJ / Fiji with a bilateral Filter are a lot more impressive.
Best regards,
Paul
Solved! Go to Solution.
05-29-2014 03:38 AM
Hello,
there is no bilateral filter. You can implement it yourself or (if you just need to use it) use OpenCV's implementation (as a .dll):
http://docs.opencv.org/modules/imgproc/doc/filtering.html?highlight=bilateralfilter#bilateralfilter
If you would like to use the OpenCV implementation and are having problems implementing it, I have this filter already implemented for filtering depth images. Tell me and I can share it with you.
Best regards,
K
05-30-2014 01:55 AM
Hi Klemen,
I had a look to your blog and found that "hough circle" opencv dll implementation. I found the cpp-source for the dll wrapper and remembered that is a long long time ago I coded C++ at school. So I may ask you to give me the wrapped dll? I can give you only a virtual granola cereal bar because I am sure I have no piece of code which is interesting for you in exchange.
Best regards,
Paul
05-30-2014 02:11 AM
Hello,
sure, here you go (please see the attachment). The .dll was built using OpenCV 2.4.6.
Best regards,
K
05-30-2014 04:33 AM
Hello Klemen,
thank you very much! You made my day, a new toy for my project! I only have one problem because I get a nasty "access violation" error. I tried to implement your DLL as given in the "function prototype" but maybe I overlooked something. So I created a Test vi and put it into the attachment.
Could you give me a hint where I have make a mistake in the code? Thank you very much!
Paul
05-30-2014 04:56 AM
Hello,
please see the image (block diagram) below:
Try allocating memory for the new image. Tell me how it goes.
Best regards,
K
05-30-2014 05:51 AM
Hello Klemen,
after seeing your example it is so obvious. Allocate a blank array as placeholder in the memory for the output pointer! Works great!
Thank you!
Best regards,
Paul
08-05-2014 02:38 AM
Hi Meisspa
I download the dll and the vi, but there always some error missing some dll, I already get opencv 2.4.6. Do I I need to install the vs2010?
01-29-2021 11:34 PM
Hi,
I have installed latest OpenCV version, I am getting this error
How to build a .dll for the new opencv version?
Thanks
Rahul