The Fabric Defect Detection Based On CIE L A B Color Space Using 2-D Gabor Filter

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

The Journal of The Textile Institute

ISSN: 0040-5000 (Print) 1754-2340 (Online) Journal homepage: https://www.tandfonline.com/loi/tjti20

The fabric defect detection based on CIE L*a*b*


color space using 2-D Gabor filter

Junfeng Jing, Suimei Liu, Pengfei Li & Lei Zhang

To cite this article: Junfeng Jing, Suimei Liu, Pengfei Li & Lei Zhang (2016) The fabric defect
detection based on CIE L*a*b* color space using 2-D Gabor filter, The Journal of The Textile
Institute, 107:10, 1305-1313, DOI: 10.1080/00405000.2015.1102458

To link to this article: https://doi.org/10.1080/00405000.2015.1102458

Published online: 23 Oct 2015.

Submit your article to this journal

Article views: 319

View related articles

View Crossmark data

Citing articles: 7 View citing articles

Full Terms & Conditions of access and use can be found at


https://www.tandfonline.com/action/journalInformation?journalCode=tjti20
The Journal of The Textile Institute, 2016
Vol. 107, No. 10, 1305–1313, http://dx.doi.org/10.1080/00405000.2015.1102458

The fabric defect detection based on CIE L*a*b* color space using 2-D Gabor filter
Junfeng Jing*, Suimei Liu, Pengfei Li and Lei Zhang
College of Electronic and Information, Xi’an Polytechnic University, Xi’an Shaanxi, China
(Received 11 November 2014; accepted 17 September 2015)

A detection algorithm based on CIE L*a*b* color space is proposed to detect various colorful fabric defects more
accurately and avoid the error detection resulted from losing image information of graying. CIE L*a*b* color space is
transformed from XYZ space via nonlinear transformation of RGB space. First, three features including the brightness
characteristics L*, color information of a* and b* which are used to form 2-D Gabor filter in a complex number can be
acquired. Genetic algorithm with the objective function in a form of energy is adopted to select optimal Gabor filter
parameters. Second, filter built by flawless image is used to filter the corresponding drawbacks of image. Third, ultimate
results are obtained through sliding threshold segmentation method and properly de-noising. The experiment success rate
is 95.83%, which indicate that this method can detect diversiform colorful fabric defect accurately.
Keywords: colorful fabrics; defect detection; CIE L*a*b* color space; 2-D Gabor filter

Introduction (Mokji & Abu Baker, 2007) that reflects the probability
Flaws which are caused by many factors such as quality of two gray appearing simultaneously in a certain space,
of cotton, procedure of weaving, printing, dyeing, and autocorrelation is an energy spectrum function which
post-tailoring make a big influence on textile quality. could extract roughness and directionality. The operation
The quality of textile not only is a standard for of structural approaches is mainly focused on the
measuring both production and management level of analysis of image texture primitive. Filter-based methods
enterprises, but also affects textile trade. Hence, it is have been extensively applied because of their better
significant that detecting defects while putting fabric into performance. Gabor filter has been used to detect defects
use. The defective regions is marked and trimmed by on texture materials (Kumar & Pang, 2002), Chan &
comparing detected fabrics with model fabrics during Pang, (2000) used Fourier transform (FT) in fabric
detect process in traditional manual testing. The speed of defect detection and Yang, Pang, and Yung (2005) used
defect online detection is generally higher than 60 m/ multiple adaptive wavelets to detect and classify defects
min. The minimum size of defect is 0.5 mm (Zou, in fabrics. Model-based approaches include random field,
Wang, & Sun, 2009). However, the speed of a skilled synchronous autoregressive model. Except these
defect detection staff ordinary is 15–20 m/min. Besides, methods, there are also a number of algorithms to detect
lower resolution of human eyes and higher inattention defects such as the BP neural network and fuzzy control
after long-time work leads that accuracy rate is only and have been adopted to realize the fabric defect
70% when human complete the detection of 0.8–1.0 m detection (Hung & Chen, 2001).
of fabric (Jing, Zhang, & Li, 2013). Therefore, automatic However, the use of single algorithm mentioned
detection is developed gradually for shunning the lower above is unable to detect accurately for various flaws
labor detection efficiency, slower detection speed, higher appearing in defect detection process. In addition,
false detection rate, and stronger subjective accuracy of fabric image test is affected by tested
consciousness influence of human detection. fabric itself and image acquiring equipment. Lighting
So far, many scholars throughout the world have equipment is the most influential factor which could
proposed lots of methods in defect detection. Most provide stable and consistent light to ensure that the
popular classification of these methods is divided into testing image have uniform gray, consistent
four categories, namely statistical approaches, structural chromaticity. During the whole process, it is important
approaches, filter-based methods, and model-based to reduce the impact of light as far as possible. Color
approaches (Xie, 2008). Statistical approaches are used imaging system has been widely used in detection and
to achieve detect defect by extracting spatial information chromatic consistency plays an important role in fabric
of image gray scale. Such as the co-occurrence matrix quality. While using the above methods for testing, the

