Trending Scipy Ndimage Maximum_Filter As kernel over the image and computing the sum of products at each location. Scipy Ndimage Maximum_Filter / I would expect a 2d array with only one true value (2,4) for variables giannis or giorgos as i get in matlab.