Hi! I have a 2D matrix A and I used
B=imregionalmax(A)
Now the matrix B contains 1 for all identified maximas. But I want to include also the surrounding elements and get the position (i,j) of the elements. How do I do this?
Thanks a lot!!
Best Answer