US10068342B2 - Macropixel processing system, method and article - Google Patents
Macropixel processing system, method and article Download PDFInfo
- Publication number
- US10068342B2 US10068342B2 US15/089,077 US201615089077A US10068342B2 US 10068342 B2 US10068342 B2 US 10068342B2 US 201615089077 A US201615089077 A US 201615089077A US 10068342 B2 US10068342 B2 US 10068342B2
- Authority
- US
- United States
- Prior art keywords
- macro
- pixel
- color space
- yuv
- pixels
- 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.)
- Active, expires
Links
- 238000000034 method Methods 0.000 title claims description 63
- 230000009467 reduction Effects 0.000 claims description 31
- 238000006243 chemical reaction Methods 0.000 claims description 25
- 230000008569 process Effects 0.000 claims description 22
- 238000001914 filtration Methods 0.000 abstract description 8
- 238000013507 mapping Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 8
- 238000003705 background correction Methods 0.000 description 7
- 239000000872 buffer Substances 0.000 description 6
- 230000015654 memory Effects 0.000 description 6
- 230000006835 compression Effects 0.000 description 5
- 238000007906 compression Methods 0.000 description 5
- 238000005070 sampling Methods 0.000 description 4
- 230000003139 buffering effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/46—Colour picture communication systems
- H04N1/56—Processing of colour picture signals
- H04N1/60—Colour correction or control
- H04N1/6002—Corrections within particular colour systems
- H04N1/6005—Corrections within particular colour systems with luminance or chrominance signals, e.g. LC1C2, HSL or YUV
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/86—Camera processing pipelines; Components thereof for processing colour signals for controlling the colour saturation of colour signals, e.g. automatic chroma control circuits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/68—Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/73—Colour balance circuits, e.g. white balance circuits or colour temperature control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2200/00—Indexing scheme for image data processing or generation, in general
- G06T2200/28—Indexing scheme for image data processing or generation, in general involving image processing hardware
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
Definitions
- the description relates to systems, methods and articles to process images, e.g., to convert RGB images to YUV images.
- RGB red, green, blue
- RGB image data may be converted into different color models, such as the YUV color model or variants thereof, according to which one value Y represents luminance information of the pixel, and two values UV represent the chrominance information.
- the YUV images may be transmitted, encoded or compressed, for example, using JPEG/H264 encoding.
- many devices such as mobile devices, include one or more image sensors or cameras capable of capturing digital images, for example, in various formats such as RGB and YUV formats, as well as displays for displaying images in various formats, such as RGB and YUV formats.
- An image sensor may comprise an array of pixel sensors arranged in a grid pattern defined as the color filter array (CFA). This color filter array may be composed of different color patterns and for example R, G, G, B Bayer pattern.
- CFA color filter array
- Such devices typically include digital image processing circuitry, which may, for example, convert CFA images to RGB images and then to YUV images, process the images for storage, display, image quality, transmission or other purposes, etc.
- a method comprises: converting, using image processing circuitry, a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein a macro-pixel comprises at least two pixel rows and at least two pixel columns and the converting includes simultaneously receiving pixel data defining the macro-pixel in the first color space; and applying, on a macro-pixel level and using the image processing circuitry, at least one operation to the macro-pixel in the YUV 4:2:0 color space.
- the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components.
- the at least one operation includes an operation applying luminance noise reduction processing to the four luminance components of the macro-pixel in the YUV 4:2:0 color space in a single clock cycle of the image processing circuitry.
- the first color space is a color filter array (CFA) color space.
- the first color space is a Bayer color space.
- the method comprises: generating, using the image processing circuitry, the macro-pixel in the Bayer color space, the generating including applying at least one operation to the macro-pixel in the Bayer color space on a macro-pixel level.
- the at least one operation applied on a macro-pixel level to the macro-pixel in the YUV 4:2:0 color space includes at least one of: luminance noise reduction; chrominance noise reduction; matrixing operations; cropping; scaling; brightness and saturation operations; sharpening; and post decoding deblocking.
- an operation of the at least one operation applied to the macro-pixel in the YUV 4:2:0 color space is applied in a single clock cycle of the image processing circuitry.
- a device comprises: conversion circuitry configured to convert a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance (YUV) 4:2:0 color space, wherein the macro-pixel comprises at least two pixel rows and at least two pixel columns and the conversion circuitry simultaneously receives pixel data defining the macro-pixel in the first color space; and YUV processing circuitry configured to perform at least one operation on the macro-pixel in the YUV 4:2:0 color space, wherein each operation of the at least one operation is applied on a macro-pixel level.
- the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components.
- the at least one operation includes an operation applying luminance noise reduction processing to the luminance components of the macro-pixel in the YUV 4:2:0 color space.
- the first color space is a color filter array (CFA) color space.
- the CFA color space is a Bayer color space.
- the device comprises: Bayer macro-pixel processing circuitry configured to generate the macro-pixel in the Bayer color space by applying at least one operation in the Bayer color space on a macro-pixel level.
- the at least one operation performed on a macro-pixel level on the macro-pixel in the YUV 4:2:0 color space includes at least one of: luminance noise reduction; chrominance noise reduction; matrixing operations; cropping; scaling; brightness and saturation operations; sharpening; and post decoding deblocking.
- an operation of the at least one operation is applied to the macro-pixel in a single clock cycle of the YUV processing circuitry.
- the device comprises: a bus system configured to transport macro-pixels defined in the YUV 4:2:0 color space as macro-pixels between the conversion circuitry and the YUV processing circuitry and to transport macro-pixels defined in the YUV 4:2:0 color space as macro-pixels within the YUV processing circuitry.
- a system comprises: one or more image capture devices, which, in operation, capture digital images; and digital image processing circuitry, which, in operation: converts, using image processing circuitry, a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein the macro-pixel comprises at least two pixel rows and at least two pixel columns and the converting includes simultaneously receiving pixel data defining the macro-pixel in the first color space; and applies, on a macro-pixel level and using the image processing circuitry, at least one operation to the macro-pixel in the YUV 4:2:0 color space.
- the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components.
- the first color space is a color filter array (CFA) color space.
- the first color space is a Bayer color space and the digital image processing circuitry comprises: Bayer macro-pixel processing circuitry configured to generate macro-pixels in the Bayer color space, the generating including applying at least one operation to a macro-pixel in the Bayer color space on a macro-pixel level.
- a non-transitory computer-readable medium has contents which cause digital image processing circuitry to process digital images by: converting a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein the macro-pixel comprises at least two pixel rows and at least two pixel columns and the converting includes simultaneously receiving pixel data defining the macro-pixel in the first color space; and applying, on a macro-pixel level, at least one operation to the macro-pixel in the YUV 4:2:0 color space.
- the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components and the first color space is a Bayer color space.
- the at least one operation includes an operation applying luminance noise reduction processing to the four luminance components of the macro-pixel in the YUV 4:2:0 color space in a single clock cycle of the digital image processing circuitry.
- the method comprises: generating the macro-pixel in the Bayer color space, the generating including applying at least one operation in the Bayer color space on a macro-pixel level.
- a system comprises: means for capturing digital images; and digital image processing means, which, in operation: converts a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein the macro-pixel comprises at least two pixel rows and at least two pixel columns and the converting includes simultaneously receiving pixel data defining the macro-pixel in the first color space; and applies, on a macro-pixel level, at least one operation to the macro-pixel in the YUV 4:2:0 color space.
- the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components.
- the first color space is a color filter array (CFA) color space.
- the first color space is a Bayer color space and the digital image processing means comprises: Bayer macro-pixel processing circuitry configured to generate macro-pixels in the Bayer color space, the generating including applying at least one operation to a macro-pixel in the Bayer color space on a macro-pixel level.
- FIG. 1 illustrates YUV spatial sampling of an image according to a YUV 4:4:4 format.
- FIG. 2 illustrates YUV spatial sampling of an image according to a YUV 4:2:0 format.
- FIG. 3 is a timing diagram for processing pixels of an image in a YUV 4:4:4 format.
- FIG. 4A illustrates a Bayer RGB format macro-pixel according to an embodiment.
- FIG. 4B is a graphical illustration comparing raster processing to macro-pixel processing.
- FIG. 5 illustrates a YUV 4:2:0 format macro-pixel according to an embodiment.
- FIG. 6 is a functional block diagram of an embodiment of a system which, in operation, process macro-pixels.
- FIG. 7 is a functional block diagram of an embodiment of a CFA macro-pixel processing circuit.
- FIG. 8 is a graphical representation of overlaying an RGB image representation with a set of grids.
- FIG. 9 illustrates an embodiment of a method of applying grid-based color shading correction during macro-pixel processing.
- FIG. 10 illustrates an embodiment of a method of applying grid-based color shading correction during macro-pixel processing.
- FIG. 11 is a functional block diagram of an embodiment of a tone mapping circuit employing macro-pixel processing.
- FIG. 12 is a functional block diagram of an embodiment of a chrominance noise reduction circuit employing macro-pixel processing.
- FIG. 13 is a functional block diagram of an embodiment of a YUV macro-pixel processing circuit.
- FIG. 1 illustrates an example YUV spatial sampling of an image in a YUV 4:4:4 format, which may be generated, for example, from a representation of the image in an RGB data format.
- Each pixel of the YUV 4:4:4 representation has three components, a Luminance value Y representing the luminance component of the pixel, and Chrominance values U, V representing the chrominance components of the pixel.
- FIG. 2 illustrates an example YUV spatial sampling of an image in a YUV 4:2:0 format, which may be generated, for example, from a representation of the image in an RGB data format or in a YUV 4:4:4 format.
- Other YUV 4:2:0 formats may be used.
- Each pixel of the YUV 4:2:0 representation has three components, a Luminance value Y representing the luminance component of the pixel, and Chrominance values U, V representing the chrominance components of the pixel. However, blocks of 4 pixels share the same chrominance components U, V. Images may be converted to YUV 4:2:0 to reduce the amount of data needed to store the image.
- U and V values may be shared for horizontally and vertically adjacent pixels.
- YUV format 4 : 2 : 0 is typically used in JPEG images and digital video disks and Blue-RayTM videos. Images are typically raster-processed in RGB, Bayer or YUV 4:4:4 format until just prior to encoding, or just before or after transmission. In conventional raster-based processing, YUV 4:2:0 format is supported by duplicating chrominance components (which are the same for horizontally adjacent pixels as shown in FIG. 2 ).
- FIG. 3 is a timing diagram for processing pixels of an image in a YUV 4:4:4 format in raster processing.
- Raster processing processes one pixel per clock cycle from the top left to the bottom right line per line.
- the digital image processing circuitry must have a bus width and processing configuration to support three components for each pixel to have all the components available for processing.
- FIG. 4A illustrates a macro-pixel of Bayer CFA format according to an embodiment.
- FIG. 4B graphically compares pixel-per-clock cycle processing to macro-pixel-per-clock cycle processing.
- Four pixels of a two-by-two pattern may be read in and/or processed and output as a macro-pixel per clock cycle (e.g., with reference to FIG.
- FIG. 5 illustrates a macro-pixel of a YUV 4:2:0 format according to an embodiment.
- Each YUV 4:2:0 format macro-pixel has six components, four luminance Y values and two chrominance values U and V.
- the frequency may be reduced in an embodiment by a factor of four as compared to raster-based processing.
- FIG. 6 illustrates an embodiment of a system 100 to process macro-pixels of an image.
- the system 100 comprises one or more image sensors 102 , macro-pixel digital image processing circuitry 200 and other processing circuitry, as illustrated a display 220 , transmission circuitry 212 , compression circuitry 214 , storage 216 and a main processing system 218 .
- the image sensor 102 may comprise an array of pixels each including a photodetector and an amplifier.
- the image sensor may be configured to output data (for example, in Bayer format) to be read on a macro-pixel by macro-pixel basis (e.g., with a sufficient number of output data lines, to output serial data having a sufficient number of bits or words per clock cycle, etc.) or on a pixel-by-pixel basis which may then be converted into macro-pixels, for example by an optional buffering and conversion circuit 104 .
- the macro-pixel digital image processing circuitry ISP 200 comprises an CFA processing stage or circuitry 202 , which in operation processes CFA macro-pixels such as Bayer macro-pixels, a demozaic processing stage or circuit 203 , which, in operation, performs demozaic operations on macro-pixels, and a YUV processing stage or circuitry 204 , which, in operation, processes YUV macro-pixels such as YUV 4:2:0 macro-pixels.
- CFA circuitry 202 may locally perform some processing in other formats, such as YUV formats
- embodiments of the YUV circuitry 204 may perform some processing in other formats, such as RGB formats.
- embodiments of the CFA circuitry 202 and of the YUV circuitry 204 may perform some processing as raster-based processing.
- macro-pixel processing may comprise using parallel processing to process multiple individual pixels of a macro-pixel in a clock cycle, using a faster clock for some sub-processes, etc.
- raster-based tone mapping may be employed using parallel processing and buffers to process multiple individual pixels in a clock cycle.
- the ISP circuitry 200 also comprises an interface 206 to receive macro-pixels to process (such as from the image sensor 102 ).
- a buffering and conversion subsystem 104 may be employed to convert pixels read from the image sensor on a pixel-by-pixel basis into macro-pixels, and may be incorporated into the image sensor 102 as shown, into the ISP circuitry 200 , or may be implemented as a separate circuit to couple the image sensor 102 to the ISP circuitry 200 .
- the ISP circuitry 200 comprises a bus system 208 to couple the various components of the ISP circuitry 200 together, and an interface 210 to couple the ISP circuitry 200 to other system components, which as illustrated include transmission circuitry 212 , compression circuitry 214 , storage 216 , a main processing system 218 and a display 220 .
- the bus system 208 may be configured to transport image data in the form of CFA macro-pixels within the CFA processing stage or circuitry 202 and to transport image data in the form of YUV macro-pixels within the YUV processing stage or circuitry 204 (e.g., as YUV 4:4:4 macro-pixels or YUV 4:2:0 macro-pixels).
- the ISP circuitry 200 as illustrated includes one or more processors P, one or more memories M and discrete circuitry DC.
- the various components of the system 100 may be used alone or in various combinations to perform the various functions of the system 100 .
- the processor P, the one or more memories M and the discrete circuitry DC may be used alone or in various combinations to perform the functions of the CFA circuitry 202 , the demozaic circuitry 203 , the YUV circuitry 204 , etc.
- the components of the system 100 are described as separate components for ease of illustration, the components may be combined or separated into additional components in various manners.
- the compression circuitry 214 may be integrated into the ISP circuitry 200 in some embodiments, Bayer to YUV conversion circuitry may be incorporated into the RGB macro-pixel processing circuitry 202 in some embodiments, may be incorporated into the YUV macro-pixel processing circuitry 204 in some embodiments.
- FIG. 7 is a functional block diagram of a Bayer macro-block processing circuit 700 according to an embodiment.
- the Bayer macro-block processing circuit 700 may be employed, for example, in the system 100 of FIG. 6 as the CFA processing circuitry 202 .
- the Bayer circuit 700 receives a macro-pixel for processing at a vignetting and lens shading correction circuit 722 .
- the vignetting and lens shading circuit 722 determines a gain to apply to each pixel to compensate for quality issues arising due to the position of a pixel in an array. For example, edge pixels may have a lower intensity than centrally located pixels because of the imperfection of the optical elements.
- the lens shading circuit 722 applies grid-based color shading correction during macro-pixel processing.
- FIG. 8 is a graphical representation of a set of four grids overlaying an RGB representation of an image.
- One grid or channel is defined for each color of the macro-pixels (e.g., a grid for Green in red pixels, a grid for Red pixels, a grid for Blue pixels, and a grid for Green in blue pixels).
- FIG. 9 illustrates an embodiment of a method 900 of applying grid-based color shading correction during processing of a macro-pixel, which may be employed, for example, by the lens shading circuit 722 of FIG. 7 .
- the method 900 will be described with reference to the lens shading circuit 722 of FIG. 7 .
- the method 900 starts at 902 and proceeds to 904 .
- the lens shading circuitry 722 determines a function f(x,y) for each pixel of the macro-pixel based on a location of a pixel within a pixel array.
- C an adjustable parameter (e.g., selectable using software; determined based on characteristics of the image or history data, etc.)
- x and y are coordinates of the pixel from a center of the pixel array (or image)
- R ( x,y ) x 2 +y 2 (Equation 2).
- the method 900 proceeds to 906 .
- the lens shading circuitry 722 determines a relative position of each pixel with respect to the corresponding grid (e.g., with respect to the Green in red grid for a Green in red pixel).
- the method 900 proceeds to 908 .
- the lens shading circuitry 722 interpolates a gain value for each pixel based on a pixel location within the respective grid.
- the method 900 proceeds to 910 .
- the lens shading circuitry 722 modifies the interpolated gain value for each pixel based on the respective determined function f(x,y) of the pixel.
- the method 900 proceeds to 912 .
- the lens shading circuitry 722 applies the modified gain values to the respective pixels of the macro-pixel.
- the method 900 proceeds to 914 .
- the lens shading circuitry 722 determines whether there are additional macro-pixels to process. When it is determined that there are additional macro-pixels to process, the method 900 returns to 904 to process the next macro-pixel. When it is not determined that there are additional macro-pixels to process, the method 900 proceeds to 916 , where the method 900 stops.
- using macro-pixel based processing to perform grid-based color shading in an embodiment of FIG. 9 may use 190% more area and 6.25% less power consumption than using raster processing.
- x 2 and y 2 may be determined once for a first pixel of the macro-pixel, and then reused to determine the functions f(x,y) of the other pixels of the macro-pixel.
- the x 2 and y 2 values of the first pixel are reused, only two multiplications are needed to determine the function f(x,y) of the first pixel of a macro-pixel, and addition may be used to determine the functions f(x,y) of the remaining pixels of the macro-pixel. For example:
- Processing macro-pixels instead of individual pixels also facilitates reducing the computations needed to determine the relative positions of the individual pixels of the macro-pixel with respect to the respective grids at act 906 .
- the grid positions are fixed with respect to each other and the pixel positions of pixels of a macro-pixel are fixed with respect to each other.
- the relative position of the other pixels of the macro-pixel to the respective grids may be determined based on the determined relative position of the one of the pixels.
- the relative position of a Green in red pixel of a macro-pixel to the Green in red grid is the same as the relative position of the other pixels of the macro-pixel to the respective grids.
- the relative distance of each pixel to the respective grid needs to be determined for each pixel, and four calculations are used for each macro-pixel.
- the relative distance may be determined once for each macro-pixel.
- FIG. 10 illustrates an embodiment of a method 1000 of applying grid-based color shading correction during processing of a macro-pixel which takes advantage of the realization that x 2 and y 2 may be reused in macro-pixel processing and that the relative distance between pixels of a macro-pixel and the respective grids is the same for each pixel of a macro-pixel in some embodiments.
- An embodiment of the method 1000 may be employed, for example, by the lens shading circuit 722 of FIG. 7 .
- the method 1000 will be described with reference to the lens shading circuit 722 of FIG. 7 .
- the method 1000 starts at 1002 and proceeds to 1004 .
- the lens shading circuitry 722 determines x 2 and y 2 for a single pixel of the macro-pixel.
- the method 1000 proceeds to 1006 .
- the values of x 2 and y 2 determined at 1004 for the single pixel of the macro-pixel are used to determine the function f(x,y) of each pixel of the macro-pixel, for example as discussed above.
- the method 1000 proceeds to 1008 .
- the lens shading circuitry 722 determines a relative position of a pixel with respect to the corresponding grid (e.g., with respect to the Green in red grid for a Green in red pixel).
- the method 1000 proceeds to 1010 .
- the lens shading circuitry 722 uses the relative position of the pixel with respect to the corresponding grid determined at 1008 to interpolate a gain value for each pixel of the macro-pixel.
- the method 1000 proceeds to 1012 .
- the lens shading circuitry 722 modifies the interpolated gain value for each pixel based on the respective determined function f(x,y).
- the method 1000 proceeds to 1014 .
- the lens shading circuitry 722 applies the modified gain values to the respective pixels of the macro-pixel.
- the method 1000 proceeds to 1016 .
- the lens shading circuitry 722 determines whether there are additional macro-pixels to process. When it is determined that there are additional macro-pixels to process, the method 1000 returns to 1004 to process the next macro-pixel. When it is not determined that there are additional macro-pixels to process, the method 1000 proceeds to 1018 , where the method 1000 stops.
- re-using interim function results in macro-pixel based processing to perform grid-based color shading such as in an embodiment of FIG. 10 may use 45% more area and 66% less power consumption than using raster processing. Compared to macro-pixel processing in an embodiment of FIG. 9 , an embodiment of FIG. 10 re-using interim function results may use 50% less area and 63% less power consumption.
- Functions other than the example function f(x,y) discussed may be used by the vignetting and lens shading correction circuitry 722 , which may similarly facilitate reuse of variable to facilitate reductions in power consumption.
- an output of the lens shading circuit 722 is coupled to a hub 724 .
- the hub 724 provides an output to a white balance circuit 726 , which determines and applies a white balance gain, and may do so in a conventional manner.
- An output of the white balance circuit 726 is coupled to a tone mapping circuit 728 .
- Tone mapping applies a gain to each pixel based on the pixel's luminance to when the dynamic range of the pixels is reduced (e.g., from 26 bits to 16 bits or 12 bits).
- Conventional raster-based tone mapping may be employed in an embodiment.
- An embodiment of a tone mapping circuit using macro-pixel based processing which may be employed in the embodiment of FIG. 7 is discussed in more detail below with reference to FIG. 11 .
- An output of the tone mapping circuit 728 is coupled to hub 730 , which provides tone-mapped macro-pixels to a chrominance noise reduction circuit 732 .
- the hub 730 also provides tone-mapped macro-pixels to a YUV circuit, such as YUV circuit 204 of FIG. 6 .
- the hub 730 provides tone-mapped macro-pixels to a demozaic circuit, such as the demozaic circuit 203 of FIG. 6 .
- Conventional raster-based chrominance noise reduction may be employed in an embodiment, for example by employing parallel processing of individual pixels and data buffers.
- An embodiment of a chrominance noise reduction circuit using macro-pixel based processing which may be employed in the embodiment of FIG.
- the chrominance noise reduction circuit 732 provides another output of the Bayer circuit 700 , for example to a YUV circuit such as the YUV circuit 204 of FIG. 6 , or to a demozaic circuit, such as the demozaic circuit 203 of FIG. 6 .
- Embodiments of the Bayer circuit 700 of FIG. 7 may employ contain more or fewer circuits, combine circuits into larger circuits, divide circuits into smaller circuits, etc., and various combinations thereof. For example, more or fewer hubs may be employed.
- FIG. 11 is a functional block diagram of an embodiment of a tone mapping circuit 1100 employing macro-pixel based processing.
- the tone mapping circuit 1100 may be employed, for example, in the system 100 of FIG. 6 , in the Bayer circuit 700 of FIG. 7 , etc.
- Tone mapping applies a gain to each pixel based on a pixel luminance to facilitate reducing the number of bits used to represent pixels (the dynamic range).
- the tone mapping circuit 1100 comprises hubs 1102 , 1106 , a luminance determining circuit 1104 , a log operator circuit 1110 , a histogram circuit 1112 , a gain determining circuit 1114 and a gain applying circuit 1116 .
- the tone mapping circuit receives a macro-pixel for processing at hub 1102 .
- the luminance determining circuit 1104 receives macro-pixels from the hub 1102 , and determines one or more luminance values based on each received macro-pixel.
- the hub 1106 receives determined luminance values from the luminance determining circuit 1104 and provides luminance values to the log operator circuit 1110 and the gain determining circuit 1114 .
- the log operator circuit 1110 and the histogram circuit 1112 may, for example, operate in a conventional manner to generate histogram information based on the received luminance information.
- the gain determining circuit 1114 receives the luminance information from the hub 1106 and determines pixel gains to be applied.
- the gain determining circuit 1114 may maintain a look-up-table based on histogram information generated by the histogram circuit 1112 , and may use the look-up-table to determine pixel gains to be applied.
- the gain applying circuit 1116 receives macro-pixels from the hub 1102 and gains to be applied from the gain determining circuit 1114 , and applies the determined pixel gains, for example, by multiplying pixel values by the gains to be applied.
- the tone mapping circuit 1100 may process macro-pixels in an RGB domain and determine gains for the individual color components of the macro-pixel.
- the luminance determining circuit 1104 individually determines a luminance value for each color component of a macro-pixel (four determinations), the gain determining circuit 1114 determines a gain value for each pixel macro-pixel (four determination), and the gain applying circuit 1116 applies the determined gain values for each color component (four multiplications) of the macro-pixel.
- the histogram may typically be computed on one eighth or one fourth of the individual pixels. Additional buffers may be employed in the gain determining circuit 1114 to facilitate determining the gains of the individual pixels.
- the tone mapping circuit 1100 may process macro-pixels in a Bayer domain and determine a single gain to be applied to the pixels of the macro-pixel.
- the luminance determining circuit 1104 determines a single luminance value for the macro-pixel (which may be done, for example, by using weighted values of the individual pixels).
- the gain determining circuit 1114 determines a single gain value for the macro-pixel (for example, by using a look-up-table), and the gain applying circuit 1116 applies the single determined gain value to the macro-pixel.
- the histogram may typically be computed on one half of the macro-pixels.
- Bayer macro-pixel processing according to an embodiment of the tone mapping circuit 1100 may employ 68% less area than RGB macro-pixel processing and 67% less power than RGB macro-pixel processing. As compared to raster processing of individual RGB pixels, it is estimated that Bayer macro-pixel processing according to an embodiment of the tone mapping circuit 1100 may employ 9.5% more area than raster-based RGB pixel processing while using 73% less power than raster-based pixel processing.
- FIG. 12 is a functional block diagram of an embodiment of a chrominance noise reduction circuit 1400 employing macro-pixel processing.
- the noise reduction circuit 1400 may be employed, for example, in the system 100 of FIG. 6 , in the circuit 700 of FIG. 7 , etc.
- the circuit 1400 comprises a Bayer to YUV conversion circuit 1402 , which may, for example, convert a Bayer representation to a YUV representation, one or more luminance first-in first-out (FIFO) buffer(s) 1404 , a chrominance filtering circuit 1406 , which may, for example, apply chrominance noise filtering algorithms to the chrominance values, and a YUV to Bayer conversion circuit 1408 , which may, for example, convert a YUV representation to a Bayer representation.
- FIFO luminance first-in first-out
- the chrominance noise reduction circuit 1400 receives a macro-pixel, for example from a tone mapping circuit such as the tone mapping circuit 1100 of FIG. 11 , at the Bayer to YUV conversion circuit 1402 .
- the chrominance noise reduction circuit 1400 may operate using pixels having a reduced dynamic range as a result of the tone mapping (e.g., 16 bit or 12 bit pixel data instead of 26 bit pixel data).
- the Bayer to YUV circuit 1402 converts a Bayer representation of a macro-pixel to a modified YUV representation of the macro-pixel.
- the modified YUV macro-pixel has two chrominance values, a U chrominance value and a V chrominance value, and two luminance values, a luminance value associated with the U chrominance component of the macro-pixel and a luminance value associated with the V chrominance component of the macro-pixel.
- the Bayer to YUV circuit 1402 may determine a luminance value for the macro-pixel associated with the U chrominance component based on the U chrominance component of the macro-pixel and may determine the luminance component associated with the V chrominance component based on the V chrominance component of the macro-pixel.
- a memory is needed to store pixel values until the individual pixel values are received, and one computation occurs every four clock cycles in average.
- On even lines in raster processing only the top half of a macro pixel is available and must be stored; on odd lines, the lower half of the macro pixel is received and the macro-pixel can be processed.
- the pixels of a macro-pixel may be received concurrently and a computation may occur every clock cycle.
- Luminance value(s) of the Bayer to YUV conversion circuit 1402 are provided to the FIFO buffer(s) 1404 and corresponding chrominance values U, V are provided to the chrominance noise filtering circuit 1406 .
- two filtered components U′, V′ are generated every two clock cycles on odd lines, for example, serially using a single computation engine to determine one filtered component (e.g., U′) in one clock cycle and the other filtered component (e.g., V′) in the next clock cycle.
- the chrominance filtering circuit 1406 includes a first computation engine E 1 1410 and a second computation engine E 2 1412 .
- the two computation engines 1410 , 1412 may be employed in parallel to determine two filtered components (e.g., U′ and V′) in a single clock cycle because all the data needed to perform the computations is available during the first clock cycle.
- the YUV to Bayer conversion circuit 1408 receives one or more Y component value(s) from the FIFO buffer(s) 1404 and corresponding filtered chrominance component values U′, V′ from the chrominance filtering circuit 1406 .
- the YUV to Bayer circuit 1408 converts a YUV representation of a macro-pixel to a Bayer representation of the macro-pixel.
- one computation occurs every four clock cycles in average and a memory is needed to store pixel values as individual pixel values are transmitted one per clock cycle.
- a computation may occur every clock cycle and the pixels of a macro-pixel may be concurrently transmitted.
- a filtered macro-pixel is output by the YUV to Bayer circuit 1408 , as illustrated to a CFA processing circuit, such as the CFA processing circuit 202 of FIG. 6 .
- FIG. 13 is a functional block diagram of a YUV macro-block processing circuit 1300 according to an embodiment.
- the YUV processing circuit 1300 may be employed, for example, in the system 100 of FIG. 6 .
- a conversion circuit 1302 converts a CFA representation of a macro-pixel, such as a Bayer representation of a macro-pixel, to a YUV 4:2:0 representation.
- a macro-pixel such as a Bayer representation of a macro-pixel
- YUV 4:2:0 representation As mentioned above, because macro-pixel processing is employed, one macro-pixel, on average, may be converted in each clock cycle because all the data for a macro-pixel is available for processing at each clock cycle.
- Some embodiments may employ pipeline processing.
- the conversion circuit 1302 may typically convert a Bayer representation of macro-pixel to a RGB representation, and then convert the RGB representation to a YUV 4:2:0 representation.
- a conversion circuit typically converts a Bayer representation into an RGB representation, and then converts the RGB representation into a YUV 4:4:4 representation for raster-based YUV processing.
- a conversion circuit typically converts a Bayer representation into an RGB representation, and then converts the RGB representation into a YUV 4:4:4 representation for raster-based YUV processing.
- four clock cycles, on average, may be needed to convert a Bayer macro-pixel to a YUV 4:4:4 macro-pixel.
- Raster-based processing of pixels represented in a YUV 4:4:4 color space occurs until just before compression or transmission, when the pixels are converted from a YUV 4:4:4 color space to a YUV 4:2:0 color space.
- the conversion circuit 1302 may convert CFA macro-pixels, such as Bayer macro-pixels, to YUV 4:4:4 macro-pixels, and macro-pixel processing, as opposed to raster-based processing, may occur in YUV 4:4:4 format until just before compression or transmission, or just after transmission.
- macro-pixel processing is applied to YUV 4:4:4 macro-pixels, there are 3 components per pixel, and twelve components per macro-pixel.
- the complexity of the circuit may be four times larger than a raster implementation using a YUV 4:4:4 representation of the pixels, but less power may be used than in a raster-based implementation.
- the conversion circuit 1302 converts Bayer macro-pixels to YUV 4:2:0 macro-pixels, and subsequent processing is macro-pixel based processing of YUV 4:2:0 macro-pixels.
- macro-pixel processing is applied to YUV 4:2:0 macro-pixels, there are 6 components per macro-pixel.
- the complexity may be two times larger than a raster implementation using a YUV 4:4:4 representation of the pixels, and less power may be used than in a raster-based implementation.
- the area and power usages may be reduced by a factor of 2.
- the conversion circuit 1302 provides an output to a YUV 4:2:0 processing block or circuitry 1304 .
- the YUV 4:2:0 processing block comprises a down scaler 1306 , a noise reduction circuit 1308 , a cropping circuit 1314 , a brightness and saturation control circuit 1316 , and one or more other YUV 4:2:0 processing blocks or circuits 1318 (e.g., temporal noise reduction, matrixing operations, sharpening operations, post decoding deblocking, etc.).
- the noise reduction circuit 1308 includes a luminance noise correction block or circuit 1310 and a chrominance noise correction block or circuit 1312 , which may, for example, apply various noise filtering algorithms to luminance and chrominance values.
- Embodiments of the YUV 4:2:0 circuit 1300 of FIG. 13 may employ contain more or fewer circuits, combine circuits into larger circuits, divide circuits into smaller circuits, re-arrange the order of circuits, etc., and various combinations thereof.
- one or more hubs may be employed.
- the YUV processing circuitry 1304 may include a bus system configured to transport macro-pixels in a YUV 4:2:0 color space between the processing blocks of the YUV processing circuitry 1304 (e.g., between blocks 1302 - 1318 ).
- Table 1 indicates the estimated area and power usage of various macro-pixel processing embodiments as compared to each other and to conventional raster-based processing.
- the row of Table 1 labeled Bayer/YUV compares macro-pixel based processing as applied to Bayer processing and to YUV processing (e.g., with reference to FIG. 6 , Bayer circuit 202 and YUV circuit 204 apply macro-pixel based processing).
- the row of Table 1 labeled YUV only compares macro-pixel based processing as applied to YUV processing (e.g., with reference to FIG. 6 , YUV circuit 204 applies macro-pixel based processing).
- the row of Table 1 labeled YUV without Noise Reduction compares macro-pixel based processing as applied to YUV processing which does not include noise reduction processing (e.g., with reference to FIG. 13 , YUV circuit 1300 omits circuit 1308 ).
- a computer readable medium comprising a computer program adapted to perform one or more of the methods or functions described above.
- the medium may be a physical storage medium, such as for example a Read Only Memory (ROM) chip, or a disk such as a Digital Versatile Disk (DVD-ROM), Compact Disk (CD-ROM), a hard disk, a memory, a network, or a portable media article to be read by an appropriate drive or via an appropriate connection, including as encoded in one or more barcodes or other related codes stored on one or more such computer-readable mediums and being readable by an appropriate reader device.
- ROM Read Only Memory
- DVD-ROM Digital Versatile Disk
- CD-ROM Compact Disk
- some or all of the methods and/or functionality may be implemented or provided in other manners, such as at least partially in firmware and/or hardware, including, but not limited to, one or more application-specific integrated circuits (ASICs), digital signal processors, discrete circuitry, logic gates, standard integrated circuits, controllers (e.g., by executing appropriate instructions, and including microcontrollers and/or embedded controllers), field-programmable gate arrays (FPGAs), complex programmable logic devices (CPLDs), etc., as well as devices that employ RFID technology, and various combinations thereof.
- ASICs application-specific integrated circuits
- DSPs digital signal processors
- discrete circuitry discrete circuitry
- logic gates e.g., logic gates, standard integrated circuits
- controllers e.g., by executing appropriate instructions, and including microcontrollers and/or embedded controllers
- FPGAs field-programmable gate arrays
- CPLDs complex programmable logic devices
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Color Television Image Signal Generators (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Digital image processing circuitry converts images in a color filter array (CFA) color space to images in a luminance-chrominance (YUV) 4:2:0 color space, and the images in the YUV 4:2:0 color space are processed by the digital image processing circuitry in the YUV 4:2:0 color space, for example, to apply noise filtering, etc. The converting includes simultaneously receiving pixel data defining a macro-pixel in the CFA color space. The processing in the YUV color space is applied on a macro-pixel level to the macro-pixel of the image in the YUV color space.
Description
The description relates to systems, methods and articles to process images, e.g., to convert RGB images to YUV images.
There are various color models that can be used to represent the pixel information of a color image. The RGB (red, green, blue) color model consists of three values R, G and B for each pixel representing respectively an intensity of red, green and blue. Such a representation corresponds closely to the display of images on displays such as cathode ray tubes (CRT) and liquid crystal displays (LCDs). For storage, processing and transmission purposes, the RGB format may not be optimum, and thus RGB image data may be converted into different color models, such as the YUV color model or variants thereof, according to which one value Y represents luminance information of the pixel, and two values UV represent the chrominance information. The YUV images may be transmitted, encoded or compressed, for example, using JPEG/H264 encoding.
In addition, many devices, such as mobile devices, include one or more image sensors or cameras capable of capturing digital images, for example, in various formats such as RGB and YUV formats, as well as displays for displaying images in various formats, such as RGB and YUV formats. An image sensor may comprise an array of pixel sensors arranged in a grid pattern defined as the color filter array (CFA). This color filter array may be composed of different color patterns and for example R, G, G, B Bayer pattern. Such devices typically include digital image processing circuitry, which may, for example, convert CFA images to RGB images and then to YUV images, process the images for storage, display, image quality, transmission or other purposes, etc.
In an embodiment, a method comprises: converting, using image processing circuitry, a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein a macro-pixel comprises at least two pixel rows and at least two pixel columns and the converting includes simultaneously receiving pixel data defining the macro-pixel in the first color space; and applying, on a macro-pixel level and using the image processing circuitry, at least one operation to the macro-pixel in the YUV 4:2:0 color space. In an embodiment, the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components. In an embodiment, the at least one operation includes an operation applying luminance noise reduction processing to the four luminance components of the macro-pixel in the YUV 4:2:0 color space in a single clock cycle of the image processing circuitry. In an embodiment, the first color space is a color filter array (CFA) color space. In an embodiment, the first color space is a Bayer color space. In an embodiment, the method comprises: generating, using the image processing circuitry, the macro-pixel in the Bayer color space, the generating including applying at least one operation to the macro-pixel in the Bayer color space on a macro-pixel level. In an embodiment, the at least one operation applied on a macro-pixel level to the macro-pixel in the YUV 4:2:0 color space includes at least one of: luminance noise reduction; chrominance noise reduction; matrixing operations; cropping; scaling; brightness and saturation operations; sharpening; and post decoding deblocking. In an embodiment, an operation of the at least one operation applied to the macro-pixel in the YUV 4:2:0 color space is applied in a single clock cycle of the image processing circuitry.
In an embodiment, a device comprises: conversion circuitry configured to convert a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance (YUV) 4:2:0 color space, wherein the macro-pixel comprises at least two pixel rows and at least two pixel columns and the conversion circuitry simultaneously receives pixel data defining the macro-pixel in the first color space; and YUV processing circuitry configured to perform at least one operation on the macro-pixel in the YUV 4:2:0 color space, wherein each operation of the at least one operation is applied on a macro-pixel level. In an embodiment, the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components. In an embodiment, the at least one operation includes an operation applying luminance noise reduction processing to the luminance components of the macro-pixel in the YUV 4:2:0 color space. In an embodiment, the first color space is a color filter array (CFA) color space. In an embodiment, the CFA color space is a Bayer color space. In an embodiment, the device comprises: Bayer macro-pixel processing circuitry configured to generate the macro-pixel in the Bayer color space by applying at least one operation in the Bayer color space on a macro-pixel level. In an embodiment, the at least one operation performed on a macro-pixel level on the macro-pixel in the YUV 4:2:0 color space includes at least one of: luminance noise reduction; chrominance noise reduction; matrixing operations; cropping; scaling; brightness and saturation operations; sharpening; and post decoding deblocking. In an embodiment, an operation of the at least one operation is applied to the macro-pixel in a single clock cycle of the YUV processing circuitry. In an embodiment, the device comprises: a bus system configured to transport macro-pixels defined in the YUV 4:2:0 color space as macro-pixels between the conversion circuitry and the YUV processing circuitry and to transport macro-pixels defined in the YUV 4:2:0 color space as macro-pixels within the YUV processing circuitry.
In an embodiment, a system comprises: one or more image capture devices, which, in operation, capture digital images; and digital image processing circuitry, which, in operation: converts, using image processing circuitry, a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein the macro-pixel comprises at least two pixel rows and at least two pixel columns and the converting includes simultaneously receiving pixel data defining the macro-pixel in the first color space; and applies, on a macro-pixel level and using the image processing circuitry, at least one operation to the macro-pixel in the YUV 4:2:0 color space. In an embodiment, the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components. In an embodiment, the first color space is a color filter array (CFA) color space. In an embodiment, the first color space is a Bayer color space and the digital image processing circuitry comprises: Bayer macro-pixel processing circuitry configured to generate macro-pixels in the Bayer color space, the generating including applying at least one operation to a macro-pixel in the Bayer color space on a macro-pixel level.
In an embodiment, a non-transitory computer-readable medium has contents which cause digital image processing circuitry to process digital images by: converting a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein the macro-pixel comprises at least two pixel rows and at least two pixel columns and the converting includes simultaneously receiving pixel data defining the macro-pixel in the first color space; and applying, on a macro-pixel level, at least one operation to the macro-pixel in the YUV 4:2:0 color space. In an embodiment, the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components and the first color space is a Bayer color space. In an embodiment, the at least one operation includes an operation applying luminance noise reduction processing to the four luminance components of the macro-pixel in the YUV 4:2:0 color space in a single clock cycle of the digital image processing circuitry. In an embodiment, the method comprises: generating the macro-pixel in the Bayer color space, the generating including applying at least one operation in the Bayer color space on a macro-pixel level.
In an embodiment, a system comprises: means for capturing digital images; and digital image processing means, which, in operation: converts a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein the macro-pixel comprises at least two pixel rows and at least two pixel columns and the converting includes simultaneously receiving pixel data defining the macro-pixel in the first color space; and applies, on a macro-pixel level, at least one operation to the macro-pixel in the YUV 4:2:0 color space. In an embodiment, the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components. In an embodiment, the first color space is a color filter array (CFA) color space. In an embodiment, the first color space is a Bayer color space and the digital image processing means comprises: Bayer macro-pixel processing circuitry configured to generate macro-pixels in the Bayer color space, the generating including applying at least one operation to a macro-pixel in the Bayer color space on a macro-pixel level.
The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.
In the following description, certain details are set forth in order to provide a thorough understanding of various embodiments of devices, systems, methods and articles. However, one of skill in the art will understand that other embodiments may be practiced without these details. In other instances, well-known structures and methods associated with, for example, image sensors, displays, digital image processing circuitry, etc., such as transistors, integrated circuits, etc., have not been shown or described in detail in some figures to avoid unnecessarily obscuring descriptions of the embodiments.
Unless the context requires otherwise, throughout the specification and claims which follow, the word “comprise” and variations thereof, such as “comprising,” and “comprises,” are to be construed in an open, inclusive sense, that is, as “including, but not limited to.”
Reference throughout this specification to “one embodiment,” or “an embodiment” means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases “in one embodiment,” or “in an embodiment” in various places throughout this specification are not necessarily referring to the same embodiment, or to all embodiments. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments to obtain further embodiments.
The headings are provided for convenience only, and do not interpret the scope or meaning of this disclosure.
The sizes and relative positions of elements in the drawings are not necessarily drawn to scale. For example, the shapes of various elements and angles are not drawn to scale, and some of these elements are enlarged and positioned to improve drawing legibility. Further, the particular shapes of the elements as drawn are not necessarily intended to convey any information regarding the actual shape of particular elements, and have been selected solely for ease of recognition in the drawings.
In an embodiment, macro-pixels are processed instead of individual pixels. FIG. 4A illustrates a macro-pixel of Bayer CFA format according to an embodiment. FIG. 4B graphically compares pixel-per-clock cycle processing to macro-pixel-per-clock cycle processing. Four pixels of a two-by-two pattern may be read in and/or processed and output as a macro-pixel per clock cycle (e.g., with reference to FIG. 4A , pixels GiR(0,0), R(0,0), B(0,0) and GiB(0,0) may be processed in a first clock cycle, pixels GiR(0,1), R(0,1), B(0,1) and GiB(0,1) may be processed in a second clock cycle, etc.) Top-left to bottom right processing of the macro-pixels may be employed. FIG. 5 illustrates a macro-pixel of a YUV 4:2:0 format according to an embodiment. Each YUV 4:2:0 format macro-pixel has six components, four luminance Y values and two chrominance values U and V. When using macro-pixel processing, the frequency may be reduced in an embodiment by a factor of four as compared to raster-based processing.
The image sensor 102 may comprise an array of pixels each including a photodetector and an amplifier. The image sensor may be configured to output data (for example, in Bayer format) to be read on a macro-pixel by macro-pixel basis (e.g., with a sufficient number of output data lines, to output serial data having a sufficient number of bits or words per clock cycle, etc.) or on a pixel-by-pixel basis which may then be converted into macro-pixels, for example by an optional buffering and conversion circuit 104.
The macro-pixel digital image processing circuitry ISP 200 comprises an CFA processing stage or circuitry 202, which in operation processes CFA macro-pixels such as Bayer macro-pixels, a demozaic processing stage or circuit 203, which, in operation, performs demozaic operations on macro-pixels, and a YUV processing stage or circuitry 204, which, in operation, processes YUV macro-pixels such as YUV 4:2:0 macro-pixels. It is noted that embodiments of the CFA circuitry 202 may locally perform some processing in other formats, such as YUV formats, and embodiments of the YUV circuitry 204 may perform some processing in other formats, such as RGB formats. It is also noted that embodiments of the CFA circuitry 202 and of the YUV circuitry 204 may perform some processing as raster-based processing. In some embodiments, macro-pixel processing may comprise using parallel processing to process multiple individual pixels of a macro-pixel in a clock cycle, using a faster clock for some sub-processes, etc. For example, in some embodiments raster-based tone mapping may be employed using parallel processing and buffers to process multiple individual pixels in a clock cycle.
The ISP circuitry 200 also comprises an interface 206 to receive macro-pixels to process (such as from the image sensor 102). As noted above, a buffering and conversion subsystem 104 may be employed to convert pixels read from the image sensor on a pixel-by-pixel basis into macro-pixels, and may be incorporated into the image sensor 102 as shown, into the ISP circuitry 200, or may be implemented as a separate circuit to couple the image sensor 102 to the ISP circuitry 200.
The ISP circuitry 200 comprises a bus system 208 to couple the various components of the ISP circuitry 200 together, and an interface 210 to couple the ISP circuitry 200 to other system components, which as illustrated include transmission circuitry 212, compression circuitry 214, storage 216, a main processing system 218 and a display 220. The bus system 208 may be configured to transport image data in the form of CFA macro-pixels within the CFA processing stage or circuitry 202 and to transport image data in the form of YUV macro-pixels within the YUV processing stage or circuitry 204 (e.g., as YUV 4:4:4 macro-pixels or YUV 4:2:0 macro-pixels). The ISP circuitry 200 as illustrated includes one or more processors P, one or more memories M and discrete circuitry DC. The various components of the system 100 may be used alone or in various combinations to perform the various functions of the system 100. For example, the processor P, the one or more memories M and the discrete circuitry DC may be used alone or in various combinations to perform the functions of the CFA circuitry 202, the demozaic circuitry 203, the YUV circuitry 204, etc. Although the components of the system 100 are described as separate components for ease of illustration, the components may be combined or separated into additional components in various manners. For example, the compression circuitry 214 may be integrated into the ISP circuitry 200 in some embodiments, Bayer to YUV conversion circuitry may be incorporated into the RGB macro-pixel processing circuitry 202 in some embodiments, may be incorporated into the YUV macro-pixel processing circuitry 204 in some embodiments.
f(x,y)=1−C×R(x,y)2 (Equation 1)
where C is an adjustable parameter (e.g., selectable using software; determined based on characteristics of the image or history data, etc.), x and y are coordinates of the pixel from a center of the pixel array (or image), and:
R(x,y)=x 2 +y 2 (Equation 2).
The method 900 proceeds to 906. At 906 the lens shading circuitry 722 determines a relative position of each pixel with respect to the corresponding grid (e.g., with respect to the Green in red grid for a Green in red pixel). The method 900 proceeds to 908. At 908, the lens shading circuitry 722 interpolates a gain value for each pixel based on a pixel location within the respective grid. The method 900 proceeds to 910. At 910, the lens shading circuitry 722 modifies the interpolated gain value for each pixel based on the respective determined function f(x,y) of the pixel. The method 900 proceeds to 912. At 912, the lens shading circuitry 722 applies the modified gain values to the respective pixels of the macro-pixel. The method 900 proceeds to 914. At 914, the lens shading circuitry 722 determines whether there are additional macro-pixels to process. When it is determined that there are additional macro-pixels to process, the method 900 returns to 904 to process the next macro-pixel. When it is not determined that there are additional macro-pixels to process, the method 900 proceeds to 916, where the method 900 stops.
It is estimated that using macro-pixel based processing to perform grid-based color shading in an embodiment of FIG. 9 may use 190% more area and 6.25% less power consumption than using raster processing.
Applicant has realized, however, that further improvement is possible when processing at a macro-pixel level is employed as opposed to conventional raster-based processing. Processing macro-pixels instead of individual pixels facilitates reducing the number of multiplications used to determine the function f(x,y) of the pixels at act 904. Because (x+1)2=x2+2x+1 (and (y+1)2=y2+2y+1), determining the function f(x,y) of each pixel may be simplified when macro-pixel processing is employed. In pixel-by-pixel based processing, determining the function f(x,y) involves 2 multiplications per pixel (x2 and y2 are be determined for each pixel), and eight multiplications per macro-pixel. In macro-pixel processing, x2 and y2 may be determined once for a first pixel of the macro-pixel, and then reused to determine the functions f(x,y) of the other pixels of the macro-pixel. When the x2 and y2 values of the first pixel are reused, only two multiplications are needed to determine the function f(x,y) of the first pixel of a macro-pixel, and addition may be used to determine the functions f(x,y) of the remaining pixels of the macro-pixel. For example:
First Pixel: R(x,y)=x2+y2
Second Pixel: R(x+1,y)=x2+2x+1+y2
Third Pixel: R(x,y+1)=x2+y2+2y+1
Fourth Pixel: R(x+1,y+1)=x2+y2+2x+2y+2
Processing macro-pixels instead of individual pixels also facilitates reducing the computations needed to determine the relative positions of the individual pixels of the macro-pixel with respect to the respective grids at act 906. The grid positions are fixed with respect to each other and the pixel positions of pixels of a macro-pixel are fixed with respect to each other. Once the relative position of one of the pixels of a macro-pixel to the respective grid is determined, the relative position of the other pixels of the macro-pixel to the respective grids may be determined based on the determined relative position of the one of the pixels. In some embodiments, the relative position of a Green in red pixel of a macro-pixel to the Green in red grid is the same as the relative position of the other pixels of the macro-pixel to the respective grids. In pixel-by-pixel processing, the relative distance of each pixel to the respective grid needs to be determined for each pixel, and four calculations are used for each macro-pixel. In macro-pixel processing, the relative distance may be determined once for each macro-pixel.
The method 1000 starts at 1002 and proceeds to 1004. At 1004, the lens shading circuitry 722 determines x2 and y2 for a single pixel of the macro-pixel. The method 1000 proceeds to 1006. At 1006, the values of x2 and y2 determined at 1004 for the single pixel of the macro-pixel are used to determine the function f(x,y) of each pixel of the macro-pixel, for example as discussed above.
The method 1000 proceeds to 1008. At 1008 the lens shading circuitry 722 determines a relative position of a pixel with respect to the corresponding grid (e.g., with respect to the Green in red grid for a Green in red pixel). The method 1000 proceeds to 1010. At 1010, the lens shading circuitry 722 uses the relative position of the pixel with respect to the corresponding grid determined at 1008 to interpolate a gain value for each pixel of the macro-pixel. The method 1000 proceeds to 1012. At 1012, the lens shading circuitry 722 modifies the interpolated gain value for each pixel based on the respective determined function f(x,y). The method 1000 proceeds to 1014. At 1014, the lens shading circuitry 722 applies the modified gain values to the respective pixels of the macro-pixel. The method 1000 proceeds to 1016. At 1016, the lens shading circuitry 722 determines whether there are additional macro-pixels to process. When it is determined that there are additional macro-pixels to process, the method 1000 returns to 1004 to process the next macro-pixel. When it is not determined that there are additional macro-pixels to process, the method 1000 proceeds to 1018, where the method 1000 stops.
It is estimated that re-using interim function results in macro-pixel based processing to perform grid-based color shading such as in an embodiment of FIG. 10 may use 45% more area and 66% less power consumption than using raster processing. Compared to macro-pixel processing in an embodiment of FIG. 9 , an embodiment of FIG. 10 re-using interim function results may use 50% less area and 63% less power consumption. Functions other than the example function f(x,y) discussed may be used by the vignetting and lens shading correction circuitry 722, which may similarly facilitate reuse of variable to facilitate reductions in power consumption.
With reference to Bayer processing circuit 700 of FIG. 7 , an output of the lens shading circuit 722 is coupled to a hub 724. The hub 724 provides an output to a white balance circuit 726, which determines and applies a white balance gain, and may do so in a conventional manner. An output of the white balance circuit 726 is coupled to a tone mapping circuit 728. Tone mapping applies a gain to each pixel based on the pixel's luminance to when the dynamic range of the pixels is reduced (e.g., from 26 bits to 16 bits or 12 bits). Conventional raster-based tone mapping may be employed in an embodiment. An embodiment of a tone mapping circuit using macro-pixel based processing which may be employed in the embodiment of FIG. 7 is discussed in more detail below with reference to FIG. 11 .
An output of the tone mapping circuit 728 is coupled to hub 730, which provides tone-mapped macro-pixels to a chrominance noise reduction circuit 732. As illustrated, the hub 730 also provides tone-mapped macro-pixels to a YUV circuit, such as YUV circuit 204 of FIG. 6 . In an embodiment, the hub 730 provides tone-mapped macro-pixels to a demozaic circuit, such as the demozaic circuit 203 of FIG. 6 . Conventional raster-based chrominance noise reduction may be employed in an embodiment, for example by employing parallel processing of individual pixels and data buffers. An embodiment of a chrominance noise reduction circuit using macro-pixel based processing which may be employed in the embodiment of FIG. 7 is discussed in more detail below with reference to FIG. 12 . The chrominance noise reduction circuit 732 provides another output of the Bayer circuit 700, for example to a YUV circuit such as the YUV circuit 204 of FIG. 6 , or to a demozaic circuit, such as the demozaic circuit 203 of FIG. 6 .
Embodiments of the Bayer circuit 700 of FIG. 7 may employ contain more or fewer circuits, combine circuits into larger circuits, divide circuits into smaller circuits, etc., and various combinations thereof. For example, more or fewer hubs may be employed.
The tone mapping circuit receives a macro-pixel for processing at hub 1102. The luminance determining circuit 1104 receives macro-pixels from the hub 1102, and determines one or more luminance values based on each received macro-pixel. The hub 1106 receives determined luminance values from the luminance determining circuit 1104 and provides luminance values to the log operator circuit 1110 and the gain determining circuit 1114. The log operator circuit 1110 and the histogram circuit 1112 may, for example, operate in a conventional manner to generate histogram information based on the received luminance information. The gain determining circuit 1114 receives the luminance information from the hub 1106 and determines pixel gains to be applied. The gain determining circuit 1114 may maintain a look-up-table based on histogram information generated by the histogram circuit 1112, and may use the look-up-table to determine pixel gains to be applied. The gain applying circuit 1116 receives macro-pixels from the hub 1102 and gains to be applied from the gain determining circuit 1114, and applies the determined pixel gains, for example, by multiplying pixel values by the gains to be applied.
In an embodiment, the tone mapping circuit 1100 may process macro-pixels in an RGB domain and determine gains for the individual color components of the macro-pixel. The luminance determining circuit 1104 individually determines a luminance value for each color component of a macro-pixel (four determinations), the gain determining circuit 1114 determines a gain value for each pixel macro-pixel (four determination), and the gain applying circuit 1116 applies the determined gain values for each color component (four multiplications) of the macro-pixel. The histogram may typically be computed on one eighth or one fourth of the individual pixels. Additional buffers may be employed in the gain determining circuit 1114 to facilitate determining the gains of the individual pixels.
In an embodiment, the tone mapping circuit 1100 may process macro-pixels in a Bayer domain and determine a single gain to be applied to the pixels of the macro-pixel. The luminance determining circuit 1104 determines a single luminance value for the macro-pixel (which may be done, for example, by using weighted values of the individual pixels). The gain determining circuit 1114 determines a single gain value for the macro-pixel (for example, by using a look-up-table), and the gain applying circuit 1116 applies the single determined gain value to the macro-pixel. The histogram may typically be computed on one half of the macro-pixels. It is estimated that Bayer macro-pixel processing according to an embodiment of the tone mapping circuit 1100 may employ 68% less area than RGB macro-pixel processing and 67% less power than RGB macro-pixel processing. As compared to raster processing of individual RGB pixels, it is estimated that Bayer macro-pixel processing according to an embodiment of the tone mapping circuit 1100 may employ 9.5% more area than raster-based RGB pixel processing while using 73% less power than raster-based pixel processing.
In operation of an embodiment, the chrominance noise reduction circuit 1400 receives a macro-pixel, for example from a tone mapping circuit such as the tone mapping circuit 1100 of FIG. 11 , at the Bayer to YUV conversion circuit 1402. The chrominance noise reduction circuit 1400 may operate using pixels having a reduced dynamic range as a result of the tone mapping (e.g., 16 bit or 12 bit pixel data instead of 26 bit pixel data). In an embodiment, the Bayer to YUV circuit 1402 converts a Bayer representation of a macro-pixel to a modified YUV representation of the macro-pixel. The modified YUV macro-pixel has two chrominance values, a U chrominance value and a V chrominance value, and two luminance values, a luminance value associated with the U chrominance component of the macro-pixel and a luminance value associated with the V chrominance component of the macro-pixel. The Bayer to YUV circuit 1402 may determine a luminance value for the macro-pixel associated with the U chrominance component based on the U chrominance component of the macro-pixel and may determine the luminance component associated with the V chrominance component based on the V chrominance component of the macro-pixel.
In a conventional raster implementation of Bayer to YUV conversion, a memory is needed to store pixel values until the individual pixel values are received, and one computation occurs every four clock cycles in average. On even lines in raster processing, only the top half of a macro pixel is available and must be stored; on odd lines, the lower half of the macro pixel is received and the macro-pixel can be processed. In contrast, in a macro-pixel implementation of Bayer to YUV conversion or a Bayer to modified YUV conversion, the pixels of a macro-pixel may be received concurrently and a computation may occur every clock cycle. Luminance value(s) of the Bayer to YUV conversion circuit 1402 are provided to the FIFO buffer(s) 1404 and corresponding chrominance values U, V are provided to the chrominance noise filtering circuit 1406.
In a conventional raster implementation of chrominance filtering, two filtered components U′, V′ are generated every two clock cycles on odd lines, for example, serially using a single computation engine to determine one filtered component (e.g., U′) in one clock cycle and the other filtered component (e.g., V′) in the next clock cycle. As illustrated, the chrominance filtering circuit 1406 includes a first computation engine E1 1410 and a second computation engine E2 1412. In a macro-pixel implementation of an embodiment, the two computation engines 1410, 1412 may be employed in parallel to determine two filtered components (e.g., U′ and V′) in a single clock cycle because all the data needed to perform the computations is available during the first clock cycle.
In operation of an embodiment, in each clock cycle the YUV to Bayer conversion circuit 1408 receives one or more Y component value(s) from the FIFO buffer(s) 1404 and corresponding filtered chrominance component values U′, V′ from the chrominance filtering circuit 1406. The YUV to Bayer circuit 1408 converts a YUV representation of a macro-pixel to a Bayer representation of the macro-pixel. In a conventional raster implementation of YUV to Bayer conversion, one computation occurs every four clock cycles in average and a memory is needed to store pixel values as individual pixel values are transmitted one per clock cycle. In contrast, in a macro-pixel implementation of YUV to Bayer conversion, a computation may occur every clock cycle and the pixels of a macro-pixel may be concurrently transmitted. A filtered macro-pixel is output by the YUV to Bayer circuit 1408, as illustrated to a CFA processing circuit, such as the CFA processing circuit 202 of FIG. 6 .
In conventional raster-based processing, a conversion circuit typically converts a Bayer representation into an RGB representation, and then converts the RGB representation into a YUV 4:4:4 representation for raster-based YUV processing. In raster-based processing, four clock cycles, on average, may be needed to convert a Bayer macro-pixel to a YUV 4:4:4 macro-pixel. Raster-based processing of pixels represented in a YUV 4:4:4 color space occurs until just before compression or transmission, when the pixels are converted from a YUV 4:4:4 color space to a YUV 4:2:0 color space.
In an embodiment, the conversion circuit 1302 may convert CFA macro-pixels, such as Bayer macro-pixels, to YUV 4:4:4 macro-pixels, and macro-pixel processing, as opposed to raster-based processing, may occur in YUV 4:4:4 format until just before compression or transmission, or just after transmission. When macro-pixel processing is applied to YUV 4:4:4 macro-pixels, there are 3 components per pixel, and twelve components per macro-pixel. The complexity of the circuit may be four times larger than a raster implementation using a YUV 4:4:4 representation of the pixels, but less power may be used than in a raster-based implementation.
In the illustrated embodiment, the conversion circuit 1302 converts Bayer macro-pixels to YUV 4:2:0 macro-pixels, and subsequent processing is macro-pixel based processing of YUV 4:2:0 macro-pixels. When macro-pixel processing is applied to YUV 4:2:0 macro-pixels, there are 6 components per macro-pixel. The complexity may be two times larger than a raster implementation using a YUV 4:4:4 representation of the pixels, and less power may be used than in a raster-based implementation. As compared to a macro-pixel processing applied to YUV 4:4:4 macro-pixels, the area and power usages may be reduced by a factor of 2.
The conversion circuit 1302 provides an output to a YUV 4:2:0 processing block or circuitry 1304. As illustrated, the YUV 4:2:0 processing block comprises a down scaler 1306, a noise reduction circuit 1308, a cropping circuit 1314, a brightness and saturation control circuit 1316, and one or more other YUV 4:2:0 processing blocks or circuits 1318 (e.g., temporal noise reduction, matrixing operations, sharpening operations, post decoding deblocking, etc.). As illustrated, the noise reduction circuit 1308 includes a luminance noise correction block or circuit 1310 and a chrominance noise correction block or circuit 1312, which may, for example, apply various noise filtering algorithms to luminance and chrominance values.
Embodiments of the YUV 4:2:0 circuit 1300 of FIG. 13 may employ contain more or fewer circuits, combine circuits into larger circuits, divide circuits into smaller circuits, re-arrange the order of circuits, etc., and various combinations thereof. For example, one or more hubs may be employed. As noted above in the description of FIG. 6 , the YUV processing circuitry 1304 may include a bus system configured to transport macro-pixels in a YUV 4:2:0 color space between the processing blocks of the YUV processing circuitry 1304 (e.g., between blocks 1302-1318).
Table 1, below, indicates the estimated area and power usage of various macro-pixel processing embodiments as compared to each other and to conventional raster-based processing. The row of Table 1 labeled Bayer/YUV compares macro-pixel based processing as applied to Bayer processing and to YUV processing (e.g., with reference to FIG. 6 , Bayer circuit 202 and YUV circuit 204 apply macro-pixel based processing). The row of Table 1 labeled YUV only compares macro-pixel based processing as applied to YUV processing (e.g., with reference to FIG. 6 , YUV circuit 204 applies macro-pixel based processing). The row of Table 1 labeled YUV without Noise Reduction compares macro-pixel based processing as applied to YUV processing which does not include noise reduction processing (e.g., with reference to FIG. 13 , YUV circuit 1300 omits circuit 1308).
TABLE 1 | ||||
4:4:4 compared | ||||
Conventional | to 4:2:0 | |||
Macro-Pixel | Raster | 4:4:4 Macro | 4:2:0 Macro | (% savings with |
Implementation | (4 × freq.) | Pixel | Pixel | 4:2:0) |
Bayer/YUV | Area | 6.35 mm2 | 9.48 mm2 | 8.8 mm2 | .68 mm2 or 7.2% |
Power | 267 mW | 117 mW | 107 mW | 10 mW or 8.5% | |
YUV only | Area | 1.26 mm2 | 3.20 mm2 | 2.52 mm2 | .68 mm2 or 21% |
Power | 63 mW | 46 mW | 36 mW | 10 mW or 22% | |
YUV w/o | Area | .64 mm2 | 1.61 mm2 | .93 mm2 | .68 mm2 or 42% |
Noise | Power | 31 mW | 23 mW | 13 mW | 10 mW or 43% |
Reduction | |||||
Some embodiments may take the form of or comprise computer program products. For example, according to one embodiment there is provided a computer readable medium comprising a computer program adapted to perform one or more of the methods or functions described above. The medium may be a physical storage medium, such as for example a Read Only Memory (ROM) chip, or a disk such as a Digital Versatile Disk (DVD-ROM), Compact Disk (CD-ROM), a hard disk, a memory, a network, or a portable media article to be read by an appropriate drive or via an appropriate connection, including as encoded in one or more barcodes or other related codes stored on one or more such computer-readable mediums and being readable by an appropriate reader device.
Furthermore, in some embodiments, some or all of the methods and/or functionality may be implemented or provided in other manners, such as at least partially in firmware and/or hardware, including, but not limited to, one or more application-specific integrated circuits (ASICs), digital signal processors, discrete circuitry, logic gates, standard integrated circuits, controllers (e.g., by executing appropriate instructions, and including microcontrollers and/or embedded controllers), field-programmable gate arrays (FPGAs), complex programmable logic devices (CPLDs), etc., as well as devices that employ RFID technology, and various combinations thereof.
The various embodiments described above can be combined to provide further embodiments. Aspects of the embodiments can be modified, if necessary to employ concepts of the various patents, applications and publications to provide yet further embodiments.
These and other changes can be made to the embodiments in light of the above-detailed description. In general, in the following claims, the terms used should not be construed to limit the claims to the specific embodiments disclosed in the specification and the claims, but should be construed to include all possible embodiments along with the full scope of equivalents to which such claims are entitled. Accordingly, the claims are not limited by the disclosure.
Claims (20)
1. A method, comprising:
converting, using image processing circuitry, a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein a macro-pixel comprises at least two rows of pixels and at least two columns of pixels and the converting includes simultaneously receiving pixel data for each of the pixels of the macro-pixel in the first color space; and
applying, on a macro-pixel level and using the image processing circuitry, at least one operation to the macro-pixel in the YUV 4:2:0 color space, wherein the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components and the at least one operation includes an operation applying luminance noise reduction processing to the four luminance components of the macro-pixel in the YUV 4:2:0 color space in a single clock cycle of the image processing circuitry.
2. The method of claim 1 wherein the first color space is a color filter array (CFA) color space.
3. The method of claim 2 wherein the first color space is a Bayer color space.
4. The method of claim 1 wherein the at least one operation applied on a macro-pixel level to the macro-pixel in the YUV 4:2:0 color space includes at one additional operation, the at east one additional operation being at least one of:
chrominance noise reduction;
matrixing operations;
cropping;
scaling;
brightness and saturation operations;
sharpening; and
post decoding deblocking.
5. The method of claim 4 wherein the at least one additional operation applied to the macro-pixel in the YUV 4:2:0 color space is applied in a single clock cycle of the image processing circuitry.
6. A device, comprising:
conversion circuitry configured to convert a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance (YUV) 4:2:0 color space, wherein the macro-pixel comprises at least two rows of and at least two columns of pixels and the conversion circuitry simultaneously receives pixel data for each of the pixel s of the macro-pixel in the first color space; and
YUV processing circuitry configured to perform at least one operation on the macro-pixel in the YUV 4:2:0 color space, wherein each operation of the at least one operation is applied on a macro-pixel level, wherein the macro-pixel in the YUV 4:2:0 color space is defined b two chrominance components and four luminance components and the at least one operation includes an operation applying luminance noise reduction processing to the four luminance components of the macro-pixel in the YUV 4:2:0 color space in a single clock cycle of the YUV processing circuitry.
7. The device of claim 6 wherein the first color space is a color filter array (CFA) color space.
8. The device of claim 7 wherein the CFA color space is a Bayer color space.
9. The device of claim 6 wherein the at least one operation performed on a macro-pixel level on the macro-pixel in the YUV 4:2:0 color space includes at least one additional operation, the at least one additional operation being at least one of:
chrominance noise reduction;
matrixing operations;
cropping;
scaling;
brightness and saturation operations;
sharpening; and
post decoding deblocking.
10. The device of claim 9 wherein the at least one additional operation is applied to the macro-pixel in a single clock cycle of the YUV processing circuitry.
11. The device of claim 6 , comprising:
a bus system configured to transport macro-pixels defined in the YUV 4:2:0 color space as macro-pixels between the conversion circuitry and the YUV processing circuitry and to transport macro-pixels defined in the YUV 4:2:0 color space as macro-pixels within the YUV processing circuitry.
12. A system, comprising:
one or more image capture devices, which, in operation, capture digital images; and
digital image processing circuitry, which, in operation:
converts, using image processing circuitry, a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein the macro-pixel comprises at least two rows of pixels and at least two columns of pixels and the converting includes simultaneously receiving pixel data for each of the pixels of the macro-pixel in the first color space; and
applies, on a macro-pixel level and using the image processing circuitry, at least one operation to the macro-pixel in the YUV 4:2:0 color space, wherein the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components and the at least one operation includes an operation applying luminance noise reduction processing to the four luminance components of the macro-pixel in the YUV 4:2:0 color space in a single clock cycle of the digital image processing circuitry.
13. The system of claim 12 wherein the first color space is a color filter array (CFA) color space.
14. The system of claim 12 wherein the at least one operation applied on a macro-pixel level to the macro-pixel in the YUV 4:2:0 color space includes at least one additional operation, the at least one additional operation being at least one of:
chrominance noise reduction;
matrixing operations;
cropping;
scaling;
brightness and saturation operations;
sharpening; and
post decoding deblocking.
15. The system of claim 14 wherein the at least one additional operation applied to the macro-pixel in the YUV 4:2:0 color space is applied in a single clock cycle of the digital image processing circuitry.
16. The system of claim 12 , comprising:
a bus system configured to transport macro-pixels defined in the YUV 4:2:0 color space as macro-pixels within the digital image processing circuitry.
17. A non-transitory computer-readable medium having contents which cause digital image processing circuitry to process digital images by:
converting a macro-pixel defined in a first color space to a macro-pixel defined in a luminance-chrominance YUV 4:2:0 color space, wherein the macro-pixel comprises at least two rows of pixels and at least two columns of pixels and the converting includes simultaneously receiving pixel data for each of the pixels of the macro-pixel in the first color space; and
applying, on a macro-pixel level, at least one operation to the macro-pixel in the YUV 4:2:0 color space, wherein the macro-pixel in the YUV 4:2:0 color space is defined by two chrominance components and four luminance components and the at least one operation includes an operation applying luminance noise reduction processing to the four luminance components of the macro-pixel in the YUV 4:2:0 color space in a single clock cycle of the digital image processing circuitry.
18. The non-transitory computer-readable medium of claim 17 wherein the first color space is a Bayer color space.
19. The non-transitory computer-readable medium of claim 17 wherein the at least one operation applied on a macro-pixel level to the macro-pixel in the YUV 4:2:0 color space includes at least one additional operation, the at least one additional operation being at least one of:
chrominance noise reduction;
matrixing operations;
cropping;
scaling;
brightness and saturation operations;
sharpening; and
post decoding deblocking.
20. The non-transitory computer-readable medium of claim 19 wherein the at least one additional operation applied to the macro-pixel in the YUV 4:2:0 color space is applied in a single clock cycle of the digital image processing circuitry.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/089,077 US10068342B2 (en) | 2016-04-01 | 2016-04-01 | Macropixel processing system, method and article |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/089,077 US10068342B2 (en) | 2016-04-01 | 2016-04-01 | Macropixel processing system, method and article |
Publications (2)
Publication Number | Publication Date |
---|---|
US20170287141A1 US20170287141A1 (en) | 2017-10-05 |
US10068342B2 true US10068342B2 (en) | 2018-09-04 |
Family
ID=59959515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/089,077 Active 2036-09-03 US10068342B2 (en) | 2016-04-01 | 2016-04-01 | Macropixel processing system, method and article |
Country Status (1)
Country | Link |
---|---|
US (1) | US10068342B2 (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7002627B1 (en) * | 2002-06-19 | 2006-02-21 | Neomagic Corp. | Single-step conversion from RGB Bayer pattern to YUV 4:2:0 format |
US20060232808A1 (en) | 2005-04-13 | 2006-10-19 | George Lyons | Imaging module, interface, and method handling multiple simultaneous data types |
US20060285135A1 (en) | 2005-06-15 | 2006-12-21 | Xerox Corporation | System and method for dynamically generated uniform color objects |
US20080075394A1 (en) | 2004-05-20 | 2008-03-27 | Micronas Usa, Inc. | Edge adaptive demosaic system and method |
US20090317017A1 (en) | 2008-06-20 | 2009-12-24 | The Hong Kong University Of Science And Technology | Image characteristic oriented tone mapping for high dynamic range images |
US20110063480A1 (en) | 2009-09-14 | 2011-03-17 | Samsung Electronics Co., Ltd. | Image processing method and apparatus for bayer images |
US20110182510A1 (en) | 2010-01-28 | 2011-07-28 | Wei Hong | Methods and Systems for Image Noise Filtering |
US8079525B1 (en) | 2011-02-24 | 2011-12-20 | Psion Inc. | System and method for decoding barcodes captured with a color image sensor |
US20120293677A1 (en) | 2011-05-17 | 2012-11-22 | Samsung Electronics Co., Ltd. | Methods and apparatuses for anti-shading correction with extended color correlated temperature dependency |
US20130064448A1 (en) | 2011-09-09 | 2013-03-14 | Stmicroelectronics (Grenoble 2) Sas | Image chroma noise reduction |
US8508624B1 (en) | 2010-03-19 | 2013-08-13 | Ambarella, Inc. | Camera with color correction after luminance and chrominance separation |
US20140037207A1 (en) | 2012-08-01 | 2014-02-06 | Himax Imaging Limited | System and a method of adaptively suppressing false-color artifacts |
US20140133749A1 (en) | 2012-05-31 | 2014-05-15 | Apple Inc. | Systems And Methods For Statistics Collection Using Pixel Mask |
US20160086309A1 (en) * | 2014-09-22 | 2016-03-24 | Realtek Semiconductor Corp. | Image signal processing method and image signal processor |
-
2016
- 2016-04-01 US US15/089,077 patent/US10068342B2/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7002627B1 (en) * | 2002-06-19 | 2006-02-21 | Neomagic Corp. | Single-step conversion from RGB Bayer pattern to YUV 4:2:0 format |
US20080075394A1 (en) | 2004-05-20 | 2008-03-27 | Micronas Usa, Inc. | Edge adaptive demosaic system and method |
US20060232808A1 (en) | 2005-04-13 | 2006-10-19 | George Lyons | Imaging module, interface, and method handling multiple simultaneous data types |
US20060285135A1 (en) | 2005-06-15 | 2006-12-21 | Xerox Corporation | System and method for dynamically generated uniform color objects |
US20090317017A1 (en) | 2008-06-20 | 2009-12-24 | The Hong Kong University Of Science And Technology | Image characteristic oriented tone mapping for high dynamic range images |
US20110063480A1 (en) | 2009-09-14 | 2011-03-17 | Samsung Electronics Co., Ltd. | Image processing method and apparatus for bayer images |
US20110182510A1 (en) | 2010-01-28 | 2011-07-28 | Wei Hong | Methods and Systems for Image Noise Filtering |
US8508624B1 (en) | 2010-03-19 | 2013-08-13 | Ambarella, Inc. | Camera with color correction after luminance and chrominance separation |
US8079525B1 (en) | 2011-02-24 | 2011-12-20 | Psion Inc. | System and method for decoding barcodes captured with a color image sensor |
US20120293677A1 (en) | 2011-05-17 | 2012-11-22 | Samsung Electronics Co., Ltd. | Methods and apparatuses for anti-shading correction with extended color correlated temperature dependency |
US20130064448A1 (en) | 2011-09-09 | 2013-03-14 | Stmicroelectronics (Grenoble 2) Sas | Image chroma noise reduction |
US20140133749A1 (en) | 2012-05-31 | 2014-05-15 | Apple Inc. | Systems And Methods For Statistics Collection Using Pixel Mask |
US20140037207A1 (en) | 2012-08-01 | 2014-02-06 | Himax Imaging Limited | System and a method of adaptively suppressing false-color artifacts |
US20160086309A1 (en) * | 2014-09-22 | 2016-03-24 | Realtek Semiconductor Corp. | Image signal processing method and image signal processor |
Also Published As
Publication number | Publication date |
---|---|
US20170287141A1 (en) | 2017-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10825426B2 (en) | Merging multiple exposures to generate a high dynamic range image | |
US10868985B2 (en) | Correcting pixel defects based on defect history in an image processing pipeline | |
US9911174B2 (en) | Multi-rate processing for image data in an image processing pipeline | |
US9787922B2 (en) | Pixel defect preprocessing in an image signal processor | |
US9832388B2 (en) | Deinterleaving interleaved high dynamic range image by using YUV interpolation | |
US9881357B2 (en) | Transforming wide dynamic range images to reduced dynamic range images | |
US10229484B2 (en) | Tone mapping method | |
CN107862672B (en) | Image defogging method and device | |
US7986859B2 (en) | Converting bayer pattern RGB images to full resolution RGB images via intermediate hue, saturation and intensity (HSI) conversion | |
US10178359B2 (en) | Macropixel processing system, method and article | |
US9911177B2 (en) | Applying chroma suppression to image data in a scaler of an image processing pipeline | |
US20070253626A1 (en) | Resizing Raw Image Data Before Storing The Data | |
US20170053176A1 (en) | Image processing apparatus and image processing method | |
US9898831B2 (en) | Macropixel processing system, method and article | |
US10068342B2 (en) | Macropixel processing system, method and article | |
US20180005352A1 (en) | Image data conversion | |
US9811920B2 (en) | Macropixel processing system, method and article | |
CN105991937A (en) | Virtual exposure method and device based on Bayer format image | |
US8416313B2 (en) | Image processing device for inputting both still picture data and motion picture data and performing a data process | |
US20170289404A1 (en) | Joint edge enhance dynamic | |
US10204600B2 (en) | Storage system | |
CN116228525A (en) | Image processing method, device, electronic equipment and readable storage medium | |
GB2561002A (en) | Storage system | |
TW201334568A (en) | Image processing method for color filter array and image processing device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: STMICROELECTRONICS (GRENOBLE 2) SAS, FRANCE Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:THIVIN, MATHIEU;DROUARD, STEPHANE;REEL/FRAME:038183/0728 Effective date: 20160401 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
CC | Certificate of correction | ||
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 4 |