Connected components of equal-class cells (4 or 8 neighbours), numbered
from 1 by class (ascending) and, within a class, in column-major order of
their first cell, as landscapemetrics::get_patches.
Connected components of equal-class cells (4 or 8 neighbours), numbered
from 1 by class (ascending) and, within a class, in column-major order of
their first cell, as landscapemetrics::get_patches.