Ask Your Question

Revision history [back]

click to hide/show revision 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;

image description](/upfiles/14135336807278808.jpg)

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;

image description](/upfiles/14135336807278808.jpg)image description image description image description