I want to use the bilateral filter of opencv 2.4 in an Android application. I am currently calling the function by `Imgproc.bilateralFilter(gray, gray, GLOBAL_ITER, GLOBAL_ITER*2, GLOBAL_ITER/2);` where gray is the matrix of the grayscale image. I am getting the error
E/AndroidRuntime: FATAL EXCEPTION: Thread-1376 Process: com.example.mustardlab.opencvtesting, PID: 30368 CvException [org.opencv.core.CvException: cv::Exception: /Volumes/build-storage/build/2_4_pack-android/opencv/modules/imgproc/src/smooth.cpp:1925: error: (-215) (src.type() == CV_8UC1 || src.type() == CV_8UC3) && src.type() == dst.type() && src.size() == dst.size() && src.data != dst.data in function void cv::bilateralFilter_8u(const cv::Mat&, cv::Mat&, int, double, double, int)
]
↧