Gray value matrix

from Wikipedia, the free encyclopedia

The co-occurrence matrix (engl. Gray level co-occurrence matrix (GLCM) or co-occurrence matrix ) is an important tool in the digital image processing .

The gray value matrix is ​​used for the recognition of textures . In the case of an image with a high-contrast surface structure, the lower left and upper right corners are heavily occupied, while an image with large monotonous areas has a strong main diagonal.

The matrix of the gray combinations is:, where describes the frequency of the gray combinations and the relation between the pixels and .

In addition can be adapted to the elements with the boundary between the gray value of the approximate length and recognize.

example

Starting image for the example, in greatly enlarged form. Getting lighter from 0 to 3.

The example is a picture with some monotonous areas and therefore also has a large main diagonal.

Picture with

And relation with

results in the gray value matrix

It follows:

For example, to get the entry , count how often the right neighbor of a one is a two. This occurs at the points [ ; ; ; ], so exactly four times.

literature