new to image processing and will like to get some guides for this question. Add sine wave noise to the image and then remove it by band-reject filtering and notch filtering.

2 vues (au cours des 30 derniers jours)
Add sine waves to the face using the following commands. Then remove the noise using band-reject fltering or notch fltering.
[x,y]=meshgrid(1:256,1:256);
s=1+sin(x+y/1.5);
ep=(double(en)/128+s)/4;

Réponses (1)

Image Analyst
Image Analyst le 14 Oct 2021
That's pretty much what my attached demo does. Adapt it as needed.
  4 commentaires
Amad Kadir
Amad Kadir le 16 Oct 2021
I have the following code but Im still getting error message. can you
guide me please?
im = imread('flower.tif');
noiseIm = imnoise(im, 'gaussian', 0.1); % adding the sine waves to the noise to image
subplot(2,3,1),imshow(noiseIm);
xlabel('Gaussian');
en = 127 ;
[x,y]=meshgrid(1:256,1:256 );
s=1+sin(x+y/1.5 );
grayImage = im ;
imshow(grayImage , [9 9])
ep=(double(en)/128+s)/4;
x = filter2(fspecial('average',3), noiseIm)/255; %removing nosie by the average filter method
subplot(2,3,2),
imshow(x);
label('Average Filter');
denoise2 = wiener2(noiseIm, []); %removing nosie by the wiener filter method
subplot(2,3,3), imshow(denoise2);
xlabel('Wiener Filter');
Im getting the following errors and im not sure what I should do to fix
it. anything ideas?
(Error using images.internal.checkDisplayRange (line 19)
HIGH must be greater than LOW.
Error in images.internal.imageDisplayValidateParams (line 58)
common_args.DisplayRange = images.internal.checkDisplayRange(common_args.DisplayRange,mfilename);
Error in images.internal.imageDisplayParseInputs (line 79)
common_args = images.internal.imageDisplayValidateParams(common_args);
Error in imshow (line 253)
images.internal.imageDisplayParseInputs({'Parent','Border','Reduce'},preparsed_varargin{:});
Error in imageprocessing (line 11)
imshow(grayImage , [9 9]))
Image Analyst
Image Analyst le 18 Oct 2021
Replace
imshow(grayImage , [9 9])
with
imshow(grayImage , [])
also, there is no label() function. Maybe you meant xlabel() or bwlabel().

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by