 Research
 Open
 Published:
Evaluation of noise robustness for local binary pattern descriptors in texture classification
EURASIP Journal on Image and Video Processingvolume 2013, Article number: 17 (2013)
Abstract
Local binary pattern (LBP) operators have become commonly used texture descriptors in recent years. Several new LBPbased descriptors have been proposed, of which some aim at improving robustness to noise. To do this, the thresholding and encoding schemes used in the descriptors are modified. In this article, the robustness to noise for the eight following LBPbased descriptors are evaluated; improved LBP, median binary patterns (MBP), local ternary patterns (LTP), improved LTP (ILTP), local quinary patterns, robust LBP, and fuzzy LBP (FLBP). To put their performance into perspective they are compared to three wellknown reference descriptors; the classic LBP, Gabor filter banks (GF), and standard descriptors derived from graylevel cooccurrence matrices. In addition, a roughly five times faster implementation of the FLBP descriptor is presented, and a new descriptor which we call shift LBP is introduced as an even faster approximation to the FLBP. The texture descriptors are compared and evaluated on six texture datasets; Brodatz, KTHTIPS2b, Kylberg, Mondial Marmi, UIUC, and a Virus texture dataset. After optimizing all parameters for each dataset the descriptors are evaluated under increasing levels of additive Gaussian white noise. The discriminating power of the texture descriptors is assessed using tenfolded crossvalidation of a nearest neighbor classifier. The results show that several of the descriptors perform well at low levels of noise while they all suffer, to different degrees, from higher levels of introduced noise. In our tests, ILTP and FLBP show an overall good performance on several datasets. The GF are often very noise robust compared to the LBPfamily under moderate to high levels of noise but not necessarily the best descriptor under low levels of added noise. In our tests, MBP is neither a good texture descriptor nor stable to noise.
1 Introduction
The texture of objects in digital images is an important property utilized in many computer vision and image analysis applications such as face recognition, object classification, and segmentation. Despite its frequent use and the many attempts to describe it in general terms, texture lacks a precise definition. This makes the development of new texture descriptors an illposed problem [1, 2]. The recent textbook by Pietikäinen et al. [3] provide a good description of texture in stating that “A textured area in an image can be characterized by a nonuniform or varying spatial distribution of intensity or color”.
Local binary patterns (LBPs) emerged in the mid1990s. At first, they were introduced as a local contrast descriptor [4] and a further development of the texture spectra introduced in [5]. Shortly thereafter, LBP was shown to be an interesting texture descriptor [6]. Many extensions to the classic LBP have since then been proposed. A comprehensive book about the LBP family of texture descriptors was recently published [3]. While some propositions focus on different sampling patterns to effectively capture the characteristics of certain textures, others propose descriptors focusing on improving the robustness to noise by using different encoding or thresholding schemes. The latter group is the focus of this article; considering LBPbased descriptors where the thresholding and encoding schemes are modified to create more noise robust descriptors.
Although several new LBPbased texture descriptors have been published, there is a limited number of comparative studies and evaluations. However, the recent study in [7], and the previous study by the same authors in [8], together cover six datasets from different applications, mainly in the biomedical area. They report results achieved using different sampling patterns and thresholding schemes as well as combinations of LBPbased descriptors with integrated ensembles of support vector machine (SVM) classifiers. The parameter values explored are limited and the focus is on optimizing combinations of LBPbased descriptors that work well for several types of texture datasets. Another recent survey is [9] where a large number of LBPbased descriptors are compared and put into a unifying framework called histograms of equivalent patterns (HEP). These descriptors are evaluated on 11 general texture datasets and the descriptors are then ranked based on pairwise comparisons of the classification results in the pursuit for the overall best descriptor in the HEP framework.
Unlike the previously mentioned surveys the aim of this article is to evaluate the noise robustness of a number of LBPbased descriptors. The selected descriptors are all designed to be noise robust alternatives to the original LBP by altering the thresholding or encoding scheme. The descriptors are namely improved LBP (ILBP), median binary patterns (MBP), local ternary patterns (LTP), improved local ternary patterns (ILTP), local quinary patterns (LQP), robust LBP (RLBP), shift LBP (SLBP), and fuzzy/soft LBP (FLBP). The SLBP descriptor is proposed in this article as a fast and simple approximation to FLBP. The discriminating power of the texture descriptors are evaluated by applying them to six different texture datasets followed by a crossvalidated classification using a first nearest neighbor classifier (1NN). Before the noise robustness is assessed all the descriptors parameters are thoroughly optimized, exploring a search space larger than a few combinations of parameter values, which is commonly the case reported in the literature.
When using LBP, it is quite common to exclude the specificity of the socalled nonuniform patterns and count their occurrences as simply nonuniform [10]. In brief, binary codes with more transitions between ‘0’ and ‘1’ than a specific value (typically two) are called nonuniform. In this way, the number of possible binary codes decreases but at the same time some important information may be lost, see for example [10, 11]. This is why both uniform and nonuniform binary codes are considered in this article.
To put the performance of the LBPbased descriptors into perspective they are compared to the classical LBP, a set of Gabor filters [12] and a set of commonly used descriptors derived from the graylevel cooccurrence matrix (GLCM) introduced by Haralick et al. [1].
2 Material
To evaluate the texture descriptors six publicly available texture image datasets are used. They were chosen to have different characteristics in terms of number of classes, number of samples, class homogeneity with regards to scale, perspective, and illumination. The texture datasets are Brodatz [13], KTHTIPS2b [14], Kylberg [15], Mondial Marmi [16], UIUC [17], and a Virus texture dataset [11]. Figure 1 shows four samples from four classes in each of the six datasets. The basic properties of the datasets as well as links to websites where they are accessible are listed in Table 1.
The Brodatz dataset consists of digitized photographs of natural and manmade textures. In the form the Brodatz photos are used here the dataset has many, 111, classes but only very few, 9, relatively homogeneous samples per class. The samples are 213 × 213 pixels in size and there is a considerable overlap between a few of the classes making them indistinguishable. Some classes also include large structures making the nine samples not equally representative.
The KTHTIPS2b dataset has 11 classes, some very heterogeneous, with 432 samples each. In each class, four objects have been imaged under varying scale, illumination, and pose conditions. For example, in the class “wool” four different fabrics and knitwear are represented which make this class very heterogeneous not only due to the varying imaging conditions. Most samples are 200 × 200 pixels in size, but some are smaller due to scale issues. See the documentation in [19] for details. In contrast to [14] where the dataset is used to study recognition of material categories we will use images from all four material samples as examples of the same class when training the classifier.
The Kylberg dataset has 28 classes of 160 samples each with grayscale images of different natural and manmade textured surfaces. The classes are very homogeneous in terms of perspective, scale, and illumination. The images in the Kylberg dataset are available in different rotations $\Theta \phantom{\rule{.1em}{0ex}}\in \phantom{\rule{.1em}{0ex}}\{0,\phantom{\rule{2.77626pt}{0ex}}\frac{1}{6}\pi ,\frac{2}{6}\pi ,\dots ,\frac{11}{6}\pi \}$. In this article, one orientation per image is randomly selected. The 576 × 576 pixels images are here divided into four 288 × 288 pixels, nonoverlapping, sub images resulting in 640 samples of each class.
The Mondial Marmi dataset is a collection of images of granite surfaces acquired as JPEG color images (with noticeable compression artifacts) under controlled illumination conditions. The dataset was used in [21] to evaluate robustness to rotation for LBP, coordinated clusters representation, and ILBP. While the texture samples are available in nine orientations (both hardware and software rotated) only one orientation (0°) is used here. The 544 × 544 pixel images in the Mondial Marmi dataset are divided into four 272 × 272 pixel, nonoverlapping, sub images. The samples are converted to gray scale as 0.2989 R+0.5870 G+0.1140 B, where R, G, and B are the red, green, and blue intensities, respectively.
The UIUC dataset is based on images of different textured surfaces. The images are provided as JPEG images and appear to have only very minor compression artifacts. Each class contains 40 samples (640 × 480 pixels) of different perspectives and scales of a texture. The classes are more heterogeneous than in the Brodatz, KTHTIPS2b, Kylberg, and Mondial Marmi datasets, see Figure 1.
The Virus dataset was first used in [11], and is based on transmission electron microscopy images of 15 different virus types. The virus types vary both in size (diameters from 25 to 270 nm) and shape; some are icosahedral while others are elongated. Texture patches are extracted as diskshaped regions with the same diameter as the viruses, centered in automatically (not always correctly) segmented virus particles, see [11] for more details. The texture samples are then resampled to the same size (41 × 41 pixels) using a Lanczos kernel with a sinc window of a = 2. This diskshaped region is shown inFigure 1.
3 Methods
In the original description of LBP [6], a window of 3 × 3 pixels is used. The pixels in the window are compared to the value of the center pixel. By coding $\ge $ and < for each comparison as a binary number the local binary code is retrieved when reading these binary numbers anticlockwise as a sequence, see Figure 2(left). The histogram of occurring binary codes in a region is the resulting feature vector for that region. Early on, the definition was generalized to consider N sample points evenly distributed on a circle with radius R from the center pixel [25], as illustrated in Figure 2(right). To make the comparison in this article as fair as possible, the same generalization (using N samples on a radius R) is introduced for the whole LBP family of descriptors. The implementations of all the LBP family of descriptors are based on the original LBP implementation by Heikkilä and Ahonen accessible at [26].
To put the performance of the LBP family of descriptors into perspective, two other wellknown texture descriptors are evaluated on the same datasets. The selected reference descriptors are Gabor filter banks (GF) and commonly used descriptors derived from the GLCM, also known as Haralick features. Table 2 lists all the descriptors in the comparison.
3.1 LBPs
The generalized LBP definition from [25] is used with N sample points evenly distributed on a radius R around a center pixel p _{ c } located at (x _{ c },y _{ c }). The position, (x _{ p },y _{ p }), of the neighbor point p, where p ∈ {0,…,N  1} is given by
The local binary code for the position (x _{ c },y _{ c }) is defined as:
where
If a point p does not coincide with a pixel center, bilinear interpolation is used to compute the gray value g _{ p }. Finally, the histogram of occurring binary codes in a region is the feature vector of this region.
3.2 ILBPs
ILBP, introduced in [27], is closely related to LBP. The main difference is that the threshold used is the mean value of the whole neighborhood including the center pixel. In addition, p _{ c } will also be a part of the binary code making it N+1bits long. Following [27], ILBP is defined as
where
and the function s is defined as in Equation 3.
3.3 MBPs
MBP was introduced in [28]. In analogy to ILBP, the center pixel p _{ c } is included in the neighborhood but here the median gray value of the neighborhood is used instead, giving the following definition:
where
and the function s is defined as in Equation 3.
3.4 LTPs
To deal with the noise sensitivity of the LBP descriptor, the magnitude of the intensity difference between the center pixel and neighboring points can be taken into consideration. However, involving the magnitude implies that the complete invariance to intensity scaling is lost. In [29], the LTP descriptor is proposed. Here, the difference between neighboring values g _{ p } and the center pixel value g _{ c } are encoded with three values using one threshold t _{1}
where
Instead of using a code with base 3 to encode the three states, LTP uses two binary codes representing the positive and the negative components of the ternary code, i.e., two binary codes coding for the two states {1,1}. These binary codes are collected in two separate histograms and, as a last step, the histograms are concatenated to form the LTP feature vector.
3.5 ILTPs
In analogy with the extension of LBP to ILBP, where the neighborhood mean value is used as the local threshold, LTP can be extended to ILTP. This was done in [30] arriving at the following definition:
where the function s _{3} is defined as in Equation 9 and g _{mean} as in Equation 5.
3.6 LQP
In [8], LQP is introduced, extending the encoding of the local differences to five values corresponding to two thresholds t _{1} and t _{2} resulting in
where the two thresholds are used in the s _{5}function according to
In analogy to LTP, the quinary code is split into four binary codes, coding for the states {2,1,1,2}. Four histograms are computed followed by a concatenation.
3.7 RLBP
By changing the expression (g _{ p }g _{ c }) in Equation 2 to (g _{ p }g _{ c }t _{1}) the gray value in point p has to be t _{1} higher than g _{ c } to produce a 1. This modification is called RLBPs and was introduced in [31]. The RLBP descriptor is supposed to improve robustness against small changes in local intensities. Following the description above, RLBP for a position (x,y) and a threshold value t _{1} is defined as
where the function s is defined as in Equation 3.
3.8 FLBP
In fuzzy [32]/soft [33] LBP (FLBP) one pixel position may contribute to several bins in the histogram of possible patterns. A membership function for a neighboring point p to a ‘0class’, m _{0}, and the antonym function m _{1}, expressing belongingness to a ‘1class’ is defined as
where f governs the interval of fuzzy belongingness. Figure 3 shows a plot of function m _{0} and m _{1}. The contribution from one pixel position (x,y) to a bin i in the histogram H of occurring binary patterns is
where b _{ p }(i)∈{0,1} is the value of the p th bit of the binary representation of pattern i. By remembering that all considered pixel positions may contribute to bin i in the histogram it follows that
Analogous to the other LBPbased descriptors, the resulting histogram constitutes the FLBP feature vector.
3.9 SLBP
In the classical LBP definition, one pixel position generates one local binary code corresponding to exactly one bin in the histogram of possible codes. In SLBP, a fixed number of local binary codes are generated for each pixel position. In analogy with RLBP the sign of an expression (g _{ p }g _{ c }k) is considered rather than the sign of (g _{ p }g _{ c }) as in the original LBP (Equation 2). However, in SLBP, k is varied within an interval defined by an intensity limit l. Each time k is changed, a new binary code is created and added to the histogram of occurring binary patterns. SLBP for a position (x,y) and a shift value k is defined as
where the function s is defined as in Equation 3, and k is defined as
The number of generated binary patterns, K, for one pixel position equals the number of different values k assumes. From this and Equation 19 it follows that
As an example, if l = 3, the parameter k will assume values {3,2,…,3}. K will hence be 7 which means that each pixel position will contribute with 7 binary codes to the histogram. For neighborhoods with high local contrast, the K binary codes may all be the same, while neighborhoods with contrast lower than l will generate a distribution of binary codes picking up some of the fuzzy nature of that neighborhood. The values in the final histogram are divided by K, giving the histogram the sum equal to the number of pixel positions considered (like the rest of the LBPfamily).
3.10 Rotation invariance of the LBPfamily
One straight forward way to make LBP rotation invariant is to rotate the binary code, i.e., bitshift it, to its lowest value [25]. For most LBPbased features, it is trivial to introduce rotation invariance following this scheme. Indeed, in [34], rotation invariance was introduced to FLBP following this approach. ILBP, MBP, RLBP, and SLBP are made rotation invariant in this way. LTP, ILTP, and LQP are somewhat different due to the concatenation of binary codes. The binary codes are therefore made rotation invariant prior to concatenation of the histograms here.
3.11 Gabor filters
In 1978, Granlund [12] generalized Gabor filters to 2D and applied them to images. In this article, the definition of the 2D Gabor filter in the spatial domain, ψ, is defined as in [35]
where
F is the frequency of the wave, and Θ is the angle between the direction of the wave and the xaxis. The Gaussian envelope is defined by the standard deviation parallel to the wave, γ, and standard deviation perpendicular to the wave, η.
A set of Gabor filters with different orientations and frequencies is commonly called a GF. Bianconi and Fern$\stackrel{\u0301}{\text{a}}$ndez [35] show that parameters with a significant impact on the texture classification using GF are the frequency ratio and the standard deviations for the Gaussian envelope. They also conclude that a small change of a reasonable number of orientations, n _{ O }, or number of frequencies, n _{ F }, in a GF does not significantly influence the discriminating power for the texture datasets they consider. Based on their findings, a GF with a frequency ratio equal to $\sqrt{2}$ is used here. The highest central frequency, F _{ M }, is computed according to [35] as
where γ is the standard deviation of the Gaussian envelope parallel to the wave. Figure 4 shows an example of four Gabor filter kernels of the orientation Θ = π/7 using γ = 4,η = 4⇒F _{ M }≃0.53 and a frequency ratio of $\sqrt{(}2)$.
When the GF descriptor is applied to a texture sample the texture is convolved with the complex conjugate of each one of the constructed filters in the filter bank. The mean, μ, and standard deviation, σ, are computed for the magnitude of each filter response and these values are used as the feature values. This results in a feature vector with n _{ O } × n _{ F } × 2 elements on the following form
Rotation invariance is achieved through the procedure proposed in [36]; for each frequency the dominant direction is computed as the orientation giving the highest mean filter response among the filters with this frequency in the filter bank. The elements in the GF feature vector are then circularly shifted so that μ and σ of the dominant direction can be found on the same positions in the feature vector. In [36], it is shown that a rotation of an image in the spatial domain corresponds to a circular shift of feature vector elements.
3.12 Graylevel cooccurrence matrices
Introduced in 1973 by Haralick et al. [1], descriptors derived from graylevel cooccurrence matrices still have a given place among established texture features. A relation operator is defined describing the distance and direction between pixels whose intensities are to be pairwise compared in the region of interest. A relation operator can, e.g., be ‘one pixel to the right’ and the following cooccurrence matrix, M, will then show how often a certain gray value occurs one pixel to the right of another gray value. The gray levels of an image are commonly quantized into a lower number of intensity levels prior to computing the cooccurrence matrix. Quantization into q gray levels is used in this article resulting in a q × q cooccurrence matrix of the gray levels defined as
where p(i,j) is the probability of the cooccurrence of the gray levels i and j given a relation operator. In this article, the four symmetric relation operators proposed by Haralick et al. is used. From the cooccurrence matrices, the contrast, correlation, energy, and homogeneity descriptors are computed as follows:
where μ _{ i } and μ _{ j } are mean values computed along rows and columns, respectively. In the same way, σ _{ i } and σ _{ j } are standard deviations computed along rows and columns.
For each of the four descriptors, the average and standard deviation over the four relation operators (directions) are used as feature values. This results in a GLCM feature vector with eight elements. To fully describe the GLCM descriptor, the distance d in the relation operator also needs to be set.
3.13 Classification method
To get comparable noise robustness results and parameter optimization for the descriptors, a 1NN with Euclidean metric is used. Tenfolded crossvalidation is used to minimize overfitting and to ensure that the validation is performed on independent test sets and the crossvalidation is done by randomly assigning each sample a number n∈{1,2,…,10}, creating ten disjoint subsets with equal (or approximately equal) number of samples. In the first crossvalidation fold, samples with n = 1 will be the test data and samples with n∈{2,3,…,10} will serve as training data. In the second fold, samples with n = 2 will be the test data and the rest is used for training, and so on. This means that each sample will be included in the test data once and less biased classification accuracy is obtained compared to using the apparent error. The ten results from the folds are combined into a single estimation.
The crossvalidation folds are created once for each dataset and are then kept fixed throughout the comparison. The feature values for all descriptors are normalized to [0,1] prior to the crossvalidation.
3.14 Parameter optimization
The parameters for each texture descriptor are optimized separately for each dataset to make as fair comparison as possible. The parameters common for all descriptors in the LBP family are the number of samples N and the radius R. Besides ILBP and MBP all extensions to the classic LBP have additional parameters. The parameters are listed in Table 3 along with the range wherein they are varied. Since several parameters are common to several descriptors, the table also shows for which method each parameter is applicable.
To restrict the parameter search space, an optimization scheme is designed as follows:

