Image processing apparatus and imaging device

The image processing device reduces computational load by using edge detection and threshold-based selection of average or median color differences to minimize false colors in demosaic processing, facilitating real-time processing on smaller processors.

JP2024154762APending Publication Date: 2024-10-31LAPIS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023068792
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-19
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing demosaic processing techniques for single-chip pixel units result in increased calculation amounts due to interpolated color difference calculations in both horizontal and vertical directions.

Method used

An image processing device that performs edge detection to derive edge components, calculates average and median values of color differences, and selects between these values based on edge component values and thresholds to reduce calculation load.

Benefits of technology

Enables demosaic processing with reduced computational requirements, minimizing false colors and enabling real-time processing on smaller processors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024154762000001_ABST
    Figure 2024154762000001_ABST
Patent Text Reader

Abstract

To obtain an image processing apparatus and an imaging device that can suppress a false color while reducing an operation amount.SOLUTION: An image processing apparatus derives an edge component value of a target pixel by performing edge detection processing using the luminance of the target pixel of image information including luminance and a color difference in each pixel and the luminance of a peripheral pixel of the target pixel, derives an average value of the color differences of the target pixel and the peripheral pixel, derives a median value of the color difference of the target pixel and the peripheral pixel, and selects either of the average value and the median value as the color difference of the target pixel using the edge component value, the average value and the median value.SELECTED DRAWING: Figure 9
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an image processing device and an imaging device that perform demosaic processing. [Background technology]

[0002] Patent Document 1 discloses an image processing device that sets a reference area, which is an area composed of a predetermined number of pixels, for a first image composed of an image signal output from a single-chip pixel unit in which pixels corresponding to each of a plurality of color components are regularly arranged on a plane, and changes the size of the reference area. This image processing device evaluates statistics obtained from the pixel values ​​of the pixels in the reference area to detect the direction of a target position in the first image. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2014-200033 A Summary of the Invention [Problem to be solved by the invention]

[0004] In the technique described in Patent Document 1, interpolated color differences in the horizontal direction and vertical direction are calculated, and statistics of the interpolated color differences within a reference area are calculated, which may result in an increased amount of calculation.

[0005] The present disclosure has been made in consideration of the above circumstances, and has an object to provide an image processing device and an imaging device that are capable of performing demosaic processing that suppresses false colors while reducing the amount of calculation. [Means for solving the problem]

[0006] The image processing device according to the disclosed technology includes a first derivation unit that derives an edge component value of a pixel of interest by performing edge detection processing using the luminance of the pixel of interest and the luminance of pixels surrounding the pixel of interest, which are image information including luminance and chrominance for each pixel; a second derivation unit that derives an average value of the chrominance of the pixel of interest and the surrounding pixels; a third derivation unit that derives a median value of the chrominance of the pixel of interest and the surrounding pixels; and a selection unit that uses the edge component value, the average value, and the median value to select either the average value or the median value as the chrominance of the pixel of interest. Effect of the Invention

[0007] According to the present disclosure, it is possible to perform demosaic processing on a single-chip image sensor with a reduced amount of calculation. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a block diagram showing an example of a configuration of an imaging device. [Diagram 2] FIG. 2 is a diagram for explaining first image information. [Diagram 3] FIG. 2 is a block diagram showing an example of a functional configuration of the image processing device. [Figure 4] 11 is a diagram for explaining a generation process of second image information. FIG. [Diagram 5] 11A and 11B are diagrams for explaining a calculation process of luminance and color difference; [Figure 6] 11A and 11B are diagrams for explaining a process of deriving an edge component value. [Figure 7] 11A and 11B are diagrams for explaining a process of deriving an average value of color differences. [Figure 8] 11A and 11B are diagrams for explaining a process of deriving a median color difference. [Figure 9] 4 is a schematic diagram illustrating an example of a circuit configuration of a selection unit. FIG. [Figure 10] 11 is a flowchart illustrating an example of a demosaic process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, examples of embodiments for carrying out the technology of the present disclosure will be described in detail with reference to the drawings.

[0010] First, the configuration of an imaging device 10 according to this embodiment will be described with reference to FIG. 1. As shown in FIG. 1, the imaging device 10 includes an imaging element 12 and an image processing device 14. The image processing device 14 includes a processor 20 and a memory 22. An example of the processor 20 is a programmable logic device (PLD) whose circuit configuration can be changed after manufacture, such as a field programmable gate array (FPGA). The processor 20 may be a central processing unit (CPU) or the like that is a general-purpose processor that executes software (programs). The processor 20 may also be a combination of two or more processors of the same type or different types. The memory 22 is a volatile memory and is used as a temporary storage area.

