ADDING GAUSSIAN NOISE TO VIDEO

6 views (last 30 days)
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

Chandra Kurniawan
Chandra Kurniawan on 23 Dec 2011
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
DHRUPAD
DHRUPAD on 23 Dec 2011
Thank You Sir for your guidance!!!
ANUPRIYA NALLUSAMY
ANUPRIYA NALLUSAMY on 24 Aug 2015
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!