1.
Find optimal N and R for LBP using a tenfold crossvalidated 1NN classifier.

2.
Use N and R from step 1 and find optimal:

(a)
fuzziness, f, for FLBP,

(b)
threshold t _{1} for LTP, ILTP, and RLBP,

(c)
threshold pairs t _{1} and t _{2} for LQP, and

(d)
interval limit l for SLBP.

(a)

3.
For all texture descriptors

Perform a new gradient descent parameter search locally around the previous found best point in the current descriptor’s full parameter space. Repeat until stability.

In other words, an exhaustive search for the best LBP parameters is performed. The LBP parameter values are then used when optimizing all the methodspecific parameters. They are next used as a starting guess for an iterative optimization procedure based on gradient descent where all parameters in the descriptors are allowed to vary.
The described optimization scheme is applied to each dataset separately. An exhaustive search for each of the parameters is not feasible due to the size of the datasets and total number of parameters across the descriptors.
The parameters of the reference descriptors GF and GLCM are also optimized for each dataset. Table 3 shows the explored set of parameter values for both GLCM and GF. The optimization criterion is the same as for the LBP family of descriptors.
3.15 Introducing noise
When the descriptor parameters have been optimized for each dataset the influence of noise is investigated. The noise model used is additive white (uncorrelated) Gaussian noise. That is, a sample from an Gaussian distribution is added to the intensity of each pixel. This noise model is well suited for modeling thermal noise in CCD and CMOS sensors which are the sensors relevant for the microscopy and photography datasets considered here. The σ for the Gaussian distribution is gradually increased. Figure 5 shows one texture sample from each dataset under three different noise levels. The noise is added to the original datasets, and the noisy datasets are then saved. In this way, all the descriptors are applied and evaluated on the exact same noisy texture samples. The 20 noise levels used are σ from 10^{4} to 10^{1} with linearly spaced exponents, i.e., the 20 noise levels are equally spaced in a log_{10} scale.
4 Results
4.1 Parameter optimization
Table 4 lists the parameter values for each descriptor and dataset after applying the optimization scheme described in Section 3.14. The parameter choice does not only influence the discriminant power of the descriptor but may also, depending on the descriptor, set the number of elements in the feature vector. In the LBP family of descriptors, the feature vector length depends on the number of samples N and whether or not the center pixel is included in the binary code. Table 5 lists the feature vector lengths for the descriptors after the parameter optimization.
4.2 Comparison without added noise
The discriminating power of the descriptors are compared on the datasets without added noise by analyzing the combined classification accuracy of the tenfolded crossvalidation. The classification accuracy may vary between datasets and descriptors, but also within a dataset for a specific descriptor, i.e., all classes may not equally be easy or difficult to discriminate. To explore this perspective, Figure 6 shows the distribution of mean accuracy per class for each descriptor and dataset.
Figure 6 shows that almost all descriptors perform well on the Kylberg dataset. LTP and ILTP manage to differentiate almost all classes perfectly in the Kylberg dataset (median very close to 100%, small boxes, and short tails). Most descriptors also perform well on the KTHTIPS2b dataset. Even for the many classes in the Brodatz dataset all LBP descriptors perform overall well (100% for more than half the classes and boxes starting at >88%) but there are a number of classes no method can discriminate between (lowest class accuracies are between 22 and 44.4%). This is not surprising since there is a considerable overlap between some of the classes in the Brodatz dataset, as mentioned before.
The other three datasets are more problematic with more varied results for the LBP descriptors. The overall low accuracies achieved on the Virus dataset are probably due to the small sample size (only 41 × 41 pixels), as well as the heterogeneous classes originating from the automatic extraction of patches only partly (or sometimes even not at all) containing virus. Across these three datasets, ILTP performs overall well as does FLBP.
GLCM is among the worst performing descriptors for all datasets, except for the Mondial Marmi dataset. Note however that only very few measures on the cooccurrence matrix are extracted.
The GF descriptor performs on the same level as several LBPbased descriptors for several datasets. However, on the Kylberg and UIUC dataset GF is outperformed by most LBPbased descriptors. Comparisons of perclass performance for the different descriptors and datasets (data not shown) show that the GF sometimes produces good results for a few specific classes where the LBP family of descriptors do not. This indicates that GF could be a good complementary texture descriptor and that a combination with, for example, ILTP might improve the overall classification accuracy on some of the datasets. However, combining descriptors to produce the best classification result possible is not the purpose of this article, and is not further investigated here.
4.3 Robustness to noise
Figures 7, 8, 9, 10, 11, and 12 show the mean classification accuracies for the texture descriptors on the six datasets under increasing levels of added noise. In all figures, LBP, GF, and GLCM are shown in red, blue, and green, respectively, and one of the other descriptors at a time in black. A horizontal dotted line marks the mean accuracy of a random decision. The curves are interpolated between data points using piecewise cubic interpolation. For increasing noise levels, it is expected that the performance of all descriptors level out to the mean accuracy of a random classification, i.e., a mean classification accuracy of 1/number of classes. This is easily seen in, for example, Figure 9. The same data as Figures 7, 8, 9, 10, 11, and 12 show can be viewed in tabular form in Tables 6, 7, 8, 9, 10, and 11 but limited to every second noise level. In the tables, the highest mean accuracy for each noise level is highlighted in bold and the lowest in italics.
For the Brodatz dataset, Figure 7 and Table 6, GF stands out as the most noise robust texture descriptor but it is not necessarily the best descriptor for low noise levels where ILTP followed by LTP, and SLBP show good performance. These four descriptors are better than LBP for all noise levels. RLBP, LQP, and especially MBP all perform worse than LBP, and in addition, the performance for LQP and MBP drops quickly with increasing levels of noise.
For low levels of noise in the KTHTIPS2b dataset, Figure 8, all LBPbased descriptors (except MBP) outperform the original LBP and they perform on the same high level as GF. For medium to high levels of noise all LBPbased methods are outperformed by GF and the bottom two LBPbased descriptors are, again, LQP and MBP.
Most LBPbased descriptors show similar performance on the Kylberg dataset, see Figure 9 and Table 8. ILBP, LTP, ILTP are generally somewhat better than LBP. LQP drops in performance faster than the rest. The MBP performance drops with increasing but still low levels of noise, but then increases in performance and is among the better descriptors for high levels of noise. A closer look at the perclass accuracies (data not shown) reveals that it is mainly the second texture class, see Figure 1, with large homogeneous intensity patches in the pattern that causes this dip in the mean accuracy curve for MBP.
For the Mondial Marmi dataset, Figure 8 and Table 9, the curves look and behave rather differently. A reason behind this might be the JPEG compression artifacts. This dataset is the only dataset where GLCM perform well for low levels of noise. GF is also found to perform well for low noise levels and is more stable than the other descriptors for increasing noise levels. ILBP, ILTP, and FLBP are generally better than LBP. However, for low levels of noise all the descriptors in the LBP family are similar, MBP and LBP being the exceptions. MBP is the worst performing descriptor as soon as low levels of noise are added and the performance of LQP drops quickly for higher levels of noise added.
On the UIUC dataset, LTP is the best performing descriptor for low levels of noise and ILTP and FLBP are in general better than the LBP, see Figure 11 and Table 10. GF is not very good for low to moderate noise levels but robust for high levels of noise. ILBP performs poorly for low levels of noise. MBP is the by far the worst performing descriptor followed by GLCM. Again, LQP drop quickly at moderate levels of noise and is hence less noise robust then the other LBP family of descriptors.
On the difficult Virus texture dataset, GF, ILTP, and FLBP are the best performing descriptors with FLBP having a slight upper hand at low levels of noise, see Figure 12 and Table 11. On this dataset, the proposed SLBP descriptor falls between these three best performing descriptors and the rest while MBP and LQP are the two worst.
4.4 Computation time
One of the benefits of the classic LBP is that it is very fast to compute. A comparison of computation times for the more complex LBP descriptors is hence interesting. Computation time for some of the descriptors depend on the image content. Therefore, the CPU time required for the different descriptors is here compared on one sample from each class in the Kylberg dataset using the optimized parameters listed in Table 4. Figure 13 shows computation time relative to the computation time of the classic LBP. Hence, if a descriptor takes 10 times longer than LBP to compute the descriptor has the value 10 in the plot in Figure 13.
Furthermore, two FLBP implementations are compared. The version directly based on [32, 33], called ‘naive’ in Figure 13, computes the histogram bin contribution of all bins for every neighborhood (Equation 16). However, gray value differences outside the fuzzy region [f, f] restrict the possible binary codes that a neighborhood can contribute to. Utilizing this, a modified implementation was developed, denoted ‘fast’ in Figure 13. It restricts the membership computations to the subset of binary codes possible, given the current local neighborhood. Outside the fuzzy region, the bin contributions will be as in the classic LBP. The computed feature vectors from the ‘naive’ and ‘fast’ implementations of FLBP are of course identical.
Even though the ‘fast’ FLBP implementation is roughly five times faster than the ‘naive’ implementation, they are both very slow compared to all other descriptors. FLBP are 922 times slower than the classic LBP. It should also be said that the computation time for the ‘fast’ FLBP not only depends on the fuzziness parameter (which is the case of the ‘naive’ FLBP), but also depends on the image content. Figure 13 shows that LQP, RLBP, ILTP, LTP, ILBP, and GLCM have comparable computation times to LBP. SLBP is roughly 11 times slower than LBP which is expected since SLBP in this test generates 11 binary codes at every position (l = 5 ⇒ K = 11, see Equation 20). The MBP is relatively slow compared to most of the LBP descriptors which is also expected since computing median values in this implementation involves sorting the intensity values in each neighborhood. In GF, which is 20 times slower than LBP, each texture sample is convolved with a number of complex filter kernels. This is a more timeconsuming task than performing multiple thresholdings in a small neighborhood, the operation performed in most LBPbased descriptors.
5 Conclusions
This article reports on the following:

