Imaging apparatus, method for controlling imaging apparatus, and program
The imaging device corrects defective pixels in image sensors with APDs by identifying and estimating output value changes, addressing crosstalk and usage-time-related issues for improved image quality.
Patent Information
- Application Number
- JP2023026283
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-09-03
AI Technical Summary
Image sensors equipped with avalanche photodiodes (APDs) face issues with crosstalk and defective pixels, and existing correction processes fail to adapt to changes in output values due to increased usage time.
The imaging device includes a system for identifying and correcting defective pixels by storing information about first and second pixels, applying a correction process when certain conditions are met, and estimating output value changes over time.
Enables effective correction of defective pixels in response to changes in output values due to usage time, improving image quality and reliability.
Smart Images

Figure 2024119405000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an imaging apparatus, a control method thereof, and a program therefor. [Background technology]
[0002] In recent years, imaging devices have been proposed that use avalanche photodiodes (hereinafter referred to as APDs) as light receiving elements, digitally count the number of photons incident on the APDs, and output the counted values for each pixel as photoelectrically converted digital signals. It is known that imaging devices equipped with APDs have a problem of crosstalk (see Non-Patent Document 1). Crosstalk in imaging devices equipped with APDs occurs when secondary electrons are emitted from the APD due to an avalanche phenomenon caused by photons incident on the APD, and the secondary electrons are incident on other APDs in the imaging device. Then, secondary electrons generated by the avalanche phenomenon in the APD of a certain pixel are incident on the APD of another pixel, resulting in an erroneous count that increases the number of pixel values counted.
[0003] Furthermore, defective pixels that have the property of outputting a signal even when there is no incident light can occur in image sensors, and such defective pixels can occur even in image sensors equipped with APDs. To deal with defective pixels, several correction processes are known, such as a process in which a correct output value for the defective pixel is inferred based on the output values of surrounding pixels and the inferred output value is used as the output of the defective pixel. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] I. Rech et al., OpEx 16(12), 2008 Summary of the Invention [Problem to be solved by the invention]
[0005] Incidentally, in an image sensor equipped with an APD, the output value may change depending on the time of use. However, the above-mentioned defective pixel correction process cannot deal with such a change in output value due to an increase in the time of use.
[0006] Therefore, an object of the present invention is to make it possible to apply correction processing in response to changes in output values over time in an imaging device. [Means for solving the problem]
[0007] The imaging device of the present invention is characterized in having a memory means for storing first information indicating a first pixel among each pixel constituting an imaging element that is to be subject to a predetermined correction process, and second information indicating a second pixel that is to be subject to the predetermined correction process when a predetermined condition is satisfied, a setting means for setting the second pixel as a target of the predetermined correction process when an estimated value based on the output of the second pixel identified by the second information satisfies the predetermined condition, and a correction means for correcting the value of the first pixel in an image obtained by the imaging element and the value of the second pixel set for the predetermined correction process by the predetermined correction process. Effect of the Invention
[0008] According to the present invention, it is possible to apply a correction process in response to a change in output value due to the time of use in an image capture device. [Brief description of the drawings]
[0009] [Figure 1] FIG. 2 is a diagram illustrating an example of a functional configuration of an imaging apparatus. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of an imaging apparatus. [Diagram 3] 6A to 6C are diagrams illustrating an example of information related to the correction process according to the first embodiment. [Figure 4] 5 is a flowchart showing a flow of pixel determination processing according to the first embodiment. [Diagram 5] 13A and 13B are diagrams illustrating an example of information related to the correction process of the second embodiment. [Figure 6] This is a diagram used to explain grade allocation. [Figure 7] 10 is a flowchart showing a flow of pixel determination processing according to the second embodiment. [Figure 8] 13A and 13B are diagrams illustrating an example of information related to the correction process according to the third embodiment. [Figure 9] This is a diagram used to explain Defect ID according to Rate. [Figure 10] FIG. 2 is a diagram illustrating an example of division of a two-dimensional image. [Figure 11] 13 is a flowchart showing a flow of pixel determination processing according to the third embodiment. [Figure 12] 11 is a diagram used to explain a change in a zero level that serves as a reference for image information. [Figure 13] FIG. 13 is a diagram illustrating an example of the functional configuration of an imaging apparatus according to a fourth embodiment. [Figure 14] 13 is a flowchart of a zero level change determination process. [Figure 15] 13 is a flowchart showing the flow of pixel determination processing according to the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, embodiments of the present invention will be described with reference to the drawings. The following embodiments do not limit the present invention, and not all of the combinations of features described in the present embodiments are necessarily essential to the solution of the present invention. The configurations of the embodiments may be appropriately modified or changed depending on the specifications of the device to which the present invention is applied and various conditions (conditions of use, environment of use, etc.). In the following embodiments, the same or similar configurations and processing steps are given the same reference symbols, and duplicated explanations are omitted.
[0011] <First embodiment> FIG. 1 is a diagram showing a schematic configuration of a main part of an imaging device 100 according to the first embodiment. In the imaging device 100 of this embodiment, the lens 101 takes in light from the outside and forms an optical image of a subject or the like on the imaging element 102. The imaging element 102 converts the light incident through the lens 101 into electronic data for each pixel. The imaging element 102 of this embodiment uses an avalanche photodiode (APD) as the light receiving element of each pixel. The electronic data output by the imaging element 102 is data of a monochrome two-dimensional image, and the electronic data of each pixel of the two-dimensional image is photoelectrically converted data of a count value obtained by digitally counting the number of incident photons.
[0012] The storage unit 107 stores, as information related to correction processing, first information indicating a first pixel having a predetermined characteristic among the pixels constituting the image sensor 102, and second information indicating a second pixel having a characteristic that can become the first pixel. In this embodiment, the first pixel is a defective pixel having a predetermined characteristic in which an output value in a state where no light is incident (hereinafter referred to as a non-light incident state) is equal to or greater than a first threshold value set in advance. The first pixel is a pixel that is a target of a predetermined correction processing, that is, a defect correction to be described later. Also, the second pixel is a pixel that is a target of a predetermined correction processing when it satisfies a predetermined condition to be described later. Hereinafter, the first threshold value is referred to as a threshold value for determining a defective pixel. Also, in this embodiment, the second pixel is a pixel that may become a defective pixel due to an increase in the use time of the image sensor 102, and is referred to as a defective candidate pixel hereinafter. A defective candidate pixel is a pixel whose output value in a non-light incident state is currently less than a threshold value for determining a defective pixel and is equal to or greater than a second threshold value set in advance for determining a defective candidate pixel. The second threshold is a threshold lower than the threshold for defective pixel determination, and will be referred to as the threshold for defective pixel determination in this embodiment. That is, in this embodiment, a defective candidate pixel is a pixel whose output value is currently less than the threshold for defective pixel determination, but which may potentially become equal to or greater than the threshold for defective pixel determination as a result of an increase in use time, etc.
[0013] Although details will be described later, the information related to the correction process stored in storage unit 107 includes at least the following information: the type of defect in the pixel of image sensor 102, the position of each pixel in the two-dimensional image captured by image sensor 102, and the output value of the pixel when no light is incident. In this embodiment, the output value of a pixel when no light is incident stored in storage unit 107 is not the output value of a defective pixel when no light is incident, but the output value of a defective candidate pixel that may become a defective pixel as the image sensor 102 is used for an extended period of time when no light is incident. The information related to the correction process will be described in detail later, including specific examples.
[0014] Based on information related to correction processing in storage unit 107, setting unit 106 determines whether each pixel of the two-dimensional image output from image sensor 102 should be treated as a defective pixel or as a candidate defective pixel that may become a defective pixel. Based on the determination result, setting unit 106 updates the information related to correction processing in storage unit 107. Details of the pixel determination process in setting unit 106 and the information update process in storage unit 107 will be described later. Then, for pixels to be treated as defective pixels among the pixels of the two-dimensional image output from image sensor 102, setting unit 106 causes storage unit 107 to output information indicating the position of the pixel (defective pixel) to correction unit 103.
[0015] Correction unit 103 performs correction processing on the two-dimensional image data output from image sensor 102, based on position information of defective pixels read from storage unit 107. For example, correction unit 103 identifies pixels to be subjected to correction processing (i.e., defective pixels) from among the pixels of the two-dimensional image, based on the position information of the defective pixels, and performs correction processing on the identified defective pixels. Any correction processing may be used for the correction processing on the defective pixels, such as the above-mentioned processing in which a correct output value of the defective pixel is inferred based on output values of surrounding pixels, and the inferred output value is set as the output of the defective pixel.
[0016] The processing unit 104 generates image data from the data after the defective pixel correction process has been performed by the correction unit 103. Note that in this embodiment, the two-dimensional image data output from the image sensor 102 is monochrome data, while the image data output by the processing unit 104 is color two-dimensional image data. Furthermore, the processing unit 104 also performs various types of image processing such as gain adjustment, white balance adjustment, gamma adjustment, and demosaic in the process of generating color two-dimensional image data from monochrome two-dimensional image data.
[0017] The output unit 105 outputs the color two-dimensional image data after image processing and the like in the processing unit 104 to the outside. In this embodiment, an example of a processing order in which correction processing is performed by the correction unit 103 on the output of the image sensor 102 has been given, but correction processing for defective pixels may be performed during image processing performed by the processing unit 104 or after processing by the processing unit 104.
[0018] Fig. 2 is a diagram showing an example of a hardware configuration of the imaging device 100 according to this embodiment. The imaging device 100 has an imaging element 102, a CPU (central processing unit) 201, a ROM (read only memory) 202, a RAM (random access memory) 203, a flash memory 204, an optical system driving section 205, an input section 206, a display section 207, and a communication section 208. Note that Fig. 2 shows only the main components among the various components of the imaging device 100, and the imaging device 100 also has other hardware components (not shown) that are included in a normal imaging device.
[0019] The CPU 201 executes various programs including the program according to this embodiment stored in the ROM 202 to realize various arithmetic processing and each function related to the setting unit 106, the correction unit 103, the processing unit 104, the storage unit 107, and the like of this embodiment. The imaging device 100 may have one or more dedicated hardware different from the CPU 201, and at least a part of the processing by the CPU 201 may be executed by the dedicated hardware. Examples of the dedicated hardware include an ASIC (application specific integrated circuit), an FPGA (field programmable gate array), and a DSP (digital signal processor). The ROM 202 has a storage area for storing a boot program, a program according to this embodiment, parameters to be set for each unit of the imaging device 100, and the like. The RAM 203 is used as a coincidence storage area such as the main memory and work area of the CPU 201. The flash memory 204 stores two-dimensional image data and the like.
[0020] The optical system driving unit 205 drives a focus lens and an aperture included in the lens 101 under the control of the CPU 201. The input unit 206 converts various buttons, keys, touch panels, etc. (not shown) provided on the imaging device 100 and user inputs thereto into signals that can be processed inside the imaging device 100 and inputs the signals to the CPU 201. The display unit 207 is composed of, for example, a liquid crystal display, an LED, etc., and displays a GUI (Graphical User Interface) for a user to operate the imaging device 100. For this reason, the CPU 201 also generates a GUI image to be displayed on the display unit 207. The communication unit 208 executes communication processing between the imaging device 100 and an external device. Note that communication by the communication unit 208 may be performed via a wired network such as a LAN, or via a wireless network.
[0021] Hereinafter, in the imaging device 100 of this embodiment, information related to the correction processing stored in the storage unit 107, pixel determination processing in the setting unit 106, and information update processing in the storage unit 107 will be described in detail. In this embodiment, as described above, the correction unit 103 performs correction processing such as inferring a correct output value for a defective pixel based on the output values of pixels surrounding the defective pixel, and setting the inferred output value as the output of the defective pixel.
[0022] However, as described above, in the image sensor 102 equipped with an APD, the output value may change as the usage time increases. Examples of the change in the output value include a change in the dark count rate (DCR) and a change in the dark current. The DCR is the count value per unit time when the output value (count value) increases due to thermally excited electrons in a state where no light is incident. The above-mentioned correction process for defective pixels cannot deal with such a change in the output value due to an increase in the usage time. That is, even if a pixel that is not a defective pixel at present but should be treated as a defective pixel due to a change in the output value due to an increase in the usage time occurs, the correction process cannot be applied to the pixel.
[0023] Therefore, in the imaging device 100 of this embodiment, among the pixels of the image sensor 102, pixels that are not currently defective pixels but may become pixels that should be treated as defective pixels as the usage time increases, etc., are treated as defective candidate pixels. The imaging device 100 of this embodiment estimates a change due to the usage time increasing in the output value of the defective candidate pixel when no light is incident, and if a predetermined condition is satisfied such that the estimated value is equal to or greater than a threshold value for determining defective pixels, the defective candidate pixel is treated as a defective pixel.
[0024] In this embodiment, the information related to the correction process stored in the storage unit 107 includes information indicating the type of defect in the pixel of the image sensor 102, position information of each pixel in the two-dimensional image, and information on the output value of the defective candidate pixel when no light is incident. In the following description, the output value of the pixel when no light is incident will be called the "dark output value". In this embodiment, the type of defect is identification information (ID) indicating whether the pixel is a defective pixel or a defective candidate pixel. Furthermore, the position information of each pixel in the two-dimensional image is information on the position in the X-axis direction and the Y-axis direction in the two-dimensional image corresponding to the pixel array of the image sensor 102. The position information of each pixel in the two-dimensional image is used as information for identifying the position of the defective pixel to be corrected and the position of the defective candidate pixel that is treated as a defective pixel when the above-mentioned predetermined condition is satisfied.
[0025] FIG. 3 is a diagram showing an example of information related to the correction process stored in the storage unit 107. As shown in FIG. 3, the storage unit 107 stores information indicated by "Defect ID", "X Position", "Y Position" and "Value" in order from the left, following "No." (pixel number) indicating each pixel. The "Defect ID" information is identification information (ID) for making it possible to identify the type of defect, whether the pixel indicated by the pixel number is the above-mentioned defective pixel or defective candidate pixel, by a numerical value. In the case of this embodiment, it is assumed that "Defect ID" is "1" indicates a defective pixel, and "Y Position" is information indicating the coordinate position in the X-axis direction in the two-dimensional image, and "Value" is information indicating the output value (dark output value) of the defective candidate pixel when no light is incident thereon, that is, output value information. That is, in this embodiment, the first information indicating the first pixel having a predetermined characteristic corresponds to "1" of "Defect ID" and the information of "X Position" and "Y Position". In this embodiment, the second information indicating the second pixel having the characteristics that can become the first pixel corresponds to the "0" of the "Defect ID" and the information of the "X Position", "Y Position" and "Value". In Fig. 3, "***" indicates that some information is entered in each field.
[0026] Each piece of information related to the correction process as illustrated in FIG. 3 is created, for example, when the imaging device 100 is manufactured or when an instruction from a user is given, and in either case, the information can be updated. For example, when the information is created when the imaging device 100 is manufactured, a two-dimensional image is acquired in a non-light-incident state in which the imaging element 102 is not exposed to light. Furthermore, it is determined whether the output value of each pixel of the two-dimensional image is equal to or greater than the threshold for defective pixel determination, or whether it is less than the threshold at that time but may become equal to or greater than the threshold for defective pixel determination as the usage time increases. Then, for pixels whose output value is already equal to or greater than the threshold for defective pixel determination at the current time, the "Defect ID" is set to "1". For pixels whose output value is less than the threshold for defective pixel determination at the current time but may become equal to or greater than the threshold as the usage time increases, the "Defect ID" is set to "0", and information on the dark output value in the non-light-incident state is described in the "Value". This makes it possible to create information such as that shown in FIG. 3. When creating the correction information in response to a user's instruction, for example, the aperture of the optical system is completely closed or a lens cap is attached to create a non-light-incident state in which the image sensor 102 is not exposed to light. Then, for example, when a calibration function provided in the image sensing device 100 is operated, various pieces of information related to the correction process as shown in Fig. 3 can be obtained by executing the same process as that performed when the image sensing device 100 was manufactured. Note that the information created when the image sensing device 100 was manufactured or created in response to a user's instruction is set to an initial value, and this information can be updated as described later.
[0027] In this embodiment, the threshold value used to determine whether a pixel is defective or not is set in advance in consideration of the characteristics of the image sensor 102. The threshold value for determining defective candidate pixels, which is used to determine whether a pixel is not defective at present but may become defective as the usage time increases, is set to a value lower than the threshold value for determining defective pixels as described above. The threshold value for determining defective candidate pixels can be calculated by, for example, calculating a predicted value of the output value that changes depending on the usage time or the number of occurrences of the avalanche phenomenon from the characteristics of the image sensor 102, and calculating backwards based on the predicted value of the change and the product life of the image sensor. That is, for example, the initial value of the output value when it is determined that there is a possibility that the threshold value for determining defective pixels will be exceeded within the product life of the image sensor, can be used as the threshold value for determining defective candidate pixels.
[0028] In this embodiment, when estimating the change in the output value due to an increase in the usage time, the integrated value of the output value of the defective candidate pixel is used. That is, in the case of the image sensor 102 using an APD, the number of occurrences of the avalanche phenomenon affects the change in the output value of the pixel, and in the image sensor 102 using an APD, the result of counting the number of occurrences of the avalanche phenomenon is obtained as the output value of each pixel. Therefore, the dark output value of the defective candidate pixel at the current time can be estimated from the initial value of the output value of the defective candidate pixel, the result of integrating the output value of the defective candidate pixel, and the rate of change of the output value with respect to the number of occurrences of the avalanche phenomenon determined by the characteristics of the image sensor 102. Therefore, it is possible to determine whether or not the defective candidate pixel should be treated as a defective pixel depending on whether or not the estimated value of the dark output value of the defective candidate pixel at the current time is equal to or greater than the threshold value for determining a defective pixel.
[0029] 4 is a flowchart showing the flow of pixel determination processing for determining whether a pixel is defective or a candidate defective pixel in an actual usage environment of the image pickup device 100 of this embodiment. Note that in the following flowcharts, the symbol "S" represents a processing step (process).
[0030] First, in the process of S401, the setting unit 106 acquires second information, that is, information on a defective candidate pixel, from information related to correction processing stored in the storage unit 107. Specifically, the setting unit 106 acquires each piece of information on "X Position", "Y Position", and "Value" for a pixel having a "Defect ID" of "0" in Fig. 3. Note that the process of S301 is performed, for example, when the imaging device 100 is started up.
[0031] Next, in the process of S402, the setting unit 106 identifies the defective candidate pixel from the two-dimensional image data output from the image sensor 102 based on the position information (X position and Y position) of the defective candidate pixel, extracts the output value, and accumulates the value. Note that when accumulating, if a sufficient memory area can be secured, the output value may be accumulated as is, but in order to reduce the memory area, the output value may be processed to reduce the value by, for example, dividing the data of the output value before accumulating.
[0032] Next, in processing S403, the setting unit 106 estimates the current dark output value of the defective candidate pixel based on the accumulation result in S402, the rate of change with respect to the number of times the avalanche phenomenon occurs in the image sensor 102, and the initial value (Value) of the dark output value of the defective candidate pixel.
[0033] Next, in the process of S404, the setting unit 106 determines whether the estimated value of the dark output value obtained in S403 is equal to or greater than a threshold value for determining defective pixels, and if it is less than the threshold value, the process proceeds to S405. Then, in S405, the setting unit 106 updates information about the defective candidate pixel being determined. Specifically, the setting unit 106 overwrites the "Value" of the defective candidate pixel having a "Defect ID" of "0" in FIG. 3 stored in the storage unit 107 with the estimated value obtained in S403. After that, the setting unit 106 returns the process to S402.
[0034] On the other hand, if it is determined that the estimated dark output value obtained in S404 is equal to or greater than the threshold value for defective pixel determination, the setting unit 106 advances the process to S406. In S406, the setting unit 106 updates the information in the storage unit 107 so as to treat the defective candidate pixel, whose estimated dark output value is determined to exceed the threshold value for defective pixel determination, as a defective pixel. Specifically, the value of "Defect ID" shown in FIG. 3 is changed from "0" to "1." Then, when the process of S406 ends, the setting unit 106 completes the process of the flowchart in FIG. 4 for the defective candidate pixel to be determined.
[0035] After the above processing, in the imaging device 100, the correction unit 103 performs a correction process on the defective pixels based on the information stored in the storage unit 107. That is, in this case, the correction unit 103 performs a defect correction process that also targets pixels that have been switched from defective candidate pixels to defective pixels by the above-mentioned processing. Since the image sensor 102 is expected to include a plurality of defective candidate pixels, the process described in the flowchart of FIG. 4 is performed for each of these defective candidate pixels.
[0036] The processing for each defective candidate pixel may be performed simultaneously by dividing each pixel on the image sensor 102 into a plurality of predetermined pixel groups, or sequentially by pixel group. The type of processing to be performed can be selected according to the implementation of the setting unit 106. When performing simultaneous processing for each image group, a configuration in which simultaneous parallel processing is performed by a CPU having a parallel processing mechanism or a plurality of identical logic circuits is assumed. When performing sequential processing by dividing into a plurality of pixel groups, a configuration in which sequential processing is performed by a CPU having a single processing mechanism is assumed. However, when performing sequential processing, it is necessary to take measures so that the calculation processing interval for each pixel does not become too large. For example, when performing sequential processing, when there are many pixels to be processed, a certain amount of time passes between the calculation of a certain pixel and the next calculation of the same pixel, and there is a possibility that the output value of the target pixel used for estimating the usage time will be missed during that time. When the time interval for calculation is about several frames during video shooting, the exposure conditions are unlikely to change significantly, so it is also possible to infer the influence during the process. However, if the calculation time interval is so long that it cannot be inferred, it is desirable to always perform output integration for each pixel, or to increase the number of parallel processes so that the calculation time interval does not affect the estimation.
[0037] As described above, in the imaging device according to the first embodiment, it is possible to apply a correction process for a defective pixel even when the output value changes with an increase in the usage time. That is, when a defective candidate pixel is treated as a defective pixel based on an estimated value of a change in output value with an increase in usage time, the defective candidate pixel can be treated as a defective pixel and subjected to a correction process for the defective pixel.
[0038] <Second embodiment> In the first embodiment, the output values of all the defect candidate pixels of the image sensor 102 are integrated, and the integration result is used to obtain an estimated value of the output value that changes with an increase in the usage time. In the second embodiment, the defect candidate pixels are graded according to their dark output values, and an estimated value of the output value that changes with the usage time is obtained for the representative pixel in the image group for each grade, thereby making it possible to reduce the amount of integration processing and the amount of data of the integration result. Note that the configuration of the image sensor 100 according to the second embodiment is the same as that shown in FIG. 1 and FIG. 2, and therefore illustration thereof is omitted. In the following description, only the processing different from that of the first embodiment will be described.
[0039] In the second embodiment, information related to the correction process includes information indicating the type of defect for each pixel, the position within the two-dimensional image, information indicating the grade of the defect type for each pixel, and information on the dark output value corresponding to the pixel group to which each grade is assigned. FIG. 5 is a diagram showing an example of information related to the correction process in the second embodiment. As shown in FIG. 5(A), the storage unit 107 stores information indicated by "Defect ID", "X Position", "Y Position", and "Grade" in order from the left, following "No." indicating each pixel. The information of "No.", "X Position", and "Y Position" is the same as in the example of FIG. 3 described above. Also, in the example of FIG. 5, as in FIG. 3, "***" indicates that some information is to be entered in each column. In the example of FIG. 5, "Defect ID" indicates that a pixel is defective if it is "1", and that a pixel is a candidate defective pixel if it is "2". Note that "Defect ID" indicating the type of defect is ID (identification information) indicating a defective pixel if it is "1" and a candidate defective pixel if it is "2", but the type of defect for each pixel can include types other than the two types of defective pixel and candidate defective pixel. In this way, when the number of types of defects for each pixel is increased, the number of IDs of "Defect ID" may be increased according to the number of types.
[0040] "Grade" is information indicating a grade according to the dark output value of a defective candidate pixel. As shown in FIG. 5B, "Value" indicating the dark output value corresponding to a pixel group to which a "Grade" is assigned is stored in a form corresponding to the "Grade". A value according to the margin for the threshold value for determining a defective pixel when the pixel is determined to be defective based on the usage time is assigned to the "Grade" of the defective candidate pixel. In other words, the margin is a value indicating the margin until the dark output value of the defective candidate pixel (i.e., the characteristic when no light is incident) becomes the dark output value of the defective pixel (i.e., the characteristic when no light is incident). In the example of FIG. 5, letters such as A, B, and E are entered in the "Grade" column for explanatory purposes, but these are merely for explanatory purposes and are not limited to these letters.
[0041] As described above, in each defective candidate pixel with a "Defect ID" of "2," pixel groups assigned the same "Grade," that is, pixel groups with the same margin for the threshold for defective pixel determination, are treated as the same group in this embodiment. Then, for pixel groups classified as the same group, estimation of dark output values and a determination as to whether or not the pixel should be treated as a defective pixel are performed collectively based on the estimation results. Then, in this embodiment, a representative pixel is selected from the pixel groups classified as the same group, and a dark output value is estimated for the representative pixel, and a determination as to whether or not the pixel should be treated as a defective pixel is performed based on the estimation results.
[0042] The representative pixel may be set, for example, when the imaging device 100 is manufactured and information related to the correction process is stored in the storage unit 107. Alternatively, the representative image may be extracted at a constant rate so as to avoid bias from the current distribution of the defect candidate pixels, or pixels close to the average value may be extracted from each pixel group. Furthermore, the estimated dark output value of the representative pixel in the pixel group may be, for example, the average of the estimated dark output values of each pixel in the pixel group. The timing and method of selecting the representative pixel are not limited to these examples.
[0043] In this way, by estimating the dark output value and determining whether or not to treat it as a defective pixel based on the representative pixel of the pixel group in the group, it becomes unnecessary to store the dark output values of all pixels in the pixel group in the storage unit 107, and it becomes possible to reduce the required storage capacity. Also, by estimating the dark output value not for all pixels in the pixel group but only for the representative pixel of the pixel group and using this as the estimated value of the dark output value of the pixel group, it becomes possible to reduce the amount of calculation for the estimation process.
[0044] FIG. 6 is a diagram used to explain the allocation of the above-mentioned "Grades." In FIG. 6, five adjacent pixels Pa to Pe are extracted from a certain portion on the image sensor 102, and the dark output values of the pixels Pa to Pe are shown in a row from the left. FIG. 6 also shows a threshold value for defective pixel determination and a threshold value for defective candidate pixel determination. That is, in the example of FIG. 6, pixel Pc exceeds the threshold value for defective pixel determination, so it is treated as a defective pixel, and pixels Pa and Pd are less than the threshold value for defective pixel determination and exceed the threshold value for defective candidate pixel determination, so they are treated as defective candidate pixels. However, there is a difference between the dark output values of pixel Pa and pixel Pd, so that the margin of error for the threshold value for defective pixel determination differs between pixel Pa and pixel Pd. In the example of FIG. 6, pixel Pa has a smaller margin of error for the threshold value for defective pixel determination than pixel Pd.
[0045] Furthermore, since the pixels Pa to Pe are adjacent to each other on the image sensor 102 as described above, it is highly likely that the amount of light incident on each pixel Pa to Pe during imaging will be similar, and as a result, it is presumed that the changes in response to the number of occurrences of the avalanche phenomenon associated with exposure will also be similar. However, between pixel Pa and pixel Pd, which are defective candidate pixels, pixel Pa, which has a smaller margin for the defective pixel determination threshold, is more likely to be treated as a defective pixel first. In other words, although pixel Pa and pixel Pd are both defective candidate pixels, it is desirable to distinguish between pixel Pa and pixel Pd. For this reason, in this embodiment, the distinction is realized by the aforementioned "Grade" (margin).
[0046] FIG. 7 is a flowchart showing the flow of pixel determination processing when determining whether a pixel is defective or a candidate defective pixel in the image capture device 100 of the second embodiment. First, in the process of step S701, the setting unit 106 acquires second information, that is, information on a defective candidate pixel, from information related to correction processing stored in the storage unit 107. That is, the setting unit 106 acquires each piece of information on "X Position", "Y Position", "Grade", and "Value" for a pixel having a "Defect ID" of "2" in Fig. 5. Note that the process of S701 is performed, for example, when the imaging device 100 is started up.
[0047] Next, in the process of S702, the setting unit 106 extracts pixels of the same “Grade” from among the defective candidate pixels identified by the information on the defective candidate pixels acquired in S701, creates an image group, and selects a representative pixel from the image group as a target for estimating a dark output value.
[0048] Next, in the process of S703, the setting unit 106 estimates the change in the dark output value of the representative pixel due to an increase in the usage time. The estimation method is the same as the method for obtaining the estimated value described in the first embodiment. That is, the setting unit 106 obtains an estimate of the current dark output value based on the output integration result of the representative pixel, the rate of change with respect to the number of occurrences of the avalanche phenomenon, and the initial value of the dark output value.
[0049] Next, in the process of S704, the setting unit 106 determines whether or not the estimated value obtained in S703 is equal to or greater than a threshold value for determining defective pixels, and if it is not equal to or greater than the threshold value, the process proceeds to S705. In S705, the setting unit 106 updates information on each defective candidate pixel of the pixel group to which the representative pixel belongs. Specifically, among the information on each of the "Grade" and "Value" of the pixel group shown in FIG. 5, the "Value" is overwritten with the estimated value, and then the process of the setting unit 106 returns to S702.
[0050] On the other hand, if it is determined that the estimated value obtained in S704 is equal to or greater than the threshold value for determining defective pixels, the setting unit 106 advances the process to S706. In S706, the setting unit 106 updates the information in the storage unit 107 so that each defective candidate pixel in the pixel group to which the representative pixel belongs is treated as a defective pixel. Specifically, the value of "Defect ID" of the defective candidate pixel corresponding to the "Grade" of that pixel group shown in FIG. 5 is changed from "2" to "1." As a result, each pixel in that pixel group is treated as a defective pixel. Then, when the process of S706 ends, the process of the flowchart in FIG. 7 is completed.
[0051] After the above processing, the correction unit 103 of the imaging device 100 performs correction processing on the defective pixels based on the information stored in the storage unit 107. That is, the correction unit 103 performs defect correction processing that also targets pixels that have been switched from defective candidate pixels to defective pixels by the above-mentioned processing.
[0052] In the above description, an example has been given in which the setting unit 106 updates the information in FIG. 5 in S706, but the present invention is not limited to this example. For example, a configuration may be adopted in which the setting unit 106 is configured to transmit information to the correction unit 103, and the setting unit 106 may notify the correction unit 103 of which grade of pixel group of defective candidate pixels should be set as defective pixels to be corrected. Upon receiving this notification, the correction unit 103 performs correction processing on the pixel group having the "Grade" value specified in the notification, among the defective candidate pixels, as defective pixels to be corrected.
[0053] In the second embodiment, the above-described processing makes it possible to reduce the amount of data and the amount of processing, while also applying defect correction processing to pixels that become defective as a result of increased use time.
[0054] <Third embodiment> In the first and second embodiments described above, an example was given in which the change in output value due to an increase in usage time was estimated by focusing on the exposure of each pixel. In the third embodiment, an example is given in which the influence of exposure is evaluated for the entire data corresponding to a two-dimensional image output from the image sensor 102, or for each region obtained by dividing a two-dimensional image into a plurality of regions, and the change in output value due to an increase in usage time is estimated based on the evaluation value. That is, in the third embodiment, the change in output value due to an increase in usage time of the entire two-dimensional image or of the defective candidate pixels present in each region is estimated from the evaluation value obtained by evaluating the influence of exposure for the entire two-dimensional image or for each region obtained by dividing a two-dimensional image into a plurality of regions. In this way, the amount of calculation and the storage capacity of the calculation results can be reduced compared to the cases exemplified in the first and second embodiments. Note that the configuration of the image capture device 100 according to the third embodiment is the same as that shown in FIG. 1 and FIG. 2 described above, and therefore illustration thereof is omitted. In the following description, only the parts different from the first and second embodiments described above will be described.
[0055] FIG. 8 is a diagram showing an example of information related to correction processing stored in the storage unit 107 in the third embodiment. FIG. 8(A) is generally similar to FIG. 5(A) described above, and FIG. 8(B) is generally similar to FIG. 5(B) with the following differences. In the case of FIG. 8(A), not only "2" but also "3" is added as an ID indicating a defective candidate pixel in "Defect ID". Also, as shown in FIG. 8(C), "Rate" indicating the rate of change in output value due to use time in the defective candidate pixel is added in a form corresponding to each "Defect ID" of the defective candidate pixel. That is, in the case of the third embodiment, multiple corresponding values are prepared for the "Defect ID" of the defective candidate pixel according to the "Rate" indicating the rate of change in output value due to use time.
[0056] FIG. 9 is a diagram used to explain that a plurality of "Defect IDs" of defective candidate pixels are prepared according to "Rates" in the third embodiment. In FIG. 9, eight adjacent pixels Pa to Ph are extracted in a certain portion on the image sensor 102, and the dark output values of the pixels Pa to Ph are shown in a row from the left. FIG. 9 also illustrates a threshold value for defective pixel determination and a threshold value for defective candidate pixel determination. In the example of FIG. 9, pixels Pc and Pe exceed the threshold value for defective pixel determination, and are treated as defective pixels, while pixels Pa, Pd, and Pg are less than the threshold value for defective pixel determination and exceed the threshold value for defective candidate pixel determination, and are treated as defective candidate pixels. Then, the "Defect IDs" of defective candidate pixels are assigned to these defective candidate pixels (pixels Pa, Pd, and Pg), and at that time, the assignment is performed so as to match the "Rates" that are assumed to be the rate of change of the output value of the defective candidate pixels depending on the usage time.
[0057] The following description focuses on the defective candidate pixels Pd and Pg. These two pixels Pd and Pg have the same dark output value in the example of Fig. 9, but the adjacent pixels of pixel Pd are pixels Pc and Pe, which have large dark output values. In an image sensor equipped with an APD, as described above, crosstalk may occur in which secondary electrons generated by the avalanche phenomenon are incident on adjacent pixels. In other words, in the APD of a pixel of interest, secondary electrons are generated by the avalanche phenomenon a number of times that are correlated with the output value, and when these secondary electrons are incident on an adjacent pixel, crosstalk occurs in which the output value of the adjacent pixel also increases. Hereinafter, the effect of such crosstalk will be referred to as the "crosstalk effect."
[0058] Furthermore, in an image sensor equipped with an APD, the dark output value changes depending on the number of times the avalanche phenomenon occurs, so the dark output values of defective pixels Pc and Pe, which have large original dark output values, change more quickly than the other pixels shown in Figure 9. Therefore, it is presumed that pixel Pd, which is adjacent to pixel Pc and pixel Pe with large dark output values and is therefore susceptible to crosstalk, will experience a greater number of avalanche events and a faster change in its dark output value than pixel Pg, which has a similar initial dark output value.
[0059] For this reason, in the case of the third embodiment, for each defective candidate pixel, a "Rate" indicating the rate of change is set based on the dark output values of the surrounding pixels. In this embodiment, pixels with similar "Rate" values are grouped together and assigned a "Defect ID," and a "Rate" corresponding to each of the same "Defect ID" is determined from the "Rate" of each pixel in the group. Note that, as explained in the previous embodiment, information related to these "Defect IDs" and "Rates" is created when the imaging device 100 is manufactured or in response to a user's instruction, and can be updated.
[0060] 9, among the defective candidate pixels Pa, Pd, and Pg, a different "Defect ID" is assigned to pixel Pa and pixel Pg, which are estimated to have a slower rate of change than pixel Pd, which is estimated to have a faster rate of change due to the influence of surrounding pixels. Also, pixels Pa and Pg, which are assigned the same "Defect ID," are assigned different "Grades" depending on the margin to the threshold for defective pixel determination, as explained in the second embodiment.
[0061] So far, we have explained an example of how to assign "Defect ID" to each pixel, but in this embodiment, as explained at the beginning, a two-dimensional image is divided into a plurality of regions, and the influence of exposure is calculated as an evaluation value for each region. Therefore, in this embodiment, more detailed assignment is performed as described below.
[0062] FIG. 10 is a diagram showing an example of calculating evaluation values for a two-dimensional image 1001 output from the image sensor 102, divided into four regions R1 to R4. For ease of explanation, it is assumed that the output value of each pixel in each region is uniform. In FIG. 10, it is assumed that the output value of region R1 is the largest, and the output value decreases counterclockwise in the order of regions R2, R3, and R4. Furthermore, in this situation, it is assumed that, for example, there is one pixel each in region R1 and region R4 that has the same dark output value, that the dark output value is at a level that is treated as a defective candidate pixel, and that the crosstalk influence from the surrounding pixels is also considered to be equal. Here, if the same "Defect ID" and "Grade" are assigned to these pixels, the evaluation value for each region will be different, and therefore the influence of the usage time will differ between the pixels in region R1 and the pixels in region R4. This makes it unsuitable to treat these pixels as pixels belonging to the same group.
[0063] In order to prevent such an event, in this embodiment, as an example, the target pixels are treated as pixels belonging to different groups based on the information indicating the position of each pixel and the information on the division of each area. As another example, pixels belonging to different areas may be treated as different groups by not assigning the same "Defect ID". Note that such processing is not necessary if the two-dimensional image is not divided.
[0064] FIG. 11 is a flowchart showing the flow of pixel determination processing in the imaging device 100 of the third embodiment. First, in the process of step S1101, the setting unit 106 acquires second information, that is, information on defective candidate pixels, from information related to correction processing stored in the storage unit 107. That is, the setting unit 106 acquires each piece of information on "X Position", "Y Position", "Grade", "Value", and "Rate" for pixels with "Defect ID" of "2" and "3" in Fig. 8. Note that the process of S1101 is performed, for example, when the imaging device 100 is started up.
[0065] Next, in the process of S1102, the setting unit 106 divides the two-dimensional image from the image sensor 102 into a plurality of regions, and calculates an evaluation value of the exposure effect for each region. As an example, the evaluation value of the exposure effect for each region is an integrated value of the average value of the output value of each pixel. As described above, in the image sensor 102 using the APD, the number of occurrences of the avalanche phenomenon affects the change in the output value, and the result of counting the number of occurrences of the avalanche phenomenon is output as the output value of each pixel. Therefore, the integrated result of the average value of the output value of each pixel included in each region is treated as an evaluation value used to estimate the change in the output value in the target region. Note that the process of S1102 is performed only for regions in which at least one or more defective candidate pixels exist, and it is not necessary to perform the calculation for regions in which no defective candidate pixels exist.
[0066] Next, in the process of S1103, the setting unit 106 estimates the change in output value due to the usage time of the current group of defective candidate pixels based on the evaluation value of the exposure effect for each region described above, the “Rate” of each defective candidate pixel contained in the region, and the “Value” of the group of defective candidate pixels. Here, since the rate at which the output value changes over time differs for each defective candidate pixel in each region, there is a possibility that defective candidate pixels to which different "Defect ID" and "Rate" are assigned exist. For this reason, the setting unit 106 estimates the current dark output value from the "Value" value corresponding to the "Rate" and "Grade" that each "Defect ID" has.
[0067] For example, the number of occurrences of avalanche phenomena that affect the change in output value due to usage time, i.e., the output value of a pixel, can be estimated based on the exposure influence evaluation value for each region (the integrated value of the average pixel output value within the region). Since this can be regarded as the number of occurrences of avalanche phenomena in the candidate defective pixel to be calculated within the target region, the setting unit 106 obtains the change value of the dark output value by multiplying it by the change rate for the number of occurrences of avalanche phenomena. The setting unit 106 then adds the obtained change value to the previous dark output value to estimate the current dark output value.
[0068] Next, in the process of S1104, the setting unit 106 determines whether the estimated value obtained in S1103 is equal to or greater than the threshold for determining defective pixels. If the estimated value is less than the threshold for determining defective pixels, the process proceeds to S1105, where the setting unit 106 updates the "Value" of the group of defective candidate pixels with the estimated value, and returns the process to S1102. On the other hand, if it is determined in S1104 that the number is equal to or greater than the threshold, the setting unit 106 advances the process to S1106. When the process proceeds to S1106, the setting unit 106 updates the information in the storage unit 107 so as to treat the defective candidate pixel groups as defective pixels. Specifically, the setting unit 106 changes the value of "Defect ID", for example, to an ID for defective pixels. Alternatively, as described in the above-mentioned embodiment, a configuration may be adopted in which the setting unit 106 is configured to transmit information to the correction unit 103, and the setting unit 106 may notify the correction unit 103 of which grade group of defective candidate pixels should be corrected.
[0069] According to the third embodiment, the above-described processing makes it possible to reduce the amount of calculations and the storage capacity of the calculation results, compared to the first and second embodiments.
[0070] <Fourth embodiment> In the fourth embodiment, a process performed in the imaging device 100 when the zero level that serves as a reference for image information has changed will be described. FIG. 12 is a diagram showing an example of a change in the zero level that is the reference for image information. The left side of FIG. 12 shows an example in which three adjacent pixels Pa, Pb, and Pc are extracted and arranged on a two-dimensional image, and the right side of FIG. 12 shows a state in which the reference zero level has changed in an example in which the same three adjacent pixels Pa, Pb, and Pc are arranged. FIG. 12 also shows an example of a threshold value for determining a defective pixel and a threshold value for determining a defective candidate pixel. In the example on the right side of FIG. 12, a change portion 1200 indicates the amount of change in the zero level, and the upper end of the change portion 1200 becomes the new zero level. Examples of factors that cause such an event include a change in temperature due to an increase in the use time of the image sensor 102, which changes the circuit characteristics in the image sensor 102, causing a deviation in the reference output, or an increase in noise components that are constantly output. In other words, the zero level may move up or down in accordance with an increase or decrease in temperature. As another example, the zero level may change due to the accumulation of exposure effects over time, which may cause changes in pixel characteristics. Additionally, the zero level may change due to various other factors, such as the configuration and characteristics of the image sensor 102.
[0071] When the zero level changes as described above, the defective pixel (pixel Pa) or the defective candidate pixel (pixel Pb) may no longer satisfy the criteria for determining a defective pixel or a defective candidate pixel when the zero level after the change is used as a reference, as shown in Fig. 12. Furthermore, it is also possible that the defective pixel or the defective candidate pixel may come to satisfy the criteria for determining a defective pixel or a defective candidate pixel more rapidly than expected due to the change over time of use.
[0072] Fig. 13 is a diagram showing an example of the configuration of an imaging device 100 according to a fourth embodiment for dealing with such an event. Note that in the imaging device 100 according to the fourth embodiment, a description of the same configuration as in the above-mentioned embodiment will be omitted, and only different parts will be described below. The configuration shown in Fig. 13 differs from the configuration shown in Fig. 1 above in that information can be exchanged between the setting unit 106 and the correction unit 103. In the case of the fourth embodiment, the information related to the correction process stored in the storage unit 107 is assumed to be similar to the information described in the example of Fig. 8 above.
[0073] FIG. 14 is a flowchart showing the flow of processing for determining a zero level change in the image capturing apparatus 100 of the fourth embodiment. First, in the process of step S1401, the setting unit 106 acquires second information, that is, information on defective candidate pixels, from information related to correction processing stored in the storage unit 107. That is, the setting unit 106 acquires each piece of information on "X Position", "Y Position", "Grade", "Value", and "Rate" for pixels with "Defect ID" of "2" and "3" in Fig. 8. Note that the process of S1401 is performed, for example, when the imaging device 100 is started up.
[0074] Next, as the process of S1402, the setting unit 106 acquires information on the zero level of the two-dimensional image. Any method may be used to acquire the information on the zero level. As an example, the setting unit 106 may acquire the zero level based on the output value of an optical black pixel that is insensitive to light and provided in the image sensor 102. Alternatively, if the main cause of the change in the zero level is a temperature change due to the characteristics of the image sensor 102, a temperature sensor that can measure the temperature of the image sensor 102 may be provided, and the setting unit 106 may estimate the zero level from the output temperature value of the temperature sensor. Note that the acquisition of the zero level information is not limited to the setting unit 106, and may be performed by any functional unit, or a separate functional unit for acquiring the zero level may be provided. In the description of this embodiment, an example is given in which the setting unit 106 acquires the information on the zero level.
[0075] Next, in the process of S1403, the setting unit 106 compares the zero level information acquired in S1402 with the zero level information acquired previously, calculates the amount of change in the zero level, and judges whether the amount of change is equal to or greater than the threshold value for determining whether the zero level has changed. The threshold value for determining whether the zero level has changed is a value determined in advance in accordance with the characteristics of the image sensor 102. For example, under the actual use conditions of the image capture device 100, when an image is generated from a state in which the output value of the image sensor 102 is small, it is expected that a numerical change of just one level in the zero level will affect the image and also affect the defective pixel determination. For this reason, it is desirable to set the threshold value for determining whether the zero level has changed to a small value in this case.
[0076] 14 if the amount of change in the zero level is not equal to or greater than the threshold value for determining a change in the zero level, and proceeds to S1404 if the amount of change in the zero level is equal to or greater than the threshold value. In either case, the latest zero level information is stored in, for example, the storage unit 107 as information for calculating the amount of change in the next zero level (information on the previously acquired zero level), and then the process proceeds to the next process.
[0077] Proceeding to S1404, the setting unit 106 determines whether the change in the zero level is an increase or decrease in the level value. If the setting unit 106 determines that the change in the zero level is a decrease in the level value, then in the process of S1405, the setting unit 106 decreases the threshold value for determining defective pixels and the threshold value for determining defective candidate pixels by the amount of the decrease in the zero level. On the other hand, if the setting unit 106 determines in S1404 that the change in the zero level is an increase in the level value, then in the process of S1406, the setting unit 106 increases the threshold value for determining defective pixels and the threshold value for determining defective candidate pixels by the amount of the increase in the zero level.
[0078] 14 is performed at regular intervals, and the thresholds for determining defective pixels and candidate defective pixels are updated in accordance with the zero level changes. Note that the intervals at which the zero level change determination process is performed may be set in accordance with the change characteristics of the zero level of the image sensor 102.
[0079] Fig. 15 is a flowchart showing the flow of pixel determination processing in the image pickup device 100 of the fourth embodiment, and the amount of change in the zero level calculated in the zero level change determination processing in Fig. 14 is used in the pixel determination processing. In the flowchart of Fig. 15, the processing from S1501 to S1503 is the same as the processing from S1101 to S1103 in Fig. 11 described above, and the current dark output value is estimated after acquiring defective candidate pixel information. Then, after the processing of S1503, the setting unit 106 advances the processing to S1504.
[0080] In S1504, the setting unit 106 determines whether the estimated dark output value in S1503 is equal to or greater than a threshold value for determining defective pixels. In the fourth embodiment, however, the threshold value for determining defective pixels used in this determination is a threshold value that sequentially reflects changes in the zero level through the processing in the flowchart of FIG.
[0081] Then, if it is determined in S1504 that the estimated value of the dark output value is less than the threshold value for determining defective pixels, the setting unit 106 advances the process to S1505 and updates the information of the target pixel group stored in the storage unit 107. At this time, even if a pixel was previously determined to be a defective pixel and was subject to defect correction, it may be determined in S1504 that it is not at a level to be treated as a defective pixel due to the change in the zero level as described above, and the process of S1505 may be applied. In this case, the setting unit 106 updates the information on the defective pixel and the "Value" indicating the current estimated value of the dark output value of the information on the defective candidate pixel as shown in FIG. 9 in the storage unit 107. At the same time, the setting unit 106 notifies the correction unit 103 to exclude the "Defect ID" and "Grade" of the pixel group that was previously notified to be a defective pixel subject to correction from the correction target. Then, when the setting unit 106 finishes updating the information by the process of S1505, the process returns to S1502.
[0082] On the other hand, if it is determined in S1504 that the estimated value of the dark output value is equal to or greater than the threshold value for determining defective pixels, the setting unit 106 advances the process to S1506. In S1506, the setting unit 106 updates the information on the defective pixel and the "Value" indicating the estimated value of the current dark output value in the information on the defective candidate pixel, as shown in FIG. 9, in the storage unit 107. In addition, the setting unit 106 notifies the correction unit 103 that the target pixel group is to be corrected as a defective pixel. In the above-mentioned embodiment, the processing is described as an example in which the "Defect ID" of the target defective candidate pixel is replaced with a "Defect ID" indicating that the pixel is a defective pixel. In contrast, in the case of the fourth embodiment, as described in the processing of S1505, a pixel that was previously determined to be a defective pixel may return to being a pixel to be treated as a defective candidate pixel due to a zero level change. In this case, the setting unit 106 does not rewrite the "Defect ID", but notifies the correction unit 103 which pixel is to be corrected.
[0083] After the process of S1506, the setting unit 106 advances the process to S1507 and determines whether the estimated value of the dark output value obtained in S1505 is equal to or greater than the maximum value of the zero level change. This determination process is performed to determine whether the irreversible change due to the usage time is so large that the decision to treat the pixel as a defective pixel cannot be overturned even by an increase or decrease in the zero level. The maximum value of the zero level change used as a threshold in the determination process of S1506 may be set according to the characteristics of the image sensor 102, and can be set based on the maximum possible change after understanding in advance the cause of the change in the zero level, such as a temperature change, and the change change range.
[0084] If it is determined that the estimated dark output value is equal to or greater than the maximum value of the zero level change, that is, if it is determined that the target pixel group will not return to a defective candidate pixel even due to future zero level changes, the setting unit 106 ends the process for that target pixel. On the other hand, if it is determined that the estimated dark output value is less than the maximum value of the zero level change, that is, if it is determined that there is a possibility that the target pixel will return to a defective candidate pixel due to the influence of zero level changes in the future, the setting unit 106 returns the process to S1502.
[0085] According to the fourth embodiment, by performing the above-described processing, it becomes possible to determine whether or not a pixel that may become defective due to an increase in usage time should be subject to defect correction, while also taking into account the influence of zero-level changes.
[0086] The present invention can also be realized by supplying a program that realizes one or more functions of the above-mentioned embodiments to a system or device via a network or a storage medium, and having one or more processors in the computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC) that realizes one or more functions. The above-mentioned embodiments are merely examples of concrete implementations of the present invention, and the technical scope of the present invention should not be interpreted as being limited by them. In other words, the present invention can be implemented in various forms without departing from its technical concept or main features.
[0087] The disclosure of each embodiment includes the following configurations, methods, and programs. (Configuration 1) A storage means for storing first information indicating a first pixel that is to be subjected to a predetermined correction process among the pixels constituting the image sensor, and second information indicating a second pixel that is to be subjected to the predetermined correction process when a predetermined condition is satisfied; a setting means for setting the second pixel as a target of the predetermined correction process when an estimated value based on an output of the second pixel specified by the second information satisfies the predetermined condition; a correction means for correcting a value of the first pixel in the image obtained by the imaging element and a value of the second pixel set in the predetermined correction process by the predetermined correction process; An imaging device comprising: (Configuration 2) the first pixel is a pixel that outputs a value equal to or greater than a first threshold even in a state in which no light is incident thereon, the second pixel has a characteristic of outputting a value equal to or greater than a second threshold value that is lower than the first threshold value even in a state in which no light is incident; 2. The imaging device according to claim 1, wherein the predetermined condition is a condition that the estimated value of the second pixel in a state where no light is incident is equal to or greater than the first threshold value. (Configuration 3) the first information includes information indicating a first type indicating that the first pixel is a pixel having a predetermined characteristic and information indicating a position of the first pixel in an image obtained by the imaging element; the second information includes information indicating a second type indicating that the second pixel is a pixel having a characteristic that can become the predetermined characteristic, a value of the second pixel in a state in which the light is not incident, and a position of the second pixel in an image obtained by the image sensor; The imaging device described in configuration 2, characterized in that when the setting means sets the second pixel as a target for the specified correction process, the setting means updates the second type of the second information stored in the storage means to the first type, and updates information indicating a value of the second pixel with the estimated value of the second pixel. (Configuration 4) The imaging device described in configuration 3, wherein the correction means corrects a value of a pixel identified by information indicating the first type stored in the storage means, in the image obtained by the imaging element, by the predetermined correction processing. (Configuration 5) The imaging device described in any one of configurations 1 to 3, characterized in that the correction means corrects, by the predetermined correction processing, a value of a pixel specified by the first information in the image obtained by the imaging element and a value of a pixel set by the setting means as a target of the predetermined correction processing from the second information. (Configuration 6) The imaging device described in any one of configurations 1 to 5, characterized in that the setting means obtains the estimated value for a representative pixel selected from a pixel group consisting of a plurality of second pixels, and if the estimated value of the representative pixel satisfies the specified condition, sets the second pixel included in the pixel group as a target for the specified correction processing. (Configuration 7) 7. The imaging device according to configuration 6, wherein the setting means determines the second pixel to be included in the pixel group in accordance with characteristics of the second pixel. (Configuration 8) The imaging device according to configuration 7, wherein the setting means determines the second pixel to be included in the pixel group in accordance with a margin of error of the characteristics of the second pixel relative to the characteristics of the first pixel. (Configuration 9) The imaging device according to configuration 3, wherein the setting means obtains an evaluation value representing an influence of exposure on the imaging element, and obtains the estimated value of the second pixel based on the evaluation value. (Configuration 10) 10. The imaging apparatus according to claim 9, wherein the setting means obtains the evaluation value for each of a plurality of regions obtained by dividing an image obtained by the imaging element. (Configuration 11) the second information also includes information indicating a rate of change in value of the second pixel included in the region due to use of the imaging element; The imaging device described in configuration 10, characterized in that the setting means obtains the estimated value of the second pixel based on the evaluation value for each of the regions, information indicating the rate of change in the second pixel included in the region, and information indicating the value of the second pixel in a state in which the light is not incident. (Configuration 12) The imaging device described in configuration 11, characterized in that the information indicating the rate of change in the second pixel is information determined based on the values of pixels surrounding the second pixel among each pixel constituting the imaging element when no light is incident. (Configuration 13) An acquisition means for acquiring a zero level of an image obtained by the imaging element; a means for changing the first threshold value in response to the zero level; 3. The imaging device according to claim 2, further comprising: (Configuration 14) 14. The imaging device according to any one of configurations 1 to 13, wherein each pixel of the imaging element is formed of an avalanche photodiode. (Configuration 15) The imaging device according to configuration 14, wherein the setting means obtains an estimate of a change in value of the second pixel due to use of the imaging element based on the number of times an avalanche phenomenon occurs in an avalanche photodiode of the imaging element. (Configuration 16) The imaging device described in any one of configurations 1 to 14, characterized in that the setting means obtains the estimated value of the second pixel identified by the second information based on the usage time of the imaging element. (Method 1) a storage step of storing first information indicating a first pixel that is to be subjected to a predetermined correction process among the pixels constituting the image sensor, and second information indicating a second pixel that is to be subjected to the predetermined correction process when a predetermined condition is satisfied; a setting step of setting the second pixel as a target of the predetermined correction process when an estimated value based on an output of the second pixel specified by the second information satisfies the predetermined condition; a correction step of correcting a value of the first pixel in the image obtained by the imaging element and a value of the second pixel set in the predetermined correction process by the predetermined correction process; 13. A method for controlling an imaging apparatus comprising: (Program 1) A program for causing a computer included in an imaging apparatus to function as each of the means of the imaging apparatus according to any one of configurations 1 to 16. [Explanation of symbols]
[0088] 100: imaging device, 102: imaging element, 103: correction unit, 104: processing unit, 106: setting unit, 107: storage unit
Claims
1. a storage means for storing first information indicating a first pixel that is to be subjected to a predetermined correction process among the pixels constituting the image sensor, and second information indicating a second pixel that is to be subjected to the predetermined correction process when a predetermined condition is satisfied; a setting means for setting the second pixel as a target of the predetermined correction process when an estimated value based on an output of the second pixel specified by the second information satisfies the predetermined condition; a correction means for correcting a value of the first pixel in the image obtained by the imaging element and a value of the second pixel set in the predetermined correction process by the predetermined correction process; An imaging device comprising:
2. the first pixel is a pixel that outputs a value equal to or greater than a first threshold even in a state in which no light is incident thereon, the second pixel has a characteristic of outputting a value equal to or greater than a second threshold value that is lower than the first threshold value even in a state in which no light is incident; 2 . The imaging device according to claim 1 , wherein the predetermined condition is a condition that the estimated value of the second pixel in a state where no light is incident is equal to or greater than the first threshold value.
3. the first information includes information indicating a first type indicating that the first pixel is a pixel having a predetermined characteristic and information indicating a position of the first pixel in an image obtained by the imaging element; the second information includes information indicating a second type indicating that the second pixel is a pixel having a characteristic that can become the predetermined characteristic, a value of the second pixel in a state in which the light is not incident, and a position of the second pixel in an image obtained by the image sensor; 3. The imaging device according to claim 2, wherein, when the second pixel is set as a target for the specified correction process, the setting means updates the second type of the second information stored in the memory means to the first type, and updates information indicating a value of the second pixel with the estimated value of the second pixel.
4. 4. The imaging device according to claim 3, wherein the correction means corrects a value of a pixel in the image obtained by the imaging element, the value being identified by the information indicating the first type stored in the memory means, by the predetermined correction process.
5. The imaging device according to claim 1, characterized in that the correction means corrects, by the predetermined correction process, a value of a pixel in the image obtained by the imaging element that is identified by the first information and a value of a pixel that is set by the setting means as a target for the predetermined correction process from the second information.
6. 2. The imaging device according to claim 1, wherein the setting means acquires the estimated value for a representative pixel selected from a pixel group consisting of a plurality of second pixels, and sets the second pixel included in the pixel group as a target for the specified correction process if the estimated value of the representative pixel satisfies the specified condition.
7. 7. The imaging apparatus according to claim 6, wherein the setting means determines the second pixels to be included in the pixel group in accordance with characteristics of the second pixels.
8. 8. The imaging device according to claim 7, wherein the setting means determines the second pixel to be included in the pixel group in accordance with a margin of error of the characteristics of the second pixel relative to the characteristics of the first pixel.
9. 4. The imaging apparatus according to claim 3, wherein the setting unit obtains an evaluation value representing an effect of exposure on the imaging element, and obtains the estimated value of the second pixel based on the evaluation value.
10. 10. The imaging apparatus according to claim 9, wherein the setting unit obtains the evaluation value for each of a plurality of regions obtained by dividing an image obtained by the imaging element.
11. the second information also includes information indicating a rate of change in value of the second pixel included in the region due to use of the imaging element; The imaging device described in claim 10, characterized in that the setting means obtains the estimated value of the second pixel based on the evaluation value for each of the regions, information indicating the rate of change in the second pixel included in the region, and information indicating the value of the second pixel in a state in which the light is not incident.
12. The imaging device according to claim 11, characterized in that the information indicating the rate of change in the second pixel is information determined based on values of pixels surrounding the second pixel among the pixels constituting the imaging element when no light is incident thereon.
13. An acquisition means for acquiring a zero level of an image obtained by the imaging element; a means for changing the first threshold value in response to the zero level; 3. The imaging device according to claim 2, further comprising:
14. 14. The imaging device according to claim 1, wherein each pixel of the imaging element is formed of an avalanche photodiode.
15. 15. The imaging device according to claim 14, wherein the setting means obtains an estimate of a change in value of the second pixel due to use of the imaging element, based on the number of times an avalanche phenomenon occurs in an avalanche photodiode of the imaging element.
16. 2 . The imaging apparatus according to claim 1 , wherein the setting unit obtains the estimated value of the second pixel specified by the second information on the basis of a usage time of the imaging element.
17. a storage step of storing first information indicating a first pixel that is to be subjected to a predetermined correction process among the pixels constituting the image sensor, and second information indicating a second pixel that is to be subjected to the predetermined correction process when a predetermined condition is satisfied; a setting step of setting the second pixel as a target of the predetermined correction process when an estimated value based on an output of the second pixel specified by the second information satisfies the predetermined condition; a correction step of correcting a value of the first pixel in the image obtained by the imaging element and a value of the second pixel set in the predetermined correction process by the predetermined correction process; 13. A method for controlling an imaging apparatus comprising:
18. A computer included in the imaging device, a storage means for storing first information indicating a first pixel that is to be subjected to a predetermined correction process among the pixels constituting the image sensor, and second information indicating a second pixel that is to be subjected to the predetermined correction process when a predetermined condition is satisfied; a setting means for setting the second pixel as a target of the predetermined correction process when an estimated value based on an output of the second pixel specified by the second information satisfies the predetermined condition; a correction means for correcting a value of the first pixel in the image obtained by the imaging element and a value of the second pixel set for the predetermined correction processing by the predetermined correction processing; A program that makes it work.
