Professional Documents
Culture Documents
EXPERIMENT NO. 1
for i = 1:length(A)
for j = 1:length(A)
if(A(i,j)<64)
D(i,j) = 0;
else D(i,j) = 64;
end
if(A(i,j)>128)
D(i,j) = 255;
end
end
end
subplot(2,3,4);
imshow(D);
%image noise-salt & pepper
E = imnoise(A,'salt & pepper');
subplot(2,3,5);
imshow(E);
%speckle noise
F = imnoise(A,'speckle');
subplot(2,3,6);
imshow(F);
RESULT:
cameraman.tif
image crop
image resize
image contrast
speckle noise
CONCLUSION:
An image was read and basic image processing operations were
performed using MATLAB built in functions and results were verified.