USRE42555E1 - Merged pipeline for color interpolation and edge enhancement of digital images - Google Patents

Merged pipeline for color interpolation and edge enhancement of digital images Download PDF

Info

Publication number
USRE42555E1
USRE42555E1 US11/267,917 US26791705A USRE42555E US RE42555 E1 USRE42555 E1 US RE42555E1 US 26791705 A US26791705 A US 26791705A US RE42555 E USRE42555 E US RE42555E
Authority
US
United States
Prior art keywords
color
pixel
values
pixels
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
US11/267,917
Inventor
Tao Lin
Vincent Chor-Fung Yu
Tianhua Tang
Beong-Kwon Hwang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xylon LLC
Original Assignee
Faust Communications LLC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Faust Communications LLC filed Critical Faust Communications LLC
Priority to US11/267,917 priority Critical patent/USRE42555E1/en
Assigned to NEOMAGIC CORP. reassignment NEOMAGIC CORP. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HWANG, BEONG-KWON, LIN, TAO, TANG, TIANHUA, YU, VINCENT CHOR-FUNG
Assigned to FAUST COMMUNICATIONS, LLC reassignment FAUST COMMUNICATIONS, LLC ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: NEOMAGIC CORPORATION
Application granted granted Critical
Publication of USRE42555E1 publication Critical patent/USRE42555E1/en
Assigned to XYLON LLC reassignment XYLON LLC MERGER (SEE DOCUMENT FOR DETAILS). Assignors: FAUST COMMUNICATIONS LLC
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4015Demosaicing, e.g. colour filter array [CFA], Bayer pattern
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4007Interpolation-based scaling, e.g. bilinear interpolation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/403Edge-driven scaling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/843Demosaicing, e.g. interpolating colour pixel values
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/10Circuitry of solid-state image sensors [SSIS]; Control thereof for transforming different wavelengths into image signals
    • H04N25/11Arrangement of colour filter arrays [CFA]; Filter mosaics
    • H04N25/13Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements
    • H04N25/134Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements based on three different wavelength filter elements

