A test efficient method of classifying image quality of an optical sensor using three categories of pixels

Abstract: A multi-threshold optical binning method for classifying the image quality of an optical sensor (104) is presented. In accordance with the invention, a sensor tester (102) causes a sensor pixel image (105) to be generated by a sensor under test (104). The sensor pixel image (105) is comprised of a plurality of pixels, each represented by an associated quantized intensity level. The quantized intensity level of a pixel may fall into one of a first pixel class, a second pixel class, or a third pixel class, for example, a dark pixel class, a dim pixel class, and an acceptable pixel class. An image filter (106) processes the sensor pixel image (105), filtering out all pixels that fall within the acceptable pixel class, to generate a defective pixel map (108). The defective pixel map (108) includes those pixels which have a quantized intensity level that falls within the first and/or second pixel class but not the third pixel class.

Description: Field of the Invention The present invention pertains generally to image processing, and more particularly to a method and apparatus for classifying the image quality of an optical sensor using additional image characteristic thresholds. Background of the Invention A digital image is an array of pixels, each of which is digitally quantized into an intensity level. Digital images are known to require a significant amount of storage area. For example, in a black-and-white image, a digital image comprising an array of 512 x 512 pixels, each quantized into a gray level represented by 8 bits, requires 0.25 megabytes of storage. An increase in the sampling rate (i.e., number of pixels in the array) and/or an increase in the quantization level (i.e., the number of bits, or gray levels, that represent the image) further increases the amount of required storage for an image. The use of color, which is typically formed by varying the intensity levels of a combination of the three primary colors, red (R), green (G), and blue (B), and collectively known in the industry as the RGB components, also increases the amount of storage required. Accordingly, due to the large amount of data generated for a single image, the use of high-resolution digital images in computer applications was generally, until recently, somewhat limited. With the leaps in amount of processing power and data storage capability in modem computer systems over the past few years, along with the lower costs and therefore increased availability to more end-users, the use of higher-resolution (represented by a larger number of pixels), higher-quality (represented by increased number quantization levels), and even color, digital images has become more and more viable. At the same time, leaps in modem digital telecommunication system technology, including improvements in network bandwidth and network switching hardware for both the Internet and digital cellular systems, has increased both business and personal communication over networked computers. This has increased the demand for, and use of, digital images as a part of modem remote communication. With the increased use of digital images in computer applications and communication, increased attention has been focused on the quality of the image. Digital images may be generated in a number of ways, including by way of microdensitometers, flying spot scanners, image dissectors, vidicon cameras, and photosensitive solid-state array sensors. Microdensitometers and flying spot scanners receive input in the form of analog transparencies such as a film negative or a photograph, and digitize them into a digital pixel file. With image dissectors and vidicon cameras, an image is focused on a photosensitive tube whose response is proportional to the incident light pattern. The image dissector employs an electromagnet which is used to deflect the entire beam past a pinhole located in the back of the dissector tube. The pinhole lets through only a small cross-section of the beam which is quantized into a single pixel. The electromagnet must move the beam for each discrete pixel desired. With the vidicon camera, the image focused on the tube surface produces a pattern of varying conductivity that matches the distribution of intensity in the optical image. The conductivity pattern is scanned by an electron beam which converts into a signal proportional to the intensity pattern of the input image. This signal is then quantized to produce the digital image. By far the most common method of generating a digital image is via solid-state arrays. Solid-state array sensors comprise an array of discrete silicon imaging elements called "photosites", and are generally organized into one of two geometrical arrangements. The first, known as a "line-scan sensor", comprises a row of photosites and produces a two-dimensional image by relative motion between the scene and the detector. The second, known as an "area sensor" is a two-dimensional matrix of photosites and captures the image in a similar manner as a vidicon camera. In the manufacturer of digital image sensors, the quality of the sensor is often categorized into different levels of classifications that are based on the image quality. For example, in solid-state array sensors, it is not uncommon to incur a defect in one or more of the photosites composing it, and a determination must be made as to whether the sensor should be kept, and or discarded. The classifications reflect the quality of the image produced by the array sensor, and are used to indicate the appropriate applications for which a particular array sensor is suited. FIG. 1 is a two-dimensional pixel diagram illustrating a blank image 10 that contains several common types of defects. Defective pixels are darkened in this illustration. One type of defect is known as "point" defect. A point defect is a defect in a single pixel, such as pixels 12 and 20, with no defects in all of its N-nearest neighbor pixels. In a two-dimensional array, a pixel p at coordinates (x, y) has four horizontal and vertical neighbors located a unit distance from p at (x+1, y, (x-1, y), (x, y+1), and (x, y-1), and four diagonal neighbors located a unit distance from p at (x+1, y+1), (x+1, y-1), (x-1, y+1), and (x-1, y-1). As will be appreciated by those skilled in the art, pixels located along the borders of the image do not have a full set of neighbors since the position of some of their calculated neighbors reside outside the image. A common method of specifying image quality is based on setting a single lower (dark) and/or upper (bright) threshold limit relative to the mean for dark and/or bright pixel intensity. FIG. 2 is a graph illustrating a prior art single-threshold defective pixel system. In this system, pixels with intensities below the dark and/or above the bright threshold limit are flagged as defects. FIG. 3(a) is a perspective view, and FIG. 3(b) is a side view, of the pixel image of FIG. 1, where the quantized intensity level is plotted along the z-axis. Image quality is categorized into classifications based on the size of the largest allowed cluster and the number of single pixel and cluster defects. Typically a point defect, illustrated at 12 and 20 in FIGS. 1 and 3, is imperceptible by the naked eye. Accordingly, a sensor with one or a few point pixels, while it does contain defects, may actually be of high enough quality for many applications and therefore could be used for some applications. Another type of defect is known as a "cluster" defect. A cluster defect is a grouping of physically adjacent point defects, such as those collective grouping of pixels shown at 14. A disadvantage of the single-threshold method is that it may fail to detect local non-uniformity or "area defects" that are easily observed by the human eye. For example, a portion of the collective pixels at 16 and 18 are above the dark threshold level, so a cluster defect is not detected using the single-threshold method. However, a portion of the neighboring pixels are sufficiently dim that when viewed collectively by the human eye, an area defect is easily observable. Setting a tighter dark (bright) threshold level aids in the area defect detection and cluster description, but this results in a larger number of defects and a definition of a single pixel defect that is not perceived as a defect under normal viewing conditions. One method for basing classifications on human perception is by detecting local non-uniformity by computing near-neighbor density averages over small subsets of the total array and setting limits on the local average. However, computing local averages requires the collection, and manipulation, of large amounts of data, which results in lengthy testing time and high testing costs. In US-A-4,858,013 a solid state imaging device is disclosed which includes a solid state sensor for converting an external scene into electrical signals, an A/D converter for converting output signals from the solid state sensor into digital signals, a frame memory for storing offset signals of the solid state sensor, and an arithmetic unit for subtracting the offset signals stored in the frame memory from the digital signals of the A/D converter. The signals from the arithmetic unit are output through a D/A converter and a synchronization adding circuit. In the thus constituted solid state imaging device, a judgment as to the level of the offset signal from the frame memory is made. If this level is outside a predetermined range, it is judged that there is a defective pixel. Interpolation is then effected with neighboring pixel signals in a spatial processor. It is the object of the present invention to provide an improved image classification apparatus and method that is based on human perception without the associated high test costs. This object is achieved by an image filter according to claim 1, and by a method according to claim 9. Summary of the Invention The present invention is a novel method and apparatus for classifying the image quality of an image generated by an optical sensor under test. In accordance with the invention, a sensor tester causes a sensor pixel image to be generated by a sensor under test. The sensor pixel image is comprised of a plurality of pixels, each represented by an associated quantized intensity level. The quantized intensity level of a pixel may fall into one of a definitely defective pixel class, a suspect pixel class, or an acceptable pixel class, for example, a dark pixel class, a dim pixel class, and an acceptable pixel class. An image filter processes the sensor pixel image, filtering out all pixels that fall within the acceptable pixel class, to generate a defective pixel map. The defective pixel map includes those pixels which have a quantized intensity level that falls within the definitely defective and suspect pixel class but not the acceptable pixel class. The invention allows a binning processor to process only those pixels from the sensor pixel image that are either definitely defective (i.e., they lie within the first pixel class) or that are suspect (i.e., they fall within the second pixel class). Using local average density calculations on the filtered pixels only, a binning processor can quickly classify the image quality of the sensor under test, as well as identify area defects. Brief Description of the Drawing The invention will be better understood from a reading of the following detailed description taken in conjunction with the drawing in which like reference designators are used to designate like elements, and in which: FIG. 1 is a two-dimensional pixel diagram illustrating a blank image 10 that contains several common types of defects; FIG. 2 is a graph illustrating a prior art single-threshold defective pixel system; FIG. 3(a) is a perspective view of the pixel image of FIG. 1; FIG. 3(b) is a side view of the pixel image of FIGS. 1 and 3(a); FIG. 4 is an optical sensor testing system 100 in accordance with the invention; FIG. 5 is a graph illustrating the two-threshold defective pixel system of the invention; FIG. 6 is a block diagram of one embodiment of an image filter in accordance with the invention; FIG. 7(a) is a perspective view of the pixel image of FIG. 1, illustrating the advantages obtained using the two-threshold method of the invention; FIG. 7(b) is a side view of the pixel image of FIGS. 1 and 7(a); and FIG. 8 is a flowchart of one embodiment of a method in accordance with the invention. Detailed Description A novel method and apparatus for classifying the image quality of an optical sensor is described in detail hereinafter. While the invention is described in the context of an optical sensor, those skilled in the art will appreciate that the method and apparatus of the invention may be applied in any digital image binning application. Turning now to FIG. 4, there is presented an optical sensor testing system 100. System 100 includes a sensor tester 102 which tests an optical sensor under test 104. Sensor tester 102 causes a sensor pixel image 105 to be generated from sensor under test 104. In one embodiment, standard imaging conditions used for optical tests employ a tungsten halogen lamp (not shown) to uniformly illuminate the photosite array of sensor under test 104. Sensor pixel image 105 comprises a quantized intensity level for all of the pixels, or a subset thereof, in the image generated by the sensor under test 104. An image filter 106 processes each pixel of sensor pixel image 105, comparing the quantized intensity level of the pixel to the requirements of a dim (brighter) pixel class and a dark (brightest) pixel class as illustrated in FIG. 5. Those pixels in sensor pixel image 105 that meet the requirements of a dim (brighter) pixel class and/or a dark (brightest) pixel class are added to a defective pixel map 108 associated with the sensor under test 104. Image filter 106 generally comprises a dim (brighter) pixel class comparator 166, shown in FIG. 6, and a dark (brightest) pixel class comparator 168 that compares the quantized intensity level of each pixel to be processed to the class parameters (i.e., the delimiting intensity threshold levels) to determine whether a given pixel falls within its respective class. Image filter 106 may be implemented as a software process or in hardware using a set of dim (brighter) and dark (brightest) comparator circuits. A defective pixel map generator 170 accumulates an entry for each pixel that falls within either the dark (brighter) or dim (brightest) pixel class. In the preferred embodiment, each entry in defective pixel map 108 includes the coordinates and dim/dark (brighter/brightest) classification of its associated pixel. When the entire sensor pixel image 105 has been processed by image filter 106, defective pixel map 108 associated with the particular sensor under test 104 contains a subset of the entire set of image pixels of sensor pixel image 105 that fall into one of the dim/dark (brighter/brightest) classifications. In a typical manufacturing process, image filter 106 thus operates to filter out all "good" pixels from sensor pixel image 105 to generate defective pixel map 108, thereby eliminating most (typically 99%) of the pixels that binning processor 110 must process. Furthermore, because even a relatively small array, such as video graphics array (VGA), represents a very large (307,200) pixel count, the time required to upload the sparse pixel information from sensor tester 102 to a remotely located binning processor 110 is greatly reduced. FIG. 7(a) is a perspective view, and FIG. 7(b) is a side view, of the pixel image of FIG. 1, illustrating the different manufacturing yield results that would be obtained using the two-threshold method of the invention. In this example, the dark threshold level can be relaxed such that pixel 20, which is of an intensity level that would be imperceptible to the human eye, is not flagged as a defect, yet pixel 12, which is sufficiently dark that it could be perceived, is captured as a defect. In addition, because the invention calls for a new dim pixel class, the detection of area defects becomes much easier for a binning processor 110. A number of adjacent or near-neighbor dim pixels may signify an area defect that is perceptible to the human eye, that otherwise would not be detected using the prior art single-threshold method. Neighbor distance defines when point defects are combined into a cluster defect. By using a large neighbor distance a sparse set of dim pixels, which may not be detected under a single-threshold model, is combined into a cluster. The severity of a cluster is evaluated in terms of its darkness and its size. An area defect occurs when the average intensity is exceeded for large clusters. For small cluster sizes, darkness is described in terms of the number of dark and dim pixels. Binning processor 110 processes defective pixel map 108 to determine which image classification the sensor under test 104 falls into. Binning processor 110 may be implemented in hardware or software, and may reside within, or remote from, sensor tester 102. Image classification is manufacturer specific, and the gradings and criteria used to determine each grade level typically vary from manufacturer to manufacturer. However, with the detection of different intensity level classifications, such as the dim (brighter) and dark (brightest) classifications, detected in the present invention, binning processor 110 may be implemented with more intelligence to classify images based on human perception. For example, binning processor 110 performs local average density calculations only on the pixels contained in the defective pixel map 108 to detect area defects that might otherwise go undetected. Furthermore, because binning processor 110 processes only a minute subset of pixels from the full image, more sophisticated intelligence may be implemented yet still reduce the test time over prior art image classification techniques. FIG. 8 is a flowchart of one embodiment of a method performed by image filter 106. In a step 302 a pixel is obtained from sensor pixel image 105. The pixel intensity value is compared to a dim (brighter) threshold level, which is brighter (darker) in intensity than the dark (brightest) threshold level. A determination is made as to whether the pixel intensity value is at or below the dim (brighter) threshold level in step 306. If not, proceed to step 318. If it is, the pixel intensity value is compared to the dark (brightest) threshold level in step 308. In step 310, a determination is made as to whether the pixel intensity value is at or below the dark (brightest) threshold level. If the pixel intensity value is at or below the dark (brightest) threshold level, the pixel is marked as belonging to the "dark" pixel class in step 312. If the pixel intensity value is above the dark (brightest) threshold level, the pixel is marked as belonging to the "dim" pixel class in step 314. Because the pixel was classified as either "dark" or "dim" in respective step 312 or 314, the pixel is added to the defective pixel map 108 in step 316. If sensor pixel image 105 contains more pixels as yet to be processed by image filter 106, as determined in step 318, steps 302 through 318 are repeated. When all pixels in sensor pixel image 105 have been processed, method 300 is complete. Those skilled in the art will appreciated that although the method 300 serially processes pixels of sensor pixel image 105, the pixels may, in the alternative, be processed in parallel. Parallel processing of the pixel image is especially appropriate if the pixel intensity values of sensor under test 104 are available in parallel via multiple pins. As described in detail above, the present invention provides an efficient technique for classifying images according to human perception using only a sparse data set.

Claims: An image filter adapted to pre-process a sensor pixel image (105) generated by a sensor under test (104), said sensor pixel image (105) comprising a plurality of pixels, each of said pixels represented by an associated quantized intensity level, said quantized intensity level being within one of a definitely defective pixel class, a suspect pixel class, or an acceptable pixel class, said image filter comprising: an image filter input which receives said plurality of pixels of said sensor pixel image (105); a filter (106) which determines which one of said three pixel classes each of said quantized intensity levels associated with said plurality of pixels of said sensor pixel image (105) falls within; and an image filter output which outputs for the definitely defective pixel class, the suspect pixel class but not for the acceptable pixel class which of said plurality of pixels falls within said respective pixel class. An image filter in accordance with claim 1, comprising: a defective pixel map generator responsive to said indications from said image filter output to generate a defective pixel map (108), said defective pixel map (108) comprising a subset of said plurality of pixels of said sensor pixel image (105) which each have a quantized intensity level that falls within the definitely defective pixel class, the suspect pixel class but not for the acceptable pixel class. An image filter in accordance with claim 2, comprising: a binning processor (110) which processes said defective pixel map (108) to determine an image quality classification for said sensor under test (104), said image quality classification indicating which of a plurality of quality categories said sensor under test (104) belongs to. An image filter in accordance with claim 1, 2 or 3, comprising: a sensor tester (102) which causes said sensor pixel image (105) to be generated by said sensor under test (104). An image filter in accordance with claim 1, 2, 3 or 4, wherein: said filter (106) comprises: a first comparator (166) for determining whether said quantized pixel intensity falls within said definitely defective pixel class; and a second comparator (168) for determining whether said quantized pixel intensity falls within said suspect pixel class. An image filter in accordance with claim 1, 2, 3, 4 or 5, wherein: said definitely defective pixel class comprises a dark pixel class comprising pixels below a dark threshold level; said suspect pixel class comprises a dim pixel class comprising pixels below a dim threshold level and above said dark threshold level. An image filter in accordance with claim 1, 2, 3, 4 or 5, wherein: said definitely defective pixel class comprises a brightest pixel class comprising pixels above a brightest threshold level; said suspect pixel class comprises a brighter pixel class comprising pixels above a brighter threshold level and below said brightest threshold level. An image filter in accordance with claim 1, 2, 3, 4 or 5, wherein: said definitely defective pixel class comprises: a dark pixel class comprising pixels below a dark threshold level; and a brightest pixel class comprising pixels above a brightest threshold level; and said suspect pixel class comprises: a dim pixel class comprising pixels below a dim threshold level and above a dark threshold level; and a brighter pixel class comprising pixels above a brighter threshold level and below said brightest threshold level. A method for classifying an image quality of an image generated by an optical sensor under test (104), comprising: obtaining a sensor pixel image (105) generated by said sensor under test (104), said sensor pixel image (105) comprising a plurality of pixels, each of said plurality of pixels represented by an associated quantized intensity level, said quantized intensity level being within one of a definitely defective pixel class, a suspect pixel class, or an acceptable pixel class; and generating a defective pixel map (108) by an image filter adapted to pre-process said sensor pixel image (105), said defective pixel map (108) indicating for the definitely defective pixel class, the suspect pixel class but not for the acceptable pixel class which of said plurality of pixels falls within said respective class. A method in accordance with claim 9, wherein: said generating step comprises: obtaining a quantized intensity level associated with an unprocessed one of said plurality of pixels; comparing said quantized intensity level to a set of predetermined definitely defective pixel class parameters which define said definitely defective pixel class; determining whether said quantized intensity level falls within said definitely defective pixel class; comparing said quantized intensity level to a set of predetermined suspect pixel class parameters which define said suspect pixel class; determining whether said quantized intensity level falls within said suspect pixel class; adding said unprocessed one of said plurality of pixels to said defective pixel map (108) if said quantized intensity level associated with said unprocessed one of said plurality of pixels falls within either said definitely defective pixel class or said suspect pixel class; and repeating said obtaining step through said adding step if said plurality of pixels comprises one or more unprocessed pixels.

Inventors: PERINO STANLEY C, PERINO, STANLEY C.
Applicants: AGILENT TECHNOLOGIES INC, AGILENT TECHNOLOGIES, INC. (A DELAWARE CORPORATION)
Application year: 1999
Main classification: G06T7
IPC codes: H04N5, G06T7, G01M11