- Include the surrounding elements: imdilate your regionalmax binary image by the relevant structuring element. If you just want the orthogonal neighbours:
- Get the position (i,j) of the elements:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!