Definitions

  • This invention relates to digital cameras, and more particularly to digital signal processing that integrates color interpolation with edge detection.
  • Digital cameras are being improved and lowered in cost at an amazing rate. In a recent year, more digital cameras were sold than traditional film cameras. Images from digital cameras can be downloaded and stored on personal computers. Digital pictures can be converted to common formats such as JPEG and sent as e-mail attachments or posted to virtual photo albums on the Internet. Video as well as still images can be captured, depending on the kind of digital camera.
  • FIG. 1 is a block diagram for a typical digital camera.
  • Sensor 12 which can be a charge-coupled device (CCD) array or a complementary metal-oxide-semiconductor (CMOS) sensor array.
  • CCD charge-coupled device
  • CMOS complementary metal-oxide-semiconductor
  • An 8, 9, or 10-bit mono-color pixel is output to processor 10 .
  • These mono-color pixels are in a Bayer-pattern as shown in FIG. 2 . Each pixel is either a red, a blue, or a green intensity.
  • the R, G, or B digital values in the Bayer pattern are processed by processor 10 to generate luminance-chrominance YUV pixels.
  • the YUV pixels can then be displayed on display 19 or compressed by compressor 18 and stored on disk 17 or on a solid-state memory.
  • YUV pixels often have a 4:4:4 format, with 8 bits for each of 2 colors and for the luminance.
  • Sensor 12 detects red, blue and green colors. However, each array point in sensor 12 can detect only one of the three primary colors. Rather than outputting an RGB pixel, sensor 12 can output only a single-color pixel at any given time. For example, a line of pixels output by sensor 12 might have a red pixel followed by a green pixel. Another line might have alternating green and blue pixels.
  • Each pixel represents the intensity of one of the primary colors at a point in the sensor array.
  • a red pixel indicates the intensity of red light at a point
  • a neighboring green pixel indicates the intensity of green light at the next point in the sensor array.
  • Each pixel contains only one-third of the total color information.
  • the remaining color information is obtained by interpolation.
  • the green intensity of a red pixel is calculated by averaging the green intensities of neighboring green pixels.
  • the blue intensity for that red pixel is calculated by averaging or interpolating the nearest blue pixels.
  • Processor 10 performs this color interpolation, calculating the missing primary-color intensities for each pixel location.
  • Processor 10 also may perform other enhancements to the image. Edges may appear fuzzy because the color interpolation tends to spread out features. These edges can be sharpened by detecting the edges and enhancing the color change at the edge to make the color transition more abrupt. Color conversion from RGB to YUV is also performed by processor 10 .
  • the electrical currents produced by the different primary colors can vary, depending on the sensor used and the wavelength and energy of the light photons.
  • An adjustment known as a white-balance is often performed before processor 10 , either on analog or digital values.
  • Each primary color can be multiplied by a different gain to better balance the colors. Compensation can also be made for different lighting conditions, increasing all primary colors for dark pictures or decreasing all colors for bright pictures (overexposure).
  • FIG. 2 shows an image captured by a sensor that generates single-color pixels in a Bayer pattern.
  • the example shows an 800 ⁇ 600 frame or image for display in the common super-VGA resolution. A total of 600 lines are captured by the sensor, with 800 pixels per line.
  • a personal computer displays full-color pixels that have all three primary-color intensities (RGB).
  • the sensor in a digital camera can detect only one of the three primary colors for each point in the 800 ⁇ 600 sensor array. Detectors for green are alternated with red detectors in the first line, while green detectors are alternated with blue detectors in the second line.
  • the first horizontal line and each odd line have alternating red and green detectors, so pixels output from these odd lines are in a R-G-R-G-R-G-R-G sequence.
  • the second horizontal line and each even line have alternating green and blue detectors, so pixels output from these even lines are in a G-B-G-B-G-B-G-B sequence.
  • the pixels Half of the pixels are green pixels, while one-quarter of the pixels are read and the last quarter are blue.
  • the green pixels form a checkerboard pattern, with blue and red pixels surrounded by green pixels. Since the human eye is more sensitive to green, the Bayer pattern has more green pixels than red or blue.
  • the green intensity for a red pixel location can be interpolated by averaging the four green pixels that surround the red pixel.
  • the green intensity for red pixel at location ( 3 , 3 ) is the sum of green pixels ( 3 , 2 ), ( 3 , 4 ), ( 2 , 3 ), and ( 4 , 3 ), divided by four.
  • the green intensity for a blue pixel location can be interpolated by averaging the four surrounding green pixels.
  • the interpolated green intensity is the sum of green pixels ( 2 , 3 ), ( 2 , 5 ), ( 1 , 4 ), and ( 3 , 4 ), divided by four.
  • the red and blue values for a green pixel location can also be calculated from the 2 red and 2 blue pixels that surround each green pixel.
  • the interpolated red value is the average of red pixels ( 1 , 3 ) and ( 3 , 3 ) above and below the green pixel
  • the interpolated blue value is the average of blue pixels ( 2 , 2 ) and ( 2 , 4 ) to the right and left of the green pixel.
  • What is desired is a digital-camera processor that does not use a whole-frame buffer. It is desired to perform color interpolation of Bayer-pattern pixels without storing all the pixels in a frame. It is desired to use smaller line buffers, which store only a few lines of pixels rather than all 600 lines in a SVGA image. It is further desired to perform both color interpolation and edge detection at the same time, using integrated hardware. It is desired to merge the edge detector into the interpolator. It is desired to also perform while balance, edge enhancement, and YUV conversion without using a whole-frame buffer. It is desired to process all pixels in a frame in a single pass, without storing all the pixels.
  • a digital-image processor has a line buffer that receives mono-color pixels captured by an image sensor.
  • the line buffer stores only a fraction of a whole frame of an image. The fraction is less than 5 percent of a number of pixels in the whole frame.
  • a merged pipeline receives an array of mono-color pixels from the line buffer. It generates missing color values for a middle pixel.
  • the middle pixel is a mono-color pixel in a middle of the array from the line buffer.
  • the merged pipeline also generates an upper primary color value for an upper pixel immediately above the middle pixel and a lower primary color value for a lower pixel immediately below the middle pixel.
  • An edge detector receives the upper primary color value and the lower primary color value and a primary color value for the middle pixel.
  • the edge detector detects an edge between the middle pixel and a neighboring pixel.
  • An edge enhancer is activated by the edge detector when the edge is detected. It increases a magnitude of the middle pixel when the edge is detected.
  • the merged pipeline outputs interpolated color values for the middle pixel. Thus interpolation and edge detection are performed by the merged pipeline using the line buffer.
  • a color-space converter is coupled to receive the middle pixel including the missing color values generated by the merged pipeline. It converts color values into luminance and chromatic values.
  • the edge enhancer increases the luminance value of the middle pixel when activated.
  • the color-space converter converts from red, green, blue RGB color values to luminance and chromatic YUV values representing a color of a pixel.
  • the edge detector receives green color values.
  • the edge detector performs edge detection using green values, but the edge enhancer sharpens edges by adjusting the luminance value of the middle pixel.
  • the merged pipeline has a horizontal interpolator that receives the array from the line buffer. It averages mono-color pixels within a same horizontal line to produce intermediate color values.
  • a column register is coupled to receive the intermediate color values from the horizontal interpolator. It stores intermediate color values for a single column of pixels in the array.
  • a vertical interpolator receives the intermediate color values from the column register. It averages intermediate color values within a same single column of pixels. The vertical interpolator outputs RGB color values for the middle pixel, but it also outputs G values as the upper and lower primary color values to the edge detector. Thus horizontal and vertical interpolation are performed separately.
  • the column register includes one green register for each of at least 5 lines.
  • the column register also includes at least 3 shared registers for a middle line containing the middle pixel and an upper and a lower line immediately above and below the middle line.
  • the shared registers alternately store red and blue color values for alternate clock cycles.
  • FIG. 1 is a block diagram for a typical digital camera.
  • FIG. 2 shows an image captured by a sensor that generates single-color pixels in a Bayer pattern.
  • FIG. 3 shows a multi-function image processor using a 4-line buffer and a column register.
  • FIG. 4 highlights data storage within the merged interpolation/edge detection pipeline.
  • FIG. 5 shows two successive 5 ⁇ 3 arrays of Bayer-pattern pixels from the line buffer which are input to the horizontal interpolator during 2 clock cycles.
  • FIG. 6A shows horizontal interpolation when the current pixel is a green pixel on a red-green line in the Bayer pattern.
  • FIG. 6B shows horizontal interpolation when the current pixel is a red pixel on a red-green line in the Bayer pattern.
  • FIG. 7A shows vertical interpolation when the current pixel is a green pixel on a red-green line in the Bayer pattern.
  • FIG. 7B shows vertical interpolation when the current pixel is a red pixel on a red-green line in the Bayer pattern.
  • FIG. 8 is a diagram of a white-balancing unit that performs white balancing on Bayer-pattern pixels before the line buffer.
  • FIG. 9 is a diagram of a RGB-to-YUV converter.
  • FIG. 10 is a diagram of a color enhancer.
  • the present invention relates to an improvement in digital-image processing.
  • the following description is presented to enable one of ordinary skill in the art to make and use the invention as provided in the context of a particular application and its requirements.
  • Various modifications to the preferred embodiment will be apparent to those with skill in the art, and the general principles defined herein may be applied to other embodiments. Therefore, the present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.
  • the different processing units such as white balance, pixel-interpolation, edge detect and enhancement, YUV conversion and color enhancement usually operate as independent units. Buffers are used between units to allow for slightly different processing rates. These buffers require memory and add cost.
  • a tightly-integrated processor can perform the various functions in a single, tightly-coupled pipeline.
  • pixel interpolation and edge detection can use many, of the same adders and storage registers, allowing interpolation and edge detection to be performed at the same time on the same area of the image.
  • the interpolation results can immediately be converted to YUV format, enhanced, and output, eliminating the need for large intermediate buffers.
  • White balance can be performed on the fly as the pixels are sent from the sensor to the interpolator. Thus a separate frame buffer for white balance can also be eliminated.
  • a small buffer is used between the white balancer and the interpolator. This is a line buffer rather than a frame buffer, since only a few lines of the image are stored.
  • the line buffer stores a portion of the image that is currently being interpolated. Only 2 to 4 lines of the 600 or more lines need to be stored in the line buffer, providing a memory savings of better than 99%. Even for different resolutions, the line buffers still require only 5% of the memory needed for a whole frame buffer.
  • the sensor can input pixels in the Bayer pattern directly to the processor without buffering. Pixels output from the processor can be immediately sent to display, storage, or compression buffers.
  • FIG. 3 shows a multi-function image processor using a 4-line buffer and a column register.
  • Light captured by sensor front-end 22 is converted to electrical signals by a charge-coupled or transistor device, and the electrical signals are converted from analog to digital format.
  • the image sensor does not generate all three primary color components (RGB) for each pixel, but only produces one of the three color components per pixel.
  • the colors produced alternate from pixel to pixel, and from line to line in a Bayer pattern as shown in FIG. 2 . Typically one pixel with only one of the three primary colors is output for each clock cycle.
  • RGB primary color components
  • White balancer 26 multiplies each pixel from front end 22 by a gain. Red pixels are multiplied by a red gain, blue pixels by a blue gain, and green pixels by a green gain. The pixel-gain product is output from white balancer 26 to line buffer 30 .
  • the pixel gains may be pre-set gains, or may be calculated on the fly. Pre-set gains can be calculated at the factory for the sensor type and fixed gains stored in a register and applied to white balancer 26 . Video digital cameras produce a series of frames, and still cameras are normally pointed toward the picture before shooting, so gain calculator 24 can generate a running average of all pixels for each of the 3 colors from one frame, and use the averages to calculate gains for the next frame. Averages can also be generated for just a portion of an image frame, and the gains applied to the entire image or a portion of the image.
  • Four-line buffer 30 contains about four lines of pixels, rather than all 600 or more lines.
  • each line contains 800 pixels, so line buffer 30 contains 800 ⁇ 4 or 3,200 pixels.
  • Other resolutions, such as 1024 ⁇ 768 have more pixels per line, so the size of line buffer 30 can increase to 48 Kbytes or more.
  • Interpolator 41 performs both horizontal and vertical interpolation to generate all three color components (R,G,B) for each pixel. Interpolation is performed by adding weighted color values from neighboring pixels of the desired color. Only the neighboring pixels that touch the current pixel location are added in the interpolation. There are a total of 8 such neighboring pixels—three pixels on three lines.
  • the interpolation weighting or filter varies by color, since there are twice as many green pixels in a Bayer pattern as there are red or blue pixels.
  • the green pixels form a checkerboard pattern with green pixels on every line, but the red or blue pixels form a more open pattern with pixels only on alternating lines.
  • the interpolation filter for green is:
  • the 3 ⁇ 1 kernel is implemented as a vertical interpolation step that multiplies the pixel above by 1 ⁇ 4 and the pixel below by 1 ⁇ 4, while the current pixel location is multiplied by 1 ⁇ 2.
  • the 1 ⁇ 3 kernel becomes a horizontal interpolation step that multiplies the pixel on the left by 1 ⁇ 2 and the pixel to the right by 1 ⁇ 2, while the current pixel location is multiplied by 1. Since half of the locations in a Bayer pattern are missing green values, not all of the kernel coefficients are used to calculate a pixel's green value.
  • the interpolation filter for red and blue is:
  • the 3 ⁇ 1 kernel is implemented as a vertical interpolation step that multiplies the pixel above by 1 ⁇ 2 and the pixel below by 1 ⁇ 2, while the current pixel location is multiplied by 1.
  • the 1 ⁇ 3 kernel becomes a horizontal interpolation step that multiplies the pixel on the left by 1 ⁇ 2 and the pixel to the right by 1 ⁇ 2, while the current pixel location is multiplied by 1. Since only one-quarter of the locations in a Bayer pattern contain red (blue) values, not all of the kernel coefficients are used to calculate a pixel's red (blue) value.
  • Horizontal adders 40 perform the horizontal interpolation for green, red, and blue for a current pixel location and some of the immediately surrounding pixel locations. The results are stored in column register 32 .
  • Column register 32 contains color components for just one column. Horizontal adders 40 calculate the green components for 5 lines of this column, while red and blue components are calculated for only 3 lines of this column. Thus column register 32 stores color components for a small region of the image.
  • the green components for the line above and line below the current pixel are also generated by vertical adders 50 .
  • the green components are generated for three lines of the column stored in column register 32 .
  • the green values are stored in green register 34 ′.
  • the RBG value for the currently-processed pixel from RGB register 34 is converted to YUV format by YUV converter 60 .
  • Color enhancer 38 receives the 2 chromatic values (U and V) and multiplies these values by a filter value to enhance certain colors.
  • the enhanced U and V value for the current pixel is then output for display, storage, or compression.
  • the green values from green register 34 ′ are used for edge detection.
  • the last set of green values for the previous 2 columns are stored in pipeline registers 64 , so that a total of 9 green values are stored (three lines by three columns).
  • An edge can be detected from the current (middle) pixel by comparison to the 8 surrounding pixels. When a difference above a threshold value is detected, and edge is signaled by edge detector 62 .
  • Edge enhancer 36 is then activated. Edge enhancer 36 receives the luminance (Y) value from YUV converter 60 for the current pixel, and simply outputs the Y value when no edge is detected.
  • edge enhancer 36 multiplies the Y value by a filter to increase or decrease the brightness of the pixel, thereby enhancing or sharpening the edge.
  • the pipeline delay through pipeline registers 34 ′ and edge detector 62 matches the pipeline delay through RGB register 34 and YUV converter 60 , so that the same current pixel is edge detected and YUV-converted. Thus edge detection and YUV conversion occur simultaneously for the same pixel.
  • Horizontal adders 40 and vertical adders 50 interpolate for both RGB-YUV conversion and edge detection. Green values are calculated for two additional lines so that edge detection can also be performed using the intermediate results.
  • Edge enhancement and color enhancement are also performed at the same time on the same pixel by color enhancer 38 and edge enhancer 36 .
  • interpolator 41 provides inputs to edge detector 62 as well as the current RGB value. Simultaneous edge detection is then possible using the same pipeline. Edge detection is performed on the green values rather than on the Y values so that edge detection can occur earlier in the pipeline.
  • FIG. 4 highlights data storage within the merged interpolation/edge detection pipeline.
  • Line buffer 30 is fed a stream of mono-color pixels from the sensor that have been multiplied by a color-specific gain for white balance. These pixels arrive in a Bayer pattern, from left to right filling each line, and from upper lines to lower lines until the entire frame is received.
  • Line buffer 30 The most-recently-received four lines are stored in line buffer 30 for the preferred embodiment.
  • Horizontal lines H 1 , H 2 , H 3 , and H 4 have been stored in the four lines of line buffer 30 .
  • Horizontal line H 5 is currently being received from the sensor and white balancer. Pixels along line H 5 replace line Hi pixels in the first row of line buffer 30 . Thus pixels to the left of the first row are from line H 5 while pixels to the right are from the older line H 1 .
  • a small overlapping region occurs in a current column 70 .
  • Pixels received from the sensor are first stored in a small temporary buffer 31 in line buffer 30 .
  • Temporary buffer 31 contains a few pixels that have just been received from the sensor. Pixels in the current column 70 and in the 2 surrounding columns of oldest line H 1 are not discarded immediately, but instead are sent to interpolator 41 .
  • Using temporary buffer 31 to store new pixels from line H 5 allows for 5 lines of pixels (H 1 to H 5 ) to be sent to interpolator 41 for current column 70 . Pixels from oldest line Hi are discarded after being sent to interpolator 41 .
  • Current column 70 includes the actual current column and two adjacent columns, for five horizontal lines.
  • a region of 5 ⁇ 3 pixels is sent from line buffer 30 to interpolator 41 for each clock cycle. This 5 ⁇ 3 region provides enough pixels for interpolation of a current pixel location's RGB values, and green values for the pixels immediately above and below the current pixel location. Thus edge detection values are also generated by interpolator 41 .
  • Horizontal adders 40 receive the 5 ⁇ 3 array of pixel values and perform horizontal interpolation on some of the values, as shown later in FIGS. 6A , 6 B.
  • Horizontal adders include shift logic to weight values from line buffer 30 before addition so that the proper sums are generated. For example, a pixel value that should be weighted by 1 ⁇ 4 can be shifted to the right by 2 bit positions before addition.
  • Horizontal adders produce green values for all five lines, which are stored in column register 32 as G(H 1 ), G(H 2 ), G(H 3 ), G(H 4 ), G(H 5 ).
  • G(H 3 ) is the green value for the current pixel, which is line 3 of the current column. Green values for two pixels above and two pixels below the current line are stored for edge detection.
  • Red and Blue values are generated and stored for the current line and for the line above and the line below the current line. Since the Bayer pattern alternates lines with red and blue pixels, the values stored in column registers 32 alternates. For example, for one column B(H 2 ) and B(H 4 ) are stored with R(H 3 ), while in the next clock cycle for the next column (pixel) R(H 2 ) and R(H 4 ) are stored with B(H 3 ). The same register in column register 32 can store B(H 2 ) one cycle and R(H 2 ) the next cycle. Thus a total of 5 green values and 3 blue/red values are stored in the 8 registers in column register 32 .
  • Vertical interpolation adds weighted color values from only one column.
  • the color values from column register 32 contain enough information to apply the vertical interpolation filters.
  • Vertical adders 50 receive the R, G, and B values from column register 32 , perform shifts to apply the weightings of the vertical filters, and then generate sums. Vertical adders 50 perform vertical interpolation as shown later in FIGS. 7A , 7 B.
  • the R, G, and B values for the current pixel in line H 3 are all generated and stored in RGB register 34 .
  • the green values for the lines H 2 and H 4 are also calculated by vertical adders 50 and stored in register 34 .
  • the RGB values for line H 3 are output to the YUV converter, while the G values for lines H 2 , H 3 , and H 4 are output to the edge detector.
  • Pipeline register 64 thus stores a 3 ⁇ 3 array of green values, for 3 lines and 3 columns. An edge can be detected by a sudden change in green value from the middle pixel to one or more of the 8 surrounding green values. Since YUV conversion requires a clock delay, by the time the YUV values are available, the current pixel is in the middle of the 3 ⁇ 3 array of pipeline register 64 .
  • Pipeline delays cause the meaning of the “current” pixel to change in each pipeline stage (pipestage).
  • the pixel being converted from RGB to YUV is one pixel (column) to the right (ahead) of the “current” column of pixels being added by vertical adders 50 , and two pixels (columns) to the right of the “current” column of pixels being added in horizontal adder 40 .
  • the “current” pixel being edge and color enhanced is one column to the left of the pixel in the YUV converter stage.
  • FIGS. 5-7 show interpolation over two clock cycles for two pixels.
  • the alternating nature of the Bayer pattern requires 2 different operations in alternating clock cycles.
  • FIG. 5 shows the Bayer-pattern input from buffer 30
  • FIGS. 6A , 6 B show horizontal interpolation on those values.
  • FIGS. 7A , 7 B show vertical interpolation on the intermediate results stored in the column register.
  • FIG. 5 shows two successive 5 ⁇ 3 arrays of Bayer-pattern pixels from the line buffer which are input to the horizontal interpolator during 2 clock cycles.
  • the Bayer pattern alternates green pixels with red pixels on odd lines, while alternating green pixels with blue pixels on even lines.
  • line H 1 is the upper line
  • line H 5 is the bottom line.
  • the current pixel is on line H 3 and is in the second column for a first clock cycle, but moves to the third column for the next clock cycle. The current pixel moves to the right along the current row for each clock cycle.
  • the subscripts shown with the pixels indicate the row and column.
  • the current pixel in the first clock cycle is in line H 3 , column 2 , which contains G 32 from the Bayer-pattern input.
  • the next current pixel at row 3 , column 3 has just a red value—R 33 .
  • the Blue and green components for pixel 3 , 3 must be interpolated.
  • pixel R 32 is the current pixel.
  • a 5 ⁇ 3 array of pixel values are sent from line buffer 30 to the horizontal adders. This 5 ⁇ 3 array includes the first three columns and all 5 lines.
  • R 11 , G 12 , and R 13 are sent from the first line
  • G 21 , B 22 , G 23 are sent from the second line
  • R 31 , G 32 , and R 33 from the third line
  • G 41 , B 42 , G 43 from the fourth line
  • R 51 , G 52 , and R 53 from the fifth line.
  • the second, third, and fourth columns of all five lines are sent from line buffer 30 to the horizontal adders.
  • the 5 ⁇ 3 pixel array includes G 12 , R 13 , G 14 from line H 1 , B 22 , G 23 , B 24 from line H 2 , G 32 , R 33 , G 34 from line H 3 , B 42 , G 43 , B 44 from line H 4 , and G 52 , R 53 , G 54 from line H 5 .
  • FIG. 6A shows horizontal interpolation when the current pixel is a green pixel on a red-green line in the Bayer pattern.
  • the current column is 2 and the current row is 3 .
  • the green value G 32 in the third line is the current pixel that will have the full RGB value generated by interpolation.
  • the 5 ⁇ 3 array of pixel values sent from line buffer 30 ( FIG. 5 ) is shown on the left of FIG. 6A .
  • the green values of the first and fifth lines are already available from the Bayer pattern and are simply copied to column register 32 as G 12 , G 52 .
  • the G value from the third line, G 32 is also copied to column register 32 .
  • the blue values are available for pixels 2 , 2 and 4 , 2 , so these are copied from line buffer 30 to column buffer 32 as B 22 , B 42 .
  • the red value for the current pixel at 3 , 2 is not available and must be computed from the surrounding red values. Since horizontal interpolation is being performed, only red values from the same row are added.
  • the red values R 31 , R 33 to the right and left of location 3 , 2 are shifted to the right by one binary position to weight these by 1 ⁇ 2.
  • the shifted R 31 , R 33 are input to adder 46 , producing the (R 31 +R 33 )/2. This is the intermediate R 32 value after horizontal interpolation but before vertical interpolation.
  • Green values for locations 2 , 2 and 4 , 2 are also not available and must be interpolated. Again, only green values from the same horizontal line are added by horizontal adders 40 .
  • Green values G 21 , G 23 are right-shifted by one bit and input to adder 44 , which outputs (G 21 +G 23 )/2 as the intermediate G 22 stored in column register 32 .
  • Green values G 41 , G 43 are right-shifted by one bit and input to adder 48 , which outputs (G 41 +G 43 )/2 as the intermediate G 42 stored in column register 32 .
  • Column register 32 contains 5 green values, two of which were generated by adders 48 . A red value was generated by adder 44 , and 2 blue values were copied over. A total of 8 color components are stored in column register 32 for 5 pixels in one column.
  • FIG. 6B shows horizontal interpolation when the current pixel is a red pixel on a red-green line in the Bayer pattern. This occurs for the next clock cycle after the calculations of FIG. 6A .
  • the operations of FIGS. 6A , 6 B alternate with each successive pixel in a red-green line.
  • the current column is 3 and the current row is 3 .
  • the red value R 33 in the third line is the current pixel that will have the full RGB value generated by interpolation.
  • the 5 ⁇ 3 array of pixel values sent from line buffer 30 ( FIG. 5 ) is shown on the left of FIG. 6B . This 5 ⁇ 3 array has shifted to the right by one column. A column pointer in line buffer 30 can be used to point to the next 5 ⁇ 3 array to read.
  • the red values of the first, third, and fifth lines are already available from the Bayer pattern, however, only green values are needed for the first and last lines, so R 13 and R 53 are discarded.
  • R 33 is simply copied to column register 32 .
  • the green values are available for pixels 2 , 2 and 4 , 2 , so these are copied from line buffer 30 to column buffer 32 as G 23 , G 43 .
  • the green value for the current pixel at 3 , 3 is not available and must be computed from the surrounding green values. Since horizontal interpolation is being performed, only green values from the same row are added.
  • the green values G 32 , G 34 to the right and left of location 3 , 3 are shifted to the right by one binary position to weight these by 1 ⁇ 2.
  • the shifted G 32 , G 34 are input to adder 46 , producing the (G 32 +G 34 )/2. This is the intermediate G 33 value after horizontal interpolation but before vertical interpolation.
  • Green values for the first and last row must also be generated by adders 42 , 49 in the same manner.
  • Column register 32 stores (G 12 +G 14 )/2 as intermediate G 13 and (G 52 +G 54 )/2 as the intermediate G 53 .
  • Blue values for locations 2 , 3 and 4 , 3 are also not available and must be interpolated. Again, only blue values from the same horizontal line are added by horizontal adders 44 , 48 .
  • Blue values B 22 , B 24 are right-shifted by one bit and input to adder 44 , which outputs (B 22 +B 24 )/2 as the intermediate B 23 stored in column register 32 .
  • Blue values B 42 , B 44 are right-shifted by one bit and input to adder 48 , which outputs (B 42 +B 44 )/2 as the intermediate B 43 stored in column register 32 .
  • Column register 32 contains 5 green values, three of which were generated by adders 42 , 46 , 49 . Two blue values were generated by adders 44 , 48 , and 1 red value was copied over. A total of 8 color components are stored in column register 32 for 5 pixels in one column. The same registers and adders are thus used for different color components for alternating cycles. A similar but somewhat different pair of operations occurs for green-blue lines than was shown for FIGS. 6A , 6 B, where 5 green lines and alternating red and blue components are generated for the middle 3 lines.
  • FIG. 7A shows vertical interpolation when the current pixel is a green pixel on a red-green line in the Bayer pattern.
  • FIG. 7A receives a 1 ⁇ 5 array of pixels generated by the horizontal interpolation of FIG. 6A and stored in column register 32 .
  • the current column is 2 and the current row is 3 .
  • the green value G 32 in the third line is the current pixel that will have the full RGB value generated by interpolation.
  • the 1 ⁇ 3 array of pixel values stored by the horizontal interpolator into column register 32 ( FIG. 6A ) is shown on the left of FIG. 7A . Since vertical interpolation is being performed, only one column of pixels is needed as an input.
  • the green values for the second and fourth rows are calculated by adders 52 , 58 .
  • the green values G 12 , G 32 are input to adder 52 after being right-shifted by 2 binary bits (multiplied by one quarter).
  • the intermediate value for G 22 (calculated as (G 21 +G 23 )/2 by the horizontal adder) is right-shifted by one bit before input to adder 52 , which generates the sum (G 12 +G 32 +G 21 +G 23 )/4, which is the final interpolated value for G 22 .
  • the green values G 32 , G 52 are input to adder 58 after being right-shifted by 2 binary bits (multiplied by one quarter).
  • the intermediate value for G 42 (calculated as (G 41 +G 43 )/2 by the horizontal adder) is right-shifted by one bit before input to adder 58 , which generates the sum (G 32 +G 52 +G 41 +G 43 )/4, which is the final interpolated value for G 42 .
  • the red value for location 3 , 2 has already been calculated during horizontal interpolation as (R 31 +R 32 )/2. This value is copied from column register 32 to RGB register 34 as the R value. Vertical interpolation is not needed since there are no red values in the lines above and below the current line.
  • the blue value for location 3 , 2 is generated by adder 56 by adding B 22 and B 42 after right-shifting by one bit.
  • the blue value saved in RGB register 34 is (B 22 +B 42 )/2, representing the interpolated B 32 .
  • Adder 54 calculates the final green value for the current pixel, G 32 .
  • the G 32 value from column register 32 is combined with the interpolated green values above and below the current location.
  • G 32 from column register 32 is right-shifted by one bit (divide by 2) and input to adder 56 along with the intermediate G 22 , (G 21 +G 23 )/2, and the intermediate G 42 , (G 41 +G 43 )/2, each right-shifted by two bit-positions for a divide by four.
  • the result from adder 56 is:
  • R, B, and G values for the current pixel location ( 3 , 2 ) are calculated and stored in RGB register 34 , while the G values above and below the current location (G 22 and G 42 ) are also stored for edge detection.
  • FIG. 7B shows vertical interpolation when the current pixel is a red pixel on a red-green line in the Bayer pattern.
  • FIG. 7B receives a 1 ⁇ 5 array of pixels generated by the horizontal interpolation of FIG. 6B and stored in column register 32 .
  • the operation of FIG. 7B occurs for the next clock cycle after the calculations of FIG. 7A .
  • the operations of FIGS. 7A , 7 B alternate with each successive pixel in a red-green line. Similar calculations are performed for blue-green lines.
  • the current column is 3 and the current row is 3 .
  • the green value G 33 in the third line is the current pixel that will have the full RGB value generated by interpolation.
  • the 1 ⁇ 3 array of pixel values stored by the horizontal interpolator into column register 32 ( FIG. 6B ) is shown on the left of FIG. 7B .
  • the green values for the second and fourth rows are calculated by adders 52 , 58 .
  • the G 23 value from column register 32 is combined with the interpolated green values above and below the current location.
  • G 23 from column register 32 is right-shifted by one bit (divide by 2) and input to adder 52 along with the intermediate G 13 , (G 12 +G 14 )/2, and the intermediate G 33 , (G 32 +G 34 )/2, each right-shifted by two bit-positions for a divide by four.
  • the result from adder 52 is:
  • G 43 from column register 32 is right-shifted by one bit (divide by 2) and input to adder 58 along with the intermediate G 33 , (G 32 +G 34 )2, and the intermediate G 53 , (G 52 +G 54 )/2, each right-shifted by two bit-positions for a divide by four.
  • the result from adder 58 is:
  • the red value for location 3 , 3 is available from the Bayer-pattern input as R 33 . This value is copied from column register 32 to RGB register 34 as the R value. Vertical interpolation is not needed since there are no red values in the lines above and below the current line.
  • the blue value for location 3 , 3 is generated by adder 56 by adding the intermediate B 23 and B 43 after right-shifting by one bit.
  • the blue value saved in RGB register 34 is (B 22 +B 24 +B 42 +B 44 )/4, representing the interpolated B 33 .
  • Adder 54 calculates the final green value for the current pixel, G 33 .
  • G 23 and G 43 are right-shifted by one bit and input to adder 54 , while the intermediate result for G 33 , (G 32 +G 34 )/2, is also right-shifted by one bit and input to adder 54 .
  • the sum from adder 54 is (G 23 +G 32 +G 34 +G 43 )/4, the interpolated value for G 33 .
  • the R, B, and G values for the current pixel location ( 3 , 3 ) are calculated and stored in RGB register 34 , while the G values above and below the current location (G 23 and G 43 ) are also stored for edge detection.
  • FIG. 8 is a diagram of a white-balancing unit that performs white balancing on Bayer-pattern pixels before the line buffer.
  • White balancing is performed by multiplying each mono-color pixel by a gain. Three gains are used: one for red, another for blue, and the third for green pixels. Since the pixels from the sensor are in a Bayer pattern, each pixel contains only one of the three primary colors.
  • Multiplier 72 in white balancer 26 receives the mono-color pixels from the sensor after the A/D converter.
  • the pixels can be in a format of either 8, 9, or 10 bits per mono-color pixel.
  • Multiplier 72 multiplies green pixels by the green gain, red pixels by the red gain, and blue pixels by the blue gain.
  • a simple sequencer can apply the proper gain to multiplier 72 .
  • the red and green gain can be alternately applied to pixels in the first and all odd lines, while the green and blue gain is alternately applied to the second line and all even lines.
  • Multiplier 72 outputs a 16-bit result.
  • Clipper 73 clips the 16-bit result from multiplier 72 to a 12-bit value that is stored in the line buffer and later interpolated.
  • the gains applied to multiplier 72 have 12 bits in a 4.8 format—four bits of integer and an 8-bit fraction.
  • the three gains applied to multiplier 72 can simply be numbers stores in 3 programmable registers.
  • the gains can be constants determined by the sensor and known or assumed lighting conditions.
  • the gains are calculated from a previous frame of Bayer-pattern data and applied to the current frame. Averages for each color (R, G, B) are generated for all pixels in a frame or a range within the frame.
  • the frame can be divided into several regions and the averages calculated for each region. Regions with averages that are far away from the average for all regions can be discarded.
  • the white-balance calculator also finds the maximum values for each of the three color components over the frame.
  • the gains are then the maximum value divided by the average for each color. Many clock cycles can be used to generate these averages and gains, so a small adder/subtractor can be used recursively.
  • FIG. 9 is a diagram of a RGB-to-YUV converter.
  • YUV converter 60 receives the RGB value from the RGB register that is loaded by the vertical interpolator.
  • YUV conversion is a standard operation.
  • Each color component is first multiplied by a constant.
  • the red component is multiplied by 0.299 decimal using multiplier 74 .
  • the blue component is multiplied by 0.141 decimal using multiplier 78 , while the green component is multiplied by 0.587 decimal by multiplier 76 .
  • the decimal numbers are converted to 8-bit binary values before being applied to the multiplier.
  • MSBs most-significant-bits
  • Adders 82 , 86 subtract the luminance Y from the original R and B values, respectively, to produce the V and U chromatic values.
  • the carry-out is the sign bit, which is appended to an 11-bit output to produce a 12-bit value in two's complement.
  • FIG. 10 is a diagram of a color enhancer. Hue and saturation are adjusted with color enhancer 38 .
  • the V and U color values are multiplied by a 2 ⁇ 2 matrix to enhance the color after YUV conversion is completed.
  • the 2 ⁇ 2 matrix is stored as four programmable registers, each with a s.2.5 format (1 sign bit, 2 integer bits, 5 fraction bits).
  • the matrix contains the constants c 11 , c 21 , which are multiplied by U in multipliers 92 , 93 , and constants c 12 , c 22 , which are multiplied by V with multipliers 94 , 95 .
  • c 11 and c 22 are 0.5 decimal
  • c 12 and c 21 are zero.
  • Adder 96 then sums the products from multipliers 92 , 94 , producing a 12-bit value that is clipped to an 8-bit value (between ⁇ 128 and 127) by clipper 100 .
  • Adder 97 then sums the products from multipliers 93 , 95 , also producing a 12-bit value that is clipped to an 8 -bit value by clipper 102 .
  • Adders 98 , 99 then add 128 to the clipped values, shifting the results, which are output as the enhanced U and V values.
  • Edge detection is performed with a 3 ⁇ 3 filter.
  • the 3 ⁇ 3 filter operates on the 3 columns of 3 lines of pixels in the pipeline register. Only the green values are used for edge detection since there are twice as many green pixels as red or blue pixels in the Bayer-pattern input.
  • the following non-separable filter may be multiplied by the 9 green values in the pipeline register:
  • the absolute value of the output of the filter is then compared to a register-programmable threshold. When the absolute value of the filter output exceeds the threshold, then the edge enhancer is activated. The edge enhancer multiplies the edge by a scaling factor. The scaling factor is also register-programmable. The result of the edge-scaling factor multiply is then added to the current Y value, for the pixel in the middle of the pipeline register. The result may then be clipped to 12 bits.
  • the following filter may also be used. Since this filter is separable into horizontal and vertical filters, it may be easier to implement:
  • This operation requires 8 or 4 operations for each pixel being edge detected.
  • Other filters can also be used that amplify differences between adjacent pixels.
  • a digital-camera processor does not use a whole-frame buffer. It performs color interpolation of Bayer-pattern pixels without storing all the pixels in a frame. Smaller line buffers are used, which store only a few lines of pixels rather than all 600 lines in a SVGA image. Both color interpolation and edge detection are performed at the same time, using integrated hardware. The edge detector is merged into the same pipeline as the interpolator. White balance, edge enhancement, YUV conversion and color enhancement are also performed without using a whole-frame buffer. All pixels in a frame are processed in a single pass, without storing all the pixels.
  • the unified pipeline and line buffer can be integrated together on a single substrate.
  • the chip can be all-digital since white balance, interpolation, YUV conversion, edge detection and enhancement are all performed digitally. Since the edge detection is tightly integrated with the interpolation pipeline, a separate multi-line buffer between the interpolator output and the edge-detector input is not needed.
  • the invention has been described as interpolating for locations that already have green values in the Bayer pattern. This produces a smoother color. However, it is possible to skip interpolation for locations that already have green values.
  • the small temporary buffer in the line buffer can be expanded, and can receive either the newest pixels or the oldest pixels in the line buffer.
  • the size of the line buffer can also be varied for different horizontal resolutions, and for different edge-detection areas.
  • the edge-detection filter can use a 1 ⁇ 3 kernel instead of a 3 ⁇ 3 kernel. For a 1 ⁇ 3 kernel, edge detection is performed within one horizontal line. Then only 2 full lines need to be stored in the line buffer, plus the temporary buffer with the data for a small portion of a third line. In general, when the edge-detection filter operates on n lines, the line buffer must store n+1 full lines.
  • Rapid clocking and slow adders may require 2 clock cycles for each adder in the interpolator, or slower clocks and faster logic may allow both horizontal and vertical adders to operate in a single pipestage without actually latching in the intermediate values. Similar adjustments and modifications can be made to other stages and functional units.
  • Bit widths can be varied.
  • Many data formats may be used with the invention. Additional functions can be added. Many arrangements of adders, shifters, and logic units are possible. Adders may be reused or used recursively. Some image sensors may alter the Bayer pattern in different ways, such as by producing data from lower lines before upper lines. Various modifications can be made as needed.

