Average Filter and Gaussian noise

2 ビュー (過去 30 日間)
Fahmida Tasnim Lisa
Fahmida Tasnim Lisa 2020 年 7 月 26 日
Hi!
I need help with my assignment
Remove Gaussian noise using Average Filter from the color image using RGB & HSI model (separately)
So i took an rgb image , split the three channel and added gaussian noise to the original image and the color channels. But i'm strugglin to remove the noise using average filter.
I used the following code but it doesn't work, it keeps returning the same noisy image. Is there any better way to solve this. I just wanna use the average filter on a simple rgb image and remove its noise
%partial code%
redAF = filter2(fspecial('average',3),redChannel);
% Find the noise in the red.
noiseImage = (redChannel == 0 | redChannel == 255);
% Get rid of the noise in the red by replacing with average
noiseFreeRed = redChannel;
noiseFreeRed(noiseImage) = redAF(noiseImage);
subplot(3, 4, 10);
imshow(noiseFreeRed);
title('Restored Red Channel', 'FontSize', fontSize);

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Filtering and Enhancement についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by