The descriptive performance of eight LBPbased texture descriptors are evaluated and compared on six different datasets under increasing levels of additive Gaussian white noise together with the classic LBP, Haralick descriptors, and GF.

A new LBPbased descriptor, SLBP, is introduced as a fast approximation of the computationally heavy FLBP.

A roughly five times faster implementation of the FLBP descriptor is described.
The fast implementation of FLBP as well as an implementation of SLBP are available as Matlab code at [37].
The main conclusions that can be drawn regarding the evaluated texture descriptors are

ILTP followed by FLBP generally perform well among the LBPfamily of descriptors, outperforming the classic LBP in all tests performed.

GF is often very robust for moderate to high levels of noise but is many times outperformed by several LBPbased descriptors under low noise conditions.

FLBP is very slow compared to the rest of the descriptors but the naive implementation can be improved upon by restricting the belongingness computations to the possible subset of binary codes given a specific neighborhood.

MBP is very noise sensitive and has a relatively poor performance even for low levels of noise.

LQP suffer more of added noise than the majority of the LBPbased descriptors.

It is not possible to know in advance which texture descriptor is the best performing one for a given problem. However, a wellperforming descriptor can probably be found among a subset of the tested descriptors, after optimizing their parameters. Such a subset of descriptors could be ILBP, LTP, ILTP, and FLBP. Furthermore, SLBP can sometimes be an alternative to the computationally heavy FLBP.
In accordance with the survey in [9], ILTP is found to be superior to LTP, LQP, and ILBP for all the datasets evaluated. In addition, we show that ILTP retains its discrimination advantage under increasing levels of added Gaussian white noise. The results presented here also show that even if MBP and LQP perform relatively well on noise free data, they both suffer greatly from the introduced noise. Furthermore, we find that FLBP has a good overall performance, similar to ILTP.
It seems that it is preferable to use the more stable local mean value of the neighborhood (including the center pixel) as the local threshold in that ILBP often outperforms LBP, and ILTP often outperforms LTP. The two descriptors using ternary patterns, LTP and ILTP, often outperform their counterparts using binary codes, the LBP and ILBP descriptors, suggesting that the use of ternary patterns has its advantage.
The two descriptors MBP and LQP are often found among the worst performing descriptors both regarding overall accuracy and robustness to noise. The reason for the poor performance of MBP can be explained by its definition. Using the median value as the local threshold results in that half of the gray levels in the neighborhood will be larger and half smaller. This restricts the possible binary codes, and as a consequent, restricts the amount of discriminative information that can be contained in the MBP descriptor.
GF involves convolution with relatively large (between 13 × 13 and 25 × 25 pixels) complex filter kernels and is hence slow in comparison to most of the other descriptors, proves to be a very noise robust descriptor for all datasets but not always among the best performing descriptors at low noise levels.
Under increasing levels of noise the discriminating power of the descriptors is expected to drop monotonically, or at least close to monotonically. This holds for most tests reported on here except for the results for the Mondial Marmi dataset which are somewhat odd, see Figure 8. While the mean classification accuracies have a decreasing trend, the curves are far from monotonically decreasing. One possible cause may be the JPEG compression artifacts present in this dataset. The blocking artifacts from the 8 × 8 blocks used in JPEG compression are at a scale comparable to that of the local neighborhoods used in the LBP family. As expected, GF, with its larger considered regions, shows a smoother decline under increasing levels of noise.
A comparison of the perclass performance and confusion matrices for the descriptors at a few noise levels has been done (data not shown). The LBP family of descriptors tend to have difficulties with mostly the same classes (MBP and LQP have additional difficulties). The perclass accuracy for GF and the LBP descriptors is often similar even though the LBP descriptors are more alike among themselves (apart from MBP). This is in line with the findings reported in [38]. The perclass accuracy for GLCM differs from those of the LBP family and GF mainly in that GLCM has additional difficulties discriminating a number of classes. FLBP has a high over all accuracy but with a slightly different pattern in the perclass accuracy compared to the rest of the LBPfamily on the Brodatz, Kylberg, and Virus datasets. Similarly, GF has a slightly different distribution of perclass accuracy than the LBPfamily on the Brodatz, KTHTIPS2b, and Mondial Marmi datasets.
A different distribution of perclass accuracy indicates that the descriptors compared detect different characteristics of the textures. On some datasets used here a combination of ILTP or FLBP and GF could presumably be beneficial for the task of texture classification. However, combining texture descriptors to improve classification accuracy is not within the scope of this article.
In parallel with the 1NN classifier used in the results reported in this article, SVMs were also investigated on the datasets without added noise using both a linear and a Gaussian kernel with optimized parameters. Similar descriptor parameter values were suggested by the SVM classifiers in the optimization procedure for the texture descriptors. For some dataset–descriptor combinations, the SVMs reached slightly higher classification accuracies. Nevertheless the 1NN classifier was used in the tests reported on to make the comparison between the descriptors on the same and fair basis.
References
 1.