Abstract

A digital-camera processor receives mono-color digital pixels from an image sensor. Each mono-color pixel is red, blue, or green. The stream of pixels from the sensor has alternating green and red pixels on odd lines, and blue and green pixels on even lines in a Bayer pattern. Each mono-color pixel is white balanced by multiplying with a gain determined in a previous frame and then stored in a line buffer. A horizontal interpolator receives an array of pixels from the line buffer. The horizontal interpolator generates missing color values by interpolation within horizontal lines in the array. The intermediate results from the horizontal interpolator are stored in a column buffer, and represent one column of pixels from the line buffer. A vertical interpolator generates the final RGB value for the pixel in the middle of the column register by vertical interpolation. The RGB values are converted to YUV. The vertical interpolator also generates green values for pixels above and below the middle pixel. These green values are sent to an edge detector. The edge detector applies a filter to the 3 green values and 6 more green values from the last 2 clock cycles. When an edge is detected, an edge enhancer is activated. The edge enhancer adds a scaled factor to the Y component to sharpen the detected edge. Color enhancement is performed on the U and V components. The line buffer stores only 4 full lines of pixels and no full-frame buffer is needed.

Description

FIELD OF THE INVENTION
This invention relates to digital cameras, and more particularly to digital signal processing that integrates color interpolation with edge detection.
BACKGROUND OF THE INVENTION
Digital cameras are being improved and lowered in cost at an amazing rate. In a recent year, more digital cameras were sold than traditional film cameras. Images from digital cameras can be downloaded and stored on personal computers. Digital pictures can be converted to common formats such as JPEG and sent as e-mail attachments or posted to virtual photo albums on the Internet. Video as well as still images can be captured, depending on the kind of digital camera.
FIG. 1 is a block diagram for a typical digital camera. Light focused through a lens is directed toward sensor 12, which can be a charge-coupled device (CCD) array or a complementary metal-oxide-semiconductor (CMOS) sensor array. The light falling on the array generates electrical currents, which are amplified by analog amp 14 before being converted from analog to digital values by A/D converter 16. An 8, 9, or 10-bit mono-color pixel is output to processor 10. These mono-color pixels are in a Bayer-pattern as shown in FIG. 2. Each pixel is either a red, a blue, or a green intensity.
The R, G, or B digital values in the Bayer pattern are processed by processor 10 to generate luminance-chrominance YUV pixels. The YUV pixels can then be displayed on display 19 or compressed by compressor 18 and stored on disk 17 or on a solid-state memory. YUV pixels often have a 4:4:4 format, with 8 bits for each of 2 colors and for the luminance.
Sensor 12 detects red, blue and green colors. However, each array point in sensor 12 can detect only one of the three primary colors. Rather than outputting an RGB pixel, sensor 12 can output only a single-color pixel at any given time. For example, a line of pixels output by sensor 12 might have a red pixel followed by a green pixel. Another line might have alternating green and blue pixels.
Each pixel represents the intensity of one of the primary colors at a point in the sensor array. Thus a red pixel indicates the intensity of red light at a point, while a neighboring green pixel indicates the intensity of green light at the next point in the sensor array. Each pixel contains only one-third of the total color information.
The remaining color information is obtained by interpolation. The green intensity of a red pixel is calculated by averaging the green intensities of neighboring green pixels. The blue intensity for that red pixel is calculated by averaging or interpolating the nearest blue pixels. Processor 10 performs this color interpolation, calculating the missing primary-color intensities for each pixel location.
Processor 10 also may perform other enhancements to the image. Edges may appear fuzzy because the color interpolation tends to spread out features. These edges can be sharpened by detecting the edges and enhancing the color change at the edge to make the color transition more abrupt. Color conversion from RGB to YUV is also performed by processor 10.
The electrical currents produced by the different primary colors can vary, depending on the sensor used and the wavelength and energy of the light photons. An adjustment known as a white-balance is often performed before processor 10, either on analog or digital values. Each primary color can be multiplied by a different gain to better balance the colors. Compensation can also be made for different lighting conditions, increasing all primary colors for dark pictures or decreasing all colors for bright pictures (overexposure).
Bayer Pattern—FIG. 2
FIG. 2 shows an image captured by a sensor that generates single-color pixels in a Bayer pattern. The example shows an 800×600 frame or image for display in the common super-VGA resolution. A total of 600 lines are captured by the sensor, with 800 pixels per line.
A personal computer displays full-color pixels that have all three primary-color intensities (RGB). In contrast, the sensor in a digital camera can detect only one of the three primary colors for each point in the 800×600 sensor array. Detectors for green are alternated with red detectors in the first line, while green detectors are alternated with blue detectors in the second line.
The first horizontal line and each odd line have alternating red and green detectors, so pixels output from these odd lines are in a R-G-R-G-R-G-R-G sequence. The second horizontal line and each even line have alternating green and blue detectors, so pixels output from these even lines are in a G-B-G-B-G-B-G-B sequence.
Half of the pixels are green pixels, while one-quarter of the pixels are read and the last quarter are blue. The green pixels form a checkerboard pattern, with blue and red pixels surrounded by green pixels. Since the human eye is more sensitive to green, the Bayer pattern has more green pixels than red or blue.
The green intensity for a red pixel location can be interpolated by averaging the four green pixels that surround the red pixel. For example, the green intensity for red pixel at location (3,3) is the sum of green pixels (3,2), (3,4), (2,3), and (4,3), divided by four. Likewise, the green intensity for a blue pixel location can be interpolated by averaging the four surrounding green pixels. For blue pixel (2,4), the interpolated green intensity is the sum of green pixels (2,3), (2,5), (1,4), and (3,4), divided by four.
The red and blue values for a green pixel location can also be calculated from the 2 red and 2 blue pixels that surround each green pixel. For green pixel (2,3), the interpolated red value is the average of red pixels (1,3) and (3,3) above and below the green pixel, while the interpolated blue value is the average of blue pixels (2,2) and (2,4) to the right and left of the green pixel.
Many different techniques have been used for color interpolation and white balance. See U.S. Pat. Nos. 5,504,524 and 5,260,774, which show white-balance from analog signals. Sometimes a whole frame buffer is used for white balance or interpolation. Whole-frame buffers can be large, mega-pixel buffers that hold all 800×600 pixels. See, U.S. Pat. No. 5,260,774, FIGS. 1-3. Color and edge enhancement are often not performed or are performed by a separate unit, perhaps also using a whole-frame buffer.
While such digital-camera processors are useful, cost reduction is desirable since digital cameras are price-sensitive consumer devices. Whole-frame buffers require large memories, and as digital cameras are increased in resolution, larger memories are needed for the larger number of pixels.
What is desired is a digital-camera processor that does not use a whole-frame buffer. It is desired to perform color interpolation of Bayer-pattern pixels without storing all the pixels in a frame. It is desired to use smaller line buffers, which store only a few lines of pixels rather than all 600 lines in a SVGA image. It is further desired to perform both color interpolation and edge detection at the same time, using integrated hardware. It is desired to merge the edge detector into the interpolator. It is desired to also perform while balance, edge enhancement, and YUV conversion without using a whole-frame buffer. It is desired to process all pixels in a frame in a single pass, without storing all the pixels.
SUMMARY OF THE INVENTION
A digital-image processor has a line buffer that receives mono-color pixels captured by an image sensor. The line buffer stores only a fraction of a whole frame of an image. The fraction is less than 5 percent of a number of pixels in the whole frame.
A merged pipeline receives an array of mono-color pixels from the line buffer. It generates missing color values for a middle pixel. The middle pixel is a mono-color pixel in a middle of the array from the line buffer.
The merged pipeline also generates an upper primary color value for an upper pixel immediately above the middle pixel and a lower primary color value for a lower pixel immediately below the middle pixel.
An edge detector receives the upper primary color value and the lower primary color value and a primary color value for the middle pixel. The edge detector detects an edge between the middle pixel and a neighboring pixel. An edge enhancer is activated by the edge detector when the edge is detected. It increases a magnitude of the middle pixel when the edge is detected. The merged pipeline outputs interpolated color values for the middle pixel. Thus interpolation and edge detection are performed by the merged pipeline using the line buffer.
In further aspects of the invention a color-space converter is coupled to receive the middle pixel including the missing color values generated by the merged pipeline. It converts color values into luminance and chromatic values. The edge enhancer increases the luminance value of the middle pixel when activated. The color-space converter converts from red, green, blue RGB color values to luminance and chromatic YUV values representing a color of a pixel.
In further aspects the edge detector receives green color values. The edge detector performs edge detection using green values, but the edge enhancer sharpens edges by adjusting the luminance value of the middle pixel.
In further aspects the merged pipeline has a horizontal interpolator that receives the array from the line buffer. It averages mono-color pixels within a same horizontal line to produce intermediate color values. A column register is coupled to receive the intermediate color values from the horizontal interpolator. It stores intermediate color values for a single column of pixels in the array. A vertical interpolator receives the intermediate color values from the column register. It averages intermediate color values within a same single column of pixels. The vertical interpolator outputs RGB color values for the middle pixel, but it also outputs G values as the upper and lower primary color values to the edge detector. Thus horizontal and vertical interpolation are performed separately.
In still further aspects of the invention the column register includes one green register for each of at least 5 lines. The column register also includes at least 3 shared registers for a middle line containing the middle pixel and an upper and a lower line immediately above and below the middle line. Thus the shared registers alternately store red and blue color values for alternate clock cycles.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram for a typical digital camera.
FIG. 2 shows an image captured by a sensor that generates single-color pixels in a Bayer pattern.
FIG. 3 shows a multi-function image processor using a 4-line buffer and a column register.
FIG. 4 highlights data storage within the merged interpolation/edge detection pipeline.
FIG. 5 shows two successive 5×3 arrays of Bayer-pattern pixels from the line buffer which are input to the horizontal interpolator during 2 clock cycles.
FIG. 6A shows horizontal interpolation when the current pixel is a green pixel on a red-green line in the Bayer pattern.
FIG. 6B shows horizontal interpolation when the current pixel is a red pixel on a red-green line in the Bayer pattern.
FIG. 7A shows vertical interpolation when the current pixel is a green pixel on a red-green line in the Bayer pattern.
FIG. 7B shows vertical interpolation when the current pixel is a red pixel on a red-green line in the Bayer pattern.
FIG. 8 is a diagram of a white-balancing unit that performs white balancing on Bayer-pattern pixels before the line buffer.
FIG. 9 is a diagram of a RGB-to-YUV converter.
FIG. 10 is a diagram of a color enhancer.
DETAILED DESCRIPTION
The present invention relates to an improvement in digital-image processing. The following description is presented to enable one of ordinary skill in the art to make and use the invention as provided in the context of a particular application and its requirements. Various modifications to the preferred embodiment will be apparent to those with skill in the art, and the general principles defined herein may be applied to other embodiments. Therefore, the present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.
Minimizing the amount of buffer memory required to process images from a digital camera is an important design goal. The inventors have realized that whole-frame buffers become more expensive as camera resolution increases, since each image contains more pixels. Such whole-frame buffers are often used between the different processing units, such as between the color interpolator and the edge detector and color enhancer.
The different processing units, such as white balance, pixel-interpolation, edge detect and enhancement, YUV conversion and color enhancement usually operate as independent units. Buffers are used between units to allow for slightly different processing rates. These buffers require memory and add cost.
The inventors have realized that a tightly-integrated processor can perform the various functions in a single, tightly-coupled pipeline. In particular, pixel interpolation and edge detection can use many, of the same adders and storage registers, allowing interpolation and edge detection to be performed at the same time on the same area of the image. The interpolation results can immediately be converted to YUV format, enhanced, and output, eliminating the need for large intermediate buffers.
White balance can be performed on the fly as the pixels are sent from the sensor to the interpolator. Thus a separate frame buffer for white balance can also be eliminated.
A small buffer is used between the white balancer and the interpolator. This is a line buffer rather than a frame buffer, since only a few lines of the image are stored. The line buffer stores a portion of the image that is currently being interpolated. Only 2 to 4 lines of the 600 or more lines need to be stored in the line buffer, providing a memory savings of better than 99%. Even for different resolutions, the line buffers still require only 5% of the memory needed for a whole frame buffer.
Using the 2-4 line buffer, plus a few individual pixel registers in the pipeline, allows the following operations to be performed in a single pass through the processor:
White Balance
Pixel Interpolation
Edge Detection
RGB-to-YUV Conversion
Edge Enhancement
Color Enhancement
No frame buffers are needed within the pipeline. The sensor can input pixels in the Bayer pattern directly to the processor without buffering. Pixels output from the processor can be immediately sent to display, storage, or compression buffers.
Interpolator Uses 4-Line Buffer and Column Register—FIG. 3
FIG. 3 shows a multi-function image processor using a 4-line buffer and a column register. Light captured by sensor front-end 22 is converted to electrical signals by a charge-coupled or transistor device, and the electrical signals are converted from analog to digital format. The image sensor does not generate all three primary color components (RGB) for each pixel, but only produces one of the three color components per pixel. The colors produced alternate from pixel to pixel, and from line to line in a Bayer pattern as shown in FIG. 2. Typically one pixel with only one of the three primary colors is output for each clock cycle.
The sensitivity of the sensor to the different primary colors is not equal. Some colors experience more attenuation than others. Also, the image may be under or over exposed. White balancer 26 multiplies each pixel from front end 22 by a gain. Red pixels are multiplied by a red gain, blue pixels by a blue gain, and green pixels by a green gain. The pixel-gain product is output from white balancer 26 to line buffer 30.
The pixel gains may be pre-set gains, or may be calculated on the fly. Pre-set gains can be calculated at the factory for the sensor type and fixed gains stored in a register and applied to white balancer 26. Video digital cameras produce a series of frames, and still cameras are normally pointed toward the picture before shooting, so gain calculator 24 can generate a running average of all pixels for each of the 3 colors from one frame, and use the averages to calculate gains for the next frame. Averages can also be generated for just a portion of an image frame, and the gains applied to the entire image or a portion of the image.
Four-line buffer 30 contains about four lines of pixels, rather than all 600 or more lines. For SVGA resolution, each line contains 800 pixels, so line buffer 30 contains 800×4 or 3,200 pixels. These are single-color pixels of 12 bits per color, so the memory size is 38 Kbytes. Other resolutions, such as 1024×768 have more pixels per line, so the size of line buffer 30 can increase to 48 Kbytes or more.
Interpolator 41 performs both horizontal and vertical interpolation to generate all three color components (R,G,B) for each pixel. Interpolation is performed by adding weighted color values from neighboring pixels of the desired color. Only the neighboring pixels that touch the current pixel location are added in the interpolation. There are a total of 8 such neighboring pixels—three pixels on three lines.
The interpolation weighting or filter varies by color, since there are twice as many green pixels in a Bayer pattern as there are red or blue pixels. The green pixels form a checkerboard pattern with green pixels on every line, but the red or blue pixels form a more open pattern with pixels only on alternating lines.
The interpolation filter for green is:
1 / 8 1 / 4 1 / 8 1 / 4 1 / 2 1 / 4 1 / 8 1 / 4 1 / 8
which is a 3×3 kernel that can be separated into a 3×1 kernel and a 1×3 kernel:
[ 1 / 8 1 / 4 1 / 8 1 / 4 1 / 2 1 / 4 1 / 8 1 / 4 1 / 8 ] = [ 1 / 4 1 / 2 1 / 4 ] * [ 1 / 2 1 1 / 2 ]
The 3×1 kernel is implemented as a vertical interpolation step that multiplies the pixel above by ¼ and the pixel below by ¼, while the current pixel location is multiplied by ½. The 1×3 kernel becomes a horizontal interpolation step that multiplies the pixel on the left by ½ and the pixel to the right by ½, while the current pixel location is multiplied by 1. Since half of the locations in a Bayer pattern are missing green values, not all of the kernel coefficients are used to calculate a pixel's green value.
The interpolation filter for red and blue is:
1 / 4 1 / 2 1 / 4 1 / 2 1 1 / 2 1 / 4 1 / 2 1 / 4
which is a 3×3 kernel that can be separated into a 3×1 kernel and a 1×3 kernel:
[ 1 / 4 1 / 2 1 / 4 1 / 2 1 1 / 2 1 / 4 1 / 2 1 / 4 ] = [ 1 / 2 1 1 / 2 ] * [ 1 / 2 1 1 / 2 ]
The 3×1 kernel is implemented as a vertical interpolation step that multiplies the pixel above by ½ and the pixel below by ½, while the current pixel location is multiplied by 1. The 1×3 kernel becomes a horizontal interpolation step that multiplies the pixel on the left by ½ and the pixel to the right by ½, while the current pixel location is multiplied by 1. Since only one-quarter of the locations in a Bayer pattern contain red (blue) values, not all of the kernel coefficients are used to calculate a pixel's red (blue) value.
Horizontal adders 40 perform the horizontal interpolation for green, red, and blue for a current pixel location and some of the immediately surrounding pixel locations. The results are stored in column register 32. Column register 32 contains color components for just one column. Horizontal adders 40 calculate the green components for 5 lines of this column, while red and blue components are calculated for only 3 lines of this column. Thus column register 32 stores color components for a small region of the image.
These color components are not complete, since only the horizontal kernel has been applied to the pixels from line buffer 30. Vertical adders 50 perform the vertical interpolation from the horizontal results stored in column register 32, using the vertical kernels for green and red/blue. All three color components for a current pixel are generated by vertical adders 50, and this RGB value is stored in RGB register 34. The current pixel is a pixel in the third of the four lines from line buffer 30, and in the column from column register 32.
The green components for the line above and line below the current pixel are also generated by vertical adders 50. Thus the green components are generated for three lines of the column stored in column register 32. The green values are stored in green register 34′.
The RBG value for the currently-processed pixel from RGB register 34 is converted to YUV format by YUV converter 60. Color enhancer 38 receives the 2 chromatic values (U and V) and multiplies these values by a filter value to enhance certain colors. The enhanced U and V value for the current pixel is then output for display, storage, or compression.
The green values from green register 34′ are used for edge detection. The last set of green values for the previous 2 columns are stored in pipeline registers 64, so that a total of 9 green values are stored (three lines by three columns). An edge can be detected from the current (middle) pixel by comparison to the 8 surrounding pixels. When a difference above a threshold value is detected, and edge is signaled by edge detector 62. Edge enhancer 36 is then activated. Edge enhancer 36 receives the luminance (Y) value from YUV converter 60 for the current pixel, and simply outputs the Y value when no edge is detected. When edge detector 62 detects an edge, edge enhancer 36 multiplies the Y value by a filter to increase or decrease the brightness of the pixel, thereby enhancing or sharpening the edge.
The pipeline delay through pipeline registers 34′ and edge detector 62 matches the pipeline delay through RGB register 34 and YUV converter 60, so that the same current pixel is edge detected and YUV-converted. Thus edge detection and YUV conversion occur simultaneously for the same pixel. Horizontal adders 40 and vertical adders 50 interpolate for both RGB-YUV conversion and edge detection. Green values are calculated for two additional lines so that edge detection can also be performed using the intermediate results. Edge enhancement and color enhancement are also performed at the same time on the same pixel by color enhancer 38 and edge enhancer 36.
By performing a few additional calculations, interpolator 41 provides inputs to edge detector 62 as well as the current RGB value. Simultaneous edge detection is then possible using the same pipeline. Edge detection is performed on the green values rather than on the Y values so that edge detection can occur earlier in the pipeline.
Data Storage in Merged Pipeline—FIG. 4
FIG. 4 highlights data storage within the merged interpolation/edge detection pipeline. Line buffer 30 is fed a stream of mono-color pixels from the sensor that have been multiplied by a color-specific gain for white balance. These pixels arrive in a Bayer pattern, from left to right filling each line, and from upper lines to lower lines until the entire frame is received.
The most-recently-received four lines are stored in line buffer 30 for the preferred embodiment. Horizontal lines H1, H2, H3, and H4 have been stored in the four lines of line buffer 30. Horizontal line H5 is currently being received from the sensor and white balancer. Pixels along line H5 replace line Hi pixels in the first row of line buffer 30. Thus pixels to the left of the first row are from line H5 while pixels to the right are from the older line H1.
A small overlapping region occurs in a current column 70. Pixels received from the sensor are first stored in a small temporary buffer 31 in line buffer 30. Temporary buffer 31 contains a few pixels that have just been received from the sensor. Pixels in the current column 70 and in the 2 surrounding columns of oldest line H1 are not discarded immediately, but instead are sent to interpolator 41. Using temporary buffer 31 to store new pixels from line H5 allows for 5 lines of pixels (H1 to H5) to be sent to interpolator 41 for current column 70. Pixels from oldest line Hi are discarded after being sent to interpolator 41.
Current column 70 includes the actual current column and two adjacent columns, for five horizontal lines. A region of 5×3 pixels is sent from line buffer 30 to interpolator 41 for each clock cycle. This 5×3 region provides enough pixels for interpolation of a current pixel location's RGB values, and green values for the pixels immediately above and below the current pixel location. Thus edge detection values are also generated by interpolator 41.
Horizontal adders 40 receive the 5×3 array of pixel values and perform horizontal interpolation on some of the values, as shown later in FIGS. 6A, 6B. Horizontal adders include shift logic to weight values from line buffer 30 before addition so that the proper sums are generated. For example, a pixel value that should be weighted by ¼ can be shifted to the right by 2 bit positions before addition.
Horizontal adders produce green values for all five lines, which are stored in column register 32 as G(H1), G(H2), G(H3), G(H4), G(H5). G(H3) is the green value for the current pixel, which is line 3 of the current column. Green values for two pixels above and two pixels below the current line are stored for edge detection.
Red and Blue values are generated and stored for the current line and for the line above and the line below the current line. Since the Bayer pattern alternates lines with red and blue pixels, the values stored in column registers 32 alternates. For example, for one column B(H2) and B(H4) are stored with R(H3), while in the next clock cycle for the next column (pixel) R(H2) and R(H4) are stored with B(H3). The same register in column register 32 can store B(H2) one cycle and R(H2) the next cycle. Thus a total of 5 green values and 3 blue/red values are stored in the 8 registers in column register 32.
Vertical interpolation adds weighted color values from only one column. Thus the color values from column register 32 contain enough information to apply the vertical interpolation filters. Vertical adders 50 receive the R, G, and B values from column register 32, perform shifts to apply the weightings of the vertical filters, and then generate sums. Vertical adders 50 perform vertical interpolation as shown later in FIGS. 7A, 7B.
The R, G, and B values for the current pixel in line H3 are all generated and stored in RGB register 34. The green values for the lines H2 and H4 are also calculated by vertical adders 50 and stored in register 34. The RGB values for line H3 are output to the YUV converter, while the G values for lines H2, H3, and H4 are output to the edge detector.
The three G values for lines H2, H3, H4 are stored in pipeline register 64 for the next 2 clock cycles, while the next 2 pixels are generated in line H3. Pipeline register 64 thus stores a 3×3 array of green values, for 3 lines and 3 columns. An edge can be detected by a sudden change in green value from the middle pixel to one or more of the 8 surrounding green values. Since YUV conversion requires a clock delay, by the time the YUV values are available, the current pixel is in the middle of the 3×3 array of pipeline register 64.
Pipeline delays cause the meaning of the “current” pixel to change in each pipeline stage (pipestage). For example, the pixel being converted from RGB to YUV is one pixel (column) to the right (ahead) of the “current” column of pixels being added by vertical adders 50, and two pixels (columns) to the right of the “current” column of pixels being added in horizontal adder 40. The “current” pixel being edge and color enhanced is one column to the left of the pixel in the YUV converter stage.
Bayer Pattern From Line Buffer—FIG. 5
FIGS. 5-7 show interpolation over two clock cycles for two pixels. The alternating nature of the Bayer pattern requires 2 different operations in alternating clock cycles. FIG. 5 shows the Bayer-pattern input from buffer 30, while FIGS. 6A, 6B show horizontal interpolation on those values. FIGS. 7A, 7B show vertical interpolation on the intermediate results stored in the column register.
FIG. 5 shows two successive 5×3 arrays of Bayer-pattern pixels from the line buffer which are input to the horizontal interpolator during 2 clock cycles. The Bayer pattern alternates green pixels with red pixels on odd lines, while alternating green pixels with blue pixels on even lines.
In FIG. 5, line H1 is the upper line, while line H5 is the bottom line. The current pixel is on line H3 and is in the second column for a first clock cycle, but moves to the third column for the next clock cycle. The current pixel moves to the right along the current row for each clock cycle. Once all pixels in a line have been processed, the lines (or line pointers) are moved up in the line buffer.
The subscripts shown with the pixels indicate the row and column. For example, the current pixel in the first clock cycle is in line H3, column 2, which contains G32 from the Bayer-pattern input. The next current pixel at row 3, column 3 has just a red value—R33. The Blue and green components for pixel 3,3 must be interpolated.
For the first clock cycle, pixel R32 is the current pixel. A 5×3 array of pixel values are sent from line buffer 30 to the horizontal adders. This 5×3 array includes the first three columns and all 5 lines. R11, G12, and R13 are sent from the first line, G21, B22, G23 are sent from the second line, R31, G32, and R33 from the third line, G41, B42, G43 from the fourth line, R51, G52, and R53 from the fifth line. In the next clock cycle, when R33 becomes the current pixel, the second, third, and fourth columns of all five lines are sent from line buffer 30 to the horizontal adders. The 5×3 pixel array includes G12, R13, G14 from line H1, B22, G23, B24 from line H2, G32, R33, G34 from line H3, B42, G43, B44 from line H4, and G52, R53, G54 from line H5.
Horizontal Interpolation—FIGS. 6A, 6B
FIG. 6A shows horizontal interpolation when the current pixel is a green pixel on a red-green line in the Bayer pattern. The current column is 2 and the current row is 3. The green value G32 in the third line is the current pixel that will have the full RGB value generated by interpolation. The 5×3 array of pixel values sent from line buffer 30 (FIG. 5) is shown on the left of FIG. 6A.
The green values of the first and fifth lines are already available from the Bayer pattern and are simply copied to column register 32 as G12, G52. The G value from the third line, G32, is also copied to column register 32. The blue values are available for pixels 2,2 and 4,2, so these are copied from line buffer 30 to column buffer 32 as B22, B42.
The red value for the current pixel at 3,2 is not available and must be computed from the surrounding red values. Since horizontal interpolation is being performed, only red values from the same row are added. The red values R31, R33 to the right and left of location 3,2 are shifted to the right by one binary position to weight these by ½. The shifted R31, R33 are input to adder 46, producing the (R31+R33)/2. This is the intermediate R32 value after horizontal interpolation but before vertical interpolation.
Green values for locations 2,2 and 4,2 are also not available and must be interpolated. Again, only green values from the same horizontal line are added by horizontal adders 40. Green values G21, G23 are right-shifted by one bit and input to adder 44, which outputs (G21+G23)/2 as the intermediate G22 stored in column register 32. Green values G41, G43 are right-shifted by one bit and input to adder 48, which outputs (G41+G43)/2 as the intermediate G42 stored in column register 32. Column register 32 contains 5 green values, two of which were generated by adders 48. A red value was generated by adder 44, and 2 blue values were copied over. A total of 8 color components are stored in column register 32 for 5 pixels in one column.
FIG. 6B shows horizontal interpolation when the current pixel is a red pixel on a red-green line in the Bayer pattern. This occurs for the next clock cycle after the calculations of FIG. 6A. The operations of FIGS. 6A, 6B alternate with each successive pixel in a red-green line.
The current column is 3 and the current row is 3. The red value R33 in the third line is the current pixel that will have the full RGB value generated by interpolation. The 5×3 array of pixel values sent from line buffer 30 (FIG. 5) is shown on the left of FIG. 6B. This 5×3 array has shifted to the right by one column. A column pointer in line buffer 30 can be used to point to the next 5×3 array to read.
The red values of the first, third, and fifth lines are already available from the Bayer pattern, however, only green values are needed for the first and last lines, so R13 and R53 are discarded. R33 is simply copied to column register 32. The green values are available for pixels 2,2 and 4,2, so these are copied from line buffer 30 to column buffer 32 as G23, G43.
The green value for the current pixel at 3,3 is not available and must be computed from the surrounding green values. Since horizontal interpolation is being performed, only green values from the same row are added. The green values G32, G34 to the right and left of location 3,3 are shifted to the right by one binary position to weight these by ½. The shifted G32, G34 are input to adder 46, producing the (G32+G34)/2. This is the intermediate G33 value after horizontal interpolation but before vertical interpolation.
Green values for the first and last row must also be generated by adders 42, 49 in the same manner. Column register 32 stores (G12+G14)/2 as intermediate G13 and (G52+G54)/2 as the intermediate G53.
Blue values for locations 2,3 and 4,3 are also not available and must be interpolated. Again, only blue values from the same horizontal line are added by horizontal adders 44, 48. Blue values B22, B24 are right-shifted by one bit and input to adder 44, which outputs (B22+B24)/2 as the intermediate B23 stored in column register 32. Blue values B42, B44 are right-shifted by one bit and input to adder 48, which outputs (B42+B44)/2 as the intermediate B43 stored in column register 32.
Column register 32 contains 5 green values, three of which were generated by adders 42, 46, 49. Two blue values were generated by adders 44, 48, and 1 red value was copied over. A total of 8 color components are stored in column register 32 for 5 pixels in one column. The same registers and adders are thus used for different color components for alternating cycles. A similar but somewhat different pair of operations occurs for green-blue lines than was shown for FIGS. 6A, 6B, where 5 green lines and alternating red and blue components are generated for the middle 3 lines.
Vertical Interpolation—FIGS. 7A, 7B
FIG. 7A shows vertical interpolation when the current pixel is a green pixel on a red-green line in the Bayer pattern. FIG. 7A receives a 1×5 array of pixels generated by the horizontal interpolation of FIG. 6A and stored in column register 32.
The current column is 2 and the current row is 3. The green value G32 in the third line is the current pixel that will have the full RGB value generated by interpolation. The 1×3 array of pixel values stored by the horizontal interpolator into column register 32 (FIG. 6A) is shown on the left of FIG. 7A. Since vertical interpolation is being performed, only one column of pixels is needed as an input.
The green values for the second and fourth rows are calculated by adders 52, 58. The green values G12, G32 are input to adder 52 after being right-shifted by 2 binary bits (multiplied by one quarter). The intermediate value for G22 (calculated as (G21+G23)/2 by the horizontal adder) is right-shifted by one bit before input to adder 52, which generates the sum (G12+G32+G21+G23)/4, which is the final interpolated value for G22.
Likewise, the green values G32, G52 are input to adder 58 after being right-shifted by 2 binary bits (multiplied by one quarter). The intermediate value for G42 (calculated as (G41+G43)/2 by the horizontal adder) is right-shifted by one bit before input to adder 58, which generates the sum (G32+G52+G41+G43)/4, which is the final interpolated value for G42.
The red value for location 3,2 has already been calculated during horizontal interpolation as (R31+R32)/2. This value is copied from column register 32 to RGB register 34 as the R value. Vertical interpolation is not needed since there are no red values in the lines above and below the current line.
The blue value for location 3,2 is generated by adder 56 by adding B22 and B42 after right-shifting by one bit. The blue value saved in RGB register 34 is (B22+B42)/2, representing the interpolated B32.
Adder 54 calculates the final green value for the current pixel, G32. According to the vertical filter for green, the G32 value from column register 32 is combined with the interpolated green values above and below the current location. G32 from column register 32 is right-shifted by one bit (divide by 2) and input to adder 56 along with the intermediate G22, (G21+G23)/2, and the intermediate G42, (G41+G43)/2, each right-shifted by two bit-positions for a divide by four. The result from adder 56 is:
G32/2+(G21+G23+G41+G43)/8.
Thus the R, B, and G values for the current pixel location (3,2) are calculated and stored in RGB register 34, while the G values above and below the current location (G22 and G42) are also stored for edge detection.
FIG. 7B shows vertical interpolation when the current pixel is a red pixel on a red-green line in the Bayer pattern. FIG. 7B receives a 1×5 array of pixels generated by the horizontal interpolation of FIG. 6B and stored in column register 32. The operation of FIG. 7B occurs for the next clock cycle after the calculations of FIG. 7A. The operations of FIGS. 7A, 7B alternate with each successive pixel in a red-green line. Similar calculations are performed for blue-green lines.
The current column is 3 and the current row is 3. The green value G33 in the third line is the current pixel that will have the full RGB value generated by interpolation. The 1×3 array of pixel values stored by the horizontal interpolator into column register 32 (FIG. 6B) is shown on the left of FIG. 7B.
The green values for the second and fourth rows are calculated by adders 52, 58. According to the vertical filter for green, the G23 value from column register 32 is combined with the interpolated green values above and below the current location. G23 from column register 32 is right-shifted by one bit (divide by 2) and input to adder 52 along with the intermediate G13, (G12+G14)/2, and the intermediate G33, (G32+G34)/2, each right-shifted by two bit-positions for a divide by four. The result from adder 52 is:
G23/2+(G12+G14+G32+G34)/8.
For the fourth line, G43 from column register 32 is right-shifted by one bit (divide by 2) and input to adder 58 along with the intermediate G33, (G32+G34)2, and the intermediate G53, (G52+G54)/2, each right-shifted by two bit-positions for a divide by four. The result from adder 58 is:
G43/2+(G32+G34+G52+G54)/8.
The red value for location 3,3 is available from the Bayer-pattern input as R33. This value is copied from column register 32 to RGB register 34 as the R value. Vertical interpolation is not needed since there are no red values in the lines above and below the current line.
The blue value for location 3,3 is generated by adder 56 by adding the intermediate B23 and B43 after right-shifting by one bit. The blue value saved in RGB register 34 is (B22+B24+B42+B44)/4, representing the interpolated B33.
Adder 54 calculates the final green value for the current pixel, G33. G23 and G43 are right-shifted by one bit and input to adder 54, while the intermediate result for G33, (G32+G34)/2, is also right-shifted by one bit and input to adder 54. The sum from adder 54 is (G23+G32+G34+G43)/4, the interpolated value for G33.
The R, B, and G values for the current pixel location (3,3) are calculated and stored in RGB register 34, while the G values above and below the current location (G23 and G43) are also stored for edge detection.
White Balancer—FIG. 8
FIG. 8 is a diagram of a white-balancing unit that performs white balancing on Bayer-pattern pixels before the line buffer. White balancing is performed by multiplying each mono-color pixel by a gain. Three gains are used: one for red, another for blue, and the third for green pixels. Since the pixels from the sensor are in a Bayer pattern, each pixel contains only one of the three primary colors.
Multiplier 72 in white balancer 26 receives the mono-color pixels from the sensor after the A/D converter. The pixels can be in a format of either 8, 9, or 10 bits per mono-color pixel. Multiplier 72 multiplies green pixels by the green gain, red pixels by the red gain, and blue pixels by the blue gain. A simple sequencer can apply the proper gain to multiplier 72. For example, the red and green gain can be alternately applied to pixels in the first and all odd lines, while the green and blue gain is alternately applied to the second line and all even lines.
Multiplier 72 outputs a 16-bit result. Clipper 73 clips the 16-bit result from multiplier 72 to a 12-bit value that is stored in the line buffer and later interpolated. The gains applied to multiplier 72 have 12 bits in a 4.8 format—four bits of integer and an 8-bit fraction.
The three gains applied to multiplier 72 can simply be numbers stores in 3 programmable registers. The gains can be constants determined by the sensor and known or assumed lighting conditions.
In more complex embodiments, the gains are calculated from a previous frame of Bayer-pattern data and applied to the current frame. Averages for each color (R, G, B) are generated for all pixels in a frame or a range within the frame. The frame can be divided into several regions and the averages calculated for each region. Regions with averages that are far away from the average for all regions can be discarded.
The white-balance calculator also finds the maximum values for each of the three color components over the frame. The gains are then the maximum value divided by the average for each color. Many clock cycles can be used to generate these averages and gains, so a small adder/subtractor can be used recursively.
YUV Converter—FIG. 9
FIG. 9 is a diagram of a RGB-to-YUV converter. YUV converter 60 receives the RGB value from the RGB register that is loaded by the vertical interpolator. YUV conversion is a standard operation.
Each color component is first multiplied by a constant. The red component is multiplied by 0.299 decimal using multiplier 74. The blue component is multiplied by 0.141 decimal using multiplier 78, while the green component is multiplied by 0.587 decimal by multiplier 76. Of course, the decimal numbers are converted to 8-bit binary values before being applied to the multiplier.
The 14 most-significant-bits (MSBs) from multipliers 74, 76, 78 are sent to adder 84. Adder 84 generates the sum of all three color components, which is the overall luminance Y. A 12-bit value is output by adder 84 and any carry-out is ignored.
Adders 82, 86 subtract the luminance Y from the original R and B values, respectively, to produce the V and U chromatic values. The carry-out is the sign bit, which is appended to an 11-bit output to produce a 12-bit value in two's complement.
Color Enhancer—FIG. 10
FIG. 10 is a diagram of a color enhancer. Hue and saturation are adjusted with color enhancer 38. The V and U color values are multiplied by a 2×2 matrix to enhance the color after YUV conversion is completed. The 2×2 matrix is stored as four programmable registers, each with a s.2.5 format (1 sign bit, 2 integer bits, 5 fraction bits). The matrix contains the constants c11, c21, which are multiplied by U in multipliers 92, 93, and constants c12, c22, which are multiplied by V with multipliers 94, 95. In one example, c11 and c22 are 0.5 decimal, and c12 and c21 are zero.
Adder 96 then sums the products from multipliers 92, 94, producing a 12-bit value that is clipped to an 8-bit value (between −128 and 127) by clipper 100. Adder 97 then sums the products from multipliers 93, 95, also producing a 12-bit value that is clipped to an 8-bit value by clipper 102. Adders 98, 99 then add 128 to the clipped values, shifting the results, which are output as the enhanced U and V values.
Edge Detection
Edge detection is performed with a 3×3 filter. The 3×3 filter operates on the 3 columns of 3 lines of pixels in the pipeline register. Only the green values are used for edge detection since there are twice as many green pixels as red or blue pixels in the Bayer-pattern input. The following non-separable filter may be multiplied by the 9 green values in the pipeline register:
- 1 - 1 - 1 - 1 8 - 1 - 1 - 1 - 1
The absolute value of the output of the filter is then compared to a register-programmable threshold. When the absolute value of the filter output exceeds the threshold, then the edge enhancer is activated. The edge enhancer multiplies the edge by a scaling factor. The scaling factor is also register-programmable. The result of the edge-scaling factor multiply is then added to the current Y value, for the pixel in the middle of the pipeline register. The result may then be clipped to 12 bits.
The following filter may also be used. Since this filter is separable into horizontal and vertical filters, it may be easier to implement:
[ 1 - 2 1 - 2 4 - 2 1 - 2 1 ] = [ - 1 2 - 1 ] * [ - 1 2 - 1 ]
This operation requires 8 or 4 operations for each pixel being edge detected. Other filters can also be used that amplify differences between adjacent pixels.
ADVANTAGES OF THE INVENTION
A digital-camera processor does not use a whole-frame buffer. It performs color interpolation of Bayer-pattern pixels without storing all the pixels in a frame. Smaller line buffers are used, which store only a few lines of pixels rather than all 600 lines in a SVGA image. Both color interpolation and edge detection are performed at the same time, using integrated hardware. The edge detector is merged into the same pipeline as the interpolator. White balance, edge enhancement, YUV conversion and color enhancement are also performed without using a whole-frame buffer. All pixels in a frame are processed in a single pass, without storing all the pixels.
Only 2 to 4 lines of the 600 or more lines need to be stored in the line buffer, providing a memory savings of better than 99%. The unified pipeline and line buffer can be integrated together on a single substrate. The chip can be all-digital since white balance, interpolation, YUV conversion, edge detection and enhancement are all performed digitally. Since the edge detection is tightly integrated with the interpolation pipeline, a separate multi-line buffer between the interpolator output and the edge-detector input is not needed.
ALTERNATE EMBODIMENTS
Several other embodiments are contemplated by the inventors. The invention has been described as interpolating for locations that already have green values in the Bayer pattern. This produces a smoother color. However, it is possible to skip interpolation for locations that already have green values. The small temporary buffer in the line buffer can be expanded, and can receive either the newest pixels or the oldest pixels in the line buffer. The size of the line buffer can also be varied for different horizontal resolutions, and for different edge-detection areas. For example, the edge-detection filter can use a 1×3 kernel instead of a 3×3 kernel. For a 1×3 kernel, edge detection is performed within one horizontal line. Then only 2 full lines need to be stored in the line buffer, plus the temporary buffer with the data for a small portion of a third line. In general, when the edge-detection filter operates on n lines, the line buffer must store n+1 full lines.
Different segmentation of the pipeline can be substituted, depending on logic delays in each pipestage. Rapid clocking and slow adders may require 2 clock cycles for each adder in the interpolator, or slower clocks and faster logic may allow both horizontal and vertical adders to operate in a single pipestage without actually latching in the intermediate values. Similar adjustments and modifications can be made to other stages and functional units.
Different data encodings and primary colors can be used. Bit widths can be varied. Many data formats may be used with the invention. Additional functions can be added. Many arrangements of adders, shifters, and logic units are possible. Adders may be reused or used recursively. Some image sensors may alter the Bayer pattern in different ways, such as by producing data from lower lines before upper lines. Various modifications can be made as needed.
The foregoing description of the embodiments of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the invention be limited not by this detailed description, but rather by the claims appended hereto.

