Image processing apparatus, imaging apparatus, image processing method, and program

The image processing device addresses exposure setting errors by calculating and updating correction values for each region, stabilizing image brightness and gradation, thus preventing flickering and ensuring consistent image quality.

JP2024128806AInactive Publication Date: 2024-09-24CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023038028
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing image processing systems face issues with exposure setting errors due to variations in image sensor design, leading to flickering and unintended image output when correction gains oscillate, affecting the dynamic range and gradation consistency.

Method used

An image processing device that corrects exposure images by calculating and updating correction values based on gradation differences between regions, using a brightness adjustment value to synchronize exposure time and analog gain for each pixel block, and applying a correction mechanism to stabilize image brightness.

Benefits of technology

The solution effectively stabilizes image brightness by minimizing exposure setting errors, preventing flickering and ensuring consistent gradation across regions, thereby producing intended images without unintended fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024128806000001
    Figure 2024128806000001
Patent Text Reader

Abstract

To appropriately correct an error in exposure settings for every area resulting from an imaging sensor.SOLUTION: An image processing apparatus corrects an exposure image picked up by an imaging sensor that can perform exposure settings for every area, and the image processing apparatus has: calculation means that calculates a correction value for correcting an error in the exposure settings for every area on the basis of an evaluation value evaluating steps in a gradation occurring on a boundary between the areas in the imaging sensor; update means that updates an adjustment value related to adjustment of the exposure image according to the exposure settings by using the calculated correction value; and correction means that corrects the exposure image on the basis of the adjustment value. The update means updates the adjustment value when the number of areas where the calculated correction value is outside a first range is larger than a first threshold.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an image processing device, an imaging device, an image processing method, and a program. [Background technology]

[0002] The dynamic range of a camera is limited by the number of saturation electrons in the image sensor and the bit precision after A / D conversion (analog / digital conversion). In order to expand the dynamic range of a camera, a method has been proposed to partially change the exposure (exposure time and analog gain) of the image sensor. This technology divides the entire light receiving area of ​​the image sensor into multiple areas, sets the exposure for each area, and multiplies the digital signal obtained by the image sensor by a correction gain for each area calculated from the exposure setting, thereby correcting the difference (difference) in the exposure settings for each area.

[0003] However, if an error from the design value occurs in the exposure time or analog gain due to the image sensor, the exposure may not match between regions, resulting in a step in gradation at the boundary. Patent Document 1 discloses a technology that estimates an error in exposure setting in each region caused by the image sensor, derives a correction value for correcting the estimated exposure setting error, and corrects image data using the derived correction value. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2019-75658 A Summary of the Invention [Problem to be solved by the invention]

[0005] In reality, the image information that can be obtained for each image differs slightly, so the correction gain value that is found may differ slightly for each image. Also, the correction gain value that is found does not necessarily converge to one value, but may fluctuate within a certain range. If a correction gain that differs slightly for each frame is applied to the output image, the brightness of the image may change slightly, causing it to look like flickering. Also, if a correction amount that corrects a value that deviates significantly from a certain standard is found, and correction is performed accordingly, an image that is different from the image that the user originally intended may be output.

[0006] An object of the present disclosure is to make it possible to appropriately correct errors in exposure settings for each region that arise due to an image sensor. [Means for solving the problem]

[0007] An image processing device according to one embodiment of the present disclosure is an image processing device that performs correction on an exposure image captured by an image sensor capable of setting exposure for each region, and includes a calculation means that calculates a correction value for correcting an exposure setting error for each region based on an evaluation value that evaluates a gradation step that occurs at the boundary between the regions in the image sensor, an update means that uses the calculated correction value to update an adjustment value related to adjustment of the exposure image according to the exposure setting, and a correction means that corrects the exposure image based on the adjustment value, and is characterized in that the update means updates the adjustment value when the number of the regions for which the calculated correction value is outside a first range is greater than a first threshold value. Effect of the Invention

[0008] According to the present disclosure, it is possible to appropriately correct errors in exposure settings for each region that arise due to the image sensor. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of a schematic configuration of an imaging device. [Diagram 2] FIG. 2 is a diagram illustrating an image sensor unit. [Diagram 3] 4 is a diagram illustrating an example of the configuration of a brightness adjustment value correction unit. [Figure 4] FIG. 2 is a diagram showing an example of a pixel block and its surrounding pixel blocks. [Diagram 5] 13 is a flowchart illustrating an example of processing by a brightness adjustment value correction unit. [Figure 6] 13 is a flowchart illustrating an example of an update determination and update process. [Figure 7] 11A and 11B are diagrams illustrating an example of control of a brightness adjustment value. [Figure 8] 13 is a flowchart illustrating an example of processing by an update unit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, the embodiments will be described with reference to the drawings. Note that the following embodiments do not limit the technology of the present disclosure related to the claims, and all of the combinations of features described in the embodiments are not necessarily essential to the solution of the technology of the present disclosure.

[0011] [Embodiment 1] Fig. 1 is a block diagram showing a schematic configuration example of an image capture device 100 to which an image processing device according to this embodiment is applied. The image capture device 100 according to this embodiment also includes various components that a general image capture device has, but for the sake of simplicity of illustration and explanation, Fig. 1 shows only the main components according to this embodiment. The image capture device 100 includes a synchronization control unit 101, an image capture element unit 103, an A / D conversion unit 104, an exposure correction unit 105, a gradation conversion unit 106, an image output unit 108, an exposure time control unit 109, a gain control unit 110, an exposure condition calculation unit 111, and a brightness adjustment value correction unit 131. The image capture sensor 102 includes the image capture element unit 103 and the A / D conversion unit 104.

[0012] The imaging device 100 will be described in brief, starting with the imaging element unit 103 and followed by an overview of each component. The image sensor unit 103 has an image sensing area (light receiving area). The image sensing area is divided into a plurality of areas called pixel blocks. The image sensor unit 103 can be driven in units of pixel blocks (areas) and has a function of performing an exposure operation (accumulation of electric charge) with a different exposure time for each area. The pixel blocks will be described later. In the case of this embodiment, the image sensor unit 103 performs exposure with the exposure time set for each area by an exposure control signal 117 supplied from an exposure time control unit 109. The exposure control signal 117 is a signal for setting an exposure time for each area of ​​the image sensor unit 103. Then, the image sensor unit 103 reads out the electric charge accumulated in each pixel with the exposure time set for each area by the exposure control signal 117 as a pixel potential 118 and outputs it to the A / D conversion unit 104.

[0013] The A / D conversion unit 104 performs analog / digital conversion on the pixel potential 118 read out from the image sensor unit 103 to convert it into a digital value. In this embodiment, an analog gain 121 corresponding to each region is set in the A / D conversion unit 104 by the gain control unit 110. The A / D conversion unit 104 applies the analog gain 121 to the pixel potential 118 output from the image sensor unit 103 for each region, and then performs analog / digital conversion to convert it into a digital value. Hereinafter, an image made up of a digital signal that has been analog / digitally converted by applying the analog gain 121 to each region by the A / D conversion unit 104 is referred to as an exposure image 122. The exposure image 122 output from the A / D conversion unit 104 is sent to the exposure condition calculation unit 111, the brightness adjustment value correction unit 131, and the exposure correction unit 105.

