ADDING GAUSSIAN NOISE TO VIDEO

SIR,HOW CAN I ADD GAUSSIAN NOISE TO A VIDEO??I HAVE DIVIDED THE VIDEO INTO FRAMES BUT AFTER THAT I AM UNABLE TO PROCEED FURTHER.HOPE TO HEAR FROM YOU SOON.THANK YOU.

 Accepted Answer

Hello,
I just use video 'xylophone.mpg' from Matlab.
You can use your own video [any .avi, .mpg, etc] from your drive.
clear; clc;
obj = mmreader('xylophone.mpg');
video = read(obj);
nFrames = size(video,4);
for i = 1 : nFrames
I(:,:,:,i) = imnoise(video(:,:,:,i),'gaussian');
imshow(I(:,:,:,i));
drawnow;
end

2 Comments

Thank You Sir for your guidance!!!
How to add random noise in video?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!