Claims (82)

1. A digital-image processor comprising:
a line buffer, receiving mono-color pixels captured by an image sensor, the line buffer for storing only a fraction of a whole frame of an image, the fraction being less than 5 percent of a number of pixels in the whole frame;
a merged pipeline, receiving an array of mono-color pixels from the line buffer, for generating missing color values for a middle pixel, the middle pixel being a mono-color pixel in a middle of the array from the line buffer;
the merged pipeline also for generating an upper primary color value for an upper pixel immediately above the middle pixel and a lower primary color value for a lower pixel immediately below the middle pixel;
an edge detector, receiving the upper primary color value and the lower primary color value and a primary color value for the middle pixel, the edge detector for detecting an edge between the middle pixel and a neighboring pixel; and
an edge enhancer, activated by the edge detector when the edge is detected, for increasing a magnitude of the middle pixel when the edge is detected;
the merged pipeline outputting interpolated color values for the middle pixel,
whereby interpolation and edge detection are performed by the merged pipeline using the line buffer.
2. The digital-image processor of claim 1 further comprising:
a color-space converter, coupled to receive the middle pixel including the missing color values generated by the merged pipeline, for converting color values into luminance and chromatic values;
wherein the edge enhancer increases the luminance value of the middle pixel when activated.
3. The digital-image processor of claim 2 wherein the color-space converter converts from red, green, blue RGB color values to luminance and chromatic YUV values representing a color of a pixel.
4. The digital-image processor of claim 3 wherein the edge detector receives green color values, the edge detector performing edge detection using green values, but the edge enhancer sharpening edges by adjusting the luminance value of the middle pixel.
5. The digital-image processor of claim 1 wherein the merged pipeline further comprises:
a horizontal interpolator, receiving the array from the line buffer, for averaging mono-color pixels within a same horizontal line to produce intermediate color values;
a column register, coupled to receive the intermediate color values from the horizontal interpolator, for storing intermediate color values for a single column of pixels in the array; and
a vertical interpolator, receiving the intermediate color values from the column register, for averaging intermediate color values within a same single column of pixels, the vertical interpolator outputting RGB color values for the middle pixel, the vertical interpolator also outputting G values as the upper and lower primary color values to the edge detector,
wherein horizontal and vertical interpolation are performed separately.
6. The digital-image processor of claim 5 wherein the array received by the merged pipeline from the line buffer shifts by one pixel to the right along a line for each clock cycle, the array containing at 3 columns of mono-color pixels from at least 5 lines;
wherein the line buffer stores 4 lines of mono-color pixels.
7. The digital-image processor of claim 6 wherein the column register includes one green register for each of at least 5 lines, the column register also including at least 3 shared registers for a middle line containing the middle pixel and an upper and a lower line immediately above and below the middle line;
wherein the shared registers alternately store red and blue color values for alternate clock cycles.
8. The digital-image processor of claim 7 wherein the line buffer includes a temporary buffer for storing a portion of a fifth line, the portion being part of the array sent to the merged pipeline.
9. The digital-image processor of claim 5 wherein the mono-color pixels are not stored in a whole-frame buffer, but only in the line buffer and in pipeline registers, wherein all the pipeline registers together store less than a line of pixels,
whereby whole-frame buffers are not needed.
10. The digital-image processor of claim 5 wherein the mono-color pixels captured by the image sensor form a Bayer pattern, the Bayer pattern having alternating red and green mono-color pixels on odd lines, and alternating green and blue mono-color pixels on even lines.
11. The digital-image processor of claim 5 wherein the fraction of the whole frame of the image that is stored by the line buffer is less than one percent of the whole frame,
whereby the line buffer is 99 percent smaller than a whole-frame buffer.
12. The digital-image processor of claim 5 further comprising:
a white-balance multiplier, coupled to receive the mono-color pixels from the image sensor, for multiplying red pixels by a red gain, for multiplying green pixels by a green gain, and for multiplying blue pixels by a blue gain, the white-balance multiplier outputting white-balanced mono-color pixels to the line buffer,
whereby the mono-color pixels are white-balanced on-the-fly before being written to the line buffer.
13. A method for processing digital images comprising:
receiving a series of mono-color pixels, each pixel representing one of three primary colors;
white-balancing the mono-color pixels by multiplying each mono-color pixel by a color-specific gain to produce balanced pixels;
writing the balanced pixels to a line buffer containing only a few lines of an image;
selecting a range within the line buffer, the range surrounding a target pixel;
horizontally interpolating balanced pixels for each line within the range selected from the line buffer, to produce intermediate components;
storing the intermediate components and some of the mono-color pixels within one column of the range selected from the line buffer in a column register;
vertically interpolating the intermediate components and mono-color pixels from the column register to produce a full-color pixel for the target pixel, and also producing a primary-color component for a pixel above the target pixel and a pixel below the target pixel;
detecting an edge at the target pixel by computing a filter value from the primary-color components of the target pixel and of the pixel above and the pixel below;
when the filter value exceeds a threshold, enhancing the edge by adjusting the target pixel; and
outputting the full-color pixel after adjustment for edge enhancement as the target pixel,
whereby the target pixel is interpolated and edge enhanced using outputs from vertical interpolation.
14. The method of claim 13 further comprising:
converting the full-color pixel to a YUV pixel that includes a Y brightness and U and V color components;
wherein enhancing the edge by adjusting the target pixel comprises adjusting the Y brightness but not the U and V color components of the YUV pixel;
wherein outputting the full-color pixel after adjustment comprises outputting the YUV pixel after Y adjustment for edge enhancement.
15. The method of claim 14 wherein horizontally interpolating balanced pixels comprises:
right-shifting a pair of digital values for mono-color pixels to weight the digital values;
adding right-shifted digital values for mono-color pixels to the immediate right and left of the target pixel to produce an intermediate component,
whereby horizontal interpolation is performed by shifting and adding adjacent mono-color pixels on a line.
16. The method of claim 15 further comprising:
color enhancing the full-color pixel by adjusting the U and V color components of the YUV pixel but not adjusting the Y brightness;
wherein outputting the full-color pixel after adjustment comprises-outputting the YUV pixel after Y adjustment for edge enhancement and U and V adjustment for color enhancement,
whereby color enhancement is performed.
17. A single-pass interpolator and edge detector comprising:
line-buffer means, receiving partial pixels with incomplete color information, for storing at least 2 lines of pixels of an image being processed but storing less than one-tenth of the image;
horizontal interpolate means, receiving a range of pixels from the line-buffer means, for processing pixels within the range through a horizontal filter, the horizontal filter operating only on pixels in a same line, the horizontal interpolate means outputting intermediate results;
column means, coupled to the horizontal interpolate means, for holding the intermediate results from a single column, the intermediate results including color information not present in a partial pixel but interpolated from adjacent pixels in a line;
vertical interpolate means, receiving the intermediate results from the column means, for processing the intermediate results to generate full-color information for a target pixel in the range, the full color information including an edge color, and for generating the edge color but not the full-color information for a pair of surrounding pixels adjacent to the target pixel; and
edge detect means, receiving the edge color for the target pixel and for the pair of surrounding pixels from the vertical interpolate means, for detecting an edge within the image,
whereby full-color information is interpolated from partial pixels while edge detection uses interpolation results without an intermediate full-frame buffer between the vertical interpolate means and the edge detect means.
18. The single-pass interpolator and edge detector of claim 17 further comprising:
color-space conversion means, receiving the full-color information for the target pixel, for converting the full-color information to brightness and hue information for output;
edge enhance means, activated by the edge detect means, for adjusting a brightness of the target pixel when an edge is detected,
whereby edges are detected from the edge color, but brightness is adjusted.
19. The single-pass interpolator and edge detector of claim 18 wherein the column means stores intermediate results from a single column of the range of pixels read from the line-buffer means,
whereby a single column of intermediate results are sent from the horizontal interpolate means to the vertical interpolate means.
20. The single-pass interpolator and edge detector of claim 19 wherein the horizontal interpolate means includes add means for adding color values of adjacent pixels;
wherein the vertical interpolate means includes shift means for weighting color values and add means for adding weighted color values of adjacent pixels.
21. An apparatus, comprising:
a line buffer configured to receive mono-color pixel values corresponding to pixels in a digital image;
a color interpolation unit configured to receive mono-color pixel values from the line buffer and generate one or more additional color pixel values in a first color format;
a color converter unit configured to receive color pixel values from the color interpolation unit and convert received pixel values from the first color format to a second color format; and
an edge detection unit configured to detect an edge within the digital image;
wherein, for a given pixel in the digital image, the color converter unit and the edge detection unit are configured to perform color conversion and edge detection in parallel using the color pixel values for the given pixel that are generated by the color interpolation unit.
22. The apparatus of claim 21, wherein the color converter unit includes a register configured to store a red value, a green value, and a blue value, and wherein the color converter unit includes an RGB to YUV converter.
23. The apparatus of claim 21, further comprising a processing unit including the color interpolation unit, the color converter unit, and the edge detection unit.
24. The apparatus of claim 23, wherein the processing unit includes an edge enhancement unit.
25. The apparatus of claim 24, wherein the edge enhancement unit is configured to perform a processing operation on one or more pixel values in response to the edge detection unit detecting an edge within the digital image.
26. The apparatus of claim 25, wherein the edge enhancement unit is configured to increase a luminance value of one or more pixel values in response to the edge detection unit detecting an edge within the digital image.
27. The apparatus of claim 23, wherein the line buffer is configured to receive the pixel values from an image sensor, and wherein the line buffer and the processing unit are configured to process each of the pixels in the digital image without storing the pixels in a frame buffer.
28. The apparatus of claim 27, wherein the color interpolation unit includes a horizontal interpolation unit configured to perform interpolation based on pixel values within a same horizontal line of pixels.
29. The apparatus of claim 27, wherein the color interpolation unit includes a vertical interpolation unit configured to perform interpolation based on pixel values within a same column of pixels.
30. The apparatus of claim 28, wherein the color interpolation unit includes a vertical interpolation unit configured to perform interpolation based on pixel values within a same column of pixels.
31. The apparatus of claim 21, wherein each of the received mono-color pixel values is either a red, green, or blue color value, and wherein the edge detection unit is configured to perform edge detection based only on green pixel values.
32. A method, comprising:
receiving, at a line buffer, mono-color pixel values corresponding to pixels in a digital image;
at a color interpolation unit, generating one or more additional color pixel values corresponding to the mono-color pixel values and outputting intermediate pixel values in a first color format;
a color converter unit converting pixel values in the first color format to pixel values in a second color format; and
an edge detection unit detecting an edge within the digital image;
wherein said converting pixel values and said detecting an edge are performed in parallel.
33. The method of claim 32, further comprising:
a color enhancer unit performing color enhancement on pixel values in the second color format; and
an edge enhancer unit performing edge enhancement on pixel values in the second color format;
wherein, for a given pixel value, said performing color enhancement and said performing edge enhancement occurs at the same time.
34. The method of claim 33, wherein the second color format is YUV;
wherein the edge detection unit is configured to detect edges based only on green pixel values; and
wherein the edge enhancer is configured to receive:
a Y value from the color converter unit; and
input from the edge detection unit.
35. The method of claim 32, further comprising storing the digital image.
36. The method of claim 32, wherein the color converter unit includes a color enhancer and a register configured to store a red value, a green value, and a blue value.
37. The method of claim 32, wherein the first color format includes red, green, and blue values and the second color format includes luminance and chrominance values.
38. The method of claim 32, wherein the method is performed by a digital camera.
39. An apparatus, comprising:
first means for receiving mono-color pixel values corresponding to pixels in a digital image;
second means for receiving digital pixel values from the first means and generating additional color pixel values in a first color format;
third means for converting pixel values from the first color format to a second color format; and
fourth means for detecting an edge within the digital image;
wherein, for a given pixel in the digital image, the third means and the fourth means are configured to operate in parallel.
40. The apparatus of claim 39, further comprising
fifth means for enhancing color of pixel values in the second color format; and
sixth means for enhancing one or more edges within the digital image;
wherein, for a given pixel in the digital image, the fifth means and the sixth means are configured to operate at the same time.
41. The apparatus of claim 39, wherein the first color format is RGB.
42. The apparatus of claim 39, wherein the second color format is YUV.
43. The apparatus of claim 39, wherein the apparatus is a digital camera.
44. A method, comprising:
generating a frame of digital mono-color pixel values at an image sensor in a digital camera;
processing digital pixel values received from said image sensor to produce a digital image, wherein said processing is performed without using a whole frame buffer;
wherein said processing further includes:
performing color interpolation on said mono-color pixel values to produce pixel values in a first color format;
converting pixel values from the first color format to a second color format; and
detecting an edge in the digital image;
wherein for a given pixel in the digital image, said converting and said detecting occur in parallel.
45. The method of claim 44, wherein said processing includes white balancing pixel values.
46. The method of claim 44, wherein said processing includes storing pixel values in a line buffer.
47. The method of claim 44, wherein the first color format is RGB.
48. The method of claim 44, wherein the second color format is YUV.
49. The method of claim 48, wherein said processing includes:
enhancing colors of pixel values in the second color format; and
enhancing one or more edges in the digital image;
wherein said enhancing colors and said enhancing one or more edges, for a given pixel in the digital image, occur at the same time.
50. The method of claim 49, wherein said enhancing one or more edges includes altering a luminance value.
51. The method of claim 44, wherein said performing color interpolation includes using vertical and horizontal interpolation to generate additional color values for mono-color pixels.
52. The method of claim 44, wherein said processing includes performing color enhancement.
53. The method of claim 44, wherein said processing includes performing edge enhancement and color enhancement concurrently on a given set of pixel values.
54. An apparatus, comprising:
a line buffer configured to store digital pixel values received from an image sensor; and
a pipeline coupled to the line buffer;
wherein the pipeline is configured to receive digital pixel values from the line buffer and to generate final pixel values usable to display and/or store a digital image;
wherein the pipeline is configured to:
for a given pixel in the digital image, perform color conversion and edge detection on the given pixel in parallel; and
for a given pixel in the digital image for which an edge is detected, perform color enhancement and edge enhancement in parallel;
wherein the apparatus is configured generate the final pixel values without using a whole frame buffer.
55. The apparatus of claim 54, wherein the pipeline includes a color interpolation unit configured to receive a plurality of mono-color pixel values from the line buffer and to generate additional color values for each pixel position.
56. The apparatus of claim 55, wherein the color interpolation unit includes separate horizontal and vertical interpolation units, each of which is configured to use color values from neighboring pixels to generate additional color values for a current pixel.
57. The apparatus of claim 56, wherein the color interpolation unit is configured to use separate interpolation filters for each color value produced by the color interpolation unit.
58. The apparatus of claim 55, wherein the mono-color pixel values are either red, blue, or green, and wherein, for each received mono-color pixel value, the color interpolation unit is configured to generate two additional color values, wherein the two additional color values are red and blue if the received mono-color pixel value is green, wherein the two additional color values are red and green if the received mono-color pixel value is blue, and wherein the two additional color values are blue and green if the received mono-color pixel value is red.
59. The apparatus of claim 55, wherein the color interpolation unit is coupled to an edge detection unit and a color conversion unit, and wherein the color interpolation unit is configured to output pixel color values to the edge detection unit and the color conversion unit, wherein the edge detection unit and the color conversion unit are configured to operate concurrently on a given set of pixels.
60. The apparatus of claim 54, wherein the pipeline includes a color interpolation unit configured to receive a plurality of mono-color pixel values from the line buffer, wherein the mono-color pixel values are either red, blue, or green, and wherein the color interpolation unit is configured to generate additional color values for a received pixel value only if the received pixel value is red or blue.
61. The apparatus of claim 54, wherein the pipeline includes first means for performing color interpolation upon mono-color pixel values received from the line buffer.
62. The apparatus of claim 61, wherein the pipeline includes second means for performing said color conversion on pixel values received from the first means, and wherein the pipeline includes third means for performing said edge detection on pixel values received from the first means.
63. The apparatus of claim 62, wherein the second means and the third means are configured to operate concurrently on a given set of pixel values.
64. The apparatus of claim 54, wherein the pipeline includes a color interpolation unit coupled to a color conversion unit via a pixel register, wherein the pixel register is configured to store a plurality of color values for a given pixel position.
65. The apparatus of claim 54, wherein the pipeline includes a color interpolation unit coupled to a edge detection unit via a pixel storage unit configured to store pixel values from at least a current column.
66. The apparatus of claim 65, wherein the edge detection unit is configured to receive only green color values of a given pixel position.
67. The apparatus of claim 54, wherein the pipeline includes a color conversion unit.
68. The apparatus of claim 67, wherein the color conversion unit is configured to convert RGB color values to YUV values.
69. The apparatus of claim 54, wherein the pipeline includes first means for converting incoming color values in a first color format to outgoing color values in a second color format.
70. The apparatus of claim 69, wherein the first color format includes red, blue, and green color values.
71. The apparatus of claim 69, wherein the second color format includes luminance and chrominance values.
72. The apparatus of claim 70, wherein the second color format includes luminance and chrominance values.
73. The apparatus of claim 54, wherein the pipeline includes an edge detection unit configured to perform edge detection.
74. The apparatus of claim 54, wherein the edge detection unit is configured to perform edge detection using only green color values.
75. The apparatus of claim 54, wherein the pipeline includes first means for performing edge detection on received pixel values.
76. The apparatus of claim 75, wherein the first means is configured to perform edge detection using green color values and not other color values.
77. The apparatus of claim 54, wherein the pipeline includes a color enhancement unit configured to modify color values received as inputs.
78. The apparatus of claim 54, wherein the color enhancement unit is directly coupled to a color conversion unit.
79. The apparatus of claim 78, wherein the color enhancement unit is configured to receive input luminance and chrominance values and is further configured to generate output luminance and chrominance values.
80. The apparatus of claim 54, wherein the pipeline further includes first means for performing color enhancement of received pixel color values.
81. The apparatus of claim 54, wherein the pipeline includes an edge enhancement unit coupled to adjust a luminance value of a pixel upon detection of an edge.
82. The apparatus of claim 54, wherein the pipeline includes first means for adjusting a luminance value of a pixel in response to detection of an edge.
US11/267,917 1999-09-01 2005-11-04 Merged pipeline for color interpolation and edge enhancement of digital images Expired - Lifetime USRE42555E1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/267,917 USRE42555E1 (en) 1999-09-01 2005-11-04 Merged pipeline for color interpolation and edge enhancement of digital images

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/388,318 US6642962B1 (en) 1999-09-01 1999-09-01 Merged pipeline for color interpolation and edge enhancement of digital images
US11/267,917 USRE42555E1 (en) 1999-09-01 2005-11-04 Merged pipeline for color interpolation and edge enhancement of digital images

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US09/388,318 Reissue US6642962B1 (en) 1999-09-01 1999-09-01 Merged pipeline for color interpolation and edge enhancement of digital images

