
- Find and count all the cells by thresholding with a high threshold.
- Then set a different, lower threshold to find the dark regions.
- If some cells have more than one dark region, merge all dark regions within a cell.
- Then call bwlabel to count the blobs, both normal and infected.
