Some image acquisition systems are not very accurate, and the result is noisy images. To see this effect, put a JPEG file in your Current Folder and use imread to load it
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:13| Question number:11.13
All Answers
total answers (1)
Ch13Ex11.m
% Make an image "noisy" and show both side by side
im = imread('photo1.jpg');
[r, c, d] = size(im);
im2 = im;
n = 50;
im2(:,:,1) = im2(:,:,1) + uint8(n*randi([-1 1],r,c));
im2(:,:,2) = im2(:,:,2) + uint8(n*randi([-1 1],r,c));
im2(:,:,3) = im2(:,:,3) + uint8(n*randi([-1 1],r,c));
subplot(1,2,1)
image(im)
subplot(1,2,2)
image(im2)
need an explanation for this answer? contact us directly to get an explanation for this answer