[0014] The exposure condition calculation unit 111 calculates and updates the exposure time 112 and analog gain value 113 for each region based on the exposure image 122 so that the imaging conditions are optimal. For example, the exposure condition calculation unit 111 acquires a histogram of pixel values ​​based on the luminance distribution of the exposure image 122 for each pixel block. If the pixel values ​​are distributed on the bright side, the exposure condition calculation unit 111 changes (updates) the exposure time 112 and analog gain value 113 of the pixel block (region) to set values ​​that allow the image to be captured darker. If the pixel values ​​are distributed on the dark side, the exposure condition calculation unit 111 changes (updates) the exposure time 112 and analog gain value 113 of the pixel block (region) to set values ​​that allow the image to be captured brighter. The value of the exposure time 112 for each region is sent to the exposure time control unit 109, the exposure correction unit 105, and the brightness adjustment value correction unit 131. The analog gain value 113 for each region is sent to the gain control unit 110 , the exposure correction unit 105 , and the brightness adjustment value correction unit 131 .

[0015] The brightness adjustment value correction unit 131 calculates a correction value for the brightness adjustment value based on the exposure time 112 and the analog gain value 113. The brightness adjustment value correction unit 131 multiplies the brightness adjustment value 130 obtained from the exposure time 112 and the analog gain value 113 by the correction value according to the calculated correction value, updates the brightness adjustment value 130, and outputs the updated brightness adjustment value 130 to the exposure correction unit 105. The operation of the brightness adjustment value correction unit 131 will be described later.

[0016] Here, the brightness adjustment value 130 will be described. The brightness adjustment value is a value representing a conversion coefficient for converting a signal value captured under the exposure conditions (exposure settings) of each region into a signal value captured under the reference exposure conditions. For example, the reference exposure condition is exposure condition A, and in this exposure condition A, the exposure time is (1 / 30) seconds, and the analog gain is 8 times. Also, exposure condition B, which is different from the reference exposure condition A, is exposure condition in which the exposure time is (1 / 60) seconds, and the analog gain is 2 times. Between exposure condition A and exposure condition B, there is a relationship in which exposure condition B is (1 / 2) times that of exposure condition A in terms of exposure time, and exposure condition B is (1 / 4) times that of exposure condition A in terms of analog gain. Therefore, if the signal value when a certain region C is captured under exposure condition B is SB, and the signal value when the region C is captured under the reference exposure condition is SA, the following relationship is established between signal value SA and signal value SB. SB=(1 / 2)×(1 / 4)×SA=(1 / 8)×SA That is, the signal values ​​SA and SB have the following relationship: The brightness adjustment value for area C is eight times this value. SA=8×SB

[0017] The synchronization control unit 101 generates a synchronized exposure time output pulse 120 and a gain output pulse 114. The synchronization control unit 101 outputs the generated exposure time output pulse 120 to the exposure time control unit 109. The synchronization control unit 101 outputs the generated gain output pulse 114 to the gain control unit 110. In this way, the synchronization control unit 101 controls the synchronization between the processing of the exposure time control unit 109 and the processing of the gain control unit 110. The exposure time output pulse 120 is a signal for controlling the timing at which the exposure time control unit 109 outputs the exposure control signal 117 to the image sensor unit 103. The exposure time control unit 109 changes the exposure time for each arbitrary pixel block of the image sensor unit 103 by outputting the exposure control signal 117 to the image sensor unit 103 based on the exposure time output pulse 120. In addition, the gain output pulse 114 is a signal for controlling the timing at which the gain control unit 110 outputs the analog gain 121 to the A / D conversion unit 104. The gain control unit 110 changes the gain applied to the pixel potential for each arbitrary pixel block by outputting an analog gain 121 to the A / D conversion unit 104 based on the gain output pulse 114. In this manner, in this embodiment, the synchronization control unit 101 controls the operation of the exposure time control unit 109 and the gain control unit 110 in synchronization with each other, so that an exposure image 122 in which the exposure time and analog gain are appropriately changed for each pixel block of the image sensor unit 103 can be output.

[0018] The exposure time control unit 109 generates an exposure control signal 117 for each region based on the exposure time output pulse 120 and the value of the exposure time 112 for each region, and outputs it to the image sensor unit 103. As a result, the exposure time according to the exposure time 112 for each region is set for the image sensor unit 103 at an appropriate timing.

[0019] The gain control unit 110 outputs the analog gain value 113 for each region to the A / D conversion unit 104 in synchronization with the timing of the gain output pulse 114 as an analog gain 121 for each region corresponding to the pixel potential 118 for each region of the image sensor unit 103. As a result, the A / D conversion unit 104 performs analog / digital conversion after multiplying the analog gain 121 for each region corresponding to the pixel potential 118 for each region. The data that has undergone the analog / digital conversion is sent to the exposure correction unit 105, the exposure condition calculation unit 111, and the brightness adjustment value correction unit 131 as an exposure image 122 for each region.

[0020] The exposure correction unit 105 performs gradation expansion processing based on the brightness adjustment value 130 on the exposure image 122 for each region sent from the A / D conversion unit 104 to generate a gradation-extended image 123. For example, the exposure correction unit 105 recognizes under what conditions the input exposure image 122 for each region is captured based on the exposure time 112 for each region and the analog gain value 113 for each region, and corrects the exposure image 122 for each region using the brightness adjustment value 130 corresponding to the conditions. The exposure correction unit 105 performs gradation expansion processing on the exposure image 122 for each region, which is represented by a bit number of 10 bits, to generate a gradation-extended image 123 represented by 17 bits. The generated gradation-extended image 123 is then sent to the gradation conversion unit 106.

[0021] The gradation conversion unit 106 performs gradation conversion on the gradation expanded image 123 and outputs the gradation converted image 124 to the image output unit 108. In this embodiment, the gradation conversion is a process of generating, for example, an 11-bit gradation converted image 124 by gamma conversion of the 17-bit gradation expanded image 123. Note that the gradation conversion process in this embodiment is performed to suppress the data rate in the subsequent processing. In this embodiment, the bit lengths of the exposed image 122 and the gradation converted image 124 are 10 bits and 11 bits, respectively, but these bit lengths are merely examples and are not limited to these.

[0022] The image output unit 108 outputs the tone-converted image 124 to a downstream component of the imaging device 100 or to the outside.

