KappaV, (CRAN, GitHub) is an R package to assess congruence between two patchy mosaics (e.g. those below). It extends the idea behind the Cohen’s Kappa index for such representations and avoid their rasterization to get a Kappa index, which is both inelegant and inexact.
Its Java counterpart, written by Jules Morel and Mathieu Castets is available there.
# From GitHub
devtools::install_github("vbonhomme/KappaV")
# From CRAN
install.packages("KappaV")