Skip to main content
. 2019 May 23;8(5):499. doi: 10.3390/cells8050499
Algorithm 1 AJI computation
Require: A series of images containing real annotations and predictive segmentation results; Gi is indexed by i for each real nucleus; Each prediction segmentation result Sk is indexed by k;
Ensure: AJI Score
 1: Initialize the number of intersections and union between the real labeled area and the predicted segmentation result area, and count them
 2: C←0,U←0
 3: for all Gi do
 4:  j←argmaxk(|Gi∩Sk|/|Gi∪Sk|)
 5:  Refresh the counting: C←C+|Gi∩Sj|,U←U+|Gi∪Sj|
 6:  Mark Gi
 7: end for
 8: for all Si do
 9:  j←argmaxk(|Gi∩Sk|/|Gi∪Sk|)
 10:  Refresh the counting: C←C+|Gi∩Sj|,U←U+|Gi∪Sj|
 11:  Mark Si
 12: end for
 13: AJI←C/U