LOW POWER DEMOSAIC WITH INTERGRATED CHROMATIC ALIASING REPAIR

An apparatus and method for demosaicing sampled color values are provided. The method includes sampling color information respectively at a plurality of subpixels using a plurality of photo detectors, sampling color information respectively at a plurality of subpixels using a plurality of photo detectors, generating a high frequency color reconstruction solution for the first subset of the plurality of subpixels corresponding to subpixels for which the first color is sampled, determining color values for the first subset of the plurality of pixels using a combination of the low frequency color reconstruction solution and the high frequency color reconstruction solution, and determining, using the first color values for the first subset of the plurality of pixels, color values for a second subset of the plurality of subpixels corresponding to subpixels for which the first color is not sampled.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
CROSS-REFERENCE TO RELATED APPLICATION(S)

This application claims the benefit under 35 U.S.C. §119(e) of a U.S. Provisional application filed on Jun. 12, 2014 in the U.S. Patent and Trademark Office and assigned Ser. No. 62/011,311, the entire disclosure of which is hereby incorporated by reference.

TECHNICAL FIELD

The present disclosure relates to an apparatus and method for processing an image. More particularly, the present disclosure relates to an apparatus and method for demosaicing an image.

BACKGROUND

Mobile terminals are developed to provide wireless communication between users. As technology has advanced, mobile terminals now provide many additional features beyond simple telephone conversation. For example, mobile terminals are now able to provide image and video capture. As a result of the ubiquity of mobile terminals, image capture and/or video capture have become increasingly popular. Consequently, various image processing techniques are used to provide a user with an accurate representation of the image intended to be captured.

In order to provide a more accurate representation of the color of the image intended to be captured, a technique commonly referred to as demosaicing may be performed. Demosaicing refers to the digital imaging process used to reconstruct a full color image from color samples output from an image detector.

Accordingly, there is a need for an apparatus and method for providing an improved representation of the image intended to be captured. Further, there is a need for an apparatus and method for demosaicing color values sampled during image capture.

The above information is presented as background information only to assist with an understanding of the present disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with regard to the present disclosure.

SUMMARY

Aspects of the present disclosure are to address at least the above-mentioned problems and/or disadvantages and to provide at least the advantages described below. Accordingly, an aspect of the present disclosure is to provide an apparatus and method for demosaicing sampled color values.

In accordance with an aspect of the present disclosure, a method for demosaicing sampled color values is provided. The method includes sampling color information respectively at a plurality of subpixels using a plurality of photo detectors, generating a low frequency color reconstruction solution for a first subset of the plurality of subpixels corresponding to subpixels for which a first color is sampled, generating a high frequency color reconstruction solution for the first subset of the plurality of subpixels corresponding to subpixels for which the first color is sampled, determining color values for the first subset of the plurality of pixels using a combination of the low frequency color reconstruction solution and the high frequency color reconstruction solution, and determining, using the first color values for the first subset of the plurality of pixels, color values for a second subset of the plurality of subpixels corresponding to subpixels for which the first color is not sampled.

In accordance with another aspect of the present disclosure, an apparatus for demosaicing sampled color values is provided. The apparatus includes a storage unit, and at least one processor configured to sample color information respectively at a plurality of subpixels using a plurality of photo detectors, to generate a low frequency color reconstruction solution for a first subset of the plurality of subpixels corresponding to subpixels for which a first color is sampled, to generate a high frequency color reconstruction solution for the first subset of the plurality of subpixels corresponding to subpixels for which the first color is sampled, to determine color values for the first subset of the plurality of pixels using a combination of the low frequency color reconstruction solution and the high frequency color reconstruction solution, and to determine, using the first color values for the first subset of the plurality of pixels, color values for a second subset of the plurality of subpixels corresponding to subpixels for which the first color is not sampled.

Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various embodiments of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features, and advantages of various embodiments of the present disclosure will be more apparent from the following description taken in conjunction with the accompanying drawings, in which:

FIG. 1 illustrates an array of photosites of an image detector according to the related art;

FIG. 2 illustrates a plurality of subpixels according to an embodiment of the present disclosure;

FIG. 3 illustrates green subpixels according to an embodiment of the present disclosure;

FIG. 4 illustrates a method of determining color values at corresponding subpixels according to an embodiment of the present disclosure;

FIG. 5 illustrates a method of determining color values at corresponding subpixels according to an embodiment of the present disclosure; and

FIG. 6 illustrates a block diagram schematically illustrating a configuration of an electronic device according to an embodiment of the present disclosure.

Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures.

DETAILED DESCRIPTION

The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of various embodiments of the disclosure as defined by the claims and their equivalents. It includes various specific details to assist in that understanding but these are to be regarded as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.

The terms and words used in the following description and claims are not limited to the bibliographical meanings, but, are merely used by the inventor to enable a clear and consistent understanding of the disclosure. Accordingly, it should be apparent to those skilled in the art that the following description of various embodiments of the present disclosure are provided for illustration purpose only and not for the purpose of limiting the disclosure as defined by the appended claims and their equivalents.

It is to be understood that the singular forms “a,” “an,” and “the” include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to “a component surface” includes reference to one or more of such surfaces.

By the term “substantially” it is meant that the recited characteristic, parameter, or value need not be achieved exactly, but that deviations or variations, including for example, tolerances, measurement error, measurement accuracy limitations and other factors known to those of skill in the art, may occur in amounts that do not preclude the effect the characteristic was intended to provide.

According to various embodiments of the present disclosure, an electronic device may include communication functionality. For example, an electronic device may be a smart phone, a tablet Personal Computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop PC, a netbook PC, a Personal Digital Assistant (PDA), a Portable Multimedia Player (PMP), an mp3 player, a mobile medical device, a camera, a wearable device (e.g., a Head-Mounted Device (HMD), electronic clothes, electronic braces, an electronic necklace, an electronic appcessory, an electronic tattoo, or a smart watch), and/or the like.

According to various embodiments of the present disclosure, an electronic device may be a smart home appliance with communication functionality. A smart home appliance may be, for example, a television, a Digital Video Disk (DVD) player, an audio, a refrigerator, an air conditioner, a vacuum cleaner, an oven, a microwave oven, a washer, a dryer, an air purifier, a set-top box, a TV box (e.g., Samsung HomeSync™, Apple TV™, or Google TV™), a gaming console, an electronic dictionary, an electronic key, a camcorder, an electronic picture frame, and/or the like.

