필터 지우기
필터 지우기

design my own 2d filter

조회 수: 3 (최근 30일)
zhang
zhang 2014년 4월 10일
편집: zhang 2014년 4월 10일
I'm wondering is there a way to define my own 2d filter. Assuming there is a matrix A, I'd like to assign every element of A to the maximum value of its 8 neighbors. For example:
A = [1 2 3 4 5
6 7 8 9 10
-1 3 4 8 13
4 2 0 9 1]
After filtering:
A = [1 2 3 4 5
6 8 9 10 10
-1 8 9 13 13
4 2 0 9 1]
Thanks

답변 (0개)

카테고리

Help CenterFile Exchange에서 Filter Design에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by