Imaging apparatus
By adjusting the calculation range and filter based on PSF, the imaging device optimizes blur correction accuracy and reduces computational load, addressing the imbalance in existing imaging technologies.
Patent Information
- Application Number
- JP2023033857
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-19
- Estimated Expiration
- 2043-03-06
AI Technical Summary
Existing imaging devices face challenges in balancing blur correction accuracy and calculation load when images are divided into uniform sizes, leading to decreased accuracy in areas with high blur or excessive load in areas with low blur.
The imaging device employs a blur correction processing unit that adjusts the calculation range and filter based on the Point Spread Function (PSF) corresponding to each pixel position, allowing for multiple iterations of image data extraction and reconstruction to optimize accuracy while reducing computational load.
This approach enhances blur correction accuracy while minimizing computational resources by aligning the calculation range with the PSF distribution, thus achieving efficient and precise image processing.
Smart Images

Figure 2024125791000001
Abstract
Description
[Technical field]
[0001] The technology disclosed in this specification relates to an imaging device.
[0002] Patent Document 1 discloses an imaging device that divides an image into uniform size images and performs blur correction processing using a filter on each divided image. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 7027737 Summary of the Invention [Problem to be solved by the invention]
[0004] When dividing an image into uniform sizes and performing blur correction processing on each divided image, if the image is divided into sizes that correspond to the areas with a small degree of blur, the accuracy of the blur correction processing will decrease in areas with a large degree of blur. Conversely, if the image is divided into sizes that correspond to the areas with a large degree of blur, the calculation load will be excessive in areas with a small degree of blur. This specification provides a technology that can reduce the calculation load while improving the accuracy of the blur correction processing. [Means for solving the problem]
[0005] The imaging device disclosed in this specification includes an imaging element that outputs image data representing an image captured through an optical system including a lens, and a blur correction processing unit. The blur correction processing unit is configured to execute the following processes: (a) extracting data of pixels included in a calculation range from the image data to obtain the extracted image data; (b) performing blur correction processing using a filter on the extracted image data to calculate corrected extracted image data; (c) extracting data of pixels included in a reconstruction range from the corrected extracted image data to obtain reconstructed image data; (d) changing the calculation range, the filter, and the reconstruction range and repeatedly executing the processes (a)-(c); and (e) combining a plurality of the reconstructed image data obtained by a plurality of times of the process (c) to obtain corrected image data. The position and shape of the calculation range are set according to the position and shape of the corresponding reconstruction range and the magnitude of a PSF (Point Spread Function) corresponding to the position of a pixel included in the corresponding reconstruction range.
[0006] The degree of blur for each pixel in the image data corresponds to the magnitude of the PSF (Point Spread Function) corresponding to the position of each pixel. The magnitude of the PSF in this specification refers to an index indicating the degree of spread of the PSF. For example, when the PSF is shown as a distribution of luminance, the magnitude of the PSF means the width of the range in which the luminance is equal to or greater than a predetermined threshold value. According to the above configuration, the position and shape of the calculation range are set according to the position and shape of the reconstruction range and the magnitude of the PSF corresponding to the position of the pixel included in the reconstruction range, so that the size of each cut-out image data can be made to match the degree of blur at that location. With this configuration, it is possible to reduce the calculation load while improving the accuracy of the blur correction process. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a diagram illustrating a schematic diagram of an overall configuration of an imaging device 10 according to an embodiment. [Diagram 2] 4 is a flowchart of a process performed by a blur correction processing unit 26 in the imaging device 10 of the embodiment. [Diagram 3] 10A to 10C are diagrams illustrating a process in which corrected image data is generated from uncorrected image data in the imaging device 10 of the embodiment. [Figure 4] FIG. 2 is a diagram illustrating an optical system 18 in the imaging device 10 of the embodiment. [Diagram 5] 11 is a graph showing the relationship between the number of pixels from the center and the size of the PSF in the imaging device 10 of the embodiment. [Figure 6] 2 is a diagram illustrating a reconstruction range and a calculation range in the imaging device 10 of the embodiment. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] In the imaging device according to the example disclosed in the present specification, a center position of the calculation range may be offset from a center position of the corresponding reconstruction range.
[0009] The magnitude of the PSF corresponding to the position of a pixel included in the reconstruction range is not constant and has a certain degree of variation. Therefore, if the calculation range is set large near a pixel included in the reconstruction range whose corresponding PSF is large and the calculation range is set small near a pixel whose corresponding PSF is small, the center position of the calculation range will be offset from the center position of the reconstruction range. With the above configuration, it is possible to set the calculation range according to the variation in the PSF corresponding to the position of the pixel included in the reconstruction range.
[0010] In an example of an imaging device disclosed in the present specification, an error between the PSFs corresponding to the positions of any two pixels included in the reconstruction range may be below a predetermined threshold value. Note that, as the error of the PSF, for example, a mean squared error, a mean absolute error, or a difference in magnitude of the PSF may be used.
[0011] According to the above configuration, the magnitude of the PSF corresponding to the position of the pixel included in the reconstruction range can be made almost the same. By adopting such a configuration, it is possible to reduce the calculation load while improving the accuracy of the blur correction process.
[0012] In the example imaging device disclosed in this specification, the optical system may have a symmetrical characteristic with respect to an optical axis.
[0013] According to the above configuration, a common filter can be used for the calculation range and the reconstruction range that are set symmetrically with respect to the optical axis.
[0014] In the imaging device disclosed in the present specification as an example, a light receiving surface of the imaging element may have a curved shape that approaches the lens side as it becomes farther away from the optical axis.
[0015] If the light receiving surface of the image sensor has a planar shape perpendicular to the optical axis, the magnitude of the PSF increases rapidly as the distance from the optical axis increases. With the above configuration, it is possible to suppress the increase in the magnitude of the PSF depending on the distance from the optical axis. EXAMPLES
[0016] (Overall composition) 1 is mounted on a vehicle for use, for example. The imaging device 10 includes an imaging unit 12 and an image processing unit 14.
[0017] The imaging unit 12 captures an image of the surroundings of the vehicle, and outputs image data indicating the captured image to the image processing unit 14. The imaging unit 12 includes an optical system 18 including a lens 16, an imaging element 20, and an imaging control unit 22.
[0018] The optical system 18 projects light incident from outside the imaging device 10 onto the light receiving surface 20a of the imaging element 20 via the lens 16. The imaging element 20 includes a plurality of imaging sensors 20b arranged vertically and horizontally on the light receiving surface 20a. Each imaging sensor 20b may be, for example, a complementary metal oxide semiconductor (CMOS) sensor or a charge coupled device (CCD) sensor. Each imaging sensor 20b generates an electrical signal indicating the intensity (brightness) of red, green and blue components of the received light. The imaging element 20 outputs digital data indicating the intensity (brightness) of red, green and blue components of the received light for each imaging sensor 20b, i.e., for each pixel, as image data. The imaging control unit 22 is implemented by a microcontroller including, for example, a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), etc., and operates when the CPU executes processing according to a program stored in the ROM. The imaging control unit 22 controls the imaging operation by the imaging element 20 .
[0019] The image processing unit 14 includes a development processing unit 24, a blur correction processing unit 26, and a storage unit 28. The development processing unit 24 and the blur correction processing unit 26 are implemented, for example, by a microcontroller including a CPU, a ROM, a RAM, and the like, and are operated by the CPU executing processing according to a program stored in the ROM. The storage unit 28 is implemented, for example, by a memory device such as a flash memory, an SSD (Solid State Drive), or an HDD (Hard Disk Drive). Image data input from the imaging device 10 is stored in the storage unit 28. The development processing unit 24 executes various development processes such as demosaic, color correction, white balance, and gamma correction on the image data stored in the storage unit 28. The blur correction processing unit 26 executes blur correction processing, which will be described later, on the image data stored in the storage unit 28. The storage unit 28 stores not only image data but also various filters and parameters required for the development processing in the development processing unit 24 and the blur correction processing in the blur correction processing unit 26. In the image processing unit 14, the development processing unit 24 may first perform development processing on the image data input from the imaging unit 12, and then the blur correction processing unit 26 may perform blur correction processing. Conversely, the blur correction processing unit 26 may first perform blur correction processing on the image data input from the imaging unit 12, and then the development processing unit 24 may perform development processing. The image processing unit 14 is capable of outputting the image data that has been subjected to development processing by the development processing unit 24 and / or blur correction processing by the blur correction processing unit 26 to various external devices (not shown).
[0020] (Processing performed by blur correction processing unit 26) The process performed by the blur correction processing unit 26 will be described below with reference to the flowchart in FIG.
[0021] In S2, the blur correction processing unit 26 sets the number of calculations i to 0.
[0022] In S4, the blur correction processing unit 26 increments the number of calculations i by one.
[0023] In S6, the blur correction processing unit 26 specifies the position and shape of the calculation range and the position and shape of the reconstruction range to be used in the i-th calculation. In this embodiment, the position and shape of the calculation range in the calculation count i (i=1, , N) and the position and shape of the reconstruction range in the calculation count i (i=1, , N) are stored in advance in the storage unit 28.
[0024] In S8, the blur correction processing unit 26 specifies a filter to be used in the i-th calculation. In this embodiment, the filter to be used in the calculation number i (i=1, . . . , N) is stored in advance in the storage unit 28 in the form of a filter bank.
[0025] In S10, the blur correction processing unit 26 cuts out the data of pixels included in the calculation range specified in S6 from the uncorrected image data, and obtains cut-out image data.
[0026] In S12, the blur correction processing unit 26 performs blur correction processing on the cut-out image data acquired in S10 using the filter specified in S8, and calculates the corrected cut-out image data. In the imaging device 10 of this embodiment, various blur correction processes can be performed in S12. For example, blur correction processing involving Fourier transform using an inverse filter generated based on an OTF (Optical Transfer Function) or a Wiener filter may be performed. Alternatively, blur correction processing may be performed using a machine learning model such as a neural network that has been trained in advance, so that the uncorrected image data containing blur and the filter are input, and the corrected image data from which blur has been removed is output.
[0027] In S14, the blur correction processing unit 26 extracts data of pixels included in the reconstruction range specified in S6 from the corrected extracted image data calculated in S12, and acquires reconstructed image data.
[0028] In S16, the blur correction processing unit 26 judges whether the number of calculations i has reached a preset threshold value N. If the number of calculations i has not reached the threshold value N (if NO), the process returns to S4. If the number of calculations i has reached the threshold value N (if YES), the process proceeds to S18.
[0029] In S18, the blur correction processing unit 26 combines the reconstructed image data acquired in S14 in each of the first to Nth calculations to acquire corrected image data. After S18, the process in FIG. 2 ends.
[0030] FIG. 3 is a schematic diagram showing how corrected image data is generated from image data before correction by the process of FIG. 2. As shown in the upper part of FIG. 3, in the nth (n=1, . . . , N) calculation, data of pixels included in the calculation range n is cut out from the image data before correction to obtain cut-out image data. In addition, a filter n to be used in the nth calculation is specified from the filter bank. Then, blur correction processing using the filter n is performed on the cut-out image data in the calculation range n. After that, data of pixels included in the reconstruction range n is cut out from the corrected cut-out image data to obtain reconstructed image data. As shown in the middle and lower parts of FIG. 3, such acquisition of reconstructed image data is similarly performed for the n+1th calculation, the n+2th calculation, . . . In this way, corrected image data can be obtained by combining the reconstructed image data obtained from the first calculation to the Nth calculation.
[0031] (Presetting of blur correction processing unit 26) As described above, the position and shape of the calculation range, the position and shape of the reconstruction range, and the filter used in the i-th (i=1, . . . , N) calculation in the process performed by the blur correction processing unit 26 are set in advance based on the magnitude of the PSF (Point Spread Function) corresponding to each position of the pixels of the image data output by the imaging unit 12. Below, the magnitude of the PSF corresponding to each position of the pixels of the image data, and the setting of the reconstruction range, calculation range, and filter used in the i-th calculation based on the magnitude of the PSF will be described.
[0032] (Size of PSF) As shown in FIG. 4, the light receiving surface 20a of the image sensor 20 is disposed so that the optical axis OX is located at the center of the light receiving surface 20a. The light receiving surface 20a of the image sensor 20 is curved so that the farther it is from the optical axis OX, the closer it is to the lens 16. However, the light receiving surface 20a of the image sensor 20 has a shape that is farther away from the lens 16 as it is farther away from the optical axis OX compared to the image plane IP. Therefore, as shown in FIG. 5, in the image data output from the image sensor 20, the larger the angle of view from the optical axis OX, that is, the larger the number of pixels from the center of the light receiving surface 20a, the larger the PSF becomes. The magnitude of the PSF corresponding to each position of such pixels can be calculated in advance based on the characteristics of the optical system 18.
[0033] (Setting the reconstruction range) In the imaging device 10 of this embodiment, the position and shape of the reconstruction range used in the calculation number i (i=1,...,N) are set so that when all the reconstruction ranges used in the calculation number i (i=1,...,N) are arranged, there is no overlap or gap and the entire image data is filled (see the right side of FIG. 3). In addition, in the imaging device 10 of this embodiment, the position and shape of the reconstruction range used in the calculation number i (i=1,...,N) are set so that pixels having approximately the same magnitude of PSF corresponding to their positions are included in the same reconstruction range so that blur correction processing can be performed on as many pixels as possible at once. Specifically, when the error between the PSFs corresponding to the positions of the reference pixel PR and the determination target pixel PT is equal to or less than a predetermined threshold value, the determination target pixel PT is included in the same reconstruction range as the reference pixel PR. As the error between the PSFs, for example, the mean squared error may be used, the mean absolute error may be used, or the difference in the magnitude of the PSFs may be used. The position and shape of the reconstruction range used in the calculation count i (i=1, . . . , N) thus set are stored in advance in the storage unit 28.
[0034] (Calculation range setting) In the imaging device 10 of this embodiment, the calculation range used in the calculation number i (i=1, . . . , N) is set to have a position and shape that at least includes the reconstruction range used in the calculation number i (i=1, . . . , N). At this time, even if the pixels are included in the same reconstruction range, the magnitude of the PSF corresponding to the position is not completely the same, so in the imaging device 10 of this embodiment, the position and shape of the calculation range are set so that the PSF corresponding to each position of the pixel on the boundary of the reconstruction range is included in the calculation range. For example, as shown in FIG. 6, when the reconstruction range is a rectangle, the minimum calculation range is set to a position and shape that includes the PSF corresponding to each position of the pixels at the four corners. When the calculation range is set in this way, if the magnitude of the PSF corresponding to each position of the pixels at the four corners of the reconstruction range is not the same, the center position of the calculation range will be offset from the center position of the reconstruction range.
[0035] In addition, when the Fourier transform is used in the blur correction process, the size of the calculation range is 2 m ×2 n (m, n are natural numbers), it is possible to use FFT (Fast Fourier Transform), and the calculation load can be reduced. Therefore, in the imaging device 10 of this embodiment, after setting the minimum calculation range so that the PSF corresponding to each position of the pixels at the four corners of the reconstruction range is included as described above, the minimum calculation range is included and the center position coincides with the minimum calculation range. m ×2 n The size range of (m, n are natural numbers) is set as the calculation range again. The position and shape of the calculation range used in the calculation count i (i=1, . . . , N) set in this way are stored in advance in storage unit 28.
[0036] (Filter settings) In the imaging device 10 of this embodiment, a filter suitable for blur correction processing is set for the filter used at calculation count i (i=1,...,N) according to the magnitude of the PSF corresponding to each position of the pixel included in the calculation range used at calculation count i (i=1,...,N). The filter set in this way for use at calculation count i (i=1,...,N) is stored in advance in the storage unit 28 in the form of a filter bank.
[0037] In the imaging device 10 of this embodiment, the optical system 18 of the imaging unit 12 has a symmetrical characteristic with respect to the optical axis OX. Therefore, when the reconstruction range and the calculation range used in the calculation number i (i=1,...,N) are arranged symmetrically with respect to the optical axis OX with respect to the reconstruction range and the calculation range used in the calculation number j (j=1,...,N, j≠i), a common filter can be used. This makes it possible to reduce the number of filters stored in the storage unit 28.
[0038] The configuration of the imaging device disclosed in this specification is listed below. (Configuration 1) an imaging element (20) that outputs image data representing an image captured through an optical system (18) including a lens (16); A blur correction processing unit (26) is provided, The blur correction processing unit is (a) a process of extracting data of pixels included in a calculation range from the image data to obtain extracted image data; (b) performing a blur correction process using a filter on the cut-out image data to calculate corrected cut-out image data; (c) extracting data of pixels included in a reconstruction range from the corrected extracted image data to obtain reconstructed image data; and (d) changing the calculation range, the filter, and the reconstruction range and repeatedly executing the processes (a) to (c); (e) a process of combining a plurality of the reconstructed image data acquired by a plurality of times of the process (c) to acquire corrected image data; is configured to run an imaging device (10) in which a position and a shape of the calculation range are set according to a position and a shape of the corresponding reconstruction range and a magnitude of a PSF (Point Spread Function) corresponding to the positions of pixels included in the corresponding reconstruction range. (Configuration 2) 2. The imaging apparatus according to configuration 1, wherein a center position of the calculation range is offset from a center position of the corresponding reconstruction range. (Configuration 3) 3. The imaging device according to configuration 2, wherein an error between the PSFs corresponding to the respective positions of any two pixels included in the reconstruction range is below a predetermined threshold value. (Configuration 4) 4. The imaging device according to any one of configurations 1 to 3, wherein the optical system has symmetrical characteristics with respect to an optical axis. (Configuration 5) 5. The imaging device according to configuration 4, wherein the light receiving surface (20a) of the imaging element has a curved shape that approaches the lens side as it moves away from the optical axis.
[0039] Although the embodiments have been described in detail above, these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes to the specific examples exemplified above. The technical elements described in this specification or drawings exhibit technical utility alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology exemplified in this specification or drawings achieves multiple objectives simultaneously, and achieving one of the objectives itself has technical utility. [Explanation of symbols]
[0040] 10: imaging device, 12: imaging section, 14: image processing section, 16: lens, 18: optical system, 20: imaging element, 20a: light receiving surface, 20b: imaging sensor, 22: imaging control section, 24: development processing section, 26: blur correction processing section, 28: storage section
Claims
1. an imaging element (20) that outputs image data representing an image captured through an optical system (18) including a lens (16); A blur correction processing unit (26) is provided, The blur correction processing unit is (a) extracting data of pixels included in a calculation range from the image data to obtain extracted image data; (b) performing a blur correction process using a filter on the cut-out image data to calculate corrected cut-out image data; (c) extracting data of pixels included in a reconstruction range from the corrected extracted image data to obtain reconstructed image data; (d) changing the calculation range, the filter, and the reconstruction range and repeatedly executing the processes (a) to (c); (e) a process of acquiring corrected image data by combining the plurality of reconstructed image data acquired by the process (c) multiple times; is configured to run An imaging device (10) in which the position and shape of the calculation range are set according to the position and shape of the corresponding reconstruction range and the magnitude of a point spread function (PSF) corresponding to the positions of pixels included in the corresponding reconstruction range.
2. The imaging apparatus according to claim 1 , wherein a center position of the calculation range is offset from a center position of the corresponding reconstruction range.
3. The imaging device according to claim 2 , wherein an error between the PSFs corresponding to the respective positions of any two pixels included in the reconstruction range is below a predetermined threshold value.
4. The imaging device according to claim 1 , wherein the optical system has symmetrical characteristics with respect to an optical axis.
5. 5. The imaging device according to claim 4, wherein the light receiving surface (20a) of the imaging element has a curved shape that approaches the lens side as it moves away from the optical axis.
Citation Information
Patent Citations
Image sensor
JP1984210776A
Solid-state image-pickup camera
JP1998108078A
Image processor, image processing method and computer readable storage medium
JP1999259646A
Image processing device and image processing program
JP2012023498A
Image processing apparatus, imaging apparatus, image processing method, image processing program, and storage medium
JP2014146107A
