Efficient and flexible color processor

By introducing multi-matrix processing circuits and color correction circuits into the image processing system, dynamically adjusting weights and offset values, the color processing problem under different image sensors and filter topologies is solved, and efficient and flexible image processing and analysis are achieved. Data generation.

CN113891054BActive Publication Date: 2024-10-01TEXAS INSTRUMENTS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111299625.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2016-12-30
Filing Date
2017-12-27
Publication Date
2024-10-01
Estimated Expiration
2037-12-27

Smart Images

  • Figure CN113891054B_ABST
    Figure CN113891054B_ABST
Patent Text Reader

Abstract

The present invention relates to an efficient and flexible color processor. An image signal processor comprises a first matrix processing circuit (304), a post-processing circuit (306), a second matrix processing circuit (310) and a separate visual and analysis circuit (308). The first matrix processing circuit (304) is configured to receive a plurality of component images (252) generated based on an image captured by an image sensor, and to generate a plurality of first matrix outputs (324) based on the plurality of component images (252). The post-processing circuit (306) is configured to perform color conversion on the plurality of first matrix outputs (324) to generate a first brightness component (454) of the image and a chrominance component (460) of the image. The second matrix processing circuit (310) is configured to perform color conversion on the plurality of first matrix outputs (324) to generate a second brightness component (488) of the image and a saturation component (490) of the image. The separate visual and analysis circuit (308) is configured to generate visual and analysis data (474, 476, 478) of the image.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Information about divisional applications

[0002] This application is a divisional application of the invention patent application with the application date of December 27, 2017, application number "201711452832.7", and invention name "Efficient and flexible color processor". Technical Field

[0003] The invention relates to an efficient and flexible color processor. Background Art

[0004] In digital image processing, an image sensor is typically covered by a color filter array (CFA) consisting of a mosaic of color filters. The mosaic of color filters is configured to filter light that passes through the mosaic of filters and is therefore received by the image sensor by wavelength. A demosaicing or CFA interpolation algorithm is then utilized to produce a full-color image from the data captured by the original image sensor. Conventional demosaicing techniques utilize unique algorithms tuned for a given CFA format (e.g., Bayer, red / clear color filter (RCCC), etc.). Summary of the invention

[0005] The above problems are mainly solved by a system and method for color processing an image captured by an image sensor. In some embodiments, an image signal processor includes a first matrix processing circuit, a post-processing circuit, a second matrix processing circuit, and a separate visual and analysis circuit. The first matrix processing circuit is configured to receive a plurality of component images generated based on the image captured by the image sensor. The first matrix processing circuit is also configured to generate a plurality of first matrix outputs based on the plurality of component images. The post-processing circuit is configured to perform a color conversion on the plurality of first matrix outputs to generate a first brightness component of the image and a chrominance component of the image. The second matrix processing circuit is configured to perform a color conversion on the plurality of first matrix outputs to generate a second brightness component of the image and a saturation component of the image. The separate visual and analysis circuit is configured to generate visual data of the image and analysis data of the image.

[0006] Another illustrative embodiment is an image processing system, comprising: an optical filter array; an image sensor coupled to the optical filter array; and an image subsystem. The optical filter array is configured to filter electromagnetic waves. The image sensor includes a plurality of pixel sensors. Each of the plurality of pixel sensors is configured to receive the electromagnetic wave after the electromagnetic wave is filtered by the optical filter array, and convert the received electromagnetic wave into an electrical signal based on the intensity of the electromagnetic wave at each pixel sensor to generate a plurality of image pixels. The image subsystem includes an image signal processor. The image signal processor is configured to generate a plurality of component images based on the plurality of image pixels. The image signal processor is also configured to generate a plurality of first matrix outputs based on the plurality of component images. The image signal processor is also configured to perform color conversion on the plurality of first matrix outputs to generate first brightness components and chrominance components of the plurality of image pixels. The image signal processor is also configured to perform color conversion on the plurality of first matrix outputs to generate second brightness components and saturation components of the plurality of image pixels. The image signal processor is also configured to generate visual data and analytical data for the plurality of image pixels.

[0007] Yet another illustrative embodiment is a method for color processing an image captured by an image sensor. The method includes generating a plurality of first matrix outputs based on a plurality of component images, the plurality of component images generated based on the image. The method also includes color converting the plurality of first matrix outputs to generate a first luminance component and a chrominance component of the image. The method also includes color converting the plurality of first matrix outputs to generate a second luminance component and a saturation component of the image. The method also includes generating visual data and analytical data for the image. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] For a detailed description of various embodiments, reference will now be made to the accompanying drawings, in which:

[0009] Figure 1 shows an illustrative block diagram of an image processing system according to various examples;

[0010] Figure 2 shows an illustrative block diagram of an image subsystem included in an image processing system according to various examples;

[0011] Figure 3 An illustrative block diagram showing a color correction circuit included in an image signal processor of an image processing system according to various examples;

[0012] Figure 4 An illustrative block diagram showing a color correction circuit included in an image signal processor of an image processing system according to various examples;

