ToolPythonBeginner Counting cells with scipy.ndimage: how many are there, and how large? best.append(np.bincount(cells[inside]).argmax()) # the label most of them carry