First time here? Check out the FAQ!
answered 2013-03-13 12:09:20 -0600
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.