An image texture is a set of metrics calculated in image processing designed to quantify the perceived texture of an image. Image texture gives us information about the spatial arrangement of color or intensities in an image or selected region of an image.
Image textures can be artificially created or found in natural scenes captured in an image. Image textures are one way that can be used to help in
segmentation or
classification of images. For more accurate segmentation the most useful features are spatial frequency and an average grey level. To analyze an image texture in computer graphics, there are two ways to approach the issue: Structured Approach and Statistical Approach.
Structured Approach
A structured approach sees an image texture as a set of primitive
texels in some regular or repeated pattern. This works well when analyzing artificial textures.
To obtain a structured description a characterization of the spatial relationship of the texels is gathered by using
Voronoi tessellation Voronoi or Voronoy is a Slavic masculine surname; its feminine counterpart is Voronaya. It may refer to
*Georgy Voronoy (1868–1908), Russian and Ukrainian mathematician
**Voronoi diagram
**Weighted Voronoi diagram
** Voronoi deformation density
** ...
of the texels.
Statistical Approach
A statistical approach sees an image texture as a quantitative measure of the arrangement of intensities in a region. In general this approach is easier to compute and is more widely used, since natural textures are made of patterns of irregular subelements.
Edge Detection
The use of
edge detection
Edge detection includes a variety of mathematical methods that aim at identifying edges, curves in a digital image at which the image brightness changes sharply or, more formally, has discontinuities. The same problem of finding discontinuitie ...
is to determine the number of edge pixels in a specified region, helps determine a characteristic of texture complexity. After edges have been found the direction of the edges can also be applied as a characteristic of texture and can be useful in determining patterns in the texture. These directions can be represented as an average or in a histogram.
Consider a region with N pixels. the gradient-based edge detector is applied to this region by producing two outputs for each pixel p: the gradient magnitude Mag(p) and the gradient direction Dir(p). The per unit area can be defined by
for some threshold T.
To include orientation with histograms for both gradient magnitude and gradient direction can be used. H
mag(R) denotes the normalized histogram of gradient magnitudes of region R, and H
dir(R) denotes the normalized histogram of gradient orientations of region R. Both are normalized according to the size N
R Then
is a quantitative texture description of region R.
Co-occurrence Matrices
The
co-occurrence matrix
A co-occurrence matrix or co-occurrence distribution (also referred to as : ''gray-level co-occurrence matrices'' GLCMs) is a matrix that is defined over an image to be the distribution of co-occurring pixel values (grayscale values, or colors) at ...
captures numerical features of a texture using spatial relations of similar gray tones. Numerical features computed from the co-occurrence matrix can be used to represent, compare, and classify textures. The following are a subset of standard features derivable from a normalized co-occurrence matrix:
where