مساعدة في الماتلاب

احبتي في الله اعضاء منتدى المهندس …

السلام عليكم …

ارجو منكم المساعدة في حل المسالة في برنامج الماتلاب … لاني وبصراحة لدي صعوبة في التعامل مع الماتلاب…

دعوة في ظهر الغيب لمن يساعدني فأخوكم في امس الحاجة …

Using an image of your choice perform the following:
SIZE=3 Corrupt the image with white Gaussian noise so that the SNR of the image is 5 dB. Display the original and corrupted images. [/size]
SIZE=3 Filter your clean image and your corrupted image with (3×3) and (5×5) mean and median filters. Display the results. [/size]
SIZE=3 Find the SNRI for each case above. [/size]
SIZE=3 Discuss the performance of the mean and median filters in the above experiments [/size]

بالنسبة للجزء الاول

noisy_image = imnoise(ori_im,'gaussian',nmean,nvar);

where ori_im = is the original image
      nmean  = 0
      nvar   = 0.01 (variance).

بالنسبة للجزء الثانى جرب استخدام الاتى

imSmoothed = medfilt2(img, [3 3]);

I = imread('peppers.png');
H = fspecial('average', [5 5]);
I = imfilter(I, H);
imshow(I)

الجزء الثالث

> formula for calculating the SNR = 20log10(sum(x)2 ÷ sum(x -  x')2)
> where x is the original signal and x' is the filtered signal.