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.


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.
Details and Options

- ImageCooccurrence[image,n] returns an n×n matrix m whose elements mij represent the probability of all occurrences of a pixel with intensity i to the left or bottom of a pixel with intensity j, assuming all pixels to lie in one of n successive bins.
- With ImageCooccurrence[image,n,ker], the co-occurrence matrix can be computed for arbitrary spatial relationships specified by a matrix ker.
- The default two-dimensional kernel used by ImageCooccurrence is
.
- ImageCooccurrence[{image1,image2},…] computes the co-occurrence matrix across two images. The images must have the same dimensions.
- ImageCooccurrence supports a Masking option. The default setting is Masking->All, constructing the co-occurrence matrix based on all of the image pixels.
Examples
open all close allScope (4)
Applications (2)
Related Guides
History
Text
Wolfram Research (2010), ImageCooccurrence, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageCooccurrence.html.
CMS
Wolfram Language. 2010. "ImageCooccurrence." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ImageCooccurrence.html.
APA
Wolfram Language. (2010). ImageCooccurrence. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageCooccurrence.html
BibTeX
@misc{reference.wolfram_2025_imagecooccurrence, author="Wolfram Research", title="{ImageCooccurrence}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/ImageCooccurrence.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_imagecooccurrence, organization={Wolfram Research}, title={ImageCooccurrence}, year={2010}, url={https://reference.wolfram.com/language/ref/ImageCooccurrence.html}, note=[Accessed: 11-August-2025]}