|
Algorithm 2 Cells counting algorithm. |
-
1:
Calculate Segmentation Masks,
-
2:
for each cell’s pixel cluster inside result mask do
-
3:
cluster all neighbouring pixels with same value,
-
4:
compute bounding box,
-
5:
Step = Step + 1,
-
6:
end for
-
7:
Sum all healthy cells as ,
-
8:
Sum all infected cells as ,
-
9:
Compute accuracy using and compared to real count values from JSON file combined with the original dataset,
|