ImageCooccurrence
ImageCooccurrence[image,n] gives the n×n co-occurrence matrix for image.
ImageCooccurrence[image,n,ker] computes a co-occurrence matrix for arbitrary spatial relationships specified by a kernel ker.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.