[0023] FIG. 2 is a diagram for explaining a configuration example of the image sensor unit 103. The imaging area of ​​the image sensor unit 103 has a plurality of pixel blocks 201. Furthermore, the pixel block 201 has a plurality of pixels 202. In this embodiment, the number of pixels in the width 206 direction (horizontal line direction) of the imaging area of ​​the image sensor unit 103 is 2000 pixels, and the number of pixels in the height 205 direction is 1000 pixels (i.e., the number of horizontal lines in the vertical direction is 1000 lines). Furthermore, the number of pixels in the width 204 direction (horizontal line direction) of the pixel block 201 is 100 pixels, and the number of pixels in the height 203 direction is 100 pixels (100 horizontal lines in the vertical direction). In this case, the number of pixel blocks 201 in the imaging area of ​​the image sensor unit 103 is 20 in the horizontal direction and 10 in the vertical direction. Moreover, pixel blocks [0,0] to [19,9] written in each pixel block 201 in FIG. 2 indicate the position of each pixel block 201 in the imaging area, and the value in brackets [ ] indicates the horizontal and vertical indexes of each pixel block in the imaging area. In FIG. 2, for example, the pixel block 201 located in the upper right of the image sensor unit 103 is pixel block [19,0]. Also, a set of pixel blocks represented by the same vertical index is called a block row. That is, block row N is made up of pixel blocks [0,N] to [19,N]. For example, block row 5 is made up of pixel blocks [0,5] to [19,5]. Note that the sizes (number of pixels in the vertical and horizontal directions) of the image sensor unit 103 and the pixel blocks 201 are not limited to the above-mentioned examples. Also, the shape and aspect ratio of the pixel 202 are not limited, and may be, for example, a rectangle instead of a square. Furthermore, the pixel block 201 may be made up of only one pixel 202.

[0024] In this embodiment, the exposure time and analog gain of each pixel block 201 are controllable. Here, the exposure time corresponds to the time during which charge is accumulated in the pixels (light receiving elements) of the image sensor unit 103 during imaging. For this reason, for example, assuming that the amount of incident light on the image sensor unit 103 is the same and the pixels are not saturated, the longer the exposure time, the higher the pixel potential 118 becomes, and a brighter image can be obtained. In other words, if the amount of incident light is the same and pixel saturation is not taken into consideration, for example, when the exposure time is (1 / 480) seconds and (1 / 30) seconds, a brighter image can be obtained with the exposure time of (1 / 30) seconds.

[0025] The analog gain is a gain applied to the pixel potential 118 in the A / D conversion unit 104 during imaging. Therefore, the larger the analog gain value, the larger the digital pixel value (digital value that has been analog-to-digital converted after gain application) output from the A / D conversion unit 104 becomes.

[0026] Returning to FIG. 1, the configuration and operation of the imaging device 100 of this embodiment will be described. The image sensor unit 103 captures an image while the exposure time is controlled for each pixel block 201 based on the exposure control signal 117. The image sensor unit 103 then outputs a pixel potential 118 according to the charge accumulated in each pixel.

[0027] The A / D conversion unit 104 multiplies the pixel potential 118 output from the image sensor unit 103 by an analog gain 121 set for each pixel block of the image sensor unit 103, performs digital conversion, and outputs an exposure image 122. In this embodiment, the exposure image 122 is a 10-bit digital value. The analog gain 121 can take four gain values, for example, ×1, ×2, ×4, and ×8.

[0028] The exposure correction unit 105 performs gradation expansion processing based on the brightness adjustment value 130 on the exposure image 122 for each region input from the A / D conversion unit 104, and outputs a gradation expanded image 123. The exposure correction unit 105 recognizes the exposure setting for the exposure image 122 based on the exposure time 112 for each region and the analog gain value 113 for each region, that is, the condition under which the exposure image 122 for each region was captured. Then, the exposure correction unit 105 corrects the exposure image 122 for each region using the brightness adjustment value 130 corresponding to the condition under which the exposure image 122 for each region was captured.

[0029] Next, a description will be given of the brightness adjustment value correction unit 131 that determines the brightness adjustment value 130. Fig. 3 is a block diagram showing an example of the configuration of the brightness adjustment value correction unit 131. The brightness adjustment value correction unit 131 includes a RAM 301, a boundary evaluation unit 302, and a correction value calculation unit 303. The RAM 301 temporarily holds data used by each functional unit in the brightness adjustment value correction unit 131, such as the average value calculated by the boundary evaluation unit 302, for example.

[0030] The boundary evaluation unit 302 acquires boundary information of each pixel block in the imaging area of ​​the image sensor unit 103, and acquires pixel values ​​of peripheral pixels of the pixel block boundary in the input exposure image 122 based on the acquired boundary information. Then, the boundary evaluation unit 302 calculates an average value of pixel values ​​of peripheral pixels of the pixel block boundary. For example, the boundary evaluation unit 302 calculates an average value of pixel values ​​of peripheral pixels of the pixel block boundary of a pixel block of interest and an average value of pixel values ​​of peripheral pixels of the pixel block adjacent to the pixel block in advance for all pixel blocks in the frame, and stores them in the RAM 301. Then, the boundary evaluation unit 302 reads out the average value of pixel values ​​of peripheral pixels of the boundary from the RAM 301 as necessary when calculating the evaluation value of each pixel block. The boundary evaluation unit 302 performs gradation expansion processing on the calculated average value of pixel values ​​using a brightness adjustment value 130 corresponding to the exposure time 112 and analog gain value 113 of the pixel block. The gradation-expanded average value is sent to the correction value calculation unit 303 through the RAM 301.

[0031] The correction value calculation unit 303 calculates a brightness adjustment value 130 based on the average value obtained by gradation expansion in the boundary evaluation unit 302, the exposure time 112, and the analog gain value 113, and outputs the calculated brightness adjustment value 130 to the exposure correction unit 105. The correction value calculation unit 303 has a matrix generation unit 304, an inverse matrix calculation unit 305, a first correction value calculation unit 306, and an update unit 308. The update unit 308 has a determination unit 309.

[0032] The matrix generation unit 304 generates a coefficient matrix for calculating a correction value based on the average value of the pixel values ​​of the boundary peripheral pixels, which have been subjected to gradation expansion by the boundary evaluation unit 302. The inverse matrix calculation unit 305 calculates the inverse matrix of the coefficient matrix generated by the matrix generation unit 304. The first correction value calculation unit 306 calculates a first correction value based on an error in the exposure setting. A value corresponding to each region is found as the first correction value.

[0033] The update unit 308 determines whether or not to update the brightness adjustment value 130 using the first correction value derived by the first correction value calculation unit 306, and updates the brightness adjustment value 130 using the first correction value according to the determination result. The determination unit 309 determines whether or not to update the brightness adjustment value 130.

[0034] The operations of the matrix generation unit 304, the inverse matrix calculation unit 305, the first correction value calculation unit 306, the update unit 308, and the determination unit 309 will be described in detail later. The implementation form of the processing of each of the above-mentioned components does not matter, and may be implemented as a hardware circuit, or may be implemented as software and processed by a CPU, or may be a mixture of these.

[0035] The formula for calculating the correction value used by the correction value calculation unit 303 will be described below. FIG. 4 is a diagram showing an example of a pixel block [i,j] and its surrounding pixel blocks (adjacent pixel blocks). In this embodiment, i can take values ​​from 0 to 19, and j can take values ​​from 0 to 9. The average pixel values ​​of the pixels around the boundaries on the upper, lower, left, and right sides of the pixel block [i,j] are respectively defined as T i,j , B i,j , L i,j , Ri,j It is expressed as follows.