Haralick RM, Shanmugam K, Dinstein I: Textural features for image classification. IEEE Trans. Syst. Man Cybern 1973, 3(6):610621.
 2.
Jain A: Learning texture discrimination masks. IEEE Trans. Pattern Anal. Mach. Intell 1996, 18(2):195205. 10.1109/34.481543
 3.
Pietikäinen M, Hadid A, Zhao G, Ahonen T: Computer Vision Using Local Binary Patterns, vol. 40 of Computational Imaging and Vision. London: Springer; 2011.
 4.
Harwood D, Ojala T, Pietikäinen M, Kelman S, Davis L: Texture classification by centersymmetric autocorrelation, using Kullback discrimination of distributions. Pattern Recognit. Lett 1995, 16: 110. 10.1016/01678655(94)000617
 5.
Wang L, He DC: Texture classification using texture spectrum. Pattern Recognit 1990, 23(8):905910. 10.1016/00313203(90)901358
 6.
Ojala T, Pietikäinen M, Harwood D: A comparative study of texture measures with classification based on featured distributions. Pattern Recognit 1996, 29: 5159. 10.1016/00313203(95)000674
 7.
Nanni L, Lumini A, Brahnam S: Survey on LBP based texture descriptors for image classification. Expert Syst. Appl 2012, 39(3):36343641. 10.1016/j.eswa.2011.09.054
 8.
