Proceedings of the International MultiConference of Engineers and Computer Scientists 2015 Vol I, IMECS 2015, March 18 - 20, 2015, Hong Kong
Application of YIQ Color Model for Color Pattern Recognition with Shifted and Rotated Training Images in Optoelectronic Correlator
Yachu Hsieh, Chulung Chen*, Hsinyi Chen, Yiting Tsai
is deviations from purple-luminance to chartreuseβluminance. AbstractβThis research uses multi-channel system for It transform RGB source into one luminance and two chromatic pattern recognition, which reduces the size chrominance components by linear conversion. The requirement of liquid crystal device. We transform a transformation from RGB to YIQ is shown below. color image into three YIQ color space components. Via
the utilization of Mach-Zehnder joint transform 0.299 0.587 0.114 correlator, the minimum average correlation energy = 0.596 0.275 0.321 . (1) method, shifted training images, and computation, we ππ 0.212 0.523 0.311 π π will obtain the reference functions by the minimum οΏ½ πΌπΌ οΏ½ οΏ½ β β οΏ½ οΏ½πΊπΊοΏ½
sidelobe energy technique and record the relevant data. It ππ β π΅π΅ is found that the sidelobe energy drops substantially. The structure of optical correlator [12,13] is shown in Fig. 1. A laser is used to be the light source. In the beginning, we Index TermsβMinimum average correlation energy, training define the position functions of reference and target images image, YIQ color space, Mach-Zehnder joint transform on the two input planes. There are three grayscale images hy, correlator, liquid crystal spatial light modulator. hi and hq, corresponding to the y, i and q channels of the reference image. Analogously, another three grayscale images ty, ti and tq, are matched to the Y, I and Q channels of I. INTRODUCTION the target image. The arrangement of input plane in Real time joint transform correlator (JTC) [1] is an RLCSLM1 and RLCSLM2 are shown in Figs. 2 and 3. The attractive tool for pattern recognition. It can perform reference and target image channels placed on the RLCSLM1 correlation of two functions to realize the aim. Later, and RLCSLM2 respectively can be expressed as non-zero order JTC (NOJTC) [2-4] was utilized to remove the zero order term. High correlator peak intensity and small 3 sidelobe energy were obtained. Chen et al. [5-10] utilized the β m ( , ++= aydxhh m ), (2) minimum average correlation energy (MACE) method based m=1 on Lagrangian method to obtain the reference function. The Mach-Zehnder JTC (MZJTC) [11,12] can accomplish the and removed zero term processing in only one step directly. In this paper, the sytem was based on MZJTC, we obtain the 3 reference functions by cross correlation optimization (), +β= aydxtt . (3) technique and find the minimum sidelobe energy by shifted β n n n=1 training images. In the paper, we will use MACE as well as shifted training images [13,14] to study the performance for Here d is the distance of either the reference image or target image recognition in the MZJTC system. image channel away from the horizontal axis; h represents the position function of reference image at RLCSLM1; t II. ANALYSIS represents the position function of target image at RLCSLM2. RGB color model [15-17] is used widely and is easy to After coming out of RLCSLM1 and RLCSLM2, the two understand. It consists of the red, green and blue respectively. collimated light will take the information and be Fourier However, RGB color model is not the most suitable color transformed by Fourier lens (FLs). Both lights encounter model on many applications. In this research, the system is fractional reflection and transmission at BS3. Joint transform based on YIQ color model [18]. Y means luminance that power spectrums (JTPSs) of two light fields will be detected represents the achromatic (black and white) image without by CCD1 and CCD2. The summation of spectra on CCD1 is any color. I and Q are the two chrominance components. I is deviations from orange-luminance to cyan-luminance and Q ( ) ( , ) = 3 ( , ) Manuscript received July 29, 2013.. This work was supported by the ππ2ππ ππππ+πππππ£π£ 1 1 ππ National Science Council in Taiwan, under Grant No. NSC 102-2221-E-155 πΈπΈ π’π’ π£π£ + οΏ½ ππ β π»π» (π’π’ ,π£π£ )β ππ ( ). (4) -082- MY2 ππ=1 3 βππ2ππ ππππβπππππ£π£ Yachu Hsieh is with the institute of Photonics Engineering, Yuan Ze ππ=1 1 ππ university, 135 Yung Tung Road, Taoyuan 32026, Taiwan. On the other hand, theβ summationπΎπΎ β ππ π’π’ ofπ£π£ spectraβ ππ on CCD2 is Chulung Chen is with the institute of Photonics Engineering, Yuan Ze university, 135 Yung Tung Road, Taoyuan 32026, Taiwan. (Corresponding author. Phone: +886-3-4638800 ext 7513; Fax: +886-3-4639355; E-mail: [email protected]).
ISBN: 978-988-19253-2-9 IMECS 2015 ISSN: 2078-0958 (Print); ISSN: 2078-0966 (Online) Proceedings of the International MultiConference of Engineers and Computer Scientists 2015 Vol I, IMECS 2015, March 18 - 20, 2015, Hong Kong
64 Γ 64 pixels. First, we transform a color image into three ( ) ( , ) = 3 ( , ) YIQ color space components. It is shown in Fig. 5. Then, ππ2ππ ππππ+πππππ£π£ Β° Β° 2 1 ππ three components are rotated angles from 5 to 360 (in step πΈπΈ +π’π’ π£π£ οΏ½ πΎπΎ (β π»π», ) π’π’ π£π£ β ππ( ). (5) ππ=1 of 5Β°) and shifted (x = -5 to x = 5 in the horizontal direction, 3 βππ2ππ ππππβπππππ£π£ the interval is 1 pixel, y = -5 to y = 5 in the vertical direction, βππ=1 ππ2 β ππππ π’π’ π£π£ β ππ We connect the outputs of the CCD1 and CCD2 to the the interval is 1 pixel) at the same time. The reference images electronic subtractor (ES) to remove the zero order term as are synthesized by the training images. Subsequently, we follows. utilize training set images with different rotation angles to be the target images for the image recognition test. We obtain ( , ) = | ( , )| | ( , )| the reference functions of the minimum sidelobe energy and = (| | | | ) 2 (2 , ) ( , ) record the relevant data. It is found that the sidelobe energy πΌπΌπ π π’π’ π£π£ πΈπΈ2 π’π’ π£π£ β πΈπΈ1 π’π’ π£π£ 2 2 3 3 β β² drops substantially. The desired peak can be detected and 1 1 ππ=1 β² ππ πΎπΎ β ππ β β βππ =1 π»π» π’π’ π£π£ π»π» ππ π’π’ π£π£ β sidelobes are diminished. One example is shown in Fig. 6. In ππ2πποΏ½π§π§ππβπ§π§ππβ²οΏ½π£π£ contrast with the unshifted training images, the sidelobe +(| | | | ( , ) ( , ) ππ ) energy for shifted training images decreases by 60.9%, as 3 ( 2 ) 2 3 β² β β² shown in Fig. 7. We also record the results of PSR for each ππ2 β πΎπΎ2 β β ππ=1 β ππ =1 ππ ππ π’π’ π£π£ ππ ππ π’π’ π£π£ β (6) ππ2ππ π§π§ππβπ§π§ππβ² π£π£ target image and compare the results of between original and ππ+( ) ( , ) ( , ) shifted. Average PSR value increases by 1.22 times, as ( β ) β 3 3 β shown in Fig. 8. 2[ 1 1 2 ] ππ=1 ππ=1 ππ ππ ππ πΎπΎ β ππ πΎπΎ β β β π»π» π’π’ π£π£ ππ π’π’ π£π£ β ππ ππ ππ2ππ π§π§ βπ§π§ π£π£+2ππππ ( ) ( ) ππ+( ) , , β[( ) β ] 3 3 β IV. CONCLUSION ππ2 πΎπΎ1 β ππ1πΎπΎ2 β β ππ=1 βππ=1 π»π» ππ π’π’ π£π£ ππππ π’π’ π£π£ β βππ2ππ π§π§ππβπ§π§ππ π£π£+2ππππ In this work, via the utilization of MZJTC, the minimum ππ average correlation energy method, shifted training images, Using the Stokes relations from optics knowledge, we obtain and computation. This system could remove the zero order the equation = γ| | = | | and | | = | |, then term in only one step. We will obtain the reference functions rewrite the Eq. (7) as of the minimum sidelobe energy. The result in the thesis are 2 1 1 1 2 2 πΎπΎ βπΎπΎ πΎπΎ ππ πΎπΎ ππ obviously shown and indicate ideal performance as anticipated. = 2| | 3 3 | ( , )|| ( , )| β β πΌπΌπ π {2 [ππ(2πΎπΎ1 β ππ)1 πΎπΎ+2 2β οΏ½] + οΏ½+π»π»ππ (π’π’ ,π£π£ ) ππππ π’π’( π£π£, )β, (7) ππ=1 ππ=1 ππ ππ ππππππ ππ ππππ β ππππ π£π£ ππππ ππ πππ»π» π’π’ π£π£ β ππππ π’π’ π£π£ where is the phase of , and denote the phase of | ( , )| and β| ( β, )| , respectively. The ππ ππ2πΎπΎ1 β ππ1 πΎπΎ2 πππ»π»ππ ππππππ zero order term is removed. Is is called Mach-Zehnder JTPS ππ ππ (MZJTPS). Thenπ»π» weπ’π’ senπ£π£ d the MZJTPSππ π’π’ π£π£ to RLCSLM3. With inverse Fourier transform by FL3, the cross-correlation output will be obtained in CCD3 as follows:
( ) ( , ) = 3 3 ( , ) ( + 2 , + ) βππππ ππππ ππ ππ +ππ π₯π₯ π¦π¦ οΏ½ οΏ½ ππ ( ,βπ₯π₯) βπ¦π¦(β¨πΏπΏ π₯π₯2 , ππ+π¦π¦ βππ ππ) (ππ ). (8) ππ=1 ππ=1 3 3 β ππππ βππ=1 βππ=1 ππ ππππ π₯π₯ π¦π¦ β¨πΏπΏ π₯π₯ β ππ π¦π¦ ππππ β ππππ ππ
Here the symbols and γ denote correlation and Fig.1 The structure of MZJTC system. convolution operations, respectively. β¨
III. NUMERICAL RESULTS
In this research, we choose a colorful fish pattern to be our original color target image, as shown in Fig. 4. The image has
ISBN: 978-988-19253-2-9 IMECS 2015 ISSN: 2078-0958 (Print); ISSN: 2078-0966 (Online) Proceedings of the International MultiConference of Engineers and Computer Scientists 2015 Vol I, IMECS 2015, March 18 - 20, 2015, Hong Kong
Fig. 2 Arrangement of RLCSLM1 for reference channels Fig. 3 Arrangement of RLCSLM1 for target channels
Fig.4 The original target image.
Fig.5 Y (left), I (middle) and Q (right) components of target image.
Fig.6 Example of comparison of the sidelobes between the original and improved training data base (correlation peak is removed for ease of observation)
ISBN: 978-988-19253-2-9 IMECS 2015 ISSN: 2078-0958 (Print); ISSN: 2078-0966 (Online) Proceedings of the International MultiConference of Engineers and Computer Scientists 2015 Vol I, IMECS 2015, March 18 - 20, 2015, Hong Kong
100 transform correlators,β Opt. Commun., vol. 182, pp. 90 91-94, 2000 80 [7] C. Chen, βCorrelation peak variance minimization for
nonzero order joint transform correlators in noise,β 70 Microw. Opt. Techn. Lett., vol. 29(3), pp. 190-192, 60 2001. 50 [8] C. Chen, J. Fang, S. Yin, βOptimized synthetic aperture 40 radar image detection with nonzero order joint transform 30 correlators,β Microw. Opt. Techn. Lett., vol. 26(5), pp. 20 312-316, 2000.
Sidelobe energy 10 [9] C. Chen, J. Fang, βSynthetic aperture radar image recognition by constrained joint transform correlators,β 0 Optik, vol. 112(3), pp. 125-130, 2001. 0 60 120 180 240 300 360 [10] J. Fang, C. Chen, βChinese seal imprint recognition by Before shift joint transform correlators,β Opt. Eng., vol. 40(10), pp. Rotation angle 2159-2164, 2001. After shift [11] C. Chen, C. Chen, C. Lee, and C. Chen, βConstrained Fig.7 Sidelobe energy versus rotation angle optimization on the nonzero-order joint transform correlator constructed with the Mach-Zehnder configuration,β Opt. Commun., vol. 231, pp. 165-173, 2004. [12] C. Lee, C. Chen, βA Mach-Zehnder nonzero order joint 450 transform correlator for aircraft pattern recognition,β 400 Microw. Opt. Techn. Lett., pp. 1290-1293, vol. 48(7), 350 2006. 300 [13] C. Chen, C. Chen, βDecrease of sidelobe energy by shifts in original training images for synthetic aperture radar 250 image recognition,β Microw. Opt. Techn. Lett., vol. 200 41(3), pp. 241-244, 2004. PSR 150 [14] C. Chen, C. Chen, βModification of training images for 100 the optimisation of the nonzero order joint transform correlator,β J. Mod. Opt., vol. 52, pp. 21-32, 2005. 50 [15] C. Wu, C. Chen, βPerformance comparison between 0 multi-channel polychromatic and conventional joint 0 60 120 180 240 300 360 transform correlators,β Opt. Eng., vol. 42(6), pp. 1758-1765, 2003. Rotation angle After shift [16] C. Chen, C. Wu, βPolychromatic pattern recognition Beforeβ¦ using the non-zero order joint transform correlator with cross-correlation peak optimisation,β J. Mod. Opt., vol. Fig.8 PSR versus rotation angle 50(9), pp. 1353-1364, 2003. [17] C. Chen, C. Chen, C. Lee, C. Chen, βColor face recognition with liquid crystal spatial light modulators,β Microw. Opt. Techn. Lett., pp. 234-237, vol. 42(3), 2004. [18] W. Wu, C. Chen, βColor blindness plate recognition with a YIQ multi-channel non-zero order joint transform REFERENCES correlator,β Microw. Opt. Techn. Lett., vol. 37(5), pp. [1] F. T. S. Yu and X. J. Lu, βA real-time programmable 343-347, 2003. joint transform correlator, β Opt. Commun., vol. 52, pp. 10-16, 1984 [2] F. Cheng, et al., βRemoval of intra-class associations in joint transform power spectrum,β Opt. Commun., vol. 99, pp. 7-12, 1993. [3] S. Jutamulia and D. A. Gregory, βSoft blocking of the dc term in Fourier optical systems,β Opt. Eng., vol. 37, pp. 49-51, 1998. [4] G. S. Pati and K. Singh, βIllumination sensitivity of joint transform correlators using differential processing: computer simulation and experimental studies,β Opt. Commun., vol. 147, pp. 26-32, 1998. [5] C. Chen, J. Fang, βCross-correlation peak optimization on joint transform correlators,β Opt. Commun., vol. 178, pp. 315-322, 2000. [6] C. Chen, βMinimum-variance nonzero order joint
ISBN: 978-988-19253-2-9 IMECS 2015 ISSN: 2078-0958 (Print); ISSN: 2078-0966 (Online)