[0011] The imaging element 12 is an image sensor such as a CCD (Charge Coupled Device) image sensor or a CMOS (Complementary Metal Oxide Semiconductor) image sensor. The imaging element 12 outputs image information 16 in which each pixel has a pixel value of one of a plurality of different colors. The image information 16 is an example of first image information related to the disclosed technology.

[0012] As shown in Fig. 2, the imaging element 12 according to this embodiment outputs image information 16 in which pixels having a pixel value of R (Red), pixels having a pixel value of G (Green), and pixels having a pixel value of B (Blue) are arranged in a Bayer array. Fig. 2 shows an example in which the image information 16 has 16 pixels.

[0013] The image processing device 14 has a function of performing demosaic processing on the image information 16 input from the imaging element 12. The functional configuration of the image processing device 14 according to this embodiment will be described with reference to Fig. 3. As shown in Fig. 3, the image processing device 14 includes a generation unit 40, a first derivation unit 42, a second derivation unit 44, a third derivation unit 46, and a selection unit 48. The processor 20 executes preset logic to function as the generation unit 40, the first derivation unit 42, the second derivation unit 44, the third derivation unit 46, and the selection unit 48.

[0014] Preprocessing such as defective pixel correction, black level adjustment, and white balance adjustment is performed on the image information 16 input from the imaging element 12, and the image information 16 after the preprocessing is input to the generation unit 40. As shown in FIG. 4, the generation unit 40 uses the image information 16 to generate image information 18 including luminance and color difference for each pixel. The image information 18 is an example of second image information related to the disclosed technology. FIG. 4 shows an example in which the generation unit 40 generates image information 18 of 9 pixels from image information 16 of 16 pixels.

[0015] Specifically, as shown in Fig. 5, the generation unit 40 calculates the luminance Y, chrominance Cb, and chrominance Cr of each pixel of the image information 18 using the pixel values ​​of four adjacent pixels in the image information 16 according to the following formulas (1) to (3). Note that the coefficients in the formulas (1) to (3) are merely examples, and the present invention is not limited to these examples. Furthermore, a simplified formula with reduced accuracy may be used as a conversion formula from RGB to YCbCr. Y=(0.587((Gr+Gb) / 2))+(0.299R)+(0.114B)···(1) Cb=0.564(BY) (2) Cr = 0.713(RY) (3)

[0016] In the example of FIG. 4, A to I indicate each pixel of the image information 18, YA to YI indicate the luminance Y of each pixel, CbA to CbI indicate the color difference Cb of each pixel, and CrA to CrI indicate the color difference Cr of each pixel.

[0017] The first derivation unit 42 derives an edge component value of a pixel of interest by performing edge detection processing using the luminance of the pixel of interest and the luminance of pixels surrounding the pixel of interest in the image information 18. The surrounding pixels here refer to the eight pixels surrounding the pixel of interest.

[0018] As shown in Fig. 6, the first derivation unit 42 applies a filter that emphasizes vertical edges and a filter that emphasizes horizontal edges to the luminance of a pixel of interest and the luminance of surrounding pixels of the image information 18, respectively, and derives an edge component value Edg of the pixel of interest by adding up the application results of each filter. Fig. 6 shows an example in which pixel E is the pixel of interest and pixels A to D and F to I are surrounding pixels. Note that the edge derivation process shown in Fig. 6 is just an example, and other filters may be used.

[0019] 7, the second derivation unit 44 derives an average value Cb_ave of the color differences Cb of the pixel of interest and the surrounding pixels, and also derives an average value Cr_ave of the color differences Cr of the pixel of interest and the surrounding pixels.

[0020] 8, the third derivation unit 46 sorts the chrominance Cb of the pixel of interest and the surrounding pixels in ascending or descending order and specifies the median Cb_med of the chrominance Cb of the pixel of interest and the surrounding pixels to derive the median Cb_med of the chrominance Cb of the pixel of interest and the surrounding pixels. The third derivation unit 46 also sorts the chrominance Cr of the pixel of interest and the surrounding pixels in ascending or descending order and specifies the median Cr_med of the chrominance Cr of the pixel of interest and the surrounding pixels to derive the median Cr_med of the chrominance Cr of the pixel of interest and the surrounding pixels.

[0021] The selection unit 48 uses the edge component value Edg, the average value Cb_ave, and the median value Cb_med to select either the average value Cb_ave or the median value Cb_med as the chrominance Cb of the pixel of interest.