According to various embodiments of the present disclosure, an electronic device may be a medical device (e.g., Magnetic Resonance Angiography (MRA) device, a Magnetic Resonance Imaging (MRI) device, Computed Tomography (CT) device, an imaging device, or an ultrasonic device), a navigation device, a Global Positioning System (GPS) receiver, an Event Data Recorder (EDR), a Flight Data Recorder (FDR), an automotive infotainment device, a naval electronic device (e.g., naval navigation device, gyroscope, or compass), an avionic electronic device, a security device, an industrial or consumer robot, and/or the like.

According to various embodiments of the present disclosure, an electronic device may be furniture, part of a building/structure, an electronic board, electronic signature receiving device, a projector, various measuring devices (e.g., water, electricity, gas or electro-magnetic wave measuring devices), and/or the like that include communication functionality.

According to various embodiments of the present disclosure, an electronic device may be any combination of the foregoing devices. In addition, it will be apparent to one having ordinary skill in the art that an electronic device according to various embodiments of the present disclosure is not limited to the foregoing devices.

Various embodiments of the present disclosure include an apparatus and method for demosaicing sampled color values. In addition, various embodiments of the present disclosure include an apparatus and method for efficiently demosaicing sampled color values. According to various embodiments of the present disclosure, the apparatus and method for efficiently demosaicing sampled color values emphasizes the sampled green color values. According to various embodiments of the present disclosure, the apparatus and method for efficiently demosaicing sampled color values may be ideal for demosaicing sampled color values to render a preview image so as to minimize (or reduce) the resources required to perform image processing of the image.

An image is represented by a number of areas called pixels. Each pixel is associated with a color that should be substantially reproduced by a set of subpixels in a display. According to the related art, each subpixel displays a primary color. For example, each subpixel according to the related art is associated with some hue and saturation. Other colors may be obtained by mixing primary colors. Each pixel is mapped into a set of one or more subpixels which are to display the color of the pixel.

In some displays and/or cameras, each repeating set of subpixels includes a subpixel for each primary color. The subpixels are small, and are spaced closely together, to provide a desired resolution.

An image detector has a plurality of photo detectors used to sample an image. Each of the plurality of photo detectors may sample (e.g., capture) a value for a single color. For example, each of the plurality of photo detectors may be configured with a color filter. According to the related art, a Color Filter Array (CFA) or a Color Filter Mosaic (CFM) is an array or mosaic of color filters disposed above the plurality of photo detectors.

Each of the plurality of photo detectors may be located at a photosite of the image detector. The photosite refers to the spatial location at which a color may be sampled by a photo detector. The array or mosaic of color filters may be disposed above the plurality of photo detectors such that each photo detector has a single corresponding color filter. Accordingly, each photosite may have a corresponding sampled value for a single color.

Each of the photosites may be mapped or otherwise correspond to a subpixel of the image. Accordingly, each subpixel of the image may have a corresponding sampled value for a single color. Because each subpixel of the image does not have sampled values for all colors, an image represented by the sampled color values at each subpixel may appear pixelated with a disjointed color representation of the intended image. In other words, the image represented by the sampled color values at each subpixel may be an inaccurate representation of the image intended to be captured.

In order to provide a more accurate representation of the color of the image intended to be captured, a technique commonly referred to as demosaicing may be performed. Demosaicing refers to the digital imaging process used to reconstruct a full color image from sampled color values output from an image detector. Because each photo detector has a spatial footprint in the image detector, the image detector is unable to capture a color value for every color at each respective photosite thereof. The reconstruction of the full color image using color samples output from the respective photo detectors constituting the image detector may use interpolation or other numerical methods to determine values for each color (e.g., red, green, and blue) at each subpixel.

FIG. 1 illustrates an array of photosites of an image detector according to the related art.

Referring to FIG. 1, an array of photosites 100 comprising red, green and blue photosites is provided. As an example, the red, green, and blue photosites may be created by placing a Bayer filter (e.g., an RBG filter) over the photo detectors respectively corresponding to the photosites.

The array of photosites 100 may correspond to a plurality of pixels. As illustrated in FIG. 1, each of the plurality of pixels is distinguished from one another by a solid line. Each of the plurality of pixels may include a plurality of subpixels. For example, each of the plurality of pixels may include four subpixels. Each of the plurality of subpixels in each of the plurality of pixels is distinguished from one another by a dotted line in FIG. 1.

If an image detector comprises a Bayer filter, then the plurality of subpixels constituting a pixel corresponding to the respective groups of photosites of the image detector may include a red subpixel, a blue subpixel, and two green subpixels. A pixel may include two green subpixels because the RGB pixel includes three colors, however, there are certain benefits associated with designing an array of photo detectors and thus sub pixels that are arranged by an order of two. The color green is selected as a color to be repeated in the pixel because the human eye has been determined to perceive luminance best through the color green.

As illustrated in FIG. 1, a red subpixel is denoted by ‘R,’ a blue subpixel is denoted by ‘B,’ and a green subpixel is denoted by ‘G.’

The green subpixels may respectively sample a green color value in response to a request to capture an image. The green subpixels may correspond to a subpixel 105a, a subpixel 105d, a subpixel 110a, a subpixel 110d, a subpixel 115a, a subpixel 115d, a subpixel 120a, a subpixel 120d, a subpixel 125a, a subpixel 125d, a subpixel 130a, a subpixel 130d, a subpixel 135a, a subpixel 135d, a subpixel 140a, a subpixel 140d, a subpixel 145a, and a subpixel 145d.

The red subpixels may respectively sample a red color value in response to a request to capture an image. The red subpixels may correspond to a subpixel 105b, a subpixel 110b, a subpixel 115b, a subpixel 120b, a subpixel 125b, a subpixel 130b, a subpixel 135b, a subpixel 140b, and a subpixel 145b.

The blue subpixels may respectively sample a blue color value in response to a request to capture an image. The blue subpixels may correspond to a subpixel 105c, a subpixel 110c, a subpixel 115c, a subpixel 120c, a subpixel 125c, a subpixel 130c, a subpixel 135c, a subpixel 140c, and a subpixel 145c.

FIG. 2 illustrates a plurality of subpixels according to an embodiment of the present disclosure.

Referring to FIG. 2, an array of pixels 200 respectively comprising four subpixels is illustrated. The four subpixels correspond to areas at which a corresponding color value is sampled. For example, as illustrated in the array of pixels 200, each pixel is distinguished from one another by a solid line. The plurality of subpixels in each of the plurality of pixels is distinguished from one another by a dotted line.