[0013] Figure 5 An illustrative block diagram showing a four-dimensional matrix processing circuit included in a color correction circuit of an image processing system according to various examples;

[0014] Figure 6 An illustrative block diagram showing a nonlinear matrix processing circuit included in a color correction circuit of an image processing system according to various examples; and

[0015] Figure 7 An illustrative flow chart of a method for color processing an image captured by an image sensor according to various examples is presented.

[0016] Symbols and nomenclature

[0017] Certain terms are used throughout the following description and claims to refer to specific system components. Those skilled in the art will appreciate that companies may refer to components by different names. This document does not intend to distinguish between components that have different names but the same function. In the following discussion and claims, the terms "include" and "include" are used in an open manner and should therefore be interpreted to mean "including but not limited to...". Also, the term "couple" or "couples" is intended to mean a direct or indirect connection. Thus, if a first device is coupled to a second device, the connection may be by a direct connection or by an indirect connection via other devices and connectors. The statement "based on" is intended to mean "based at least in part on". Thus, if X is based on Y, X may be based on Y and any number of other factors. DETAILED DESCRIPTION

[0018] The following discussion is directed to various embodiments of the present invention. Although one or more of these embodiments may be preferred, the disclosed embodiments should not be interpreted or otherwise used as limiting the scope of the present invention (including the claims). In addition, it will be understood by those skilled in the art that the following description has broad application, and the discussion of any embodiment is only meant to be an exemplary embodiment of the embodiment, and it is not intended to imply that the scope of the present invention (including the claims) is limited to the embodiment.

[0019] In digital image processing, image sensors are typically covered by a color filter array (CFA) consisting of a mosaic of color filters. The mosaic of color filters is configured to filter the light that passes through a variety of filters and is therefore received by the image sensor according to wavelength. A demosaicing or CFA interpolation algorithm is then utilized to produce a full-color image from the data captured by the original image sensor. Conventional demosaicing techniques utilize unique algorithms adjusted for a given CFA format (e.g., Bayer, red / clear color filter (RCCC), etc.). Additional color processing is then performed on the demosaiced image. However, with the advent of a variety of new sensor formats, different topologies have begun to emerge. Conventional color processors require different algorithms for generating visual images and analyzing data for machine use. Thus, a scalable and flexible solution is needed to handle current and future image sensors and filters.

[0020] Figure 1 An illustrative block diagram of an image processing system 100 is shown according to various examples. The image processing system 100 may include a lens 102, a CFA 104, an image sensor 106, and an image subsystem 108. An electromagnetic wave 150 is configured to pass through the lens 102 to be filtered by the CFA 104 before being captured by the image sensor 106. The electromagnetic wave 150 may include visible light of various colors, infrared waves, ultraviolet waves, microwaves, radio waves, etc., or any combination thereof. The lens 102 may be any type of transmissive optical device configured to focus the electromagnetic wave 150 onto the image sensor 106 via the CFA 104. For example, the lens 102 may be a simple lens, a compound lens, a microwave lens, an electronic lens, an acoustic lens, etc.

[0021] CFA 104 may be a mosaic of filters configured to filter electromagnetic waves 150 by wavelength. For example, CFA 104 may be a Bayer filter. In a Bayer filter, a mosaic of visible light filters is arranged such that 50% of the filters allow green light to pass through the filters, 25% of the filters allow red light to pass through the filters, and 25% of the filters allow blue light to pass through the filters. In addition, the pattern of green, red, and blue filters constitutes a 2x2 grid pattern (i.e., for any given four adjacent 2x2 pixels, 2 filters are green filters, 1 filter is a red filter, and 1 filter is a blue filter). In alternative embodiments, CFA 104 may be any other type of filter such as RGBE (red, green, blue, emerald) filter, RCCC filter, RGB-IR (red, green, blue, infrared) filter, etc., and may be in the form of a 2x2 grid, a 4x4 grid, etc.

[0022] Each of the filters in CFA 104 may be arranged to cover a single pixel sensor in image sensor 106. Image sensor 106 may be any type of imaging sensor composed of a plurality of pixel sensors, each pixel sensor being configured to convert filtered electromagnetic waves 152 into electrical signals based on the intensity of the received electromagnetic waves. In some embodiments, image sensor 106 is a semiconductor charge coupled device (CCD), while in alternative embodiments, image sensor 106 includes active pixel sensors on a complementary metal oxide semiconductor (CMOS) sensor chip. Because each pixel sensor is covered by a filter in CFA 104, each pixel sensor detects the intensity of a specific type of electromagnetic wave. For example, some pixel sensors in image sensor 106 may detect the intensity of blue visible light, some pixel sensors in image sensor 106 may detect the intensity of red visible light, some pixel sensors in image sensor 106 may detect the intensity of infrared light, and so on.

