|Publication number||USRE43357 E1|
|Application number||US 11/241,903|
|Publication date||May 8, 2012|
|Filing date||Sep 30, 2005|
|Priority date||Sep 1, 1999|
|Publication number||11241903, 241903, US RE43357 E1, US RE43357E1, US-E1-RE43357, USRE43357 E1, USRE43357E1|
|Original Assignee||Faust Communications, Llc|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (31), Referenced by (3), Classifications (17), Legal Events (4)|
|External Links: USPTO, USPTO Assignment, Espacenet|
This application is a continuation-in-part of the co-pending application for “Merged Pipeline for Color Interpolation and Edge Enhancment of Digital Images”, U.S. Ser. No. 09/388,318, filed Sep. 1, 1999 now U.S. Pat. No. 6,642,962.
This invention relates to digital cameras, and more particularly to digital signal processing that integrates color interpolation with edge detection.
Rapid improvements in digital cameras and lower costs occur today 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.
The R, G, or B digital values in the Bayer pattern are processed by processor 10 to generate red-green-blue (RGB) or luminance-chrominance YUV pixels. The RGB or 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. RGB pixels have varying formats, such as 4, 5, 6, or 8 bits per color.
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 may also be 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 can be 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).
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,
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.
Parent Application Used 4-Line Buffer and Column Register—
The parent application disclosed a merged interpolator and edge detector that required only a 4-line buffer.
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 K bits. Other resolutions, such as 1024×768 have more pixels per line, so the size of line buffer 30 can increase to 48K bits 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:
which is a 3×3 kernel that can be separated into a 3×1 kernel and a 1×3 kernel:
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:
which is a 3×3 kernel that can be separated into a 3×1 kernel and a 1×3 kernel:
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.
While the merged device of the parent application is useful, steep cost reductions in digital cameras has made it desirable to further reduce the cost of the device. It is desired to use even smaller buffers in the color interpolator. A merged color interpolator that performs both edge detection and color interpolation is desired that uses less than a 4-line buffer.
It is desired to reduce cost further by eliminating the white balancer, the YUV converter, and pipeline registers in the parent device. It is further desired to eliminate the column registers and RGB buffers in the parent device.
What is desired is a digital-camera processor that does not use a whole-frame buffer. It is still desired to perform color interpolation of Bayer-pattern pixels without storing all the pixels in a frame. It is desired to use only a few 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 horizontal/vertical edge detector into the interpolator. It is desired to also perform both horizontal and vertical edge enhancement 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.
An alternating-line color interpolator and edge detector has an input for receiving a stream of mono-color pixels from an image sensor. A 2-line buffer is coupled to receive pixels from the input. It stores a full line of pixels and portions of 2 other lines of pixels. The 2-line buffer outputs a 3×3 region of pixels having 3 rows and 3 columns.
A red interpolator receives red pixels in the 3×3 region from the 2-line buffer. It averages the red pixels within the 3×3 region to generate an interpolated red pixel for a center location of the 3×3 region. A blue interpolator receives blue pixels in the 3×3 region from the 2-line buffer. It averages the blue pixels within the 3×3 region to generate an interpolated blue pixel for a center location of the 3×3 region. A green interpolator receives green pixels in the 3×3 region from the 2-line buffer. It averages the green pixels within the 3×3 region to generate an interpolated green pixel for a center location of the 3×3 region.
For odd lines the green interpolator averages only green pixels in a middle column of the 3×3 region when the center location is on an odd line. The green interpolator ignores green pixels in a left column to the left of the middle column and in a right column to the right of the middle column for odd lines. For even lines the green interpolator averages only green pixels in a middle row of the 3×3 region when the center location is on an even line. The green interpolator ignores green pixels in an upper row above the middle row and in a lower row below the middle row for even lines.
An edge detector receives green pixels in the 3×3 region from the 2-line buffer. It multiplies each green pixel by a filter coefficient and sums results to generate an edge value.
For odd lines, the filter coefficients for green pixels in a middle column have an opposite sign as filter coefficients for green pixels in the right and left column. Thus edges crossing the middle column are magnified more than vertical edges within the middle column for odd lines.
For even lines, the filter coefficients for green pixels in a middle row have an opposite sign as filter coefficients for green pixels in the upper and lower row. Thus edges crossing the middle row are magnified more than horizontal edges within the middle row for even lines. Vertical color interpolation and horizontal edge detection is performed for odd lines, but horizontal color interpolation and vertical edge detection is performed for even lines.
In further aspects of the invention diagonal edges that pass through the center location are detected by the edge detector for both odd and even lines. The mono-color pixels from the image sensor are arranged in a Bayer pattern.
In still further aspects the 2-line buffer has a storage capacity sufficient for two full lines of pixels but insufficient for three full lines of the pixels. Thus the 2-line buffer stores less than one percent of the whole image of pixels.
In other aspects the green color interpolator averages one or two green pixels for each center location, while the red and blue color interpolators each average one, two, or four red or blue pixels for each center location. Thus no more than two green pixels are averaged but up to four red or blue pixels are averaged.
The present invention relates to an improvement in digital imaging. 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 inventor has realized that cost can be further reduced by using a 2-line buffer before the color interpolator rather than a 4-line buffer. The 2-line buffer and a small temporary buffer can output 3 lines of pixels, allowing a 3×3 kernel to be used as a filter for color interpolation. Edge detection can also use a 3×3 kernel filter.
Edge detection can be performed simultaneously with green color interpolation in the same pipeline. This eliminates a separate RGB buffer between the color interpolator and the edge unit. Edge detection can be performed on just the green pixels, and not the red and blue pixels. Since there are twice as many green pixels as the other colors, greater detection accuracy is achieved using green.
The cost can be further reduced by removing the white balance and the YUV converter. Edge enhancement can be applied directly to the RGB pixels as they are output from the color interpolator.
Merged Color Interpolator and Edge Detector With 2-Line Buffer-
Interpolator 42 performs both horizontal and vertical interpolation to generate all three color components (R,G,B) for each pixel. Interpolation is performed by a weighted averaging of 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.
Line buffer 30 is fed a stream of mono-color pixels from the sensor. 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 two lines are stored in line buffer 30 for the preferred embodiment. Horizontal lines H1 and H2 have been stored in the two lines of line buffer 30. Horizontal line H3 is currently being received from the sensor. Pixels along line H3 replace line H1 pixels in the first row of line buffer 30. Thus pixels to the left of the first row are from line H3 while pixels to the right are from the older line H1.
A small overlapping region occurs in a current column 54. 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 54 and in the 2 surrounding columns of oldest line H1 are not discarded immediately, but instead are sent to interpolator 42. Using temporary buffer 31 to store new pixels from line H3 allows for 3 lines of pixels (H1 to H3) to be sent to interpolator 42 for current column 54. Pixels from oldest line H1 are discarded after being sent to interpolator 42.
Current column 54 includes the actual current column and two adjacent columns, for two horizontal lines. A region of 3×3 pixels is sent from line buffer 30 to interpolator 42 for each clock cycle. This 3×3 region provides enough pixels for interpolation of a current pixel location's RGB values. The 3×3 region is also used for edge detection by being input to an edge filter kernel. Thus edge detection values are also generated by interpolator 42.
The 3×3 region or array of pixels is sent from line buffer 30 to three interpolator units: green interpolator and edge detector 44, red interpolator 46, and blue interpolator 48. Red interpolator 46 averages any red pixels from the Bayer pattern in the 3×3 region to generate the interpolated red value for the center pixel on line H2. This center R pixel is output to edge enhancer 52. Likewise, Blue interpolator 48 averages any blue pixels from the Bayer pattern in the 3×3 region to generate the interpolated blue value B for the center pixel on line H2, which is also output to edge enhancer 52.
Green interpolator and edge detector 44 also averages any green pixels in the Bayer pattern in the 3×3 region to generate the G value for the center pixel on line H2. At the same time, a different filter kernel is applied to the G pixels in the input 3×3 region. This filter kernel exaggerates differences along an edge. The filter kernel is reduced to a single value, the EDGE value. The EDGE value is output to edge enhancer 52, as is the G pixel.
Edge enhancer 52 compares the absolute value of the EDGE value from green interpolator and edge detector 44 to a threshold. When the EDGE value exceeds the threshold, an edge has been detected. Edge enhancer 52 then adjusts pixel values for the R, G, and B center pixel. The adjusted pixel colors R, G, B are then output to RGB register 56 as the RGB value for the center pixel on line H2. RGB register 56 stores one pixel.
A single-pixel RGB register 56 is required, rather than a 2-line RGB buffer, since edge detection is performed on the Bayer-pattern G values, not on the interpolated G values. Since these Bayer-pattern G pixels are missing from every other pixel location, a special edge-detection filter is applied, as shown later in
Red and Blue Color Interpolator—
Line interpolator 95 receives any R pixels on the first line (i˜1, or H1). Filter coefficients R11, R12, R13 are multiplied with any corresponding R pixels on the first line, and the results summed. Since the Bayer pattern has R pixels in only one-quarter of all locations, only 2, 1, or 0 R pixels are present. Missing R pixels are input as a zero to line interpolator 95 and do not increase the sum.
Line interpolator 96 receives any R pixels in the current line i (H2). Filter coefficients R21, R22, R23 are multiplied by the R pixel values, or zero when no R pixel exists in that location of the Bayer pattern. The products are summed and output. Likewise, line interpolator 97 receives any R pixels in the third line i+1 (H3). Filter coefficients R31, R32, R33 are multiplied by the R pixel values, and the sum output.
The line sums from line interpolators 95, 96, 97 are then summed to generate a final sum. The final sum is the interpolated R value for the center pixel (i,j). The filter coefficients applied vary from pixel to pixel and line to line in a fixed sequence, according to the Bayer pattern, as shown in
Green Interpolator and Edge Detector—
The filter coefficients are alternated for even and odd lines, but the same set of coefficients are applied for all pixels within a line. For odd lines, coefficients A11, A12, A13 are multiplied by the first-line G values, but for even lines the coefficients are B11, B12, B13. The coefficients for even and odd lines are shown in more detail in
The line sums from line interpolators 82, 86, 90 are summed to produce a final sum. The final sum is the interpolated G value for the center pixel at i,j on line H2.
Edge detectors 84, 88, 92 operate in parallel with color line interpolators 82, 86, 90 on the same Bayer-pattern G values from line buffer 30. Since edge detection is performed directly on the Bayer-pattern input, detection is not blurred by interpolation that averages pixels. However, special coefficient values are required for the edge filter. These coefficients are shown later in
Edge detectors 84, 88, 92 each receive 1 or 2 G values for each 3-pixel line, and multiply them by coefficients before the results are summed. Coefficients C11, C12, C13 are multiplied by G values in the first line of the odd lines, while coefficients D11, D12, D13 are multiplied for even lines.
The summed results from edge detectors 84, 88, 92 are summed together to produce a final sum, the EDGE value. This EDGE value is the filter output of the edge kernel. When the absolute value of EDGE exceeds a threshold, edge enhancement is performed.
Red/Blue Coefficient Pattern13
When the current pixel location moves to the right by one column from pattern 1 in
Patterns 1 and 2 alternate with successive pixels in the current line. On the next line, patterns 3 and 4 alternate. In pattern 3 (
When the pixel values are set to zero for pixel locations that do not have red pixels in the Bayer pattern, the red interpolation coefficients can be fixed at the values:
Locations without red pixels then multiply the coefficient by the zero. The coefficients with non-zero pixels depend on the pattern.
Green Interpolation Coefficients Alternate for Even/Odd Lines—
Since the green pixels are in a checkerboard pattern, the 3×3 region can have only 2 possible patterns. The pattern A of
The interpolation coefficients shown in
For even pixels on odd lines, pattern A, there are no pixels above and below the center and thus their coefficients (G12, G32) are multiplied by zero. The green pixel at the center is multiplied by coefficients G22, which is 1.0. Thus the center pixels is output without change. Note that the green pixels at the four corners are ignored. Thus no interpolation is performed.
The interpolation coefficients shown in
For odd pixels on even lines, pattern A, there are no pixels to the right and of the center and thus their coefficients (G21, G23) are multiplied by zero. The green pixel at the center is multiplied by coefficients G22, which is 1.0. Thus the center pixels is output without change. Note that the green pixels at the four corners are ignored. Thus no interpolation is performed.
The interpolation filter performs horizontal-only interpolation on even lines, but vertical-only interpolation on odd lines. Since only two pixels are averaged to generate a missing middle pixel, bluffing is minimized. Only one addition is required per pixel, yet the overall picture is interpolated in both horizontal and vertical directions. Each interpolation filter requires either no arithmetic operations (G in center), or one addition and one post-addition right-shift.
Edge-Detection Coefficients Alternate for Even and Odd Lines—
Since edge detection is performed only on green pixels, only the green color interpolations needs to be taken into account. The green color interpolation performs vertical interpolation for odd lines, but horizontal interpolation for even lines. This interpolation tends to spread out or blur horizontal edges for odd lines, but blurs vertical edges for even lines. The edge detection filter is modified to accommodate the blurred edges that result from green interpolation.
The corner coefficients C11, C13, C31, C33 are also set to −¼, which produces a magnification similar to C21 and C23. Thus the odd-line edge filter magnifies horizontal edges and diagonal edges. Vertical edges are enhanced to a lesser degree.
The corner coefficients C11, C13, C31, C33 are set to −¼, which produces the same magnification as C12 and C32, which are −¼. Thus the even-line edge filter magnifies vertical edges and diagonal edges. Horizontal edges are enhanced to a lesser degree.
Absolute unit 75 generates the absolute value of EDGE, |EDGE|, and outputs the absolute value to comparators 74, 76. Comparator 74 compares |EDGE| to the green threshold value, G_THRES. When |EDGE| exceeds G_THRES, comparator 74 signals mux 70 to select the green scale factor G_SCALE_FACTOR for output to multiplier 63. Multiplier 63 multiplies the edge value EDGE by the green scale factor, and the product from multiplier 63 is added to the interpolated green value G by summer 61. Thus the green value is enhanced when an edge is detected.
When the edge value does not exceed the green threshold, mux 70 selects 0, and multiplier 63 outputs as zero to summer 61. The green value is passed through summer 61 without enhancement, since no edge was detected.
Rather than use the same green scaling factor and threshold, a separate threshold and scaling factor are used for red/blue. Comparator 76 compares |EDGE| to the red/blue threshold value R/B_THRES, and signals mux 72 to select zero when a sufficiently abrupt edge was not found. Summers 68, 69 add zero to the R, B values, and no enhancement is performed.
When an edge is detected, |EDGE| exceeds R/B_THRES and comparator 76 signals mux 72 to select the red/blue scaling factor R/B_SCALE_FACTOR, which is multiplied by the edge value EDGE in multiplier 66. The product of the scaling factor and the edge value is then added to the R and B pixel values by summers 68, 69. Enhanced red and blue pixels are then output.
Using separate thresholds and scaling factors for green and for red/blue is useful for images derived Bayer patterns. The Bayer pattern has twice as many green pixels are red or blue pixels, so a higher threshold or a smaller scaling factor can be used for green. This helps to balance colors near an edge.
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. A smaller 2-line buffer is used, which store only 2 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. All pixels in a frame are processed in a single pass, without storing all the pixels.
Only 2 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 interpolation, edge detection and enhancement are all performed digitally. Since the edge detection is tightly integrated with the interpolation pipeline, a separate multi-line RGB buffer between the interpolator output and the edge-detector input is not needed.
The interpolation filters use as few pixels as possible to reduce blurring, the spreading of pixel values to nearby pixel locations. The green interpolation filter performs only vertical interpolation for odd lines and only horizontal interpolation for even lines, minimizing blurring. However, both horizontal and vertical interpolation are performed on the digital image, improving symmetry. Performing only vertical or horizontal interpolation at any location also has the advantage of requiring less hardware, since fewer pixel inputs are needed for averaging. Rather than full matrix-resolving hardware, only a simple adder and shifter can be used when the proper pixels and coefficients are input.
Several other embodiments are contemplated by the inventor. The invention can also interpolating for locations that already have green values in the Bayer pattern. This produces a smoother color. 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.
Various logic segmentation and pipelines can be used, 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 more 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 meaning of odd and even lines can be altered, depending on the physical image and the assignment of line numbers. Some images may start with line 0 rather than line 1, or the Bayer pattern can be shifted to the right or left or otherwise modified.
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.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US4760441||May 13, 1987||Jul 26, 1988||Nec Corporation||Solid-state color imaging apparatus having color filter array which eliminates vertical color error|
|US4764805||Jun 2, 1987||Aug 16, 1988||Eastman Kodak Company||Image transmission system with line averaging preview mode using two-pass block-edge interpolation|
|US4796085||Feb 17, 1987||Jan 3, 1989||Fuji Photo Film Co., Ltd.||Device for interpolating missing color-difference signal by averaging line-sequential color-difference signals|
|US4796095||Sep 22, 1987||Jan 3, 1989||Rioch Company, Limited||Method of generating image scanning clock signals in optical scanning apparatus|
|US5008739||Feb 13, 1989||Apr 16, 1991||Eastman Kodak Company||Real-time digital processor for producing full resolution color signals from a multi-color image sensor|
|US5172227||Dec 10, 1990||Dec 15, 1992||Eastman Kodak Company||Image compression with color interpolation for a single sensor image system|
|US5260774||Apr 12, 1990||Nov 9, 1993||Canon Kabushiki Kaisha||White balance control for still image sensing apparatus|
|US5262849||Oct 30, 1991||Nov 16, 1993||Canon Kabushiki Kaisha||Digital camera processing device having variably settable interpolation|
|US5265200||Nov 1, 1990||Nov 23, 1993||International Business Machines Corporation||System and method for automatic image saturation, gamma, and exposure correction in a digitizing video capture system|
|US5325182||Jun 22, 1992||Jun 28, 1994||Sanyo Electric Co., Ltd.||Video signal processing circuit incorporated in a integrated circuit|
|US5371546||Jan 4, 1993||Dec 6, 1994||Nec Corporation||LSI encoding device with pixel data blocking and vertical decimating circuits|
|US5382976||Jun 30, 1993||Jan 17, 1995||Eastman Kodak Company||Apparatus and method for adaptively interpolating a full color image utilizing luminance gradients|
|US5396441||Jan 12, 1994||Mar 7, 1995||Hitachi, Ltd.||Signal interpolation apparatus and signal interpolation method|
|US5414465 *||Jan 3, 1994||May 9, 1995||Sony Corporation||Luminance signal generator with interpolation|
|US5504524||Oct 13, 1994||Apr 2, 1996||Vlsi Vision Limited||Method and apparatus for controlling color balance of a video signal|
|US5506619||Mar 17, 1995||Apr 9, 1996||Eastman Kodak Company||Adaptive color plan interpolation in single sensor color electronic camera|
|US5528292||Dec 20, 1994||Jun 18, 1996||Canon Kabushiki Kaisha||Electric still camera having a plurality of image pickup elements with color filters|
|US5579047||Aug 2, 1994||Nov 26, 1996||Canon Kabushiki Kaisha||Image signal processing apparatus using color filters and an image pick-up device providing interlaced field signals|
|US5596367||Feb 23, 1996||Jan 21, 1997||Eastman Kodak Company||Averaging green values for green photosites in electronic cameras|
|US5739867||Feb 24, 1997||Apr 14, 1998||Paradise Electronics, Inc.||Method and apparatus for upscaling an image in both horizontal and vertical directions|
|US5808674||Sep 9, 1996||Sep 15, 1998||Eastman Kodak Company||Producing and improved digital image from digital signals corresponding to pairs of photosites|
|US5821999||Jun 14, 1996||Oct 13, 1998||Iterated Systems, Inc.||Method and system for fractally interpolating intensity values for a single color component array obtained from a single color sensor|
|US5886797||Jan 11, 1995||Mar 23, 1999||Ricoh Co. Ltd.||Method and apparatus for controlling a spatial filtering process based on characteristics of image data|
|US5887085||Aug 31, 1995||Mar 23, 1999||Rohm Co., Ltd.||Image processing device|
|US5889554||Oct 23, 1996||Mar 30, 1999||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|
|US5987221||Jan 24, 1997||Nov 16, 1999||Hewlett-Packard Company||Encoded orphan pixels for discriminating halftone data from text and line art data|
|US6346969 *||Dec 30, 1997||Feb 12, 2002||Hyundai Electronics Industries Co., Ltd.||Color filter array and its color interpolation apparatus|
|US6421084||Mar 2, 1998||Jul 16, 2002||Compaq Computer Corporation||Method for interpolating a full color image from a single sensor using multiple threshold-based gradients|
|US6563535 *||May 19, 1998||May 13, 2003||Flashpoint Technology, Inc.||Image processing system for high performance digital imaging devices|
|US6563537 *||Jul 30, 1998||May 13, 2003||Fuji Photo Film Co., Ltd.||Image signal interpolation|
|US7142233 *||Dec 14, 1998||Nov 28, 2006||Canon Kabushiki Kaishi||Image pickup element|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US20100195908 *||Aug 5, 2010||Gentex Corporation||Digital image processing and systems incorporating the same|
|US20130194494 *||May 11, 2012||Aug 1, 2013||Byung-Ki Chun||Apparatus for processing image signal and method thereof|
|US20140132808 *||Oct 2, 2013||May 15, 2014||Samsung Electronics Co., Ltd.||Method and apparatus for interpolating color|
|U.S. Classification||348/252, 382/266|
|International Classification||G06K9/40, H04N5/208|
|Cooperative Classification||G06T5/003, G06T2207/20192, G06T7/0085, G06T2207/10024, G06T3/4007, G06T3/403, G06T3/4015, H04N9/045|
|European Classification||G06T3/40B, H04N9/04B, G06T3/40C, G06T5/00D, G06T3/40E|
|Jun 30, 2010||AS||Assignment|
Owner name: NEOMAGIC CORP., CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LIN, TAO;REEL/FRAME:024619/0538
Effective date: 19991103
Owner name: FAUST COMMUNICATIONS, LLC, NEVADA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:NEOMAGIC CORPORATION;REEL/FRAME:024611/0444
Effective date: 20050406
|Nov 27, 2012||CC||Certificate of correction|
|Feb 25, 2015||FPAY||Fee payment|
Year of fee payment: 12
|Sep 21, 2015||AS||Assignment|
Owner name: XYLON LLC, NEVADA
Free format text: MERGER;ASSIGNOR:FAUST COMMUNICATIONS LLC;REEL/FRAME:036641/0051
Effective date: 20150813