[0022] Specifically, when the absolute value of the average value Cb_ave is equal to or less than the absolute value of the median value Cb_med, the selection unit 48 selects the average value Cb_ave as the chrominance Cb of the pixel of interest. When the absolute value of the average value Cb_ave exceeds the absolute value of the median value Cb_med and the absolute value of the edge component value Edg exceeds a threshold, the selection unit 48 selects the median value Cb_med as the chrominance Cb of the pixel of interest. When the absolute value of the average value Cb_ave exceeds the absolute value of the median value Cb_med and the absolute value of the edge component value Edg is equal to or less than the threshold, the selection unit 48 selects the average value Cb_ave as the chrominance Cb of the pixel of interest. Similarly to the chrominance Cb, the selection unit 48 uses the edge component value Edg, the average value Cr_ave, and the median value Cr_med to select either the average value Cr_ave or the median value Cr_med as the chrominance Cr of the pixel of interest.

[0023] The selection unit 48 replaces the chrominance Cb and chrominance Cr of the pixel of interest in the image information 18 with the selected chrominance Cb and chrominance Cr. Post-processing such as edge enhancement and hue adjustment is performed on the image information 18 in which the chrominance Cb and chrominance Cr have been replaced. The image information 18 after the post-processing is output to a non-volatile storage device or the like included in the imaging device 10 and stored therein.

[0024] Fig. 9 shows an example of a circuit configuration for implementing the selection unit 48. As shown in Fig. 9, the selection unit 48 includes calculation circuits 80A, 80B, and 80C that calculate absolute values, comparison circuits 82A and 82B that compare the magnitude of two inputs, and selectors 84A and 84B. Note that since the circuit configuration of the portion related to the selection of chrominance Cb and the circuit configuration of the portion related to the selection of chrominance Cr are the same configuration, the circuit configuration of the portion related to the selection of chrominance Cb will be described, and a description of the circuit configuration of the portion related to the selection of chrominance Cr will be omitted.

[0025] The edge component value Edg is input to the calculation circuit 80C, and the calculation circuit 80C outputs the absolute value of the edge component value Edg to the comparison circuit 82A. The absolute value of the edge component value Edg and a threshold value are input to the comparison circuit 82A. The comparison circuit 82A determines whether the absolute value of the edge component value Edg exceeds the threshold value, and outputs the determination result to the selector 84B. The median value Cb_med is input to the calculation circuit 80A, and the calculation circuit 80A outputs the absolute value of the median value Cb_med to the comparison circuit 82B. The average value Cb_ave is input to the calculation circuit 80B, and the calculation circuit 80B outputs the absolute value of the average value Cb_ave to the comparison circuit 82B.

[0026] The comparison circuit 82B determines whether or not the absolute value of the average value Cb_ave exceeds the absolute value of the median value Cb_med, and outputs the determination result to the selector 84A.

[0027] The average value Cb_ave, the median value Cb_med, and the output of the comparison circuit 82B are input to the selector 84A. The selector 84A selects either the average value Cb_ave or the median value Cb_med based on the output of the comparison circuit 82B, and outputs it to the selector 84B.

[0028] Specifically, when the absolute value of the average value Cb_ave is equal to or less than the absolute value of the median value Cb_med, the selector 84A selects the average value Cb_ave and outputs it to the selector 84B. On the other hand, when the absolute value of the average value Cb_ave exceeds the absolute value of the median value Cb_med, the selector 84A selects the median value Cb_med and outputs it to the selector 84B.

[0029] The selector 84B receives the average value Cb_ave, the output of the selector 84A, and the output of the comparison circuit 82A. The selector 84B selects and outputs either the average value Cb_ave or the output of the selector 84A based on the output of the comparison circuit 82A.

[0030] Specifically, when the absolute value of the edge component value Edg exceeds the threshold, the selector 84B selects and outputs the output of the selector 84A, and when the absolute value of the edge component value Edg is equal to or smaller than the threshold, the selector 84B selects and outputs the average value Cb_ave.

[0031] The output of the selector 84A is the average value Cb_ave if the absolute value of the average value Cb_ave is equal to or less than the absolute value of the median value Cb_med, and is the median value Cb_med if the absolute value of the average value Cb_ave exceeds the absolute value of the median value Cb_med. In other words, if the absolute value of the average value Cb_ave is equal to or less than the absolute value of the median value Cb_med, the same average value Cb_ave is input to the selector 84B, so that the selector 84B outputs the average value Cb_ave regardless of whether the absolute value of the edge component value Edg exceeds the threshold value. If the absolute value of the average value Cb_ave exceeds the absolute value of the median value Cb_med, the selector 84B selects either the average value Cb_ave or the median value Cb_med depending on the result of the determination of whether the absolute value of the edge component value Edg exceeds the threshold value.

[0032] Next, the operation of the image processing device 14 according to this embodiment will be described with reference to Fig. 10. The demosaic process shown in Fig. 10 is executed when image information 16 is input from the imaging element 12 to the image processing device 14. Note that, of the chrominance Cb and the chrominance Cr, only the chrominance Cb will be described here, and a description of the chrominance Cr will be omitted, but the same process as that for the chrominance Cb is executed for the chrominance Cr.

