Professional Documents
Culture Documents
I. INTRODUCTION
〈 f ( x)ψ p,q ( x)〉 = ∫ f ( x)ψ
−∞
p,q ( x)dx, (1)
The coefficients of the filter g(k) are conveniently As shown in figure 2, application of above
extracted from filter h(k) from the following four filters transforms a given image into a
(quadrature mirror) relation, representation having components in four sub-
bands. These four sub-bands are four subimages
that contain low frequency information
g (k ) = (−1) k h(1 − k ). (5) j +1
(approximation ω a ) and high frequency details
The discrete filters h(k) and g(k) are the quadrature
j +1 j +1
mirror filters (QMF), and can be used to implement in horizontal ( ω d 1 ), vertical ( ω d 2 ), and diagonal
a wavelet transform instead of explicitly using a j +1
wavelet function ( ω d 3 ) direction. Iterating this filtering process
(figure 2) to each of the given sub-bands yields
III. WAVELET PACKETS quadtree-structure decomposition. The subimages
in the same decomposition level provide the
The wavelet packets introduced by Coifman et al. multiple looks of the original image in different
[7] represents the generalization of the method of frequency bands.
multi-resolution decomposition. In pyramid-
structured wavelet transform, the wavelet IV. METHODOLOGY
decomposition is recursively applied to the low
frequency sub bands to generate the next level The wavelet packet decomposition of every
hierarchy. The key difference between the acquired image is performed. The Daubechies
traditional pyramid algorithm and the wavelet minimum-support least asymmetric wavelet, of
packet algorithm is that the recursive filter length 4, is used in this experiment.
decomposition is no longer applied to the low Daubechies wavelets are compactly supported and
frequency sub-bands. Instead, it is applied to any of are orthornomal, and are one of the most widely
the frequency bands based on some criterion, used wavelets. The coefficients of QMF’s, i.e. g(k)
leading to quadtree structure decomposition. and h(k), are show in table 1. Full wavelet packet
decomposition at every scale will produce a large
The concept of wavelet packet bases has number of coefficients. Therefore, only the
been generalized to obtain multiresolution dominant frequency channels based on Shannon’s
decomposition of an image. A given function, say entropy criterion are used. The best-basis wavelet
Θ 0 , can be used to generate a library of wavelet packet tree is computed as follows [7]-[8]:
packet basis functions {Θ } q q∈N as follows: (i) Decompose a given image into four subimages
by convolution and decimation with a pair of
Θ 2 q ( x ) = 2 ∑ h( k )Θ q ( 2 x − k ), QMF’s, as shown in figure 2. The given image
k ( 6) can be viewed as parent node and subimages as
Θ 2 q +1 ( x ) = 2 ∑ g ( k )Θ q ( 2 x − k ), the children nodes of a tree.
i
k (ii) Compute the Shannon’s entropy ( ε ) of the
where the function Θ 0 and Θ1 can be identified parent and children of this tree using equation
(8).
with the scaling function φ and the mother wavelet
(iii) If the sum of the entropy of four children
ψ , respectively. Equation (6) uniquely defines a nodes is higher than the entropy of parent node,
library of wavelet packet bases as a set of then decomposition for this parent node is
orthonormal basis functions of the form aborted.
Θ q ( 2 l x − k ) . Each element in the library is (iv) If the sum of entropy of children nodes is
lower than entropy of parent node, then above
determined by a subset of indices l, k, and q, which decomposition is further applied to each of the
corresponds to the scaling, dilation, and oscillation children nodes.
parameters, respectively. A set of 2-D wavelet
packet basis functions can be obtained from the In this work, best-basis wavelet packet
tensor product of two separable 1-D wavelet basis decomposition of every image at three resolution
functions in the horizontal and vertical directions. levels is used. The wavelet packet coefficients from
The corresponding 2-D filters in this set can be each of the sub-images are used for the feature
grouped as: extraction.
248
3
where ω i (m, n) denotes the wavelet coefficient In this paper a new approach for the defect
identification using wavelet packets has been
i i
matrix, µ is the mean, σ is the standard deviation, investigated. The experimental results in table 2
show that the 12 fabric samples with defect, out of
ε i is the entropy, α i is the kurtosis, and ß i is the 16 used for testing, have been successfully detected
skewness of the wavelet coefficient matrix for each (75 %). The defect detection results for some of the
of the ith channel. Five dominant values of each of fabric defects with very subtle intensity variations,
these four features and their location (integer value) e.g. in figure 5(a) and 5(g), were excellent (100 %
on the best-basis wavelet packet tree are used as detection). The results shown in this paper are
features vector for every acquired image. Thus 40 promising and suggest its application for automated
features characterize every image. Further, the KL visual inspection.
transform is used to reduce the dimension of feature
vector. REFERENCES
B. Neural Net classifier 1. Ajay Kumar and Grantham Pang, “Defect detection
in textured materials using Gabor filters,” Proc. 35th
A two layer feed-forward neural network with IAS Annual Meeting, Rome (Italy), 8-12 Oct. 2000.
20 input nodes and one output node is used to 2. H. Sari-Sarraf and J. S. Goddard, “Vision systems
classify feature vectors in one of the two classes. for on-loom fabric inspection,” IEEE Trans. Ind.
The hyperbolic tangent sigmoid activation function Appl., vol. 35, pp. 1252-1259, Nov-Dec. 1999.
with gradient descent training algorithm is 3. T. Randen and J. H. Husøy, “Multichannel filtering
for image texture segmentation,” Opt. Eng., vol. 33,
employed to train the neural network. The values
no. 8, pp. 2617-2625, Aug. 1994
–1 and 1 corresponding to samples with defect and
4. T. Chang and C.C. Jay Kuo, “Texture analysis and
without defect were used for training. classification with tree-stuctured wavelet
transform,” IEEE Trans. Image Process., vol. 2, no.
V. EXPERIMENT AND RESULTS 4, pp. 429-441, Oct. 1993.
5. I. Daubechies, “Orthonormal bases of compactly
Several real fabric samples were gathered from supported wavelets,” Communications on Pure and
textile loom and were divided into two classes; (i) Applied Mathematics, vol. 35, pp. 72-98, Nov. 1988.
with defect and (ii) without defect. Images of these 6. S. G. Mallat, “A theory for multiresolution signal
fabric samples with 256 gray levels were acquired decomposition: the wavelet representation,” IEEE
Trans. Patt. Anal. Machine Intell., vol. 11, pp. 674-
under backlighting and covered 1.28 × 1.28 inch2 693, Jul. 1989.
area of fabric. These images were digitized into 256 7. R.R. Coifman and M.V. Wickerhauser, “Entropy-
× 256 pixels. Figure 3 shows the best basis three based algorithms for best basis selection,” IEEE
level wavelet packet decomposition of fabric Trans. Inf. Theory, vol. 38, no. 2, pp. 713-718, Feb.
sample (figure 5.a) with defect mispick. The 1992.
quadtree representation of this decomposition with 8. M. Lee and C. Pun, “Texture classification using
the respective entropy values at the nodes is shown dominant wavelet energy features,” Proc.4th IEEE
in figure 4. The full wavelet packet decomposition Southwest Symp. Image analysis and Interpretation,
pp. 301-304, 2000.
of this image requires 64 nodes as compared to 31 9. X. Tang and W. K. Stewart, “Optical and sonar
nodes used in this work. Figure 5 shows images image classification: wavelet packet transform vs
with 8 different categories of fabric defect used in Fourier transform,” Comput. Vis. & Image Under.,
this experiment. For every image the dimension of vol. 79, pp. 25-46, 2000.
249
4
Class 1
Defect
Image under Best basis w avelet Extraction of shift invarient Dimension reduction NeuralNetw ork
Inspection packet decomposition dominant features (KL transform) Classifier
Class 2
No Defect
Figure 1: Block Diagram of the proposed inspection system for surface defects.
250
5
j +1
h (k ) 1 2 ωa
h (k ) 2 1 (columns)
j +1
(row s) g (k ) 1 2 ω d1
ω aj (columns)
j +1
h(k ) 1 2 ω d2
g (k ) 2 1 (columns)
(row s) g (k ) 1 2
j +1
ω d3
(columns)
2 1 Downsample columns
1 2 Downsample rows
-6.7e+09
-7.5e+09 -2.8e+07 -6.4e+07 -1.0e+07 -1.4e+07 -2.6e+06 -5.6e+07 -7.0e+06 -2.4e+05 -1.1e+06
-4.6e+05
-4.1e+05
Figure 3: The best basis wavelet packet decomposition Figure 4: The Quadtree structure for best basis wavelet
for fabric sample with defect mispick (figure 5.a) packet decomposition shown in figure 3.
251