Apparatus and method for adaptively interpolating a full color image utilizing luminance gradients

Information

  • Patent Grant
  • 5382976
  • Patent Number
    5,382,976
  • Date Filed
    Wednesday, June 30, 1993
    31 years ago
  • Date Issued
    Tuesday, January 17, 1995
    29 years ago
Abstract
Adaptive interpolation is performed by apparatus operating upon a digitized image signal obtained from an image sensor having color photosites that generate a plurality of color values, but only one color per photosite. A digital processor obtains gradient values from the differences between luminance values in vertical and horizontal image directions. The gradient values are compared to a programmable threshold in order to select one of the directions as the preferred orientation for the interpolation of additional luminance values. The interpolation is then performed upon values selected to agree with the preferred orientation.
Description

FIELD OF INVENTION
This invention pertains to the field of electronic imaging, in particular to the generation of color images.
BACKGROUND OF THE INVENTION
A single-sensor camera detects the spatially varying intensity of light at image locations corresponding to a regular pattern of pixel locations on the sensor. In a color single-sensor camera, a color filter array overlies the sensor such that the sensor detects the intensity of colors at varying pixel locations according to a regular color filter array (CFA) pattern of, generally, three colors. Ordinarily, the CFA is a regular pattern of color filters for detecting only one color at each pixel location. Consequently, a single sensor color camera does not capture original data corresponding to all three colors for each pixel. Instead, it captures one color for each pixel, so that interpolation is required to construct three full color image planes for each image.
A typical camera system generates red, green, and blue colors. A color filter array interpolation algorithm is used to convert the image from a sparsely sampled color image (one color per pixel) to a full red, green, blue (RGB) image (i.e., RGB for each pixel). Most color filter array patterns have a high-frequency signal that is sampled more regularly, and more frequently, in the pattern than the other colors. In an RGB image, this high frequency signal is green; it is also referred to as the luminance signal, which represents the higher frequency detail and the maximum sensitivity of the human eye. Ordinarily, traditional bilinear interpolation is used to generate a full green image plane. For instance, the green data from green pixels on either side of a red or blue pixel (i.e., a "missing green" pixel) are used to interpolate the "missing green" value for the red or blue location. Then, traditional bilinear interpolation of color difference signals, also called chrominance signals, is utilized to interpolate the other colors of the CFA pattern for each pixel. A traditional method of this type is disclosed in U.S. Pat. No. 4,642,678.
A problem with such traditional methods is that they are prone to colored edge artifacts in the image. This problem can be treated through use of more sophisticated interpolation techniques, such as described in U.S. Pat. No. 4,630,307, which uses prior knowledge about features existing in the neighborhood. The image data is utilized to determine the appropriate algorithm, and the missing data is reconstructed using the selected algorithm. For example, in the '307 patent, different interpolation routines are used for edges, stripes, and corners. The particular feature is determined by comparing the pixel data with templates stored in a computer.
As pointed out before, the major shortcoming of the traditional procedures concerns the generation of artifacts at color edges. The sophisticated procedure, exemplified by the '307 patent, can reduce these artifacts, but at considerable cost and complexity in processing capability.
SUMMARY OF THE INVENTION
An object of the present invention is to modify prior, sophisticated algorithms so as to reduce color edge artifacts and to improve image sharpness, without unduly increasing cost and complexity.
A further object of the invention is to perform interpolation in a simplified, adaptive manner in order to reduce color edge artifacts, reduce noise in the image, and to improve image sharpness.
The above-stated objects are realized by apparatus for processing a digitized image signal obtained from an image sensor having color photosites that generate a plurality of color values, but only one color value for each photosite location. Such apparatus includes
a) means for storing the digitized image signal as an image-wise pattern of luminance and chrominance values, wherein some photosite locations lack luminance values; and
b) a processor operative with said storing means for generating a luminance value missing from a photosite location by the interpolation of an additional luminance value for such locations from luminance values at nearby photosite locations. In accordance with the invention the processor includes
a) means for generating gradient values from the differences between luminance values in at least two image directions;
b) means for comparing the gradient values to one or more thresholds;
c) means responsive to the threshold comparison for selecting one of said at least two image directions as a preferred orientation for the interpolation of an additional luminance value; and
d) means for interpolating the additional luminance value from luminance values selected to agree with the preferred orientation.
The principal advantage of the invention is that it can reduce color artifacts without adding undue complexity to the processing.





