Devices and methods for lens shading correction of an image

DE102016117265B4Active Publication Date: 2024-10-02SAMSUNG ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
DE102016117265
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2015-09-24
Filing Date
2016-09-14
Publication Date
2024-10-02
Estimated Expiration
2036-09-14

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A lens shading correction circuit (213; 213A; 213B; 213C) comprising:a gain generator (310) configured to generate a first gain value (RG1) for each pixel of an input image in response to a gain generation parameter (RG); andan adjustment circuit (330; 331; 332) configured to receive the first gain value (RG1) and first YUV data (CINPUT1; YUVI; INPUT), and to adjust at least one of U and V values ​​of the first YUV data (CINPUT1; YUVI; INPUT) using at least one of the first gain value (RG1) and a Y value of the first YUV data (CINPUT1; YUVI; INPUT), wherein the gain generator (310) is configured to perform an operation of adding noise to the first gain value (RG1).
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUNDEmbodiments of the inventive concepts relate to image signal processing apparatuses and methods. More specifically, embodiments of the inventive concepts relate to a lens shading correction circuit, a system-on-chip including a lens shading correction circuit, a data processing system including a camera module and a lens shading correction circuit, and a data processing method for lens shading correction of an image.The term "vignetting" refers generally to a reduction in light intensity (or brightness) at the edge of an image relative to the center of the image. Herein, the term "lens shading" refers to vignetting resulting from a quantity of light reaching a sensor or film at positions outside the center being less than the quantity of light reaching the center of the sensor or film. The amount of vignetting depends, for example, on the geometry of a lens positioned over the sensor or film and may vary with focal length and aperture stage setting. Generally, vignetting is more noticeable with lenses of a lower aperture stage (or a larger aperture).Lens shading correction techniques can be used in an attempt to compensate for adverse visual effects associated with vignetting. For example, in order to compensate for different light intensities, components of a gain correction function used in image processing may be determined and adjusted depending on a location within an image. For example, in the case of a pixel image, pixels placed closer to an edge of the image may be subjected to a greater gain than pixels placed closer to the center of the image. However, this may result in an increased noise level at the edge, which may be problematic especially at low luminance levels where noise is relatively high. This is because the lens shading compensation may cause application of different gains to different colors of an image signal, which may cause noise power to be different among colors. If the lens shading compensated signal is later applied to a low pass filter to remove noise, the different noise powers of the colors may produce the occurrence of color (e.g., red, blue, or lila) distortion at the edge of the image.For example, US 5 764 308 A discloses a method of matching the hue in color video signals which divides the range of all available hues into sub-ranges according to the signs of the U and V components of the supplied color video signals, the U and V signals being proportional to blue-minus luminance and red-minus luminance color difference signals, respectively. The hue in each sub-region is adjusted independently of the hues in the other sub-regions. Within each sub-range, each of the U and V components of the supplied color video signals contained therein is gain adjusted by prescribed factors corresponding to the sub-range. A hue matching apparatus determines from the signs U and V components of the supplied color video signals in which of the sub-regions they fall and matches the hue in each sub-region to enable more accurate hue matching.SUMMARYAccording to an aspect of the inventive concept, there is provided a lens shading correction circuit including a gain generator configured to generate a first gain value for each pixel of an input image in response to a gain generation parameter, and an adjustment circuit configured to receive the first gain value and first YUV data, and to adjust at least one of U and V values of the first YUV data using at least one of the first gain value and a Y value of the first YUV data, wherein the gain generator is configured to perform an operation of adding noise to the first gain value.According to another aspect of the inventive concept, there is provided a system-on-chip including a lens shading correction circuit and a central processing unit (CPU) configured to control the lens shading correction circuit. The lens shading correction circuit includes a gain generator configured to generate a first gain value for each pixel of an input image in response to a gain generation parameter, and an adjustment circuit configured to receive the first gain value and first YUV data and adjust at least one of U and V values of the first YUV data using at least one of the first gain value and a Y value of the first YUV data, wherein the gain generator is configured to perform an operation of adding noise to the first gain value.According to still another aspect of the inventive concept, there is provided a data processing system including a camera module configured to generate raw image data and a system on chip configured to control the camera module. The system-on-chip includes a lens shading correction circuit configured to perform lens shading correction on the raw image data, and a central processing unit (CPU) configured to control the lens shading correction circuit. The lens shading correction circuit includes a gain generator configured to generate a first gain value for each pixel of the raw image data in response to a gain generation parameter, and an adjustment circuit configured to receive the first gain value and first YUV data, and to adjust at least one of U and V values of the first YUV data using at least one of the first gain value and a Y value of the first YUV data, wherein the gain generator is configured to perform an operation of adding noise to the first gain value.According to yet another aspect of the inventive concept, there is provided a data processing method for lens shading correction of an image. The method includes receiving raw image data of an input image, generating a first gain value for each pixel of the input image in response to a gain generation parameter, adjusting at least one of U and V values of first YUV data of the input image using at least one of the first gain value and a Y value of the YUV data, and generating output image data of a lens shading corrected image from the adjusted first YUV data of the input image, wherein an operation of adding noise to the first gain value (RG1) is performed.BRIEF DESCRIPTION OF THE DRAWINGSThe above and other aspects and features of the inventive concepts will be readily understood from the following detailed description with reference to the accompanying drawings, in which: FIG. 1 is a block diagram of a data processing system according to an embodiment of the inventive concepts; FIG. 2 is a block diagram of an example of an image signal processor illustrated in FIG. 1 ; FIG. 3 is a block diagram of an example of a lens shading correction circuit illustrated in FIG. 2 ; FIG. 4 is a table showing examples of gain control parameters relative to brightness; FIG. 5A is a graph showing an example of a relationship between brightness and pixel placement of an image signal before lens shading compensation; FIGS. 5B and 5C are graphs showing examples of gain curves representing a gain amount relative to pixel placement applied to an image signal; FIG. 5D is a graph showing an example of a relationship between brightness and pixel placement of an image signal after lens shading compensation; FIG. 6 is a block diagram of some examples of the lens shading correction circuit illustrated in FIG. 2 ; FIG. 7 is a block diagram of another example of the lens shading correction circuit illustrated in FIG. 2 ; FIG. 8 is a block diagram of a data processing system according to an embodiment of the inventive concept; FIG. 9 is a block diagram of a data processing system according to an embodiment of the inventive concept; and FIG. 10 is a flowchart for reference in describing a lens shading correction method executed by a data processing system according to an embodiment of the inventive concept.DETAILED DESCRIPTION OF THE EMBODIMENTSFIG. 1 is a block diagram of a data processing system 100A, in accordance with some embodiments of the inventive concepts. Referring to FIG. 1, the data processing system 100A of this example includes a camera module 110, a control circuit 200A, a plurality of memories 400 and 401, and a display 410.The data processing system 100A may be implemented as, for example, a personal computer (PC) or a mobile device. Examples of a mobile device include a laptop computer, a mobile phone, a smartphone, a tablet PC, a personal digital assistant (PDA), an enterprise digital assistant (EDA), a digital still camera, a digital video camera, a portable multimedia player (PMP), a personal navigation device or device (PND), a mobile internet device (MID= Mobile Internet Device= Mobile Internet Device), a portable computer, an Internet of Things (IoT) device, an Internet of Everything (IoE) device, and a drone. However, the inventive concepts are not limited to these examples.In the example of this embodiment, the camera module 110 generates raw image data IMI of an input image which can be expressed in a Bayer pattern. The camera module 110 may include a lens and at least one image sensor. The raw image data IMI may be two-dimensional (2D) image data or three-dimensional (3D) image data (or stereoscopic image data). A Mobile Industry Processor Interface (MIPI®) camera interface (CSI) may be implemented between the camera module 110 and the control circuit 200A.The control circuit 200A of this embodiment controls the camera module 110, the memories 400 and 401, and the display 410. In the example of this embodiment, the control circuit 2001 is a system-on-chip, which means that it is an integrated circuit (IC) that integrates all the components thereof on a single chip. Other examples of the manner in which control circuit 200A may be implemented include integrated circuits (ICs) over multiple chips, processors, application processors (APs), mobile APs, chipsets, modules including chips, and semiconductor chip packages. Also, in the example of this embodiment, the control circuit 200A includes a bus 201, an image signal processor (ISP) 210A, a central processing unit (CPU) 220, a plurality of memory controllers 230 and 231, and a display controller 240.According to the present embodiment, the ISP 210A performs vignetting correction or lens shading correction on the raw image data IMI output from the camera module 110. In particular, the ISP 210A may remove artifacts of the raw image data IMI captured in a low luminance environment. The ISP 210A may include a sensor interface that communicates (or receives or transmits) signals with the image sensor of the camera module 110.In order to prevent or prevent a certain color (for example, red, blue, or lila) from being prominent at the edge of an image due to a lens shading effect, the ISP 210A of this embodiment performs a lens shading correction process and / or controls the color (colors) of each of the pixels included in the image in consideration of the brightness of each of the pixels. This will be described in detail later herein.The CPU 220 of this embodiment controls the ISP 210A, the memory controllers 230 and 231, and the display controller 240. In some embodiments, the CPU 220 determines a gain control parameter to be provided to the ISP 210A according to a brightness value. The brightness value may be set automatically for each frame or by a user.In some embodiments, the CPU 220 calculates or estimates a brightness value of a current frame using a brightness value of at least one previous frame. Alternatively, as another example, the CPU 220 calculates or estimates a brightness value of a current frame based on a brightness signal output from a light sensor (not shown) that is part of or external to the control circuit 200A.In the example of this embodiment, the first memory controller 230 controls the first memory 400, and the second memory controller 231 controls the second memory 401. The first memory 400 may be a volatile memory and the second memory 401 may be a nonvolatile memory. In this case, examples of the first memory 400 include a random access memory (RAM), a dynamic RAM (DRAM), and a static RAM (SRAM), and examples of the second memory 401 include an electrically erasable programmable read only memory (EEPROM), a flash memory, a magnetic RAM (MRAM), a spin transfer torque MRAM, a ferroelectric RAM (FeRAM), a phase transition RAM (PRAM), and a resistive RAM (RRAM). The second memory 401 may be implemented as, for example, an embedded multimedia card (eMMC) or a universal flash memory (UFS).The display controller 240 of the example of this embodiment is controlled by the CPU 220 to control the display 410. For example, image data processed by the ISP 210A may be displayed on the display 410 under the control of the display controller 240 via an interface (not shown) between the display 410 and the display controller 240. Examples of such an interface include a MIPI® Serial Display Interface (DSI) or an Interface Supporting Embedded Display Port (eDP).FIG. 2 is a block diagram showing an example of the ISP 210A shown in FIG. 1. Referring to FIGS. 1 and 2, the ISP 210A of this example includes a format converter 211 and a lens shading correction circuit 213. The lens shading correction circuit 213 may be alternately referred to as a lens shading compensation circuit.The format converter 211 converts the raw image data IMI of a first format into input image data INPUT of a second format. For example, the first format may be in a Bayer pattern, but embodiments are not limited thereto. The second format may be YUV, Y'UV, YCbCr, YPbPr, or RGB, but again the embodiments are not limited thereto. Here, "Y" denotes a luma component or brightness, and "U" and "V" are chroma components or color information. Also, the luminance may be denoted by "Y" or "Y'" where the bar symbol (') denotes gamma compression. The "luminance" means perception (color science) brightness, and "luma" means electronic (voltage of display) brightness.The lens shading correction circuit 213 of this example performs an operation of correcting (or compensating) lens shading effects on the input image (or the input image data INPUT) and / or an operation of adjusting (for example, maintaining or decreasing) at least one of color or chrominance components of each pixel included in the input image data INPUT in consideration of the brightness of each of the pixels.FIG. 3 is a block diagram of an example 213A of the lens shading correction circuit 213 illustrated in FIG. 2. FIG. 4 illustrates an example of a table containing gain control parameters regarding brightness. FIGS. 5A to 5D are graphs showing examples of input signals and output signals of the lens shading correction circuit 213 illustrated in FIG. 2.Referring to FIG. 3, the lens shading correction circuit 213A of this example includes a radial curve generator 310, a compensation value generator 315, an RGB to YUV converter 320, a subtractor 325, and a desaturation circuit 330. Each of these components may be implemented by electronic circuits.The radial curve generator 310 of this embodiment constitutes a gain generator configured to generate a first gain value RG 1 for each pixel in response to a gain generation parameter RG, and to output the first gain value RG 1 to the compensation value generator 315 and the desaturation circuit 330. In other words, the radial curve generator 310 may generate the first gain value RG 1 for lens shading correction of each pixel in response to the gain generation parameter RG. For example, the radial curve generator 310 may generate a radial gain curve as shown in FIG. 5C in response to the gain generation parameter RG. FIG. 5C shows gain curves CV 2- 1, CV 2- 2, and CV 2- 3 in two dimensions with respect to the distance from a central pixel central pixel positioned in the center of the lens. However, the gain curves CV 2- 1, CV 2- 2, and CV 2- 3 may instead be expressed in three dimensions.As examples, when the gain generation parameter RG has a first value, the radial curve generator 310 may generate the first gain curve CV 2- 1 using the gain generation parameter RG having the first value. When the gain generation parameter RG has a second value, the radial curve generator 310 may generate the second gain curve CV 2- 2 using the gain generation parameter RG having the second value. When the gain generation parameter RG has a third value, the radial curve generator 310 may generate the third gain curve CV 2- 3 using the gain generation parameter RG having the third value. The value(s) of the gain generation parameter RG may be (may) determined by the CPU 220.Again as examples, the first gain value RG 1 may include a red gain value for red color correction, a green gain value for green color correction, and a blue gain value for blue color correction. Alternatively, the first gain value RG1 may include a cyan gain value for cyan color correction, a yellow gain value for yellow color correction, and a magenta gain value for magenta color correction. However, the inventive concept is not limited to these examples.In order to calculate different gain values among the colors, the gain generation parameter RG may include a parameter for each color. For example, the geometry of a gain curve may be determined using a parametric method, a non-parametric method, or a combination thereof. The non-parametric method represents a curve that uses a function value of the definition domain of the curve or a function value of a portion of the definition domain to define the shape of the curve. If a value of the curve represents only a portion of the definition domain, the other(s) value(s) may be (may) calculated by interpolating values defined in the neighborhood using any of various interpolation techniques.A second gain value RG 2 or second YUV data CIM may be a value (or a signal) that (which) changes slowly according to the position of a pixel. When the second YUV data CIM is subtracted from the input YUV data INPUT, a step (or a height difference) may occur. To control the stage called a pseudo contour, random noise may be added to the input YUV data INPUT. The radial curve generator 310 may perform an operation of adding noise to the first gain value RG 1. In some embodiments, radial curve generator 310 may also include a random noise generator (RNG) 310- 1 that generates the noise. The meaning of the noise may be "0", the noise may have a positive value or a negative value, and the positive value or the negative value may be adjusted.The first gain value RG 1 may or may not include the noise generated by the RNG 310- 1. Also, the first gain value RG 1 transmitted to the compensation value generator 315 may be the same as or different from the first gain value RG 1 transmitted to the desaturation circuit 330.The compensation value generator 315 of the example of this embodiment constitutes a gain control circuit configured to adjust the first gain value RG 1 using gain control parameters RP, GP, and BP and output the corresponding second gain value RG 2 represented in an RGB domain to the converter 320. The compensation value generator 315 may adjust or change all or part of a radial gain curve generated by the radial curve generator 310.When the first gain value RG 1 includes a red gain value, a green gain value, and a blue gain value, the gain control parameters RP, GP, and BP may include the red parameter RP for adjusting the red gain value, the green parameter GP for adjusting the green gain value, and the blue parameter BP for adjusting the blue gain value. Alternatively, when the first gain value RG 1 includes a cyan gain value, a yellow gain value, and a magenta gain value, the gain control parameters RP, GP, and BP may include the cyan parameter RP for adjusting the cyan gain value, the yellow parameter GP for adjusting the yellow gain value, and the magenta parameter BP for adjusting the magenta gain value.The CPU 220 may read or fetch the gain control parameters RP, GP, and BP corresponding to a brightness value from a table (for example, the table of FIG. 4 ) stored in the memory 400 or 401, and may transmit the gain control parameters RP, GP, and BP to the compensation value generator 315. For example, referring to FIG. 4, when the brightness value is a first value BR 1, the CPU 220 may transmit the gain control parameters RP (=RP_ 11), GP (=GP_ 11), and BP (=BP_ 11) corresponding to the first value BR 1 to the compensation value generator 315.For example, when the first gain curve CV 2- 1 is generated by the radial curve generator 310 and the gain control parameters RP (=RP_ 11), GP (=GP_ 11), and BP (=BP_ 11) corresponding to the first value BR 1 are transmitted to the compensation value generator 315, the compensation value generator 315 may adjust the first gain value RG 1 for each pixel using the first gain value RG 1 of the first gain curve CV 2- 1 and the gain control parameters RP (=RP_ 11), GP (=GP_ 11), and BP (=BP_ 11), and may output the second gain value RG 2 corresponding to the adjustment result. It is assumed that a fourth gain curve CV 1- 1 is a gain curve corresponding to the second gain value RG 2 resulting from the adjustment using the first gain curve CV 2- 1 and the gain control parameters RP (=RP_ 11), GP (=GP_ 11), and BP (=BP_ 11).When the brightness value is a second value BR 2, the CPU 220 may transmit the gain control parameters RP (=RP_ 21), GP (=GP_ 21), and BP (=BP_ 21) corresponding to the second value BR 2 to the compensation value generator 315.For example, when the first gain curve CV 2- 1 is generated by the radial curve generator 310 and the gain control parameters RP (=RP_ 21), GP (=GP_ 21), and BP (=BP_ 21) corresponding to the second value BR 2 are transmitted to the compensation value generator 315, the compensation value generator 315 may adjust the first gain value RG 1 for each pixel using the first gain value RG 1 of the first gain curve CV 2- 1 and the gain control parameters RP (=RP_ 21), GP (=GP_ 21), and BP (=BP_ 21), and may output the second gain value RG 2 corresponding to the adjustment result. It is assumed that a fifth gain curve CV 1- 2 is a gain curve corresponding to the second gain value RG 2 resulting from the adjustment using the first gain curve CV 2- 1 and the gain control parameters RP (=RP_ 21), GP (=GP_ 21), and BP (=BP_ 21).When the brightness value is a third value GB 3, the CPU 220 may transmit the gain control parameters RP (=RP_ 3 1), GP (=GP_ 3 1), and BP (=BP_ 31) corresponding to the third value BR 3 to the compensation value generator 315. For example, when the first gain curve CV 2- 1 is generated by the radial curve generator 310 and the gain control parameters RP (=RP_ 31), GP (=GP_ 31), and BP (=BP_ 31) corresponding to the third value BR 3 are transmitted to the compensation value generator 315, the compensation value generator 315 may adjust the first gain value RG 1 for each pixel using the first gain value RG 1 of the first gain curve CV 2- 1 and the gain control parameters RP (=RP_ 31), GP (=GP_ 31), and BP (=BP_ 31), and may output the second gain value RG 2 corresponding to the adjustment result. It is assumed that a sixth gain curve CV 1- 3 is a gain curve corresponding to the second gain value RG 2 resulting from the adjustment using the first gain curve CV 2- 1 and the gain control parameters RP (=RP_ 31), GP (=GP_ 31), and BP (=BP_ 31).As described above, according to the example of the present embodiment, the gain control parameters RP, GP, and BP control the curvature of each of the gain curves CV 2- 1, CV 2- 2, and CV 2- 3. For example, gain control parameters RP, GP, and BP may be set for each frame, for each window having a plurality of pixels, or for each pixel.The compensation value generator 315 of the example of this embodiment generates the second gain value RG 2 by multiplying the first gain value RG 1 by the gain control parameters RP, GP, and BP. The compensation value generator 315 may generate the second gain value RG 2 for lens shading correction to reduce the number of calculations.The converter 320 of the example of this embodiment constitutes a converter circuit configured to convert the second gain value RG 2 into the second YUV data CIM. The second gain value RG 2 may be represented in the RGB domain and may be data in an RGB format. In other words, since the correction or compensation of a gain value in the RGB domain is performed by the compensation value generator 315, the converter 320 may convert the data RG 2 in the RGB format into the second YUV data CIM when the input data is INPUT and output data is OUTPUT YUV data.The subtracter 325 of the example of this embodiment constitutes a subtracter circuit configured to generate first YUV data CINPUT1 by subtracting the second YUV data CIM from the input YUV data INPUT. The brightness (or brightness value) of the input YUV data INPUT having a lens shading effect is illustrated in FIG. 5A.In the lens shading correction according to some embodiments of the inventive concept, the brightness of green color may be corrected as indicated by an arrow I in FIG. 5D, and the brightness of red and blue colors may be corrected as indicated by an arrow II in FIG. 5D. Accordingly, the brightness of all green, red and blue colors can be corrected to a level III in FIG. 5D. In a conventional lens shading correction, the correction indicated by the arrow II in FIG. 5D is not performed. Although the brightness with respect to the distance from the central pixel central pixel positioned at the center of the lens is represented in two dimensions in FIG. 5A, the brightness may instead be represented in three dimensions.The desaturation circuit 330 of the example of this embodiment constitutes an adjustment circuit configured to receive the first YUV data CINPUT 1, adjust at least one of the U and V values of the first YUV data CINPUT 1 using at least one of the Y value of the first YUV data CINPUT 1 and the first gain value RG 1, and generate and output the third YUV data OUTPUT according to the adjustment result.If the U value or V value excessively decreases, a green color may be prominently exhibited. Thus, when the U or V value of the first YUV data CINPUT1 output from the subtracter 325 is negative, the desaturation circuit 330 cannot adjust the U or V value. However, when the U or V value of the first YUV data CINPUT1 output from the subtracter 325 is positive, the desaturation circuit 330 may decrease the U or V value.Here, each of the U and V values may be represented in a signed expression or by a signed magnitude. If the U and V values are 0, then the U and V values may indicate an achromatic color. In the case where each of the U and V values are represented in a unsigned term, the desaturation circuit 330 may correct (e.g., decrease) at least one of the U and V values when the at least one of the U and V values is higher than a gray point indicating the achromatic color, and may not correct the at least one of the U and V values to prevent the green color from being salient when the at least one of the U and V values is lower than the gray point.A value represented in a unsigned term corresponds to a value obtained by adding a constant value to a value represented in a signed term. Accordingly, reducing the at least one of the U and V values in consideration of the sign is considered the same or similar to processing a unsigned expression based on the gray point in the embodiments of the inventive concept.When the U or V value is expressed in "n" bits, the U or V value may be expressed as -2 (n-2) to 2 (n-2)-1, which is a range of values represented in a signed expression or 0 to 2 (n-1)-1, which is a range of values represented in a unsigned expression. When 2 (n-2) is added to each of the values expressed as -2 (n-2) to 2 (n-2)-1 values expressed as 0 to 2 (n-1)-1 can be obtained. At this time, 2 (n-2) may be a constant value. For example, when "n" is 3, -2 (n-2) to 2 (n-2)-1 may be expressed as -2, -1.0, and 1. When the constant value is 2, 0 to 2 (n-1)-1 can be expressed as 0, 1, 2 and 3.The third YUV data OUTPUT generated by the desaturation circuit 330 may be transmitted to the memory controller 230 or 231 or the display controller 240 according to the control of the CPU 220. The brightness (or brightness value) of the third YUV data OUTPUT is represented by the level III in FIG. 5D. Although the brightness in terms of distance from the central pixel central pixel positioned at the center of the lens is represented in two dimensions in Fig. 5D, the brightness may instead be represented in three dimensions.The desaturation circuit 330 of the example of this embodiment selectively performs a desaturation operation on at least one of the U and V values of the first YUV data CINPUT 1. Accordingly, the desaturation circuit 330 may be referred to as a selective desaturation circuit. The desaturation circuit 330 may decrease reddish color data, bluish color data, and / or slightly violet color data in the first YUV data CINPUT 1 (as indicated by arrow II in FIG. 5D ). Accordingly, as indicated by the arrow II in FIG. 5D, the desaturation circuit 330 may remove reddish, bluish, and / or slightly violet color from an image corresponding to the first YUV data CINPUTI 1.FIG. 6 is a block diagram of another example 213B of the lens shading correction circuit 213 illustrated in FIG. 2. Referring to FIGS. 1, 2, and 6, the lens shading correction circuit 213B of this example includes a radial curve generator 310, a compensation value generator 315, a subtractor 326, a first (RGB to YUV) converter 327, a desaturation circuit 331, and a second (YUV to RGB) converter 333. In contrast to the embodiment of FIG. 3, in which the input data INPUT and the output data OUTPUT have the YUV format, the embodiment of FIG. 6 is characterized by the input data INPUT and the output data OUTPUT, which have the RGB format. A detailed description of the same or similar elements already described with reference to FIG. 3 will not be repeated below in the description of FIG. 6.The radial curve generator 310 in the example of this embodiment generates the first gain value RG 1 for each pixel in response to the gain generation parameter RG, and outputs the first gain value RG 1 to the compensation value generator 315 and the desaturation circuit 331. In some embodiments, radial curve generator 310 may also include RNG 310- 1 that generates random noise.The compensation value generator 315 in the example of this embodiment adjusts the first gain value RG 1 using the gain control parameters RP, GP, and BP, and outputs the second gain value RG 2 represented in the RGB domain according to the adjustment result.The subtracter 326 in the example of this embodiment generates first RGB data CINPUT2 by subtracting the second gain value RG2 from the input RGB data INPUT.The first converter 327 in the example of this embodiment converts the first RGB data CINPUT 2 into first YUV data YUVI.The desaturation circuit 331 in the example of this embodiment receives the first YUV data YUVI, adjusts at least one of the U and V values of the first YUV data YUVI using at least one of the Y value of the first YUV data YUVI and the first gain value RG 1, and generates and outputs the second YUV data CIMA according to the adjustment result.When the U or V value of the first YUV data YUVI output from the first converter 327 is negative, the desaturation circuit 331 may not adjust the U or V value. However, when the U or V value of the first YUV data YUVI output from the first converter 327 is positive, the desaturation circuit 331 may decrease the U or V value.The desaturation circuit 331 may selectively perform a desaturation operation on at least one of the U and V values of the first YUV data YUVI. Accordingly, the desaturation circuit 331 may be referred to as a selective desaturation circuit. As indicated by the arrow II in FIG. 5D, the desaturation circuit 331 may remove reddish, bluish and / or slightly violet color from an image corresponding to the first YUV data YUVI.The second converter 333 in the example of this embodiment converts the second YUV data CIMA output from the desaturation circuit 331 into the second RGB data OUTPUT and transmits the second RGB data OUTPUT to the memory controller 230 or 231 or the display controller 240.FIG. 7 is a block diagram of another example 213C of the lens shading correction circuit 213 illustrated in FIG. 2. A detailed description of the same or similar elements already described with reference to FIGS. 3 and 6 will not be repeated below in the description of FIG. 7.Referring to FIGS. 1, 2, and 7, the lens shading correction circuit 213C of this example includes a radial curve generator 310 and a desaturation circuit 332. The example of FIG. 7 shows the input data INPUT and the output data OUTPUT having the YUV format.The radial curve generator 310 in the example of this embodiment generates the first gain value RG 1 for each pixel in response to the gain generation parameter RG, and outputs the first gain value RG 1 to the desaturation circuit 332. In some embodiments, the radial curve generator 310 may also include the RNG 310- 1 that generates random noise.The desaturation circuit 332 in the example of this embodiment receives the input YUV data INPUT, adjusts at least one of the U and V values of the input YUV data INPUT using at least one of the Y value of the input YUV data INPUT and the first gain value RG 1, and outputs the output data OUTPUT corresponding to the adjustment result. The output data OUTPUT may be transmitted to the memory controller 230 or 231 or the display controller 240.FIG. 8 is a block diagram of a data processing system 100B according to some embodiments of the inventive concept. In contrast to the lens shading correction circuit 213 placed inside the ISP 210A in the embodiment illustrated in FIG. 2, the lens shading correction circuit 213 is formed externally of an ISP 210B in the embodiment illustrated in FIG. 8. In other words, the lens shading correction circuit 213 may be implemented as an independent Intelligent Property (IP) or semiconductor chip. Otherwise, like reference numerals refer to like elements in FIGS. 2 and 8.The ISP 210B may convert the line image data IMI having a first format into the input image data INPUT having a second format. As described above, the first format may be the Bayer pattern, but the inventive concept is not limited thereto. The second format may be YUV, Y'UV, YCbCr, YPbPr, or RGB, but again the inventive concept is not limited thereto. The lens shading correction circuit 213 illustrated in FIG. 8 may be implemented as the lens shading correction circuit 213A illustrated in FIG. 3, the lens shading correction circuit 213B illustrated in FIG. 6, or the lens shading correction circuit 213C illustrated in FIG. 7.FIG. 9 is a block diagram of a data processing system 100C according to some embodiments of the inventive concept. While the lens shading correction circuit 213 illustrated in FIGS. 2 and 8 may be implemented in hardware, a lens shading corrector 213- 1 illustrated in FIG. 9 may be a software component or a computer readable program that may be (executed) in the CPU 220. Otherwise, like reference numerals refer to like elements in FIGS. 2 and 8.The lens shading corrector 213- 1 may be stored in the memory 401. When the data processing system 100C is booted, the lens shading corrector 213- 1 may be loaded from the memory 401 to the memory 400. The lens shading corrector 213- 1 loaded in the memory 400 may be executed in the CPU 220.The lens shading corrector 213- 1 may include a processing block that performs operations that are the same as or similar to those of each of the elements 310, 315, 320, 325, and 330 described with reference to FIG. 3. Each processing block may be written as software or computer readable program codes.Alternatively, the lens shading corrector 213- 1 may include a processing block that performs operations that are the same as or similar to those of the elements 310, 315, 326, 327, 331, and 333 described with reference to FIG. 6. Each processing block may be written as software or computer readable program codes.As another alternative, the lens shading corrector 213- 1 may include a processing block that performs operations that are the same as or similar to those of each of the elements 310 and 332 described with reference to FIG. 7. Each processing block may be written as software or computer readable program codes.FIG. 10 is a flowchart for reference in describing operations of a data processing system according to some embodiments of the inventive concept. Referring to FIGS. 1 to 6 and 10, the lens shading correction circuit 213, 213A, or 213B (collectively denoted by reference numeral 213) may generate gain values RG 1 for lens shading correction (or compensation) in response to the gain generation parameter RG in operation S 110. The lens shading correction circuit 213 may generate the gain values RG 1 for respective pixels in operation S 110.The lens shading correction circuit 213 may correct the gain values RG 1 using the gain control parameters RP, GP, and BP to generate corrected gain values RG 2 in operation S 120.The lens shading correction circuit 213 may process the input data INPUT using the input data INPUT and the corrected gain values RG 2 in operation S 130.The lens shading correction circuit 213 may decrease at least one of the U and V values of the processed data using the gain values RG 1 and / or the Y value of the processed data in operation S 140.As described above, according to some embodiments of the inventive concept, a lens shading correction circuit corrects or compensates lens shading of an image to be processed and controls the color of each of pixels included in the image in consideration of the brightness of each pixel, thereby preventing or suppressing a certain color such as red, blue, or violet from being prominent at the edge of the image during or after the lens shading correction of the image.While the inventive concept has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in forms and details may be made therein without departing from the spirit and scope of the inventive concept as defined by the following claims.

