How to use 'median filter and gaussian filter' in matlab ?

조회 수: 5 (최근 30일)
Armylia Dewi
Armylia Dewi 2022년 6월 5일
댓글: Voss 2022년 6월 6일
image_folder ='E:\Resize Image'
filenames = dir (fullfile(image_folder,'*.jpeg'))
total_images = numel(filenames);
results=[];
for n= 1:total_images;
f= fullfile(image_folder, filenames(n).name);
disp(f);
our_images= imread (f);
% CONTRAST STRECHING
s = imadjust (our_images,stretchlim(our_images,[0.01 0.99]),[]); %menentukan nilai maksimum dan minimum untuk peregangan
% FILTERING
noise = imnoise (s,'gaussian',0.05);
denoise = medfilt2(noise);denoise1 = imgausstfilt (noise, 2) ;
  댓글 수: 1
Armylia Dewi
Armylia Dewi 2022년 6월 5일
Please help, here I am using Matlab version R2018a.
error in
Undefined function 'imgausstfilt' for input arguments of type 'uint8'.

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

채택된 답변

Voss
Voss 2022년 6월 5일
Try imgaussfilt instead of imgausstfilt (note the extra t)
denoise1 = imgaussfilt(randn(100),2); % works
denoise1 = imgausstfilt(randn(100),2); % error
Unrecognized function or variable 'imgausstfilt'.
  댓글 수: 4
Armylia Dewi
Armylia Dewi 2022년 6월 6일
Oh Oke, thankyou very much..
Voss
Voss 2022년 6월 6일
You're welcome!

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

추가 답변 (0개)

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by