代码
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
Mat src_gray;
int thresh = 100;
RNG rng(12345);
void thresh_callback(int, void*);
int main(void)
{
Mat src = imread("../res/fish.png");
if(src.empty())
{
cout << "can't load the image" << endl;
return -1;
}
cv::cvtColor(src, src_gray, COLOR_BGR2GRAY);
blur(src_gray