[0023] The image subsystem 108 is configured to receive raw pixel data 154 detected by pixel sensors in the image sensor 106, and provide image processing to the raw pixel data to improve the visual quality of the captured image, and output a full-color image 160 from the captured data. More specifically, the image subsystem 108 includes circuitry that supports a heterogeneous sensor architecture, such as a sensor configured to sense two different types of electromagnetic waves, such as visible light and infrared light.

[0024] Figure 2 An illustrative block diagram of an image subsystem 108 included in an image processing system 100 according to various examples is shown. The image subsystem 108 may include a sensor interface 202, an image signal processor 204, and a host processor 206. The sensor interface 202 may be a controller for interfacing with the image sensor 106 to enable the image subsystem 108 to receive raw pixel data 154. The sensor interface 202 may be a parallel interface or a serial interface. In embodiments where the sensor interface 202 is a parallel interface, the sensor interface 202 may be comprised of a parallel bus to enable reception of the raw pixel data 154, the parallel bus containing video data and HSync and Vsync signals in accordance with the ITU-T standard. In embodiments where the sensor interface 202 is a serial interface, the sensor interface 202 may support serial reception of the raw pixel data 154 using low voltage differential signaling (LVDS).

[0025] The image signal processor 204 may include a CFA demosaicing circuit 212 and a color correction circuit 214. The CFA demosaicing circuit 212 is configured to demosaic the raw pixel data 154. In other words, the CFA demosaicing circuit 212 is configured to perform CFA interpolation on the raw pixel data 154 to generate component images 252. Each component image 252 is interpolated raw pixel data for a single component of the raw pixel data to form a complete image in a single component. For example, if the CFA 104 is a Bayer filter, then one component image will be a complete image of the intensity of red light as captured by the image sensor 106. Because only 25% of the pixels will contain data indicating the intensity of red light, the demosaicing circuit 212 interpolates the intensity of red light for pixels that have been filtered for red light. In other words, the CFA demosaicing circuit 212 performs interpolation on the red light component at each pixel position from the image sensor 106. Similarly, the second component image would be a complete image of the intensity of blue light as captured by image sensor 106. Similarly, the third component image would be a complete image of the intensity of green light as captured by image sensor 106. Component image 252 may also be a complete image of the intensity of infrared light as captured by image sensor 106. Thus, in some embodiments, CFA demosaic circuit 212 may generate four component images 252.

