referring now specifically to the drawings and the illustrative embodiments depicted therein , a vehicle 10 includes a vehicle headlight dimming control 12 made up of an imaging sensor module 14 which senses light from a scene forward of vehicle 10 , an imaging control circuit 13 which receives data from sensor 14 , and a vehicle lighting control logic module 16 which exchanges data with control circuit 13 and controls headlamps 18 for the purpose of modifying the headlight beam ( fig1 and 2 ). such control may be a binary control of the aim of the beam , such as by switching between lamps or lamp filaments , or may be a continuous variation of the aim of a single lamp more or less forward of the vehicle . the control may also control the intensity or pattern of the beam . additionally , the lights of a vehicle equipped with daytime running lights may be switched between a daytime running light condition and a low - beam condition . vehicle headlight dimming control 12 can perform a wide range of additional control operations on the vehicle , including turning the headlights on and off , modifying the light intensity of the instrument panel , and providing an input to an electro - optic mirror system . vehicle lighting control logic module 16 receives an input 20 from imaging control circuit 13 . in particular embodiments , such as ones which adjust the state of the headlights between continuously variable states , module 16 may supply data to imaging control circuit 13 , such as the speed of the vehicle , which may be combined with the data sensed by imaging sensor 14 in establishing the state of headlights 18 . in the illustrated embodiment , imaging sensor module 14 may be fixedly mounted in a housing 28 by a bracket 34 mounted to , or near , the vehicle &# 39 ; s windshield 32 . bracket 34 also mounts an interior rearview mirror 30 . this is a preferred mounting for imaging sensor module 14 because the location within the interior of the vehicle substantially eliminates environmental dirt and moisture from fouling the light sensor module . additionally , the position behind windshield 32 , which typically is kept relatively clear through the use of washers and wipers and the like , ensures a relatively clear view of the scene forward of vehicle 10 . alternatively , imaging sensor module 14 may be mounted within a housing 29 of interior rearview mirror 30 facing forward with respect to vehicle 10 ( fig1 ). in such embodiment , control circuit 13 may be combined with the circuit which controls the partial reflectance level of mirror 30 if mirror 30 is an electro - optic mirror such as an electrochromic mirror . other mounting techniques for sensor module 14 will be apparent to the skilled artisan . imaging sensor module 14 includes an optical device 36 , such as a lens , an array 38 of photon - accumulating light sensors , and a spectral separation device for separating light from the scene forward of vehicle 10 into a plurality of spectral bands , such as a filter array 40 disposed between optical device 36 and light - sensing array 38 . light - sensing array 38 is described in detail in u . s . pat . no . 5 , 550 , 677 issued to kenneth schofield and mark larson for an automatic rearview mirror system using a photosensor array , the disclosure of which is hereby incorporated herein by reference . light - sensing array 36 includes a plurality of photosensor elements 42 arranged in a matrix of columns and rows ( fig4 ). in the illustrated embodiment , an array of 512 rows and 512 columns of light - sensing pixels , each made up of a photosensor element 42 is utilized . however , a greater or lesser number of photosensor elements may be utilized and may be arranged in matrix that is laid out in other than columns and rows . each photosensor element 42 is connected to a common word - line 44 . to access the photosensor array , a vertical shift register 46 generates word - line signals to each word - line 44 to enable each row of photosensor elements 42 . each column of photosensor elements is also connected to a bit - line 48 which is connected to an amplifier 50 . as each word - line 44 is accessed , a horizontal shift register 52 uses a line 54 to output the bit - line signals on consecutive bit lines 48 to an output line 56 . in this manner , each photosensor element 42 may be individually accessed by appropriate manipulation of shift registers 46 and 52 . output 56 is supplied to a digital signal processor 13 which is supplied on an output 62 as input to control circuit 13 ( fig3 - 5 ). digital signal processor 13 includes an analog - to - digital converter 58 which receives the output 56 of array 36 and converts the analog pixel values to digital values . a digital output 68 of a / d converter 58 is supplied to a taillight detection circuit 76 , a headlight detection circuit 78 , and to ambient sense logic circuit 84 . a detection control circuit 72 supplies control and timing signals on a line 74 which is supplied to array 38 , a / d converter 58 taillight detection circuit 76 , headlight detection circuit 78 , and ambient sense logic 84 . such signals coordinate the activities of these modules and provide any data , from look - up tables provided in control circuit 72 , needed by each circuit to perform its function . for example , control circuit 72 may provide intensity threshold levels to taillight detection circuit 76 and headlight detection circuit 78 . taillight detection circuit 76 detects a red light source having an intensity above a particular threshold as follows . for each pixel that is “ red ,” a comparison is made with adjacent “ green ” pixels and “ blue ” pixels . if the intensity of a red pixel is more than a particular number of times the intensity of the adjacent green pixel and adjacent blue pixel , then it is determined that the light source is red . if the intensity of the “ red ” light source is greater than a particular threshold , an indication is provided at 80 . headlight detection circuit 78 detects a white light source having an intensity above a particular threshold as follows . a white light is a combination of red , green , and blue components . if adjacent “ red ,” “ green ,” and “ blue ” pixels all exceed a particular threshold , a ratio comparison is made of the pixels . if the ratio of the intensity of the adjacent “ red ,” “ green ,” and “ blue pixels is within a particular range , such as 20 percent by way of example , then a white light source is detected . vehicle headlight dimming control 12 additionally includes an ambient light - sensing circuit 84 which receives an input from digital output signal 68 . ambient detection circuit 84 samples a subset of photosensor elements and detects light levels sensed by the subset over a long period of time in order to produce significant time filtration . preferably , the photosensor elements in the sensed subset include sensors that detect portions of the forward - looking scene that are just above the earth &# 39 ; s horizon which is more indicative of the ambient light condition . ambient detection circuit 84 produces an indication 88 of ambient light levels which is supplied as an input to a lighting control module 90 . a high ambient light level may be used by a module 90 to inhibit headlight actuation or to switch headlights 18 to a daytime running light mode . ambient detection circuit 84 can , optionally , perform other functions , such as switching the daytime running lights of the vehicle between daytime and nighttime modes , controlling the intensity of the vehicle &# 39 ; s instrument panel and providing an input to an electro - optic rearview mirror system . indications 80 and 82 from the light detection units and indication 88 from ambient detection circuit 84 are supplied to a lighting control circuit 90 which produces a first indication 92 that headlights 18 are to be switched on , or switched from a daytime running condition to a night mode , and a high - beam enable indication 94 that the headlights may be switched to a high - beam state . vehicle lighting control logic module 16 responds to indications 92 and 94 by switching headlights 18 to an appropriate mode . an output 96 from module 16 may be provided to supply lighting control circuit 90 with information with respect to vehicle telemetry , steering , speed , and any other parameter that may be incorporated into the algorithm to determine the state of the headlights of the vehicle . digital signal processor 13 may be implemented using discrete digital circuit modules or with a suitably programmed micro - processor with input and output buffers . in one embodiment , an imaging sensor module 14 a includes a single photosensor array 38 a , one spectral filter array 40 a , and one optical device 36 a ( fig5 ). in this illustrated embodiment , spectral filter array 40 a includes alternating spectrum filter elements for exposing adjacent pixels to different regions of the electromagnetic spectrum in the red band or green band or blue band . this may be accomplished by arranging such filter elements in stripes or by alternating filter spectral regions in a manner known in the art . digital signal processor 13 a captures a frame of data by enabling photosensor array 38 a for a particular exposure period during which each photosensor element 42 accumulates photons . in order to detect oncoming headlights , digital signal processor 13 a enables photosensor array 38 a for a first exposure period . in order to detect leading taillights , digital signal processor 13 a enables photosensor array 38 a for a second exposure period . because oncoming headlights have an intensity level that is substantially greater than that of leading taillights , the exposure period of the frame in which leading taillights is detected is at least approximately ten times the length of the exposure period during which oncoming headlights are detected . most preferably , the exposure period for detecting leading taillights is approximately 40 times the exposure period for detecting oncoming headlights . in the illustrated embodiment , an exposure period of 0 . 004 seconds is utilized for detecting taillamps and 0 . 0001 seconds for detecting oncoming headlamps . the exposure period is the time during which each photosensor element 42 integrates photons before being read and reset by digital signal processor 13 a . establishing a different exposure period for detecting headlights verses taillights facilitates the use of existing and anticipated sensor technology by accommodating the dynamic range of such sensor technology . exposure may also be adaptively established on a priority basis . in one such embodiment , exposure is set to a shorter headlight setting . if headlights are detected , the headlights 18 of vehicle 10 are dimmed and the exposure period is kept short . if no headlights are detected , the next frame is set to a longer exposure period . this has the advantage of shorter system cycle time as well as a reduction in sensitivity to sensor saturation and blooming . in another such embodiment , the exposure period is initially set to a long period . if an oncoming headlight is tentatively detected , the exposure period could then be switched to a short period to confirm the observation . vehicle headlight dimming control 12 carries out a control routine 100 ( fig7 a - 7 d ). at the beginning of each pass through the routine , which occurs for every frame captured by the imaging sensor , a frame is grabbed at 102 and all of the pixels in the frame are processed as follows . counters used for detecting white headlight sources and red taillight sources are zeroed at 104 . it is then determined at 106 whether the previously processed frame was for detecting headlights or taillights . this is determined by looking at a variable “ process . tails ” which will be set to “ yes ” if the previous frame was processed to detect headlights and will be set to “ no ” if the previous frame was processed to detect taillights . if it is determined at 106 that the variable “ process . tails ” is set to “ yes ,” the control proceeds to 108 in order to process the next frame to detect taillights . if it is determined at 106 that the variable process . tails is set to “ no ,” then control passes to 109 in order to process the next frame as a headlight detecting frame . the taillight detecting frame process begins at 108 by setting the exposure period for the imaging sensor module to grab the next frame according to a headlamp exposure level . in the illustrated embodiment , the exposure period for detecting headlights is set at 0 . 0001 seconds . processing of the taillight frame proceeds at 110 by examining , for each “ red ” pixel , whether the intensity of light sensed by that pixel is greater than a threshold and whether the intensity of light sensed by that pixel is greater than a selected number of multiples of the intensity of light sensed by an adjacent “ blue ” pixel and a selected number of multiples of the intensity of light sensed by an adjacent “ green ” pixel . if so , then a “ red ” counter is incremented at 114 . preferably , the ratio of red pixel intensity to green or blue pixel intensity is selected as a power of 2 ( 2 , 4 , 8 , 16 . . .) in order to ease digital processing . however , other ratios may be used and different ratios can be used between red / green and red / blue pixels . in the illustrated embodiment , a ratio of 4 is selected based upon ratios established from cie illuminant charts known to skilled artisans . based upon these charts , a ratio greater than 4 would provide greater discrimination . such greater discrimination may not be desirable because it could result in failure to identify a leading taillight and , thereby , a failure to dim the headlights of the controlled vehicle . after all pixels have been processed , the parameter “ process . tails ” is set to “ no ” at 116 and control proceeds to 118 ( fig7 c ). in a similar fashion , processing of a headlight frame begins at 109 by setting the exposure period for the imaging sensor module to grab the next frame as a red taillight detecting frame . this is accomplished by setting the exposure period of the imaging sensor module to 0 . 004 seconds . it is then determined at 120 for each pixel whether an adjacent set of “ red ,” “ green ,” and “ blue ” pixels each exceeds a particular threshold and whether the pixel intensity levels all fall within a particular range , such as within 20 percent of each other . if all of the red , green , and blue pixels exceed a threshold and pass the ratio test , then it is determined that a white light source is being sensed and a “ white ” counter is incremented at 122 . after all of the pixels in the frame have been processed , the process . tails flag is set to a “ yes ” state at 124 . control then passes to 118 . it is determined at 118 whether both the “ white ” and the “ red ” counters are below respective high - beam thresholds . if so , a high - beam frame counter is incremented and a low - beam frame counter is set to zero at 120 . if it is determined at 118 that both the “ white ” and the “ red ” counters are not less than a threshold , it is then determined at 126 whether either the “ red ” counter or the “ white ” counter is greater than a respective low - beam threshold . if so , the high - beam frame counter is set to zero and the low - beam frame counter is incremented at 128 . if it is determined at 126 that neither the “ red ” counter or the “ white ” counter is greater than the respective low - beam threshold , then both the high - beam frame counters and the low - beam frame counters are set to zero at 130 . control then passes to 132 where it is determined if the low - beam frame counter is greater than a particular threshold . if so , high - beam enable signal 94 is set to a “ low - beam ” state at 134 . additionally , the low - beam frame counter is set to the threshold level . if it is determined at 132 that the low - beam frame counter is not greater than its threshold , it is determined at 136 whether the high - beam frame counter is greater than its threshold . if so , high - beam enable signal 94 is set to “ high - beam ” state at 138 and the high - beam frame counter is reset to its threshold level . control routine 100 provides hysteresis by requiring that a headlight spectral signature or a taillight spectral signature be detected for a number of frames prior to switching the headlights to a low - beam state . likewise , the absence of a detection of an oncoming headlight or a leading taillight must be made for multiple frames in order to switch from a low - beam to a high - beam state . this hysteresis guards against erroneous detection due to noise in a given frame and eliminates headlamp toggling when sources are at the fringe of detection range . in the illustrated embodiment , it is expected that a vehicle headlight control system 12 will respond to a change in the state of light sources in the forward field of view of the vehicle in less than 0 . 5 seconds . an additional level of hysteresis may be provided by forcing the headlamps to stay in a low - beam state for a given number of seconds after a transition from high beams to low beams . the reverse would not occur ; namely , holding a high - beam state for a particular period to avoid annoyance to drivers of oncoming or leading vehicles . in the illustrated embodiment , red light sources , which have the spectral signature and intensity of taillights , are detected by determining that a “ red ” pixel , namely a pixel which is exposed to light in the visible red band , is both greater than a given multiple of the “ green ” and “ blue ” adjacent pixels , as well as being greater than a threshold and that white light sources , which are the spectral signatures of headlights , are detected by determining that “ red ,” “ green ,” and “ blue ” pixels are both within a particular intensity range of each other as well as being greater than a threshold . this double - testing helps to reduce false detection of light sources . however , it would be possible to detect red light sources only by looking at the intensity of “ red ” pixels and to detect white light sources by determining that an adjacent set of “ red ,” “ blue ,” and “ green ” pixels are all above a particular threshold . in the illustrated embodiment , spectral filtering is carried out in a manner which exposes each photosensing element in the photosensor array to a band of light falling within one of the primary ranges of the visible spectrum , namely red , green , or blue as illustrated in fig8 a . however , different bands in the frequency spectrum may be utilized including not only visible spectrum bands but invisible spectrum bands including infrared and ultraviolet bands as illustrated in fig8 b . the band selection could also be chosen from visible spectral regions that do not correspond with the primary spectrums . for example , the spectral filter may be selected in order to detect at the pixel level red light sources and the compliment of red light sources as illustrated in fig8 c . these binary indications could be utilized to detect red taillights by determining that the “ red ” pixel is greater than a threshold and greater than a number of multiples of the intensity sensed by the “ red compliment ” pixel adjacent thereto . likewise , a white light source indicative of oncoming headlights could be detected by determining that both the “ red ” pixel and the “ red compliment ” pixel adjacent thereto are both above a particular threshold and within a particular intensity range of each other . it may also be desirable to select bands that fall between primary spectrum regions or any other bands that may be desirable for a particular application . photosensing array 38 may be a charge couple device ( ccd ) array of the type commonly utilized in video camcorders and the like . alternatively , photosensing array 38 could be a cmos array of the type manufactured by vlsi vision ltd . ( vvl ) in edinburgh , scotland . additionally , a hybrid of the ccd and cmos technology may be employed . other potentially useful photosensing technologies include cid , mos , photo diodes , and the like . in an alternative embodiment , an imaging sensor module 14 b includes two or more pairs of photosensor arrays 38 b ( fig6 ). each photosensor array 38 b has an associated spectral filter array 40 b and optical device 36 b . in this embodiment , each array 38 b is operated by digital signal processor 58 b to have an exposure period that is set for detecting either oncoming headlights or leading taillights . in this manner , each frame of the scene captured by each array is utilized to detect a particular light source . this is in contrast to light - sensing module 14 a in fig5 in which each light source is detected in alternating frames . each spectral filter 40 b is identical , whereby each array 38 b is capable of detecting light sources having spectrum composition including red , green , and blue regions of the spectrum . however , the spectral filters may be custom configured to the particular application . this may result in a homogeneous composition or a more complex mosaic , especially where light sources are examined in three or more spectral regions . in yet an additional single lens system embodiment , an imaging sensor module 14 c includes three light - sensing arrays ( not shown ) and a spectral separation device overlying the light - sensing arrays which directs spectral bands to different arrays ( fig9 ). an example of such spectral separation device is a refracting optical splitter , such as dichroic mirrors or prisms . in this manner , each light - sensing array detects light in either the red or green or blue region of the spectrum . as such , imaging sensor module 14 c produces three output signals on a line 64 , each representing detected light in one of the red or green or blue spectral regions . the output signals on line 64 include frame - timing signals which are decoded by digital acquisition circuits 66 which produces a digital output signal 68 ′ indicative of intensity levels of adjacent red , green , and blue pixels . digital acquisition circuit 66 additionally produces a timing signal output 70 which is utilized by a detection control circuit 72 in order to supply synchronizing signals , at 74 , to imaging sensor module 14 c and digital acquisition circuit 66 . a control and timing signal 86 is produced by digital acquisition circuit 66 and supplied to detection circuits 76 and 78 and ambient detection circuit 84 in order to enable the circuits to distinguish between subsequent frames captured by the light - sensing modules . as with previously described embodiments , digital output signal 68 ′ is supplied to taillight detection circuit 76 , headlight detection circuit 78 , and ambient sense logic circuit 84 . the present invention is capable of identifying point sources of light in any particular location within the scene viewed forward of the vehicle . additional discrimination between oncoming headlights and leading taillights may be accomplished by taking into account the relative location of the source of light within the scene . for example , as best seen by reference to fig1 a , particular relationships have been discovered to exist between light sources of interest and their spatial location forward of the vehicle . oncoming headlights and leading taillights of interest can be characterized , at least in part , based upon their displacement from the central axis of the vehicle . on - axis light sources of interest can be at both close and far away separation distances . however , off - axis light sources may only be of interest if at a close separation distance from the vehicle . assuming for illustration purposes that headlights and taillights are of the same size , headlights and taillights of interest occupy an increasing spatial area as they move off axis . therefore , the resolution required to detect lights of interest may decrease off axis . additionally , the fact that close - up off - axis light sources have significant spatial area would allow image - processing techniques to be employed to discriminate between close - up off - axis light sources of interest and distant off - axis light sources , which are not of interest . this may be accomplished through customized optics or other known variations in pixel resolution . furthermore , headlights and taillights of interest are of greater intensity , because of their closeness , off axis . this allows an increase in intensity detection thresholds off axis without missing detection of such light sources . this increase in detection threshold and reduction in resolution off axis assists in avoiding false detection of light sources not of interest , such as a streetlights , building lights , and the like . in order to take into account this spatial differentiation , the present invention comprehends detecting light sources at a lower threshold centrally of the scene and at a higher threshold at the periphery of the scene . this may be accomplished either optically , or electronically , or both . optically , this may be accomplished by providing a non - uniform magnification to optical device 36 . for example , an optical device may have optical magnification at a central portion thereof and an optical attenuation at a peripheral region thereof . additionally , optical device 36 may have a relatively wide horizontal field of view and a relatively narrow vertical field of view . the narrow vertical field of view would tend to reduce the detection of street lights and other overhead light sources . in a preferred embodiment , optical device 36 is a lens that is made from injection - molded plastic . electronically , such spatial differentiation may be accomplished by establishing a higher threshold level for pixel intensity detection for pixels located at the periphery of the scene than for pixels located centrally of the scene . this would cause centrally positioned light sources to be detected at a lower intensity level than sources detected at the periphery of the scene . such spatial differentiation could also be accomplished by a non - symmetrical mapping of light to the sensor array , as illustrated in fig1 b , or by masking portions 98 a , 98 b , and 98 c , at the periphery of the scene , as illustrated in fig1 c , so that these portions are not sensed at all . spatial differentiation could also be accomplished by providing non - uniform pixel size . the present invention is exceptionally sensitive to sources of light having spectral signatures of oncoming headlights and leading taillights . by recognizing the spectral signature of the light sources , many non - relevant light sources may be ignored . by examining light sources pixel - by - pixel , relatively small light sources may be detected at great distances in order to dim the headlights well before they become a nuisance to the driver of the vehicle ahead of the control vehicle . this is accomplished , according to a preferred embodiment , by utilizing an imaging sensor made up of an array of photosensing elements in a compact design which responds to light sources in a scene forward of the vehicle . furthermore , such sensor preferably utilizes digital processing techniques which are well adapted for use with custom digital electronic circuity , avoiding the expense and speed constraints of general purpose programmable microprocessors . the present invention takes advantage of the spectral signatures both of light sources which must be detected in a headlight dimming control as well as the spectral signatures of light sources which must be rejected in a headlight dimming control . for example , federal regulations establish specific spectral bands that must be utilized in vehicle taillights ; namely red . furthermore , federal legislation prohibits the use of red light sources in the vicinity of a highway . lane markers , signs , and other sources of reflected light are all specified in a manner which may be readily identified by spectral signature . oncoming headlights , according to known technology , have a visible spectral signature which is predominantly white light . as light source technology evolves , the present invention facilitates detection of other spectral signatures of light sources in the future . the present invention is capable of utilizing spatial filtering to even further enhance the ability to identify light sources . by spatial filtering is meant consideration of not only whether a particular pixel , or pixel group , is detecting a light source having a particular spectral signature , but also what adjacent , or closely related , pixels or pixel groups , are detecting . for example , it can be concluded that very closely adjacent red and white light sources are not of interest as oncoming headlights or taillights . an example where such pattern could be observed is a streetlight observed with a system having imperfect color correction , which can produce a white light surrounded by a red halo . by evaluation of adjacent pixel groups , a closely proximate red light source and white light source can be identified as a streetlight and not either a headlight or a taillight . pattern recognition may be used to further assist in the detection of headlights , taillights , and other objects of interest . pattern recognition identifies objects of interest based upon their shape , reflectivity , luminance , and spectral characteristics . for example , the fact that headlights and taillights usually occur in pairs could be used to assist in qualifying or disqualifying objects as headlights and taillights . by looking for a triad pattern , including the center high - mounted stoplight required on the rear of vehicles , stoplight recognition can be enhanced . furthermore , object recognition can be enhanced by comparing identified objects over successive frames . this temporal processing can yield information on object motion and can be used to assist in qualifying or disqualifying objects of interest . spatial filtering can also be useful in identifying atmospheric conditions by detecting effects on light sources caused by particular types of atmospheric conditions . one such atmospheric condition is fog . a bright light source 102 is surrounded by a transition region 104 between the intensity of the light source and the black background ( fig1 a ). fog , or fine rain , tends to produce a dispersion effect around light sources which causes a series of transition regions 104 a , 104 b . . . 104 n which extend further from the light source ( fig1 b ). by placing appropriate limits on the size of the transition region , fog or light rain , or a mixture of both , or other related atmospheric conditions , can be detected . in response to such atmospheric conditions , vehicle headlight dimming control 12 may activate fog lights , inhibit switching to high beams , or perform other control functions . furthermore , fog , or fine rain , can be detected , or confirmed , by analyzing the effects of headlights 18 in the forward scene as reflected off of moisture particles . spatial filtering can also be used to detect rain on windshield 32 . this may be accomplished by performing statistical analyses between a pixel , or pixel group , and adjacent pixels or pixel groups . a view forward of a vehicle through a dry windshield would be sensed by an imaging sensor module as continuously varying differences between adjacent pixels , or pixel groups , assumed to be under constant illumination from light sources . when , however , a droplet of water or a snowflake is on windshield 32 , an effect is created which causes a lack of continuous variation of differences between adjacent pixels , or pixel groups . this has the tendency to reduce the first derivative of the pixel , a condition which can be determined by processing . processing can be used to determine the first derivative of an image captured by image - sensing module 14 by determining a measure of the entropy , or disarray , of a pixel , or pixel group , with respect to its neighbors . for example , an approximation of the first derivative for a pixel is :  ( p i )  xy = ∑ j = 1 n  ( pi - pj ) 2 n where pi is a given pixel and pj is one of 8 neighboring pixels . it should be apparent to those skilled in the art that the invention is capable of performing control functions other than controlling the dimming of the vehicle &# 39 ; s headlights . for example , spectral signature identifications may be utilized to detect the state of a traffic light to either warn the driver that a light has changed from green to yellow to red or to automatically decelerate and stop the vehicle . also , by sensing that the intensity of a leading taillight has abruptly increased , a condition where the leading vehicle is braking may be identified and suitable action taken . the invention may be utilized to identify particular traffic signs by their spectral signature as well as their geometric organization . for example , red octagons may be identified as stop signs , yellow triangles as caution signs , and the like . these capabilities are a result of the present invention providing a significant reduction in the amount of data to be processed because the image forward of the vehicle is captured in a manner which preselects data . preselection of data is accomplished by configuring the sensor array , including the optics thereof , to consider the spatial , as well as the spectral , characteristics of light sources . the present invention may be used to determine the environment in which the vehicle is operated . for example , a high level of “ non - qualified ” light sources ; namely , light sources that are not headlights or taillights , as well as “ qualified ” light sources can be used to determine a measurement of the activity level around the vehicle ; namely , that the vehicle is in an urban environment which may be a useful input for particular control algorithms . this may be accomplished as follows . an activity counter is established which represents a total number of pixels , or pixel groups , whose red , green , or blue components exceed a threshold . the threshold is set to a relatively low value , namely just above the noise floor . this counter , which registers any real detected source , is reset and retabulated every frame , preferably during the exposure period for detecting taillights . if the activity counter exceeds a particular value , then a high activity environment is detected . one use of this information would be to inhibit the control from switching the vehicle &# 39 ; s headlights from a low - beam state to a high - beam state unless a low activity condition exists for awhile . the activity counter may be used by the control in combination with a low - beam duration counter which records the number of frames that the system has been in a low - beam state . it is reset upon system power - up and at every transition from the high - to - low beam states . the control may be inhibited from switching the vehicle &# 39 ; s headlights to the high - beam state unless either the low - beam duration counter exceeds a value or the activity counter indicates a sustained low activity condition . the present invention can be used to detect lane markers in order to either assist in steering the vehicle or provide a warning to the driver that a lane change is occurring . the capability of the invention to detect rain on the vehicle &# 39 ; s windshield could be used to control the vehicle &# 39 ; s wipers both between off and on conditions and to establish a frequency of intermittent operation . changes and modifications in the specifically described embodiments can be carried out without departing from the principles of the invention which is intended to be limited only by the scope of the appended claims , as interpreted according to the principles of patent law including the doctrine of equivalents .