Skip to main content
. 2023 Jan 29;23(3):1501. doi: 10.3390/s23031501
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,