*Corresponding author. Email: jingjunfeng0718@sina.com

© 2015 The Textile Institute


1306 Junfeng Jing et al.

color image should be converted to grayscale image to Start


detect.
Traditional color imaging methods are more Image capture
concerned with the problem of image segmentation than
with problems arising in defect inspection in colored Input corresponding
Input flawless image
texture surfaces (Tsai, Lin, & Huang, 2005). Cheng, flaw image

Jiang, and Wang (2002) mentioned the kinds of


Color space Color space
segmentation algorithms as follows: histogram transform transform
thresholding, feature space clustering, region-based
approaches, edge detection, fuzzy approaches, neural Get optimal Gabor filter Filtering flawless image with the optimal
parameters by genetic Gabor
networks, and physics-based approaches. A neurofuzzy algorithm filter which designed by these parameters
color image segmentation method has been proposed for
wood surface defect detection (Ruz, Estévez, & Perez, Defect
2005). segmentation

Human is capable of seizing the main color while


Output result
observing images by eyes. Without subjective human image
intelligence, the extraction of color feature of the
automatic computer detection system as main color is End
necessary. The quantitative methods of RGB channels
could be used to extract color features (Jain &
Vailaya, 1996). The development of SaFe system is Figure 1. Fabric defect detection based on CIE L*a*b* color
space with 2-D optimal Gabor filter using genetic algorithm.
adopted to divide HSV space into 166 color areas
(Smith, 1997). In this paper, the method based on the
CIE L*a*b* color space is proposed to detect various Defect detection
colorful fabric defects. Majority of color spaces are Color space transformation
derived from the RGB color space. Firstly,
Different color spaces are suitable for different
corresponding coordinates of RGB in XYZ space and
situations. Most color spaces can be transformed from
coefficients matrix are used to change RGB into XYZ
RGB color space. RGB and CMYK color space are both
color space. Secondly, CIE L*a*b* is derived from the
hybrids of three primary colors. They are more applied
XYZ space directly. Thirdly, characteristics including
to television and computer display systems rather than
L*, a*, and b* could be obtained. A fabric defect
human perception. Meanwhile, color images stored by
detection method which used multi-angle and multi-
RGB format which is uneven and it is difficult to assess
directional Gabor filter with not only a single feature
the similarity of two colors from their distance in RGB
has been proposed (Escofet, Navarro, & Milla’n,
color space (Johnson, Song, Montag & Fairchild, 2010).
1998). Nevertheless, the high-computation of that
CIE L*a*b* color space is recommended by CIE, which
method is inadaptable to solve problem in this article.
has standardized color space and can better reflect the
In order to build an optimal filter, only the color
color difference of objects (Li, Wang, & Jing, 2014).
information with the form of complex number would
The LUV, YUV, and YIQ color space are used as one of
be used to construct 2-D Gabor filter. In this way,
the features to represent non-color perception and other
two-color information of flawless color image could be
two components indicate color information. Whereas
used simultaneously in a single Gabor filter. Merely,
these three spaces are originated in compressing
the real part of optimal filter is used to convolute with
broadcast color television picture by compressing
defect image to simplify the filtering operation.
chrominance information during the development of
Genetic algorithm is used to select the main
radio and television. Three features of CIE L*a*b* are
parameters of Gabor filter including center frequency,
L* which represents black or white, respectively, when it
bandwidth, and direction. In the end, threshold
equals to 0 or 1, a* which indicates green or magenta
segmentation is applied to get the final binary image.
while it is negative value or positive value, and b*
Many threshold selection methods have been proposed.
which is similar as a* indicates blue or yellow of two
For example, the threshold segmentation algorithm
kinds of values. Therefore, the CIE XYZ and CIE
based on 2-D histogram θ–division and maximum
L*a*b* color spaces are adopted in this paper for their
between-cluster deviation criterion has been used (Wu
device-independent ability.
& Zhang, 2010). In this paper, the sliding threshold
The value of red (R), green (G), and blue (B) are all
method with global characteristics is adopted. The
set to 1 when defining the coordinate of white light spot
proposed algorithm is shown in Figure 1.
n in the process of RGB color space changing into CIE
The Journal of The Textile Institute 1307
0 1 0 1
XYZ space. The formulation of this conversion a11 a12 a13 0:64 0:33 0:03
relationship is as follows: @ a21 a22 a23 A ¼ @ 0:30 0:60 0:10 A: (8)
0 1 0 1 0 1 a31 a32 a33 0:15 0:06 0:79
Xn cr  a11 cg  a12 cb  a13 R
@ Yn A ¼ @ cr  a21 cg  a22 cb  a23 A  @ G A The conversion relationship also can be obtained in this
Zn 0 cr  a31 cg  a1 cb  a133
32 0 B condition with previous description:
a11 a12 a13 cr 0 1 0 1
X 0:412453 0:357580 0:180423
¼ @ a21 a22 a23 A  @ cg A: @ Y A ¼ @ 0:212671 0:715160 0:072169 A
a31 a32 a33 cb
Z 00:019334
1 0:119193 0:950227
(1) R
Parameter aij (i = 1, 2, 3; j = 1, 2, 3) and ci (i = r, g, b) in  @ G A: (9)
matrix above are scale factors. The Xn, Yn, and Zn are B
the tristimulus values of reference white in CIE CIE L*a*b* is derived directly from the CIE XYZ
chromaticity coordinates. So some definitions of space, Xn, Yn, and Zn can be expressed as (255, 255,
formulation (1) are shown below: 255) in an 8-bit display system. Lighting information L*,
Yn ¼ 1; (2) color information a* and b* can be obtained from the
above, given by:
z n ¼ 1  xn  yn ; (3) 
 1=3