[0036] As a process of calculating a correction value from the average pixel values ​​around the boundary, the evaluation value E after error correction of the step between the pixel block [i,j] and the adjacent pixel block [i+1,j] on the right side and the adjacent pixel block [i,j+1] on the lower side is calculated. i,j is expressed by the following equation (1), where ΔF i,j represents the correction amount (first correction value) of the brightness adjustment value 130 of the pixel block [i,j].

[0037]

number

[0038] This evaluation value E i,j The overall evaluation value E obtained by adding up all the regions is expressed by the following formula (2). In formula (2), it is assumed that one screen has M pixel blocks in the horizontal direction and N pixel blocks in the vertical direction. In the example of this embodiment, M=20 and N=10.

[0039]

number

[0040] To cancel the error in the boundary between pixel blocks is to minimize the overall evaluation value E. i,j When the well-known least squares method is used, this is equivalent to solving the matrix equation shown in formula (3) below. In other words, the left side is the product of a row-direction (M×N)-dimensional and column-direction (M×N)-dimensional coefficient matrix (matrix A) having elements consisting of average values ​​of pixel values ​​of pixels around the boundary, and a correction value matrix (matrix F) with (M×N) rows and 1 column of correction values. The right side is a matrix consisting of constants, and is an (M×N)-row, 1-column matrix with all elements being 1.

[0041]

number

[0042] Also, here, the element A in the (i+j×M)th row and (u+v×M)th column of matrix A i,j,u,v is expressed by the following equation (4).

[0043]

number

[0044] However, pixel blocks located at the edge of an image have boundaries where there are no adjacent pixel blocks. For example, there are no pixel blocks above or to the left of pixel block [0,0]. In such cases, the contribution to the coefficient matrix from the pixel values ​​of the pixels around the boundary on the side where no pixel blocks exist is set to 0. For example, in the case of pixel block [0,0], three coefficient matrix elements are generated as shown in equation (5) below, and the elements above and to the left of pixel block [0,0] are not generated.

[0045]

number

[0046] In this manner, the matrix equation for calculating the correction value is obtained.

[0047] Next, a description will be given of the operation of the brightness adjustment value correction unit 131. Fig. 5 is a flowchart showing an example of processing executed by the brightness adjustment value correction unit 131. Note that the symbol "S" in the description of each processing indicates a step in the flowchart, and the same applies to the following flowcharts.

[0048] In S501, the boundary evaluation unit 302 derives an average value of pixel values ​​of boundary peripheral pixels of each pixel block based on the exposure image 122, the exposure time 112, the analog gain value 113, and the brightness adjustment value 130. This average value of the pixel values ​​of the boundary peripheral pixels of the pixel block is a gradation-expanded average value that has been subjected to gradation expansion processing using the exposure time 112 and the brightness adjustment value 130 corresponding to the analog gain value 113. Note that the average value of the pixel values ​​of the boundary peripheral pixels of the pixel block is used when evaluating a gradation step that occurs at the boundary between areas for which exposure can be set by the image sensor 102, and therefore can also be said to be an evaluation value.

[0049] In S502, the matrix generation unit 304 of the correction value calculation unit 303 generates a coefficient matrix for calculating a correction value, such as the matrix A in equation (3), based on the average pixel values ​​of the boundary peripheral pixels derived in S501. For example, if the imaging element unit 103 has a total of 200 pixel blocks, 20 in the horizontal direction and 10 in the vertical direction, as shown in Fig. 2, the correction value calculation unit 303 generates a square matrix with 200 rows and 200 columns as the coefficient matrix A.

[0050] In S503, the inverse matrix calculation unit 305 of the correction value calculation unit 303 calculates the inverse matrix of the coefficient matrix A generated in S502. A known method can be used to obtain the inverse matrix, and for example, the inverse matrix can be generated by a method such as the Gauss-Jordan method. The inverse matrix calculation unit 305 calculates the inverse matrix A of the coefficient matrix A as the calculation result in S503. -1 However, if the inverse matrix does not exist for the input coefficient matrix A, the inverse matrix cannot be obtained.

[0051] In S504, the correction value calculation unit 303 determines whether or not an inverse matrix exists in the coefficient matrix derived in S502. If the correction value calculation unit 303 determines that the coefficient matrix does not have an inverse matrix (NO in S504), it determines not to correct the brightness adjustment value 130. In this case, the process shown in FIG. 5 is terminated without performing the calculation process of the correction value in S505 and the update determination and update process of the brightness adjustment value in S506. On the other hand, if the correction value calculation unit 303 determines that the coefficient matrix has an inverse matrix (YES in S504), the process of step S505 is executed.

[0052] In S505, the first correction value calculation unit 306 of the correction value calculation unit 303 calculates a first correction value. The first correction value calculation unit 306 calculates the inverse matrix A of the coefficient matrix calculated in S503. -1 Based on the above, the first correction value ΔF i,j The first correction value ΔF is calculated as follows. i,j The matrix with these elements is called the first correction value matrix F. That is, the inverse matrix A of the coefficient matrix is ​​added to the left side of both sides of the equation (3). -1 By multiplying these, the first correction value matrix F is obtained as shown in equation (6).

[0053]

number

[0054] Here, if each element of the first correction value matrix F is directly multiplied by the brightness adjustment value 130 of each pixel block and reflected, the error (brightness step) between adjacent pixel blocks is reduced. However, in reality, the image information that can be acquired for each frame (each image) differs slightly, so the brightness adjustment value obtained by correction using each element of the obtained first correction value matrix F may also differ slightly for each frame. In addition, the brightness adjustment value obtained by this correction does not necessarily converge to one value, and may fluctuate finely within a certain range. If a brightness adjustment value that differs slightly for each frame is applied to an output image, the luminance of the output image may change slightly and appear to flicker, which is visually undesirable. In addition, when correcting the brightness adjustment value, if a correction amount that corrects a value that deviates greatly from a certain standard is obtained, correcting the brightness adjustment value accordingly may output an image different from the image originally intended by the user. Therefore, in the next step S506, a determination is made as to whether the brightness adjustment value should be updated, and it is determined whether the brightness adjustment value 130 should be corrected by the calculated first correction value.

[0055] In S506, the update unit 308 of the correction value calculation unit 303 performs update determination and update processing of the brightness adjustment value. In the update determination and update processing of the brightness adjustment value, the update unit 308 determines whether or not to update the brightness adjustment value 130 based on the first correction value calculated in S505, and updates or holds the brightness adjustment value 130 according to the determination result.

[0056] FIG. 6 is a flowchart showing an example of brightness adjustment value update determination and update processing executed by the update unit 308 in S506. In S601, the determination unit 309 of the update unit 308 calculates a first range and a second range. The first range is a range for not applying the first correction value to the brightness adjustment value if the calculated first correction value is within the first range. Here, the allowable fluctuation range of the correction value is defined as ΔF_limit. This allowable fluctuation range of the correction value ΔF_limit is predetermined as a variable that satisfies 0<ΔF_limit<1, and can be changed as necessary. In addition, the value ΔFmax indicating the upper limit of the first range and the value ΔFmin indicating the lower limit of the first range are represented. In this case, the upper limit value ΔFmax of the first range and the lower limit value ΔFmin of the first range are given by the following formula (7).

[0057]

number

