Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the C++ replacement to the old cvSmooth(src, dst, CV_MEDIAN, 3)?

Tags:

c++

opencv

I am converting old OpenCV code over to the new C++ api, and I am not sure how this gets translated.

I have a line executing what's in the title, cvSmooth(src, dst, CV_MEDIAN, 3); and I'm not sure what the "proper" analogue is in the new C++ api.

What would it be?

like image 732
zebra Avatar asked Jan 15 '12 15:01

zebra


1 Answers

From OpenCV documentation: "The function is now obsolete. Use GaussianBlur(), blur(), medianBlur() or bilateralFilter()".

Tutorial using them.

like image 179
SiimKallas Avatar answered Sep 22 '22 02:09

SiimKallas