How can i apply a mean or laplacian or average or any kind of filters 3x3
on any matrix i give it to it and get the new matrix ?
What is the code for it

댓글 수: 1

Rik
Rik 2020년 7월 9일
A simple Google search should get you most of the way there. What did you try?

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

 채택된 답변

Image Analyst
Image Analyst 2020년 7월 9일

0 개 추천

How about imfilter()
filterWindow = ones(3) / 9;
filteredImage = imfilter(m, filterWindow);
Or for the Laplacian, how about conv2():
filterWindow = -1 * ones(3);
filterWindow = 8;
filteredImage = conv2(m, filterWindow, 'same');

댓글 수: 2

Hassan Bosha
Hassan Bosha 2020년 7월 9일
is there a one for median filter ?
Image Analyst
Image Analyst 2020년 7월 9일
You can use medfilt2().

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

추가 답변 (0개)

카테고리

질문:

2020년 7월 9일

댓글:

2020년 7월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by