[0058] That is, the first correction value ΔF of the target pixel block i,j ΔFmin≦ΔF i,j If the range is ≦ΔFmax, the first correction value ΔF is applied to the brightness adjustment value. i,j is not applied, and the first correction value ΔF i,j will not be reflected. Details of this determination will be described later. In this case, when determining the upper limit and lower limit of the first range, the allowable fluctuation range of the correction value is defined as a single ΔF_limit, and the upper and lower fluctuation ranges are the same. This is just one example, and it is also possible to set the upper and lower fluctuation ranges differently and use two values, one for the upper side and one for the lower side, as values ​​that define the allowable fluctuation range of the correction value. Also, the upper limit and lower limit of the first range may be determined by the values ​​themselves, rather than by using a ratio.

[0059] The second range is a range for determining whether or not to adopt the calculated brightness adjustment value candidate as the brightness adjustment value as is. In S601, the determination unit 309 determines the brightness adjustment upper limit value Lmax corresponding to the pixel block [i,j] as the upper limit of the second range. ijand calculate the brightness adjustment lower limit Lmin ij The brightness adjustment value corresponding to pixel block [i,j] is calculated using the adjustment reference value Lorg ij Here, the adjustment reference value Lorg ij is the initial brightness adjustment value Lini ij In addition, the allowable fluctuation range of the brightness adjustment value is set to the adjustment reference value Lorg ij In this example, the allowable fluctuation range of the brightness adjustment value is expressed as L_limit. However, L_limit ≧ 0. In this case, the brightness adjustment upper limit value Lmax ij , and the brightness adjustment lower limit Lmin ij is given by the following equation (8).

[0060]

number

[0061] The candidate value for the brightness adjustment value of the target pixel block is L' ij Then, the candidate value L' ij is within the second range, i.e., Lmin ij ≦L' ij ≦Lmax ij The value to be adopted as the brightness adjustment value is controlled depending on whether the above condition is satisfied. Details of this determination will be described later. In this case, when determining the upper and lower limit values ​​of the second range, the allowable fluctuation range of the brightness adjustment value is defined as a single L_limit, and the upper and lower fluctuation ranges are the same. This is just one example, and it is also possible to set the upper and lower fluctuation ranges differently and use two values, one for the upper side and one for the lower side, as values ​​that define the allowable fluctuation range of the brightness adjustment value. Also, the upper and lower limit values ​​of the second range may be determined by the values ​​themselves, rather than by using a ratio.

[0062] In S602, the determination unit 309 initializes a first counter value C1 and a second counter value C2 used in the brightness adjustment value update determination and update process to 0. Note that the second counter value C2 needs to be initialized to 0 only when the process of the flowchart in Fig. 6 is executed for the first time, and does not need to be initialized thereafter.

[0063] In S603, the determination unit 309 selects a pixel block to be processed from among the (M×N) pixel blocks. The pixel block may be selected by any selection method.

[0064] In S604, the determination unit 309 determines the first correction value ΔF of the selected pixel block to be processed. i,j is compared with the upper limit value ΔFmax of the first range to determine whether it is greater. i,j When the determination unit 309 determines that the first correction value ΔF is greater than the upper limit value ΔFmax of the first range (YES in S604), the process proceeds to S606. i,j is not greater than the upper limit value ΔFmax of the first range, i.e., the first correction value ΔF i,j If the determination unit 309 determines that the first correction value ΔF is equal to or smaller than the upper limit value ΔFmax of the first range (NO in S604), the process proceeds to S605. For example, if the allowable fluctuation range ΔF_limit of the correction value is set to 0.1, the first correction value ΔF i,j If it is greater than 1.1 (YES in S604), the process proceeds to S606, and if it is less than or equal to 1.1 (NO in S604), the process proceeds to S605.

[0065] In S605, the determination unit 309 determines the first correction value ΔF of the selected pixel block to be processed. i,j is compared with the lower limit value ΔFmin of the first range to determine whether the first correction value ΔF is smaller. i,j When the determination unit 309 determines that the first correction value ΔF is smaller than the lower limit value ΔFmin of the first range (YES in S605), the process proceeds to S606. i,j is not smaller than the lower limit value ΔFmin of the first range, that is, the first correction value ΔF i,jIf the determination unit 309 determines that the first correction value ΔF is equal to or larger than the lower limit value ΔFmin of the first range (NO in S605), the process proceeds to S607. For example, if the allowable fluctuation range ΔF_limit of the correction value is set to 0.1, the first correction value ΔF i,j If it is smaller than 0.9 (YES in S605), the process proceeds to S606, and if it is 0.9 or more (NO in S605), the process proceeds to S607.

[0066] In S606, the determination unit 309 adds 1 to the value C1 of the first counter. The value C1 of the first counter is determined based on how many pixel blocks in the currently confirmed image have the first correction value ΔF out of the first range defined by the upper limit value ΔFmax and the lower limit value ΔFmin. i,j When the process of S606 ends, the process proceeds to S607.

[0067] In S607, the determination unit 309 determines whether or not all of the (M×N) pixel blocks have been selected. That is, the first correction value ΔF of the (M×N) pixel blocks is i,j It is determined whether the process of comparing each pixel block with the first range has been completed. If the determination unit 309 determines that all pixel blocks have been selected (YES in S607), the process proceeds to S608. On the other hand, if the determination unit 309 determines that an unselected pixel block exists (NO in S607), the process returns to S603, where an unselected pixel block is selected from among the (M×N) pixel blocks, and the processes from S603 onwards are executed.

[0068] In S608, the determination unit 309 determines whether the value C1 of the first counter is greater than the first threshold. The first threshold is used to determine whether the frame image is suitable for reflecting the first correction value. That is, when the value C1 of the first counter is greater than the first threshold, it means that it is determined that it is suitable to reflect the first correction value in the frame image. If the determination unit 309 determines that the value C1 of the first counter is greater than the first threshold (YES in S608), the process proceeds to S610. On the other hand, if the determination unit 309 determines that the value C1 of the first counter is equal to or less than the first threshold (NO in S608), the process proceeds to S609. For example, when the first threshold is 5, if the value C1 of the first counter is 6 or more, the process proceeds to S610, and if it is 5 or less, the process proceeds to S609.

[0069] Here, the value C1 of the first counter is the first correction value ΔF i,j indicates the number of pixel blocks that are outside the first range, and the element value ΔF in the first correction value matrix F i,j indicates the number of elements outside the first range. That is, in the process of S608, the first correction value ΔF i,j If the number of pixel blocks that are outside the first range is greater than the first threshold, the process proceeds to S610. If the number is equal to or smaller than the first threshold, the process proceeds to S609. In other words, in the first correction value matrix F, the element value ΔF i,j If the number of elements that are outside the first range is greater than the first threshold, the process proceeds to S610, and if it is equal to or less than the first threshold, the process proceeds to S609. The first threshold is a value determined in advance as a variable, and can be changed as necessary. The first threshold must be set as an integer in the range of 0 to (M×N), and if a value outside that range is set, an initial value (for example, 1) is used.

