Ask Your Question

How to test video under various attacks?

asked 2014-10-17 03:00:28 -0500

Mahavir gravatar image

Hello everyone,

I am doing project on video watermarking. I am able to insert and extract watermark from video frames. I want to test my algorithm under various noise and filtering attacks. How to add noise to video frames. I am doing color video watermarking and adding watermarking in R channel.

Thanks in advance!!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-10-17 03:16:48 -0500

berak gravatar image

updated 2014-10-17 03:20:43 -0500

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)); // lower / upper noise range

image description image description image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2014-10-17 03:00:28 -0500

Seen: 95 times

Last updated: Oct 17 '14