Beruflich Dokumente
Kultur Dokumente
Abstract—This research proposes a novel approach that cause much greater harms and impact, when they appear on
applies DCT based enhancement for the detection of pinhole high-tech products than on industrial parts. Although pinhole
defects on SBL chips. A two-stage decomposition procedure is defects occupy only a small area on the product surface, they
proposed to extract an odd-odd frequency matrix after a digital could affect the appearance, functions and security of the
image has been transformed to DCT domain. The cumulative
product.
sum algorithm is then proposed to detect the transition points of
the gentle curves plotted from the odd-odd frequency matrix. This research uses disk-like Surface Barrier Layer (SBL)
After the transition points are determined, the best radius of the chips as the testing samples. SBL chips are ceramics
cutting sector is computed and the high-pass filtering operation capacitors which are one kind of electronic passive
is implemented. The filtered image is then inversed and components commonly used in many electronic appliances.
transformed back to the spatial domain. Finally, the restored With a width of 0.005 mm and a diameter of 7 mm, SBL chips
image is segmented by an entropy method and some defect
are small in size, light in weight, and suitable for mass and
features are calculated. Experimental results show the proposed
pinhole defect detection method can reach the pinhole defect large-lot-sized production. Pinhole defects often occur on the
detection rate by 90% and decrease the deviation of the defect surfaces of SBL chips and occupy only an extremely small
areas by 90%. area. For a SBL chip image of 256 x 256 pixels, the size of its
pinhole defect falls within the range of 1~15 pixels and
I. INTRODUCTION occupies 0.0015%Д0.0229% of the image area. Pinhole
374
M 1N 1 axis Du#,10 ~ ( N 1) or D0#~1 ( M 1),v
ª (2 x 1)uS º ª (2 y 1)vS º
d x, y ¦ ¦ U (u) U (v) Du ,v cos« » cos« » (2)
¬ 2M ¼ ¬ 2N ¼ °°
u 0v 0 where ®u 0, 1, 2, ..., M 1 .
where, °v 0, 1, 2, ..., N 1
1 1 u 0, 1, 2, ..., M 1 °¯
° , u 0 ° , v 0 °v 0, 1, 2, ..., N 1
U (u ) ®
° M
,
° N
U (v ) ® ,
°
® The magnitude of frequency components far away from the
° 2 ° 2 ° x 0, 1, 2, ..., M 1
° M , u 1, 2, 3, ..., M 1
¯
° N,
¯
v 1, 2, 3, ..., N 1 °¯ y 0, 1, 2, ..., N 1 top left origin in the DCT domain falls rapidly and
approximates zero. Because most image information gathers
Based on the fluctuations of the energy trend and the around the DC location, the waveforms fluctuate most widely
properties of the low and high frequency zones, we design a there. And, the waveforms of G*(D#10~(M-1),v) remain more and
high-pass sector filter centered at the origin of the 2-D DCT more stable as the values of the u axis increase. The same
spectrum to filter out the major frequency components of the phenomenon also happens to the waveform plots of
target. An adequate radius is first determined for the sector * #1
G (D u,0~(N-1)).
filter in the spectrum space. Frequency components (low The complexity of the 2-D DCT domain makes it difficult
frequencies) within the radius of the sector filter are then set to comprehend. But, by applying Eq. (3), we can decompose
at zero, and those outside the filter (medium and high a 2-D DCT domain into 1-D waveform matrices, in which
frequencies) are retained. Finally, the inverse DCT is used to systematic and regular patterns can be found. Hence, to take
enhance the tiny pinhole defects. Fig. 1 demonstrates a 2-D advantage of decomposition and dig out more useful
DCT spectrum diagram with a high-pass sector filter. information, this research further decomposes the 2-D DCT
domain to detect the changes of frequency trends.
C. Decomposition of DCT domain
The waveforms of G*(D#10~(M-1),v) of 2-D DCT frequency
components fluctuate as they approach the DC location. And,
the closer the waveforms are to the DC location, the more
widely they fluctuate. We decide to further decompose the
2-D DCT domain D#1u,v into two matrices: the odd matrix
DOu,v' and the even matrix DEu,v', whose definitions are given
below:
Fig. 1. Adding a high-pass sector filter into a 2-D DCT spectrum diagram. u 0, 1, 2, ..., M 1
where ® .
As the high-pass sector filter is derived from the decreasing ¯v c 0, 1, 2, ..., ( N 2) 1
energy trend of the DCT spectrum diagram, conducting a Based on the definitions of the odd and even frequency
proper analysis on the fluctuation trend of the energy matrices (Eqs. (4) and (5)), we use the waveform plots
spectrum carries great importance. It takes little effort to * *
G (DO0~(M-1),v') and G (DE0~(M-1),v') to examine their respective
observe the energy trend from 2-D spectrum diagrams. But, a 1-D waveforms. We find some waveform regularities among
formal algorithm deduction must be carefully developed if the frequency fluctuations in the decomposed odd and even
the frequency spectrum diagram is to be analyzed from an frequency matrices. Taking the waveform plots G*(DO0,v')
objective and theoretic view. To construct the analysis steps and G*(DE0,v') as examples, we present the waveform plots of
of the DCT spectrum, this research analyzes the 2-D DCT D#10,vΕDO0,v' and DE0,v' in Fig. 2.
spectrum and proposes a two-stage decomposition procedure. As shown in Fig. 2, after D#1u,v is decomposed into DOu,v'
Due to the difficulty of analyzing the frequency fluctuation and DEu,v', the frequencies of the waveform plots G*(DO0,v')
trend in a 3-D spectrum diagram, this research decomposes a and G*(DE0,v') become more stable and steady; they do not
2-D DCT spectrum into 1-D frequency arrays to discover the fluctuate as much as before the decomposition. This
regular patterns of the spectrum in the frequency domain. phenomenon occurs not only in G*(DO0,v') and G*(DE0,v'), but
B. Frequency trend analysis of DCT domain also in waveform plots G*(DO1~(M-1),v') and G*(DE1~(M-1),v').
These occurrences lead to the conclusion that the coefficients
Let G* be a waveform sign of 1-D frequency arrays and
of the DCT domain have a lot to do with whether the basic
axis be a 1-D coordinate vector. Then, G*(axis) is a
cosine waveform matrices have complete or incomplete
waveform plot along the axis coordinate and can be denoted
periods. Examining the waveforms of G*(DOu,0~(N/2)-1) and
as: *
G (DEu,0~(N/2)-1), we find no similar phenomenon. The
G * axis Du#,1v (3) frequencies do not become more stable or steady because the
u axis of the DCT frequency matrix has not been decomposed.
375
Therefore, the original frequency matrix D#1u,v can be further in Fig. 3. The purpose of the first stage is to simplify the
decomposed into odd-odd DOOu',v', odd-even DOEu',v', matrices and use waveform plot G* to examine how the
even-odd DEOu',v', and even-even DEEu',v' matrices under the frequencies of the simplified matrices fluctuate to identify the
alternating decomposition of odd and even parts. These four main properties of the 2-D DCT domain. Then, according to
matrices can be denoted as follows, respectively: the properties identified, three frequency matrices that
DOO u ',v ' D 2#u1 ', 2 v ' (6) represent best how the frequencies fluctuate are extracted
from the 1-D arrays. Take for example a 2-D DCT matrix
DOE u ',v ' D 2#u1 ', 2 v '1 (7) with size M by M. After the first stage of decomposition,
there will be only (M x 3) sets of 1-D frequency arrays left.
DEO u ',v ' D 2#u1 '1, 2v ' (8)
u ' 0, 1, 2, ..., ( M 2) 1
where ® .
¯v' 0, 1, 2, ..., ( N 2) 1
˔ʳ̇˸̆̇˼́˺ʳ˦˕˟ʳ˼̀˴˺˸ Spectrum analysis of
2-D arrays
Frequency
Power
u
(a) 3-D spectrum diagram of DCT domain
-6113 1082 5225 184 2125 59 1133 -17 628 0
v
42 28 48 15 -29 8 -25 1 -27
2209 -105 -1718 -10 -1498 203 31 208 557 (a) G*(v=0) axis spectrum diagram of D u,v
Frequency
48 4 29 -33 -37 -7 -2 -1 23
58 4 -1 -15 -35 14 9 15 14
657 -38 - 996 97 564 19 486 -139 -311 -6113 1082 5225 184 2125 59 1133 - 17 628 0
v'=0 127
(b) Waveform plot G*(DO0,v')
(c
˄ˀ˗ʳ˹̅˸̄̈˸́˶̌ʳ˴̅̅˴̌ʳ Du, v=0ʳ˼̆ʳ˸̋̇̅˴˶̇˸˷ʳ˴˿̂́˺ʳ ऎ ̈ʳ
(b)
)
˴̋˼̆
0 0
Frequency
(b) G*(u=0) axis spectrum diagram of Du,v (c) G*(DA) axis spectrum diagram of DAw
v'=0 * 127
(c) Waveform plot G (DE0,v') -6113 740 5433 42 2209 48 1193 58 657 0 -6113 -62 838 15 -1498 -7 916 15 -311 0
Fig. 2. Three waveform plots of the D#10,v, DO0,v', and DE0,v'. ˄ˀ˗ʳ˹̅˸̄̈˸́˶̌ʳ˴̅̅˴̌ʳD u=0, vʳ˼̆ʳ˸̋̇̅˴˶̇˸˷ʳ˴˿̂́˺ʳ ̉ʳ ˄ˀ˗ʳ˹̅˸̄̈˸́˶̌ʳ˴̅̅˴̌ʳ DAwʳ˼̆ʳ˸̋̇̅˴˶̇˸˷ʳ˴˿̂́˺ʳ
˴̋˼̆ ˷˼˴˺̂́˴˿ʳ˴̋˼̆
376
deviations from the target value µ0 that are greater than K, method.
with both quantities reset to zero on becoming negative. If
F. Image restoration and defect segmentation
either Cs+ or Cs- exceed the decision interval H, the process is
considered to be out-of-control. A reasonable value for H is Fig. 6 shows the whole process of the proposed DCT based
four or five times the process standard deviation ı [17]. enhancement approach for pinhole defect detection on SBL
chips. A testing image with pinhole defects which are
E. Reverse order CUSUM method (R-CUSUM) difficult to detect in the spatial domain is processed by the
To detect the transition points in the gentle curves, this proposed DCT high-pass filtering operation. Then, taking the
research proposes the CUSUM algorithm, which is inverse DCT of the filtered result, we can have the tiny
commonly used in statistical process control to detect the defects easily segmented by the entropy method.
slight shift or deviation from the normal production process.
Generally, the CUSUM method processes data, that are ʻʳ˃ʿʳ˃ʳʼ
Pө
smooth in the beginning periods and that deviate slightly in u'
the later periods. However, since the curves fluctuate sharply
in the beginning periods and then turn smooth in the other
periods, our algorithm applies the reverse order CUSUM
Ѕ˅ PԀ PԀ
method, which processes data in the reverse direction.
The data sequence should be arranged in a reverse order PӪ
before the reverse-order CUSUM method is applied.
ˇˈ̓
According to the definitions of the CUSUM method (Eqs. (13)
and (14)), we assume Cz+ and Cz- as the one-sided upper and
w'
v'
lower cusums of the sequence Xz, respectively. We must
Fig. 4. A sector radius diagram obtained from transformation of the three
substitute the data of the three decomposed frequency
principal frequency arrays.
matrices DOOu',0, DOO0,v', and DAOt' into the sequence Xz*,
respectively, before applying the proposed reverse-order ˄˃˃
P 0*=0.945
CUSUM method. Then, from the situations of being within
ˋ˃
Frequency
ˉ˃
V *=6.342
or beyond a decision interval H, we determine the status of ˇ˃
ˋ˃
frequency matrix. Hence, this research sets the DC value at ˄ ˄˄ ˅˄ ˆ˄ ˇ˄ ˈ˄ ˉ˄ ˊ˄ ˋ˄ ˌ˄ ˄˃˄ ˄˄˄ ˄˅˄ v'
˄˃
V *=3.538
ˈ
R* 2 AVG ( PD , PE , PZ ) 1 (15)
y v
Uftujoh!
where AVG ( PD , PE , PZ ) average( PD , PE , 2 PZ ) . jnbhf! FDCT R-CUSUM
dx,y
this point comes from the diagonal matrix DAOt' and must be Entropy
377
IV. IMPLEMENTATION AND EXPERIMENTS the ranges of the defects and a color analysis could be
In this section, the precision and rotation-invariant conducted to strengthen the detection accuracy in the future.
properties for the proposed approach to inspect the surface This color analysis step can help increase the detection
pinhole defects of the SBL chips are evaluated. Real SBL accuracy rate, reduce type I and type II errors, and decrease
chips are used as testing samples in this section. The image is detection processing time. If the proposed approach can be
256 x 256 pixels wide with 8-bit gray levels. In the implemented in a single integrated circuit, the processing
experiments with large samples, 120 testing SBL images with time will be significantly decreased to meet the requests of
size 256 x 256 pixels are tested for detecting pinhole defects. on-line automatic inspection.
In the testing images, 100 images are defective chips with one
or more than one pinhole defects and the other twenty images REFERENCES
are regular chips without any pinhole defect. [1] Sang-Yeon Kim, Dongil Han, Seung-Jong Choi and Jong-Seok Park,
“Image contrast enhancement based on the piecewise-linear
In the processing time of the proposed approach, the time approximation of CDF,” IEEE Transactions on Consumer Electronics,
of taking forward and inverse DCT needs about 4 seconds on Vol. 45, No. 3, pp.828-834, 1999.
average without doing any parameter optimization in the [2] Sari-Sarraf Hamed, and J. S. Goddard, “Robust defect segmentation in
woven fabrics,” Proceedings of Computer Vision and Pattern
transformation. This processing time will be significantly
Recognition, pp.938-944, 1998.
shortened after the parameter optimization is conducted and [3] Y. T. Kim, “Contrast enhancement using brightness preserving
the DCT implemented in a single integrated circuit. If we do bi-histogram equalization,” IEEE Transactions on Consumer
not count the time of taking forward and inverse DCT, the Electronics, Vol. 43, pp.1-8, 1997.
[4] Mark A. Ruzon and Carlo Tomasi, “Edge, junction, and corner
time of taking the R-CUSUM method is less than 10 ms and detection using color distributions,” IEEE Transactions on Pattern
the processing time of each method is very time-saving. Analysis and Machine Intelligence, Vol. 23, No. 11, pp.1281-1295,
Therefore, to compare the performance of the proposed 2001.
[5] Wen-Yen Wu, Mao-Jiun J. Wang and Chih-Ming Liu, “Automated
method, the experimental results are shown in Table I based inspection of printed circuit boards through machine vision,”
on the number of total real defects. The proposed pinhole Computers in Industry, Vol. 28, pp.103-111, 1996.
defect detection method can reach the pinhole defect [6] Zhenghong Lee, “Thresholding implemented in the frequency domain,”
IEEE Transactions on Image Processing, Vol. 10, No. 5, pp.708-714,
detection rate by 90% and decrease the deviation of the defect 2001.
areas by 90%. [7] M. Tico., P. Kuosmanen and J. Saarinen, “Wavelet domain features for
fingerprint recognition,” Electronics Letters, Vol. 37, No. 1, pp.21-22,
TABLE I 2001.
AN EXPERIMENTAL RESULT ANALYSIS TABLE [8] D. M. Tsai and C. Y. Hsieh, “Automated surface inspection for
(BASED ON THE NUMBER OF TOTAL REAL DEFECTS) directional textures,” Image and Vision Computing, Vol. 18, pp.49-62,
1999.
Method R-CUSUM
[9] Du-Ming Tsai and Tse-Yun Huang, “Automated surface inspection for
Number of total real defects 114 statistical textures,” Image and Vision Computing, Vol. 21, pp.307-323,
Number of correctly detected defects 102 2003.
[10] Wen-Hsiung Chen, C. Harrison Smith and S.C. Fralick, “A fast
Number of erroneously detected defects 12 computational algorithm for the discrete cosine transform,” IEEE
Transactions on Communications, Vol. 25, No. 9, pp.1004-1009, 1977.
Number of missing defects 12 [11] Nam Ik Cho and Sang Uk Lee, “Fast algorithm and implementation of
Type I error (Į) 0.1 2-D discrete cosine transform,” IEEE Transactions on Circuits and
Systems, Vol. 38, No. 3, pp.297-305, 1991.
Type II error (ȕ) 10.526%
[12] Rafael C Gonzalez. and Richard E. Woods, Digital Image Processing,
Area deviation rate of detected defects 10.836% 2nd Ed., Prentice Hall, 2002.
[13] Biao Chen, Shahram Latifi and Junichi Kanai, “Edge enhancement of
remote sensing image data in the DCT domain,” Image and Vision
V. CONCLUSION Computing, Vol. 17, No. 12, pp.913-921, 1999.
This research proposes a novel approach that applies DCT [14] Yu Zhong and Anil K. Jain, “Object localization using color, texture
and shape,” Pattern Recognition, Vol. 33, pp.671-684, 2000.
based enhancement for the detection of pinhole defects on [15] Chong-Wah Ngo, Ting-Chuen Pong and Roland T. Chin, “Exploiting
SBL chips. Real SBL chips are used as testing samples and image indexing techniques in DCT domain,” Pattern Recognition, Vol.
experiments with large samples are conducted in a practical 34, pp.1841-1851, 2001.
[16] N. Ahmed, T. Natarajan, and K. R. Rao, “Discrete cosine transform,”
inspection environment to verify the performance of the
IEEE Transactions on Computer, Vol. 23, No. 1, pp.90-93, 1974.
proposed approach. Experimental results show that the [17] Douglas C. Montgomery, Introduction to Statistical Quality Control,
proposed method is precise and rotation-invariant. Besides, 4th Ed., John Wiley & Sons, pp.406-419, 2001.
the proposed passive component inspection algorithm is easy
to implement and does not require a primitive-matching
process. Therefore, the proposed approach can be further
applied to detect surface tiny defects of various types of
electronic components that are similar to SBL chips.
While spatial domain techniques can hardly detect defects
of such small sizes, the proposed approach is able to locate
378