[0070] In S610, the determination unit 309 adds 1 to the value C2 of the second counter. The value C2 of the second counter is a variable for storing the number of consecutive frames in which it has been determined that the first correction value should be reflected, since the previous update of the brightness adjustment value. That is, the second counter is i,j is a counter for acquiring the period during which the number of pixel blocks outside the first range continues to be greater than the first threshold value. After the process of S610 ends, the process proceeds to S611.

[0071] On the other hand, in S609, the determination unit 309 initializes the value C2 of the second counter to 0. The reason why the process proceeds to S609 is because it has been determined that the brightness adjustment value update process should not be performed. Therefore, in S609, the value C2 of the second counter is initialized and the process proceeds to S623.

[0072] In S611, the determination unit 309 determines whether the value C2 of the second counter is equal to the second threshold. The second threshold is a period threshold used to determine whether the continuous frame images have satisfied the continuation condition necessary for reflecting the first correction value. If the determination unit 309 determines that the value C2 of the second counter is equal to the second threshold (YES in S611), it determines that it is appropriate to reflect the first correction value in the frame image, and proceeds to S612. On the other hand, if the determination unit 309 determines that the value C2 of the second counter is not equal to the second threshold, that is, is smaller than the second threshold (NO in S611), it is determined that the continuation condition necessary for reflecting the first correction value has not yet been satisfied, and proceeds to S623. In this case, the value C2 of the second counter is held. For example, if the second threshold is 3, if the value C2 of the second counter is 3, it proceeds to S612, and if it is 2 or less, it proceeds to S623. The second threshold is a value that is determined in advance as a variable, and can be changed as necessary. The second threshold must be set to an integer equal to or greater than 1, and if a value outside the range is set by mistake, an initial value (e.g., 1) is used. The second threshold may be, for example, one frame period or multiple frame periods.

[0073] The subsequent processes from S612 to S621 are processes for updating the brightness adjustment value. In S612, the determination unit 309 selects a pixel block to be processed from among the (M×N) pixel blocks. The pixel block may be selected by any selection method.

[0074] In S613, the determination unit 309 determines the first correction value ΔF i,j The brightness adjustment value corresponding to pixel block [i,j] is calculated as L ij The candidate brightness adjustment value corresponding to pixel block [i,j] is L' ij Then, the first correction value ΔF of the pixel block is i,j Using the candidate value L' ij is given by the following equation (9).

[0075]

number

[0076] In the subsequent processing of S614 to S619, the determination unit 309 determines the candidate value L' of the brightness adjustment value of the selected pixel block to be processed. ij is Lmin ij ≦L' ij ≦Lmax ij Then, based on the result of the determination, the brightness adjustment value L ij The brightness adjustment value candidate value L' ij to update.

[0077] In S614, the determination unit 309 selects the candidate brightness adjustment value L' of the selected pixel block to be processed. ij However, the brightness adjustment upper limit Lmax obtained by S601 ij It is judged whether it is larger than the candidate brightness adjustment value L'. ij is the upper limit of brightness adjustment Lmax ij Not greater than the upper brightness adjustment limit Lmax ijIf the determination unit 309 determines that the brightness adjustment value candidate value L' is equal to or smaller than the candidate value L' (NO in S614), ij The brightness adjustment value candidate value L' is not changed and the process proceeds to S617. ij is the upper limit of brightness adjustment Lmax ij If the determination unit 309 determines that the brightness adjustment value candidate value L' is greater than the brightness adjustment value candidate value L' calculated in S613 (YES in S614), the process proceeds to S615. ij If we adopt it as it is, the candidate value L' ij is the brightness adjustment reference value Lorg ij This is to prevent the image from deviating too far from the intended target and resulting in an image that is not what the user intended.

[0078] In S615, the determination unit 309 checks the value of the processing variable P, which is an operation instruction value preset by the user. The processing variable P is a variable for instructing an operation when the candidate value of the brightness adjustment value falls outside the second range. The processing variable P is a 1-bit variable, and takes a value of 0 or 1. When the value of the processing variable P is 0, the determination unit 309 sets the brightness adjustment value to the upper or lower limit of the brightness adjustment value, and when the value of the processing variable P is 1, the determination unit 309 suspends the process and does not update the brightness adjustment value. Therefore, in S615, when the value of the processing variable P is 1 (YES in S615), the process proceeds to S609 and suspends the process. This means that the brightness adjustment value in the frame is not updated. When the value of the processing variable P is 0 (NO in S615), the process proceeds to S616.

[0079] In S616, the determination unit 309 determines the candidate value L' of the brightness adjustment value. ij Brightness adjustment upper limit Lmax ij As a result, the determination unit 309 determines the candidate value L' of the brightness adjustment value. ij Adjust the brightness upper limit Lmax ij Then, the process proceeds to S620.

[0080] In S617, the determination unit 309 determines the candidate value L' of the brightness adjustment value of the selected pixel block to be processed. ij is the brightness adjustment lower limit Lmin obtained in S601.ij It is judged whether it is smaller than the candidate brightness adjustment value L'. ij is the lower limit of brightness adjustment Lmin ij Not smaller than the lower limit of brightness adjustment Lmin ij If the determination unit 309 determines that the brightness adjustment value candidate value L' is equal to or greater than the candidate value L' (NO in S617), ij The brightness adjustment value candidate value L' is not changed and the process proceeds to S620. ij is the lower limit of brightness adjustment Lmin ij If the determination unit 309 determines that the brightness adjustment value candidate value L' calculated in S613 is smaller than the candidate value L' (YES in S617), the process proceeds to S618. ij If we adopt it as it is, the candidate value L' ij is the brightness adjustment reference value Lorg ij This is to prevent the image from deviating too far from the intended target and resulting in an image that is not what the user intended.

[0081] In S618, the determination unit 309 checks the value of the processing variable P preset by the user, similar to S615. If the value of the processing variable P is 1 (YES in S618), the determination unit 309 proceeds to S609 and interrupts the process. This means that the brightness adjustment value for the frame is not updated. If the value of the processing variable P is 0 (NO in S618), the process proceeds to S619.

[0082] In S619, the determination unit 309 determines the candidate value L' of the brightness adjustment value. ij Brightness adjustment lower limit Lmin ij As a result, the determination unit 309 determines the candidate value L' of the brightness adjustment value. ij The brightness adjustment lower limit Lmin ij Then, the process proceeds to S620.

[0083] In S620, the determination unit 309 determines whether or not all of the (M×N) pixel blocks have been selected. ijIt is determined whether the process of checking whether the size of each pixel block is significantly different from the adjustment reference value has been completed. If the determination unit 309 determines that all pixel blocks have been selected (YES in S620), the process proceeds to S621. On the other hand, if the determination unit 309 determines that an unselected pixel block exists (NO in S620), the process returns to S612, where an unselected pixel block is selected from among the (M×N) pixel blocks, and the process from S612 onwards is executed.

[0084] In S621, the update unit 308 updates the candidate value L′ of the brightness adjustment value determined in S614 to S619. ij Based on the result of updating, the brightness adjustment value L ij The brightness adjustment value candidate value L' ij Thereafter, in S622, the value C2 of the second counter is initialized to 0, and the process ends.

