referring now to the drawing wherein like elements are indicated by like reference numerals throughout , and more particularly fig1 thereof , an optical image processing system for the inspection of a wide variety of printed circuit boards including subassemblies of multilayer boards including signal cores , power cores and final composites shown . multilayer circuit board 11 is examined for the presence of reflective metal current paths creating shorts , spacing violations between conductors and missing circuit lines . the substrate can be a laminate material of any one of several different colors having different reflectivities , with more than one color present on the same board . an illumination source 13 provides white light energy at a fixed angle of incidence that scans a surface under inspection so that reflectance of this energy from the surface under inspection may be efficiently collected after passing through imaging apparatus 15 by a white light energy sensor 17 which is positioned at an angle of reflection approximately equal to the angle of incidence . the board being inspected is moved on a table under the sensor . a synchronization signal is provided which indicates when scanning occurs and when the table is being positioned between scans . in the preferred embodiment the sensor is a linear charge coupled device , which generates an analog signal for each exposed line of video by serially shifting out the signals from all charge elements of a linear array that were simultaneously exposed to the reflected light . the scanning device analog video signal and synchronization signal are connected to an analog video processing circuitry 21 . the &# 34 ; white &# 34 ; and &# 34 ; black &# 34 ; levels of the analog video signal correspond respectively to the reflective and nonreflective surface areas of the image plane . this signal is changed to digital form by digitizing circuitry which forms part of the digitizing process in block 23 , which can include gray scale determination so that the signal can be further processed . the non - reflective or black level may vary from object - under - image to object - under - image , or within an object - under - image , due to adverse reflective surfaces resulting from oxidation , scratches , and stains . variations in the background level are a particular problem when examining , for example , the power core portion of a multilayer board prior to drilling , having a top layer 31 of translucent laminate material and a metal layer 33 beneath with openings 35 , as shown in fig2 a and b . reflective metal circuit lines 37 , such as copper , gold , nickel , etc ., and a metal circuit defect 41 are shown on the translucent substrate 31 . changes in the background level , caused by color differences of the bottom metallic and non - metallic areas through the translucent layer , alters the effective signal - to - noise ratio of the automated optical inspection system . as the background component changes , the process window set by the threshold level through which all image signals pass , increases the number of defect false alarms that occur due to the incorrect imaging of the background . this can limit the systems overall capability . as the background or black level , varies , digitizing thresholds become critical and typically require adjustment . these adjustments result in digitizing sensitivity tradeoffs . fig3 , and 5 demonstrate the effect of background level variation in the digitization process and the effect in the automated inspection process when the analog processing circuitry of the present invention is not used . two inspection areas are sampled with an area having a low background component , that is a high contrast ratio in fig3 and an area having a high background content , that is a low contrast ratio in fig4 and 5 . referring now to fig3 an unprocessed analog video signal is shown in fig3 a and the corresponding digitized signal is shown in fig3 b for an inspection area having a low background component . the relative black level is indicated by reference numeral 45 , and reference numeral 47 indicates the digitizing threshold . the image processing is efficiently processed and yields no false defects when the digitized signal is compared to the expected signal . referring now to fig4 a , an unprocessed analog video signal for an inspection area having a high background component is shown . the surface reflection signal provided by the analog video signal yields false short defects when the corresponding digitized signal shown in fig4 b is compared to an expected level . if the digitizing threshold indicated by reference numeral 47 is increased as shown by reference numeral 51 in fig5 a , inefficient digitization again takes place as shown in fig5 b with the background sensitivity reduced surface sensitivity is increased resulting in false open defect being detected . referring now to fig6 apparatus for processing an analog video signal prior to thresholding in accordance with the present invention is shown . the raw analog video input is passed through a video buffer 61 . the output of buffer 61 is connected to the noninverting input of a differential amplifier 63 and a reference voltage from a variable resistor 65 provides the inverting input of the differential amplifier 63 . the output of differential amplifier 63 is connected to one of two inputs of a video switch control 67 . a camera synchronization signal from scanning device 17 is connected to the other input of video switch control 67 . the output of video switch control 67 is connected to a track and hold switch 71 . switch 71 connects the output of video buffer 61 to a track and hold capacitor 73 , the inverting input of a differential amplifier 75 and a range regulator 77 . differential amplifier 75 serves as a summation stage and has its noninverting input connected to the output of video buffer 61 . the output of differential amplifier 75 is connected to a ground reference circuit 81 and the output of the ground reference circuit is the processed analog video signal ready for digitization . in operation , the illumination source is adjusted to achieve a desired minimum analog video signal level from a reflective surface to be detected . the buffered analog signal from scanning device 17 is compared to a reference voltage which is set to the highest level of expected background signal in differential amplifier 63 . the output of differential amplifier 63 serves as a white level detector . when a white level is detected , the video switch control 67 opens track and hold switch 71 and when a white signal is not detected , which is indicative of a background level , track and hold switch 71 is kept in the closed position . the portion of the buffered analog video signal which represents the background portion is stored by the track and hold capacitor 73 . when the scanning device is between scans , track and hold switch 71 is also in the open position maintaining the background level between scans . if the background level exceeds a predetermined amount , the range regulation function reduces the magnitude of the analog video signal provided to the differential amplifier 63 , which has the same effect as increasing the reference voltage level . the range regulation function operates when a background area with higher than normal reflectivity is encountered to temporarily eliminate this background without having to permanently change the reference voltage level . the background level , as represented by the voltage across capacitor 73 is subtracted from the buffered input signal in differential amplifier 75 . the output of differential amplifier 75 is provided to ground reference circuit 81 and the output of the ground reference circuit is the processed analog video signal ready for gray scale processing using an a / d converter or digitization using a fixed threshold level . the analog video processing circuit also serves to distinguish white levels from black levels based on frequency . the capacitance value of the track and hold capacitor 73 is determined by the scan rate of the scanning device and the application range . when a relatively high frequency component is detected , which implies that it is not part of the background , the signal is passed by the track and hold switch 71 to capacitor 73 since the signal amplitude was below the reference voltage level as determined by variable resistor 65 . the high frequency signal is not stored by capacitor 73 and the summation results in the high frequency component not being subtracted from the buffered analog video signal . a more detailed circuit implementation of the analog video processing circuit of fig6 is shown in fig7 . the video switch control 67 is shown as a pair of npn transistors 91 and 93 having their collectors connected to one another and connected to a power source . the output of differential amplifier 63 is connected to the base of transistor 91 and the scanner synchronization signal is connected to the base of transistor 93 . the scanner synchronization signal provides a voltage during the intervals between scans . the collectors of transistors 91 and 93 are connected to the control input of a voltage controlled analog switch 95 which serves as the track and hold switch 71 . when the voltage on either of the bases of the npn transistor 91 or 93 causes the transistors to conduct , the analog switch 95 is opened . a differential amplifier 97 in the follower configuration with the output connected to the inverting input , acts as a buffer between capacitor 73 and the inverting input of differential amplifier 75 providing a high input impedance and low output impedance . a diode 101 , with a low forward voltage drop is connected to the input of a video buffer 103 and through a resistor 105 to ground , provides the positive difference between the analog video signal less the background level at the output of a load resistor 107 connected to the output of video buffer 103 . the gain of the background level can be increased slightly compared to the gain of the video signal to compensate for the lag of the capacitor in responding to background level changes . range regulation is provided by an npn transistor 111 which has its base connected through a resistor 98 to the output of buffer 97 . the collector of transistor 111 is connected through a voltage divider comprising series connected resistors 99 and 100 to the output of video buffer 61 . video buffer 61 is connected to the differential amplifier 63 through resistor 100 . the emitter of transistor 111 is connected to ground . when the voltage on capacitor 73 , which represents the background signal rises above a predetermined level , transistor 111 begins to limit the magnitude of the analog video signal provided to the differential amplifier 63 which serves as the white level detector . when transistor 111 is not conducting resistor 100 does not limit the magnitude of the signal provided by video buffer 61 . when transistor begins to conduct the input signal to the differential amplifier 63 is reduced by an amount dependent on the value of resistor 99 and 100 and the voltage applied at the base of transistor 111 . the resistors 99 and 100 can be selected to reduce the video buffer output provided to the differential amplifier by 33 % for example when transistor is fully conductive . as can be seen in fig7 the range regulator does not effect the voltage of the buffered analog video signal provided by video buffer to differential amplifier 75 . the range regulation only affects the voltage level of the video signal at which the analog switch connects the unmodified video signal to the capacitor . video buffer 61 preferably has a fast slew rate , high current capability , and a low active impedance output which causes the capacitor voltage to follow the output of the video buffer when the capacitor is connected to the video buffer output . an example of a video buffer having these characteristics is model ha5002 manufactured by harris semiconductor company . capacitor 73 is a relatively small capacitance based on application which is able to hold the background charge when the analog switch which is turned off by the synchronization signal between scans . referring now to fig8 a , b , c , and d , a top view of a circuit board , and waveforms of the corresponding unprocessed analog video signal , the null and sum video signal provided by the analog video processing circuit of the present invention and the resulting digital video signal , respectively , are shown . in fig8 a , the line - of - video scanning path is shown by the dotted line indicated by reference numeral 121 , the circuit board is of the type shown in fig2 in which there is a top translucent layer and circuit patterns and holes on the layers beneath the translucent layer creating bright background areas over the hole 35 in the lower layers and darker background areas over the metallic regions on the layer beneath the translucent layer . a defect is indicated by reference numeral 41 . the amplitude of the defect signal is approximately the same as the amplitude of the background signal , however due to the frequency discrimination the defect amplitude is not removed when the null and sum analog video signal is obtained as shown in fig8 c and therefore the defect is represented in the digital video waveform shown in fig8 d . referring now to fig9 the sequence of steps in processing the analog video signals is shown . in fig9 a the unprocessed analog video is shown . the background level as determined by the voltage across the track and hold capacitor is shown in fig9 b . an inverted background level waveform is shown in fig9 c which is summed with original unprocessed analog video signal to provide a signal which can be digitized with a fixed threshold level without missing any defects or including defects which are not present in the circuit board being examined . reference arrows 123 indicate a reference voltage level in each of the waveforms . in another embodiment of the present invention as shown in fig1 , an analog video processing circuit is used in reverse imaging applications such as glass inspection and copier or facsimile imaging . in these applications the pertinent information is the black level and the black level needs to be made more pronounced to allow easier detection during the digitization process when thresholding levels are used . the circuitry is the same as shown in fig6 with the addition of an ac coupling capacitor 127 , located between the output of the video buffer 61 and the noninverting input to differential amplifier 63 . the noninverting input to differential amplifier 75 is taken directly from the output of the video buffer 61 and does not pass through capacitor 127 . referring now to fig1 a , an unprocessed signal 135 and a signal envelope 137 are shown having high frequency components . the capacitor voltage follows the lower signal envelope 137 . pertinent features which are to be detected are denoted as occurring in the time intervals f1 , f2 , f3 , and f4 indicated between the vertical bars . applying either threshold level tha or thb will not detect two of the features . the inclusion of the ac coupling capacitor 127 allows feature edge detection to be accomplished by the differential amplifier 63 shown in fig1 c which drives switch 71 to obtain the null and sum analog output of fig1 d . the foregoing has described an analog video processing method and apparatus which enhances the signal - to - noise ratio of the analog video signal and therefore increases the digitizing sensitivity . the overall effects of background and background variations are effectively removed . while the invention has been particularly shown and described with reference to several preferred embodiments thereof , it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention .