imregionalmax(grayImage, 8) gives the pixel which is greater than all the 8 surrounding neighbors but I need it to be greater than at least one neighbor. And I also want to mark them in the given image.
MATLAB: How to mark the pixel whose intensity is greater than at least one of its neighbors in a given image
Image Processing Toolboximregionalmaximregionalmin()
Best Answer