[0085] In S623, the update unit 308 updates the brightness adjustment value L ij Do not update, just use the previous brightness adjustment value L ij Hold and exit.

[0086] By executing the update determination and update process of the brightness adjustment value in the above manner, it becomes possible to control the brightness adjustment value as shown in Fig. 7 as an example, and to appropriately correct the error of the exposure setting for each region. Fig. 7 is a diagram for explaining an example of the control of the brightness adjustment value. For the sake of convenience, Fig. 7 shows the control of the brightness adjustment value for one pixel block in the image sensor.

[0087] First, a first correction value and a brightness adjustment value are calculated as initial values ​​based on the exposure settings (exposure time, analog gain, etc.) in the first frame FL1. An upper limit value and a lower limit value of a first range are calculated for the first correction value calculated in frame FL1. In FIG. 7, the brightness adjustment value corresponding to the upper limit value of the first range calculated for the first correction value in frame FL1 is indicated as V1max, and the brightness adjustment value corresponding to the lower limit value of the first range is indicated as V1min. In addition, a brightness adjustment upper limit value Lmax, which is the upper limit value of the second range, and a brightness adjustment lower limit value Lmin, which is the lower limit value, are calculated using the brightness adjustment value V1 calculated in frame FL1 as an adjustment reference value.

[0088] After that, for each of the frames from the second frame FL2 to the eighth frame FL8, a first correction value is calculated based on the exposure setting. However, since the calculated first correction value is within the first range, i.e., does not exceed the upper or lower limit of the first range, the brightness adjustment value is not updated, and the brightness adjustment value V1 calculated for frame FL1 is used to adjust the exposed image according to the exposure setting. In other words, for frames FL2 to FL8, the exposed image is corrected using the same brightness adjustment value V1 as that used for frame FL1.

[0089] Then, when the first correction value calculated based on the exposure setting in the ninth frame FL9 falls outside the first range, in the example of FIG. 7, exceeds the upper limit value V1max of the first range, the brightness adjustment value is updated to a brightness adjustment value V2 that reflects the first correction value. Here, since the calculated brightness adjustment value V2 is between the brightness adjustment upper limit value Lmax and the brightness adjustment lower limit value Lmin, the value V2 is set as it is as the new brightness adjustment value. Accordingly, the brightness adjustment value corresponding to the upper limit value of the first range is changed to V2max, and the brightness adjustment value corresponding to the lower limit value of the first range is changed to V2min. After that, until the calculated first correction value falls outside the first range, that is, exceeds the upper limit value V2max or the lower limit value V2min of the first range, the exposure image is corrected with the same brightness adjustment value as the brightness adjustment value V2 updated in the frame FL9.

[0090] According to this embodiment, when the number of regions where the calculated first correction value is outside the first range is greater than the first threshold, the brightness adjustment value for adjusting the exposure image according to the exposure setting is updated to a brightness adjustment value that reflects the first correction value. Moreover, when updating, the brightness adjustment value after updating is adjusted so as not to deviate from the range indicated by the second range. Moreover, the brightness adjustment value is updated when the number of regions where the calculated first correction value is outside the first range continues to be greater than the first threshold for a period of time or more corresponding to a pre-specified second threshold. As a result, it is possible to appropriately correct the error in the exposure setting for each region caused by the imaging sensor, and it is possible to output an image in which unintended fluctuations in brightness are suppressed within the brightness range for each region intended by the user.

[0091] [Embodiment 2] In the brightness adjustment value update determination and update process executed by the update unit 308 in the first embodiment, the adjustment reference value Lorg ij The initial brightness adjustment value Lini ij However, in the situation where the imaging device is used, the adjustment reference value Lorg ij There are cases where it is better to change the adjustment reference value Lorg for the brightness adjustment value. For example, this applies when the surrounding environment in which the imaging device is operated changes and the temperature at which the imaging device operates becomes higher. ij The procedure for changing the above will be described with reference to Fig. 8. Note that the points other than those described below are the same as those in the first embodiment.

[0092] In S801, the determination unit 309 determines the adjustment reference value Lorg ijIt is determined whether it is necessary to change the brightness adjustment reference value. In this example, for example, if the operating temperature deviates from the temperature corresponding to the currently set brightness adjustment reference value by a certain temperature or more for a certain period of time or more, the adjustment reference value of the brightness adjustment value is changed. The operating temperature can be measured and acquired by providing a temperature sensor in the imaging device. It goes without saying that the change criterion is not limited to this example, and other change criterion can be set as necessary.

[0093] S801 brightness adjustment reference value Lorg ij If the determination unit 309 determines that it is not necessary to change the adjustment reference value Lorg of the brightness adjustment value (NO in S801), the process ends. ij If the determination unit 309 determines that it is necessary to change the setting (YES in S801), the process proceeds to S802.

[0094] In S802, the determination unit 309 determines the adjustment reference value Lorg ij In this example, the adjustment reference value Lorg of the corresponding brightness adjustment value is changed for each of a plurality of divisions into which the environmental temperature in which the image pickup device operates is divided. ij In the process of S802, the determination unit 309 searches the table based on the environmental temperature at that time and determines the adjustment reference value Lorg of the brightness adjustment value according to the environmental temperature. ij The brightness adjustment reference value Lorg is obtained and updated. ij The method of changing the adjustment reference value Lorg of the new brightness adjustment value is not limited to using a table. For example, a function based on temperature is set and the adjustment reference value Lorg of the new brightness adjustment value is calculated using the function. ij may be calculated and updated.

[0095] In this way, the brightness adjustment reference value Lorg ij When is updated, the determination unit 309 determines the brightness adjustment upper limit value Lmax based on the updated value in S601 of FIG. ij and brightness adjustment lower limit Lmin ij The subsequent operations are the same as those in the first embodiment, and therefore the explanation will be omitted.

[0096] According to this embodiment, the adjustment reference value of the brightness adjustment value is changed based on the situation in which the device is operated, and the brightness adjustment upper limit value Lmax is set based on the changed adjustment reference value. ij and brightness adjustment lower limit Lmin ij Even if the operating environment of the imaging device changes, it is possible to appropriately correct the exposure setting error for each area caused by the imaging sensor, and output an image in which unintended fluctuations in brightness are suppressed within the brightness range for each area intended by the user.

[0097] (Other embodiments) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiment is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) for implementing one or more of the functions.

[0098] The image processing device described above can be applied to, for example, digital still cameras, digital camcorders, security cameras, copiers, fax machines, mobile phones, vehicle-mounted cameras, observation satellites, etc. It can also be applied to camera modules that include an optical system such as a lens and an imaging device.

[0099] It should be noted that the above-mentioned embodiments are merely examples of the implementation of the present invention, and the technical scope of the present invention should not be interpreted as being limited by these. In other words, the present invention can be implemented in various forms without departing from its technical concept or main features.

