pixelCounts method
How many pixels each id owns, indexed by id; entry zero is the pixels nothing reached.
Implementation
Uint32List pixelCounts() {
final counts = Uint32List(nodes.length + 1);
for (final id in ids) {
counts[id]++;
}
return counts;
}