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 allclose all

Basic Examples  (2)

A co-occurrence matrix:

In[1]:=
Click for copyable input
Out[1]=

3D profile of a co-occurrence matrix:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Options  (1)

Applications  (2)

Properties & Relations  (4)

See Also

ImageLevels  ImageHistogram  ComponentMeasurements

Introduced in 2010
(8.0)