1 | initial version |
make a noise image and add it to the 'attacked' image.
Mat ocv = imread("attack.png");
Mat noise(ocv.size(), ocv.type());
randu(noise,Scalar::all(0),Scalar::all(100));
ocv+=noise;
](/upfiles/14135336807278808.jpg)
2 | No.2 Revision |
make a noise image and add it to the 'attacked' image.
Mat ocv = imread("attack.png");
Mat noise(ocv.size(), ocv.type());
randu(noise,Scalar::all(0),Scalar::all(100));
randu(noise, Scalar::all(0), Scalar::all(100)); // lower / upper noise range
ocv+=noise;
](/upfiles/14135336807278808.jpg)