L ¼ 166 ðY=Y 
nÞ  16 if Y=Yn [ 0:008856
Yn 903:3 ðY=Yn Þ if Y=Yn  0:008856;
X n ¼ xn  ¼ xn =yn ; (4) (10)
yn

Yn a ¼ 500 ðf ðX=Xn Þ  f ðY=Yn ÞÞ;


Zn ¼ zn  ¼ zn =yn : (5) b ¼ 200 ðf ðY=Yn Þ  f ðZ=Zn ÞÞ:
(11)
yn
Different coefficient matrices could be obtained by with
distinct standards. First, ITU-R BT.601 standard, in 
t 1=3 if t [ 0:008856
which a standard illuminant that CIE defined as a light f ðtÞ ¼ (12)
7:787t þ 16=116 if t  0:008856
source C (illuminant C) is used, the ordinary daylight is
simulated by making tungsten light source through the ITU-R BT.601 standard was proposed in 1982 for the
foil. Under this standard, color temperature is 6774 K development of digital color video standard. It specifies
and wavelength is from 380 to 770 nm. In addition, the conversion relationship between color spaces and the
white color coordinate (xn, yn) in the CIE XYZ sample frequency while color video is converted into
chromaticity diagram are (0.310063, 0.316158). The digital images. BT.709 was founded in 1990, which
values of the parameter aij are: differs from BT.601 in the sample frequency. BT.601 is
0 1 0 1 usually with the TV level applied to standard definition
a11 a12 a13 0:67 0:33 0:00 video. Nevertheless, BT.709 is often with PC level
@ a21 a22 a23 A ¼ @ 0:21 0:71 0:08 A: (6) cooperation for high-definition video to display a wilder
a31 a32 a33 0:14 0:08 0:78 color space. For the advantage of wilder color space, the
From a priori knowledge, parameter ci can be calculated. second standard was utilized in this article to change the
The final conversion relationship could be achieved as color space.
follows: Conversion results are different between motif image
0 1 0 1 and non-motif image. Moreover, various texture clarities
X 0:606881 0:173505 0:200336 of fabric weaves lead to diverse results. Comparing with
@ Y A ¼ @ 0:298912 0:586611 0:114478 A
image graying, color space conversion has more obvious
Z 0:000000
0 1 0:066097 1:116157 features.
R
 @ G A: (7)
B Gabor filter design
Second, the ITU-R BT.709 is a generally applicable Gabor function is a special case of the short-time FT.
standard, in which Standard illuminant D65 is used. The The window function used in Gabor function is
correlated color temperature is 6504K. Besides, white Gaussian function which has invariance characteristics
color coordinate (xn, yn) are (0.312713, 0.329016). The during FT and synchronization of time–frequency
value of the parameter aij is as follows: information (Kula, Tunak, & Linka, 2010). The
1308 Junfeng Jing et al.

advantages of Gabor filter including adjustable angle and


axis, variable center frequency and bandwidth, and the
simultaneous optimization in frequency space and
domain (Kumar, 2008). The impulse response of 2-D
Gabor filter can be regarded as a sine wave multiplied
by a Gaussian function. The FT of Gabor filter impulse
response is convolution between the FT of harmonic
function and theft of Gaussian function. Gabor
transformation of image after gray scale is processed
according with the following equation:
Gðx; yÞ ¼ gðr; h; f Þ ðx; yÞ
(13)
exp½ 12 ðru2 þ rv 2 Þ cosð2p fuÞ;
2 2

u v

with
u ¼ ðx  t1 Þ cos h þ ðy  t2 Þ sin h; (14)
Figure 3. The imaginary part of a basic Gabor function.
 
v ¼ ðx  t1 Þ sin h þ ðy  t2 Þ cos h; (15)
" #
1 x2 y2
gðr; h; f Þ ðx; yÞ ¼  exp  2  2 : (16)
2pr2 2rx 2ry

With the range from 0° to 360°, θ is the direction of


Gabor filter just the same as the direction of Gabor
function parallel stripes. t1 and t2 are conversion factors
along x-axis and y-axis, respectively. Then convert x-axis
into u which is parallel to θ-axis and y-axis into v-axis
which is perpendicular to θ-axis. σu is the standard
deviation while Gaussian enveloping in u-axis. The same
as σu, σv is calculated from v-axis. Practice (Yang, Liu,
Jiang & Fan, 2003) has been proved that Gabor function
can be used as a low-pass filter to remove high-
frequency components from fabric images. The real part
of Gabor filter is displayed in Figure 2. The imaginary
part and frequency domain responses of 2-D Gabor filter Figure 4. Frequency domain responses of a basic Gabor
are shown in Figures 3 and 4, respectively. function.

After the color space conversion, both a* and b*


color characteristics can be acquired. Each color
characteristic is expressed as a 2-D matrix. The use of
Equation (13) exclusively causes information loss
without achieving better filtering effects. Therefore,
constructing Gabor filter with a complex formulation is
better. Given by:
Gðx; yÞ ¼ gr ðx; yÞ þ jgi ðx; yÞ; (17)
where

gr ðx; yÞ ¼ exp½ 12 ðru2 þ rv 2 Þ


2 2

u v (18)
ðcosð2 pi f  ðx cos h þ y sin hÞÞÞ;

gi ðx; yÞ ¼ exp½ 12 ðru2 þ rv 2 Þ


2 2

u v (19)
ðsinð2 pi f  ðx cos h þ y sin hÞÞÞ:
Figure 2. The real part of a basic Gabor function.
The Journal of The Textile Institute 1309

Generally, various center frequency and bandwidth are the optimal solution of groups is random. It is
extracted from different textures of fabric. Textures are also influenced by encoding method and fitness
constantly changing while processing image. Hence, function. Selection is the procedure to select the
finding the optimal parameters of Gabor filter is individuals which are processed with the high
particularly important. Presetting the center frequency fitness among initial or new populations. Then,
and bandwidth has blindness and low efficiency. To crossover is exchanging parts of two father
achieve tunable parameters of Gabor filter, genetic individuals according to probability of crossover
algorithm is adopted in this paper to find optimal (pc). In this article, pc equals to 0.6. Next,
parameters. mutation is changing some bits of each
Genetic algorithm is a search heuristic that mimics individual to produce new individual follow the
biological evolution mechanism. It regards excellent probability of mutation (pm). In this study, pm is
individuals as paternal individual who leave 0.1. Namely exchange 1 to 0 or 0 to 1 (Yang &
chromosomes and genes to posterities then reach Jiang, 2001). Crossover has global search
recombination. Genetic algorithm usually starts from a capability and mutation operator has local search
population of randomly generated individuals which are capability. The coordination of these parameters
represented in binary as strings of 0s and 1s. It is can accelerate the convergence of the optimal
designed without the limitation of prior knowledge. Then solution.
the fitness of populations in each generation is (4) Termination: This generational process is
calculated. The fitness is got from objective function. repeated step 2 and 3 until the termination
Finally, the optimal solution can be obtained by criteria are reached. Such as when the fitness of
approaching to fitness through selection, crossover, and the best individual gets to a given threshold, or
mutation until reach termination criteria. Genetic the number of iterations reaches to a preset
algorithm is a global optimization method that searches value.
parallel along multiple routes (Li, Xie, & Yi, 2005).
Genetic algorithm has four steps as follows: The optimal individuals through genetic algorithm are
expressed as a set of binary string. Parameters for the
(1) Initialization: Initial population (Jin, Yang, & final design of Gabor filter can be acquired through
Ding, 2001) is composed of a binary string with transcoding this binary string into decimal vector.
the length match to the required parameters of Algorithm flow chart is shown in Figure 5.
Gabor filter. The first generation is constructed Flaw image Id is filtered by the Gabor filter which is
by those random chromosomes or genes. constructed by a flawless image. A simplified
(2) Assessment of fitness: According to the actual
requirements of this paper, the fitness cE is
calculated as follows:
Start

Determinate parameters and initialize


cE ¼ c2r þ c2i ; (20) population,
population size: 40; string length: 70
among
Selection: choose the superior
X
k X
k

individuals in the group and eliminate
Calculate objective function for the

Cr ¼ f½a ðx þ l; y þ mÞ gr ðl; mÞ
whole population
the inferior individuals

l¼k m¼k
½b ðx þ l; y þ mÞ gi ðl; mÞg; ð21Þ
Crossover: two father individual
according the pc to exchange some
X
k X
k parts, pc: 0.6
Ci ¼ f½a ðx þ l; y þ mÞ gi ðl; mÞ
l¼k m¼k
þ½b ðx þ l; y þ mÞ gr ðl; mÞg:

ð22Þ Mutation: one bite of chromosome No
changing with the pm to produce If the population achieve the termination
new individual, pm= 0.1 criteria

Yes
(3) Genetic manipulation: Three basic operators
End
including selection, crossover, and mutation will
be started when individuals in groups in
accordance with fitness in step 2. Tendency to Figure 5. Flow chart of genetic algorithm.
1310 Junfeng Jing et al.

Table 1. Fabric detection rate.

Non-patterned colorful fabrics Patterned colorful fabrics


Detection results Hole Scratch Stain Thrum Hole Scratch Stain Thrum
Overall detection 10/10 10/10 10/10 10/10 8/8 8/8 8/8 8/8
100% 100% 100% 100% 100% 100% 100% 100%
True detection 10/10 10/10 9/10 10/10 8/8 7/8 7/8 8/8
100% 100% 90% 100% 100% 87.5% 87.5% 100%
False detection 0/10 0/10 1/10 0/10 0/8 1/8 1/8 0/8
0% 0% 10% 0% 0% 12.5% 12.5% 0%

N N
a defect-fre defective filtered binary a defect-fre defective filtered binary
m e image image image image m e image image image image
e e

a i

b j

c k

d l

e m

f n

g o

h p

Figure 6. The images: (a) and (b) are holes; (c) and (d) are Figure 7. The images: (i) and (j) are holes; (k) and (l) are
scratches; (e) and (f) are stains; (g) and (h) are thrums. Each scratches; (m) and (n) are stains; (o) and (p) are thrums.
column indicates the name of image, defect-free image,
defective image, filtered image, and binary image, respectively. qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
Im ðx; yÞ ¼ ½Gr ðx; yÞ Id ðx; yÞ2 : (23)
convolution formula expressed as Equation (22) could be Gr denotes the real part of Gabor function. Median
employed to filter images, but only the real part of filtering is combined to eliminate various noises after
Gabor function is adopted. convolution of Gr and Id.
The Journal of The Textile Institute 1311

Threshold segmentation in filtered images 255 if Bðx; yÞ  Te
outðx; yÞ ¼ : (26)
General methods for threshold segmentation have been 0 if Bðx; yÞ [ Te
proposed including simple threshold method, Otsu Due to different textures, quality of image and accuracy
method (Yang, 2003), and Bernsen method which is an of threshold selection, the noises will exist after image
adaptive method of dynamic threshold selection. segmentation. In this paper, watershed segmentation
Main steps of threshold segmentation are determining method is used to eliminate noise (Maiti, Desai, & Ray,
a threshold, comparing pixel value of the target picture 2000).
with the threshold value, and classifying pixels into the
defects and the background.
Selection of best threshold is crucial for the final test Experimental results
results. The threshold should separate the target and Experimental samples in this paper including 144
background as clear as possible and save the original colorful images with 72 flawless images and 72
information as much as possible. corresponding defective images. All 72 images are
General statistical histogram method is based on the divided into two kinds of patterned and non-patterned.
use of the whole image gray features with large Non-patterned images are classified into four types: hole,
calculation. The threshold segmentation method in this scratch, stain, thrum, each type including 10 images.
paper is divided into following steps: Patterned images are classified as the same way, but
each type consists of eight images. Overall detection is
(1) L is the gradation level of the flawless image A. summation of true detection and false detection. True
N is the number of pixels of A. Amax is the detection is the white area of final binary image matches
maximum pixel value and Amin is the minimum with the defective area. False detection is the white area
pixel value of A. Tf is the initial threshold value. of final binary image differs from the defect in that
Whole image region is divided by Tf. Calculate defective image. During non-patterned image detecting,
the average gray degree of G1 and G2, holes, scratches, and thrums can be accurately detected.
respectively, to generate a new threshold value Whereas the stains close to background, detection will
Tf1. be influenced after color space transformation. When
detecting patterned color fabric, holes and thrums have
Tf ¼ ðAmax þ Amin Þ=2; (24) been calculated with a higher detection rate. There are
some false detection of scratches and stains for their
Tf 1 ¼ ðg1 þ g2 Þ=2: (25) similar texture structure with background. Experiment
results indicate that the combination of CIE L*a*b*
Repeat this iteration until the deviation of two color space transformation and optimal 2-D Gabor filter
adjacent values is within the setting range, then calculate has a high detective accuracy rate. The fabric detection
the final threshold value Te. rate is demonstrated in Table 1.
(2) Dividing result of flaw image B is shown in the Parts of consequences of non-patterned images are
following formulation: shown in Figure 6 including defect-free images,
defective images, filtered images, and binary images.

Table 2. Parameters of Gabor filters of all images in Figure 4 σu = 1, k = 2.

Images name σv t1 t2 f θ
a 1.3891 172.8250 117.3998 14.9041 2.6953
b, c, and g 1.5057 138.9052 145.9759 9.8242 2.8226
d 1.2395 120.2346 182.6002 8.9410 2.7050
e 1.8348 181.4272 137.1457 7.7569 2.8324
f 1.8043 139.1984 152.0039 10.8022 3.0054
h 1.7849 135.7771 145.7221 12.6415 2.8207
i 1.8778 129.2278 150.7331 11.4007 2.6226
j and m 1.6256 118.8661 111.1437 8.4958 2.6502
k 1.3148 165.6891 180.5474 14.7217 3.0008
l 1.4018 121.8964 160.3128 10.0723 2.7101
n 1.1574 176.9306 162.6588 14.4443 3.1319
o 1.3040 132.9423 107.6246 8.9045 2.8673
p 1.2581 175.8553 190.6158 10.0139 2.8340
1312 Junfeng Jing et al.

The types of defects are holes, scratches, stains, and References


thrums. Chan, C. H., & Pang, G. K. H. (2000). Fabric defect detection
Detection results of patterned images with the same by Fourier analysis. IEEE Transactions on Industry
type defects as non-patterned images exhibits in Applications, 36, 1267–1276.
Cheng, H. D., Jiang, X. H., & Wang, J. (2002). Color image
Figure 7. First column is the name of image. Second
segmentation based on homogram thresholding and region
column consisted with defective-free images. Third merging. Pattern Recognition, 35, 373–393.
column indicates the corresponding defective image. Escofet, J., Navarro, R., & Milla’n, M. S. (1998). Detection of
Fourth column shows the image which has been filtered. local defects in textile webs using Gabor filters. SPIE
Fifth column is the final binary image. Digital Lib, 37, 2297–2307.
Hung, C.-C., & Chen, I.-C. (2001). Neural-fuzzy
When using genetic algorithm to select the optimal
classification for fabric defects. Textile Research Journal,
parameters of Gabor filter, the samples are flawless 71, 220–224.
images. The parameters are selected until Equation (20) Jain, A. K., & Vailaya, A. (1996). Image retrieval using color
in the minimum value. Flaw image will be filtered after and shape. Pattern Recognition, 29, 1233–1244.
the Gabor filters have been constructed. Table 2 given Jin, J., Yang, X., & Ding, J. (2001). An improved simple
genetic algorithm – Accelerating genetic algorithm. Systems
below shows the Gabor filter parameters of above-
Engineering Theory Practice, 4, 8–13.
described image corresponds to Figures 6 and 7. Jing, J., Zhang, H., & Li, P. (2013). Fabric image defect
detection based on method library. Journal of Donghua
University (Natural Science), 39, 650–655.
Conclusion Johnson, G. M., Song, X., Montag, E. D., Fairchild, M. D.
(2010). Derivation of a color space for image color
The method aimed to color space is proposed in this
difference measurement. Color Research & Application,
article to detect fabric defects. This algorithm does not 35, 387–400.
have any limitation with gray-level images and Kula, J., Tunak, M., & Linka, A. (2010). Inspection system of
illumination. Pixels features a* and b* are extracted fabric based on texture segmentation utilizing Gabor
from CIE L*a*b* color space which could decrease the filters. 7th International conference–TEXSCI, Czech
Republic, 6–8.
influence of lights and reflect different color objects.
Kumar, A. (2008). Computer-vision-based fabric defect
Then, 2-D Gabor filter with better de-noising capability detection: A survey. IEEE Transactions on Industrial
and optimization local characteristics could be Electronics, 50, 348–363.
constructed by these two features. Because that center Kumar, A., & Pang, G. K. H. (2002). Defect detection in
frequency, bandwidth, and direction of filter are difficult textured materials using Gabor filters. IEEE Transactions
on Industry Applications, 38, 425–440.
to confirm, an effective way to search the optimal
Li, H., Xie, S., & Yi, Z. (2005). Theory and application of
parameters is genetic algorithm. Objective function cE Genetic Algorithm. Mining & Metallurgy, 14, 87–90.
from Equation (20) is calculated from flawless image A. Li, P.-F., Wang, J., & Jing, J.-F. (2014). Application of
Parameters selection will achieve termination criteria improved back propagation algorithm in color difference
until the initial population reduced to zero. Optimal filter detection of fabric. Color Research & Application, 40,
311–317.
designed through flawless fabric image is used to filter
Maiti, N., B. Desai, & A. K. Ray. (2000). Application of
flaw image on which could segment the defective area mathematical morphology in measurement of droplet size
later. According to the obtained results, the proposed distribution in dropwise condensation. Thin Solid Films,
theory for diverse colorful fabric defects detection is 376, 16–25.
accurate, effective and could satisfy the condition of Mokji, M. M., & Abu Baker, S. A. R. (2007). Adaptive
thresholding based on coccurrence matrix edge information.
textile industry. Further work is needed to improve
Journal of Computers, 2, 44–52.
threshold approach to make division more flexible. Ruz, G. A., Estévez, P. A., & Perez, C. A. (2005). A neurofuzzy
color image segmentation method for wood surface defect
detection. Forest Products Journal, 55, 52–58.
Disclosure statement Smith, J. R. (1997). Integrated spatial and feature image
No potential conflict of interest was reported by the authors. systems: Retrieval, analysis and compression. New
Columbia University, PhD Thesis.
Tsai, D.-M., Lin, C.-P., & Huang, K.-T. (2005). Defect
detection in colored texture surfaces using Gabor filters.
Funding The Imaging Science Journal, 53, 27–37.
This work was supported by the Scientific Research Program Wu, Y.-Q., & Zhang, J.-K. (2010). Image Thresholding based
Funded by Natural Science Foundation of China [grant number on two-dimensional histogram θ–division and maximum.
61301276], Xi’an Polytechnic University Young Scholar Acta Automatica Sinica, 36, 634–643.
Backbone Supporting Plan, Discipline Construction Funds of Xie, X. (2008). A review of recent advances in surface defect
Xi’an Polytechnic University, Project supported by Xi’an detection using texture analysis techniques. Electronic
Polytechnic University Scientific Research Foundation for Letters on Computer Vision and Image Analysis, 7,
doctors [grant number BS1416]. 1–22.
The Journal of The Textile Institute 1313

Yang, B. (2003). Image segmentation of the genetic algorithms Yang, X., Pang, G., & Yung, N. (2005). Robust fabric defect
on the base of Otsu. Journal of Natural Science of Hunan detection and classification using multiple adaptive
Normal University, 26, 32–36. wavelets. IEE Proceedings - Vision, Image, and Signal
Yang, Q., & Jiang, J. (2001). Genetic algorithm used to Processing, 152, 715–723.
optimize the improvement of speed. Software, 12, 270–275. Zou, C., Wang, B., & Sun, Z. (2009). Survey on fabric defect
Yang, J., Liu, L., Jiang, T., & Fan Y. (2003). A modified detection based on machine vision. Journal of Tianjing
Gabor filter design method for fingerprint image Polytechnic University, 28, 78–82.
enhancement. Pattern Recognition Letters, 24, 1805–1817.

You might also like