ToolPythonBeginner Counting cells with scipy.ndimage: how many are there, and how large? rows, cols = np.indices((N, N)) # row and column number of every pixel