Top Banner
Texture
19

Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

Dec 31, 2015

Download

Documents

Joleen Robbins
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

Texture

Page 2: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

Texture

• Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result from the presence of a single color.

• Texturedness of a surface depends on the scale at which the surface is observed. Textures at a certain scale are not textures at a coarser scale. Differently from color, texture is a property associated with some pixel neighbourhood, not with a single pixel.

Page 3: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• Textures can be detected and described according to spatial, frequency or perceptual

properties. The most used approaches are:– Statistics: statistical measures are in relation with aspect properties like contrast,

correlation, entropy….– Stochastic models: stochastic models assume that a texture is the result of a stochastic

process that has tunable parameters. Model parameters are therefore the texture descriptors

– Structure: structure measures assume that texture is a repetition of some atomic texture element often referred as texel

• What approach to follow?– For the purpose of matching any model can be used. – For the purpose of clustering or categorization perceptual features are most significant.

Widely accepted classifications of textures are based on psychology studies, that consider how humans perceive and classify textures: f.e. Tamura’s features (coarseness, contrast, directionality, line-likeness, regularity and roughness)

Page 4: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• Gray level co-occurrence matrix is a basic measure for statistical model of textures.

Given a texture, the image co-occurrence matrix measures the frequency of adjacent pixels. Each element Pd (i,j) in the matrix indicates the relative frequency at which two pixels of grey level i and j occur at distance d:

Co-occurrence matrixOriginal image

Statistic models: the Co-occurrence matrix

25

d=1

Page 5: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• One problem with deriving texture measures from co-occurrence matrices is how to choose the displacement vector d. Occasionally the co-occurrence matrix can be computed from several values of d and the one which maximizes a statistical measure computed from is used.

• Zucker and Terzopoulos used a χ2 measure to select the values of d that have the most structure, i.e. that maximize the value:

i j dd

d

jPiP

jiPd 1

][][

],[)(

22χ

Page 6: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• Gray level co-occurrence matrices capture properties of a texture but they are not directly useful for further analysis, such as the comparison of two textures.

• Numeric features are computed from the co-occurrence matrix that can be used to represent the texture more compactly. Statistics of co-occurrence probabilities can be computed and used to characterize properties of a textured region. Among them the most important are:

– Entropy– Contrast– Homogeneity

• Algorithms for texture analysis are applied to an image in a series of windows of size w, each centered on a pixel (i,j). The value of the resulting statistical measure are assigned to the position (i,j) in the new pixel.

Numeric Features of co-occurrence matrix

Page 7: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

Entropy

• Entropy is a measure of information content. It measures the randomness of intensity distribution.

• Entropy is highest when all entries in P[i,j] are of similar magnitude, and small when the entries in P[i,j] are unequal.

i j

dde jiPjiPC ],[ln],[

Entropy with w=21, and d=(2,2)

Page 8: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

Contrast

• Contrast is a measure of the local variations present in an image.

• If there is a large amount of variation in an image the P[i,j] ’s will be concentrated away from the main diagonal and contrast will be high.

i j

nd

k jiPjinkC ],[)(),(

Contrast with w=21, and d=(2,2)

k = 2 n = 1 typically

Page 9: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

Homogeneity

• A homogeneous image will result in a co-occurrence matrix with a combination of high and low P[i,j] ’s.

• Where the range of gray levels is small the P[i,j] will tend to be clustered around the main diagonal. A heterogeneous image will result in an even spread of P[i,j] ’s.

i j

dh ji

jiPC

1

],[

Homogeneity with w=21, and d=(2,2)

Page 10: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

Correlation

• Correlation is a measure of image linearity

• Correlation will be high if an image contains a considerable amount of linear structure.

Page 11: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

Global image texture measures

Contrast 2+4+2 = 8Homogeneity 2+2/2+1/3+4+5+2/2+4 = 17,3

Page 12: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• The wavelet transform divides up data into different frequency components and then

studies each component with a resolution matched to its scale. Coefficients of the wavelet transform can be used to represent frequency properties of a texture pattern. Gabor wavelet decomposition has been used in MPEG7

Frequency-based models: wavelet transform

Page 13: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• Tamura’s features are based on psychophysical studies of the characterizing elements that are perceived in textures by humans :– Contrast– Directionality– Coarseness– Linelikeness– Regularity– Roughness

Perceptual models: Tamura’s features

Page 14: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• Contrast measures the way in which gray levels q vary in the image I and to what extent their distribution is biased to black or white.

where: variance

kurtosis (accounts for the shape of the distribution, i.e. the degree of flatness)

n = 0.25 recommended

Contrast

Page 15: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• Directionality takes into account the edge strenght and the directional angle. They are

computed using pixelwise derivatives according to Prewitt’s edge detector

x, y are the pixel differences in the x and y directions

-1

0 1

-1

0 1

-1

0 1

1 1 1

0 0 0

-1

-1

-1

y x

• A histogram Hdir(a) of quantised direction values is constructed by counting numbers of the edge pixels with the corresponding directional angles and the edge strength greater than a predefined threshold. The histogram is relatively uniform for images without strong orientation and exhibits peaks for highly directional images.

Directionality

Page 16: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• Coarseness relates to distances of notable spatial variations of grey levels, that is, implicitly, to the

size of the primitive elements (texels) forming the texture. Measures the scale of a texture. For a fixed window size a texture with a smaller number of texture elements is said more coarse than one with a larger number.

• A method to evaluate the coarseness of a texture is the following:1. At each pixel p(x,y) compute six averages Ak for the windows of size 2k k = 0,1,2,..5

p

20 21 22 23 …..coarseness

Coarseness

Page 17: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

2. At each pixel • compute the absolute differences at each scale Ek (x,y) between pairs of

nonoverlapping averages on opposite sides of different directions

Ek,a (p) = | Ak1 – Ak

2 |

Ek,b (p) = | Ak3 – Ak

4 |

p(x,y) = E1,a , E1,b , E2,a , E2,b…..

• Find the value of k that maximizes Ek (x,y) in either direction.• Select the scale with the largest variation: Ek = max (E1 , E2 , E3 , ..). The best pixel

window size S best is 2k

3. Compute coarseness by averaging S best over the entire image

• Textures of multiple coarseness have a histogram of the distribution of the Sbest

A1

p

A1

21

2

11

23

4

At scale 1E1,a (p) = | A1

1 – A12 |

Page 18: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

• Linelikeness is defined as the average coincidence of edge directions that co-occur at pixels separated by a distance d along the direction . a it is related to Correlation

Angle = a

Distance = d

Linelikeness

Page 19: Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.

Derived measures

• Regularity : is defined as: 1 – r (scoarseness + s contrast+ sdirectionality + s linelikeness )being r a normalising factor and s the standard deviation of the feature in each subimage of the texture

• Roughness : is defined as: Coarseness + Contrast