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

4 Ansichten (letzte 30 Tage)
Armylia Dewi
Armylia Dewi am 5 Jun. 2022
Kommentiert: Voss am 6 Jun. 2022
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 Kommentar
Armylia Dewi
Armylia Dewi am 5 Jun. 2022
Please help, here I am using Matlab version R2018a.
error in
Undefined function 'imgausstfilt' for input arguments of type 'uint8'.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Voss
Voss am 5 Jun. 2022
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 Kommentare
Armylia Dewi
Armylia Dewi am 6 Jun. 2022
Oh Oke, thankyou very much..
Voss
Voss am 6 Jun. 2022
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by