Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You'd have to do it by hand. You make a 2D filter which you slide across the image so that each pixel becomes 0 if it is not the maximum in the neighborhood and retains its value otherwise.