[0033] 10, the generation unit 40 generates image information 18 including luminance and color difference for each pixel, using the image information 16, as described above. In step S12, the first derivation unit 42 derives an edge component value Edg of a pixel of interest by performing edge detection processing using the luminance of the pixel of interest and the luminance of pixels surrounding the pixel of interest in the image information 18 generated in step S10, as described above.

[0034] In step S14, the second derivation unit 44 derives the average value Cb_ave of the chrominance Cb of the pixel of interest and the surrounding pixels of the image information 18 generated in step S10. In step S16, the third derivation unit 46 sorts the chrominance Cb of the pixel of interest and the surrounding pixels of the image information 18 generated in step S10 in ascending or descending order and specifies the median value Cb_med of the chrominance Cb of the pixel of interest and the surrounding pixels, thereby deriving the median value Cb_med of the chrominance Cb of the pixel of interest and the surrounding pixels.

[0035] In step S18, the selection unit 48 determines whether the absolute value of the average value Cb_ave derived in step S14 is equal to or less than the absolute value of the median value Cb_med derived in step S16. If this determination is positive, the process proceeds to step S20. In step S20, the selection unit 48 selects the average value Cb_ave as the chrominance Cb of the pixel of interest. When the process of step S20 ends, the demosaic process ends.

[0036] If the determination in step S18 is a negative determination, the process proceeds to step S22. In step S22, the selection unit 48 determines whether or not the absolute value of the edge component value Edg derived in step S12 exceeds a threshold value. If this determination is a positive determination, the process proceeds to step S24. In step S24, the selection unit 48 selects the median value Cb_med as the chrominance Cb of the pixel of interest. When the process in step S24 ends, the demosaic process ends.

[0037] If the determination in step S22 is a negative determination, the process proceeds to step S26. In step S26, the selection unit 48 selects the average value Cb_ave as the chrominance Cb of the pixel of interest. When the process in step S26 ends, the demosaic process ends. The above demosaic process is repeatedly executed while changing the pixel of interest of the image information 18.

[0038] As described above, according to this embodiment, when the absolute value of the edge component value is equal to or less than the threshold, that is, the average value of the color difference is used in places other than the edge. On the other hand, when the absolute value of the edge component value exceeds the threshold, that is, in the vicinity of the edge where color difference is particularly likely to occur, the smaller value of the average value and the median value of the color difference is used. This makes it possible to perform demosaic processing that can reduce false colors on the edge while preventing fading in places other than the edge. Furthermore, according to this embodiment, the amount of calculation can be reduced, so that real-time processing is possible even with a relatively small processor such as an ISP (Image Signal Processor) equipped in an in-vehicle camera. [Explanation of symbols]

[0039] 10. Imaging device 12 Image sensor 14 Image processing device 16, 18 Image information 20 processors 40 Generation part 42 First derivation part 44 Second derivation part 46 Third Derivation 48 Selection section

Claims

1. a first derivation unit that derives an edge component value of a pixel of interest by performing edge detection processing using a luminance of the pixel of interest and luminance of pixels surrounding the pixel of interest in image information including luminance and color difference for each pixel; a second derivation unit that derives an average value of color differences between the pixel of interest and the surrounding pixels; a third derivation unit that derives a median value of color differences between the pixel of interest and the surrounding pixels; a selection unit that selects, using the edge component value, the average value, and the median value, one of the average value and the median value as a color difference of the pixel of interest; An image processing device comprising:

2. The selection unit selects the average value as the color difference of the pixel of interest when the absolute value of the average value is equal to or less than the absolute value of the median value. The image processing device according to claim 1 .

3. The selection unit selects the median as the color difference of the pixel of interest when the absolute value of the average value exceeds the absolute value of the median and the absolute value of the edge component value exceeds a threshold value, and selects the average value as the color difference of the pixel of interest when the absolute value of the average value exceeds the absolute value of the median and the absolute value of the edge component value is equal to or less than the threshold value.

3. The image processing device according to claim 1 or 2.

4. an imaging element that outputs first image information in which each pixel has a pixel value of one of a plurality of different colors; an image processing device comprising: a generation unit that generates second image information including luminance and chrominance for each pixel by using the first image information; a first derivation unit that derives an edge component value of a pixel of interest by performing an edge detection process using the luminance of the pixel of interest in the second image information and the luminance of pixels surrounding the pixel of interest; a second derivation unit that derives an average value of chrominance of the pixel of interest and the surrounding pixels; a third derivation unit that derives a median value of chrominance of the pixel of interest and the surrounding pixels; and a selection unit that uses the edge component value, the average value, and the median value to select either the average value or the median value as the chrominance of the pixel of interest. An imaging device comprising:

Citation Information

Patent Citations

  • Image processing device, method, and program

    JP2014200033A