Publications (1)

Publication Number Publication Date
USRE42555E1 true USRE42555E1 (en) 2011-07-19

Family

ID=28454910

Family Applications (2)

Application Number Title Priority Date Filing Date
US09/388,318 Ceased US6642962B1 (en) 1999-09-01 1999-09-01 Merged pipeline for color interpolation and edge enhancement of digital images
US11/267,917 Expired - Lifetime USRE42555E1 (en) 1999-09-01 2005-11-04 Merged pipeline for color interpolation and edge enhancement of digital images

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US09/388,318 Ceased US6642962B1 (en) 1999-09-01 1999-09-01 Merged pipeline for color interpolation and edge enhancement of digital images

Country Status (1)

Country Link
US (2) US6642962B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100073528A1 (en) * 2008-09-23 2010-03-25 Yuan-Che Lee Method of generating a gain of an image frame
US20100321543A1 (en) * 2008-02-07 2010-12-23 Nxp B.V. Method and device for reconstructing a color image
US20140132808A1 (en) * 2012-11-12 2014-05-15 Samsung Electronics Co., Ltd. Method and apparatus for interpolating color
US10375368B2 (en) 2016-06-30 2019-08-06 Apple Inc. Image data conversion

Families Citing this family (64)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6748107B1 (en) * 1999-08-05 2004-06-08 Microsoft Corporation Implementation and uses of XsRGB
JP3736219B2 (en) * 1999-08-13 2006-01-18 コニカミノルタビジネステクノロジーズ株式会社 Image processing apparatus and method
JP3699873B2 (en) * 1999-10-27 2005-09-28 オリンパス株式会社 Image processing device
US7330209B2 (en) * 1999-12-20 2008-02-12 Texas Instruments Incorporated Digital still camera system and complementary-color-filtered array interpolation method
JP4195169B2 (en) * 2000-03-14 2008-12-10 富士フイルム株式会社 Solid-state imaging device and signal processing method
US6876384B1 (en) * 2000-04-19 2005-04-05 Biomorphic Vlsi, Inc. Pixel selective white balancing
US6847396B1 (en) * 2000-04-26 2005-01-25 Sunplus Technology Co., Ltd. Interpolation method for producing full color images in using a single-chip color sensor
GB2365646B (en) * 2000-07-31 2004-10-13 Sony Uk Ltd Image processor and method of processing images
US6784941B1 (en) * 2000-08-09 2004-08-31 Sunplus Technology Co., Ltd. Digital camera with video input
US7068316B1 (en) * 2000-09-29 2006-06-27 Ess Technology, Inc. Selectable resolution image capture system
JP2002135789A (en) * 2000-10-19 2002-05-10 Canon Inc Imaging apparatus, its signal processing method and storage medium with module for perform signal processing
US7002627B1 (en) * 2002-06-19 2006-02-21 Neomagic Corp. Single-step conversion from RGB Bayer pattern to YUV 4:2:0 format
JP4598374B2 (en) * 2003-06-12 2010-12-15 パナソニック株式会社 Image processing device
KR100548611B1 (en) * 2003-08-07 2006-01-31 삼성전기주식회사 Apparatus and method for edge emphasis in image processing
US7440633B2 (en) * 2003-12-19 2008-10-21 Sharp Laboratories Of America, Inc. Enhancing the quality of decoded quantized images
KR100585004B1 (en) * 2004-04-21 2006-05-29 매그나칩 반도체 유한회사 Digital signal processing apparatus of image sensor
US7787026B1 (en) 2004-04-28 2010-08-31 Media Tek Singapore Pte Ltd. Continuous burst mode digital camera
EP1594321A3 (en) * 2004-05-07 2006-01-25 Dialog Semiconductor GmbH Extended dynamic range in color imagers
EP1605400A1 (en) * 2004-06-11 2005-12-14 STMicroelectronics S.r.l. Processing pipeline of pixel data of a color image acquired by a digital sensor
CN1310133C (en) * 2004-08-04 2007-04-11 联合信源数字音视频技术(北京)有限公司 Video image pixel interpolation device
US20070198725A1 (en) * 2004-10-06 2007-08-23 Morris Robert P System and method for utilizing contact information, presence information and device activity
WO2006073569A1 (en) * 2004-12-31 2006-07-13 Thomson Licensing Rgb to yprpb converter
EP1679907A1 (en) * 2005-01-05 2006-07-12 Dialog Semiconductor GmbH Hexagonal color pixel structure with white pixels
US20060245642A1 (en) * 2005-04-29 2006-11-02 Stmicroelectronics S.R.L. Software implemented image generating pipeline using a dedicated digital signal processor
CN100425080C (en) * 2005-05-25 2008-10-08 凌阳科技股份有限公司 Edge strengthening method and device of Bel image and color image pick-up system
US8139130B2 (en) 2005-07-28 2012-03-20 Omnivision Technologies, Inc. Image sensor with improved light sensitivity
US8274715B2 (en) 2005-07-28 2012-09-25 Omnivision Technologies, Inc. Processing color and panchromatic pixels
US7830426B2 (en) * 2005-12-29 2010-11-09 Micron Technology, Inc. Method and apparatus providing color interpolation in color filter arrays using edge detection and correction terms
US7916362B2 (en) * 2006-05-22 2011-03-29 Eastman Kodak Company Image sensor with improved light sensitivity
US8059174B2 (en) * 2006-05-31 2011-11-15 Ess Technology, Inc. CMOS imager system with interleaved readout for providing an image with increased dynamic range
US7834873B2 (en) * 2006-08-25 2010-11-16 Intel Corporation Display processing line buffers incorporating pipeline overlap
US8031258B2 (en) 2006-10-04 2011-10-04 Omnivision Technologies, Inc. Providing multiple video signals from single sensor
US8126284B2 (en) * 2006-12-01 2012-02-28 Broadcom Corporation Method and apparatus for resolution improvement in digital capturing
US7889245B2 (en) * 2007-01-12 2011-02-15 Seiko Epson Corporation Automatic white balancing of a digital image
US20080198266A1 (en) * 2007-02-20 2008-08-21 Seiko Epson Corporation Video output device, video output method, video output program, video processing system, video processing device, video processing method, and video processing program
TWI366181B (en) * 2007-06-12 2012-06-11 Au Optronics Corp Method and apparatus for image enlargement and enhancement
US8077234B2 (en) * 2007-07-27 2011-12-13 Kabushiki Kaisha Toshiba Image pickup device and method for processing an interpolated color signal
US8437410B1 (en) 2007-11-21 2013-05-07 Marvell International Ltd. System and method to execute a clipping instruction
CN101459853B (en) * 2007-12-10 2011-08-10 鸿富锦精密工业(深圳)有限公司 Color processing apparatus and method
CN101686353B (en) * 2008-09-28 2013-07-10 联华电子股份有限公司 Method for generating image picture gain
US20100123009A1 (en) * 2008-11-20 2010-05-20 Datalogic Scanning Inc. High-resolution interpolation for color-imager-based optical code readers
US8035698B2 (en) * 2009-01-21 2011-10-11 Seiko Epson Corporation Joint automatic demosaicking and white balancing
US8118226B2 (en) * 2009-02-11 2012-02-21 Datalogic Scanning, Inc. High-resolution optical code imaging using a color imager
US8800874B2 (en) 2009-02-20 2014-08-12 Datalogic ADC, Inc. Systems and methods of optical code reading using a color imager
TWI453695B (en) * 2010-09-07 2014-09-21 Realtek Semiconductor Corp Video processing method and circuit using thereof
US9083892B2 (en) * 2012-03-01 2015-07-14 Nikon Corporation A/D conversion circuit, and solid-state image pickup apparatus
US9531961B2 (en) 2015-05-01 2016-12-27 Duelight Llc Systems and methods for generating a digital image using separate color and intensity data
US9918017B2 (en) 2012-09-04 2018-03-13 Duelight Llc Image sensor apparatus and method for obtaining multiple exposures with zero interframe time
US9807322B2 (en) 2013-03-15 2017-10-31 Duelight Llc Systems and methods for a digital image sensor
US10558848B2 (en) 2017-10-05 2020-02-11 Duelight Llc System, method, and computer program for capturing an image with correct skin tone exposure
US9819849B1 (en) 2016-07-01 2017-11-14 Duelight Llc Systems and methods for capturing digital images
JP5984780B2 (en) * 2013-03-26 2016-09-06 京セラドキュメントソリューションズ株式会社 Image processing device
KR102105284B1 (en) 2013-06-21 2020-04-28 삼성전자 주식회사 Image sensor, manufacturing the same, and image processing device having the image sensor
US10210599B2 (en) * 2013-08-09 2019-02-19 Intuitive Surgical Operations, Inc. Efficient image demosaicing and local contrast enhancement
CN103618888B (en) * 2013-12-12 2015-10-14 深圳市创维群欣安防科技有限公司 A kind of video image enhancing method based on FPGA and device
US10924688B2 (en) 2014-11-06 2021-02-16 Duelight Llc Image sensor apparatus and method for obtaining low-noise, high-speed captures of a photographic scene
US11463630B2 (en) 2014-11-07 2022-10-04 Duelight Llc Systems and methods for generating a high-dynamic range (HDR) pixel stream
US10032252B2 (en) * 2015-10-30 2018-07-24 Canon Kabushiki Kaisha Image processing apparatus, image capturing apparatus, image processing method, and non-transitory computer readable storage medium
TWI571856B (en) * 2016-01-08 2017-02-21 友達光電股份有限公司 Display method
CN105678717B (en) * 2016-03-02 2018-10-23 优酷网络技术(北京)有限公司 Dynamic video image clarity intensifying method and device
WO2018044314A1 (en) 2016-09-01 2018-03-08 Duelight Llc Systems and methods for adjusting focus based on focus target information
US10546368B2 (en) * 2017-09-05 2020-01-28 Solomon Systech (Shenzhen) Limited Method and device for compensating the perceptual bias of edge boost in a display panel
CN110334652B (en) * 2019-07-05 2022-06-07 无锡睿勤科技有限公司 Image processing method, electronic device, and storage medium
KR20220043571A (en) * 2020-09-29 2022-04-05 에스케이하이닉스 주식회사 Image sensing device and method of operating the same

