Ask Your Question
2

How to test video under various attacks?

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

Mahavir gravatar image

updated 2020-11-28 15:24:08 -0600

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
1

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

berak gravatar image

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

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
ocv+=noise;

image description image description image description

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 342 times

Last updated: Oct 17 '14