Claims

A lens shading correction circuit (213; 213A; 213B; 213C) comprising: a gain generator (310) configured to generate a first gain value (RG1) for each pixel of an input image in response to a gain generation parameter (RG); and a matching circuit (330; 331; 332) configured to receive the first gain value (RG1) and first YUV data (CINPUT1; YUVI; INPUT), and to receive at least one of U and V values of the first YUV data (CINPUT1; YUVI; The method of adjusting the gain generator (310) using at least one of the first gain value (RG 1) and a Y value of the first YUV data (CINPUT 1; YUVI; INPUT), wherein the gain generator (310) is configured to perform an operation of adding noise to the first gain value (RG 1).The lens shading correction circuit (213; 213A; 213B; 213C) according to claim 1, wherein the adjustment circuit (330; 331; 332) decreases the U value or the V value when the U value or the V value is positive.The lens shading correction circuit (213; 213A) according to claim 1, further comprising: a gain control circuit (315) configured to adjust the first gain value (RG1) using a gain control parameter (RP, GP, BP) and output a second gain value (RG2) represented in an RGB domain according to an adjustment result; a converter (320) configured to convert the second gain value (RG2) into second YUV data (CIM); and a subtractor (325) configured to generate the first YUV data (CINPUT1) by subtracting the second YUV data (CIM) from input YUV data (INPUT) of the input image.The lens shading correction circuit (213; 213A) according to claim 3, wherein the gain control circuit (315) generates the second gain value (RG2) by multiplying the gain control parameter (RP, GP, BP) by the first gain value (RG1).The lens shading correction circuit (213; 213A) according to claim 4, wherein the adjustment circuit (330) decreases the U value or the V value when the U value or the V value is positive.The lens shading correction circuit (213; 213B) according to claim 1, further comprising: a gain control circuit (315) configured to adjust the first gain value (RG1) using a gain control parameter (RP, GP, BP) and output a second gain value (RG2) represented in an RGB domain according to an adjustment result; a subtractor (326) configured to generate first RGB data (CINPUT2) by subtracting the second gain value (RG2) from input RGB data (INPUT); a first converter (327) configured to convert the first RGB data (CINPUT2) into the first YUV data (YUVI); and a second converter (333) configured to convert second YUV data (CIMA) output from the matching circuit (331) into second RGB data (OUTPUT).The lens shading correction circuit (213; 213B) according to claim 6, wherein the gain control circuit (315) generates the second gain value (RG2) by multiplying the gain control parameter (RP, GP, BP) by the first gain value (RG1).The lens shading correction circuit (213; 213B) according to claim 7, wherein the adjustment circuit (330) decreases the U value or the V value when the U value or the V value is positive.A system-on-chip (200A) comprising: a lens shading correction circuit (213; 213A, 213B, 213C); and a central processing unit (CPU) configured to control the lens shading correction circuit (213; 213A; 213B; 213C), wherein the lens shading correction circuit (213; 213A; 213B; 213C) comprises: a gain generator (310) configured to generate a first gain value (RG1) for each pixel of an input image in response to a gain generation parameter (RG); and a matching circuit (330; 331; 332) configured to receive the first gain value (RG 1) and first YUV data (CINPUT 1; YUVI; INPUT), and adjust at least one of U and V values of the first YUV data (CINPUT 1; YUVI; INPUT) using at least one of the first gain value (RG 1) and a Y value of the first YUV data (CINPUT 1; YUVI; INPUT), wherein the gain generator (310) is configured to perform an operation of adding noise to the first gain value (RG 1).The system-on-chip (200A) according to claim 9, wherein the lens shading correction circuit (213; 213A, 213B, 213C) further comprises: a gain control circuit (315) configured to adjust the first gain value (RG1) using a gain control parameter (RP, GP, BP) and to output a second gain value (RG2) represented in an RGB domain according to an adjustment result; a converter (320) configured to convert the second gain value (RG2) into second YUV data (CIM); and a subtractor (325) configured to generate the first YUV data (CINPUT1) by subtracting the second YUV data (CIM) from input YUV data (INPUT).The system-on-chip (200A) of claim 10, wherein the CPU (220) adjusts the gain control parameter (RP, GP, BP) using brightness information determined for each frame of the input image.The system-on-chip (200A) according to claim 10, wherein the gain control circuit (315) generates the second gain value (RG2) by multiplying the gain control parameter (RP, GP, BP) by the first gain value (RG1), and wherein the adjustment circuit (330; 331) decreases the U value or the V value when the U or V value is positive.The system-on-chip (200A) according to claim 9, wherein the lens shading correction circuit (213; 213A, 213B, 213C) further comprises: a gain control circuit (315) configured to adjust the first gain value (RG1) using a gain control parameter (RP, GP, BP) and output a second gain value (RG2) represented in an RGB domain according to an adjustment result; a subtracter (326) configured to generate first RGB data (CINPUT2) by subtracting the second gain value (RG2) from input RGB data (INPUT); a first converter (327) configured to convert the first RGB data (CINPUT2) into the first YUV data (YUVI); and a second converter (333) configured to convert second YUV data (CIMA) output from the matching circuit (331) into second RGB data (OUTPUT).The system-on-chip (200A) of claim 13, wherein the CPU (220) adjusts the gain control parameter (RP, GP, BP) using brightness information determined for each frame of the input image.The system-on-chip (200A) according to claim 13, wherein the gain control circuit (315) generates the second gain value (RG2) by multiplying the gain control parameter (RP, GP, BP) by the first gain value (RG1), and wherein the adjustment circuit (330) decreases the U value or the V value when the U or V value is positive.A data processing system comprising: a camera module (110) configured to generate raw image data (IMI); and a system-on-chip (200A) configured to control the camera module (110), wherein the system-on-chip (200A) comprises a lens shading correction circuit (213; 213A; 213B; 213C) configured to perform lens shading correction on the raw image data (IMI), and a central processing unit (CPU) configured to control the lens shading correction circuit (213; 213A; 213B; 213C), wherein the lens shading correction circuit (213; 213A; 213B; 213c) comprises: a gain generator (310) configured to generate a first gain value (RG1) for each pixel of the raw image data (IMI) in response to a gain generation parameter (RG); and an adjustment circuit (330; 331; 332) configured to receive the first gain value (RG1) and first YUV data (CINPUT1; YUVI; INPUT), and to generate at least one of U and V values of the first YUV data (CINPUT1; YUVI; INPUT) using at least one of the first gain value (RG1) and a Y value of the first YUV data (CINPUT1; yuvi; input), wherein the gain generator (310) is configured to perform an operation of adding noise to the first gain value (RG 1).The data processing system according to claim 16, wherein the lens shading correction circuit (213; 213A) further comprises: a gain control circuit (315) configured to adjust the first gain value (RG1) using a gain control parameter (RP, GP, BP) and to output a second gain value (RG2) represented in an RGB domain according to an adjustment result; a converter (320) configured to convert the second gain value (RG2) into second YUV data (CIM); and a subtractor (325) configured to generate the first YUV data (CINPUT1) by subtracting the second YUV data (CIM) from input YUV data (INPUT).The data processing system according to claim 17, further comprising a storage device (400, 401) including a table storing a plurality of gain control parameters (RP, GP, BP) related to brightness values, wherein the CPU correlates brightness information with a brightness value of the table and selects one of the gain control parameters (RP, GP, BP) stored in the table as the gain control parameter (RP, GP, BP) corresponding to the brightness value.The data processing system according to claim 17, wherein the gain control circuit (315) generates the second gain value (RG2) by multiplying the gain control parameter (RP, GP, BP) by the first gain value (RG1).The data processing system of claim 19, wherein the matching circuit (330) reduces the U value or the V value when the U or V value is positive.A data processing method for lens shading correction of an image, comprising: receiving raw image data (IMI) of an input image; generating a first gain value (RG1) for each pixel of the input image in response to a gain generation parameter (RG); adjusting at least one of U and V values of first YUV data (CINPUT1; YUVI; INPUT) of the input image using at least one of the first gain value (RG1) and a Y value of the first YUV data (CINPUT1; YUVI; INPUT); generating output image data (OUTPUT) of a lens shading corrected image from the adjusted first YUV data of the input image, wherein an operation of adding noise to the first gain value (RG1) is performed.The method of claim 21, wherein the adjusting comprises decreasing the U value or the V value when the U or V value is positive.The method of claim 21, wherein the adjusting comprises using both the first gain value (RG1) and the Y value of the first YUV data (CINPUT1; YUVI; INPUT).The method of claim 21, further comprising converting the raw image data (IMI) from a first format to a second format, wherein the YUV data for the raw image data (IMI) is obtained in the second format.The method of claim 24, wherein the raw image data is converted into input YUV data (INPUT) of the second format, and the method further comprises: adjusting the first gain value (RG1) using a gain control parameter (RP, GP, BP) and outputting a corresponding second gain value (RG2) represented in an RGB domain; converting the second gain value (RG2) into second YUV data (CIM); subtracting the second YUV data (CIM) from input YUV data (INPUT) of the input image to generate the first YUV data (CINPUT1), wherein the adjusted first YUV data (CINPUT1) is generated as the output image data.

Citation Information

Patent Citations

  • Method of adjusting hue and device therefor

    US5764308A