BRIEF DESCRIPTION OF THE DRAWINGS
The invention will be described in relation to the drawings, wherein:
FIG. 1 is a block diagram of an electronic still camera employing interpolation processing according to the invention;
FIG. 2 is a block diagram of the interpolation processing technique used in connection with the invention;
FIG. 3 is a diagram of the Bayer geometry for a color filter array; and
FIGS. 4A-4D show four phases of the Bayer geometry useful in explaining the interpolation technique.





DESCRIPTION OF THE PREFERRED EMBODIMENTS
Since single-sensor electronic cameras employing color filter arrays are well known, the present description will be directed in particular to elements forming part of, or cooperating more directly with, apparatus and method in accordance with the present invention. Elements not specifically shown or described herein may be selected from those known in the art.
Referring initially to FIGS. 1 and 2, an electronic still camera is divided generally into an input section 2 and an interpolation and recording section 4. The input section 2 includes an exposures section 10 for directing image light from a subject (not shown) toward an image sensor 12. Although not shown, the exposure section 10 includes conventional optics for directing the image light through a diaphragm, which regulates the optical aperture, and a shutter, which regulates exposure time. The sensor 12, which includes a two-dimensional array of photosites corresponding to picture elements of the image, is a conventional charge-coupled device (CCD) using either well-known interline transfer or frame transfer techniques. The sensor 12 is covered by a color filter array (CFA) 13, known as the Bayer array, which is described in U.S. Pat. No. 3,971,065 and herewith incorporated by reference. The Bayer geometry is shown in FIG. 3, wherein each color covers a photosite, or picture element (pixel), of the sensor. In particular, chrominance colors (red and blue) are interspersed among a checkerboard pattern of luminance colors (green). The sensor 12 is exposed to image light so that analog image charge information is generated in respective photosites. The charge information is applied to an output diode 14, which converts the charge information to analog image signals corresponding to respective picture elements. The analog image signals are applied to an A/D converter 16, which generates a digital image signal from the analog input signal for each picture element. The digital signals are applied to an image buffer 18, which may be a random access memory (RAM) with storage capacity for a plurality of still images.
A control processor 20 generally controls the input section 2 of the camera by initiating and controlling exposure (by operation by the diaphragm and shutter (not shown) in the exposure section 10), by generating the horizontal and vertical clocks needed for driving the sensor 12 and for clocking image information therefrom, and by enabling the A/D converter 16 in conjunction with the image buffer 18 for each signal segment relating to a picture element. (The control processor 20 would ordinarily include a microprocessor coupled with a system timing circuit.) Once a certain number of digital image signals have been accumulated in the image buffer 18, the stored signals are applied to a digital signal processor 22, which controls the throughput processing rate for the interpolation and recording section 4 of the camera. The processor 22 applies an interpolation algorithm to the digital image signals, and sends the interpolated signals to a conventional, removable memory card 24 via a connector 26.
Since the interpolation and related processing ordinarily occurs over several steps, the intermediate products of the processing algorithm are stored in a processing buffer 28. (The processing buffer 28 may also be configured as part of the memory space of the image buffer 18.) The number of image signals needed in the image buffer 18 before digital processing can begin depends on the type of processing, that is, for a neighborhood interpolation to begin, a block of signals including at least a portion of the image signals comprising a video frame must be available. Consequently, in most circumstances, the interpolation may commence as soon as the requisite block of picture elements is present in the buffer 18.
The input section 2 operates at a rate commensurate with normal operation of the camera while interpolation, which may consume more time, can be relatively divorced from the input rate. The exposure section 10 exposes the sensor 12 to image light for a time period dependent upon exposure requirements, for example, a time period between 1/1000 second and several seconds. The image charge is then swept from the photosites in the sensor 12, converted to a digital format, and written into the image buffer 18 during a standard rate, which may, for example, correspond to a standard video field or frame rate. The repetition rate of the driving signals provided by the control processor 20 to the sensor 12, the A/D converter 16 and the buffer 18 are accordingly generated to achieve such a transfer. The processing throughput rate of the interpolation and recording section 4 is determined by the speed of the digital signal processor 22.
One desirable consequence of this architecture is that the processing algorithm employed in the interpolation and recording section may be selected for quality treatment of the image rather than for throughput speed. This, of course, can put a delay between consecutive pictures which may affect the user, depending on the time between photographic events. This is a problem since it is well known and understood in the field of still video recording that a digital still camera should provide a continuous shooting capability for a successive sequence of images. For this reason, the image buffer 18 shown in FIG. 1 provides for storage of a plurality of images, in effect allowing a series of images to "stack up" at video rates. The size of the buffer is established to hold enough consecutive images to cover most picture-taking situations.
An operation display panel 30 is connected to the control processor 20 for displaying information useful in operation of the camera. Such information might include typical photographic data, such as shutter speed, aperture, exposure bias, color balance (auto, tungsten, fluorescent, daylight), field/frame, low battery, low light, exposure modes (aperture preferred, shutter preferred), and so on. Moreover, other information unique to this type of camera is displayed. For instance, the memory card 24 would ordinarily include a directory signifying the beginning and ending of each stored image. This would show on the display 30 as either (or both) the number of images stored or the number of image spaces remaining, or estimated to be remaining.
The digital signal processor 22 interpolates each still video image stored in the image buffer 18 according to the interpolation technique shown in FIG. 2. The interpolation of missing data values at each pixel location follows the sequence shown in FIG. 2; that is, first, the high frequency information for the "missing green" pixels (i.e., the red and blue pixel locations) are interpolated to improve the luminance rendition and, secondly, the color difference information is interpolated at the high frequency locations by traditional bilinear methods to generate the other color of the CFA pattern. In the implementation shown in FIG. 2, an adaptive interpolation technique is used in the luminance section 36 for optimizing the performance of the system for images with horizontal and vertical edges. "Missing green" pixels are adaptively interpolated either horizontally, vertically or two-dimensionally depending upon the gradient established between the green pixel locations in the vertical and horizontal directions around the "missing green" pixel.
The first step is therefore to obtain gradient values, as represented by the block 40, in at least two image directions, for instance, horizontal and vertical directions. In each direction, the gradients comprise differences between luminance values at spatially-displaced pixel locations. The horizontal and vertical gradients of the luminance (green) pixels are then evaluated relative to a threshold value in an evaluation block 42, and a preferred orientation for the interpolation of an additional luminance value is selected from the two directions. The luminance values are selected to agree with the preferred orientation, and the missing location is then averaged in block 44 from the two luminance(green) locations situated along whichever gradient is below the threshold. (Four pixels are averaged when both gradients are less than or greater than the selected threshold level.) Then, the color difference is calculated in a chroma section 38 by subtracting the interpolated green value at each chrominance pixel location (block 46) from the actual color pixel for that location. Finally, the color difference data for each luminance pixel location is interpolated using two-dimensional bilinear interpolation in the block 48. The data at this point may be reconstructed into its original components (RGB) or left as color-difference signals for further processing.
In interpolating green data for pixel locations (red and blue) where green data is missing, the image gradients in horizontal and vertical directions are compared to a threshold level, thereby adaptively adjusting the processing to suit the image data. Moreover, the threshold level is itself adjustable to categorize the area of the image being interpolated. In this way, the interpolation may be adjusted to systems having various noise levels and to sensors having different modulation transfer functions.
The four categories of image data determined from these gradient evaluations are:
A. For (Horizontal Gradient>Threshold) and (Vertical Gradient>Threshold), the image areas represent high scene spatial detail. The four pixels are averaged since there is no evident scene structure.
B. For (Horizontal Gradient<=Threshold) and (Vertical Gradient>Threshold), the image areas represent predominately horizontal scene structure. Interpolation is performed by averaging horizontally to follow the scene contours and to minimize error caused by scene edges. This also maximizes image sharpness since scene contour information is not "averaged out" of the image.
C. For (Horizontal Gradient>Threshold) and (Vertical Gradient<=Threshold), the image areas represent predominately vertical scene structure. Interpolation is performed by averaging vertically to follow the scene contours and to minimize error caused by scene edges. This also maximizes image sharpness since scene contour information is not "averaged out" of the image.
D. For (Horizontal Gradient<=Threshold) and (Vertical Gradient<=Threshold), the image areas represent little scene structure. The four pixels are averaged since this reduces the noise level of the interpolated pixel locations. This performs some "noise" reduction in the flat-field areas of the image.
Although not limited to any particular CFA pattern, the interpolation technique has been applied to an RGB Bayer color filter array, as shown in FIG. 3. One characteristic of the Bayer array is that it contains a repetition of RGB in a characteristic Bayer block form, as follows ##STR1## with two luminances (greens) always on one diagonal, and two chromas (red and blue) on the other diagonal. The object of the interpolation is to obtain all three colors (RGB) for each pixel location.
In FIGS. 4A-4D, the characteristic Bayer block is shown in four phases (as outlined) with respect to one pixel (circled) that is to be interpolated. Each pixel is identified by its row and column position. In each phase, the notation G(X,Y), R(X,Y) and B(X,Y) are values measured by the image sensor 12 for given horizontal displacements (X) and vertical displacements (Y) from the interpolated (circled) pixel. Adap G(X,Y) is an interpolated green value, using the following algorithm:
For Gdiff-hor=.vertline.G(-1,0)-G(1,0).vertline. Gdiff-ver=.vertline.G(0,-1)-G(0,1).vertline. Threshold=Predetermined value
If (Gdiff-hor<Threshold) and (Gdiff-ver<Threshold)
Or (Gdiff-hor>Threshold) and (Gdiff-ver>Threshold) Then .vertline.Adap G(X,Y)=[G(-1,0)+G(1,0)+G(0,-1)+G(0,1)]/4.vertline.
If (Gdiff-hor<Threshold) and (Gdiff-ver>Threshold) Then .vertline.Adap G(X,Y)=[G(-1,0)+G(1,0)]/2.vertline.
If (Gdiff-hor>Threshold) and (Gdiff-ver<Threshold) Then .vertline.Adap G(X,Y)=[G(0,-1)+G(0,1)]/2.vertline.
As specifically applied to the four phases of FIGS. 4A-4D, the processing algorithms are as follows.
______________________________________Phase 00 (FIG. 4A)G = G(0,0)B = 0.5 * [B(0,-1) - Adap G(0,-1) + B(0,1) - AdapG (0,1)] + G (0,0)R = 0.5 * [R(-1,0) - Adap G(-1,0) + R(1,0) - AdapG(1,0)] + G(0,0)Phase 01 (FIG. 4B)R = R(0,0)G = Adap G(0,0)B = 0.25 * [B(-1,-1) - Adap G(-1,-1) + B(-1,1) -Adap G(-1,1) + B(1,-1) - Adap G(1,-1) +B(1,1) - Adap G(1,1)] + Adap G(0,0)Phase 10 (FIG. 4C)B = B(0,0)G = Adap G(0,0)R = 0.25 * [R(-1,-1) - Adap G(-1,-1) + R(-1,1) -Adap G(-1,1) + R(1,- 1) - Adap G(1,-1) +R(1,1) - Adap G(1,1)] + Adap G(0,0)Phase 11 (FIG. 4D)G = G(0,0)R = 0.5 * [ R(0,- 1) - Adap G(0,-1) + R(0,1) - AdapG(0,1)] + Adap G(0,0)B = 0.5 * [B(-1,0) - Adap G(-1,0) + B(1,0) -AdapG(1,0)] + Adap G(0,0)______________________________________
It should be clear from the several phases that green (luminance) is adaptively interpolated for the phases lacking green data (Phases 01 and 10) for the interpolated (circled) pixel. Red or blue (chrominance) is directly available from the sensor for phases 01 and 10. Red and blue (chrominance) is bilinearly interpolated in the other cases by reference to color differences (R-G, B-G) from locations in the neighborhood of the interpolated (circled) pixels. The color differences are then summed with the luminance for the interpolated (circled) pixel to obtain red and blue.
While the interpolation technique of the invention has been described for use in an electronic camera, it may be incorporated as part of other apparatus for processing color data from an image sensor. For instance, the actual data from the image sensor 12 may be downloaded directly to the memory card 24, and the interpolation processing may take place subsequently when the card 24 is inserted into a player apparatus. The interpolation technique shown in FIG. 2 will then take place in the player. Such a "player" may in practice be a desk-top computer, and the interpolation technique of FIG. 2 is performed by a program in the computer.
The invention has been described in detail with particular reference to a presently preferred embodiment, but it will be understood that variations and modifications can be effected within the spirit and scope of the invention.
Claims
  • 1. Apparatus for processing a digitized image signal obtained from an image sensor having color photosites that generate a plurality of color values, but only one color value for each photosite location, said apparatus comprising:
  • means for storing the digitized image signal as a pattern of luminance and chrominance values, wherein some photosite locations lack luminance values;
  • a processor operative with said storing means for generating an additional luminance value missing from a photosite location by the interpolation of the additional luminance value for such locations from luminance values at nearby photosite locations, said processor including
  • means for generating gradient values from the differences between luminance values in at least two image directions;
  • means for comparing the gradient values to one or more thresholds;
  • means responsive to the threshold comparison for selecting one of said at least two image directions as a preferred orientation for the interpolation of the additional luminance value; and
  • means for interpolating the additional luminance value from luminance values selected to agree with the preferred orientation.
  • 2. Apparatus as claimed in claim 1 wherein said one or more thresholds are adjustable.
  • 3. Apparatus as claimed in claim 1 wherein said at least two image directions are horizontal and vertical directions.
  • 4. Apparatus as claimed in claim 1 wherein said pattern of luminance and chrominance comprises chrominance values interspersed in a checkerboard pattern of luminance values.
  • 5. Apparatus as claimed in claim 4 wherein said luminance color is green, and said chrominance colors are red and blue.
  • 6. A method for interpolating missing luminance values from a digitized image signal obtained from a color image sensor having photosites that generate a pattern of actual luminance and chrominance values, one actual value for each photosite location, said method comprising the steps of:
  • obtaining gradient values from the differences between actual luminance values in vertical and horizontal image directions;
  • comparing the gradient values to a predetermined threshold;
  • selecting the image direction, in which the comparing step indicates scene structure, for the interpolation of the missing luminance values; and
  • interpolating each missing luminance value from actual luminance values at nearby locations corresponding with the selected direction, and thereby with the scene structure.
  • 7. Apparatus as claimed in claim 4 wherein the gradient values are developed from luminance values from photosites immediately adjacent the photosite for which said additional luminance value is interpolated.
  • 8. A method as claimed in claim 6 wherein the gradient values are developed from luminance values from photosites immediately adjacent the photosite for which said additional luminance value is interpolated.
US Referenced Citations (4)
Number Name Date Kind
4630307 Cok Dec 1986
4642678 Cok Feb 1987
5032910 Cok Oct 1989
5040064 Cok Aug 1991
Non-Patent Literature Citations (2)
Entry
Copending U.S. Patent Application entitled "Apparatus and Method for Adaptively Interpolating a Full Color Image Utilizing Chrominance Gradients", in the name of Claude Laroche and Mark Prescott on even date herewith.
Kodak Professional DCS 200 Digital Camera System, Programmer's Reference Manual, Dec. 1992.