[0100] The disclosure of the present embodiment includes the following configurations, methods, etc. (Configuration 1) An image processing device that corrects an exposure image captured by an image sensor capable of setting exposure for each region, a calculation means for calculating a correction value for correcting an exposure setting error for each of the regions based on an evaluation value obtained by evaluating a gradation step occurring at a boundary between the regions in the image sensor; an update means for updating an adjustment value related to adjustment of the exposure image according to the exposure setting by using the calculated correction value; a correction unit that corrects the exposure image based on the adjustment value, The image processing device according to claim 1, wherein the update means updates the adjustment value when the number of the areas in which the calculated correction value is outside a first range is greater than a first threshold value. (Configuration 2) The image processing device according to configuration 1, characterized in that in the area where the adjustment value based on the calculated correction value is outside a second range, the update means sets the adjustment value to be updated to an upper limit value or a lower limit value of the second range. (Configuration 3) 2. The image processing device according to claim 1, wherein the update means does not update the adjustment value when there is an area in which the adjustment value based on the calculated correction value is outside a second range. (Configuration 4) The image processing device described in configuration 1, characterized in that when there is an area where the adjustment value based on the calculated correction value is outside a second range, the update means switches between setting the adjustment value of the area to be updated to an upper limit value or a lower limit value of the second range, or not updating the adjustment value, based on a preset operation instruction. (Configuration 5) The image processing device described in any one of configurations 2 to 4, characterized in that the second range is calculated based on a reference value that serves as a basis for the adjustment value, and the reference value is changed based on the situation in which the device is operated. (Configuration 6) The image processing device according to any one of configurations 1 to 5, wherein the update means updates the adjustment value when the period during which the number of the areas in which the calculated correction value is outside the first range continues to be greater than the first threshold value becomes a second threshold value. (Configuration 7) 7. The image processing device according to configuration 6, wherein the second threshold value is one frame period. (Configuration 8) 7. The image processing device according to configuration 6, wherein the second threshold is a multiple frame period. (Configuration 9) The image processing device according to any one of configurations 1 to 8, further comprising an evaluation means for acquiring the evaluation value from pixel values ​​of pixels around the boundary based on boundary information indicating the boundary between the regions in the imaging sensor. (Configuration 10) The imaging sensor; 10. An imaging device comprising the image processing device according to any one of configurations 1 to 9. (Method 1) An image processing method of an image processing apparatus for correcting an exposure image captured by an image sensor capable of setting exposure for each region, comprising: a calculation step of calculating a correction value for correcting an error in exposure setting for each of the regions based on an evaluation value obtained by evaluating a gradation step occurring at a boundary between the regions in the image sensor; an updating step of updating an adjustment value related to adjustment of the exposure image according to the exposure setting by using the calculated correction value; and correcting the exposure image based on the adjustment value, The image processing method according to the present invention, wherein, in the updating step, the adjustment value is updated when the number of the areas in which the calculated correction value is outside a first range is greater than a first threshold value. (Program 1) A computer of an image processing device that corrects an exposure image captured by an image sensor capable of setting exposure for each region, a calculation step of calculating a correction value for correcting an exposure setting error for each of the regions based on an evaluation value obtained by evaluating a gradation step occurring at a boundary between the regions in the image sensor; an updating step of updating an adjustment value related to adjustment of the exposure image according to the exposure setting by using the calculated correction value; and correcting the exposure image based on the adjustment value. The updating step includes a program for executing a process of updating the adjustment value when the number of the areas in which the calculated correction value is outside a first range is greater than a first threshold value. [Explanation of symbols]

[0101] 100: Imaging device 102: Imaging sensor 103: Imaging element section 104: A / D conversion section 105: Exposure control section 109: Exposure time control section 110: Gain control section 111: Exposure condition calculation section 131: Brightness adjustment value correction section 201: Pixel block 301: RAM 302: Boundary evaluation section 303: Correction value calculation section 304: Matrix generation section 305: Inverse matrix calculation section 306: First correction value calculation section 308: Update section 309: Determination section

Claims

1. An image processing device that corrects an exposure image captured by an image sensor capable of setting exposure for each region, a calculation means for calculating a correction value for correcting an exposure setting error for each of the regions based on an evaluation value obtained by evaluating a gradation step occurring at a boundary between the regions in the image sensor; an update means for updating an adjustment value related to adjustment of the exposure image according to the exposure setting by using the calculated correction value; a correction unit that corrects the exposure image based on the adjustment value, The image processing device according to claim 1, wherein the update means updates the adjustment value when the number of the areas in which the calculated correction value is outside a first range is greater than a first threshold value.

2. 2 . The image processing device according to claim 1 , wherein the updating means sets the adjustment value to be updated to an upper limit value or a lower limit value of the second range in the area where the adjustment value based on the calculated correction value is outside a second range.

3. 2 . The image processing apparatus according to claim 1 , wherein the update means does not update the adjustment value when there is an area in which the adjustment value based on the calculated correction value is outside a second range.

4. The image processing device according to claim 1, characterized in that, when there is an area in which the adjustment value based on the calculated correction value is outside a second range, the update means switches between setting the adjustment value of the area to be updated to the upper limit value or lower limit value of the second range, or not updating the adjustment value, based on a predetermined operation instruction.

5. 3. The image processing apparatus according to claim 2, wherein the second range is calculated based on a reference value that serves as a reference for the adjustment value, and the reference value is changed based on a situation in which the apparatus is operated.

6. The image processing device according to claim 1, characterized in that the update means updates the adjustment value when the period during which the number of the areas in which the calculated correction value is outside the first range continues to be greater than the first threshold value becomes a second threshold value.

7. 7. The image processing device according to claim 6, wherein the second threshold value is one frame period.

8. 7. The image processing apparatus according to claim 6, wherein the second threshold is a period of multiple frames.

9. 2. The image processing apparatus according to claim 1, further comprising an evaluation unit that acquires the evaluation value from pixel values ​​of pixels surrounding the boundary based on boundary information indicating the boundary between the regions in the image sensor.

10. The imaging sensor; An imaging device comprising the image processing device according to claim 1.

11. An image processing method of an image processing apparatus for correcting an exposure image captured by an image sensor capable of setting exposure for each region, comprising: a calculation step of calculating a correction value for correcting an error in exposure setting for each of the regions based on an evaluation value obtained by evaluating a gradation step occurring at a boundary between the regions in the image sensor; an updating step of updating an adjustment value related to adjustment of the exposure image according to the exposure setting by using the calculated correction value; and correcting the exposure image based on the adjustment value, The image processing method according to claim 1, wherein in the updating step, the adjustment value is updated when the number of the areas in which the calculated correction value is outside a first range is greater than a first threshold value.

12. A computer of an image processing device that corrects an exposure image captured by an image sensor capable of setting exposure for each region, a calculation step of calculating a correction value for correcting an exposure setting error for each of the regions based on an evaluation value obtained by evaluating a gradation step occurring at a boundary between the regions in the image sensor; an updating step of updating an adjustment value related to adjustment of the exposure image according to the exposure setting by using the calculated correction value; and correcting the exposure image based on the adjustment value. The updating step includes a program for executing a process of updating the adjustment value when the number of the areas in which the calculated correction value is outside a first range is greater than a first threshold value.

Citation Information

Patent Citations

  • Image processing apparatus, imaging apparatus, control method of image processing apparatus, control method of imaging apparatus, and program

    JP2019075658A