#include #include #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" #include #include "opencv2/imgcodecs.hpp" using namespace cv; /** @function main */ int main(int argc, char** argv) { Mat img = imread("d:/image/checker_gaussian.png", IMREAD_GRAYSCALE); Mat dst3, dst5; imshow("original", img); int i = 3; bilateralFilter(img, dst3, i, i*2, i/2); i = 5; bilateralFilter(img, dst5, i, i*2, i/2); imshow("result 3", dst3); imshow("result 5", dst5); waitKey(); } /** @function readme */