Nanni L, Lumini A, Brahnam S: Local binary patterns variants as texture descriptors for medical image analysis. Artif. Intell. Med 2010, 49(2):117125. 10.1016/j.artmed.2010.02.006
 9.
Fernández A, Álvarez M, Bianconi F: Texture description through histograms of equivalent patterns. J. Math. Imag. Vision 2013, 45: 76102. 10.1007/s1085101203498
 10.
Mäenpää T, Ojala T, Pietikäinen M, Soriano M: Robust texture classification by subsets of local binary patterns. In Proceedings 15th International Conference on Pattern Recognition, ICPR 2000. Barcelona, Spain; 2000:935938.
 11.
Kylberg G, Uppström M, Sintorn IM: Virus texture analysis using local binary patterns and radial density profiles. In Proceedings of the 16th Iberoamerican Congress on Pattern Recognition, CIARP 2011, vol. 7042 of Lecture Notes in Computer Science. Pucón, Chile; 2011:573580.
 12.
Granlund GH: In search of a general picture processing operator. Comput. Graph. Image Process 1978, 8(2):155173. 10.1016/0146664X(78)900473
 13.
Brodatz P: Textures: A Photographic Album for Artists and Designers. New York: Dover Publications; 1966.
 14.
Caputo B, Hayman E, Mallikarjuna P: Classspecific material categorisation. In Proceedings of the 10th IEEE International Conference on Computer Vision, ICCV 2005. China: Beijing; 2005:15971604.
 15.
