Lines Matching refs:RNG
43 void make_noisy(const cv::Mat& img, cv::Mat& noisy, double sigma, double pepper_salt_ratio,cv::RNG& rng)
47 rng.fill(noise,cv::RNG::NORMAL,128.0,sigma);
58 void make_spotty(cv::Mat& img,cv::RNG& rng, int r=3,int n=1000)
62 int x=rng(img.cols-r),y=rng(img.rows-r);
63 if(rng(2)==0)
79 cv::RNG rng(42);
88 make_noisy(img,images[i], 20, 0.02,rng);
89 //make_spotty(images[i],rng);