Citations (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4760441A (en) 1983-11-10 1988-07-26 Nec Corporation Solid-state color imaging apparatus having color filter array which eliminates vertical color error
US4764805A (en) 1987-06-02 1988-08-16 Eastman Kodak Company Image transmission system with line averaging preview mode using two-pass block-edge interpolation
US4796095A (en) 1986-09-09 1989-01-03 Rioch Company, Limited Method of generating image scanning clock signals in optical scanning apparatus
US4796085A (en) 1986-02-18 1989-01-03 Fuji Photo Film Co., Ltd. Device for interpolating missing color-difference signal by averaging line-sequential color-difference signals
US5008739A (en) 1989-02-13 1991-04-16 Eastman Kodak Company Real-time digital processor for producing full resolution color signals from a multi-color image sensor
US5172227A (en) 1990-12-10 1992-12-15 Eastman Kodak Company Image compression with color interpolation for a single sensor image system
US5260774A (en) 1989-04-20 1993-11-09 Canon Kabushiki Kaisha White balance control for still image sensing apparatus
US5262849A (en) 1990-11-05 1993-11-16 Canon Kabushiki Kaisha Digital camera processing device having variably settable interpolation
US5265200A (en) 1990-11-01 1993-11-23 International Business Machines Corporation System and method for automatic image saturation, gamma, and exposure correction in a digitizing video capture system
US5325182A (en) 1991-06-21 1994-06-28 Sanyo Electric Co., Ltd. Video signal processing circuit incorporated in a integrated circuit
US5371546A (en) 1992-02-28 1994-12-06 Nec Corporation LSI encoding device with pixel data blocking and vertical decimating circuits
US5382976A (en) 1993-06-30 1995-01-17 Eastman Kodak Company Apparatus and method for adaptively interpolating a full color image utilizing luminance gradients
US5396441A (en) 1989-10-09 1995-03-07 Hitachi, Ltd. Signal interpolation apparatus and signal interpolation method
US5414465A (en) 1993-01-14 1995-05-09 Sony Corporation Luminance signal generator with interpolation
US5504524A (en) 1993-10-15 1996-04-02 Vlsi Vision Limited Method and apparatus for controlling color balance of a video signal
US5506619A (en) 1995-03-17 1996-04-09 Eastman Kodak Company Adaptive color plan interpolation in single sensor color electronic camera
US5528292A (en) 1991-03-13 1996-06-18 Canon Kabushiki Kaisha Electric still camera having a plurality of image pickup elements with color filters
US5579047A (en) 1990-07-31 1996-11-26 Canon Kabushiki Kaisha Image signal processing apparatus using color filters and an image pick-up device providing interlaced field signals
US5596367A (en) 1996-02-23 1997-01-21 Eastman Kodak Company Averaging green values for green photosites in electronic cameras
US5739867A (en) 1997-02-24 1998-04-14 Paradise Electronics, Inc. Method and apparatus for upscaling an image in both horizontal and vertical directions
US5808674A (en) 1996-09-09 1998-09-15 Eastman Kodak Company Producing and improved digital image from digital signals corresponding to pairs of photosites
US5821999A (en) 1996-06-14 1998-10-13 Iterated Systems, Inc. Method and system for fractally interpolating intensity values for a single color component array obtained from a single color sensor
US5886797A (en) 1994-01-14 1999-03-23 Ricoh Co. Ltd. Method and apparatus for controlling a spatial filtering process based on characteristics of image data
US5887085A (en) 1994-09-07 1999-03-23 Rohm Co., Ltd. Image processing device
US5889554A (en) 1996-04-25 1999-03-30 Eastman Kodak Company Process and system for generating a full color image of multispectral image from the image data of a CCD image sensor with a mosaic color filter
US5987221A (en) 1997-01-24 1999-11-16 Hewlett-Packard Company Encoded orphan pixels for discriminating halftone data from text and line art data
US6421084B1 (en) 1998-03-02 2002-07-16 Compaq Computer Corporation Method for interpolating a full color image from a single sensor using multiple threshold-based gradients
US6563537B1 (en) 1997-07-31 2003-05-13 Fuji Photo Film Co., Ltd. Image signal interpolation

Patent Citations (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4760441A (en) 1983-11-10 1988-07-26 Nec Corporation Solid-state color imaging apparatus having color filter array which eliminates vertical color error
US4796085A (en) 1986-02-18 1989-01-03 Fuji Photo Film Co., Ltd. Device for interpolating missing color-difference signal by averaging line-sequential color-difference signals
US4796095A (en) 1986-09-09 1989-01-03 Rioch Company, Limited Method of generating image scanning clock signals in optical scanning apparatus
US4764805A (en) 1987-06-02 1988-08-16 Eastman Kodak Company Image transmission system with line averaging preview mode using two-pass block-edge interpolation
US5008739A (en) 1989-02-13 1991-04-16 Eastman Kodak Company Real-time digital processor for producing full resolution color signals from a multi-color image sensor
US5260774A (en) 1989-04-20 1993-11-09 Canon Kabushiki Kaisha White balance control for still image sensing apparatus
US5396441A (en) 1989-10-09 1995-03-07 Hitachi, Ltd. Signal interpolation apparatus and signal interpolation method
US5579047A (en) 1990-07-31 1996-11-26 Canon Kabushiki Kaisha Image signal processing apparatus using color filters and an image pick-up device providing interlaced field signals
US5265200A (en) 1990-11-01 1993-11-23 International Business Machines Corporation System and method for automatic image saturation, gamma, and exposure correction in a digitizing video capture system
US5262849A (en) 1990-11-05 1993-11-16 Canon Kabushiki Kaisha Digital camera processing device having variably settable interpolation
US5172227A (en) 1990-12-10 1992-12-15 Eastman Kodak Company Image compression with color interpolation for a single sensor image system
US5528292A (en) 1991-03-13 1996-06-18 Canon Kabushiki Kaisha Electric still camera having a plurality of image pickup elements with color filters
US5325182A (en) 1991-06-21 1994-06-28 Sanyo Electric Co., Ltd. Video signal processing circuit incorporated in a integrated circuit
US5371546A (en) 1992-02-28 1994-12-06 Nec Corporation LSI encoding device with pixel data blocking and vertical decimating circuits
US5414465A (en) 1993-01-14 1995-05-09 Sony Corporation Luminance signal generator with interpolation
US5382976A (en) 1993-06-30 1995-01-17 Eastman Kodak Company Apparatus and method for adaptively interpolating a full color image utilizing luminance gradients
US5504524A (en) 1993-10-15 1996-04-02 Vlsi Vision Limited Method and apparatus for controlling color balance of a video signal
US5886797A (en) 1994-01-14 1999-03-23 Ricoh Co. Ltd. Method and apparatus for controlling a spatial filtering process based on characteristics of image data
US5887085A (en) 1994-09-07 1999-03-23 Rohm Co., Ltd. Image processing device
US5506619A (en) 1995-03-17 1996-04-09 Eastman Kodak Company Adaptive color plan interpolation in single sensor color electronic camera
US5596367A (en) 1996-02-23 1997-01-21 Eastman Kodak Company Averaging green values for green photosites in electronic cameras
US5889554A (en) 1996-04-25 1999-03-30 Eastman Kodak Company Process and system for generating a full color image of multispectral image from the image data of a CCD image sensor with a mosaic color filter
US5821999A (en) 1996-06-14 1998-10-13 Iterated Systems, Inc. Method and system for fractally interpolating intensity values for a single color component array obtained from a single color sensor
US5808674A (en) 1996-09-09 1998-09-15 Eastman Kodak Company Producing and improved digital image from digital signals corresponding to pairs of photosites
US5987221A (en) 1997-01-24 1999-11-16 Hewlett-Packard Company Encoded orphan pixels for discriminating halftone data from text and line art data
US5739867A (en) 1997-02-24 1998-04-14 Paradise Electronics, Inc. Method and apparatus for upscaling an image in both horizontal and vertical directions
US6563537B1 (en) 1997-07-31 2003-05-13 Fuji Photo Film Co., Ltd. Image signal interpolation
US6421084B1 (en) 1998-03-02 2002-07-16 Compaq Computer Corporation Method for interpolating a full color image from a single sensor using multiple threshold-based gradients

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100321543A1 (en) * 2008-02-07 2010-12-23 Nxp B.V. Method and device for reconstructing a color image
US8363135B2 (en) * 2008-02-07 2013-01-29 Nxp B.V. Method and device for reconstructing a color image
US20100073528A1 (en) * 2008-09-23 2010-03-25 Yuan-Che Lee Method of generating a gain of an image frame
US8159557B2 (en) * 2008-09-23 2012-04-17 United Microelectronics Corp. Method of generating a gain of an image frame
US20140132808A1 (en) * 2012-11-12 2014-05-15 Samsung Electronics Co., Ltd. Method and apparatus for interpolating color
US10375368B2 (en) 2016-06-30 2019-08-06 Apple Inc. Image data conversion

Also Published As

Publication number Publication date
US6642962B1 (en) 2003-11-04

Similar Documents

Publication Publication Date Title
USRE42555E1 (en) Merged pipeline for color interpolation and edge enhancement of digital images
USRE43357E1 (en) Color interpolator and horizontal/vertical edge enhancer using two line buffer and alternating even/odd filters for digital camera
US7139022B1 (en) Edge enhancer for RGB-Beyer to YUV 4:2:0 converter with sharpened-Y feedback to U, V transformer
US9483848B2 (en) Image processing apparatus having a plurality of image processing blocks that are capable of real-time processing of an image signal
US7092020B2 (en) Resizing images captured by an electronic still camera
USRE43085E1 (en) Adaptive pixel-level color enhancement for a digital camera
US5917556A (en) Split white balance processing of a color image
US9013611B1 (en) Method and device for generating a digital image based upon a selected set of chrominance groups
US6201530B1 (en) Method and system of optimizing a digital imaging processing chain
US7671910B2 (en) Interpolator, method, and digital image signal processor for adaptive filtering of Bayer pattern color signal
US20030021474A1 (en) Electronic image colour plane reconstruction
JPH07298275A (en) Signal processing circuit for video camera
JP2005056374A (en) Apparatus for and method of edge enhancement in image processing
US20070041633A1 (en) Mosaic image data processing
JP2003244715A (en) Hybrid pixel interpolation apparatus and hybrid pixel interpolation method
JP3730063B2 (en) Color component generation apparatus, color component generation method, and multicolor image pickup apparatus using the same
US20050254117A1 (en) Method and apparatus for signal processing, computer program product, computing system and camera
US7512266B2 (en) Method and device for luminance correction
US7978235B2 (en) Electronic zooming device
JP2001186534A (en) Solid-state image pickup device
EP1522047B1 (en) Method and apparatus for signal processing, computer program product, computing system and camera
JP2004153753A (en) Apparatus and method for interpolating image picked up by single plate color digital camera
JPH06269009A (en) Color wide dynamic range camera
JPH02142293A (en) Chrominance signal processor
JPH04263577A (en) Color picture processor

Legal Events

Date Code Title Description
AS Assignment

Owner name: FAUST COMMUNICATIONS, LLC, NEVADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:NEOMAGIC CORPORATION;REEL/FRAME:024611/0444

Effective date: 20050406

Owner name: NEOMAGIC CORP., CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:LIN, TAO;YU, VINCENT CHOR-FUNG;TANG, TIANHUA;AND OTHERS;REEL/FRAME:024619/0650

Effective date: 19990901

FPAY Fee payment

Year of fee payment: 12

AS Assignment

Owner name: XYLON LLC, NEVADA

Free format text: MERGER;ASSIGNOR:FAUST COMMUNICATIONS LLC;REEL/FRAME:036641/0051

Effective date: 20150813