Image processing apparatus and method, program, storage medium
The image processing device addresses the computational burden in multi-lens cameras by optimizing evaluation function selection, enhancing error correction efficiency and accuracy in multi-lens cameras.
Patent Information
- Application Number
- JP2022170031
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-10-24
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-10-24
AI Technical Summary
Existing bundle adjustment methods for multi-lens cameras face increased computational load and longer waiting times, impairing user convenience when correcting inter-lens errors, due to exponential computational demands.
An image processing device that includes feature point detection, correspondence point search, displacement amount calculation, evaluation function storage, and selection means to efficiently correct inter-lens errors by optimizing the evaluation function selection process, reducing computational load and improving accuracy.
The device efficiently corrects inter-lens errors in multi-lens cameras with reduced processing time and higher accuracy by dynamically selecting evaluation functions based on shooting conditions and error factors, overcoming limitations in conventional methods.
Smart Images

Figure 0007955131000003 
Figure 0007955131000004 
Figure 0007955131000005
Abstract
Description
Technical Field
[0001] The present invention relates to a calibration technique for a multi-lens camera.
Background Art
[0002] Conventionally, in an imaging apparatus having a plurality of optical systems, the positions and orientations of the optical systems differ from one another, causing a problem in that correct parallax cannot be obtained directly from captured images.
[0003] A method known as bundle adjustment has been used to derive deviations in the positions and orientations of multiple optical systems. Bundle adjustment involves detecting feature points from captured images and associating feature points that represent the same subject. By performing optimization calculations based on this corresponding point information, it is possible to calculate the amounts of deviation in the positions and orientations of multiple optical systems.
[0004] For example, Patent Literature 1 discloses a method for correcting temporal deviations in pitch angle, yaw angle, roll angle, and scale ratio between multiple optical systems by applying bundle adjustment to images captured by a stereo camera.
[0005] Patent Literature 2 discloses a method for performing highly accurate bundle adjustment by providing a temperature measurement unit in an imaging apparatus and using corresponding point information from captured images along with temperature information.
Prior Art Documents
Patent Literature
[0006]
Patent Literature 1
Patent Literature 2
Summary of the Invention
Problems to be Solved by the Invention
[0007] In bundle adjustment, in order to accurately calculate the amount of deviation in position, orientation, etc., of multiple optical systems, one possible approach is to list the parameters that cause errors and refine the error model, as described in the prior art disclosed in Patent Document 2 mentioned above.
[0008] However, when bundle adjustment is made more precise using this method, there is a problem in that the computational load increases exponentially. For example, when implementing the above adjustment in a post-processing application that corrects images captured by a multi-camera system, the increased computational load can lead to longer waiting times, potentially impairing user convenience.
[0009] The present invention has been made in view of the above-mentioned problems, and its objective is to provide an image processing device that can efficiently correct inter-lens errors in a multi-lens camera. [Means for solving the problem]
[0010] The image processing apparatus according to the present invention is characterized by comprising: a feature point detection means for extracting a plurality of feature points from each of a plurality of images captured by a plurality of optical systems; a correspondence point search means for associating feature points that indicate the same subject in the plurality of images; a displacement amount calculation means for calculating the displacement amount of the plurality of optical systems by optimization calculation based on the feature points associated by the correspondence point search means; a storage means for storing a plurality of evaluation functions to be used in the optimization calculation; and a selection means for selecting an evaluation function from the plurality of evaluation functions such that the displacement amount after correction of the plurality of images becomes smaller based on the calculation result of the displacement amount calculation means. [Effects of the Invention]
[0011] According to the present invention, it is possible to provide an image processing device that can efficiently correct inter-lens errors in a multi-lens camera. [Brief explanation of the drawing]
[0012] [Figure 1]A diagram showing the configuration of a multi-lens camera in the first embodiment of the present invention. [Figure 2] A diagram showing the configuration of an image processing apparatus according to the first embodiment. [Figure 3] A diagram showing the configuration of an image processing device that outputs a stereo image or a panoramic image in the first embodiment. [Figure 4] A flowchart illustrating the misalignment correction process of the image processing device shown in Figure 2. [Figure 5] A diagram showing the definition of corresponding points and reprojection error in multi-lens images. [Figure 6] A figure showing reprojection errors in multi-lens images. [Figure 7] A diagram showing the configuration of an image processing apparatus according to the second embodiment. [Figure 8] A flowchart illustrating the method for selecting the evaluation function in the second embodiment. [Figure 9] A diagram showing the configuration of an image processing apparatus according to the third embodiment. [Figure 10] A flowchart illustrating the method for selecting the evaluation function in the third embodiment. [Figure 11] A flowchart illustrating the machine learning method for the evaluation function selection model in the fourth embodiment. [Modes for carrying out the invention]
[0013] The embodiments will be described in detail below with reference to the attached drawings. Note that the following embodiments do not limit the invention as defined in the claims. While the embodiments describe multiple features, not all of these features are essential to the invention, and the features may be combined in any way. Furthermore, in the attached drawings, identical or similar configurations are given the same reference numerals, and redundant descriptions are omitted.
[0014] (First embodiment) FIG. 1 is a diagram illustrating a configuration of a multi-eye camera 500 according to a first embodiment of the present invention. The multi-eye camera 500 includes a plurality of (two in the present embodiment) optical systems 501 and 502. A multi-eye image 100 captured by the multi-eye camera 500 includes a first image 101 formed via the first optical system 501 and a second image 502 formed via the second optical system 502. The multi-eye image 100 in the present embodiment refers to an image having two or more images captured via two or more optical systems.
[0015] FIG. 2 is a diagram illustrating a configuration of an image processing apparatus according to the first embodiment.
[0016] The image processing apparatus 200 includes a feature point detection unit 201, a corresponding point search unit 202, a shift amount calculation unit 203, an evaluation function storage unit 204, and an evaluation function selection unit 205. Further, the image processing apparatus 200 includes a CPU 206 formed of a microcomputer, and the CPU 206 controls each unit of the image processing apparatus 200 by executing a program stored in a memory 207.
[0017] The image processing apparatus 200 receives the multi-eye image 100 as an input, and outputs a correction parameter 300 for correcting shifts of a plurality of (two in the present embodiment) images of the multi-eye image 100. Here, the shift of the image of the multi-eye image 100 refers to a shift from an ideal parallax amount caused by differences in positions, orientations, etc. of the plurality of optical systems, and the correction parameter 300 refers to a set of shift amounts such as positions and orientations of the plurality of optical systems, focal lengths, distortion coefficients, and the like.
[0018] The feature point detection unit 201 detects a plurality of feature points from the input multi-eye image 100. The corresponding point search unit 202 associates, for the detected feature points, feature points indicating the same subject with each other from among a region projected by one optical system and a region projected by the other optical system. Then, the associated pairs of feature points are output as a corresponding point data group.
[0019] The displacement amount calculation unit 203 performs an optimization calculation on the correspondence point data set generated by the correspondence point search unit 202 and outputs a correction parameter 300 as a solution that minimizes the displacement amount of all correspondence point data sets. In this case, the evaluation function used for the optimization calculation is the evaluation function received from the evaluation function selection unit 205. The evaluation function storage unit 204 stores multiple evaluation functions that the displacement amount calculation unit 203 uses when performing the optimization calculation. The evaluation function selection unit 205 refers to the calculation process of the displacement amount calculation unit 203 and selects one evaluation function from among the multiple evaluation functions stored in the evaluation function storage unit 204 that is likely to result in a smaller displacement after correcting the multi-eye image 100 based on the calculation results of the displacement amount calculation unit 203.
[0020] Here, we have shown an example of automatically selecting the evaluation function, but an interface that allows the user to select the evaluation function to use may also be provided. Alternatively, a tuning parameter that allows the evaluation function to be changed may be provided, and an interface may be provided that allows the user to adjust this tuning parameter. More specifically, for example, the tuning parameter may be able to change whether close-range subjects are corrected without parallax distortion or long-range subjects are corrected without parallax distortion, and an interface may be provided that allows the user to select this.
[0021] Figure 3 shows the configuration of an image processing device 210 that outputs a stereo image or panoramic image in this embodiment. The image processing device 210 includes a feature point detection unit 201, a corresponding point search unit 202, a displacement amount calculation unit 203, an evaluation function storage unit 204, an evaluation function selection unit 205, a CPU 206, a memory 207, and an image correction unit 211. The image processing device 210 receives a multi-lens image 100 as input and outputs a stereo image or panoramic image 400 with the displacement of the images in the multi-lens image 100 corrected.
[0022] The functions of the feature point detection unit 201, the corresponding point search unit 202, the displacement amount calculation unit 203, the evaluation function storage unit 204, and the evaluation function selection unit 205 are the same as in Figure 1. The image correction unit 211 determines from the Exif information or metadata associated with the multi-eye image 100 whether the multi-eye image 100 is an image taken to generate a stereoscopic image or an image taken to generate a panoramic image.
[0023] If the multi-eye image 100 is an image taken to generate a stereoscopic image, the image correction unit 211 applies parallax shift correction to the multi-eye image 100 so that the parallax between the left-eye image and the right-eye image is correct. It then converts it into a stereoscopic image and outputs it. If the multi-eye image 100 is an image taken to generate a panoramic image, the image correction unit 211 applies shift correction to each region projected by the multiple optical systems. After that, it detects natural boundary lines in the overlapping parts of each region, connects each region to generate a panoramic image, and outputs it.
[0024] The processing procedure of the image processing device 200 will be explained below using Figures 4, 5, and 6. Figure 4 is a flowchart illustrating the misalignment correction process of the image processing device 200. Figure 5 is a diagram showing the definition of corresponding points and reprojection error in the multi-lens image 100. Figure 6 is a diagram showing the reprojection error in the multi-lens image 100.
[0025] First, in step S401 of Figure 4, the CPU 206 uses the feature point detection unit 201 to detect multiple feature points and their feature quantities on the multi-eye image 100.
[0026] In step S402, the CPU 206 uses the correspondence point search unit 202 to extract one point each from the first image 101 and the second image 102, and compares the feature quantities of all combinations, for example, by brute force. Feature point pairs 101a and 102a with high feature quantity similarity are associated as correspondence points, and a data set 103 of n correspondence points is generated. Here, the feature point present in the first image 101 of the data set 103 is denoted as pi, and the corresponding point of pi present in the second image 102 is denoted as qi.
[0027] In step S403, the CPU 206 uses the displacement amount calculation unit 203 to create m sets (parameter sets) Pj, each containing the displacement amounts of the first optical system 501 and the second optical system 502, such as position, orientation, focal length, and distortion coefficient. The m parameter sets are set with slightly different values. In steps S404 to S410, the CPU 206 uses the displacement amount calculation unit 203 to perform optimization calculations.
[0028] First, in steps S404 to S408, the CPU 206 uses the displacement calculation unit 203 to calculate the reprojection error 106 for all combinations of corresponding points 103 and all parameter sets.
[0029] In Figure 6, for the feature point 102a present in the second image 102, its ray 104 is calculated using the parameter set of the second optical system 502 and projected onto the spatial point 102b in the world coordinate system. Furthermore, for the spatial point 102b, its ray 105 is calculated using the parameter set of the first optical system 501 and reprojected onto the coordinates of the first image 101. The distance between the projected point 102c and its corresponding point 101a is called the reprojection error.
[0030] In summary, the reprojection error E can be defined by the projection function f that projects the image point 102a on the second image onto the first image 101, as shown in equation (1).
[0031] E = ||pi - f(qi, Pj)|| …(1) Furthermore, it is preferable that the displacement amount calculation unit 203 performs optimization calculations using the displacement amounts derived in the manufacturing processes of multiple optical systems as the central value.
[0032] Next, in step S409, the CPU 206 uses the evaluation function selection unit 205 to select one evaluation function from among the multiple evaluation functions stored in the evaluation function storage unit 204 that is most likely to correct the misalignment of the multi-eye image 100.
[0033] In conventional bundle tuning, the correction parameter 300 is determined by calculating the sum of reprojection errors for a given parameter set Pj and finding the parameter set Pans that minimizes the sum of reprojection errors for all parameter sets P∈Pj. In this case, the optimization calculation is generally performed by a nonlinear least squares method based on equation (2).
[0034]
number
[0035] However, in reality, several computational errors prevent the reprojection error from converging to zero, resulting in some residuals. Three examples of error factors are given below.
[0036] One issue is the limited accuracy of the feature point coordinates. In spatial point estimation based on triangulation, the spatial resolution depends on the baseline length and the coordinate resolution of the feature points. While the coordinates of feature points can be calculated with sub-pixel accuracy by methods such as fitting the degree of pixel intensity to a fitting function, there are limits to this sub-pixel accuracy. As a result, the spatial resolution decreases, which prevents the reprojection error from converging to zero.
[0037] The second issue is that the projection function f does not fully formulate the optical phenomena. The tracking of rays from feature points is performed based on geometrical optical models such as paraxial theory. However, in simplified geometrical optical models, the real rays and ideal rays do not coincide because they use the paraxial approximation and cannot take into account the phenomenon that the principal point position changes with image height. Therefore, the points projected by the projection function f are not exactly the same as the actual image points, which is a factor that prevents the reprojection error from converging to zero.
[0038] The third issue is that the modeling of the parameter set Pj is insufficient. Among the parameter set, parameters called intrinsic parameters, such as focal length and distortion coefficient, are often not optimized. This is because parameters that do not change much over time, such as intrinsic parameters, are calibrated in advance by chart photography, etc., and excluded from the optimization process to reduce the likelihood of getting stuck in local optima. However, intrinsic parameters change due to operations such as focusing, and their change over time is not zero, so not optimizing them can cause the reprojection error to not converge to zero.
[0039] These error factors prevent the reprojection error from converging to zero, resulting in residuals. Therefore, the nonlinear least squares method shown in equation (2) cannot necessarily derive correction parameters that reduce the deviation.
[0040] In contrast, in this embodiment, by switching the evaluation function and adjusting the influence of the reprojection error residual for each corresponding point on parameter estimation, it is possible to derive correction parameters that result in smaller deviations even when residuals exist. For example, let us explain using the Huber loss function shown in equation (3).
[0041]
number
[0042] The Huber loss function has an arbitrarily adjustable parameter δ. The Huber loss function is tolerant of outliers as δ ~ 0 and strict as δ ~ ∞. Therefore, in cases where the reprojection error residual is expected to be relatively large, setting a small δ value and using an evaluation function that is more tolerant of the reprojection error residual makes it easier to derive accurate correction parameters. Conversely, in cases where the residual is expected to be relatively small, setting a large δ value and performing optimization calculations makes it easier to derive accurate correction parameters.
[0043] As described above, multiple different evaluation functions like those in equation (3) are prepared, and the optimal evaluation function is selected depending on the case. Finally, in step S410, the CPU 206 uses the displacement calculation unit 203 to calculate the correction parameter 300 and outputs it as a solution. Since there is no increase in processing load other than the evaluation function switching decision process, it is possible to derive the correction parameter at high speed. In addition, it is possible to derive the correction parameter with higher accuracy because it can absorb multiple error factors such as the limitations of the coordinate accuracy of the feature points, the fact that the projection function f does not fully formulate the optical phenomenon, and the insufficient modeling of the parameter set Pj.
[0044] Here, we have shown functions such as a nonlinear squared error function and a nonlinear Huber loss function as evaluation functions, but the present invention is not limited to these, and other functions may be used. Furthermore, an evaluation function may be used that converts the reprojection error into different evaluation values using an arbitrary function and optimizes them.
[0045] Furthermore, in order to avoid getting stuck in local optima during optimization calculations, it is preferable to perform chart photography during the manufacturing process and pre-calibrate the camera parameters. In addition, in bundle adjustment, it is preferable to define the parameter set using the camera parameters derived from process calibration as the central values.
[0046] (Second embodiment) A second embodiment of the present invention will be described below with reference to Figures 7 and 8. Figure 7 is a diagram showing the configuration of an image processing apparatus according to the second embodiment. Figure 8 is a flowchart illustrating the method for selecting the evaluation function in the second embodiment. In Figures 7 and 8, parts common to the first embodiment are denoted by the same reference numerals, and their descriptions are partially omitted.
[0047] The image processing device 220 includes a feature point detection unit 201, a corresponding point search unit 202, a displacement amount calculation unit 203, an evaluation function storage unit 204, an evaluation function selection unit 205, a CPU 206, a memory 207, and a shooting scene discrimination unit 221. The image processing device 220 receives a multi-lens image 100 as input and outputs correction parameters 300 for correcting the displacement of the multi-lens image 100.
[0048] The functions of the feature point detection unit 201, the corresponding point search unit 202, and the displacement amount calculation unit 203 are the same as those shown in Figure 2, which illustrates the first embodiment.
[0049] The shooting scene determination unit 221 determines the shooting scene, such as whether it is a foreground scene closer than a predetermined value or a distant scene beyond a predetermined value, based on the information received from the displacement amount calculation unit 203. The evaluation function selection unit 205 predicts the order of magnitude of the final reprojection error residual based on the information determined by the shooting scene determination unit 221 and selects an appropriate evaluation function from the evaluation function storage unit 204. The displacement amount calculation unit 203 performs an optimization calculation using the evaluation function selected by the evaluation function selection unit 205 and outputs the correction parameter 300 as the solution.
[0050] The method for selecting the evaluation function will be explained in detail below with reference to the flowchart in Figure 8. The processing prior to step S404b is the same as steps S401, S402, and S403 in Figure 4.
[0051] In steps S404b, S405b, S410b, and S411b, the CPU 206 uses the displacement calculation unit 203 to perform the processing in steps S406b to S409b for all corresponding points and all parameter sets.
[0052] Specifically, in step S406b, the CPU 206 uses the displacement calculation unit 203 to derive the spatial point Xi in the world coordinate system of the subject indicated by the corresponding points pi and qi, based on the parameter set Pj, using the triangulation method.
[0053] In step S407b, the CPU 206 uses the displacement calculation unit 203 to perform a perspective projection transformation on the spatial point Xi onto the coordinates of the feature point qi.
[0054] In step S408b, the CPU 206 uses the displacement calculation unit 203 to calculate the reprojection error of the corresponding points pi and qi based on equation (1).
[0055] In step S409b, the CPU 206 uses the displacement calculation unit 203 to calculate and record the spatial point Xansi in the true world coordinate system. As the reprojection error asymptotically approaches zero, the parameter set converges to values close to the true correction parameters, and as a result, the surveying accuracy of the spatial point Xi improves. Here, the spatial point at which the reprojection error is minimized is defined as the true spatial point Xansi.
[0056] In step S412b, the CPU 206 uses the shooting scene discrimination unit 221 and the evaluation function selection unit 205 to select one evaluation function from the distribution of true spatial points Xansi for each corresponding point pi and qi.
[0057] In step S413b, the CPU 206 uses the displacement calculation unit 203 to determine one correction parameter 300 based on the selected evaluation function and outputs it as a solution.
[0058] One example of a condition where reprojection error residuals tend to be large is a shooting scene with many nearby feature points. In triangulation, when calculating depth from two points on a plane, the accuracy of the measurement improves as the objects get closer. Conversely, when reprojecting from a point in space onto a plane, the closer the object, the more sensitive it becomes to errors. For example, if the projection function f or parameter set Pj is inaccurate, the error tends to increase with closer objects, and the reprojection error residual tends to be larger as there are more feature points indicating nearby objects. Therefore, by using an evaluation function that is more tolerant of reprojection error residuals as there are more feature points indicating nearby objects, it is possible to improve the accuracy of bundle adjustment.
[0059] Another example is when many feature points are distributed in regions with high image height, which tends to result in larger reprojection error residuals. At points where the image height is above a threshold, the accuracy of feature point detection tends to decrease due to the effects of various aberrations such as distortion and field curvature. When the accuracy of feature points decreases, the accuracy of spatial point measurement also decreases, which in turn tends to generate reprojection error residuals. Therefore, the more feature points there are in regions with high image height, the more tolerant the reprojection error residual becomes, and by using an evaluation function that is lenient towards reprojection error residuals, it becomes possible to improve the accuracy of bundle adjustment.
[0060] (Third embodiment) A third embodiment of the present invention will be described below with reference to Figures 9 and 10. Figure 9 is a diagram showing the configuration of an image processing apparatus according to the third embodiment. Figure 10 is a flowchart illustrating the method for selecting the evaluation function in the third embodiment. In Figures 9 and 10, parts common to the first embodiment are denoted by the same reference numerals, and their descriptions are partially omitted.
[0061] The image processing device 230 includes a feature point detection unit 201, a corresponding point search unit 202, a displacement amount calculation unit 203, an evaluation function storage unit 204, an evaluation function selection unit 205, a CPU 206, and a memory 207, as well as a shooting condition acquisition unit 231 and an internal parameter acquisition unit 232. The image processing device 230 receives a multi-lens image 100 as input and outputs correction parameters 300 for correcting the displacement of the multi-lens image 100.
[0062] The functions of the feature point detection unit 201, the corresponding point search unit 202, the deviation amount calculation unit 203, the evaluation function storage unit 204, and the evaluation function selection unit 205 are the same as those shown in Figure 2, which illustrates the first embodiment.
[0063] The shooting condition acquisition unit 231 acquires shooting conditions such as the focal length and focus distance of the imaging optical system. The internal parameter acquisition unit 232 stores the focal length and distortion coefficient used for bundle adjustment. At this time, the internal parameters of the imaging optical system are not optimized for the reasons explained in the first embodiment, and the internal parameters used for bundle adjustment are based on design values or the like as representative values.
[0064] The evaluation function selection unit 205 predicts the order of magnitude of the final reprojection error residual by comparing the acquired shooting conditions with the focal length and distortion coefficient used for bundle adjustment, and selects an appropriate evaluation function from the evaluation function storage unit 204.
[0065] The deviation amount calculation unit 203 performs an optimization calculation using the evaluation function selected by the evaluation function selection unit 205 and outputs the correction parameter 300 as the solution.
[0066] The method for selecting the evaluation function will be explained in detail below with reference to the flowchart in Figure 10. Note that the processing before step S409c is the same as steps S401 to S408 in Figure 4.
[0067] In step S409c, the CPU 206 uses the shooting condition acquisition unit 231 to refer to Exif information and metadata associated with the multi-lens image 100 and acquires the focal length, focus distance, etc., as shooting conditions.
[0068] In step S410c, the CPU 206 uses the evaluation function selection unit 205 to acquire the focal length and distortion coefficient used for bundle adjustment, which are stored in the internal parameter acquisition unit 232.
[0069] In step S411c, the CPU 206 uses the evaluation function selection unit 205 to compare the acquired shooting conditions with the focal length and distortion coefficient used for bundle adjustment, and calculates a deviation degree from this difference to predict the order of the final reprojection error residual.
[0070] In step S412c, the CPU 206 uses the evaluation function selection unit 205 to predict the order of the reprojection error residual from the degree of deviation calculated in step S411c, and selects one evaluation function to be used for bundle adjustment based on the result.
[0071] In step S413c, the CPU 206 uses the displacement calculation unit 203 to determine one correction parameter 300 from the selected evaluation function and outputs it as a solution.
[0072] Alternatively, the internal parameters used for bundle adjustment may be added to the multi-lens image 100 as metadata instead of being stored in the internal parameter acquisition unit 232.
[0073] Furthermore, multiple internal parameters are provided for bundle adjustment, and one of them may be selected and used. In this case, the internal parameter acquisition unit 232 first determines one internal parameter to be used for bundle adjustment from the acquired shooting conditions, and then the evaluation function selection unit 205 calculates the degree of deviation by comparing the acquired shooting conditions with the focal length and distortion coefficient used for bundle adjustment.
[0074] (Fourth embodiment) A fourth embodiment of the present invention will be described below with reference to Figure 11. Figure 11 is a flowchart illustrating the machine learning method for the evaluation function selection model in the fourth embodiment. The configuration of the image processing apparatus in the fourth embodiment is the same as in Figure 2.
[0075] The evaluation function selection unit 205 determines one evaluation function based on a machine learning model in which, for example, the reprojection error residuals for each corresponding point on the multi-eye image 100 are used as features and the parameters that change the evaluation function are used as the target variable.
[0076] The model creation method will be explained based on Figure 11.
[0077] In step S1101, the CPU 206 acquires a multi-camera image 100 under arbitrary shooting scenes and conditions.
[0078] In step S1102, the CPU 206 captures a calibration chart of known shape using the same shooting scene, shooting conditions, and imaging device as in step S1101. To facilitate the detection of feature points in the captured image, it is preferable to use a checkerboard with a checkered pattern or a circle grid with circles arranged at equal intervals for the calibration chart.
[0079] In step S1103, the CPU 206 calculates the correct value Pans for the correction parameter from the image captured in step S1102. To accurately calculate the correct value Pans, it is preferable to change the position of the calibration chart and capture multiple images in step S1102.
[0080] In step S1104, the CPU 206 performs bundle adjustment on the multi-eye image 100 acquired in step S1101 using multiple evaluation functions and obtains multiple correction parameter output results. Here, the evaluation functions are prepared by slightly changing the arbitrarily adjustable parameter δ in the Huber loss function shown in equation (3), for example. From the multiple correction parameter output results, the evaluation function g that outputs the result closest to the correct value Pans calculated in step S1103 is determined.
[0081] In step S1105, the CPU 206 learns using the reprojection error residuals for each corresponding point as features and the parameter δ of the evaluation function g as the target variable.
[0082] The method for creating training data used in machine learning is not limited to calibration chart photography. Furthermore, the features used in training are not limited to reprojection error residuals for each corresponding point; the shooting scene shown in the second embodiment or the shooting conditions shown in the third embodiment may also be used as features for training.
[0083] The disclosures herein include the following image processing devices, methods, programs, and storage media.
[0084] (Item 1) A feature point detection means for extracting multiple feature points from each of multiple images captured by multiple optical systems, Correspondence point search means for matching feature points that indicate the same subject in the aforementioned plurality of images, A displacement amount calculation means that calculates the displacement amount of the plurality of optical systems by optimization calculation based on the feature points associated by the correspondence point search means, A storage means for storing multiple evaluation functions used in the optimization calculation, A selection means for selecting an evaluation function from the plurality of evaluation functions such that the amount of displacement after correcting the plurality of images based on the calculation result of the displacement amount calculation means becomes smaller, An image processing apparatus characterized by comprising:
[0085] (Item 2) The image processing apparatus according to item 1, characterized in that the displacement amount calculation means performs the optimization calculation using the displacement amount derived in the manufacturing process of the plurality of optical systems as the central value.
[0086] (Item 3) The image processing apparatus according to item 1 or 2, characterized in that the selection means has an interface that allows the user to select the evaluation function.
[0087] (Item 4) The image processing apparatus according to item 1 or 2, characterized in that the selection means allows the user to select the evaluation function by adjusting parameters that change the evaluation function.
[0088] (Item 5) The image processing apparatus according to any one of items 1 to 4, characterized in that the storage means stores an evaluation function that is strict with respect to reprojection error residuals and an evaluation function that is lenient with respect to reprojection error residuals.
[0089] (Item 6) The image processing apparatus according to any one of items 1 to 5, further comprising a correction means for correcting the plurality of images based on the calculation result of the displacement amount calculation means.
[0090] (Item 7) The image processing apparatus according to item 6, characterized in that the correction means corrects the plurality of images and outputs a stereoscopic image.
[0091] (Item 8) The image processing apparatus according to item 6, characterized in that the correction means corrects the plurality of images and outputs a panoramic image.
[0092] (Item 9) The image processing apparatus according to any one of items 1 to 8, further comprising a shooting scene determination means for determining whether the subject of the photograph is a foreground or a background.
[0093] (Item 10) The image processing apparatus according to item 9, characterized in that the selection means selects the evaluation function according to the number of feature points located at a position where the image height is higher than a threshold and the distance is closer than a predetermined value.
[0094] (Item 11) The image processing apparatus according to any one of items 1 to 10, further comprising: a shooting condition acquisition means for acquiring the shooting conditions of the plurality of images; and an internal parameter acquisition means for acquiring internal parameters used for correcting the plurality of images.
[0095] (Item 12) The image processing apparatus according to item 11, characterized in that the internal parameter acquisition means changes the internal parameters used for correcting the plurality of images according to the shooting conditions acquired by the shooting condition acquisition means.
[0096] (Item 13) The image processing apparatus according to item 12, characterized in that the selection means compares the shooting conditions acquired by the shooting condition acquisition means with the internal parameters acquired by the internal parameter acquisition means, and selects the evaluation function based on the degree of deviation.
[0097] (Item 14) The image processing apparatus according to any one of items 1 to 13, characterized in that the selection means selects the evaluation function using a learning model created by machine learning.
[0098] (Item 15) A feature point detection process that extracts multiple feature points from each of multiple images captured by multiple optical systems, A correspondence point search process that associates feature points representing the same subject in the aforementioned multiple images, A displacement amount calculation step, which calculates the displacement amount of the plurality of optical systems by optimization calculation based on the corresponding feature points identified in the correspondence point search step, A storage step for storing multiple evaluation functions used in the optimization calculation, A selection step of selecting an evaluation function from the plurality of evaluation functions such that the amount of displacement after correcting the plurality of images is smaller based on the calculation result in the displacement amount calculation step, An image processing method characterized by having the following features.
[0099] (Item 16) A program that causes a computer to execute each step of the image processing method described in item 15.
[0100] (Item 17) A computer-readable storage medium containing a program that causes a computer to execute each step of the image processing method described in item 15.
[0101] (Other embodiments) Furthermore, the present invention can also be realized by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC) that implements one or more functions.
[0102] The invention is not limited to the embodiments described above, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, claims are attached to disclose the scope of the invention. [Explanation of Symbols]
[0103] 100: Multi-lens image, 200: Image processing device, 201: Feature point detection unit, 202: Corresponding point search unit, 203: Shift amount calculation unit, 204: Evaluation function storage unit, 205: Evaluation function selection unit, 206: CPU, 207: Memory, 300: Correction parameters
Claims
1. A feature point detection means for extracting multiple feature points from each of multiple images captured by multiple optical systems, Correspondence point search means for matching feature points that indicate the same subject in the aforementioned plurality of images, A displacement amount calculation means that calculates the displacement amount of the plurality of optical systems by optimization calculation based on the feature points associated by the correspondence point search means, A storage means for storing multiple evaluation functions used in the optimization calculation, A selection means for selecting an evaluation function from the plurality of evaluation functions such that the amount of displacement after correcting the plurality of images based on the calculation result of the displacement amount calculation means becomes smaller, An image processing apparatus characterized by comprising:
2. The image processing apparatus according to claim 1, characterized in that the displacement amount calculation means performs the optimization calculation using the displacement amount derived in the manufacturing process of the plurality of optical systems as the central value.
3. The image processing apparatus according to claim 1, characterized in that the selection means has an interface that allows the user to select the evaluation function.
4. The image processing apparatus according to claim 1, characterized in that the selection means allows the user to select the evaluation function by adjusting a parameter that changes the evaluation function.
5. The image processing apparatus according to claim 1, characterized in that the storage means stores an evaluation function that is strict with respect to reprojection error residuals and an evaluation function that is lenient with respect to reprojection error residuals.
6. The image processing apparatus according to claim 1, further comprising a correction means for correcting the plurality of images based on the calculation result of the displacement amount calculation means.
7. The image processing apparatus according to claim 6, characterized in that the correction means corrects the plurality of images and outputs a stereoscopic image.
8. The image processing apparatus according to claim 6, characterized in that the correction means corrects the plurality of images and outputs a panoramic image.
9. The image processing apparatus according to claim 1, further comprising a shooting scene determination means for determining whether the subject of the photograph is a foreground or a background.
10. The image processing apparatus according to claim 9, wherein the selection means selects the evaluation function according to the number of feature points located at a position where the image height is higher than a threshold and the distance is closer than a predetermined value.
11. The image processing apparatus according to claim 1, further comprising: a shooting condition acquisition means for acquiring the shooting conditions of the plurality of images; and an internal parameter acquisition means for acquiring internal parameters used for correcting the plurality of images.
12. The image processing apparatus according to claim 11, characterized in that the internal parameter acquisition means changes the internal parameters used for correcting the plurality of images according to the shooting conditions acquired by the shooting condition acquisition means.
13. The image processing apparatus according to claim 12, characterized in that the selection means compares the shooting conditions acquired by the shooting condition acquisition means with the internal parameters acquired by the internal parameter acquisition means, and selects the evaluation function based on the degree of deviation.
14. The image processing apparatus according to claim 1, wherein the selection means selects the evaluation function by a learning model created by machine learning, with the reprojection error residual for each feature point, the shooting scene, or the shooting conditions as features and the parameters of the evaluation function as the target variable.
15. A feature point detection process that extracts multiple feature points from each of multiple images captured by multiple optical systems, A correspondence point search process that associates feature points representing the same subject in the aforementioned multiple images, A displacement amount calculation step, which calculates the displacement amount of the plurality of optical systems by optimization calculation based on the corresponding feature points identified in the correspondence point search step, A storage step for storing multiple evaluation functions used in the optimization calculation, A selection step of selecting an evaluation function from the plurality of evaluation functions such that the amount of displacement after correcting the plurality of images is smaller based on the calculation result in the displacement amount calculation step, An image processing method characterized by having the following features.
16. A program for causing a computer to perform each step of the image processing method described in claim 15.
17. A computer-readable storage medium storing a program for causing a computer to execute each step of the image processing method described in claim 15.
Citation Information
Patent Citations
A high-precision binocular camera calibration method
CN109598762A
Color processing apparatus and method therefor
JP2007329899A
Evaluation support method, information processor, and program
JP2014074994A
Image processor, image processing method and program
JP2016118458A
Camera parameter calculation method, camera parameter calculation program, camera parameter calculation device, and camera parameter calculation system
JP2018189637A
