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.

조회 수: 3 (최근 30일)
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;

답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by