According to various embodiments of the present disclosure, a color value is respectively sampled at a subpixel corresponding to a photosite. For example, as illustrated in FIG. 2, a green color value is sampled at the subpixel denoted by G0, a red color value is sampled at the subpixel denoted by R0, a blue color value is sampled at the subpixel denoted by B0, and another green color value is sampled at the subpixel denoted by G3. Similarly, a green color value is sampled at the subpixel denoted by G1, a red color value is sampled at the subpixel denoted by R1, a blue color value is sampled at the subpixel denoted by B1, and another green color value is sampled at the subpixel denoted by G4. Further, a green color value is sampled at the subpixel denoted by G2, a red color value is sampled at the subpixel denoted by R2, a blue color value is sampled at the subpixel denoted by B2, and another green color value is sampled at the subpixel denoted by G5.

According to the related art, significant resources are used to demosaic the sampled color values in order to reconstruct a color representation of an image. For example, demosaicing methods according to the related art use significant memory and processing resources to demosaic the sampled color values. The related art uses a large memory buffer to store sampled color values with which the color representation is reconstructed. The related art references several sampled color values in order to interpolate or otherwise calculate color values at corresponding photosites.

In contrast, according to various embodiments of the present disclosure, an efficient method of reconstructing a color representation of an image is provided. According to various embodiments of the present disclosure, a slim buffer (e.g., a small buffer relative to the buffer used in related art demosaicing methods) is used for reconstructing the color representation of the image (e.g., demosaicing the sampled color values). For example, according to various embodiments of the present disclosure, an apparatus and method for demosaicing the sampled color values may use only sampled color values in close proximity to a particular subpixel in order to calculate an estimated color value corresponding to the particular subpixel. According to various embodiments of the present disclosure, an apparatus and method for demosaicing the sampled color values may use only sampled color values immediately adjacent to a particular subpixel in order to calculate an estimated color value corresponding to the particular subpixel.

According to various embodiments of the present disclosure, color values may be calculated at subpixels for which a green color value is sampled of a particular pixel using the respective red color value and the blue color value sampled at the corresponding subpixels of the particular pixel. With reference to FIG. 2, various embodiments of the present disclosure may calculate a red color value and a blue color value at the subpixel denoted by G4 using the red color value sampled at the subpixel denoted by R1 and using the blue color value sampled at the subpixel denoted by B1. As illustrated in FIG. 2, the subpixel denoted by G4, the subpixel denoted by R1, and the subpixel denoted by B1 are within the same pixel.

According to various embodiments of the present disclosure, an apparatus and method for calculating color values at subpixels for which a green color value was sampled may calculate the color values according to a low frequency demosaic. According to various embodiments of the present disclosure, an apparatus and method for calculating color values at subpixels for which a green color value was sampled may calculate the color values according to a high frequency demosaic. According to various embodiments of the present disclosure, an apparatus and method for calculating color values at subpixels for which a green color value was sampled may calculate the color values according to a blend of a low frequency demosaic and a high frequency demosaic.

FIG. 3 illustrates green subpixels according to an embodiment of the present disclosure.

Referring to FIG. 3, a color value for a particular color may be calculated (e.g., estimated) at corresponding subpixels using an average of the color values for the particular color. According to various embodiments of the present disclosure, an apparatus and method for demosaicing sampled color values may blend solutions between a low frequency demosaic solution and a high frequency demosaic solution. For example, the reconstruction of the color representation of an image may be an average or blend between a low frequency demosaic solution and a high frequency solution.

Various embodiments of the present disclosure may operate under a few basic assumptions.

One assumption is that in natural images (e.g., images captured by a camera), the natural chrominance is low. In other words, in an actual image, chrominance in the world is low. There tends to be a low spatial frequency in the chrominance of a natural image. For example, there tends to be greater energy at lower spatial frequency in the chrominance. The chrominance in a natural image is best captured at lower frequencies.

Another assumption is that a human eye generally disregards chrominance values sampled at high spatial frequencies. In other words, a human may not be able to detect chrominance values at high spatial frequencies. As a result, the luminance values at high frequencies are more important to image processing than the chrominance values. In other words, the luminance values sampled at high frequencies are more important (e.g., to the human perception) than the chrominance values sampled at high frequencies.

According to various embodiments of the present disclosure, an apparatus and method for demosaicing sampled images attempts to capture the elements of the sampled values (e.g., color values, color information, and/or the like) at the high spatial frequencies. For example, an apparatus and method for demosaicing sampled images attempts to capture the energy (e.g., the luminance) at the high spatial frequencies.

The typical Bayer filter (e.g., an RBG) filter has two green photo detectors for each red detector or each blue detector. In other words, each pixel in a typical Bayer filter has two green photosites, one red photosite, and one blue photosite. As a result, an image detector has a greater density of green photosites relative to a density of red blue photosites and a density of blue photosites. Because of the relatively greater density of green photosites, the color characteristics sampled at green subpixels of a pixel may be more accurate than the color characteristics sampled at a red subpixel or the color characteristics sampled at a green subpixel. In other words, on an individual pixel basis, the greater sample set of measurements obtained through the green subpixels may result in the measurements obtained through the green subpixels of a pixel being more representative of a true image than the measurements obtained through the red subpixel or the measurements obtained through the blue subpixel.

According to various embodiments of the present disclosure, the apparatus and method for demosaicing sampled color values uses color values sampled at green pixels to analyze characteristics of the image at high frequencies in relation to the characteristics of the images at low frequencies. According to various embodiments of the present disclosure, the sampled green values are used to determine (e.g., detect) the high frequencies.

According to the related art, the high frequencies may be detected using a 3×3 frequency detection filter. In contrast, according to various embodiments of the present disclosure, the high frequencies may be detected using a 2×3 frequency detection filter as provided in Equation (1) below.

- 1 0 - 1 0 2 0 Equitation ( 1 )

According to various embodiments of the present disclosure, a modified green color channel may be generated. For example, an alpha channel may be generated using the green values. According to various embodiments of the present disclosure, the alpha channel may be determined according to Equation (2) below.

α = ( GREEN DATA ) * - 1 0 - 1 0 2 0 * G S GAIN Equitation ( 2 )

