How do i find the local maximums of a 2D matrix in a specified neighborhood?

조회 수: 51 (최근 30일)
Hi,
I've been using the function Localmax = imregionalmax(MyMatrix).
The problem is that this function only gives me the local maximums on a neighborhood of 1 pixel, and i need my maximums spaced by 8 pixel horizontally, vertically and diagonally.
Can somebody help me? Thanks in advance.

답변 (1개)

Urmila Rajpurohith
Urmila Rajpurohith 2020년 3월 6일
you can use below command
Localmax = imregionalmax(MyMatrix,conn)
Where "conn" specifies the pixel connectivity.
you can refer to the below documentation link for more information on how to use "conn" property

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by