Calculate the sufficient statistic of the Potts model for the given labels.
sufficientStat(labels, neighbors, blocks, k)
A matrix of pixel labels.
A matrix of all neighbors in the lattice, one row per pixel.
A list of pixel indices, dividing the lattice into independent blocks.
The number of unique labels.
The sum of like neighbors.