Referring to Equation (2), GSGAIN may correspond to a coefficient for sharpening the alpha channel. The GSGAIN may refer to a Green Sharpening Gain. The GSGAIN may be used to amplify the frequency response or to deemphasize the frequency response. The GREEN DATA may be 3×2 data that is filtered using the frequency detection filter to determine a frequency response.

Referring to FIG. 3, a set of sampled green color values 310 from the array of sampled green color values 305 corresponds to the GREEN DATA used to determine an alpha (α) value corresponding to a corresponding pixel by filtering the sampled green color values 305 through the frequency detection filter 315.

If the value of α at a particular pixel is 0, then the color field may be determined to be flat. In other words, if the value of α is 0 at a particular point, then the green values of the set of sampled green color values 310 are the same. Accordingly, a flat field of green values creates no response by the frequency detection filter 315.

If the value of α at a particular pixel is 1, then the color field may be determined to be non-flat (e.g., have an edge). In other words, if the value of α is 1 at a particular point, then the frequency detection filter 315 corresponds to an edge detector at which the frequency detection filter 315 detects an edge in the green color field.

According to various embodiments of the present disclosure, the frequency may be sampled by using two rows of sampled color values. Because the frequency is detected using two rows of sampled color values, the memory (e.g., the buffer) required to store the corresponding sampled color values may be reduced (e.g., relative to the memory requirements of the related art). According to various embodiments of the present disclosure, color values may be calculated (e.g., estimated) using information from a neighboring one row of color values. The color values may be calculated using the sampled color values from a single neighboring row of color values (e.g., rather than two neighboring row of color values as used according to the related art).

According to various embodiments of the present disclosure, the generated alpha (α) channel may be used as a basis for blending low frequency demosaic solutions with high frequency demosaic solutions. The alpha channel may be used to determine a ratio between the low frequency demosaic solution component and the high frequency demosaic solution component. According to various embodiments of the present disclosure, the alpha channel may be used to determine an extent of the high frequency demosaic solution used to determine (e.g., calculated) the color values at the respective subpixels. According to various embodiments of the present disclosure, the alpha channel may be used to determine an extent of the low frequency demosaic solution used to determine (e.g., calculated) the color values at the respective subpixels.

The blend of the low frequency demosaic solution with the high frequency demosaic solution may be determined according to Equation (3) below.


1=α+(1−α), where 0≦α≦1  Equitation (3)

According to various embodiments of the present disclosure, α may correspond to an extent to which the high frequency demosaic solution is used to determine color values at a respective subpixel. Conversely, 1−α may correspond to an extent to which the low frequency demosaic solution is used to determine color values at a respective subpixel. As discussed above, the alpha parameter (α) may be determined by the edge detector (e.g., the frequency detection filter 315).

FIG. 4 illustrates a method of determining color values at corresponding subpixels according to an embodiment of the present disclosure.

Referring to FIG. 4, a low frequency demosaic solution 310 is combined with a high frequency demosaic solution 350 to determine a color value for a particular color at a particular subpixel. As discussed above, the portion of the high frequency demosaic solution 350 used to determine color value for a particular color at a particular subpixel may be determined according to the alpha channel. The portion of the high frequency demosaic solution 350 used to determine color value may defined according to α. The portion of the low frequency demosaic solution 310 used to determine color value for a particular color at a particular subpixel may be determined according to the alpha channel. The portion of the low frequency demosaic solution 310 used to determine color value may defined according to 1−α.

According to various embodiments of the present disclosure, color values at a subpixel may be calculated according to Equation (4) below.


R′G′B′=α*(high frequency RGB value)+(1−α)*(low frequency RGB value)  Equitation (4)

As discussed above, a human eye generally disregards chrominance values sampled at high spatial frequencies, and as a result, at high spatial frequencies, the luminance is more important than the chromatic values. At high frequencies, the color values are changing very rapidly at the corresponding subpixels. In order to reduce the possibility of calculating an erroneous color value at a green subpixel for the high frequency demosaic solution, the green subpixel is substituted with a grey color value. For example, as illustrated in FIG. 4, at the green subpixel 471 and at the green subpixel 475, the corresponding red color value and blue color value are substituted with the corresponding sampled green color value. At the green subpixel 471, the red color value and the blue color value are set to the sampled green color value that was captured at the green subpixel 471. Similarly, at the green subpixel 475, the red color value and the blue color value are set to the sampled green color value that was captured at the green subpixel 475.

At low frequencies, the sampled color values are assumed to be accurate representations of the true image. Accordingly, with respect to the low frequency demosaic solution for the green subpixels, the red color value and the blue red color value are reconstructed using substitution of the corresponding red color value and the blue red color value with a neighboring sampled red color value and a neighboring sampled green color value. For example, at a green subpixel 431, a red color value is set to be equal to the sampled red color value sampled at a red subpixel 423, and a blue color value is set to be equal to the sampled blue color value sampled at a blue subpixel 429. The green color value at the green subpixel 431 corresponds to the sampled green color value at the green subpixel 431. Similarly, at a green subpixel 435, a red color value is set to be equal to the sampled red color value sampled at a red subpixel 427, a blue color value is set to be equal to the sampled blue color value sampled at a blue subpixel 433, and green color value corresponds to the sampled green color value at the green subpixel 435.

According to various embodiments of the present disclosure, a red color value and a blue color value at a green subpixel 421 may be set to be equal to the red color value and the blue color value substituted at the green subpixel 431. For example, the red color value is set to be equal to the sampled red color value sampled at the red subpixel 423, the blue color value is set to be equal to the sampled blue color value sampled at the blue subpixel 429, and the green color value corresponds to the sampled green color value at the green subpixel 421.

Similarly, at a green subpixel 425, a red color value and a blue color value at a green subpixel 421 may be set to be equal to the red color value and the blue color value substituted at the green subpixel 435. For example, the red color value is set to be equal to the sampled red color value sampled at the red subpixel 427, the blue color value is set to be equal to the sampled blue color value sampled at the blue subpixel 433, and the green color value corresponds to the sampled green color value at the green subpixel 425.

According to various embodiments of the present disclosure, a sampled color value is set as the estimated (e.g., calculated) color value at a neighboring subpixel for which the color value is not sampled because the likelihood that the true color values are materially different between neighboring subpixels is very remote. Such substitution of color values is an efficient color reconstruction method that avoids more complex interpolation or other numerical methods that require intensive memory and processing power.

