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.

4 visualizaciones (últimos 30 días)
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;

Respuestas (1)

Image Analyst
Image Analyst el 14 de Oct. de 2021
That's pretty much what my attached demo does. Adapt it as needed.
  4 comentarios
Amad Kadir
Amad Kadir el 16 de Oct. de 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 el 18 de Oct. de 2021
Replace
imshow(grayImage , [9 9])
with
imshow(grayImage , [])
also, there is no label() function. Maybe you meant xlabel() or bwlabel().

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by