Documente Academic
Documente Profesional
Documente Cultură
ICEMI2007
Abstract: Real-time image processing system is widely used in many field, it is required to have high speed. In order to satisfy the demand, an image processing system structure based on DSP and FPFA is presented, that is DSP is used as advanced image processing unit and FPGA as logic unit for image sampling and display. The hardware configuration and working principle is introduced firstly, and then some key problems which include of image data stored mode, color space conversion and image transmission based on EDMA are described. Finally the program flowchart for developing image processing software is given. The developed system can acquire image, display image and make some image processing operations which include of geometry transform, orthographic transform, operations based on pixels, image compression and color space conversion. The developed system can meet the real-time requirement and has been used in our teaching. Keywords: real-time image processing, digital signal
This paper is organized as follows: section 2 first introduces the hardware configuration and its working principle of the system, which include of the designing idea, the image data stored mode and the color space. The image transmission method between DSP and FPGA is discussed in section 3. Section 4 gives the program flowchart for developing the image processing software based on the hardware. Finally the paper is concluded in section 5.
processing (DSP), field programmable gate array (FPGA), expanded direct memory access (EDMA)
1 Introduction
Image processing has been used in many fields, such as industry, military, medical image processing and so on. But most of the system is developed based on PC, it cant meet the requirement for real-time and high speed in some occasions, so the image processing and transmission system is increasingly developed along with the development of electronic technique, especially DSP and FPGA[1,2]. This paper introduces an image processing system based on DSP and FPGA. In the system the TMS320c6713 DSP is used as advanced image processing and FPGA as logic unit for image sampling and display.
Authorized licensed use limited to: College of Engineering - Trivandrum. Downloaded on June 28,2010 at 13:18:20 UTC from IEEE Xplore. Restrictions apply.
ICEMI2007
(3) Video processing board is shown as dashed frame in Fig.1, it consists of foreside decoding chip SA7111, FPGA, SDRAM and back-end coding chip AL250. The function of SA7111 is to change analog video signals from CCD into digital signal and the image data with the format of YUV4:2:2 are stored in
SDRAM. The image data after processed by DSP are sent to AL250 which can convert interlaced TV signal (NTSC/PAL SECAM) into non-interlaced RGB format
for CRT monitors. FPGA is used as logic unit for
SDRAM (4Mh16bit)
FPGA
VGA display
2.2 system working principle The system working involves image samples, image store, image transmission, image processing and image display. They are described detailed as follows: (1) Image acquisition is obtained by CCD camera. The output of the CCD camera is analog signals of PAL SEAM, it is transformed to digital image signals with YUV4:2:2 format by video decoding chip SA7111. (2) Image transmission between DSP and FPGA is gotten through EDMA method. The video data are first stored into OUTFIFO in FPGA, at the same time DSP is noticed to take away one row data from FIFO by interrupt signal caused by synchronization signal. After the image data are processed by DSP, they should be sent to video board. The transmission method is EDMA, the detail of this method will be discussed in section 3. (3) The third problem is the image store. A frame image data are divided into odd filed and even field and the start address of image store is 0x80000000. The image data format is YUV4:2:2, the stored order is shown in Fig.2, it can be seen from Fig.2 that every pixel has a Y data and two adjacent pixels only share
2-792
one group of UV data. The image size is 625h720, so the data size of one row is 720h2Bytes. Because of the used color space is RGB in
Y data
10
11
computer, so the image data with YUV4:2:2 Format named as YCbCr color space should be transformed. The transform equations between RGB and YCbCr are as follows:
0.504
0.098
R 16 G 128 B 128
(1)
1.596
16 CY 128 Cb 128 r
( 2)
Authorized licensed use limited to: College of Engineering - Trivandrum. Downloaded on June 28,2010 at 13:18:20 UTC from IEEE Xplore. Restrictions apply.
ICEMI2007
Gray image are often used in image processing, it can be got by setting Cb and Cr as 128 in the above equation (2). (4) The acquired image can be processed by software implemented by DSP. The detail of image processing software will be described in section 4.
Optional parameter(OPT) Source addressSRC Frame/Array count (FRMCNT) Element count (ELECNT)
Destination address (DST) Frame/Array index Element index (ELEIDX) Link address (LINK)
For our system, the image size is 625h720, 1D transmission is adopted by image source and destination. The source address is 0x80000000 for channel 6 and 0xa0000018 for channel 7, the destination address is 0xb0000014 for channel 6 and 0x80000000 for channel 7. So the parameters of channel 6 are: (1) OPT: 0x49160003; (2) SRC: 0x80000000; (3) FRMCNT and ELECNT: 0x027002D0; (4) DST: 0xb0000014; (5) FRMIDX and ELEIDX: 0x06c00002; (6) ELERLD and LINK: 0x00000210. For channel 7, the parameters are: (1) OPT: 0x48200003; (2) SRC: 0xa0000018; (3) FRMCNT and ELECNT: 0x027002D0; (4) DST: 0x80000000; (5) FRMIDX and ELEIDX: 0x03600001; (6) ELERLD and LINK: 0x00000630.
Authorized licensed use limited to: College of Engineering - Trivandrum. Downloaded on June 28,2010 at 13:18:20 UTC from IEEE Xplore. Restrictions apply.
ICEMI2007
of DCT transform and wavelet transform. (3) image pixels operation, such as negative image, image enhancement, edge extraction and so on. (4) image compression based on JPEG. (5) color space conversion, such as RGB and YCbCr conversion, color image and gray image conversion.
Begin
different level algorithms and large flexibility for expanding the system. It can meet the requirements for real-time image processing system. Acknowledgments This paper has been supported by the experiment technique foundation of Xian University of Technology. Reference
[1] H.X. Zhou, R. Lai, S.Q. Liu. A New Real Time Processing
System for Imaging Signal Based on DSP&FPGA[J]. Infrared Physics & technology. 2005,46(4):277-281. [2] J. Batlle, J. Marti, P. Ridao. A New FPGA/DSP-Based
Parallel Architecture for Real-time Image Processing[J]. Real-Time Imaging, 2002,8(5):345-356 [3] Image Processing Board for 6713DSK [M]. Beijing Techshine Technology CO.,Ltd, 2004:1-12
[4] F.H. Li, F. W. The Principle and Application of TMS320C000 Series DSP[M]. Publishing House of Electronics Industry, 2003:390-408
Geometry transform
[5] C.Qi, Y.H. Chen, T.S. Huang. The Real-time Image Processing Technique Based on DSP[J]. Wuhan University Journal of Natural Sciences, 2005,10(6):1025-1029
N
Pressed?
Orthographic transform
Author Biography
Duan jinghong: received her B.Sc. degree from Xian
Y
The algorithms for Processing the acquired image in DSP
Polytechnic University, China, in 1991. From 1999 she is an engineer of School of Computer Science and Engineering in Xian University of Technology. Her current research interests
Image compression Open interrupt 6 for image transmission from DSP to FPGA Color space End conversion based on JPEG
Fig. 4
program flowchart
5 Conclusions
The proposed image processing based on DSP and FPGA has the advantages of high speed, powerful image processing capability of easily implementing
2-794
Authorized licensed use limited to: College of Engineering - Trivandrum. Downloaded on June 28,2010 at 13:18:20 UTC from IEEE Xplore. Restrictions apply.