how to generate random noise and fixed pattern noise in video
3 次查看(过去 30 天)
显示 更早的评论
how to add random and fixed pattern noise in video?
3 个评论
回答(2 个)
Dinesh Iyer
2015-8-25
Anupriya,
You can use the imnoise function in the Image Processing Toolbox to add noise to an image. You can follow these steps:
- Read video into MATLAB one frame at a time using VideoReader.
- Apply noise on each frame using imnoise;.
- Write out frames into a video file using VideoWriter.
Hope this helps.
Dinesh
Iftikhar Ahmad
2015-12-3
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
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!