Kylberg G: The Kylberg Texture Dataset v. 1.0. External report (Blue series) 35, Centre for Image Analysis, Swedish University of Agricultural Sciences and Uppsala University. Uppsala, Sweden; 2011. http://www.cb.uu.se/~gustaf/texture/
 16.
Fernández A, Álvarez MX, Bianconi F: Image classification with binary gradient contours. Opt. Lasers Eng 2011, 49(9–10):11771184.
 17.
Lazebnik S, Schmid C, Ponce J: A sparse texture representation using local affine regions. IEEE Trans. Pattern Anal. Mach. Intell 2005, 27(8):12651278.
 18.
Randen T: Brodatz textures at Trygve Randen’s website. 2011.http://www.ux.uis.no/~tranden/
 19.
KTHTIPS 2b 2012.http://www.nada.kth.se/cvap/databases/kthtips/
 20.
Kylberg G: Kylberg Texture Dataset v.1.0. 2012. http://www.cb.uu.se/~gustaf/texture/
 21.
Fernández A, Ghita O, González E, Bianconi F, Whelan PF: Evaluation of robustness against rotation of LBP, CCR and ILBP features in granite texture classification. Mach. Vis. Appl 2010, 22(6):913926.
 22.
Mondial Marmi Texture Dataset v. 1.1 2012.http://dismac.dii.unipg.it/mm/ver_1_1/
 23.
