geetools.classification.binaryRasterAccuracy#

geetools.classification.binaryRasterAccuracy(truth, classified, region=None)#

Get a class raster with the following classes.

band “classes”: 0: no change detected and no real change (true negative) 1: no change detected but real change (false negative) 2: change detected but not real change (false positive) 3: change detected and real change (true positive)

band “truth”: 0: no change 1: change

source: https://en.wikipedia.org/wiki/Evaluation_of_binary_classifiers

For both truth and classified image input, it only uses the first band, therefore there is no need to specify a band.

Parameters:
  • truth (ee.Image) – binary image with ground truth. Only the first band will be used

  • classified (ee.Image) – classified binary image. Only the first band will be used

  • region (ee.Geometry) – region for clipping the truth and classified images