[0026] The color correction circuit 214 may be configured to provide color correction to generate visual data (e.g., a full-color image of the captured electromagnetic wave 150 for human viewing), grayscale data (e.g., a grayscale version of the image of the captured electromagnetic wave 150, analytical data (i.e., data for machine analysis), and / or non-linear image data (e.g., hue, saturation, and intensity (HSI), hue, saturation, and value (HSV), and / or hue, saturation, and light (HSL) color data). Thus, the color correction circuit 214 may generate image data 160 for the captured electromagnetic wave 150 that provides different types of data that can be utilized by an end user (e.g., a human or a machine). The main processor 206 may be configured to control the image subsystem 108. Both the image signal processor 204 and / or the main processor 206 may be processors that perform, for example, arithmetic, logic, and input / output (I / O) operations. Any hardware to execute computer instructions. The image signal processor 204 and / or the main processor 206 may include a central processing unit (CPU), a semiconductor-based microprocessor, a graphics processing unit (GPU), a digital signal processor (DSP), and / or other hardware devices suitable for retrieving and executing instructions that may be stored in a memory. In addition, the image signal processor 204 and / or the main processor 206 may include a single processor, multiple processors, a single computer, a computer network, or any other type of processing device. For example, the image signal processor 204 and / or the main processor 206 may include multiple cores on a chip, multiple cores across multiple chips, multiple cores across multiple devices, or a combination thereof. The image signal processor 204 and / or the main processor 206 may include at least one integrated circuit (IC) having multiple electronic components, other control logic, other electronic circuits, or a combination thereof.

[0027] Figure 3 An illustrative block diagram of color correction circuitry 214 included in an image signal processor of an image processing system according to various examples is shown. Color correction circuitry 214 may include pre-processing circuitry 302, four-dimensional (4D) matrix processing circuitry 304, post-processing circuitry 306, separate vision and analysis circuitry 308, non-linear matrix processing circuitry 310, and secondary output generation circuitry 312. In some embodiments, component images 252 may be received by pre-processing circuitry 302, which may be configured to pre-process component images 252 to prepare color images for further processing. For example, pre-processing circuitry 302 may be configured to utilize a noise filter to correct certain defects in component images 252 to generate pre-processing circuit outputs 322, which may then be received by 4D matrix processing circuitry 304 for processing.

[0028] The 4D matrix processing circuit 304 is configured to generate one or more matrix outputs 324 based on the received component images 252, which, as discussed above, may be in the form of outputs 322. More specifically, the 4D matrix processing circuit 304 is configured to generate the matrix outputs 324 based on the following calculations:

[0029] E1(x,y)=W 11 C 252a (x,y)+W 12 C 252b (x,y)+W 13 C 252c (x,y)+W 14 C 252d (x,y)+O1

[0030] E2(x,y)=W 21 C 252a (x,y)+W 22 C 252b (x,y)+W 23 C 252c (x,y)+W 24 C 252d (x,y)+O2

[0031] E3(x,y)=W 31 C 252a (x,y)+W 32 C 252b (x,y)+W 33 C 252c (x,y)+W 34 C 252d (x,y)+O3

[0032] Where E1 to E3 are matrix outputs 324, W 11 To W 34 are various weight values, C 252a to C 252d is a component image (in this embodiment, four component images) received from CFA demosaicing circuit 212 (eg, via pre-processing circuit 302) and O1 to O3 are various offset values. 11 To W 34 The offset values ​​O1 to O3 may be determined based on the type of image sensor 106. Thus, 4D matrix processing circuit 304 may be programmed to generate weight values ​​W based on the type of image sensor 106. 11 To W 34 and offset values ​​O1 to O3. For example, the following table lists various weight values ​​W that can be used for various image sensor types: 11 To W 34and offset values ​​O1 to O3. In this way, the 4D matrix processing circuit is able to generate matrix output 324 for a variety of image sensor types.

[0033]

[0034] The post-processing circuit 306 receives the matrix output 324 and is configured to perform color conversion on the matrix output 324 to produce YUV color model image components. For example, the post-processing circuit 306 may be configured to produce a luma component (i.e., a Y component) and two chroma components (i.e., a U component and a V component) (collectively referred to as post-processing circuit outputs 326). In some embodiments, the post-processing circuit 306 may perform gamma compression and / or contrast stretching on the matrix output 324 before performing the color conversion. Additionally, the two chroma components may be downsampled from a 444 format to a 420 format to reduce the resolution of the chroma components by up to 50% in both the horizontal and vertical directions.

[0035] The non-linear matrix processing circuit 310 may also receive the matrix output 324 and may be configured to perform color conversion on the matrix output 324 to generate HSI, HSL, and / or HSV color model image components. For example, the non-linear matrix processing circuit 310 may be configured to generate a hue component (i.e., an H component), a saturation component (i.e., an S component), and / or a brightness component (i.e., an I component, an L component, and / or a V component) (collectively, non-linear image data 328).

[0036] The separate vision and analysis circuit 308 may receive the post-processing circuit output 326 and / or the non-linear matrix processing circuit output 328 and be configured to generate visual data 354 of an image captured by the image sensor 106 and / or analysis data 356 of an image captured by the image sensor 106. In other words, the separate vision and analysis circuit 308 may generate both the visual data 354, which in some embodiments includes a full-color image for the captured electromagnetic waves 150 for human viewing, and the analysis data, which in some embodiments includes data to be used for machine analysis. For example, the visual data may require 8 bits, while the analysis data may require 12 bits. Thus, the separate vision and analysis circuit 308 may receive 12-bit luminance components (Y) and chrominance components (UV) from the post-processing circuit 306 and / or receive a 12-bit saturation component (S) from the non-linear matrix processing circuit 310 and convert the components to 8-bit components. The separate visual and analysis circuit 308 may then output the 8-bit luma component (Y) and the chroma component (UV) and / or the 8-bit saturation component (S) as visual data 354. The separate visual and analysis circuit 308 may also output the 12-bit chroma component (UV) from the post-processing circuit 306 as analysis data 356. In this way, both visual data and analysis data may be generated from the same data pipeline.

[0037] The secondary output generation circuit 312 may receive the luma component, the Y component from the post-processing circuit 306 and receive both the I component, the L component, and / or the V component from the non-linear matrix processing circuit 310. The secondary output generation circuit 312 may select one and / or both of the luma components to output a grayscale version 352 of the image. In this manner, a single circuit block including the pre-processing circuit 302, the 4D matrix processing circuit 304, the post-processing circuit 306, the separate vision and analysis circuit 308, the non-linear matrix processing circuit 310, and the second output generation circuit 312 may simultaneously generate a grayscale version of an image, a visual component of the image, and analysis data regarding an image captured by any type of image sensor.

[0038] Figure 4 An illustrative block diagram of color correction circuitry 214 included in an image signal processor of an image processing system according to various examples is shown. Figure 4 The color correction circuit 214 shown in FIG. Figure 3 . Thus, color correction circuit 214 may receive component images 252a to 252d. Although in Figure 4 4D matrix processing circuit 304. As discussed above, the 4D matrix processing circuit is configured to generate matrix outputs 324a to 324c. In addition to being received by the 4D matrix processing circuit 304, the multiplexer 434 may also receive the component images 252a to 252d. The multiplexer 434 may be programmed to select any one of the component images 252a to 252d based on the type of image sensor 106 utilized to generate the selected signal 480. For example, for a Bayer RGB sensor, the multiplexer 434 may be programmed to select any one of the component images 252a to 252d as the selected signal 480. However, for an RCCC sensor, the multiplexer 434 may be programmed to select the component image 252a as the selected signal 480.

[0039] The selected signal 480 and the matrix outputs 324a to 324c may be received by a multiplexer 408. The multiplexer 408 may be programmed to select one or more of the selected signal 480 and the matrix outputs 324a to 324c to be received by the histogram circuit 410. The histogram circuit 410 may be configured to generate a contrast-stretched tone curve that may be used in other parts of the image subsystem 108. The histogram circuit 410 may downsample the received image (i.e., via any of the selected signal 480 and / or the matrix outputs 324a to 324c) by a factor of 2 in the horizontal and / or vertical directions using an averaging filter. The histogram circuit 410 may support a local memory that may be read by the host processor 206. Thus, a downsampled version of the image may be stored in this local memory for further processing by the host processor 206.

[0040] As discussed above, the matrix outputs 324a to 324c may also be received by the post-processing circuit 306. The post-processing circuit 306 may include a contrast stretch or gamma circuit 402, an RGB to YUV circuit 404, and a color processing circuit 406. The contrast stretch or gamma circuit 402 may be implemented in a lookup table (LUT) and is configured to provide gain and offset to stretch the histogram generated by the histogram circuit 410 and increase the contrast in the matrix outputs 324a to 324c. The contrast stretch or gamma circuit 402 may also be configured to replace the standard gamma table used for standard color processing. The resulting outputs 452a to 452c are received by the RGB to YUV circuit 404. The RGB to YUV circuit 404 is a circuit configured to convert the 12-bit RGB outputs 452a to 452c to 12-bit YUV components. The RGB to YUV circuit 404 may utilize a matrix-based conversion as follows:

[0041] Y(x,y)=WRY*R(x,y)+WGY*G(x,y)+WBY*B(x,y)+O1

[0042] U(x,y)=WRU*R(x,y)+WGU*G(x,y)+WBU*B(x,y)+O2

[0043] V(x,y)=WRV*R(x,y)+WGV*G(x,y)+WBV*B(x,y)+O3

[0044] Where WRY, WGY, WBY, WRU, WGU, WBU, WRV, WGV, and WBV are weights, and O1, O2, and O3 are offsets. The weights may be 12 bits with a sign, with 8 bits of fractional precision representing a range of -8 to +7.996. The offsets may be 13 bits with a sign. The output Y component 454 (luminance component) of the RGB to YUV circuit 404 may be received by the multiplexer 436 and the separate vision and analysis circuit 308. The color processing circuit 406 may receive the output U component 456 and V component 458 (collectively referred to as chroma components) of the RGB to YUV circuit 404. The color processing circuit 406 may be configured to downsample the chroma components 456 and 458 from a 444 format to a 420 format, effectively reducing the chroma resolution of 456 to 50% in both the horizontal and vertical directions. Downsampling may be performed using three tap filtering followed by decimation. Thus, color processing circuit 406 may include two lines of memory for downsampling in the vertical direction. Conversion logic within color processing circuit 406 then generates chroma in a co-located / co-positioned format in both the horizontal and vertical directions and outputs chroma components 460 for receipt by separate vision and analysis circuit 308.

[0045] Multiplexers 428 through 432 receive matrix outputs 324a through 324c from 4D matrix processing circuit 304 and outputs 452a through 452c from contrast stretch or gamma circuit 402. Multiplexer 428 is programmed to select either matrix output 324a or output 452a to produce a red (R) component 482. Multiplexer 430 is programmed to select either matrix output 324b or output 452b to produce a green (G) component 484. Multiplexer 432 is programmed to select either matrix output 324c or output 452c to produce a blue (B) component 486. R component 482, G component 484, and B component 486 are received by nonlinear matrix processing circuit 310. As discussed above, the nonlinear matrix processing circuit 310 is configured to generate a hue component (ie, H component), a saturation component (ie, S component) 490 and / or a brightness component (ie, I component, L component, and / or V component) 488.

[0046] Because the visual data may need to be in 8-bit format, and luma component 454, chroma component 460, R component 482, G component 484, and B component 486 may be 12-bit, separate visual and analysis circuit 308 may include LUTS 414-420. LUTS 414-420 are configured to downsample incoming 12-bit signals to 8-bit output signals.

[0047] Luma component 488 is received by multiplexer 412, which is programmed to select output signal 480, luma component 454, and / or luma component 488. The output of multiplexer 488 is received by LUT 414, where the output is downsampled to an 8-bit signal (luma component 464). Chroma component 460 is received by LUT 416, where the chroma component is downsampled to an 8-bit signal (chroma component 462). Saturation component 490 is received by LUT 418, where the saturation component is downsampled to an 8-bit signal (saturation component 466). R component 482, G component 484, and B component 486 are received by LUT 420, where the components are downsampled to 8-bit signals (R component 468, G component 470, and B component 472).

[0048] Multiplexer 422 can be programmed to select G component 484 or chroma component 462 to generate 8-bit visual component 474. Multiplexer 424 can be programmed to select R component 482 or luma component 464 to generate 8-bit visual component 476. Multiplexer 426 can be programmed to select B component 486 or saturation component 466 to generate 8-bit visual component 478. 12-bit chroma component 462 can also be provided as analysis data to other machines for use. In this way, visualization data and analysis data can be generated in parallel at the same time.

[0049] The multiplexer 436, which may be part of the secondary output generation circuit 312, receives the selected signal 480, the luma component 454 from the RGB-to-YUV circuit 404, and the luma component 488 from the non-linear matrix processing circuit 310. The multiplexer 436 may be programmed to select the selected signal 480, the luma component 454 from the RGB-to-YUV circuit 404, and the luma component 488 from the non-linear matrix processing circuit 310 based on the type of image sensor 106 utilized to generate the selected signal 480. For example, for a Bayer RGB sensor, a Bayer CMY (cyan, magenta, yellow) sensor, a Bayer RCBC (red, clear, blue, clear) sensor, an RGB-IR sensor, and an RGBC (red, green, blue, clear) sensor, the multiplexer 434 may be programmed to select the luma component 454 from the RGB-to-YUV circuit 404 or the luma component 488 from the non-linear matrix processing circuit 310 to generate a grayscale version of the image 352. However, for an RCCC sensor, multiplexer 436 may be programmed to select selected signal 480 to produce a grayscale version of image 352 .

[0050] Figure 5An illustrative block diagram of a 4D matrix processing circuit 304 included in the color correction circuit 214 of the image processing system 100 according to various examples is shown. As discussed above, the 4D matrix processing circuit 304 is configured to generate one or more matrix outputs 324a-324c based on the received component images 252a-252d. More specifically, the 4D matrix processing circuit 304 is configured to generate the matrix outputs 324a-324c based on the following calculations:

[0051] E1(x,y)=W 11 C 252a (x,y)+W 12 C 252b (x,y)+W 13 C 252c (x,y)+W 14 C 252d (x,y)+O1

[0052] E2(x,y)=W 21 C 252a (x,y)+W 22 C 252b (x,y)+W 23 C 252c (x,y)+W 24 C 252d (x,y)+O2

[0053] E3(x,y)=W 31 C 252a (x,y)+W 32 C 252b (x,y)+W 33 C 252c (x,y)+W 34 C 252d (x,y)+O3

[0054] Where E1 to E3 are matrix outputs 324, W 11 To W 34 are various weight values, C 252a to C 252d is a component image (in this embodiment, four component images) received from CFA demosaic circuit 212, and O1 to O3 are various offset values. Therefore, 4D matrix processing circuit 304 may include multipliers 532 to 554. To generate matrix output 324a, component image 252a may be multiplied by multiplier 532 with weights W. 11 (labeled as signal 502). The component image 252b can be multiplied by the weight W using multiplier 534. 12 (labeled as signal 504). The component image 252c can be multiplied by the weight W using multiplier 536. 13(labeled as signal 506). The component image 252d can be multiplied by the weight W using multiplier 538. 14 (labeled as signal 508). The resulting products of the multiplications performed by multipliers 532 to 538 are added. In some embodiments, the sum is right-shifted by 7 (divided by 128). The result can be added to the offset value O1, which can be right-shifted by 1 (divided by 2). The resulting value can be made to conform to 12 bits as the resulting matrix output 324a.

[0055] Similarly, to generate matrix output 324b, component image 252a may be multiplied by weights W using multiplier 540. 21 (labeled as signal 510). The component image 252b can be multiplied by the weight W using multiplier 542. 22 (labeled as signal 512). The component image 252c can be multiplied by the weight W using multiplier 544. 23 (labeled as signal 514). The component image 252d can be multiplied by the weight W using multiplier 546. 24 (labeled as signal 516). The resulting multiplication products of the multiplications performed by multipliers 540 to 546 are added. In some embodiments, the sum is right-shifted by 7 (divided by 128). The result can be added to the offset value O2, which can be right-shifted by 1 (divided by 2). The resulting value is made to fit 12 bits as the resulting matrix output 324b. To produce the matrix output 324c, the component image 252a can be combined with the weight W using multiplier 548. 31 (labeled as signal 518). The component image 252b can be multiplied by the weight W using multiplier 550. 32 (labeled as signal 520). The component image 252c can be multiplied by the weight W using multiplier 552. 33 (labeled as signal 522). The component image 252d can be multiplied by the weight W using multiplier 554. 34 The resulting products of the multiplications performed by multipliers 548 to 554 are added. In some embodiments, the sum is right-shifted by 7 (divided by 128). The result may be added to an offset value O2, which may be right-shifted by 1 (divided by 2). The resulting value is made to conform to 12 bits as the resulting matrix output 324c.

[0056] Figure 6 An illustrative block diagram of a nonlinear matrix processing circuit 310 included in the color correction circuit 214 of the image processing system 100 according to various examples is shown. As discussed above, the nonlinear matrix processing circuit 310 may be configured to perform a color conversion on the matrix output 324 to produce HSI, HSL, and / or HSV color model image components including a hue component (i.e., an H component), a saturation component (i.e., an S component), and / or a brightness component (i.e., an I component, an L component, and / or a V component).

[0057] The nonlinear matrix processing circuit 310 may include a maximum / minimum circuit 602, a multiplexer 604, a weighted average calculation circuit 606, a saturation calculation circuit 608, and / or a divider 610. The maximum / minimum circuit 602 may be configured to receive the R component 482, the G component 484, and the B component 486 from the multiplexers 428 to 432. The maximum / minimum circuit 602 is configured to generate a maximum value 622 from the R component 482, the G component 484, and the B component 486. For example, if the maximum value among the R component 482, the G component 484, and the B component 486 is the G component 482, then the maximum / minimum circuit 602 will generate a maximum value 622 that is equal to the G component 482. Similarly, the maximum / minimum circuit 602 is configured to generate a minimum value 624 from the R component 482, the G component 484, and the B component 486. For example, if the minimum value among the R component 482, the G component 484, and the B component 486 is the G component 482, then the maximum / minimum circuit 602 will generate a minimum value 624 that is equal to the G component 482. The maximum / minimum circuit 602 may also be configured to sum all of the R component 482, the G component 484, and the B component 486 to generate a summed value 632. Additionally, the maximum / minimum circuit 602 may also pass the R component 482, the G component 484, and the B component 486 without changing them.

[0058] The multiplexer 604 may be programmed to select any of the maximum value 622, the minimum value 624, the R component 482, or the B component 486 depending on the type of color model image being utilized. For example, for the HSI color model, the multiplexer 604 may be programmed to select the R component 482 as the output component 634 and the B component 486 as the output component 636. For the HSL color model, the multiplexer 604 may be programmed to select the maximum value 622 as the output component 634 and any of the components as the output component 636. For the HSV color model, the multiplexer 604 may be programmed to select the maximum value 622 as the output component 634 and the minimum value 624 as the output component 636.

[0059] Next, the output components 634-636, along with the G component 484, may be received by the weighted average calculation circuit 606. The weighted average calculation circuit 606 may be configured to generate the luma component 488 according to:

[0060] Luminance component 488(x,y)=W1C 634 (x,y)+W2C 636 (x,y)+W3C 484 (x,y)+O1

[0061] Where W1 to W3 are various weight values, C 634 is the output component 634, C 636 is the output component 636, C 484 is the G component 484, and O1 is the offset value. The weight values ​​W1 to W3 and the offset value O1 may be determined based on the type of image sensor 106. Thus, the weighted average calculation circuit 606 may be programmed to generate the weight values ​​W1 to W3 and the offset value O1 based on the type of color model image utilized. For example, for the HSI color model, the weights W1 to W3 may all be assigned 1 / 3 (85), and the offset equals zero. Thus, the luminance component 488 is:

[0062]

[0063] For the HSL color model, weights W1 to W2 may be assigned 0.5 (128), while weight W3 and offset are set to zero. Thus, the luminance component 448 is:

[0064]

[0065] For the HSV color model, weight W1 may be assigned 1, while weights W2 to W3 and offset O1 are set to zero. Thus, the luminance component 448 is a maximum value 622. In alternative embodiments, weights W1 to W3 and offset O1 may be set to any customizable values.

[0066] The saturation calculation circuit 608 may be configured to generate a numerator and a denominator 638 for use by the divider 610 to generate the S component 490. The saturation calculation circuit 608 may be configured to receive the maximum value 622, the minimum value 624, and the summed value 632 from the maximum / minimum value circuit 602. The saturation calculation circuit 608 may be programmed to generate the numerator and the denominator 638 according to the type of color model image utilized. For example, for the HSI color model, the saturation calculation circuit 608 may generate the numerator as the minimum value 624 and the denominator as the summed value 632. For the HSL color model, the saturation calculation circuit 608 may generate the numerator as the maximum value 622 minus the minimum value 624 and the denominator as the 25 5-gray value. For the HSV color model, the saturation calculation circuit 608 may generate the numerator as the maximum value 622 minus the minimum value 624 and the maximum value 622.

[0067] The divider 610 is configured to perform division on the color model being utilized. For example, for the HSI color model, the divider 610 may generate the S component 490 according to the following terms:

[0068]

[0069] For the HSL color model, the divider 610 may generate the S component 490 according to:

[0070]

[0071] For the HSV color model, the divider 610 may generate the S component 490 according to:

[0072]

[0073] Figure 7 An illustrative flow chart of a method 700 for color processing an image captured by an image sensor 106 according to various examples is shown. Although depicted sequentially for convenience, at least some of the actions shown may be performed in a different order and / or in parallel. In addition, some embodiments may perform only some of the actions shown. In some embodiments, at least some of the operations of method 700, as well as other operations described herein, may be performed by image signal processor 204 (including color correction circuitry 214) and implemented in logic and / or by a processor executing instructions stored in a non-transitory computer-readable storage medium.

[0074] The method begins by generating a plurality of first matrix outputs in block 702. For example, a 4D matrix processing circuit, such as 4D matrix processing circuit 304, may be configured to generate matrix outputs, such as matrix outputs 324a-324c, based on received image components, such as image components 252a-252c.

[0075] In block 704, method 700 continues by color converting the plurality of first matrix outputs to generate first luma and chroma components of an image. For example, a post-processing circuit, such as post-processing circuit 306, may be configured to generate a luma component, such as luma component 454 (i.e., a Y component) and two chroma components, such as chroma components 460 of the image (i.e., a U component and a V component). Method 700 continues in block 706 by color converting the plurality of first matrix outputs to generate second luma and saturation components of the image. For example, a non-linear matrix processing circuit, such as non-linear matrix processing circuit 310, may be configured to generate a luma component, such as luma component 488 (i.e., an I component, an L component, and / or a V component) and a saturation component, such as S component 490 (i.e., an S component).

[0076] In block 708, method 700 continues with generating visual and analysis data for an image. For example, a separate visual and analysis circuit (e.g., separate visual and analysis circuit 308) may receive the first luma component and the chroma component, the second luma component and the saturation component, and / or the red, green, and blue components, and generate an 8-bit visual component and a 12-bit analysis component. Method 700 continues in block 710 with generating a grayscale version of the image. For example, a secondary output generation circuit (e.g., secondary output generation circuit 312) may be configured to receive the first and / or second luma components and generate a grayscale version of the image.

[0077] The above discussion is intended to be an illustrative example of the principles and various embodiments of the present invention. For those skilled in the art, numerous changes and modifications will become apparent once the above disclosure is fully understood. It is intended that the appended claims should be interpreted to cover all such changes and modifications.

Claims

1. A circuit system, wherein include: a first circuit configured to generate a matrix output based on a type of image sensor; A second circuit is configured to: receiving the matrix output; as well as outputting a processed circuit output, wherein the processed circuit output comprises one of a Y component, a U component, and a V component; A third circuit is configured to: receiving the processed circuit output; receiving the matrix output; as well as outputting a color component, wherein the color component comprises one of an I component, an L component, a V component, and an S component; as well as A fourth circuit configured to: receiving the color component; receiving the processed circuit output; as well as Outputting a first set of data and a second set of data; the processed circuit output includes a brightness component, a first chroma component and a second chroma component; the color component includes a saturation component; as well as The first set of data includes visual data of an image based on one of the luma component, the first chroma component, the second chroma component, and the saturation component; The second set of data includes analysis data of the image based on the first chrominance component and the second chrominance component.

2. The circuit system according to claim 1, further comprising: include: A fifth circuit configured to: receiving a plurality of component images generated based on an image captured by the image sensor; as well as Outputs the processed component images.

3. The circuit system according to claim 2, in: The fifth circuit includes a noise filter.

4. The circuit system according to claim 2, further comprising: include: A sixth circuit configured to: receiving the component images; receiving the processed circuit output; receiving the color component including one of the I component, the L component, and the V component; as well as Outputs a grayscale image of the image.

5. The circuit system according to claim 1, in: The matrix output is generated based on weights and offsets associated with the type of the image sensor.

6. The circuit system according to claim 1, in: The second circuit is further configured to perform gamma compression on the matrix output.

7. The circuit system according to claim 1, in: The second circuit is further configured to perform contrast stretching on the matrix output.

8. The circuit system according to claim 1, in: The second circuit is further configured to downsample a plurality of chroma components output by the matrix from a 444 format to a 420 format in horizontal and vertical directions.

9. The circuit system according to claim 1, in: The type of the image sensor is programmed into the system.

10. A method for a circuit, wherein include: generating, by the first circuit, a matrix output based on a type of image sensor; generating, by a second circuit, a processed circuit output based on the matrix output, the processed circuit output comprising one of a Y component, a U component, and a V component; generating, by a third circuit, a plurality of color components based on the processed circuit output and the matrix output, the color component comprising one of an I component, an L component, a V component, and an S component; generating, by a fourth circuit, a first set of data and a second set of data based on the plurality of color components and the processed circuit output; The processed circuit output includes a luminance component, a first chrominance component, and a second chrominance component; The plurality of color components include a saturation component; The first set of data includes visual data of an image based on one of the luma component, the first chroma component, the second chroma component, and the saturation component; as well as The second set of data includes analysis data of the image based on the first chrominance component and the second chrominance component.

11. The method according to claim 10, further comprising: include: Processed component images are generated by a fifth circuit based on a plurality of component images generated by an image captured by the image sensor.

12. The method according to claim 11, in: The fifth circuit includes a noise filter.

13. The method according to claim 11, further comprising: include: A grayscale image of the image is generated by a sixth circuit based on the component images, the processed circuit outputs, and the plurality of color components.

14. The method according to claim 11, in: The matrix output is generated based on weights and offsets associated with the type of the image sensor.

15. The method according to claim 11, further comprising: include: The matrix output is gamma compressed by the second circuit.

16. The method according to claim 11, further comprising: include: The matrix output is contrast stretched by the second circuit.