フィルターのクリア

How to apply low pass filter on an image

25 ビュー (過去 30 日間)
Hind Aljallaf
Hind Aljallaf 2023 年 12 月 1 日
回答済み: DGM 2023 年 12 月 1 日
How do you apply a low pass filter on an image that is noisy, and what is it supposed to do?

回答 (1 件)

DGM
DGM 2023 年 12 月 1 日
You can either use imfilter() in conjunction with fspecial() to generate the filter kernel, or in the specific case that you want a gaussian kernel, you can use imgaussfilt().
As to what it does, there should be examples at the given links, otherwise:
inpict = imread('cameraman.tif');
% use imfilter
fk = fspecial('disk',5); % a flat circular filter
A = imfilter(inpict,fk,'replicate');
imshow(A)
% use imgaussfilt()
B = imgaussfilt(inpict,3);
imshow(B)

Community Treasure Hunt

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

Start Hunting!

Translated by