- Gaussian Mx Untitled22m X We Will Call Our Gaussian Function 1 El Function Gaussian Im Size Sigma Noisetype 2 1 (47.01 KiB) Viewed 48 times
Gaussian.mx + Untitled22m x + We will call our Gaussian() function 1 El function Gaussian (im, size, sigma, noiseType) 2
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Gaussian.mx + Untitled22m x + We will call our Gaussian() function 1 El function Gaussian (im, size, sigma, noiseType) 2
Gaussian.mx + Untitled22m x + We will call our Gaussian() function 1 El function Gaussian (im, size, sigma, noiseType) 2 3 to put the site N = input ("Enter the size : 4 - = 5 6 to put the Sigma S = input ("Enter the Sigma "); 7- - 8 9 * Display the original and gray image original = imread (im); grayscale = rgb2gray (original) ; figure (1): imshow ( original ) ; figure(2) : imshow ( grayscale); Add noise to the grayscale image and display noisyImage = imnoise (grayscale, noiseType); figure (4); imshow ( noisyImage); Generate Gaussian matrix h - Especial (gaussian, size, sigma): Scall function Gaussian Gaussian('darkly.jpg' [N N1,9, gaussian): 10 - 11 12 1 Convolve the noised image with the Gaussian ker M = conv2 (double (grayscale), double (h)); + Display the result figure (3); imshow ((M.2) .^0.5, 0); end