Académique Documents
Professionnel Documents
Culture Documents
SEMINAR REPORT ON 2D Analog Filters for Real Time Video Signal Processing By NAME USN BRANCH SUBCODE : Rahul Deshpande : 4VV08EC075 : ELECTRONICS AND COMMUNICATION : 06EC86
SEMESTER : VIII
SEMINAR REPORT ON 2D Analog Filters for Real Time Video Signal Processing
REPORT
TOTAL MARKS
Abstract
A practical hardware design of a two-dimensional (2D) analog filter is explained. The structure is implemented using charge coupled device (CCD) analog shift registers and wideband operational amplifiers. The operation of the filter is demonstrated by processing TV video images in real time. The 2D analog approach is evaluated by comparison with a 2D distributed arithmetic digital filter. The analog approach offers realization at lower cost, less power consumption, higher resolution, and inherent true real-time capability independent of filter order.
CONTENTS
1. Introduction 1 1.1. 2D Images. 1 1.2. 2D Video ... 1 1.3. 2D analog filters 1 2. Why analog filter? ......... 3. Scanning Principles 3.1. Analog television. 3.2. Progressive Scanning .. 3 2.1. Application of analog filters ..... 4 6 6 6
3.3. Interlaced scanning .. 7 4. Derivation of filter functions........................ . 11 5. Practical Realization of 2D analog filters 13 5.1. Charge-coupled device . .. 13 5.2. Working principle of CCD 13 5.3. Design of 1H delay line (CCD) 14 5.4. Design of analog processor section .. 16 6. Filtering of images . 18 7. Evaluation .. 20 7.1. Advantages over digital filters . 20 7.2. Extension to higher order . 21 References .. 22
1. Introduction
1.1. 2D Images
In general, a 2D image can be described as a function of two independent spatial variables and time in the scene f(x, y, t) An image is converted to an electrical time varying signal for transmission by the process of periodic horizontal scanning. To prevent flickering in the display, conventional practice has been to introduce interlaced scanning with all the even lines being scanned first, followed by all the odd lines, producing two alternate fields of lines for each picture frame.
1.2. 2D Video.
Video is the technology of electronically capturing, recording, processing, storing, transmitting, and reconstructing a sequence of still images representing scenes in motion. Video technology was first developed for cathode ray tube (CRT) television systems, but several new technologies for video display devices have since been invented. Frame rate, the number of still pictures per unit of time of video, ranges from six or eight frames per second (frame/s) for old mechanical cameras to 120 or more frames per second for new professional cameras.
on one-dimensional time domain approaches implemented as simple FIR structures. These have been quite limited as to the type of processing and enhancement operations that could be implemented. In contrast the 2D analog approach is capable of realizing the general transfer function (IIR or FIR) for 2D (spatial) filtering which makes it possible to develop filters of all types. The use of recursive 2D analog structures to directly filter analog raster scanned images can provide a more effective solution than digital filters. Recently motion adaptive digital filters have been used for in high definition television video processing. They require delays of one or more field periods which are accomplished by means of frame-stores. since pixels in separate fields are combined, this type of filtering is referred to as temporal and can only be performed on those pixels for which no motion (in the scene being viewed) has occurred between fields thus the development of this type of filter is complicated by the inclusion of circuitry that implements the motion detection algorithm. 2D analog filters require only line delays, analog summers, inverters and integrators. They do not require expensive frame-stores, A/D and D/A converters and prefilters, or motion detection circuitry.
Just as before, a simple hardware for example if we consider operation amplifier devastates the digital system. The other flavor is frequency dynamic range. For example, it is easy to design an op amp circuit to simultaneously handle frequencies between 0.01 Hz and 100 kHz (seven decades). When this is tried with a digital system, the computer becomes swamped with data. At 200 kHz, it takes 20 million points to capture one complete cycle at 0.01 Hz.
5. Analog filter can be used to shape high speed digital PWM output. 6. Image formation and display.
3. Scanning Principles.
3.1. Analog television.
Analog television is the analog transmission that involves the broadcasting of encoded analog audio and analog video signal, in which the message conveyed by the broadcast signal is a function of deliberate variations in the amplitude and/or frequency of the signal. All broadcast television systems preceding digital transmission of digital television (DTV) were systems utilizing analog signals. Analog television may be wireless or can require copper wire used by cable converters. A cathode-ray tube (CRT) television displays an image by scanning a beam of electrons across the screen in a pattern of horizontal lines known as a raster. At the end of each line the beam returns to the start of the next line; at the end of the last line it returns to the top of the screen. As it passes each point the intensity of the beam is varied, varying the luminance of that point. A color television system is identical except that an additional signal known as chrominance controls the color of the spot. Today, two different techniques are available to render the video: interlaced scanning and progressive scanning. Which technique is selected will depend on the application and purpose of the video system, and particularly whether the system is required to capture moving objects and to allow viewing of details within a moving image.
separate fields like in interlaced scanning. Computer monitors do not need interlace to show the picture on the screen. It puts them on one line at a time in perfect order i.e. 1, 2, 3, 4, 5, 6, 7 etc. so there is virtually no "flickering" effect. As such, in a surveillance application, it can be critical in viewing detail within a moving image such as a person running away. However, a high quality monitor is required to get the best out of this type of scan. The Fig 3.2.1 shows the example of progressive scan.
The final number of visible lines after cropping is approximately 480. The Television screen displays 60 fields each second. Since each frame is divided into 2 fields (even and odd), we define the 60 fields as 30 pairs of fields, and each pair is called a Frame. Therefore the Television screen displays 30 Frames each second. Due to the persistence of vision, a moving image is seen.
Full Lines (cycles) vs Visible Lines as shown in Fig 3.2.2 where in there is a full line, which is the same as one complete horizontal scan cycle. It includes both the visible scanning and retrace.
The complete horizontal scan cycle is 63.4uSec (15,750 cycles per sec). 53uSec for the left-to-right scan, and 10uSec for the right-to-left retrace. The common divider is 12, which breaks up the cycle into segments of 5.25uSec. Therefore the visible scan is 10/12 of one cycle and the retrace scan is 2/12 of one cycle. One-half of a visible line is 5/12 of one cycle.
From the Fig 3.3.3, we see that: Field 1 has a half line at the end. After that Field 2 begins scanning. Field 2 has a half line at the beginning, and a retrace line. After that it scans lines normally, beginning at the left. Field 2 begins scanning from the middle to insure that its lines fit exactly in between the lines from Field 1. The entire scanning may look like as shown in Fig 3.3.4 and an example image is shown in Fig 3.3.4.
------- (1)
where i+j 0 ------- (2) Equation (2) can be written in a line recursive form, which in turn can be realized with analog circuitry. A plot of an Ideal 2D filter can be seen in the Fig 4.1 and plot of practical 2D filter can be seen in Fig 4.2.
continuous analog signal (e.g. by feeding the output of the charge amplifier into a low-pass filter) which is then processed and fed out to other circuits for transmission, recording, or other processing. The internal structure of CCD is as shown in Fig 5.2.1.
Each CCD operates to delay signals in the baseband or video frequency range (e.g. 0 to vicinity of 5 MHz). A Fairchild Weston CCD321, fabricated in the buried-channel NMOS, Clock driver circuit driven by a crystal oscillator which provides two phase symmetric waveforms 1 and 2 to the CCD. The type of clock driven circuits used will be function of the type of CCD chosen and are typically based on the TTL or CMOS family integrated circuit devices. For the Fairchild Weston CCD321, which has a charge injection port at its input and a sample-and-hold circuit in its output amplifier, the two-phase system of clocks 1 and 2 is applied to the device to effect charge injection at the input as well as inter stage charge transport and clocking of the a CCD offers the advantage of reducing clock frequency feed through components in the output signal. Any of these undesirable frequency components that remain in the output may be further suppressed by a 5Mhz low pass filter circuit.
Eliminating DC Offsets. Dc offsets voltages are added to signals by the DC errors of the amplifier and by bias level shifts. In a filtering application the signals are AC. Thus all elements in the design were AC coupled as a straightforward method of removing DC offsets. Inverting Amplifier. An inverter is required in the process section wherever a signal must undergo a sign change with unity gain. Conventional op-amp inverters based on the LM318 wide-band op-amps can be used. A capacitor of value say 4.7pF in parallel with the feedback resistors is required to prevent oscillations in the output due to stray capacitance. Summing Amplifier.
Summing amplifier in the processing unit were based on the LM318 op-amp used in the inverting configuration in which the inverting input is the summing node. If the voltages 1 V1, 2 V2, ., n Vn set by input attenuators are applied to the inverting input through 10K resistors the summed output voltage is (Rf/10K) (1 V1, 2 V2, ., n Vn) (where Rf is the feedback resistance). A given filter coefficient is obtained as the factor (Rf/10K) i. Integrator. The processing unit incorporated a conventional single pole op-amp circuit (based on the LM318). For an input signal Vi, the output is given by V0 = - 1/ (RC) dt.
The value of the time constant RC is selected so that the peak output voltage falls within the dynamic range of the op-amp for the lowest video frequency component in the input signal. The integrator is set to a zero initial condition at the start of each line scan (say every 63.5us) by means of a fast analog switch of 4066 CMOS IC type connected in parallel with capacitor Cf. The sync pulse, which occurs at the beginning of each line scan period, is separated from the video signal, limited to 12 VpK and applied to the control input of the analog switch.
6. Filtering of images.
The operation of the prototype 2D analog filter can be demonstrated with an application drawn form, a phase contrast filter. In the phase contrast filtering technique, this enhances high frequency components in the image, the filter transfer function H(s,z) has magnitude response which is flat and a phase response that causes those frequency components in the input signal that are above a given critical frequency c to be shifted -180 degrees out of phase so that after the original image is subtracted, the frequency components below c will be removed while those above will be double in magnitude. In order to determine the real time operation of the 2D analog filter on TV images, the prototype is inserted into television receiver circuitry as shown in Fig 6.1.
The separated sync signal is brought out from the circuitry, limited to 12 VpK and connected to the control input of the analog switch in the integrator section of the filter. The detected video signal is available at the emitter follower at approximately a one volt peak-to-peak level. The signal is 2D filtered by the prototype and sent to the final video stage, resulting in a phase contrast enhanced image on the TV screen. An example before and after pictures showing the result of filtering are given in the Fig 6.2(a & b).
7. Evaluation.
A 2d analog filter can be constructed with conventional components and applied to the processing of the TV images in real time. The type of filtering done is determined by coefficient settings. The resolution of the filtered picture is N x M. A digital filter architecture which can be realized with hardware of approximately the same order of complexity as for a 2D analog filter is the distributed arithmetic architecture. A comparison between the analog and digital approaches in terms of hardware complexity, speed, and cost is provided next.
References.
[1] Kaufman, H.J., Sid-Ahmed, M.A, "2-D analog filters for real time video signal processing", Consumer Electronics, IEEE Transactions, May 1990. [2] Sid-Ahmed, M.A, Two-dimensional analog filters: a new form of realization, Circuits and Systems, IEEE Transactions, Jan 1989 [3] Parag Havaldar, Gerard Medioni, "Multimedia Systems: Algorithms, Standards, and Industry Practices", July 21, 2009 | ISBN-10: 1418835943. [5] Lim, Jae S., Two-Dimensional Signal and Image Processing, Englewood Cliffs, NJ, Prentice Hall, 1990, pp. 202-213. [4] http://en.wikipedia.org/wiki/Analog_television