ADDING GAUSSIAN NOISE TO VIDEO
1 view (last 30 days)
Show older comments
DHRUPAD
on 23 Dec 2011
Commented: ANUPRIYA NALLUSAMY
on 24 Aug 2015
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.
0 Comments
Accepted Answer
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
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!