What does this Digital filter actually do? and what is it called?

조회 수: 1 (최근 30일)
Pappu Murthy
Pappu Murthy 2022년 5월 19일
댓글: Star Strider 2022년 5월 21일
I am using a filter defined by Matrix [1 1 1 1 1;1 2 2 2 1; 1 2 4 2 1; 1 2 2 2 1; 1 1 1 1 1]; on a 2 D image with filter2. I would like to know what is the name of the filter if it has one and what exactly it does to the image?

채택된 답변

Star Strider
Star Strider 2022년 5월 19일
It is a 2D FIR filter: I am not certain it has any other name.
To see what it does, plot its results —
H = [1 1 1 1 1;1 2 2 2 1; 1 2 4 2 1; 1 2 2 2 1; 1 1 1 1 1];
A = ones(25);
Y = filter2(H,A,'full');
figure
surf(Y)
.
  댓글 수: 4
Pappu Murthy
Pappu Murthy 2022년 5월 21일
Thanks for all your efforts. So if i understand it correctly, then my 2-D gray scale image, the lighter pixels get more light and amplified compared to the darker ones and also because it is 5x5 matrix filter, it also smooths out somewhat any kind of unevenness in the gray scale values. Right?
Star Strider
Star Strider 2022년 5월 21일
My pleasure!
I cannot determine what it does to your image with respect to light or dark pixels. It appears to emphasize the centre pixels and attenuate those outisde its specified area.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Frequency Transformations에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by