Comparing rasters encoded using the centroid and maximum area methods