Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

matlab code needed please use noise too in the code Take any random image and re

ID: 3920337 • Letter: M

Question

matlab code needed please use noise too in the code

Take any random image and read it in Matiab using imread command. The image should be 2D that is the Matrix obtained after imread should be of order mxn. This will be your xít). » Then create a mask (filter), using fspecial command. Use your Matlab hetp to learn use of fspecial. (Hint: you haye to use h fspecial(average', hsize) » Then use conv2 to perform convolution of x with h. Then use imshow and subplot or figure, to display the original image and the filtered image. ?

Explanation / Answer

x = imread("1.jpg");
h = fspecial('average',hsize)
c = conv2(x,h)
subplot(1,1,1);
imshow(c)