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.

 Risposta accettata

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 Commenti

DHRUPAD
DHRUPAD il 23 Dic 2011
Thank You Sir for your guidance!!!
How to add random noise in video?

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by