Multi-sensor imaging color correction
Comparing RGB and IR data for color correction through a multi-image sensor system solves the problem of inaccurate color signals in RGBIR image capture devices, enabling efficient IR detection and accurate color reproduction under low-light conditions.
Patent Information
- Application Number
- CN202280089349.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-01-25
- Filing Date
- 2022-11-28
- Publication Date
- 2024-08-30
AI Technical Summary
RGBIR image capture devices produce inaccurate color signals without IR cut filters, resulting in reduced color reproduction quality, especially in low-light conditions where IR light detection capabilities benefit but color reproduction is inaccurate.
By using multiple image sensors, including one to capture RGB images and one to capture IR information, the color data from both is compared and color correction is performed to generate accurate color images. The system can operate without an IR cut filter and utilizes a reference sensor to capture an RGB image that filters out IR light for correction.
The combination of IR sensitivity and accurate color reproduction in an RGBIR image capture device is achieved, improving the color accuracy and reproduction quality of images, especially in low-light conditions.
Smart Images

Figure CN118575484A
Abstract
Description
Technical Field
[0001] The present application relates to image processing. More specifically, aspects of the present application relate to systems and techniques for correcting color in an image based on color information from multiple image sensors. Background Art
[0002] Many devices and systems allow for capturing a scene by generating an image (or frame) and / or video data (including multiple frames) of the scene. For example, a camera or a device including a camera (or multiple cameras) can capture a sequence of frames of a scene (e.g., a video of the scene). In some cases, the sequence of frames can be processed for performing one or more functions, can be output for display, can be output for processing and / or consumption by other devices, and for other purposes.
[0003] Some devices are configured to capture color images by detecting color (e.g., visible spectrum) light. In some cases, the color image may include red, green, and blue (RGB) color components. In some cases, an IR cutoff filter may be positioned, for example, between an image sensor and a lens of a color image capture device to block infrared (IR) light from being detected by an image sensor included in a color (e.g., RGB) image capture device. In some cases, an RGB image sensor may include an R photodiode, a G photodiode, and a B photodiode.
[0004] Some devices may be configured to detect both colored light and IR light, and are referred to herein as RGB plus IR image capture devices or RGBIR image capture devices. For example, an image sensor included in an RGBIR image capture device may detect RGB and IR light components, and an image generated by the RGBIR image capture device may include RGB and IR signal values. In some cases, the IR cutoff filter used in the RGB image capture device may be omitted, allowing IR light to reach the RGBIR image sensor. In some cases, the RGBIR image capture device may include an R photodiode, a G photodiode, a B photodiode, and an IR photodiode. In some cases, the RGB photodiode of the RGBIR image capture device may be sensitive to IR light, and therefore the color signal value generated by the RGB photodiode of the RGBIR image capture device may be inaccurate. In some examples, the RGB image capture device may also omit the IR cutoff filter, allowing IR light to reach the RGB image sensor, resulting in inaccurate colors of the image generated by the RGB image capture device. Summary of the invention
[0005] In some examples, systems and techniques are described for processing images to correct color based on data from multiple image sensors.
[0006] According to at least one example, a method for processing an image is provided. The method includes: obtaining a first color image including a first one or more pixels from a first image sensor; obtaining a second color image including a second one or more pixels from a second image sensor, the second color image including infrared (IR) information from the second image sensor; determining a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels based on a comparison associated with the first one or more pixels and the second one or more pixels; and generating a color-corrected image by, at least in part, transforming the second color image including the IR information into a color-corrected image based on the determined transformation.
[0007] In another example, a device for processing an image is provided, the device including a memory (e.g., configured to store data, such as virtual content data, one or more images, etc.) and one or more processors (e.g., implemented in a circuit) coupled to the memory. The one or more processors are configured and can: obtain a first color image including a first one or more pixels from a first image sensor; obtain a second color image including a second one or more pixels from a second image sensor, the second color image including IR information from the second image sensor; determine a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels based on a comparison associated with the first one or more pixels and the second one or more pixels; and generate a color-corrected image by, at least in part, transforming the second color image including the IR information into a color-corrected image based on the determined transformation.
[0008] In another example, a non-transitory computer-readable medium having instructions stored thereon is provided, which instructions, when executed by one or more processors, cause the one or more processors to: obtain a first color image including first one or more pixels from a first image sensor; obtain a second color image including second one or more pixels from a second image sensor, the second color image including IR information from the second image sensor; determine a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels based on a comparison associated with the first one or more pixels and the second one or more pixels; and generate a color-corrected image at least in part by transforming the second color image including the IR information into a color-corrected image based on the determined transformation.
[0009] In another example, an apparatus for processing an image is provided. The apparatus includes: means for obtaining a first color image including a first one or more pixels from a first image sensor; means for obtaining a second color image including a second one or more pixels from a second image sensor, the second color image including IR information from the second image sensor; means for determining a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels based on a comparison associated with the first one or more pixels and the second one or more pixels; means for generating a color-corrected image by, at least in part, transforming the second color image including the IR information into a color-corrected image based on the determined transformation.
[0010] In some aspects, a field of view associated with a first one or more pixels at least partially overlaps a field of view associated with a second one or more pixels.
[0011] In some aspects, the first image sensor is associated with a first optical axis and the second image sensor is associated with a second optical axis different from the first optical axis.
[0012] In some aspects, the first image sensor has a first resolution and the second image sensor has a second resolution different from the first resolution.
[0013] In some aspects, the first image sensor includes a single pixel.
[0014] In some aspects, the first image sensor includes a plurality of pixels.
[0015] In some aspects, the IR cut filter is disposed between the lens of the first image sensor and the first image sensor.
[0016] In some aspects, the methods, apparatus, and computer-readable media described above also include: determining a first green statistical measure for a green component of a first one or more pixels and a second green statistical measure for a green component of a second one or more pixels; determining a first red statistical measure for a red component of a first one or more pixels and a second red statistical measure for a red component of a second one or more pixels; determining a first blue statistical measure for a blue component of a first one or more pixels and a second blue statistical measure for a blue component of a second one or more pixels; determining a green color correction based on the numerical correspondence between the first green statistical measure and the second green statistical measure; determining a red color correction based on the numerical correspondence between the first red statistical measure and the second red statistical measure; determining a blue color correction based on the numerical correspondence between the first blue statistical measure and the second blue statistical measure.
[0017] In some aspects, the methods, apparatus, and computer-readable media described above also include: generating a color-corrected image includes applying a red color correction to a red component of each pixel in a second one or more pixels, applying a green color correction to a green component of each pixel in the second one or more pixels, and applying a blue color correction to a blue component of each pixel in the second one or more pixels.
[0018] In some aspects, the transform between the color of the first one or more pixels and the color of the second one or more pixels includes a color correction matrix.
[0019] In some aspects, the methods, apparatus, and computer-readable media described above further include generating the color-corrected image comprising applying the determined transformation to the second one or more pixels to produce the first color-corrected pixels.
[0020] In some aspects, the methods, apparatus, and computer-readable media described above also include: dividing one or more of the first color image and the second color image into a plurality of segments; determining a first segment transform associated with a first subset of the associated second one or more pixels; and determining a second segment transform associated with a second subset of the second one or more pixels, wherein the second subset of the second one or more pixels differs from the first subset by at least one pixel.
[0021] In some aspects, the methods, apparatus, and computer-readable media described above further include determining a global transform for generating a color-corrected image based on the first zone transform and the second zone transform.
[0022] In some aspects, the methods, apparatus, and computer-readable media described above further comprise generating a color-corrected image at least in part by transforming a first subset of a second one or more pixels by a first zone transform and transforming a second subset of the second one or more pixels by a second zone transform.
[0023] In some aspects, the first one or more pixels do not include IR information.
[0024] In some aspects, one or more of the devices described above are or are part of or include a mobile device (e.g., a mobile phone or so-called "smart phone" or other mobile device), a wearable device, an extended reality device (e.g., a virtual reality (VR) device, an augmented reality (AR) device, or a mixed reality (MR) device), a personal computer, a laptop computer, a server computer, a vehicle (e.g., a computing device of a vehicle), or other device. In some aspects, a device includes one or more cameras for capturing one or more images. In some aspects, the device includes a display for displaying one or more images, notifications, and / or other displayable data. In some aspects, the device may include one or more sensors. In some cases, one or more sensors may be used to determine the position and / or posture of the device, the state of the device, and / or for other purposes.
[0025] This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used in isolation to determine the scope of the claimed subject matter. The subject matter should be understood by reference to appropriate portions of the entire specification of this patent, any or all drawings, and each claim.
[0026] The foregoing and other features and embodiments will become more apparent upon reference to the following description, claims and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Exemplary embodiments of the present application are described in detail below with reference to the following drawings:
[0028] Figure 1A is a block diagram illustrating the architecture of an image capture and processing device according to some examples;
[0029] Figure 1B is a block diagram illustrating additional architecture of an image capture and processing device according to some examples;
[0030] Figure 2A and Figure 2B is a diagram illustrating an example red, green, and blue (RGB) color filter array according to some examples;
[0031] Figure 2C and Figure 2D is a diagram illustrating an example RGB plus infrared (RGBIR) filter array according to some examples;
[0032] Figure 3A is an example image of a scene captured by an RGB image sensor according to some examples;
[0033] Figure 3Bis captured by an RGBIR image sensor according to some examples Figure 3A Example images of the same scene captured in ;
[0034] Figure 4 is a diagram illustrating components of an image color correction system according to some examples;
[0035] Figure 5 is a diagram illustrating components of an image adjustment engine according to some examples;
[0036] 6A to 6F are images illustrating the operation of an image color correction system according to some examples;
[0037] Figure 7 is a flow chart illustrating an example of a process for processing one or more frames according to some examples;
[0038] Figure 8 is a block diagram illustrating an example of a deep learning network according to some examples;
[0039] Fig. 9 is a block diagram illustrating an example of a convolutional neural network according to some examples;
[0040] Fig.10 is a diagram illustrating an example of a computing system for implementing certain aspects described herein. DETAILED DESCRIPTION
[0041] Some aspects and embodiments of the present disclosure are provided below. Some of these aspects and embodiments can be applied independently, and some of them can be applied in combination, which is obvious to those skilled in the art. In the following description, specific details are set forth for explanation purposes in order to provide a thorough understanding of each embodiment of the application. However, it will be apparent that each embodiment can be put into practice without these specific details. Each drawing and description are not intended to be restrictive.
[0042] The following description provides only exemplary embodiments and is not intended to limit the scope, applicability or configuration of the present disclosure. On the contrary, the subsequent description of the exemplary embodiments will provide an enabling description for implementing the exemplary embodiments to those skilled in the art. It should be understood that various changes may be made to the functions and arrangements of the elements without departing from the scope of the present application as set forth in the appended claims.
[0043] Many image capture devices are configured to capture different portions of the electromagnetic spectrum (e.g., visible, infrared (IR), ultraviolet (UV), etc.). Devices that capture some or all of the visible spectrum are also referred to as color image capture devices. Examples of color image capture devices include image capture devices that capture images that include a red (R) component, a green (G) component, and a blue (B) component (collectively referred to as RGB) for each pixel, image capture devices that capture images that include luminance, blue chrominance, and red chrominance (YUV, YCbCr, Y'CbCr, etc.) components for each pixel, and the like. For example, an RGB image capture device utilizes a color filter to separate incident light into light components of different colors. In one example, a Bayer color filter can filter the incident light into RGB light components, and an RGB photodiode can capture the corresponding RGB light to generate an RGB signal value for each pixel in a sensor of the image capture device.
[0044] In some cases, the color filter used in the RGB image capture device can be partially transparent to IR light, which can exist in both a sunlit environment and an artificial lighting environment (e.g., from an incandescent bulb). In some aspects, the IR light reaching the RGB photodiode can skew the color output produced by the RGB image capture device. In some cases, the IR light can affect each of the R, G, and B signal values differently. For example, a higher percentage of IR light can pass through the R filter compared to the G filter. In some cases, the effect of IR light can also be different in different areas of the image sensor of the RGB imaging device. For example, in some cases, more IR light can pass through the RGB filter near the edge of the image sensor compared to the amount of IR light passing through the RGB filter near the center of the image sensor. In such cases, the resulting color output of the RGB image sensor can be accurate to different degrees in different areas of the captured RGB image. In some cases, an IR filter (also referred to as an IR cutoff filter) can be placed in front of the color image sensor to filter out IR light and prevent IR light from reaching the color image sensor.
[0045] A device that captures some or all of the IR spectrum may also be referred to herein as an IR image capture device. In some cases, the IR image capture device may include at least a portion of an image sensor that is sensitive to IR light and does not include an IR cutoff filter that filters IR light from at least the IR sensitive portion of the image sensor. In some cases, the IR cutoff filter may be implemented as a global element that either completely covers the image sensor or is absent.
[0046] Some devices may be configured to capture both color signal information and IR signal information, and are referred to herein as RGB and IR image capture devices or RGBIR image capture devices. For example, an image sensor included in an RGBIR image capture device may detect RGB and IR light components, and an image generated by the RGBIR image capture device may include RGB and IR signal components. In some implementations, the RGBIR image capture device may not include an IR cutoff filter in front of the RGBIR image sensor and thus produce inaccurate colors under some lighting conditions. In some implementations, the RGBIR image capture device may include an RGB image sensor and an RGBIR image sensor with similar or identical resolutions. In some examples, the RGB image capture device may include an IR cutoff filter in front of the RGB image sensor (e.g., between a lens and the image sensor). In some cases, the RGBIR image capture device may switch between an RGB image sensor and an RGBIR image sensor according to lighting conditions, and / or separate incident light (e.g., using a prism) so that the appropriate portion of the spectrum reaches each image sensor. In some aspects, an RGBIR image capture device (e.g., a security camera) may include a robotic arm or other mechanism that moves the IR cutoff filter away from the image sensor when IR light is present (e.g., in low light conditions when using an IR illumination source) and moves the IR cutoff filter in front of the image sensor under good lighting or ambient light conditions. In some cases, the image sensor (e.g., the main image sensor) included in the RGBIR image capture device having a mechanism to move the IR cutoff filter may be an RGB image sensor (e.g., including an R photodiode, a G photodiode, and a B photodiode). In some cases, because IR light is allowed to reach the RGB image sensor, the resulting color image produced by the RGBIR sensor may not be accurate.
[0047] Each of the above-mentioned RGBIR image capture device solutions can increase the weight, size, cost and / or power consumption of the RGBIR image capture device and / or produce images with poor color reproduction quality. Therefore, there is a need for systems and techniques for accurately and efficiently producing color images using RGBIR sensors.
[0048] There is a need for systems and techniques for accurately and more efficiently obtaining accurate color information from RGBIR image capture devices. For example, many applications may benefit from the ability to detect IR light (e.g., capturing images in low-light conditions), but may suffer from inaccurate color reproduction. By correcting the color of images produced by an RGBIR image capture device, the system and techniques may allow the RGBIR image capture device to provide both IR sensitivity and accurate color reproduction.
[0049] Described herein are systems, apparatus, processes (also referred to as methods), and computer-readable media (collectively, "systems and techniques") for producing accurate color images based on images captured by multiple image capture devices. For example, the systems and techniques can be used with RGBIR image sensors to produce accurate color information under lighting conditions that include IR light (e.g., sunlight, incandescent bulb lighting, etc.). The systems and techniques allow an RGBIR image capture device to capture an RGBIR image using an RGBIR sensor (or a subset of RGBIR pixels within a sensor) without an IR cutoff filter. The systems and techniques can also allow an RGBIR image capture device to capture an RGB image with IR light filtered out (e.g., by an IR cutoff filter) using a reference sensor (or a subset of RGB reference pixels within a sensor). The RGBIR sensor and the reference sensor have at least partially overlapping fields of view (e.g., pixels of the primary sensor and pixels of the reference sensor can capture at least partially overlapping scenes). Although the examples described herein will be discussed from the perspective of an RGBIR sensor and an RGB reference sensor, it should be understood that a single sensor with different pixel areas can be used to capture an RGBIR image and an IR-filtered RGB color image without departing from the scope of the present disclosure. Furthermore, although many of the examples described herein describe color correction from the perspective of RGB color representation, the systems and techniques of the present disclosure can be used with any other color representation, such as luminance, blue chrominance, red chrominance (YCbCr or Y'CbCr) images; and / or any color representation. In some cases, the systems and techniques herein can also be used to correct monochrome images that are affected by undesirable lighting (e.g., IR).
[0050] Various aspects of the technology described herein will be discussed below with reference to the various figures. Figure 1A 1 is a block diagram illustrating the architecture of image capture and processing system 100. Image capture and processing system 100 includes various components for capturing and processing images of a scene (e.g., images of scene 110). Image capture and processing system 100 can capture independent images (or photos) and / or can capture a video including multiple images (or video frames) in a specific sequence. Lens 115 of image capture and processing system 100 faces scene 110 and receives light from scene 110. In some cases, lens 115 and image sensor 130 can be associated with an optical axis. In an illustrative example, a photosensitive area (e.g., a photodiode) of image sensor 130 and lens 115 can both be centered on the optical axis. Lens 115 bends incident light from scene 110 toward image sensor 130. Light received by lens 115 passes through an aperture. In some cases, the aperture (e.g., the aperture size) is controlled by one or more control mechanisms 120 and received by image sensor 130. In some cases, the aperture can have a fixed size.
[0051] The one or more control mechanisms 120 may control exposure, focus, and / or zoom based on information from the image sensor 130 and / or based on information from the image processor 150. The one or more control mechanisms 120 may include a plurality of mechanisms and components; for example, the control mechanisms 120 may include one or more exposure control mechanisms 125A, one or more focus control mechanisms 125B, and / or one or more zoom control mechanisms 125C. The one or more control mechanisms 120 may also include additional control mechanisms other than those illustrated, such as control mechanisms to control analog gain, flash, HDR, depth of field, and / or other image capture attributes.
[0052] The focus control mechanism 125B of the control mechanism 120 may obtain a focus setting. In some examples, the focus control mechanism 125B stores the focus setting in a memory register. Based on the focus setting, the focus control mechanism 125B may adjust the position of the lens 115 relative to the position of the image sensor 130. For example, based on the focus setting, the focus control mechanism 125B may move the lens 115 closer to the image sensor 130 or further away from the image sensor 130 by actuating a motor or servo mechanism (or other lens mechanism), thereby adjusting the focus. In some cases, an additional lens may be included in the image capture and processing system 100, such as one or more micro lenses above each photodiode of the image sensor 130, each of which bends the light received from the lens 115 toward the corresponding photodiode before it reaches the photodiode. The focus setting may be determined via contrast detection autofocus (CDAF), phase detection autofocus (PDAF), hybrid autofocus (HAF), or some combination thereof. The focus setting may be determined using the control mechanism 120, the image sensor 130, and / or the image processor 150. The focus setting may be referred to as an image capture setting and / or an image processing setting. In some cases, lens 115 may be fixed relative to the image sensor and focus control mechanism 125B may be omitted without departing from the scope of the present disclosure.
[0053] The exposure control mechanism 125A of the control mechanism 120 can obtain an exposure setting. In some cases, the exposure control mechanism 125A stores the exposure setting in a memory register. Based on the exposure setting, the exposure control mechanism 125A can control the size of the aperture (e.g., aperture size or f / stop), the duration of time that the aperture is open (e.g., exposure time or shutter speed), the duration of time that the sensor collects light (e.g., exposure time or electronic shutter speed), the sensitivity of the image sensor 130 (e.g., ISO speed or film speed), the analog gain applied by the image sensor 130, or any combination thereof. The exposure setting can be referred to as an image capture setting and / or an image processing setting.
[0054] The zoom control mechanism 125C of the control mechanism 120 can obtain the zoom setting. In some examples, the zoom control mechanism 125C stores the zoom setting in a memory register. Based on the zoom setting, the zoom control mechanism 125C can control the focal length of the assembly of lens elements (lens assembly) including the lens 115 and one or more additional lenses. For example, the zoom control mechanism 125C can control the focal length of the lens assembly by actuating one or more motors or servo mechanisms (or other lens mechanisms) to move one or more lenses relative to each other. The zoom setting can be referred to as an image capture setting and / or an image processing setting. In some examples, the lens assembly can include a parfocal zoom lens or a variable focal length zoom lens. In some examples, the lens assembly can include a focusing lens (in some cases, the focusing lens can be lens 115), which first receives light from the scene 110, wherein the light then passes through an afocal zoom system between the focusing lens (e.g., lens 115) and the image sensor 130 before the light reaches the image sensor 130. In some cases, the afocal zoom system may include two positive (e.g., converging, convex) lenses with equal or similar focal lengths (e.g., within a threshold difference of each other) with a negative (e.g., diverging, concave) lens between them. In some cases, zoom control mechanism 125C moves one or more of the lenses in the afocal zoom system, such as the negative lens and one or both of the positive lens. In some cases, zoom control mechanism 125C may control the zoom setting by capturing images from an image sensor in a plurality of image sensors (e.g., including image sensor 130) at a zoom corresponding to the zoom setting. For example, image processing system 100 may include a wide-angle image sensor with a relatively low zoom and a telephoto image sensor with a larger zoom. In some cases, based on the selected zoom setting, zoom control mechanism 125C may capture images from the corresponding sensors.
[0055] The image sensor 130 includes one or more arrays of photodiodes or other photosensitive elements. Each photodiode measures the amount of light that ultimately corresponds to a specific pixel in the image generated by the image sensor 130. In some cases, different photodiodes may be covered by different filters. In some cases, different photodiodes may be covered in a color filter and thus may measure light that matches the color of the filter covering the photodiode. Various color filter arrays may be used, including a Bayer color filter array, a quad color filter array (also referred to as a quad Bayer color filter array or QCFA), and / or any other color filter array. For example, a Bayer color filter includes a red filter, a blue filter, and a green filter, wherein each pixel of the image is generated based on red light data from at least one photodiode covered in a red filter, blue light data from at least one photodiode covered in a blue filter, and green light data from at least one photodiode covered in a green filter.
[0056] Figure 2A An example of a Bayer color filter array 200 is shown in FIG. Figure 2A As illustrated, the Bayer color filter array 200 includes a repeating pattern of R, B, and G color filters. Figure 2B An example quad color filter array (QCFA) 220 is illustrated. As shown, QCFA 220 includes a 2×2 (or "quad") pattern of color filters, including a 2×2 pattern of red (R) color filters, a pair of 2×2 patterns of green (G) color filters, and a 2×2 pattern of blue (B) color filters. Figure 2A The pattern of the Bayer color filter array 200 shown, Figure 2B The illustrated pattern of QCFA 220 , any other color filter, or any combination thereof may be repeated for the entire array of photodiodes of a given image sensor 130 .
[0057] Back to Figure 1A, other types of color filters may use yellow, magenta, and / or cyan (also known as "emerald") filters instead of or in addition to red, blue, and / or green filters. In some cases, some photodiodes may be configured to measure infrared (IR) light. In some implementations, the photodiodes that measure IR light may not be covered by any filters, thereby allowing the IR photodiodes to measure both visible light (e.g., RGB or other colors) and IR light. In some examples, the IR photodiodes may be covered by IR filters, allowing IR light to pass through and blocking light from other parts of the spectrum (e.g., visible light, color). Some image sensors (e.g., image sensor 130) may have no filters at all (e.g., color, IR, or any other part of the spectrum), and may instead use different photodiodes (in some cases vertically stacked) throughout the pixel array.
[0058] Figure 2C An example RGBIR filter 240 is illustrated, which incorporates an IR photodiode as Figure 2A The Bayer color filter array 200 and Figure 2B The complement of the R, G, and B colors shown in QCFA 220. Similarly, Figure 2D Illustrated with Figure 2B Another example of a QCFA 220 similar to RGBIR filter 260 replaces one photodiode of each RGB quad of QCFA 220 to operate as an IR photodiode. In some cases, in addition to or in lieu of the use of filters, different photodiodes throughout the pixel array may have different spectral sensitivity curves, thereby responding to different wavelengths of light. A monochrome image sensor may lack filters, and therefore lack color depth.
[0059] Back to Figure 1AIn some cases, the image sensor 130 may alternatively or additionally include an opaque and / or reflective mask that blocks light from reaching certain photodiodes or portions of certain photodiodes at certain times and / or from certain angles. In some cases, the opaque and / or reflective mask can be used for phase detection autofocus (PDAF). In some cases, the opaque and / or reflective mask can be used to block portions of the electromagnetic spectrum from reaching the photodiodes of the image sensor (e.g., IR cutoff filter, UV cutoff filter, bandpass filter, low pass filter, high pass filter, etc.). The image sensor 130 may also include an analog gain amplifier for amplifying the analog signal output by the photodiode and / or an analog-to-digital converter (ADC) for converting the analog signal output by the photodiode (and / or the analog signal amplified by the analog gain amplifier) into a digital signal. In some cases, certain components or functions discussed with respect to one or more control mechanisms 120 may be alternatively or additionally included in the image sensor 130. Image sensor 130 may be a charge coupled device (CCD) sensor, an electron multiplying CCD (EMCCD) sensor, an active pixel sensor (APS), a complementary metal oxide semiconductor (CMOS), an N-type metal oxide semiconductor (NMOS), a hybrid CCD / CMOS sensor (e.g., sCMOS), or some other combination thereof.
[0060] Image processor 150 may include one or more processors, such as one or more image signal processors (ISPs) (including ISP 154), one or more host processors (including host processor 152), and / or Fig.10 The host processor 152 may be a digital signal processor (DSP) and / or other type of processor discussed above for the computing system 1000. In some implementations, the image processor 150 is a single integrated circuit or chip (e.g., referred to as a system on a chip or SoC) that includes the host processor 152 and the ISP 154. In some cases, the chip may also include one or more input / output ports (e.g., input / output (I / O) port 156), a central processing unit (CPU), a graphics processing unit (GPU), a broadband modem (e.g., 3G, 4G or LTE, 5G, etc.), memory, connectivity components (e.g., Bluetooth TM, global positioning system (GPS), etc.), any combination thereof, and / or other components. The I / O port 156 may include any suitable input / output port or interface according to one or more protocols or specifications, such as an Inter-Integrated Circuit 2 (I2C) interface, an Inter-Integrated Circuit 3 (I3C) interface, a Serial Peripheral Interface (SPI) interface, a serial general purpose input / output (GPIO) interface, a Mobile Industry Processor Interface (MIPI) (such as a MIPI CSI-2 physical (PHY) layer port or interface, an Advanced High-Performance Bus (AHB) bus, any combination thereof, and / or other input / output ports. In an illustrative example, the host processor 152 may communicate with the image sensor 130 using an I2C port, and the ISP 154 may communicate with the image sensor 130 using a MIPI port.
[0061] The image processor 150 may perform a number of tasks, such as demosaicing, color space conversion, image frame downsampling, pixel interpolation, automatic exposure (AE) control, automatic gain control (AGC), CDAF, PDAF, automatic white balance, merging image frames to form an HDR image, image recognition, object recognition, feature recognition, receiving input, managing output, managing memory, or some combination thereof. The image processor 150 may store image frames and / or processed images in a random access memory (RAM) 140 / 1025, a read-only memory (ROM) 145 / 1020, a cache, a memory unit, another storage device, or some combination thereof.
[0062] Various input / output (I / O) devices 160 may be connected to the image processor 150. The I / O devices 160 may include a display screen, a keyboard, a keypad, a touch screen, a touchpad, a touch-sensitive surface, a printer, any other output device 1035, any other input device 1045, or some combination thereof. In some cases, subtitles may be entered into the image processing device 105B through a physical keyboard or keypad of the I / O device 160, or through a virtual keyboard or keypad of a touch screen of the I / O device 160. The I / O 160 may include one or more ports, jacks, or other connectors that enable wired connections between the image capture and processing system 100 and one or more peripheral devices, and the image capture and processing system 100 may receive data from the one or more peripheral devices and / or send data to the one or more peripheral devices through the wired connections. The I / O 160 may include one or more wireless transceivers that enable wireless connections between the image capture and processing system 100 and one or more peripheral devices, and the image capture and processing system 100 may receive data from the one or more peripheral devices and / or send data to the one or more peripheral devices through the wireless connections. Peripheral devices may include any of the types of I / O devices 160 discussed previously, and may themselves be considered I / O devices 160 once they are coupled to a port, jack, wireless transceiver, or other wired and / or wireless connector.
[0063] In some cases, the image capture and processing system 100 may be a single device. In some cases, the image capture and processing system 100 may be two or more separate devices, including an image capture device 105A (e.g., a camera) and an image processing device 105B (e.g., a computing device coupled to the camera). In some implementations, the image capture device 105A and the image processing device 105B may be coupled together, for example, via one or more wires, cables, or other electrical connectors, and / or wirelessly coupled together via one or more wireless transceivers. In some implementations, the image capture device 105A and the image processing device 105B may be disconnected from each other.
[0064] like Figure 1A As shown, the vertical dashed line will Figure 1AThe image capture and processing system 100 is divided into two parts, representing an image capture device 105A and an image processing device 105B. The image capture device 105A includes a lens 115, a control mechanism 120, and an image sensor 130. The image processing device 105B includes an image processor 150 (including an ISP 154 and a host processor 152), a RAM 140, a ROM 145, and an I / O 160. In some cases, some components illustrated in the image capture device 105A (such as the ISP 154 and / or the host processor 152) may be included in the image capture device 105A. The second image sensor
[0065] Figure 1B Examples include Figure 1B Another example of an image capture and processing system 190 that includes an image processing device 105B and an image capture device 105C. In the illustrated example, the image capture device 105C includes the image processing device 105B and the image capture device 105C described above with respect to Figure 1A The image sensor 130 and the control mechanism 120 described above, as well as the second image sensor 180 and the control mechanism 170. The control mechanism 170 may be similar to Figure 1A The exposure control mechanism 175A may be similar to the control mechanism 120 and perform similar functions. Figure 1A The focus control mechanism 175B may be similar to the exposure control mechanism 125A and perform a similar function thereto. Figure 1A The focus control mechanism 125B of FIG. 175B may be similar to the focus control mechanism 125B of FIG. 175B and perform similar functions thereto. The zoom control mechanism 175C may be similar to the zoom control mechanism 125C and perform similar functions thereto.
[0066] In some cases, the first image sensor 130 and the second image sensor 180 of the image capture device 105C and the corresponding lenses 115, 165 can have at least partially overlapping fields of view. As described above, the image sensor 130 and the lens 115 can be associated with an optical axis, which is also referred to herein as a first optical axis. In some examples, the lens 165 and the second image sensor can be associated with a second optical axis. In an illustrative example, the photosensitive area (e.g., a photodiode) of the second image sensor 180 and the lens 165 can both be centered on the second optical axis. Other alignments between the image sensor 130 and the lens 115 and the second image sensor 180 and the lens 165 can be used without departing from the scope of the present disclosure. In some cases, the first optical axis and the second optical axis can be physically close together (e.g., multiple cameras of an electronic device). In the illustrated example, the lens 165 can be a lens of a different type than the lens 115. For example, as Figure 1BAs illustrated, lens 115 can have a wide field of view 111 (e.g., from a wide angle lens). In some cases, lens 165 can have a narrower field of view 161 (e.g., from a telephoto lens) and a higher magnification or zoom factor than lens 115 (as illustrated by the relatively large size of person 163). In some cases, one of image sensor 130 and second image sensor 180 can be an RGB image sensor, and the other of image sensor 130 and second image sensor 180 can be an RGBIR sensor. In some cases, color information in an image captured by the RGB image sensor can be used to correct color in an image captured by the RGBIR image sensor.
[0067] The image capture and processing system 100 and / or 190 may include an electronic device, such as a mobile or fixed telephone handset (e.g., a smart phone, a cellular phone, etc.), a desktop computer, a laptop or notebook computer, a tablet computer, a set-top box, a television, a camera, a display device, a digital media player, a video game console, a video streaming device, an Internet Protocol (IP) camera, or any other suitable electronic device. In some examples, the image capture and processing system 100 and / or 190 may include one or more wireless transceivers for wireless communication, such as cellular network communication, 802.11 wi-fi communication, wireless local area network (WLAN) communication, or some combination thereof. In some specific implementations, the image capture device 105A and the image processing device 105B may be different devices. For example, the image capture device 105A and / or the image capture device 105C may include a camera device, and the image processing device 105B may include a computing device, such as a mobile phone, a desktop computer, or other computing devices.
[0068] Although image capture and processing system 100 and image capture and processing system 190 are shown as including certain components, one of ordinary skill will appreciate that image capture and processing system 100 and / or image capture and processing system 190 may include components related to the image capture and processing system 100 and / or the image capture and processing system 190. Figure 1A and Figure 1BThere are more components than shown. The components of the image capture and processing system 100 and / or the image capture and processing system 190 may include software, hardware, or one or more combinations of software and hardware. For example, in some implementations, the components of the image capture and processing system 100 and / or the image capture and processing system 190 may include electronic circuits or other electronic hardware, and / or may be implemented using electronic circuits or other electronic hardware, which may include one or more programmable electronic circuits (e.g., microprocessors, GPUs, DSPs, CPUs, and / or other suitable electronic circuits); and / or these components may include computer software, firmware, or any combination thereof, and / or may be implemented using computer software, firmware, or any combination thereof to perform the various operations described herein. The software and / or firmware may include one or more instructions stored on a computer-readable storage medium and executable by one or more processors of an electronic device implementing the image capture and processing system 100 and / or the image capture and processing system 190.
[0069] Figure 3A and Figure 3B are images that provide illustrative examples of the differences in images captured by an RGB image sensor and an RGBIR image sensor in the presence of IR illumination. Figure 3A is an example RGB image 300 of a scene 302 captured by an RGB image sensor. For example, the RGB image 300 may have been captured using a Figure 2A Bayer color filter array 200 or Figure 2B In some cases, the R, G, and B filters of the Bayer color filter array, QCFA, or other color filter pattern may not completely block IR light from reaching the R, G, and B photodiodes of the RGB image sensor. In some examples, each of the R, G, and B photodiodes of the RGB image sensor may be sensitive to IR light. In some implementations, when IR light is captured by the camera (e.g., in sunlight), then a portion of the signal generated by each of the R, G, and B photodiodes of the RGB image sensor may also include a portion of the signal caused by the IR light, which may cause the resulting image to include an inaccurate representation of the colors in the captured scene. In some cases, an IR cutoff filter may be placed between the scene and the RGB image sensor (e.g., Figure 1A 1 and image sensor 130). In some aspects, the IR cut filter can allow colored light to pass through while blocking IR light from passing through. In some examples, IR light can be prevented from reaching the R, G, and B pixels. In some cases, as a result of the IR spectral components being blocked by the IR cut filter, an image produced by an image sensor that is blocked by the IR cut sensor can accurately capture color information from the scene.
[0070] Figure 3B Illustrated in Figure 3A 304 of a scene 302 captured in an RGB image 300 of FIG. 304. In some cases, the RGBIR image 304 may be captured by an image sensor (e.g., in an RGBIR image capture device) that does not include an IR cutoff filter placed in front of a photodiode array. Therefore, IR light incident on the RGB photodiodes (e.g., the photodiodes behind the RGB color filter) may also mistakenly detect a portion of the IR light as R, G, and / or B light. In some cases, the IR light may increase the total signal level of all RGB photodiodes. In some cases, the amount by which the IR light raises the signal level of the RGB photodiodes may not be uniform. For example, the R, G, and B photodiodes may each have a different sensitivity to IR light. Therefore, the amount of increase in the signal level caused by the IR light may also be different between the R, G, and B photodiodes. This unequal effect on RGB photodiodes of different colors may result in distortion of the true colors represented in the scene. In some aspects, in the RGBIR image, any difference in RGB image values (e.g., a representation of the color of the image) caused by IR light not being blocked by the IR cut filter will result in a skewed color representation compared to an image captured by an image sensor blocked by the IR cut filter. In addition, because the amount of IR light incident on each photodiode is unknown, the color correction and / or white balance correction processing function of the image capture device may not be able to compensate for the unknown amount of IR light to produce the correct color output. In an illustrative example, the light haze 312 may be the result of the RGB photodiode detecting the IR light. In some cases, the light haze 312 may appear white, or the light haze 312 may appear as any other color. In another illustrative example, the IR light may cause a color shift (not shown) on the RGBIR image 304. For example, the color shift may appear as a red, green, or blue hue in the RGBIR image 304. In some cases, if the R photodiode is more sensitive to light (e.g., because the R filter allows more IR to pass through than the G and B filters), the light haze 312 may have a red appearance. In addition to or in lieu of the differences in the effects of the different colors of the RGB photodiodes, the effects of IR can also be spatially non-uniform. In some cases, the amount of IR light sensed by the RGB photodiodes may be greater at the edges of the image sensor than at the center of the image sensor. The amount of light sensed by the individual RGB photodiodes can determine the amount of color skew for each individual RGB photodiode.
[0071] As above relative to Figure 1BAs described, in some cases, an image capture system (e.g., image capture and processing system 100 and / or image capture and processing system 190) may include multiple image sensors that share a field of view that at least partially overlaps. In some cases, at least one of the multiple image sensors may include an IR cutoff filter (e.g., an RGB sensor) for blocking IR light. In some cases, it may be assumed that the colors captured by the RGB sensor are accurate. As discussed in more detail herein, in some cases, the color information captured by the RGB sensor may be used to correct the colors of other image sensors included in the multiple image sensors.
[0072] Figure 4 An example of an image color correction system 400 is illustrated. The image color correction system 400 includes various components for processing an image and properly performing color correction. As shown, the components of the image color correction system 400 include an image correction engine 402 and a color correction engine 404.
[0073] Image color correction system 400 may include or be part of a multi-imager system. For example, image color correction system 400 may include Figure 1A The image capture and processing system 100 and / or Figure 1B 400. In other implementations, the image color correction system 400 may be part of a mobile or fixed telephone handset (e.g., a smart phone, a cellular phone, etc.), a server computer (e.g., in communication with a vehicle computing system), a desktop computer, a laptop or notebook computer, a tablet computer, a set-top box, a television, a camera, a display device, a digital media player, a video streaming device, or any other suitable electronic device. In some examples, the image color correction system 400 may include one or more wireless transceivers (or separate wireless receivers and transmitters) for wireless communications (such as cellular network communications, 802.11 Wi-Fi communications, wireless local area network (WLAN) communications, Bluetooth or other short-range communications, any combination thereof, and / or other communications). In some implementations, components of the image color correction system 400 (e.g., the image correction engine 402 and the color correction engine 404) may be part of the same computing device. In some implementations, components of the image color correction system 400 may be part of two or more separate computing devices. In some cases, the image color correction system 400 may be implemented as Fig.10 A portion of computing system 1000 is shown.
[0074] Although image color correction system 400 is shown as including certain components, one of ordinary skill will appreciate that image color correction system 400 may include more than Figure 4In some cases, additional components of image color correction system 400 may include software, hardware, or one or more combinations of software and hardware. For example, in some cases, image color correction system 400 may include one or more other sensors (e.g., one or more inertial measurement units (IMUs), radars, light detection and ranging (LIDAR) sensors, audio sensors, etc.), one or more display devices, one or more other processing engines, one or more other hardware components, and / or Figure 4 One or more other software and / or hardware components not shown in the figure. In some specific implementations, the additional components of the image color correction system 400 may include and / or be implemented using electronic circuits or other electronic hardware, which may include one or more programmable electronic circuits (e.g., digital signal processors (DSPs), microprocessors, microcontrollers, graphics processing units (GPUs), central processing units (CPUs), any combination thereof, and / or other suitable electronic circuits); and / or these additional components may include and / or be implemented using computer software, firmware, or any combination thereof to perform the various operations described herein. The software and / or firmware may include one or more instructions stored on a computer-readable storage medium and executable by one or more processors of an electronic device implementing the image color correction system 400.
[0075] The image correction engine 402 may be used to prepare the first input image 406 and the second input image 408 for color correction by the color correction engine 404. For example, the image adjustment engine may be used to align the first input image and the second input image, perform resolution upscaling and / or downscaling, and / or perform any other adjustments before color correction of the first input image 406 based on the second input image 408. Figure 5 One illustrative example of adjustments that may be performed by image correction engine 402 is discussed in more detail.
[0076] Figure 5 4 is a diagram illustrating example components and operations of the image correction engine 402. Figure 5 As shown, the image rectification engine 402 includes a homography calculation engine 548 and a region of interest (ROI) calculation engine 549. In some cases, the first input image 406 and the second input image 408 may have different resolutions. For example, the first input image 406 (e.g., Fig. 6A The RGBIR image 310 in FIG. 4 may have a larger image size than the second input image 408 (eg, Fig. 6A605 in the RGB image 605). In some cases, the first input image 406 and the second input image 408 may have different resolutions. For example, one of the first input image 406 and the second input image 408 may have a higher resolution, while the other of the first input image 406 and the second input image 408 may have a lower resolution. In some cases, before aligning the first input image 406 and the second input image 408, if the first input image 406 and the second input image 408 do not share a common resolution, the image correction engine 402 may downsample the higher resolution image to a lower resolution or may upsample the lower resolution image to match the higher resolution. Any suitable downsampling or upsampling technique may be used, such as a linear interpolation technique. In some cases, the first input image 406 and the second input image 408 may have a common resolution. For the purposes of the subsequent description, the first input image 406 and the second input image 408 are considered to have a common resolution. For example, Figure 6B The RGBIR image 310 may correspond to the first input image 406, and Figure 6B The RGB image 615 may correspond to the second input image 408 .
[0077] The homography calculation engine 548 may perform operations 542, 544, and 546. For example, at operation 542, the homography calculation engine 548 performs feature extraction from two input images including the first input image 406 and the second input image 408. Feature extraction may be performed using one or more feature detection and / or recognition algorithms to extract certain different features from the input images 406 and 408. The extracted features may be used as reference points by which the input images 406 and 408 are aligned. In an illustrative example, if the input images 406 and 408 include images of a table, the extracted features may include the four corners of the table. The feature points on the four corners of the table in the first input image 406 may be aligned with the feature points on the four corners of the table in the second input image 408.
[0078] In some implementations, the feature detection and / or recognition algorithm for operation 542 may include and / or incorporate an image detection and / or recognition algorithm, a feature detection and / or recognition algorithm, an edge detection algorithm, a boundary tracking function, an object detection and / or recognition algorithm, a face detection and / or recognition algorithm, or some combination thereof. Feature detection is a technique for detecting (or locating) features of an object from an image or video frame. For example, feature detection may identify several edges and corners in an area of a scene. In some implementations, one or more computer vision-based feature extraction techniques may be used, such as using a histogram of oriented gradients (HOG), speeded up robust features (SURF), local binary patterns (LBP), Haar wavelets, color histograms, any combination thereof, and / or other computer vision techniques. In some implementations, the feature detection and / or recognition algorithm may be based on a machine learning model trained to extract features from an image. For example, the machine learning model can be a neural network (NN), such as a convolutional neural network (CNN), a time delay neural network (TDNN), a deep feedforward neural network (DFFNN), a recurrent neural network (RNN), an autoencoder (AE), a variational AE (VAE), a denoising AE (DAE), a sparse AE (SAE), a Markov chain (MC), a perceptron, or some combination thereof. The machine learning model can be trained using supervised learning techniques, unsupervised learning techniques, semi-supervised learning techniques, any combination thereof, a generative adversarial network (GAN) training technique, and / or other machine learning training techniques.
[0079] like Figure 5 As shown, four corresponding detected features (in Figure 5 406 and 408). At operation 544, the homography calculation engine 548 calculates the homography matrix. For example, the homography calculation engine 548 can determine the homography transformation represented as a transformation matrix (e.g., a 3×3 homography matrix 545) between the planes of the two input images 406 and 408. Figure 5 A 3×3 homography matrix 545 is shown in FIG. 5 as an illustrative example. In other examples, other homography matrix sizes may be used.
[0080] At operation 546, one of the input images ( Figure 4 The first input image 406 or the second input image 408) is distorted. For example, using the homography matrix 545 (or transformation), the features of the first input image 406 and the features of the second input image 408 can be aligned with each other. Figure 5, after applying the homography-based alignment, the four dots or points shown above the input images 406 and 408 may overlap each other. In the illustrated example, each pixel of the first input image 406 is scaled and rotated to align with the second input image 408. Figure 5 The example shown illustrates scaling and rotating the first input image 406 using the homography matrix 545 so that the coordinates of the feature point change from a position of (x2, y2) (representing (abscissa, ordinate)) to a position of (x1, y1). It should be understood that either of the two input images may be scaled and rotated to align with the other of the two input images without departing from the scope of the present disclosure.
[0081] In some cases, because the image content of one of the input images 406 or 408 is distorted (to align the points of the input images 406 and 408), the image boundaries of the input images 406 and 408 may not align after rotation. In some cases, as described above, the input images 406 and 408 may also have different aspect ratios (e.g., wide angle versus telephoto). In some implementations, the ROI calculation engine 549 may cut or crop (referred to as image cropping) the overlapping image content, and may use the overlapping portion as a new output image, provided to the output image. Figure 4 The color correction engine 404 is used for processing.
[0082] In one illustrative example, Figure 6B An RGBIR image 310 (eg, Figure 4 The first input image 406) and the RGB image 615 (eg, Figure 4 The example overlap region 622 of the second input image 408 of FIG. 4 is obtained by registering the first input image 406 and the second input image 408 with each other (e.g., by Figure 5 Operation 542 of ), computing a homography matrix and warping one of the first input image 406 and the second input image 408 and warping one of these images (e.g., by Figure 5 In some cases, as described above, the first input image 406 and the second input image 408 may be cropped to use the overlapping portions for color correction. Figure 6C In the example shown in the example, by clipping Fig. 6A The overlapping area 622 of the RGBIR image 310 is used to generate a cropped RGBIR image 625.
[0083] Back to Figure 5In some implementations, the cropped image from the ROI calculation engine 549 can be resized to a size that matches the resolution of the original input images 406, 408. For example, if both input images 406, 408 originally have an ultra-high definition (UHD) resolution (e.g., 3840 pixels by 2160 pixels), the cropped image (one or both of which may have had pixels removed by image cropping) can be scaled back to the UHD resolution. In some implementations, the cropped image can be resized to the original input image size.
[0084] Reference again Figure 4 , the color correction engine 404 may utilize the second input image 408 (eg, Figure 6B 406). In some cases, the color correction engine 404 may use a single color correction technique to correct the first input image 406 based on the second input image 408. In some cases, the color correction engine 404 may apply a global color correction to the first input image 406 (e.g., Fig. 6A In some implementations, the first input image 406 can be captured by a primary image sensor (e.g., an RGBIR sensor) of an image capture device. In some examples, the color correction engine 404 can apply a global color correction to pixels of a cropped first input image (e.g., cropped RGBIR image 630) of the first input image 406. In some cases, the color correction engine 404 can apply a global color correction to pixels of a cropped first input image (e.g., cropped RGBIR image 630) of the first input image 406. Fig. 6A The color correction engine 404 may be configured to dynamically switch between different color correction techniques if the illumination associated with the first input image 406 and the second input image 408 changes between illumination that includes IR light and illumination that does not include IR light.
[0085] In a first illustrative example color correction technique, the color correction engine 404 may perform color correction across all pixels in an image captured by a reference image sensor (e.g., Figure 4 The statistical measure (eg, mean) of each color channel is calculated for each pixel of the second input image 408 (eg, G channel mean G ref,ave , R channel average value R ref,ave and the average value of channel B ref,ave). Similarly, the color correction engine 404 can span the image captured by the primary image sensor (e.g., Figure 4 The statistical measure (eg, average) of each color channel is calculated for all pixels in the first input image 406 (eg, G channel average G main,ave , R channel average value R main,ave and the average value of channel B main,ave ). In such specific implementations, the color correction engine 404 may determine a correction ratio for each color (e.g., RGB), such as the following example correction ratios of G as shown in formula (1A), R as shown in formula (1B), and B as shown in formula (1c):
[0086]
[0087] In some implementations, an image captured by a primary sensor (e.g., Figure 4 The RGB value of each pixel of the first input image 406) is multiplied by the corresponding correction ratio to generate a corrected image. For example, the R value of each pixel in the first image can be multiplied by R corr , the B value of each pixel in the first input image 406 can be multiplied by B corr , and the G value of each pixel in the first input image 406 can be multiplied by G corr . In some cases, the reference sensor may be an auxiliary sensor having a lower resolution than the main image sensor that is covered by an IR cutoff filter. In one illustrative example, the reference sensor may include a single pixel with an RGB photodiode that measures a single RGB value from light captured from a portion of the same scene as the main sensor. In another illustrative example, the reference sensor may include a 2×2 pixel array with RGB photodiodes, each pixel corresponding approximately to a quadrant of the main sensor. In some cases, the portion of the same scene captured by the reference sensor may include the entire same scene or a subset of the same scene. In some cases, the RGB values generated by the single-pixel reference image sensor may be used as the average value shown in formulas (1A) to (1C) above. The foregoing illustrative examples describe determining a ratio for color correction based on the RGB values from the reference image sensor. However, without departing from the scope of the present disclosure, any numerical correspondence (e.g., a percentage value, ratio, proportion, function, relationship, etc.) may be used to correct color.
[0088] In some examples, the first input image 406 and the second input image 408 may be divided into segments (eg, Fig.6D and / or Fig. 6EThe numerical correspondence between the RGB values of the first input image 406 and the RGBIR values of the second input image 408 may be determined in each segment, and correction may be applied to each individual segment based on the determined numerical correspondence.
[0089] In a second illustrative example, the systems and techniques can determine a color correction matrix (CCM) based on a second input image 408 (e.g., an image captured by a reference image sensor) and a first input image 406 (e.g., an image captured by a primary image sensor). For example, a 3×4 CCM can produce a corrected RGB value for each pixel in a corrected image by multiplying the CCM matrix by a vector containing the RGB and IR components of each pixel of the RGBIR image. In such cases, the IR channel of the IR image can contribute to the final RGB value of the pixel of the corrected image. The following formula (2) illustrates an example of multiplying a 3×4 CCM
[0090]
[0091] where a ij are coefficients of a 3×4 CCM, where i represents a color component in a corrected image (e.g., output image __), and j represents a color component in an RGBIR image (e.g., color-corrected output image 410). The following formula (3) illustrates the determination of the corrected RGB pixel value [R corr R corr B corr ] T , where R corr , G corr , B corr For one example pixel from an RGBIR image
[0092]
[0093] In some cases, the coefficients of the 3×4 CCM may be determined by dividing the first input image 406 and the second input image 408 into segments, determining the color relationship between the RGB values of the first input image 406 and the RGBIR values of the second input image 408 in each segment, and optimizing the coefficients of the 3×4 CCM based on a combination of the color relationships of all segments. One illustrative example technique for optimizing the CCM coefficients is least squares optimization.
[0094] Other image correction techniques may also be used to perform color correction, such as using a three-dimensional lookup table (3D LUT). In one illustrative example, a 3D lookup table may include each possible RGB value captured by an RGBIR image sensor and the corresponding color-corrected RGB color value. In another illustrative example, a similar lookup table may be used only for chrominance values (e.g., Cb, Cr for a YCbCr image) to allow the use of a two-dimensional lookup table that includes a correspondence of corrected chrominance values for each possible chrominance value produced by the RGBIR image sensor.
[0095] Fig.6D 635 (e.g., Figure 4 408). Similarly, Fig.6D 3. An RGBIR image 310 (eg, Figure 4 In some cases, segments 620 and 640 may represent subsets of pixels. Fig.6D As shown in the example of , each segment 620 may have a corresponding segment 640 that covers a corresponding portion of the captured scene. Fig.6D Not shown, but in some cases, the segments used to determine the CCM coefficients may overlap. Fig. 6E The adjusted RGB image 645 (eg, Figure 4 ) and shows segment 620 overlaid on the adjusted RGB image 645. Fig. 6E Also illustrated is a cropped RGBIR image 660 (eg, as shown by Figure 4 Image correction engine 402 cropping).
[0096] In a third illustrative example, a 3×3 CCM may perform three linear combinations of the RGB components of a first input image 406 (e.g., an RGBIR image) to produce corrected R, G, and B values for each pixel. In such an example, the IR channel of the first input image 406 may be ignored for the purpose of determining the final RGB values of the pixels of the corrected image.
[0097]
[0098] In some examples, the coefficients of the 3×3 CCM may be determined by dividing the first input image 406 and the second input image 408 into segments (eg, Fig.6D and / or Fig. 6EThe color relationship between the RGB values of the first input image 406 and the RGBIR values of the second input image 408 in each segment is determined, and the coefficients of the 3×3 CCM are optimized based on the combination of the color relationships of all segments.
[0099] The first illustrative example, the second illustrative example, and the third illustrative example described above each describe applying the same color correction to the first input image 406 (eg, Fig. 6A 310) to produce a color-corrected output image 410. In some cases, different color corrections may be applied to different pixels of the RGBIR image. For example, as described above and as Fig.6D As shown, the pixels of the main image sensor can be divided into segments (e.g., segment 620). In some cases, the systems and techniques can determine the color correction for each segment of the RGBIR image (e.g., using a color correction ratio, a color correction matrix, etc.). In some cases, a machine learning model (e.g., a neural network) can determine which one or more color correction techniques to use to produce a color-corrected output image. In some examples, the machine learning model can also be used to apply the color correction technique. In some specific implementations, the machine learning model can also determine how to divide the image (e.g., into segments) for determining and / or applying color correction to produce a corrected image.
[0100] In an illustrative example, as used Fig.6D and Fig. 6E In addition to or in lieu of determining the color correction to be applied globally to the first input image 406 for the segments 620 and 640 shown, the color correction engine 404 can determine a different color correction to be applied to each segment 640 of the first input image 406. In such an example, the correction ratio (e.g., Formulas 1A to 1C), the CCM (e.g., the 3×4 CCM of Formula (2) or the 3×3 CCM of Formula (4)), any other color correction technique, or any combination thereof determined for each segment 640 of the first input image 406 can be applied to the pixels in the corresponding segment 640 of the first input image 406 (or to each pixel of the cropped first input image) to produce the color-corrected output image 410. For example, the image color correction system 400 may determine a 3×4 CCM for each segment 640 of the RGBIR image, and apply a first determined 3×4 CCM to each pixel of the first input image 406 (or each pixel of a cropped first input image) in a first segment of the segments 640, and apply a second determined 3×4 CCM to each pixel in a second segment of the segments 640, and so on, to each segment 640.
[0101] In addition, despite the Fig.6D and Fig. 6E The segments are illustrated as rectangular grids in , but the first image and the second image can be divided into segments of any shape. Fig. 6E The segments shown are shown as non-overlapping, but overlapping segments may also be used. Image color correction system 400 may also not determine color correction based on all pixels of first input image 406 and second input image 408. In one illustrative example, image rectification engine 402 may determine regions for calculating color corrections that correspond to feature points detected to be present in both first input image 406 and second input image 408 during the process of determining feature points for aligning first input image 406 and second input image 408.
[0102] Back to Figure 4 After the first input image 406 is color corrected by the color correction engine 404 , the image color correction system 400 may output a color-corrected output image 410 . Fig. 6F An example color-corrected image 670 is provided, which may correspond to Figure 4 The color corrected output image 410. As shown, the color corrected image 670 can maintain the resolution of the RGBIR image while providing more accurate colors (e.g., compensating for Figure 3B The light mist 312 shown).
[0103] In many cases, electronic devices including camera functionality often contain multiple image sensors. As described above, the image color correction system 400 and the related techniques described herein can allow the image captured by the main sensor (e.g., RGBIR image sensor) to be color corrected based on the color image captured by the reference sensor (e.g., RGB image sensor). In some cases, the reference sensor can be an auxiliary sensor that is mainly used to color correct the image from the main image sensor. In some cases, the reference sensor can be a full-featured RGB image sensor included in the image capture system (e.g., a mobile device). In some specific implementations, the main sensor and the reference sensor do not need to have the same resolution. The systems and techniques described herein allow the inclusion of an IR-sensitive image sensor (e.g., an RGBIR image sensor) that can provide, for example, IR sensing capabilities that can be used in low-light conditions and accurate color representation in the presence of IR lighting. In some cases, the system and techniques can reduce the size and / or weight of electronic devices incorporating IR sensing capabilities by eliminating the need for a dedicated IR sensor and / or a mechanism for physically moving the IR filter according to lighting conditions.
[0104] Figure 77 is a flow chart illustrating an example of a process 700 for processing one or more frames. At block 702, the process 700 includes obtaining a first color image (e.g., an RGB image) including a first one or more pixels from a first image sensor. In one illustrative example, the first image sensor (e.g., Figure 1B The image sensor 130 or the second image sensor 180) may be an auxiliary sensor in a device including multiple image sensors. In some cases, the first image sensor may have a different resolution from the second image sensor. In some cases, the field of view associated with the first one or more pixels overlaps at least partially with the field of view associated with the second one or more pixels. In some implementations, the first image sensor is associated with a first optical axis, and the second image sensor is associated with a second optical axis different from the first optical axis. In some examples, the first image sensor has a first resolution, and the second image sensor has a second resolution different from the first resolution. In some cases, the first image sensor includes a single pixel. In some implementations, the first image sensor includes a plurality of pixels. In some cases, an IR cutoff filter is disposed between a lens of the first image sensor and the first image sensor. The IR cutoff filter may prevent IR light from reaching the first image sensor. In some cases, each of the first one or more pixels includes a corresponding red component, a green component, and a blue component, and each of the second one or more pixels includes a corresponding red component, a green component, and a blue component. In some examples, the first one or more pixels do not include IR information.
[0105] At block 704, process 700 includes obtaining a second color image including a second one or more pixels from a second image sensor. The second color image includes pixels from a second image sensor (e.g., Figure 1B Infrared (IR) information of the image sensor 130 or the second image sensor 180).
[0106] At box 706, process 700 includes determining a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels based on a comparison associated with the first one or more pixels and the second one or more pixels. In some embodiments, determining the transformation includes determining a first green statistic of a green component of the first one or more pixels and a second green statistic of a green component of the second one or more pixels, and determining a green color correction based on the numerical correspondence of the first green statistic and the second green statistic. Process 700 can perform similar determinations for blue components and red components of the first one or more pixels and the second one or more pixels. In some cases, determining a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels includes dividing one or more of the first color image and the second color image into a plurality of segments. In some examples, process 700 can determine a first segment transformation associated with a first subset of the associated second one or more pixels. In some specific implementations, process 700 can determine a second segment transformation associated with a second subset of the second one or more pixels. The second subset of the second one or more pixels differs from the first subset by at least one pixel. In some cases, process 700 may determine a global transform for generating a color-corrected image based on the first zone transform and the second zone transform. Figure 4 , Figure 5 and 6A to 6F Illustrative example techniques for determining transitions between colors are described.
[0107] At box 708, process 700 includes generating a color-corrected image at least in part by transforming a second color image including IR information into a color-corrected image based on the determined transform. In some implementations, generating the color-corrected image includes applying a red color correction to a red component of each of the second one or more pixels, applying a green color correction to a green component of each of the second one or more pixels, and applying a blue color correction to a blue component of each of the second one or more pixels. In an illustrative example, the transform between the color of the first one or more pixels and the color of the second one or more pixels includes a color correction matrix. In some cases, generating the color-corrected image includes applying the determined transform to the second one or more pixels to produce first color-corrected pixels. In some implementations, generating the color-corrected image includes transforming a first subset of the second one or more pixels at least in part by a first segment transform and transforming a second subset of the second one or more pixels by a second segment transform.
[0108] In some examples, the processes described herein (e.g., process 700 and / or other processes described herein) can be performed by a computing device or apparatus. In another example, one or more of these processes can be performed by Fig.10 The computing system 1000 shown executes. For example, Fig.10 The computing devices of the computing system 1000 shown may include Figure 4 The components of the image color correction system 400 may be implemented Figure 7 Operations of process 700 and / or other processes described herein.
[0109] The computing device may include any suitable device, such as a vehicle or a computing device of a vehicle (e.g., a driver monitoring system (DMS) of a vehicle), a mobile device (e.g., a mobile phone), a desktop computing device, a tablet computing device, a wearable device (e.g., a VR headset, an AR headset, AR glasses, a network-connected watch or smartwatch, or other wearable device), a server computer, a robotic device, a television, and / or any other computing device having resource capabilities to perform the processes described herein (including process 700 and / or other processes described herein). In some cases, the computing device or apparatus may include various components, such as one or more input devices, one or more output devices, one or more processors, one or more microprocessors, one or more microcomputers, one or more cameras, one or more sensors, and / or other components configured to perform the steps of the processes described herein. In some examples, the computing device may include a display, a network interface configured to communicate and / or receive data, any combination thereof, and / or other components. The network interface may be configured to communicate and / or receive data based on an Internet Protocol (IP) or other types of data.
[0110] The components of the computing device may be implemented in circuits. For example, the components may include and / or may be implemented using electronic circuits or other electronic hardware, which may include one or more programmable electronic circuits (e.g., microprocessors, graphics processing units (GPUs), digital signal processors (DSPs), central processing units (CPUs), and / or other suitable electronic circuits), and / or the components may include and / or may be implemented using computer software, firmware, or any combination thereof for performing the various operations described herein.
[0111] Process 700 is illustrated as a logic flow diagram, the operations of which represent a sequence of operations that can be implemented in hardware, computer instructions, or a combination thereof. In the context of computer instructions, each operation represents a computer-executable instruction stored on one or more computer-readable storage media that, when executed by one or more processors, performs the described operations. In general, computer-executable instructions include routines, programs, objects, components, data structures, etc. that perform specific functions or implement specific data types. The order in which the operations are described is not intended to be construed as a limitation, and any number of the described operations may be combined in any order and / or in parallel to implement the process.
[0112] In addition, process 700 and / or other processes described herein may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed together on one or more processors, by hardware, or a combination thereof. As described above, the code may be stored on a computer-readable or machine-readable storage medium, for example, in the form of a computer program that includes multiple instructions that can be executed by one or more processors. The computer-readable or machine-readable storage medium may be non-transitory.
[0113] As described above, various aspects of the present disclosure may utilize a machine learning model or system. Figure 8 822a, 822b to 822n include "n" hidden layers, where "n" is an integer greater than or equal to one. The multiple hidden layers can include as many layers as required for a given application. The neural network 800 also includes an output layer 821, which provides an output generated by the processing performed by the hidden layers 822a, 822b to 822n. In an illustrative example, the output layer 821 can provide a classification of objects in the input image. The classification can include a category that identifies an activity type (e.g., looking up, looking down, closing eyes, yawning, etc.).
[0114] Neural network 800 is a multi-layer neural network composed of interconnected nodes. Each node can represent a piece of information. The information associated with these nodes is shared between different layers, and each layer retains the information as it processes it. In some cases, neural network 800 can include a feedforward network, in which case there is no feedback connection where the output of the network is fed back to itself. In some cases, neural network 800 can include a recursive neural network, which can have loops that allow information to be carried across nodes when reading in input.
[0115] Information can be exchanged between nodes by interconnecting nodes to nodes between each layer. The nodes of input layer 820 can activate the node set in the first hidden layer 822a. For example, as shown in the figure, each input node in the input nodes of input layer 820 is connected to each node in the node of the first hidden layer 822a. The nodes of the first hidden layer 822a can transform the information of each input node by applying an activation function to the input node information. The information derived from this transformation can then be transferred to the node of the next hidden layer 822b and can activate this node of this next hidden layer, and this node of this next hidden layer can perform their own specified functions. Example functions include convolution, up sampling, data conversion and / or any other suitable function. Then, the output of hidden layer 822b can activate the node of the next hidden layer, and so on. The output of last hidden layer 822n can activate one or more nodes of output layer 821, and output is provided at this one or more nodes. In some cases, although a node in neural network 800 (e.g., node 826) is shown as having multiple output lines, the node has a single output, and all lines shown as outputting from the node represent the same output value.
[0116] In some cases, each node or interconnect between nodes can have a weight, which is a set of parameters derived from the training of the neural network 800. Once the neural network 800 is trained, it can be referred to as a trained neural network, which can be used to classify one or more activities. For example, the interconnect between nodes can represent a piece of information learned about the interconnected nodes. The interconnect can have tunable digital weights that can be tuned (e.g., based on a training data set), allowing the neural network 800 to adapt to the input and be able to learn as more and more data is processed.
[0117] The neural network 800 is pre-trained to process features from the data in the input layer 820 using different hidden layers 822a, 822b to 822n to provide outputs through the output layer 821. In examples where the neural network 800 is used to identify features in images to perform image registration, the neural network 800 can be trained using training data that includes both images and labels, as described above. For example, training images can be input into the network, where each training image has a label indicating a feature in the image (for a feature extraction machine learning system) or a label indicating a class of objects in each image. In one example using object classification for illustrative purposes, the training images can include images of the number 2, in which case the labels for the images can be [0 0 1 0 0 0 0 0 0 0].
[0118] In some cases, the neural network 800 can use a training process called back propagation to adjust the weights of the nodes. As described above, the back propagation process can include a forward pass, a loss function, a backward pass, and a weight update. The forward pass, the loss function, the backward pass, and the parameter update are performed for one training iteration. For each set of training images, this process can be repeated a certain number of iterations until the neural network 800 is trained well enough so that the weights of each layer are accurately tuned.
[0119] For the example of identifying an object in a frame, a forward pass may include passing a training frame through the neural network 800. Prior to training the neural network 800, the weights are initially randomized. As an illustrative example, a frame may include an array of numbers representing pixels of an image. Each number in the array may include a value from 0 to 255 describing the intensity of the pixel at that position in the array. In one example, the array may include a 28×28×3 digital array having 28 rows and 28 columns of pixels and 3 color components (e.g., red, green, and blue, or luminance and two chrominance components, etc.).
[0120] As described above, for the first training iteration of the neural network 800, the output will likely include values that do not prioritize any particular class due to the weights randomly selected at initialization. For example, if the output is a vector with probabilities that the object includes different classes, the probability values for each of the different classes may be equal or at least very similar (e.g., for ten possible classes, each class may have a probability value of 0.1). Using the initial weights, the neural network 800 cannot determine low-level features and therefore cannot accurately determine what the classification of the object may be. A loss function may be used to analyze the error in the output. Any suitable loss function definition may be used, such as a cross entropy loss. Another example of a loss function includes the mean squared error (MSE), defined as The loss can be set equal to E 总和 The value of .
[0121] For the first training image, the loss (or error) will be high because the actual value will be very different from the predicted output. The goal of training is to minimize the amount of loss so that the predicted output is the same as the training label. The neural network 800 can perform a backward pass by determining which inputs (weights) contribute the most to the loss of the network, and the weights can be adjusted so that the loss decreases and is ultimately minimized. The derivative of the loss with respect to the weight (expressed as dL / dW, where W is the weight at a particular layer) can be calculated to determine the weight that contributes the most to the loss of the network. After calculating the derivative, a weight update can be performed by updating all the weights of the filter. For example, the weights can be updated so that they change in the opposite direction of the gradient. The weight update can be expressed as Where w represents the weight, w i Represents the initial weight, and η represents the learning rate. The learning rate can be set to any suitable value, where a high learning rate includes a larger weight update, while a lower value indicates a smaller weight update.
[0122] The neural network 800 may include any suitable deep network. An example includes a convolutional neural network (CNN), which includes an input layer and an output layer with multiple hidden layers between the input layer and the output layer. The hidden layers of the CNN include a series of convolutional layers, nonlinear layers, pooling layers (for downsampling), and fully connected layers. The neural network 800 may include any other deep network other than a CNN, such as an autoencoder, a deep belief network (DBN), a recursive neural network (RNN), etc.
[0123] Fig. 9 is an illustrative example of a convolutional neural network (CNN) 900. The input layer 920 of the CNN 900 includes data representing an image or frame. For example, the data may include an array of numbers representing pixels of the image, where each number in the array includes a value from 0 to 255 describing the intensity of the pixel at that location in the array. Using the previous example from above, the array may include a 28×28×3 digital array with 28 rows and 28 columns of pixels and 3 color components (e.g., red, green, and blue, or brightness and two chrominance components, etc.). The image can be passed through a convolutional hidden layer 922a, an optional non-linear activation layer, a pooling hidden layer 922b, and a fully connected hidden layer 922c to obtain an output at an output layer 924. Although Fig. 9 Only one hidden layer is shown in the various hidden layers, but a person of ordinary skill will understand that multiple convolutional hidden layers, non-linear layers, pooling hidden layers, and / or fully connected layers may be included in CNN 900. As previously described, the output may indicate a single category of an object, or may include a probability of a category that best describes an object in the image.
[0124] The first layer of CNN 900 is a convolutional hidden layer 922a. The convolutional hidden layer 922a analyzes the image data of the input layer 920. Each node of the convolutional hidden layer 922a is connected to an area of nodes (pixels) of the input image called a receptive field. The convolutional hidden layer 922a can be considered as one or more filters (each filter corresponds to a different activation or feature map), where each convolution iteration of the filter is a node or neuron of the convolutional hidden layer 922a. For example, the area of the input image covered by the filter at each convolution iteration will be the receptive field of the filter. In an illustrative example, if the input image includes a 28×28 array and each filter (and corresponding receptive field) is a 5×5 array, there will be 24×24 nodes in the convolutional hidden layer 922a. Each connection between a node and the receptive field of the node learns a weight, and in some cases learns an overall bias, so that each node learns to analyze its specific local receptive field in the input image. Each node of the hidden layer 922a will have the same weights and biases (referred to as shared weights and shared biases). For example, the filter has an array of weights (numbers) and the same depth as the input. For the video frame example, the filter will have a depth of 3 (according to the three color components of the input image). An illustrative example size of the filter array is 5×5×3, corresponding to the size of the node's receptive field.
[0125] The convolutional nature of the convolutional hidden layer 922a is due to the fact that each node of the convolutional layer is applied to its corresponding receptive field. For example, the filter of the convolutional hidden layer 922a can start at the upper left corner of the input image array and can be convolved around the input image. As described above, each convolution iteration of the filter can be considered as a node or neuron of the convolutional hidden layer 922a. In each convolution iteration, the value of the filter is multiplied by the original pixel values of the corresponding number of the image (for example, a 5×5 filter array is multiplied by a 5×5 array of input pixel values at the upper left corner of the input image array). The multiplications from each convolution iteration can be added together to obtain the sum of the iteration or node. Next, the process is continued at the next position in the input image according to the receptive field of the next node in the convolutional hidden layer 922a. For example, the filter can be moved by a step amount (called a stride) to the next receptive field. The stride can be set to 1 or other suitable amount. For example, if the stride is set to 1, the filter will move 1 pixel to the right at each convolution iteration. Processing the filter at each unique location in the input volume produces a number representing the filter result at that location, resulting in a summed value being determined for each node of the convolutional hidden layer 922a.
[0126] The mapping from the input layer to the convolutional hidden layer 922a is called an activation map (or feature map). The activation map includes a value for each node that represents the result of the filter at each location of the input volume. The activation map may include an array that includes the various summed values produced by each iteration of the filter over the input volume. For example, if a 5×5 filter is applied to each pixel of a 28×28 input image (with a stride of 1), the activation map will include a 24×24 array. The convolutional hidden layer 922a may include several activation maps in order to identify multiple features in the image. Fig. 9 The example shown includes three activation maps. Using the three activation maps, the convolutional hidden layer 922a can detect three different kinds of features, each of which is detectable across the entire image.
[0127] In some examples, a nonlinear hidden layer can be applied after the convolutional hidden layer 922a. A nonlinear layer can be used to introduce nonlinearity into a system that already computes linear operations. An illustrative example of a nonlinear layer is a rectified linear unit (ReLU) layer. The ReLU layer can apply the function f(x)=max(0,x) to all values in the input volume, which changes all negative activations to 0. Therefore, ReLU can increase the nonlinear properties of the CNN 900 without affecting the receptive field of the convolutional hidden layer 922a.
[0128] The pooling hidden layer 922b can be applied after the convolution hidden layer 922a (and after the non-linear hidden layer when used). The pooling hidden layer 922b is used to simplify the information in the output from the convolution hidden layer 922a. For example, the pooling hidden layer 922b can take each activation map output from the convolution hidden layer 922a and generate a condensed activation map (or feature map) using a pooling function. Max pooling is an example of a function performed by a pooling hidden layer. The pooling hidden layer 922a uses other forms of pooling functions, such as average pooling, L2 norm pooling, or other suitable pooling functions. A pooling function (e.g., a maximum pooling filter, an L2 norm filter, or other suitable pooling filter) is applied to each activation map included in the convolution hidden layer 922a. In Fig. 9 In the example shown, three pooling filters are used for the three activation maps in the convolutional hidden layer 922a.
[0129] In some examples, max pooling can be used by applying a max pooling filter (e.g., having a size of 2×2) with a stride (e.g., equal to the dimension of the filter, such as a stride of 2) to the activation map output from the convolutional hidden layer 922a. The output from the max pooling filter includes the maximum number in each sub-region of the filter convolution. Using a 2×2 filter as an example, each unit in the pooling layer can summarize a region of 2×2 nodes in the previous layer (where each node is a value in the activation map). For example, four values (nodes) in the activation map will be analyzed by a 2×2 max pooling filter at each iteration of the filter, where the maximum of the four values is output as the "maximum" value. If such a max pooling filter is applied to an activation filter with a dimension of 24×24 nodes from the convolutional hidden layer 922a, the output from the pooling hidden layer 922b will be an array of 12×12 nodes.
[0130] In some examples, an L2-norm pooling filter may also be used. The L2-norm pooling filter involves computing the square root of the sum of the squares of the values in a 2×2 region (or other suitable region) of the activation map (rather than computing the maximum value as done in max pooling), and using the computed value as output.
[0131] Intuitively, a pooling function (e.g., max pooling, L2 norm pooling, or other pooling functions) determines whether a given feature is found anywhere in a region of an image, and discards the exact location information. This can be done without affecting the results of feature detection, because once a feature has been found, the exact location of the feature is not as important as its approximate location relative to other features. Max pooling (and other pooling methods) provides the following benefits: far fewer features are pooled, thereby reducing the number of parameters required in subsequent layers of CNN 900.
[0132] The last layer of connections in the network is a fully connected layer that connects each node from the pooling hidden layer 922b to each of the output nodes in the output layer 924. Using the above example, the input layer includes 28×28 nodes that encode the pixel intensities of the input image, the convolutional hidden layer 922a includes 3×24×24 hidden feature nodes based on applying a 5×5 local receptive field (for the filter) to the three activation maps, and the pooling hidden layer 922b includes a layer of 3×12×12 hidden feature nodes based on applying a maximum pooling filter to a 2×2 region on each of the three feature maps. Extending this example, the output layer 924 may include ten output nodes. In this example, each node of the 3×12×12 pooling hidden layer 922b is connected to each node of the output layer 924.
[0133] The fully connected layer 922c can obtain the output of the previous pooled hidden layer 922b (which should represent an activation map of high-level features) and determine the features most relevant to a particular category. For example, the fully connected layer 922c layer can determine the high-level features that are most strongly associated with a particular category and can include weights (nodes) for the high-level features. The product between the weights of the fully connected layer 922c and the pooled hidden layer 922b can be calculated to obtain probabilities for different categories. For example, if CNN 900 is used to predict that an object in a video frame is a person, there will be high values in the activation map representing the high-level features of a person (e.g., there are two legs, a face at the top of the object, two eyes at the upper left and upper right of the face, a nose in the middle of the face, a mouth at the bottom of the face, and / or other features common to people).
[0134] In some examples, the output from the output layer 924 may include an M-dimensional vector (in the previous example, M=10). M indicates the number of categories that the CNN 900 must choose from when classifying objects in the image. Other example outputs may also be provided. Each number in the M-dimensional vector may represent the probability that the object belongs to a certain category. In an illustrative example, if the 10-dimensional output vector represents that objects of ten different categories are [0 0 0.05 0.8 0 0.15 0 0 0 0], the vector indicates that the probability that the image is an object of the third category (e.g., dog) is 5%, the probability that the image is an object of the fourth category (e.g., person) is 80%, and the probability that the image is an object of the sixth category (e.g., kangaroo) is 15%. The probability for a category can be considered as the confidence level that the object is part of that category.
[0135] Fig.10 is a diagram illustrating an example of a system for implementing certain aspects of the present technology. Specifically, Fig.10 An example of a computing system 1000 is illustrated, which may be any computing device, for example, constituting an internal computing system, a remote computing system, a camera, or any components thereof, wherein the components of the system communicate with each other using a connection 1005. The connection 1005 may be a physical connection using a bus, or a direct connection into the processor 1010, such as in a chipset architecture. The connection 1005 may also be a virtual connection, a networked connection, or a logical connection.
[0136] In some embodiments, computing system 1000 is a distributed system, where the functionality described in the present disclosure may be distributed within a data center, multiple data centers, a peer-to-peer network, etc. In some embodiments, one or more of the system components represent a number of such components that each perform some or all of the functionality for which the component is described. In some embodiments, a component may be a physical device or a virtual device.
[0137] The example system 1000 includes at least one processing unit (CPU or processor) 1010 and connections 1005 that couple various system components including system memory 1015, such as read-only memory (ROM) 1020 and random access memory (RAM) 1025, to the processor 1010. The computing system 1000 may include a cache 1012 of high-speed memory directly connected to, in close proximity to, or integrated as part of the processor 1010.
[0138] Processor 1010 may include any general purpose processor and hardware or software services, such as services 1032, 1034, and 1036 stored in storage device 1030, that are configured to control processor 1010 as well as a dedicated processor where software instructions are incorporated into the actual processor design. Processor 1010 may essentially be a completely independent computing system containing multiple cores or processors, buses, memory controllers, caches, etc. Multi-core processors may be symmetric or asymmetric.
[0139] To enable user interaction, the computing system 1000 includes an input device 1045 that can represent any number of input mechanisms, such as a microphone for voice, a touch-sensitive screen for gesture or graphical input, a keyboard, a mouse, motion input, voice, and the like. The computing system 1000 may also include an output device 1035 that can be one or more of a plurality of output mechanisms. In some cases, a multimodal system may enable a user to provide multiple types of input / output to communicate with the computing system 1000. The computing system 1000 may include a communication interface 1040, which may generally govern and manage user input and system output. The communication interface may perform or facilitate receiving and / or sending wired or wireless communications using a wired and / or wireless transceiver, including utilizing an audio jack / plug, a microphone jack / plug, a universal serial bus (USB) port / plug, Ports / plugs, Ethernet ports / plugs, Fiber optic ports / plugs, Dedicated wired ports / plugs, Wireless signal transmission, Low energy (BLE) wireless signal transmission, Wireless signal transmission, radio frequency identification (RFID) wireless signal transmission, near field communication (NFC) wireless signal transmission, dedicated short range communication (DSRC) wireless signal transmission, 802.11 Wi-Fi wireless signal transmission, wireless local area network (WLAN) signal transmission, visible light communication (VLC), Worldwide Interoperability for Microwave Access (WiMAX), infrared (IR) communication wireless signal transmission, public switched telephone network (PSTN) signal transmission, integrated services digital network (ISDN) signal transmission, 3G / 4G / 5G / LTE cellular data network wireless signal transmission, ad hoc network signal transmission, radio wave signal transmission, microwave signal transmission, infrared signal transmission, visible light signal transmission, ultraviolet light signal transmission, wireless signal transmission along the electromagnetic spectrum, or some combination thereof. The communication interface 1040 may also include one or more global navigation satellite system (GNSS) receivers or transceivers for determining the location of the computing system 1000 based on receiving one or more signals from one or more satellites associated with one or more GNSS systems. GNSS systems include, but are not limited to, the United States' Global Positioning System (GPS), Russia's Global Navigation Satellite System (GLONASS), China's BeiDou Navigation Satellite System (BDS), and Europe's Galileo GNSS. There is no restriction to operating on any particular hardware arrangement, and thus the base features herein may be easily substituted for improved hardware or firmware arrangements as they are developed.
[0140] The storage device 1030 may be a non-volatile and / or non-transitory and / or computer-readable memory device, and may be a hard disk or other type of computer-readable medium that can store data that can be accessed by a computer, such as a magnetic tape cartridge, a flash memory card, a solid-state memory device, a digital versatile disk, a cassette, a floppy disk, a flexible disk, a hard disk, a magnetic tape, a magnetic stripe / strip, any other magnetic storage medium, a flash memory, a memristor memory, any other solid-state memory, a compact disk-read only memory (CD-ROM) optical disk, a rewritable compact disk (CD) optical disk, a digital video disk (DVD) optical disk, a Blu-ray disc (BDD) optical disk, a holographic optical disk, another optical medium, a secure digital (SD) card, a micro secure digital (microSD) card, card, a smart card chip, an EMV chip, a subscriber identity module (SIM) card, a mini / micro / nano / pico SIM card, another integrated circuit (IC) chip / card, a random access memory (RAM), a static RAM (SRAM), a dynamic RAM (DRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash EPROM (FLASHEPROM), a cache memory (L1 / L2 / L3 / L4 / L5 / L#), a resistive random access memory (RRAM / ReRAM), a phase change memory (PCM), a spin-transfer torque RAM (STT-RAM), another memory chip or box, and / or a combination thereof.
[0141] Storage device 1030 may include software services, servers, services, etc. that cause the system to perform functions when code defining such software is executed by processor 1010. In some embodiments, hardware services that perform specific functions may include software components for performing functions stored in a computer-readable medium connected to necessary hardware components such as processor 1010, connector 1005, output device 1035, etc.
[0142] As used herein, the term "computer-readable medium" includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media capable of storing, containing or carrying instructions and / or data. Computer-readable media may include non-transient media in which data may be stored and does not include carrier waves and / or transient electronic signals that are propagated wirelessly or on a wired connection. Examples of non-transient media may include, but are not limited to, disks or tapes, optical storage media (such as compact disks (CDs) or digital versatile disks (DVDs)), flash memory, memory, or memory devices. Computer-readable media may store thereon code and / or machine-executable instructions, which may represent any combination of a process, function, subroutine, program, routine, subroutine, module, software package, class, or instruction, data structure, or program statement. A code segment may be coupled to another code segment or a hardware circuit by transmitting and / or receiving information, data, independent variables, parameters, or memory contents. Information, independent variables, parameters, data, etc. may be transmitted, forwarded, or sent using any suitable means, including memory sharing, message passing, token passing, network sending, etc.
[0143] In some embodiments, computer-readable storage devices, media, and memories may include wired or wireless signals including bit streams, etc. However, when referred to, non-transitory computer-readable storage media specifically exclude media such as energy, carrier signals, electromagnetic waves, and signals themselves.
[0144] Specific details are provided in the above description to provide a detailed understanding of the embodiments and examples provided herein. However, it will be appreciated by those skilled in the art that these embodiments can also be put into practice without these specific details. For clarity, in some cases, the present technology can be presented as including separate functional blocks, including functional blocks comprising steps or routines in the method embodied by a combination of equipment, device components, software or hardware and software. Additional components other than those components shown in the accompanying drawings and / or described herein can be used. For example, circuits, systems, networks, processes and other components can be shown as components in block diagram form to avoid obscuring these embodiments in unnecessary details. In other examples, known circuits, processes, algorithms, structures and techniques can be shown without necessary details to avoid confusing each embodiment.
[0145] Individual embodiments may be described above as processes or methods depicted as flow charts, flow diagrams, data flow diagrams, structure diagrams, or block diagrams. Although flow charts may describe operations as sequential processes, many operations in the operations may be performed in parallel or simultaneously. In addition, the order of the operations may be rearranged. The process may be terminated when the operations of the process are completed, but the process may have additional steps not included in the accompanying drawings. The process may correspond to a method, function, program, subroutine, subprogram, etc. When a process corresponds to a function, its termination may correspond to the function returning to the calling function or main function.
[0146] The processes and methods according to the above examples can be implemented using stored computer executable instructions or otherwise obtained from computer readable media. These instructions may include, for example, instructions and data that configure a general-purpose computer, a special-purpose computer, or a processing device to perform a certain function or group of functions. Parts of the computer resources used can be accessed through a network. Computer executable instructions can be, for example, binary, intermediate format instructions, such as assembly language, firmware, source code, etc. Examples of computer readable media that can be used to store instructions, information used, and / or information created during the methods according to the described examples include disks or optical disks, flash memory, USB devices with non-volatile memory, networked storage devices, etc.
[0147] Devices implementing the processes and methods according to these disclosures may include hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof, and may take any of a variety of form factors. When implemented in software, firmware, middleware, or microcode, program code or code segments (e.g., computer program products) for performing necessary tasks may be stored in a computer-readable or machine-readable medium. The processor may perform the necessary tasks. Typical examples of form factors include laptop computers, smart phones, mobile phones, tablet devices or other small form factor personal computers, personal digital assistants, rack-mounted devices, stand-alone devices, etc. The functionality described herein may also be embodied in peripheral devices or add-in cards. By way of further example, such functionality may also be implemented on circuit boards among different chips or different processes executed on a single device.
[0148] Instructions, media for communicating such instructions, computing resources for executing them, and other structures for supporting such computing resources are example means for providing the functionality described in this disclosure.
[0149] In the foregoing description, various aspects of the present application are described with reference to the specific embodiments of the present application, but those skilled in the art will recognize that the present application is not limited thereto. Thus, although the exemplary embodiments of the present application have been described in detail herein, it is to be understood that the inventive concept can be embodied and adopted in various other ways, and the appended claims are not intended to be interpreted as including these variations, unless limited by the prior art. Various features and aspects of the above-mentioned applications can be used individually or in combination. In addition, without departing from the scope of this specification, the embodiments can be used in any number of environments and applications beyond the environment and application described herein. Therefore, the description and the accompanying drawings should be considered as illustrative rather than restrictive. For the purpose of illustration, each method is described in a specific order. It should be understood that in an alternative embodiment, each method can be performed in a different order than described.
[0150] One of ordinary skill in the art will understand that the less than ("<") and greater than (">") symbols or terms used herein may be replaced by less than or equal to ("≤") and greater than or equal to ("≥") symbols, respectively, without departing from the scope of this specification.
[0151] Where a component is described as being “configured to” perform certain operations, such configuration may be achieved, for example, by designing electronic circuits or other hardware to perform the operations, by programming programmable electronic circuits (e.g., a microprocessor or other suitable electronic circuits) to perform the operations, or any combination thereof.
[0152] The phrase "coupled to" means that any component is directly or indirectly physically connected to another component, and / or any component is directly or indirectly in communication with another component (e.g., connected to another component via a wired or wireless connection and / or other suitable communication interface).
[0153] Claim language or other language reciting "at least one of" a set and / or "one or more of" a set indicates that one member of the set or multiple members of the set (in any combination) satisfies the claim. For example, claim language reciting "at least one of A and B" or "at least one of A or B" means A, B, or A and B. In another example, claim language reciting "at least one of A, B, and C" or "at least one of A, B, or C" means A, B, C, or A and B, or A and C, or B and C, or A and B and C. The language "at least one of" a set and / or "one or more of" a set does not limit the set to the items listed in the set. For example, claim language reciting "at least one of A and B" or "at least one of A or B" may mean A, B, or A and B, and may additionally include items not listed in the set of A and B.
[0154] Various exemplary logic blocks, modules, circuits and algorithmic steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, firmware or a combination thereof. In order to clearly illustrate this interchangeability of hardware and software, various exemplary components, frames, modules, circuits and steps have been generally described in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints proposed to the entire system. The technician can implement the described functionality in different ways for each specific application, but such specific implementation decisions should not be interpreted as making it depart from the scope of the present application.
[0155] The technology described herein can also be implemented in electronic hardware, computer software, firmware, or any combination thereof. Such technology can be implemented in any of a variety of devices, such as general-purpose computers, wireless communication device mobile phones, or integrated circuit devices with multiple uses, including applications in wireless communication device handheld devices and other devices. Any features described as modules or components can be implemented together in an integrated logic device or separately implemented as discrete but interoperable logic devices. If implemented in software, these technologies can be implemented at least in part by a computer-readable data storage medium including program codes, which include instructions that execute one or more of the above methods when executed. Computer-readable data storage media can form part of a computer program product, which can include packaging materials. Computer-readable media can include memory or data storage media, such as random access memory (RAM) (such as synchronous dynamic random access memory (SDRAM)), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory, magnetic or optical data storage media, etc. Additionally or alternatively, the techniques may be implemented at least in part by a computer-readable communication medium that carries or communicates program code in the form of instructions or data structures and that can be accessed, read, and / or executed by a computer, such as a propagated signal or wave.
[0156] The program code may be executed by a processor, which may include one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Such a processor may be configured to perform any of the techniques described in the present disclosure. A general-purpose processor may be a microprocessor; however, in an alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. Therefore, the term "processor" as used herein may refer to any of the foregoing structures, any combination of the foregoing structures, or any other structure or device suitable for implementing the techniques described herein.
[0157] Illustrative aspects of the present disclosure include:
[0158] Aspect 1: A method for processing an image, the method comprising: obtaining a first color image including first one or more pixels from a first image sensor; obtaining a second color image including second one or more pixels from a second image sensor, the second color image including infrared (IR) information from the second image sensor; determining a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels based on a comparison associated with the first one or more pixels and the second one or more pixels; and generating a color-corrected image at least in part by transforming the second color image including IR information into a color-corrected image based on the determined transformation.
[0159] Aspect 2: The method of aspect 1, wherein a field of view associated with the first one or more pixels at least partially overlaps a field of view associated with the second one or more pixels.
[0160] Aspect 3: The method according to any one of aspects 1 to 2, wherein the first image sensor is associated with a first optical axis and the second image sensor is associated with a second optical axis different from the first optical axis.
[0161] Aspect 4: The method according to any one of aspects 1 to 3, wherein the first image sensor has a first resolution, and the second image sensor has a second resolution different from the first resolution.
[0162] Aspect 5: The method according to any one of aspects 1 to 4, wherein the first image sensor comprises a single pixel.
[0163] Aspect 6: The method according to any one of aspects 1 to 5, wherein the first image sensor comprises a plurality of pixels.
[0164] Aspect 7: The method according to any one of aspects 1 to 6, wherein an IR cut filter is disposed between a lens of the first image sensor and the first image sensor.
[0165] Aspect 8: A method according to any one of aspects 1 to 7, wherein each of the first one or more pixels includes a corresponding red component, a green component, and a blue component, and each of the second one or more pixels includes a corresponding red component, a green component, and a blue component, and determining the transformation between the color associated with the first one or more pixels and the color associated with the second one or more pixels includes: determining a first green statistical measure of the green component of the first one or more pixels and a second green statistical measure of the green component of the second one or more pixels; determining a first red statistical measure of the red component of the first one or more pixels and a second red statistical measure of the red component of the second one or more pixels; determining a first blue statistical measure of the blue component of the first one or more pixels and a second blue statistical measure of the blue component of the second one or more pixels; determining a green color correction based on the numerical correspondence between the first green statistical measure and the second green statistical measure; determining a red color correction based on the numerical correspondence between the first red statistical measure and the second red statistical measure; and determining a blue color correction based on the numerical correspondence between the first blue statistical measure and the second blue statistical measure.
[0166] Aspect 9: A method according to any one of Aspects 1 to 8, wherein generating the color-corrected image includes applying the red color correction to the red component of each pixel in the second one or more pixels, applying the green color correction to the green component of each pixel in the second one or more pixels, and applying the blue color correction to the blue component of each pixel in the second one or more pixels.
[0167] Aspect 10: The method according to any one of aspects 1 to 9, wherein the transformation between the color of the first one or more pixels and the color of the second one or more pixels comprises a color correction matrix.
[0168] Aspect 11: The method according to any one of aspects 1 to 10, wherein generating the color-corrected image comprises applying the determined transformation to the second one or more pixels to produce first color-corrected pixels.
[0169] Aspect 12: A method according to any one of Aspects 1 to 11, wherein determining the transformation between the color associated with the first one or more pixels and the color associated with the second one or more pixels includes: dividing one or more of the first color image and the second color image into a plurality of segments; determining a first segment transformation associated with a first subset of the associated second one or more pixels; and determining a second segment transformation associated with a second subset of the second one or more pixels, wherein the second subset of the second one or more pixels differs from the first subset by at least one pixel.
[0170] Aspect 13: The method according to any one of aspects 1 to 12, further comprising determining a global transform for generating the color-corrected image based on the first zone transform and the second zone transform.
[0171] Aspect 14: According to the method described in any one of Aspects 1 to 13, the method also includes generating the color-corrected image at least in part by transforming the first subset of the second one or more pixels by the first segment transform and transforming the second subset of the second one or more pixels by the second segment transform.
[0172] Aspect 15: The method according to any one of aspects 1 to 14, wherein the first one or more pixels do not include IR information
[0173] Aspect 16: A device for processing an image, the device comprising: a memory; and one or more processors, the one or more processors coupled to the memory and configured to: obtain a first color image including first one or more pixels from a first image sensor; obtain a second color image including second one or more pixels from a second image sensor, the second color image including infrared (IR) information from the second image sensor; determine a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels based on a comparison associated with the first one or more pixels and the second one or more pixels; and generate a color-corrected image at least in part by transforming the second color image including IR information into a color-corrected image based on the determined transformation.
[0174] Clause 17: The apparatus of Clause 16, wherein a field of view associated with the first one or more pixels at least partially overlaps a field of view associated with the second one or more pixels.
[0175] Clause 18: The apparatus of any one of Clauses 16 to 17, wherein the first image sensor is associated with a first optical axis and the second image sensor is associated with a second optical axis different from the first optical axis.
[0176] Clause 19: The apparatus according to any one of Clauses 16 to 18, wherein the first image sensor has a first resolution and the second image sensor has a second resolution different from the first resolution.
[0177] Clause 20: The apparatus of any one of Clauses 16 to 19, wherein the first image sensor comprises a single pixel.
[0178] Clause 21: The apparatus of any one of Clauses 16 to 20, wherein the first image sensor comprises a plurality of pixels.
[0179] Aspect 22: The apparatus according to any one of aspects 16 to 21, wherein an IR cut filter is disposed between a lens of the first image sensor and the first image sensor.
[0180] Aspect 23: An apparatus according to any one of Aspects 16 to 22, wherein the one or more processors are configured to: determine a first green statistical measure of the green component of the first one or more pixels and a second green statistical measure of the green component of the second one or more pixels; determine a first red statistical measure of the red component of the first one or more pixels and a second red statistical measure of the red component of the second one or more pixels; determine a first blue statistical measure of the blue component of the first one or more pixels and a second blue statistical measure of the blue component of the second one or more pixels; determine a green color correction based on the numerical correspondence between the first green statistical measure and the second green statistical measure; determine a red color correction based on the numerical correspondence between the first red statistical measure and the second red statistical measure; and determine a blue color correction based on the numerical correspondence between the first blue statistical measure and the second blue statistical measure.
[0181] Aspect 24: An apparatus according to any one of Aspects 16 to 23, wherein generating the color-corrected image includes applying the red color correction to the red component of each pixel in the second one or more pixels, applying the green color correction to the green component of each pixel in the second one or more pixels, and applying the blue color correction to the blue component of each pixel in the second one or more pixels.
[0182] Clause 25: The apparatus of any one of Clauses 16 to 24, wherein the transformation between the color of the first one or more pixels and the color of the second one or more pixels comprises a color correction matrix.
[0183] Clause 26: The apparatus of any one of Clauses 16 to 25, wherein generating the color-corrected image comprises applying the determined transformation to the second one or more pixels to produce first color-corrected pixels.
[0184] Aspect 27: An apparatus according to any one of Aspects 16 to 26, wherein the one or more processors are configured to: divide one or more of the first color image and the second color image into a plurality of segments; determine a first segment transform associated with a first subset of the associated second one or more pixels; and determine a second segment transform associated with a second subset of the second one or more pixels, wherein the second subset of the second one or more pixels differs from the first subset by at least one pixel.
[0185] Aspect 28: The apparatus according to any one of aspects 16 to 27, wherein the one or more processors are configured to: determine a global transform for generating the color-corrected image based on the first zone transform and the second zone transform.
[0186] Aspect 29: An apparatus according to any one of Aspects 16 to 28, wherein the one or more processors are configured to: generate the color-corrected image at least in part by: transforming the first subset of the second one or more pixels by the first segment transform and transforming the second subset of the second one or more pixels by the second segment transform.
[0187] Clause 30: The apparatus of any one of Clauses 16 to 29, wherein the first one or more pixels do not include IR information
[0188] Aspect 31: A non-transitory computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the one or more processors to perform any of the operations described in aspects 1 to 30.
[0189] Aspect 32: An apparatus comprising means for performing any of the operations according to aspects 1 to 30.
Claims
1. A method for processing an image, the method comprising: obtaining a first color image including first one or more pixels from a first image sensor; obtaining a second color image including a second one or more pixels from a second image sensor, the second color image including infrared (IR) information from the second image sensor; determining a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels based on a comparison associated with the first one or more pixels and the second one or more pixels; as well as A color-corrected image is generated by transforming the second color image including IR information into a color-corrected image based at least in part on the determined transformation. 2 . The method of claim 1 , wherein a field of view associated with the first one or more pixels at least partially overlaps a field of view associated with the second one or more pixels. 3 . The method of claim 1 , wherein the first image sensor is associated with a first optical axis and the second image sensor is associated with a second optical axis different from the first optical axis. 4 . The method of claim 1 , wherein the first image sensor has a first resolution and the second image sensor has a second resolution different from the first resolution. The method of claim 1 , wherein the first image sensor comprises a single pixel. The method of claim 1 , wherein the first image sensor comprises a plurality of pixels. 7 . The method of claim 1 , wherein an IR cut filter is disposed between a lens of the first image sensor and the first image sensor.
8. The method of claim 1 , wherein each of the first one or more pixels comprises a corresponding red component, a green component, and a blue component, and each of the second one or more pixels comprises a corresponding red component, a green component, and a blue component, and wherein determining the transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels comprises: determining a first green statistic for a green component of the first one or more pixels and a second green statistic for a green component of the second one or more pixels; determining a first red statistical measure for a red component of the first one or more pixels and a second red statistical measure for a red component of the second one or more pixels; determining a first blue statistical measure for a blue component of the first one or more pixels and a second blue statistical measure for a blue component of the second one or more pixels; determining a green color correction based on the numerical correspondence between the first green statistical measure and the second green statistical measure; determining a red color correction based on the numerical correspondence between the first red statistical measure and the second red statistical measure; as well as A blue color correction is determined based on the numerical correspondence between the first blue statistical measure and the second blue statistical measure.
9. The method of claim 8, wherein generating the color-corrected image comprises applying the red color correction to the red component of each of the second one or more pixels, applying the green color correction to the green component of each of the second one or more pixels, and applying the blue color correction to the blue component of each of the second one or more pixels.
10. The method of claim 1, wherein the transformation between the color of the first one or more pixels and the color of the second one or more pixels comprises a color correction matrix.
11. The method of claim 1 , wherein generating the color-corrected image comprises applying the determined transformation to the second one or more pixels to produce first color-corrected pixels.
12. The method of claim 1 , wherein determining the transformation between the color associated with the first one or more pixels and the color associated with the second one or more pixels comprises: dividing one or more of the first color image and the second color image into a plurality of segments; determining a first zone transform associated with a first subset of the second one or more pixels; as well as A second segment transform associated with a second subset of the second one or more pixels is determined, wherein the second subset of the second one or more pixels differs from the first subset by at least one pixel.
13. The method of claim 12, further comprising determining a global transform for generating the color-corrected image based on the first zone transform and the second zone transform.
14. The method of claim 12, further comprising generating the color-corrected image at least in part by transforming the first subset of the second one or more pixels by the first zone transform and transforming the second subset of the second one or more pixels by the second zone transform.
15. The method of claim 1, wherein the first one or more pixels do not include IR information.
16. A device for processing an image, the device comprising: Memory; as well as one or more processors coupled to the memory and configured to: obtaining a first color image including first one or more pixels from a first image sensor; obtaining a second color image including a second one or more pixels from a second image sensor, the second color image including infrared (IR) information from the second image sensor; determining a transformation between a color associated with the first one or more pixels and a color associated with the second one or more pixels based on a comparison associated with the first one or more pixels and the second one or more pixels; as well as A color-corrected image is generated by transforming the second color image including IR information into a color-corrected image based at least in part on the determined transformation.
17. The apparatus of claim 16, wherein a field of view associated with the first one or more pixels at least partially overlaps a field of view associated with the second one or more pixels.
18. The apparatus of claim 16, wherein the first image sensor is associated with a first optical axis and the second image sensor is associated with a second optical axis different from the first optical axis.
19. The apparatus of claim 16, wherein the first image sensor has a first resolution and the second image sensor has a second resolution different from the first resolution.
20. The apparatus of claim 16, wherein the first image sensor comprises a single pixel.
21. The apparatus of claim 16, wherein the first image sensor comprises a plurality of pixels.
22. The apparatus of claim 16, wherein an IR cut filter is disposed between a lens of the first image sensor and the first image sensor.
23. The apparatus of claim 16, wherein: Each of the first one or more pixels includes a corresponding red component, a green component, and a blue component, and each of the second one or more pixels includes a corresponding red component, a green component, and a blue component; and To determine the transformation between the color associated with the first one or more pixels and the color associated with the second one or more pixels, the one or more processors are configured to: determining a first green statistic for a green component of the first one or more pixels and a second green statistic for a green component of the second one or more pixels; determining a first red statistical measure for a red component of the first one or more pixels and a second red statistical measure for a red component of the second one or more pixels; determining a first blue statistical measure for a blue component of the first one or more pixels and a second blue statistical measure for a blue component of the second one or more pixels; determining a green color correction based on the numerical correspondence between the first green statistical measure and the second green statistical measure; determining a red color correction based on the numerical correspondence between the first red statistical measure and the second red statistical measure; as well as A blue color correction is determined based on the numerical correspondence between the first blue statistical measure and the second blue statistical measure.
24. The apparatus of claim 23, wherein generating the color-corrected image comprises applying the red color correction to the red component of each of the second one or more pixels, applying the green color correction to the green component of each of the second one or more pixels, and applying the blue color correction to the blue component of each of the second one or more pixels.
25. The apparatus of claim 16, the transformation between the color of the first one or more pixels and the color of the second one or more pixels comprising a color correction matrix.
26. The apparatus of claim 16, generating the color-corrected image comprises applying the determined transformation to the second one or more pixels to produce first color-corrected pixels.
27. The apparatus of claim 16, wherein the one or more processors are configured to: dividing one or more of the first color image and the second color image into a plurality of segments; determining a first zone transform associated with a first subset of the second associated one or more pixels; and A second segment transform associated with a second subset of the second one or more pixels is determined, wherein the second subset of the second one or more pixels differs from the first subset by at least one pixel.
28. The apparatus of claim 27, wherein the one or more processors are configured to determine a global transform for generating the color-corrected image based on the first zone transform and the second zone transform.
29. The apparatus of claim 27, wherein the one or more processors are configured to generate the color-corrected image at least in part by transforming the first subset of the second one or more pixels by the first segment transform and transforming the second subset of the second one or more pixels by the second segment transform.
30. The apparatus of claim 16, the first one or more pixels not including IR information.
