Co-occurrence Matrix
   HOME

TheInfoList



OR:

A co-occurrence matrix or co-occurrence distribution (also referred to as : ''gray-level co-occurrence matrices'' GLCMs) is a
matrix Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** ''The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchis ...
that is defined over an image to be the distribution of co-occurring pixel values (grayscale values, or colors) at a given offset. It is used as an approach to texture analysis with various applications especially in medical image analysis.


Method

Given a grey-level image I, co-occurrence matrix computes how often pairs of pixels with a specific value and offset occur in the image. * The offset, (\Delta x, \Delta y), is a position operator that can be applied to any pixel in the image (ignoring edge effects): for instance, (1, 2) could indicate "one down, two right". * An image with p different pixel values will produce a p \times p co-occurrence matrix, for the given offset. * The (i, j)^\text value of the co-occurrence matrix gives the number of times in the image that the i^\text and j^\text pixel values occur in the relation given by the offset. For an image with p different pixel values, the p \times p co-occurrence matrix C is defined over an n \times m image I, parameterized by an offset (\Delta x, \Delta y), as: :C_(i,j)=\sum_^n\sum_^m\begin 1, & \textI(x, y)=i\textI(x+\Delta x, y+\Delta y)=j \\ 0, & \text\end where: i and j are the pixel values; x and y are the spatial positions in the image I; the offsets (\Delta x, \Delta y) define the spatial relation for which this matrix is calculated; and I(x, y) indicates the pixel value at pixel (x, y). The 'value' of the image originally referred to the
grayscale In digital photography, computer-generated imagery, and colorimetry, a grayscale image is one in which the value of each pixel is a single sample representing only an ''amount'' of light; that is, it carries only intensity information. Graysc ...
value of the specified
pixel In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a raster image, or the smallest point in an all points addressable display device. In most digital display devices, pixels are the ...
, but could be anything, from a
binary Binary may refer to: Science and technology Mathematics * Binary number, a representation of numbers using only two digits (0 and 1) * Binary function, a function that takes two arguments * Binary operation, a mathematical operation that ta ...
on/off value to 32-bit color and beyond. (Note that 32-bit color will yield a 232 × 232 co-occurrence matrix!) Co-occurrence matrices can also be parameterized in terms of a distance, d, and an angle, \theta, instead of an offset (\Delta x, \Delta y). Any matrix or pair of matrices can be used to generate a co-occurrence matrix, though their most common application has been in measuring
texture Texture may refer to: Science and technology * Surface texture, the texture means smoothness, roughness, or bumpiness of the surface of an object * Texture (roads), road surface characteristics with waves shorter than road roughness * Texture ...
in images, so the typical definition, as above, assumes that the matrix is an image. It is also possible to define the matrix across two different images. Such a matrix can then be used for color mapping.


Aliases

Co-occurrence matrices are also referred to as: :* GLCMs (gray-level co-occurrence matrices) :* GLCHs (gray-level co-occurrence histograms) :* spatial dependence matrices


Application to image analysis

Whether considering the intensity or
grayscale In digital photography, computer-generated imagery, and colorimetry, a grayscale image is one in which the value of each pixel is a single sample representing only an ''amount'' of light; that is, it carries only intensity information. Graysc ...
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 feature Robert M. Haralick (born 1943) is Distinguished Professor in Computer Science at Graduate Center of the City University of New York (CUNY). Haralick is one of the leading figures in computer vision, pattern recognition, and image analysis. He is a ...
s, after
Robert Haralick Robert M. Haralick (born 1943) is Distinguished Professor in Computer Science at Graduate Center of the City University of New York (CUNY). Haralick is one of the leading figures in computer vision, pattern recognition, and image analysis. He is a ...
. Texture analysis is often concerned with detecting aspects of an image that are rotationally invariant. To approximate this, the co-occurrence matrices corresponding to the same relation, but rotated at various regular angles (e.g. 0, 45, 90, and 135 degrees), are often calculated and summed. Texture measures like the co-occurrence matrix, wavelet transforms, and
model fitting Curve fitting is the process of constructing a curve, or mathematical function, that has the best fit to a series of data points, possibly subject to constraints. Curve fitting can involve either interpolation, where an exact fit to the data is ...
have found application in medical image analysis in particular.


Other applications

Co-occurrence matrices are also used for words processing in natural language processing (NLP).Bryan Bischof. Higher order co-occurrence tensors for hypergraphs via face-splitting. Published 15 February 2020, Mathematics, Computer Science
ArXiv
/ref>


See also

* Gray level size zone matrix


References

{{reflist


External links


A Grey Level Co-occurrence Matrix tutorial




* ttps://cran.r-project.org/web/packages/glcm Package for GLCM calculation in R Image processing Feature detection (computer vision)