According to various embodiments of the present disclosure, color values for a particular subpixel are calculated to be a blend between the color values of the subpixel according to the low frequency solution and the color values of the subpixel according to the high frequency solution.

According to various embodiments of the present disclosure, reconstructed color values at a green subpixel may be determined according to Equations (5) and (6).

{ R = α * G + ( 1 - α ) * R G = G B = α * G + ( 1 - α ) * B Equitation ( 5 ) { R = R + α * ( G - R ) G = G B = B + α * ( G - B ) Equitation ( 6 )

Referring to Equations (5) and (6), G corresponds to the sampled green value at the particular subpixel, R corresponds to the sampled red value at a red subpixel neighboring the particular green subpixel, and G corresponds to the sampled blue value at a blue subpixel neighboring the particular green subpixel. α may be calculated using, for example, Equation (2). According to various embodiments of the present disclosure, α may be calculated using another example to derive a blending ration for blending a high frequency demosaic solution with a low frequency demosaic solution. R′ corresponds to the reconstructed (e.g., estimated) red value at the particular green pixel, and B′ corresponds to the reconstructed (e.g., estimated) blue value at the particular green pixel.

After the color values (RGB color) has been reconstructed at the green subpixels, then the corresponding color values are respectively reconstructed at the red subpixels and the blue subpixels. Because of the respective lower density of the red subpixels and the blue subpixels in relation to the green subpixels, additional frequency detection on the red or blue color planes would require more line buffers. As a result, according to the related art, color reconstruction would require significant memory to reconstruct at least the red color pixels and the blue color pixel. However, according to various embodiments of the present disclosure, the color values (e.g., color information) at the red subpixels and the blue subpixels may be derived from available reconstructed and “repaired” color from neighboring green subpixels.

According to various embodiments of the present disclosure, after the color values have been calculated at the green subpixels, the color values at the green subpixels are used to reconstruct the color values at the neighboring red subpixel and the neighboring blue subpixel.

According to various embodiments of the present disclosure, the color values at the red subpixels and the blue subpixels may be determined for a low frequency demosaic solution and for a high frequency demosaic solution. Thereafter, the color values at the red subpixels for the low frequency demosaic solution may be blended with the color values at the red subpixels for the high frequency demosaic solution. Similarly, color values at the blue subpixels for the low frequency demosaic solution may be blended with the color values at the blue subpixels for the high frequency demosaic solution.

According to various embodiments of the present disclosure, the color values at the red subpixels and the blue subpixels may be determined for a low frequency demosaic solution and for a high frequency demosaic solution. Thereafter, the color values at the red subpixels for the low frequency demosaic solution may be blended with the color values at the red subpixels for the high frequency demosaic solution. Similarly, color values at the blue subpixels for the low frequency demosaic solution may be blended with the color values at the blue subpixels for the high frequency demosaic solution.

The color values at a red subpixel may be equal to an average of the color values at the neighboring green pixels. For example, the color values at a red subpixel may be the average of the color values at the horizontally neighboring green subpixels. The average of the color values at the horizontally neighboring green subpixel may be a weighted average of such color values.

According to various embodiments of the present disclosure, the color values at a red subpixel may be equal to an average of the blended color values at the neighboring green pixels. For example, the color values at the horizontally neighboring green subpixels may be alpha blended between the low frequency demosaic solution and the high frequency demosaic solution before the color values at the horizontally neighboring green subpixels are averaged.

With reference to FIG. 4, the color values at the red subpixel corresponding to red subpixel 423 of the low frequency demosaic solution may be derived using the color values at the green subpixel 421, the green subpixel 425, the green subpixel 461, and the green subpixel 465. The red color value at the red subpixel 423 may correspond to the sampled red color value at the red subpixel 423.

The green color value at the red subpixel 423 may be an average between (i) a blend of the green color value sampled at the green subpixel 421 and the green color value sampled at the green subpixel 461, and (ii) a blend of the green color value sampled at the green subpixel 425 and the green color value sampled at the green subpixel 465. Similarly, the blue color value may be an average between (i) a blend of the blue color value at the green subpixel 421 and the blue color value at the subpixel 461, and (ii) a blend of the blue color value at the green subpixel 425 and the blue color value at the subpixel 465.

According to various embodiments of the present disclosure, the color information resulting from the above color values at the red subpixel corresponding to red subpixel 423 of the low frequency demosaic solution may represent an estimated chrominance information for the particular subpixel. However, such color information may not necessarily be considered the brightness (e.g., luminance) information for the particular subpixel. Therefore, according to various embodiments of the present disclosure, the calculated color information (e.g., color values) may be normalized for brightness. For example, the average of the alpha blends of the color information may be normalized at step 487.

According to various embodiments of the present disclosure, the calculated information may be normalized according to an additive normalization. According to various embodiments of the present disclosure, the calculated information may be normalized according to a multiplicative normalization. The multiplicative normalization does not result in desaturation side-effects.

According to various embodiments of the present disclosure, for a particular red subpixel, the color values may be determined using an additive normalization according to Equation (7).

{ Ro = R Δ R = R - R avg Go = G avg + Δ R Bo = B avg + Δ R Equitation ( 7 )

Referring to Equation (7), Ro corresponds to the red color value calculated for the particular red subpixel, Go corresponds to the green color value calculated for the particular red subpixel, and Bo corresponds to the blue color value calculated for the particular red subpixel. R corresponds to the sampled red color value at the particular red subpixel. R′avg corresponds to an average between calculated red color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel. As an example, the calculated red color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel may be determined according to Equation (5) or (6). ΔR corresponds to a difference between (i) the sampled red color value at the particular red subpixel, and (ii) an average between calculated red color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel. G′avg corresponds to an average between calculated green color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel. As an example, the calculated green color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel may be determined according to Equation (5) or (6). B′avg corresponds to an average between calculated blue color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel. As an example, the calculated blue color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel may be determined according to Equation (5) or (6).

According to various embodiments of the present disclosure, for a particular blue subpixel, the color values may be determined using an additive normalization according to Equation (8).

{ Bo = B Δ B = B - B avg Go = G avg + Δ B Ro = R avg + Δ B Equitation ( 8 )

Referring to Equation (8), Bo corresponds to the blue color value calculated for the particular blue subpixel, Go corresponds to the green color value calculated for the particular blue subpixel, and Ro corresponds to the red color value calculated for the particular blue subpixel. B corresponds to the sampled blue color value at the particular blue subpixel. B′avg corresponds to an average between calculated blue color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel. As an example, the calculated blue color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel may be determined according to Equation (5) or (6). ΔB corresponds to a difference between (i) the sampled blue color value at the particular blue subpixel, and (ii) an average between calculated blue color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel. G′avg corresponds to an average between calculated green color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel. As an example, the calculated green color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel may be determined according to Equation (5) or (6). R′avg corresponds to an average between calculated red color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel. As an example, the calculated red color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel may be determined according to Equation (5) or (6).

According to various embodiments of the present disclosure, for a particular red subpixel, the color values may be determined using a multiplicative normalization according to Equation (9).

{ Ro = R Go = G avg + R / R avg Bo = B avg + R / R avg Equitation ( 9 )

Referring to Equation (9), Ro corresponds to the red color value calculated for the particular red subpixel, Go corresponds to the green color value calculated for the particular red subpixel, and Bo corresponds to the blue color value calculated for the particular red subpixel. R corresponds to the sampled red color value at the particular red subpixel. R′avg corresponds to an average between calculated red color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel. As an example, the calculated red color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel may be determined according to Equation (5) or (6). G′avg corresponds to an average between calculated green color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel. As an example, the calculated green color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel may be determined according to Equation (5) or (6). B′avg corresponds to an average between calculated blue color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel. As an example, the calculated blue color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular red subpixel may be determined according to Equation (5) or (6).

According to various embodiments of the present disclosure, for a particular blue subpixel, the color values may be determined using a multiplicative normalization according to Equation (10).

{ Bo = B Go = G avg + B / B avg Ro = R avg + B / B avg Equitation ( 10 )

Referring to Equation (10), Bo corresponds to the blue color value calculated for the particular blue subpixel, Go corresponds to the green color value calculated for the particular blue subpixel, and Ro corresponds to the red color value calculated for the particular blue subpixel. B corresponds to the sampled blue color value at the particular blue subpixel. B′avg corresponds to an average between calculated blue color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel. As an example, the calculated blue color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel may be determined according to Equation (5) or (6). G′avg corresponds to an average between calculated green color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel. As an example, the calculated green color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel may be determined according to Equation (5) or (6). R′avg corresponds to an average between calculated red color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel. As an example, the calculated red color values at the green subpixels that neighbor (e.g., horizontally neighbor) the particular blue subpixel may be determined according to Equation (5) or (6).

Referring back to FIG. 4, operations 481-487 illustrate a method for reconstructing color information (e.g., color values) at the blue subpixel corresponding to the blue subpixel 433 of the low frequency demosaic solution.

At operation 481, the color values determined at the green subpixel 431 of the low frequency demosaic solution are combined with the color values determined at the green subpixel 471 of the high frequency demosaic solution. According to various embodiments of the present disclosure, the color values determined at the green subpixel 431 of the low frequency demosaic solution are combined with the color values determined at the green subpixel 471 of the high frequency demosaic solution according to an alpha blend.

At operation 483, the color values determined at the green subpixel 435 of the low frequency demosaic solution are combined with the color values determined at the green subpixel 475 of the high frequency demosaic solution. According to various embodiments of the present disclosure, the color values determined at the green subpixel 435 of the low frequency demosaic solution are combined with the color values determined at the green subpixel 475 of the high frequency demosaic solution according to an alpha blend.

At operation 485, the color values determined at operation 481 and the color values determined at operation 483 are averaged.

At operation 487, the average color value for the subpixel corresponding to the blue subpixel 433 of the low frequency solution determined at operation 485 is normalized. According to various embodiments of the present disclosure, the average color value for the subpixel corresponding to the blue subpixel 433 of the low frequency solution may be normalized according to an additive normalization (e.g., using Equations (7) and (8)). According to various embodiments of the present disclosure, the average color value for the subpixel corresponding to the blue subpixel 433 of the low frequency solution may be normalized according to a multiplicative normalization (e.g., using Equations (9) and (10)).

FIG. 5 illustrates a method of determining color values at corresponding subpixels according to an embodiment of the present disclosure.

Referring to FIG. 5, at operation 505, an electronic device captures an image. The electronic device may include an image detectors that has a plurality of photo detectors may be used to capture the image. Each of the photo detectors may sample a single color. According to various embodiments of the present disclosure, the color information from the plurality of photo detectors may be stored. According to various embodiments of the present disclosure, the color information constituting an intended image that may require reconstruction of the color representation thereof may be received/stored.

At operation 510, the electronic device may calculate an alpha (a) parameter at the subpixels for which a green color value is sampled (e.g., the green subpixels). According to various embodiments of the present disclosure, the electronic device may generate an alpha channel using the green color values sampled at the green subpixels. The electronic device may calculate the alpha parameter using Equation (2), or the like.

At operation 515, the electronic device may determine color values at the green subpixels. The electronic device may determine the color values at the green subpixels using Equations (5), (6), or the like. According to various embodiments of the present disclosure, electronic device may determine the color the color values at the green subpixels across the entire green color plane (e.g., across all green subpixels). According to various embodiments of the present disclosure, the electronic device may determine the color values at the green subpixels across two rows of subpixels.

At operation 520, the electronic device may proceed to the next subpixel (e.g., for which color values are required to be determined).

At operation 525, the electronic device determines whether a current subpixel is a red subpixel or a blue subpixel.

If the electronic device determines that the current subpixel is a red subpixel at operation 522, then the electronic device may proceed to operation 530 at which the electronic device may determine color values at the current subpixel (e.g., at the red subpixel). Thereafter, the electronic device may proceed to operation 540.

In contrast, if the electronic device determines that the current subpixel is a blue subpixel at operation 522, then the electronic device may proceed to operation 535 at which the electronic device may determine color values at the current subpixel (e.g., at the blue subpixel). Thereafter, the electronic device may proceed to operation 540.

At operation 540, the electronic device may determine whether color values for all subpixels have been calculated.

If the electronic device determines that the color values for all the subpixels have not been calculated at operation 540, then the electronic device may proceed to operation 520.

In contrast, if the electronic device determines that the color values for all the subpixels have been calculated at operation 540, then the electronic device may proceed to operation 545 at which the electronic device may store the color information (e.g., the color values) for the respective subpixels. The electronic device may store the image.

Thereafter, at operation 550, the electronic device may render the image. The electronic device may render the image in a preview frame (e.g., an instance in which a fast or lightweight demosaicing processing is preferred). The electronic device may perform further image processing before rendering the image.

FIG. 6 illustrates a block diagram schematically illustrating a configuration of an electronic device according to an embodiment of the present disclosure.

Referring to FIG. 6, an electronic device may include a control unit 610, a storage unit 620, a camera unit 630, an image processing unit 640, a display unit 650, an input unit 650, and a communication unit 670.

According to various embodiments of the present disclosure, the electronic device comprises at least one control unit 610. The at least one control unit 610 may be configured to operatively control the electronic device. For example, the at least one control unit 610 may control operation of the various components or units included in the electronic device. The at least one control unit 610 may transmit a signal to the various components included in the electronic device and control a signal flow between internal blocks of the electronic device. The at least one control unit 610 may be or otherwise include at least one processor. The at least one control unit 610 may include an Application Processor (AP), and/or the like.

The storage unit 620 may be configured to store user data, and the like, as well a program which performs operating functions according to various embodiments of the present disclosure. The storage unit 620 may include a non-transitory computer-readable storage medium. As an example, the storage unit 620 may store a program for controlling general operation of an electronic device, an Operating System (OS) which boots the electronic device, and application program for performing other optional functions such as a camera function, a sound replay function, an image or video replay function, a signal strength measurement function, a route generation function, image processing, and the like. Further, the storage unit 620 may store user data generated according to a user of the electronic device, such as, for example, a text message, a game file, a music file, a movie file, and the like. According to various embodiments of the present disclosure, the storage unit 620 may store an application or a plurality of applications that individually or in combination operate a camera unit (not shown) to capture (e.g., contemporaneously) one or more images, and/or the like. According to various embodiments of the present disclosure, the storage unit 620 may store an application or a plurality of applications that individually or in combination operate the image processing unit 640 or the control unit 610 to determine an alpha parameter at green subpixels, to determine (e.g., reconstruct) color values at green subpixels, to determine (e.g., reconstruct) color values at red subpixels, to determine (e.g., reconstruct) color values at blue subpixels, to store color values for one or more subpixels, to render an image (e.g., using reconstructed color values), and/or the like. The storage unit 620 may store an application or a plurality of applications that individually or in combination operate the control unit 610 and the communication unit 670 to communicate with a counterpart electronic device to receive color information (e.g., color values) for an image from the counterpart electronic device, and/or the like. The storage unit 620 may store an application or a plurality of applications that individually or in combination operate the display unit 650 to display a graphical user interface, an image, a video, and/or the like. The storage unit 620 may store an application or a plurality of applications that individually or in combination operate the display unit 650 to display a preview image using reconstructed color information using reconstruction (e.g., demosaicing) methods according to various embodiments of the present disclosure. The preview image may be displayed in a viewfinder while the camera unit 630 is operated. The preview image may display a view of that may be captured upon command to capture an image.

The camera unit 630 may capture an image. The camera unit 630 may include an image detector (not shown) that includes a plurality of photo detectors. Each of the plurality of photo detectors may correspond to a photosite. The camera unit may capture a preview image as the camera unit 630 is operated. The preview image may be displayed on the display unit 650 while the camera unit 630 is operated (e.g., before the camera unit 630 is instructed to capture the image).

The image processing unit 640 may be configured to process image data, images, and/or the like. The image processing unit 640 may include a Sub Pixel Rendering (SPR) unit (not shown), a demosaicing unit (not shown), and/or the like. In the alternative or in addition, the image processing unit 640 may be configured to perform demosaicing of image data and/or images, SPR, and/or the like. The image processing unit 640 may be configured to determine an alpha parameter at green subpixels, to determine (e.g., reconstruct) color values at green subpixels, to determine (e.g., reconstruct) color values at red subpixels, to determine (e.g., reconstruct) color values at blue subpixels, to store color values for one or more subpixels, to render an image (e.g., using reconstructed color values), and/or the like.

The display unit 650 displays information inputted by user or information to be provided to user as well as various menus of the electronic device. For example, the display unit 650 may provide various screens according to a user of the electronic device, such as an idle screen, a message writing screen, a calling screen, a route planning screen, and the like. According to various embodiments of the present disclosure, the display unit 650 may display an interface which the user may manipulate or otherwise enter inputs via a touch screen to enter selection of the function relating to the signal strength of the electronic device. The display unit 650 can be formed as a Liquid Crystal Display (LCD), an Organic Light Emitting Diode (OLED), an Active Matrix Organic Light Emitting Diode (AMOLED), and the like. However, various embodiments of the present disclosure are not limited to these examples. Further, the display unit 650 can perform the function of the input unit 660 if the display unit 650 is formed as a touch screen.

The input unit 660 may include input keys and function keys for receiving user input. For example, the input unit 660 may include input keys and function keys for receiving an input of numbers or various sets of letter information, setting various functions, and controlling functions of the electronic device. For example, the input unit 660 may include a calling key for requesting a voice call, a video call request key for requesting a video call, a termination key for requesting termination of a voice call or a video call, a volume key for adjusting output volume of an audio signal, a direction key, and the like. In particular, according to various embodiments of the present disclosure, the input unit 660 may transmit to the at least one control unit 610 signals related to the operation of a camera unit (not shown), to selection of an image, to selection of a viewpoint, and/or the like. Such an input unit 660 may be formed by one or a combination of input means such as a touch pad, a touchscreen, a button-type key pad, a joystick, a wheel key, and the like.

The communication unit 670 may be configured for communicating with other electronic devices and/or networks. According to various embodiments of the present disclosure, the communication unit 670 may be configured to communicate using various communication protocols and various communication transceivers. For example, the communication unit 670 may be configured to communicate via Bluetooth technology, NFC technology, WiFi technology, 2G technology, 3G technology, LTE technology, or another wireless technology, and/or the like.

It will be appreciated that various embodiments of the present disclosure according to the claims and description in the specification can be realized in the form of hardware, software or a combination of hardware and software.

Any such software may be stored in a non-transitory computer readable storage medium. The non-transitory computer readable storage medium stores one or more programs (software modules), the one or more programs comprising instructions, which when executed by one or more processors in an electronic device, cause the electronic device to perform a method of the present disclosure.

Any such software may be stored in the form of volatile or non-volatile storage such as, for example, a storage device like a Read Only Memory (ROM), whether erasable or rewritable or not, or in the form of memory such as, for example, Random Access Memory (RAM), memory chips, device or integrated circuits or on an optically or magnetically readable medium such as, for example, a Compact Disk (CD), Digital Versatile Disc (DVD), magnetic disk or magnetic tape or the like. It will be appreciated that the storage devices and storage media are various embodiments of non-transitory machine-readable storage that are suitable for storing a program or programs comprising instructions that, when executed, implement various embodiments of the present disclosure. Accordingly, various embodiments provide a program comprising code for implementing apparatus or a method as claimed in any one of the claims of this specification and a non-transitory machine-readable storage storing such a program.

While the disclosure has been shown and described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents.

Claims

1. A method for demosaicing sampled color values, the method comprising:

sampling color information respectively at a plurality of subpixels using a plurality of photo detectors;
generating a low frequency color reconstruction solution for a first subset of the plurality of subpixels corresponding to subpixels for which a first color is sampled;
generating a high frequency color reconstruction solution for the first subset of the plurality of subpixels corresponding to subpixels for which the first color is sampled;
determining color values for the first subset of the plurality of pixels using a combination of the low frequency color reconstruction solution and the high frequency color reconstruction solution; and
determining, using the first color values for the first subset of the plurality of pixels, color values for a second subset of the plurality of subpixels corresponding to subpixels for which the first color is not sampled.

2. The method of claim 1, further comprising:

determining, using the first color values for the first subset of the plurality of pixels, color values for a third subset of the plurality of subpixels corresponding to subpixels for which the first color is not sampled.

3. The method of claim 1, wherein the first color is green.

4. The method of claim 1, further comprising:

determining an alpha parameter using a frequency detection filter.

5. The method of claim 4, wherein the determining of the color values for the first subset of the plurality of pixels using a combination of the low frequency color reconstruction solution and the high frequency color reconstruction solution comprises:

blending the color values according to the low frequency color reconstruction solution with the color values according to the high frequency color reconstruction solution according to a ratio based at least in part on the alpha parameter.

6. The method of claim 4, wherein the determining of the color values for a second subset of the plurality of subpixels corresponding to subpixels for which the first color is not sampled, using the first color values for the first subset of the plurality of pixels comprises:

determining the color values for a particular subpixel of the second subset of the plurality of subpixels using respective color values of subpixels of the first subset of the plurality of subpixels that neighbor the particular subpixel.

7. The method of claim 6, wherein the determining of the color values for a particular subpixel of the second subset of the plurality of subpixels using respective color values of subpixels of the first subset of the plurality of subpixels that neighbor the particular subpixel comprises:

calculating an average of color values of a second color for subpixels of the first subset of the plurality of subpixels that horizontally neighbor the particular subpixel.

8. The method of claim 7, wherein the determining of the color values for a particular subpixel of the second subset of the plurality of subpixels using respective color values of subpixels of the first subset of the plurality of subpixels that neighbor the particular subpixel further comprises:

calculating an average of color values of a third color for subpixels of the first subset of the plurality of subpixels that horizontally neighbor the particular subpixel.

9. The method of claim 8, further comprising:

normalizing a color value of one or more of the first color, the second color, and the third color, for the particular subpixel.

10. The method of claim 9, wherein the normalizing of the color value comprises:

additively normalizing the color value.

11. The method of claim 9, wherein the normalizing of the color value comprises:

multiplicatively normalizing the color value.

12. The method of claim 9, further comprising:

rendering an image on a preview screen of an electronic device, using the normalized color value.

13. A non-transitory computer-readable storage medium storing instructions that, when executed, cause at least one processor to perform the method of claim 1.

14. An apparatus for demosaicing sampled color values, the apparatus comprising:

a storage unit; and
at least one processor configured to sample color information respectively at a plurality of subpixels using a plurality of photo detectors, to generate a low frequency color reconstruction solution for a first subset of the plurality of subpixels corresponding to subpixels for which a first color is sampled, to generate a high frequency color reconstruction solution for the first subset of the plurality of subpixels corresponding to subpixels for which the first color is sampled, to determine color values for the first subset of the plurality of pixels using a combination of the low frequency color reconstruction solution and the high frequency color reconstruction solution, and to determine, using the first color values for the first subset of the plurality of pixels, color values for a second subset of the plurality of subpixels corresponding to subpixels for which the first color is not sampled.

15. The apparatus of claim 14, wherein the at least one processor is further configured to determine, using the first color values for the first subset of the plurality of pixels, color values for a third subset of the plurality of subpixels corresponding to subpixels for which the first color is not sampled.

16. The apparatus of claim 14, wherein the first color is green.

17. The apparatus of claim 14, wherein the at least one processor is further configured to determine an alpha parameter using a frequency detection filter.

18. The apparatus of claim 17, wherein the at least one processor is further configured to blend the color values according to the low frequency color reconstruction solution with the color values according to the high frequency color reconstruction solution according to a ratio based at least in part on the alpha parameter.

19. The apparatus of claim 17, wherein the at least one processor is further configured to determine the color values for a particular subpixel of the second subset of the plurality of subpixels using respective color values of subpixels of the first subset of the plurality of subpixels that neighbor the particular subpixel.

20. The apparatus of claim 19, wherein the at least one processor is further configured to calculate an average of color values of a second color for subpixels of the first subset of the plurality of subpixels that horizontally neighbor the particular subpixel.

21. The apparatus of claim 20, wherein the at least one processor is further configured to calculate an average of color values of a third color for subpixels of the first subset of the plurality of subpixels that horizontally neighbor the particular subpixel.

22. The apparatus of claim 21, wherein the at least one processor is further configured to normalize a color value of one or more of the first color, the second color, and the third color, for the particular subpixel.

23. The apparatus of claim 21, wherein the at least one processor is further configured to normalize a color value of one or more of the first color, the second color, and the third color, for the particular subpixel using an additive normalization.

24. The apparatus of claim 21, wherein the at least one processor is further configured to normalize a color value of one or more of the first color, the second color, and the third color, for the particular subpixel using an multiplicative normalization.

25. The apparatus of claim 21, further comprising:

a display unit,
wherein the at least one processor is further configured to render an image on a preview screen of the display unit, using the normalized color value.
Patent History
Publication number: 20150363916
Type: Application
Filed: Jun 13, 2014
Publication Date: Dec 17, 2015
Inventor: Anthony BOTZAS (San Jose, CA)
Application Number: 14/304,253
Classifications
International Classification: G06T 5/00 (20060101); G06K 9/46 (20060101); G06T 7/40 (20060101);