# Co-occurrence matrix

Co-occurrence matrix

A co-occurrence matrix or co-occurrence distribution (less often coöccurrence matrix or coöccurrence distribution) is a matrix or distribution that is defined over an image to be the distribution of co-occurring values at a given offset. Mathematically, a co-occurrence matrix C is defined over an n x m image I, parameterized by an offset (Δx,Δy), as:

$C_{\Delta x, \Delta y}(i,j)=\sum_{p=1}^n\sum_{q=1}^m\begin{cases} 1, & \mbox{if }I(p,q)=i\mbox{ and }I(p+\Delta x,q+\Delta y)=j \\ 0, & \mbox{otherwise}\end{cases}$

The 'value' of the image originally referred to the grayscale value of the specified pixel. The value could be anything, from a binary on/off value to 32-bit color and beyond. Note that 32-bit color will yield a $2^{32} \times 2^{32}$ co-occurrence matrix!

Really any matrix or pair of matrices can be used to generate a co-occurrence matrix, though their main applicability has been in the measuring of texture in images, so the typical definition, as above, assumes that the matrix is in fact an image.

It is also possible to define the matrix across two different images. Such a matrix can then be used for color mapping.

Note that the (Δx,Δy) parameterization makes the co-occurrence matrix sensitive to rotation. We choose one offset vector, so a rotation of the image not equal to 180 degrees will result in a different co-occurrence distribution for the same (rotated) image. This is rarely desirable in the applications co-occurrence matrices are used in, so the co-occurrence matrix is often formed using a set of offsets sweeping through 180 degrees (i.e. 0, 45, 90, and 135 degrees) at the same distance to achieve a degree of rotational invariance.

## Aliases

Co-occurrence matrices have been referred to as:

• GLCM (Gray-Level Co-occurrence Matrices)
• spatial dependence matrix

## Application to image analysis

Whether considering the intensity or grayscale values of the image or various dimensions of color, the co-occurrence matrix can measure the texture of the image. Because co-occurrence matrices are typically large and sparse, various metrics of the matrix are often taken to get a more useful set of features. Features generated using this technique are usually called Haralick features, after R M Haralick, attributed to his paper Textural features for image classification (1973).

Texture measures like the co-occurrence matrix, wavelet transforms, and model fitting have found application in medical image analysis in particular.

## References

• Robert M Haralick, K Shanmugam, Its'hak Dinstein (1973). "Textural Features for Image Classification". IEEE Transactions on Systems, Man, and Cybernetics SMC-3 (6): 610–621.  [1]

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• Co-occurrence — or cooccurrence can either mean concurrence / coincidence or, in a more specific sense, the above chance frequent occurrence of two terms from a text corpus alongside each other in a certain order. Co occurrence in this linguistic sense can be… …   Wikipedia

• Cooccurence Matrix — Die Grauwertematrix (engl. co occurrence matrix) ist ein wichtiges Hilfsmittel in der digitalen Bildverarbeitung Verwendet wird die Grauwertematrix bei der Erkennung von Texturen. Bei einem Bild mit kontrastreicher Oberflächenstruktur ist die… …   Deutsch Wikipedia

• Cooccurrence Matrix — Die Grauwertematrix (engl. co occurrence matrix) ist ein wichtiges Hilfsmittel in der digitalen Bildverarbeitung Verwendet wird die Grauwertematrix bei der Erkennung von Texturen. Bei einem Bild mit kontrastreicher Oberflächenstruktur ist die… …   Deutsch Wikipedia

• Coocurrence Matrix — Die Grauwertematrix (engl. co occurrence matrix) ist ein wichtiges Hilfsmittel in der digitalen Bildverarbeitung Verwendet wird die Grauwertematrix bei der Erkennung von Texturen. Bei einem Bild mit kontrastreicher Oberflächenstruktur ist die… …   Deutsch Wikipedia

• Symmetric matrix — In linear algebra, a symmetric matrix is a square matrix, A , that is equal to its transpose:A = A^{T}. ,!The entries of a symmetric matrix are symmetric with respect to the main diagonal (top left to bottom right). So if the entries are written… …   Wikipedia

• Latent semantic analysis — (LSA) is a technique in natural language processing, in particular in vectorial semantics, of analyzing relationships between a set of documents and the terms they contain by producing a set of concepts related to the documents and terms. LSA was …   Wikipedia

• Term Discrimination — is a way to rank keywords in how useful they are for Information Retrieval. Overview This is a method similar to tf idf but it deals with finding keywords suitable for information retrieval and ones that are not. Please refer to Vector Space… …   Wikipedia

• Oceanlinx — is a leading international company which has created Wave Energy Converter technology. The company has developed proprietary technology for extracting energy from ocean waves and converting it into either electricity or desalinated sea water.… …   Wikipedia

• Latent Semantic Structure Indexing — (LaSSI) is a technique for calculating chemical similarity derived from Latent semantic analysis (LSA).LaSSI was developed at Merck Co. and patented in 2007 [http://patft.uspto.gov/netacgi/nph Parser?patentnumber=7219020] by Richard Hull, Eugene… …   Wikipedia

• Grauwertematrix — Die Grauwertematrix (engl. gray level co occurrence matrix (GLCM) oder co occurrence matrix) ist ein wichtiges Hilfsmittel in der digitalen Bildverarbeitung. Verwendet wird die Grauwertematrix bei der Erkennung von Texturen. Bei einem Bild mit… …   Deutsch Wikipedia