EnMAP-Box / enmap-box

EnMAP-Box source code repository. See https://enmap-box.readthedocs.io for documentation
GNU General Public License v3.0
34 stars 16 forks source link

[Classification layer accuracy and area report] issue with unclassified pixel inside map #900

Closed janzandr closed 1 month ago

janzandr commented 1 month ago

Reported by @d-pflugmacher.

If a map contains pixel that are not classified (i.e. not assigned to a class), the reported accuracies are wrong.

image

In this case, the unclassifed pixel have a value of 0, which isn't assigned to a category (calegory values are 1, 2, ...): image

janzandr commented 1 month ago

Problem found: the 0 value pixels introduced an additional (false) stratum, which shifted all the correct strata counts by one position to the left, which messed up the calculations.