ToolPythonBeginner Counting cells with scipy.ndimage: how many are there, and how large? peaks = (dist == ndi.maximum_filter(dist, size=15)) & (dist > 5) & flagged