Description Usage Arguments Value
Calculate the sufficient statistic of the Potts model for the given labels.
1 | sufficientStat(labels, neighbors, blocks, k)
|
labels |
A matrix of pixel labels. |
neighbors |
A matrix of all neighbors in the lattice, one row per pixel. |
blocks |
A list of pixel indices, dividing the lattice into independent blocks. |
k |
The number of unique labels. |
The sum of like neighbors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.