This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ImageCooccurrence

ImageCooccurrence
gives the n×n cooccurrence matrix for image.
ImageCooccurrence
computes a cooccurrence matrix for arbitrary spatial relationships specified by a kernel ker.
  • ImageCooccurrence returns an n×n matrix m whose elements 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, the cooccurrence matrix can be computed for arbitrary spatial relationships specified by a matrix ker.
  • ImageCooccurrence computes the cooccurrence matrix across two images. The images must have the same dimensions.
A cooccurrence matrix:
3D profile of a cooccurrence matrix:
A cooccurrence matrix:
In[1]:=
Click for copyable input
Out[1]=
 
3D profile of a cooccurrence matrix:
In[1]:=
Click for copyable input
Out[1]=
Graylevel cooccurrence matrix, computed for a color image:
Joint histogram of two color channels of the same image:
Specify a horizontally symmetric kernel:
Specify a diagonal kernel that matches the pattern of the image:
Use a binary mask to specify the region of interest:
Define a function that computes the Haralick texture contrast measure:
Contrast of a checkerboard image and a flat image:
Haralick texture correlation measure for grayscale images:
Compute the horizontal correlation:
Vertical correlation:
Cooccurrence matrix of a random image:
The total of all elements of the cooccurrence matrix is 1:
Cooccurrence matrix of a checkerboard image:
Cooccurrence matrix of a striped image using a horizontal kernel:
New in 8