Trending Scipy Ndimage Maximum_Filter Can be used outside the limited scope of segmentation applications. Scipy Ndimage Maximum_Filter : >>> from scipy.ndimage import correlate.