UIUC Texture Database 2012.http://wwwcvr.ai.uiuc.edu/ponce_grp/data/
 24.
Kylberg G: Virus Texture Dataset v. 1.0. 2012.http://www.cb.uu.se/~gustaf/virustexture/
 25.
Ojala T, Mäenpää T: Multiresolution grayscale and rotation invariant texture classification with local binary patterns. IEEE Trans. Pattern Mach. Intell 2002, 24(7):971987. 10.1109/TPAMI.2002.1017623
 26.
Heikkilä M, Ahonen T 2012.http://www.cse.oulu.fi/CMV/Downloads/LBPMatlab
 27.
Jin H, Liu Q, Lu H, Tong X: Face detection using improved LBP under Bayesian framework. In Proceedings of the 3rd International Conference on Image and Graphics, ICIG 2004. China: Hong Kong; 2004:306309.
 28.
Hafiane A, Seetharaman G, Zavidovique B: Median binary pattern for textures classification. In Proceedings of the 4th International Conference, ICIAR 2007, vol. 4633 of Lecture Notes in Computer Science. Montreal, Canada; 2007:387398.
 29.
Tan X, Triggs B: Enhanced local texture feature sets for face recognition under difficult lighting conditions. IEEE Trans. Image Process 2007, 19(6):16351650.
 30.
