

































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


































Department of Computer and Information Science, Indiana University -Purdue University at Indianapolis, 723 W. Michigan St. Indianapolis, IN 46202-
and
Computer Science Department, Michigan State University East Lansing, MI 48824-1027 USA Internet: [email protected]
This chapter reviews and discusses various aspects of texture analysis. The concentration is on the various methods of extracting textural features from images. The geometric, random field, fractal, and signal processing models of texture are presented. The major classes of texture processing prob- lems such as segmentation, classification, and shape from texture are discussed. The possible applica- tion areas of texture such as automated inspection, document processing, and remote sensing are summarized. A bibliography is provided at the end for further reading.
Keywords : Texture, segmentation, classification, shape, signal processing, fractals, random fields, Gabor filters, wavelet transform, gray level dependency matrix.
In many machine vision and image processing algorithms, simplifying assumptions are made about the uniformity of intensities in local image regions. However, images of real objects often do not exhibit regions of uniform intensities. For example, the image of a wooden surface is not uniform but contains variations of intensities which form certain repeated patterns called visual texture. The patterns can be the result of physical surface properties such as roughness or oriented strands which often have a tactile quality, or they could be the result of reflectance differences such as the color on a surface.
We recognize texture when we see it but it is very difficult to define. This difficulty is dem- onstrated by the number of different texture definitions attempted by vision researchers. Coggins [1] has compiled a catalogue of texture definitions in the computer vision litera- ture and we give some examples here.
The Handbook of Pattern Recognition and Computer Vision (2nd Edition) , by C. H. Chen, L. F. Pau, P. S. P. Wang (eds.), pp. 207-248, World Scientific Publishing Co., 1998.
properties of the picture function are constant, slowly varying, or approximately periodic.” [3]
(b)
FIGURE 1. (a) An image consisting of five different textured regions: cotton canvas (D77), straw matting (D55), raffia (D84), herringbone weave (D17), and pressed calf leather. [8]. (b) The goal of texture classification is to label each textured region with the proper category label: the identities of the five texture regions present in (a). (c) The goal of texture segmentation is to separate the regions in the image which have different textures and identify the boundaries between them. The texture categories themselves need not be recognized. In this example, the five texture categories in (a) are identified as separate textures by the use of generic category labels (represented by the different fill patterns).
(a) (c)
the imaging process and the perspective projection which provide information about sur- face orientation and shape. An example of shape from texture is given in Figure 3.
2. Motivation
Texture analysis is an important and useful area of study in machine vision. Most natural surfaces exhibit texture and a successful vision system must be able to deal with the tex- tured world surrounding it. This section will review the importance of texture perception from two viewpoints — from the viewpoint of human vision or psychophysics and from the viewpoint of practical machine vision applications.
The detection of a tiger among the foliage is a perceptual task that carries life and death consequences for someone trying to survive in the forest. The success of the tiger in cam- ouflaging itself is a failure of the visual system observing it. The failure is in not being able to separate figure from ground. Figure-ground separation is an issue which is of intense interest to psychophysicists. The figure-ground separation can be based on various cues such as brightness, form, color, texture, etc. In the example of the tiger in the forest, texture plays a major role. The camouflage is successful because the visual system of the observer is unable to discriminate (or segment) the two textures of the foliage and the tiger skin. What are the visual processes that allow one to separate figure from ground using the texture cue? This question is the basic motivation among psychologists for studying tex- ture perception.
Another reason why it is important to study the psychophysics of texture perception is that the performance of various texture algorithms is evaluated against the performance of the human visual system doing the same task. For example, consider the texture pair in Figure 4(a), first described by Julesz [11]. The image consists of two regions each of which is made up of different texture tokens. Close scrutiny of the texture image will indi- cate this fact to the human observer. The immediate perception of the image, however,
FIGURE 3. We can extract the orientation of the surface from the variations of texture (defined by the bricks) in this image.
does not result in the perception of two different textured regions; instead only one uni- formly textured region is perceived. Julesz says that such a texture pair is not “effortlessly discriminable” or “preattentively discriminable.” Such synthetic textures help us form hypotheses about what image properties are important in human texture perception. In addition, this example raises the question of how to evaluate the performance of computer algorithms that analyze textured images. For example, suppose we have an algorithm that can discriminate the texture pair in Figure 4(a). Is this algorithm “correct?” The answer, of course, depends on the goal of the algorithm. If it is a very special purpose algorithm that should detect such scrutably different regions, then it is performing correctly. On the other hand, if it is to be a computational model of how the human visual system processes tex- ture, then it is performing incorrectly.
Julesz has studied texture perception extensively in the context of texture discrimination [11,12,13]. The question he posed was “When is a texture pair discriminable, given that they had the same brightness, contrast, and color?” Julesz concentrated on the spatial sta- tistics of the image gray levels that are inherent in the definition of texture by keeping other illumination-related properties the same.
To discuss Julesz’s pioneering work, we need to define the concepts of first- and second- order spatial statistics.
(i) First-order statistics measure the likelihood of observing a gray value at a ran- domly-chosen location in the image. First-order statistics can be computed from the histogram of pixel intensities in the image. These depend only on individual pixel values and not on the interaction or co-occurrence of neighboring pixel val- ues. The average intensity in an image is an example of the first-order statistic.
(ii) Second-order statistics are defined as the likelihood of observing a pair of gray values occurring at the endpoints of a dipole (or needle) of random length placed in the image at a random location and orientation. These are properties of pairs of pixel values.
Julesz conjectured that two textures are not preattentively discriminable if their second- order statistics are identical. This is demonstrated by the example in Figure 4(a). This image consists of a pair of textured regions whose second-order statistics are identical. The two textured regions are not preattentively discriminable. His later counter-examples to this conjecture were the result of a careful construction of texture pairs that have identi- cal second-order statistics (see Figure 4(b)) [14,15,16].
Julesz proposed the “theory of textons” to explain the preattentive discrimination of tex- ture pairs. Textons are visual events (such as collinearity, terminations, closure, etc.) whose presence is detected and used in texture discrimination. Terminations are endpoints of line segments or corners. Using his theory of textons, Julesz explained the examples in Figure 4 as follows. Recall that both texture images in Figure 4 have two regions that have identical second-order statistics. In Figure 4(a), the number of terminations in both the upper and lower regions is the same (i.e., the texton information in the two regions is not different), therefore the visual system is unable to preattentively discriminate the two tex- tures. In Figure 4(b), on the other hand, the number of terminations in the upper half is three, whereas the number of terminations in the lower half is four. The difference in this texton makes the two textured regions discriminable. Caelli has also proposed the exist- ence of perceptual analyzers by the visual system for detecting textons [17]. Beck et al. [18] have conducted experiments and argue that the perception of texture segmentation in
In the detection of defects in texture images, most applications have been in the domain of textile inspection. Dewaele et al. [21] used signal processing methods to detect point defects and line defects in texture images. They have sparse convolution masks in which the bank of filters are adaptively selected depending upon the image to be analyzed. Tex- ture features are computed from the filtered images. A Mahalanobis distance classifier is used to classify the defective areas. Chetverikov [22] defined a simple window differenc- ing operator to the texture features obtained from simple filtering operations. This allows one to detect the boundaries of defects in the texture. Chen and Jain [23] used a structural approach to defect detection in textured images. They extract a skeletal structure from images, and by detecting anomalies in certain statistical features in these skeletons, defects in the texture are identified. Conners et al. [24] utilized texture analysis methods to detect defects in lumber wood automatically. The defect detection is performed by divid- ing the image into subwindows and classifying each subwindow into one of the defect cat- egories such as knot, decay, mineral streak, etc. The features they use to perform this classification is based on tonal features such as mean, variance, skewness, and kurtosis of gray levels along with texture features computed from gray level co-occurrence matrices in analyzing pictures of wood. The combination of using tonal features along with textural features improves the correct classification rates over using either type of feature alone.
In the area of quality control of textured images, Siew et al. [25] proposed a method for the assessment of carpet wear. They used simple texture features that are computed from second-order gray level dependency statistics and from first-order gray level difference statistics. They showed that the numerical texture features obtained from these techniques can characterize the carpet wear successfully. Jain et al. [26] used the texture features computed from a bank of Gabor filters to automatically classify the quality of painted metallic surfaces. A pair of automotive paint finish images is shown in Figure 6 where the image in (a) has uniform coating of paint, but the image in (b) has “mottle” or “blotchy” appearance.
(a)
(b) (c) FIGURE 5. Examples of images from various application domains in which texture analysis is important. (a) The ultrasound images of a heart. (b), (c) example aerial images using SAR sensors.
2.2.2. Medical Image Analysis
Image analysis techniques have played an important role in several medical applications. In general, the applications involve the automatic extraction of features from the image which are then used for a variety of classification tasks, such as distinguishing normal tis- sue from abnormal tissue. Depending upon the particular classification task, the extracted features capture morphological properties, color properties, or certain textural properties of the image.
The textural properties computed are closely related to the application domain to be used. For example, Sutton and Hall [27] discuss the classification of pulmonary disease using texture features. Some diseases, such as interstitial fibrosis, affect the lungs in such a man- ner that the resulting changes in the X-ray images are texture changes as opposed to clearly delineated lesions. In such applications, texture analysis methods are ideally suited for these images. Sutton and Hall propose the use of three types of texture features to dis- tinguish normal lungs from diseased lungs. These features are computed based on an iso- tropic contrast measure, a directional contrast measure, and a Fourier domain energy sampling. In their classification experiments, the best classification results were obtained using the directional contrast measure.
Harms et al. [28] used image texture in combination with color features to diagnose leuke- mic malignancy in samples of stained blood cells. They extracted texture micro-edges and “textons” between these micro-edges. The textons were regions with almost uniform color. They extracted a number of texture features from the textons including the total number of pixels in the textons which have a specific color, the mean texton radius and texton size for each color and various texton shape features. In combination with color, the texture features significantly improved the correct classification rate of blood cell types compared to using only color features.
Landeweerd and Gelsema [29] extracted various first-order statistics (such as mean gray level in a region) as well as second-order statistics (such as gray level co-occurrence matri- ces) to differentiate different types of white blood cells. Insana et al. [30] used textural features in ultrasound images to estimate tissue scattering parameters. They made signifi- cant use of the knowledge about the physics of the ultrasound imaging process and tissue characteristics to design the texture model. Chen et al. [31] used fractal texture features to
(a) (b) FIGURE 6. Example images used in paint inspection. (a) A non-defective paint which has a smooth texture. (b) A defective paint which has a mottled look.
in a segmentation algorithm proposed in [33]. Many methods work on images based on precise algorithms which one might consider as having morphological characteristics. For example, Wang and Srihari [33] used projection profiles of the pixel values to identify large “text” blocks by detecting valleys in these profiles. Wahl et al. [34] used constrained run lengths and connected component analysis to detect blocks of text. Fletcher and Kas- turi [35] used the fact that most text blocks lie in a straight line, and utilized Hough trans- form techniques to detect collinear elements. Taxt et al. [36] view the identification of print in document images as a two-category classification problem, where the categories are print and background. They use various classification methods to compute the segmen- tation including contextual classification and relaxation algorithms.
One can also use texture segmentation methods for preprocessing document images to identify regions of interest [37,38,39]. An example of this can be seen in Figure 8. The texture segmentation algorithm described in [40] was used to segment a newspaper image. In the resulting segmentation, one of the regions identified as having a uniform texture, which is different from its surrounding texture, is the bar code block. A similar method is used for locating text blocks in newspapers. A segmentation of the document image is obtained using three classes of textures: one class for the text regions, a second class for the uniform regions that form the background or images where intensities vary slowly, and a third class for the transition areas between the two types of regions (see Figure 9). The text regions are characterized by their high frequency content.
(a) (b) FIGURE 8. Locating bar code in a newspaper image. (a) A scanned image of a newspaper that contains a bar code. (b) The two-class segmentation using Gabor filter features in [40]. The bar code region in the image has a distinct texture.
(a) (b) (c) FIGURE 9. Text/graphics separation using texture information. (a) An image of a newspaper captured by a flatbed scanner. (b) The three-class segmentation obtained by the Gabor filter based texture segmentation algorithm. (c) The regions identified as text.
2.2.4. Remote Sensing
Texture analysis has been extensively used to classify remotely sensed images. Land use classification where homogeneous regions with different types of terrains (such as wheat, bodies of water, urban regions, etc.) need to be identified is an important application. Haralick et al. [41] used gray level co-occurrence features to analyze remotely sensed images. They computed gray level co-occurrence matrices for a distance of one with four directions ( , , , and ). For a seven-class classification problem, they obtained approximately 80% classification accuracy using texture features.
Rignot and Kwok [42] have analyzed SAR images using texture features computed from gray level co-occurrence matrices. However, they supplement these features with knowl- edge about the properties of SAR images. For example, image restoration algorithms were used to eliminate the specular noise present in SAR images in order to improve classifica- tion results. The use of various texture features was studied for analyzing SAR images by Schistad and Jain [43]. SAR images shown in Figures 5(b) and (c) were used to identify land use categories of water, agricultural areas, urban areas, and other areas. Fractal dimension, autoregressive Markov random field model, and gray level co-occurrence tex- ture features were used in the classification. The classification errors ranged from 25% for the fractal based models to as low as 6% for the MRF features. Du [44] used texture fea- tures derived from Gabor filters to segment SAR images. He successfully segmented the SAR images into categories of water, new forming ice, older ice, and multi-year ice. Lee and Philpot [45] also used spectral texture features to segment SAR images.
3. A Taxonomy of Texture Models
Identifying the perceived qualities of texture in an image is an important first step towards building mathematical models for texture. The intensity variations in an image which characterize texture are generally due to some underlying physical variation in the scene (such as pebbles on a beach or waves in water). Modelling this physical variation is very difficult, so texture is usually characterized by the two-dimensional variations in the inten- sities present in the image. This explains the fact that no precise, general definition of tex- ture exists in the computer vision literature. In spite of this, there are a number of intuitive properties of texture which are generally assumed to be true.
where , , and is the cardinality of a set.
As an example, consider the following image containing 3 different gray values:
The gray level co-occurrence matrix for this image for a displacement vector of is given as follows:
Here the entry of is 4 because there are four pixel pairs of that are off-
set by amount. Examples of for other displacement vectors is given below.
Notice that the co-occurrence matrix so defined is not symmetric. But a symmetric co-
occurrence matrix can be computed by the formula. The co-occurrence
matrix reveals certain properties about the spatial distribution of the gray levels in the tex- ture image. For example, if most of the entries in the co-occurrence matrix are concen- trated along the diagonals, then the texture is coarse with respect to the displacement vector d. Haralick has proposed a number of useful texture features that can be computed from the co-occurrence matrix. Table 1 lists some of these features.
Here and are the means and and are the standard deviations of and
, respectively, where and.
The co-occurrence matrix features suffer from a number of difficulties. There is no well established method of selecting the displacement vector and computing co-occurrence matrices for different values of is not feasible. For a given , a large number of features
( r s , ) , ( t v , )∈ N × N ( t v , ) = ( r + dx , s + dy ).
d =(1 0 , )
P d
(0 0 , ) P d ( 0 0, ) ( 1 0 , ) P d
d = (0 1 , ) P d
d = (1 1 , ) P d
P = P d + P (^) – d
μ x μ y σ x σ y P d ( ) x
P d ( ) y P d ( ) x P d ( x , j ) j
i
d d d
can be computed from the co-occurrence matrix. This means that some sort of feature selection method must be used to select the most relevant features. The co-occurrence matrix-based texture features have also been primarily used in texture classification tasks and not in segmentation tasks.
3.1.2. Autocorrelation Features
An important property of many textures is the repetitive nature of the placement of texture elements in the image. The autocorrelation function of an image can be used to assess the amount of regularity as well as the fineness/coarseness of the texture present in the image. Formally, the autocorrelation function of an image is defined as follows:
The image boundaries must be handled with special care but we omit the details here. This function is related to the size of the texture primitive (i.e., the fineness of the texture). If the texture is coarse, then the autocorrelation function will drop off slowly; otherwise, it will drop off very rapidly. For regular textures, the autocorrelation function will exhibit peaks and valleys.
The autocorrelation function is also related to the power spectrum of the Fourier transform (see Figure 10). Consider the image function in the spatial domain and its Fourier
transform. The quantity is defined as the power spectrum where is the modulus of a complex number. The example in Figure 11 illustrates the effect of the directionality of a texture on the distribution of energy in the power spectrum. Early
Texture Feature Formula Energy
Entropy
Contrast
Homogeneity
Correlation
P d 2 ( i , j ) j
i
P d ( i , j ) log P d ( i , j ) j
i
( i – j )^2 P d ( i , j ) j
i
P d ( i , j ) 1 + i – j
j
i
( i – μ x ) ( j – μ y ) P d ( i , j ) j
i
σ x σ y
TABLE 1. Some texture features extracted from gray level co-occurrence matrices.
I ( x y , )
ρ ( x y , )
I u v ( , ) I u ( + x v , + y ) v = 0
N
u = 0
N
I^2 ( u v , ) v = 0
N
u = 0
N
I x y ( , ) F u v ( , ) F u v ( , ) 2.
The class of texture analysis methods that falls under the heading of geometrical methods is characterized by their definition of texture as being composed of “texture elements” or primitives. The method of analysis usually depends upon the geometric properties of these texture elements. Once the texture elements are identified in the image, there are two major approaches to analyzing the texture. One computes statistical properties from the extracted texture elements and utilizes these as texture features. The other tries to extract the placement rule that describes the texture. The latter approach may involve geometric or syntactic methods of analyzing texture.
3.2.1. Voronoi tessellation Features
Tuceryan and Jain [49] proposed the extraction of texture tokens by using the properties of the Voronoi tessellation of the given image. Voronoi tessellation has been proposed because of its desirable properties in defining local spatial neighborhoods and because the local spatial distributions of tokens are reflected in the shapes of the Voronoi polygons. First, texture tokens are extracted and then the tessellation is constructed. Tokens can be as simple as points of high gradient in the image or complex structures such as line segments or closed boundaries.
In computer vision, the Voronoi tessellation was first proposed by Ahuja as a model for defining “neighborhoods” [50]. Suppose that we are given a set of three or more tokens (for simplicity, we will assume that a token is a point) in the Euclidean plane. Assume that these points are not all collinear, and that no four points are cocircular. Consider an arbi- trary pair of points and. The bisector of the line joining and is the locus of points equidistant from both and and divides the plane into two halves. The half
plane ( ) is the locus of points closer to ( ) than to ( ). For any given point
, a set of such half planes is obtained for various choices of. The intersection defines a polygonal region consisting of points closer to than any other
point. Such a region is called the Voronoi polygon [51] associated with the point. The set of complete polygons is called the Voronoi diagram of [52]. The Voronoi diagram together with the incomplete polygons in the convex hull define a Voronoi tessellation of the entire plane. Two points are said to be Voronoi neighbors if the Voronoi polygons enclosing them share a common edge. The dual representation of the Voronoi tessellation is the Delaunay graph which is obtained by connecting all the pairs of points which are Voronoi neighbors as defined above. An optimal algorithm to compute the Voronoi tessel- lation for a point pattern is described by Preparata and Shamos [53]. A simple 2D dot pat- tern and its Voronoi tessellation are shown in Figure 13.
The neighborhood of a token is defined by the Voronoi polygon containing. Many of the perceptually significant characteristics of a token’s environment are manifest in the geometric properties of the Voronoi neighborhoods (see Figure 13). The geometric prop- erties of the Voronoi polygons are used as texture features.
In order to apply geometrical methods to gray level images, we need to first extract tokens from images. We use the following simple algorithm to extract tokens from input gray level textural images.
Q H (^) Q P P Q Q P
P Q
H (^) P Q
Q ∈ S , Q ≠ P
filter best approximates the corresponding filter [54].
The Voronoi tessellation of the resulting tokens is constructed. Features of each Voronoi cell are extracted and tokens with similar features are grouped to construct uniform texture regions. Moments of area of the Voronoi polygons serve as a useful set of features that reflect both the spatial distribution and shapes of the tokens in the textured image. The
order moments of area of a closed region with respect to a token with coordi-
nates are defined as [55]:
where. A description of the five features used is given in Table 2
where are the coordinates of the Voronoi polygon’s centroid.
The texture features based on Voronoi polygons have been used for segmentation of tex- tured images. The segmentation algorithm is edge based, using a statistical comparison of the neighboring collections of tokens. A large dissimilarity among the texture features is evidence for a texture edge. This algorithm has successfully segmented gray level texture images as well as a number of synthetic textures with identical second-order statistics.
FIGURE 13. Voronoi tessellation: (a) An example dot pattern, and (b) its Voronoi tessellation.
(a) (b)
................. ..
..
..
..
..
.
.. ..
.. ..
............. .............. .. ..... .. .. .. .... ....
................ ..
..
..
..
..^.
..
.. .. ..
.. ............ ............. .. ...............
... ... .... .... .. .... ............... ..
..
..
..
..^.
..
...
..
.............. ..
..
..
..
.. ..
..
.. ... ..........
.......... ........................ ....
............ .............. ............... ... ... ... ............. ..
..
..
..
.... ..
.
............ ..
..
..
..
............. ........................... ....... ...
........... ............. ........... ............. ........... ............. ... . .... ...
... .
..
.
................. ..
..
..
..
..
.
.. ..
.. ..
............. .............. .. ..... .. .. .. .... ....
................ ..
..
..
..
..^.
..
.. .. ..
.. ............ ............. .. ...............
... ... .... .... .. .... ............... ..
..
..
..
..^.
..
...
..
.............. ..
..
..
..
.. ..
..
.. ... ..........
.......... ........................ ....
............ .............. ............... ... ... ... ............. ..
..
..
..
.... ..
.
............ ..
..
..
..
............. ........................... ....... ...
........... ............. ........... ............. ........... ............. ... . .... ...
... .
..
.
σ 1 = 1 σ 2 =1.6σ 1
∇^2 G
( p + q ) th^ R ( x 0 , y 0 )
m (^) pq ( x – x 0 ) p
R
p + q =0 1 2, , ,… ( x y , )
Zucker [58] has proposed a method in which he regards the observable textures (real tex- tures) as distorted versions of ideal textures. The placement rule is defined for the ideal texture by a graph that is isomorphic to a regular or semiregular tessellation. These graphs are then transformed to generate the observable texture. Which of the regular tessellations is used as the placement rule is inferred from the observable texture. This is done by com- puting a two-dimensional histogram of the relative positions of the detected texture tokens.
Another approach to modeling texture by structural means is described by Fu [59]. In this approach the texture image is regarded as texture primitives arranged according to a place- ment rule. The primitive can be as simple as a single pixel that can take a gray value, but it is usually a collection of pixels. The placement rule is defined by a tree grammar. A tex- ture is then viewed as a string in the language defined by the grammar whose terminal symbols are the texture primitives. An advantage of this method is that it can be used for texture generation as well as texture analysis. The patterns generated by the tree grammars could also be regarded as ideal textures in Zucker’s model.
Model based texture analysis methods are based on the construction of an image model that can be used not only to describe texture, but also to synthesize it. The model parame- ters capture the essential perceived qualities of texture.
(a) (b)
FIGURE 14. Texture segmentation using the Voronoi tessellation. (a) An example texture pair from Brodatz’s album [92], (b) the peaks detected in the filtered image, and (c) the segmentation using the texture features obtained from Voronoi polygons [49]. The arrows indicate the border direction. The interior is on the right when looking in the direction of the arrow.
(c)
. .
.
..
.
.
.
.
.
.
.
. ..
..
.
.
..
. .
. .
.
.
.
.
.
.
. .
.
.
.
.
. . .
.
.
.
..
.
.
. .
.
. .
..
.
.
.
. .
. .
..
.
.
.
..
. . .
.
.
.
.
.
. .
.
.
. . ..
.
.
.
..
. .
.
.
.
.
.
.
. .
.
. .
.
. . .
. .
. .
.
. .
.
.
.
. .
.
.
.
.
.
.. . . .
.
.. .
.
.
.
. .
.
.
. .
.
..
.
.
. .
.
.. .
..
.
.
.
.
.
.
.
.
.
.
. .
.
.
. .
.
. .
.
..
.
.
.
.
.
.
.
.
.
..
.
..
.
.
.
.
.
. .
.
.
.
.
.
.
.
.
.. .
..
.
.
.. .
.
.
..
. .
.
. .
.
.
.
.
.
.
.
. .
.
..
. .
.
.
.
. .
.
.
..
.
.
. .
.
.
.. ..
..
..
..
. . .
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
. .
.
.
.
.
.
.
.
.
.
..
..
.
.
.. .
.
.
.
.
. .
.
.
.
.
.
..
. . . .
.
..
.
..
.
.
. .
.
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. .
..
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. .
.
.
.
.
.
.
.
.
..
.
.
..
3.3.1. Random Field Models
Markov random fields (MRFs) have been popular for modeling images. They are able to capture the local (spatial) contextual information in an image. These models assume that the intensity at each pixel in the image depends on the intensities of only the neighboring pixels. MRF models have been applied to various image processing applications such as texture synthesis [60], texture classification [61,62], image segmentation [63,64], image restoration [65], and image compression.
The image is usually represented by an lattice denoted by
. is a random variable which represents the
gray level at pixel on lattice L. The indexing of the lattice is simplified for mathe-
matical convenience to with. Let A be the range set common to all
random variables and let denote the set of all
labellings of L. Note that A is specified according to the application. For instance, for an
image with 256 different gray levels A may be the set. The random vector
denotes a coloring of the lattice. A discrete Markov random field
is a random field whose probability mass function has the properties of positivity, Mark- ovianity, and homogeneity.
The neighbor set of a site t can be defined in different ways. The first-order neighbors of t are its four-connected neighbors and the second-order neighbors are its eight-connected neighbors. Within these neighborhoods, sets of neighbors which form cliques (single site, pairs, triples, and quadruples) are usually used in the definition of the conditional proba- bilities.
A discrete Gibbs random field (GRF) assigns a probability mass function to the entire lat- tice:
where is an energy function and is a normalizing constant called the partition function. The energy function is usually specified in terms of cliques formed over neigh- boring pixels. For the second-order neighbors the possible cliques are given in Figure 15. The energy function then is expressed in terms of potential functions over the
cliques :
We have the property that with respect to a neighborhood system, there exists a unique Gibbs random field for every Markov random field and there exists a unique Markov ran- dom field for every Gibbs random field [66]. The consequence of this theorem is that one can model the texture either globally by specifying the total energy of the lattice or model it locally by specifying the local interactions of the neighboring pixels in terms of the con- ditional probabilities.
L = { ( i , j ) 1 ≤ i ≤ M , 1 ≤ j ≤ N } I i ( , j ) ( i , j ) I (^) t t =( i – 1 ) N + j I (^) t Ω ={( x 1 , x 2 , … , x (^) MN ) x (^) t ∈ A ,∀ t }
P ( X = x )
= --- e – U^ (^ x ) ∀ x ∈Ω
U ( x ) Z
U ( x ) V (^) C ( ) x c ∈ Q