Nanni L, Brahnam S, Lumini A: A local approach based on a local binary patterns variant texture descriptor for classifying pain states. Expert Syst. Appl 2010, 37(12):78887894. 10.1016/j.eswa.2010.04.048
 31.
Heikkilä M, Pietikäinen M: A texturebased method for modeling the background and detecting moving objects. IEEE Trans. Pattern Anal. Mach. Intell 2006, 28(4):657662.
 32.
Iakovidis DK, Keramidas EG, Maroulis D: Fuzzy local binary patterns for ultrasound texture characterization. In Proceedings of the 5th International Conference on Image Analysis and Recognition, ICIAR 2008, vol. 5112 of Lecture Notes in Computer Science. Portugal: Póvoa de Varzim; 2008:750759.
 33.
Ahonen T, Pietikäinen M: Soft histograms for local binary patterns. In Proceedings of the Finnish Signal Processing Symposium, FINSIG 2007. Oulu, Finland; 2007:14.
 34.
Herve N, Servais A, Thervet E, OlivoMarin JC, MeasYedid V: Statistical color texture descriptors for histological images analysis. In Proceedings of the IEEE International Symposium on Biomedical Imaging: From Nano to Macro, ISBI 2011. Chicago, USA; 2011:724727.
 35.
Bianconi F, Fernández A: Evaluation of the effects of Gabor filter parameters on texture classification. Pattern Recognit 2007, 40(12):33253335. 10.1016/j.patcog.2007.04.023
 36.
Zhang D, Wong A, Indrawan M, Lu G: Contentbased image retrieval using Gabor texture features. In Proceedings of the First IEEE PacificRim Conference on Multimedia, PCM 2000. Sydney, Australia; 2000:11391142.
 37.
Kylberg G: FLBP and SLBP implementations for Matlab. 2013.http://www.cb.uu.se/~gustaf/textureDescriptors/
 38.
Ghita O, Ilea D, Fernandez A, Whelan P: Local binary patterns versus signal processing texture analysis: a study from a performance evaluation perspective. Sensor Rev 2012, 32(2):149162. 10.1108/02602281211209446
Acknowledgments
The authors would like to thank Vladimir Ćurić for his input on notations. Some of the computations were performed on resources provided by SNIC through Uppsala Multidisciplinary Center for Advanced Computational Science (UPPMAX) under Project p2012012. This study is part of the MiniTEM E!6143 project funded by EU and EUREKA through the Eurostars Programme.
Author information
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ original submitted files for images
Rights and permissions
About this article
Received
Accepted
Published
DOI
Keywords
 Local Binary Pattern
 Binary Code
 Texture Descriptor
 Gabor Filter
 Center Pixel