Multi-channel image matching method and device for multi-spectral camera
By obtaining the feature points and coordinate conversion parameters of the multispectral camera, combined with the Bayesian probability programming package PyMC3, the problem of low matching accuracy of multispectral camera images is solved, and accurate correction and matching of multi-channel images are achieved, which is suitable for agriculture and Environmental monitoring.
Patent Information
- Application Number
- CN202011373528.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-30
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-11-30
AI Technical Summary
Existing multispectral cameras in agricultural applications only consider camera imaging differences, resulting in low image matching accuracy, and the imaging offset caused by sensor position offset cannot be effectively corrected, resulting in multi-channel images that cannot completely overlap, affecting environmental monitoring data. accuracy.
By obtaining the feature points of the multi-channel image, determine the coordinate conversion parameters of the camera imaging difference and sensor position offset, use the rotation matrix and lens focal length to perform image coordinate conversion, and combine the release function and the Bayesian probability programming package PyMC3 to estimate the parameters to realize the image accurate matching and correction.
It improves the accuracy of multi-channel image matching of multispectral cameras, overcomes the problems of matching failure and low accuracy, and ensures the accuracy of target observation and environmental monitoring data in the agricultural field.
Smart Images

Figure CN112419379B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a multi-channel image matching method and device for a multi-spectral camera. Background Art
[0002] Multispectral cameras are widely used in agriculture, forestry, land resources, and environmental monitoring. At present, multispectral cameras that can be carried on consumer drones, such as the DJI Phantom 4 multispectral camera, do not use spectroscopic technology due to technical and cost limitations. Instead, they set up multiple cameras, each of which acquires a channel image separately to form multispectral data. Because the sensors in the above imaging method are not in a unified imaging center, there are still differences in their observation ranges even at the same imaging time, resulting in the imaging images not being able to completely overlap. If multi-channel images that cannot completely overlap are directly superimposed, the images will be offset, so the data cannot be used for various target environment monitoring in the later stage. For this reason, before using the multi-channel image data of the multispectral camera, it is necessary to match the images so that the images of each channel are matched to a consistent observation range.
[0003] The current image matching is mainly carried out through geometric precision correction between images. Specifically, the same-name points are obtained first, and then the correction equation is fitted through the same-name points. The image is changed through the correction equation to obtain the matching image. The following is the specific processing flow: Feature-based image matching first extracts features from the configured images respectively, and manual or automatic detection methods can be used. In the automatic detection method, feature extraction methods such as SIFT, SURF, Harris corner points, etc. can be used to extract image features. Then feature matching is performed to complete a one-to-one mapping of the feature points detected in the matching image and the reference image. This step can use the more classic RANSAC algorithm to stably complete the matching of the extracted feature points. The result obtained in this step is the same-name point. According to the obtained same-name point fitting equation, quadratic equations, polynomials, etc. can be selected to obtain the parameters required for image matching conversion. Finally, the fitting equation is used to match the images to complete the matching process between the two images.
[0004] However, in agricultural applications, existing multispectral camera image matching only takes into account camera imaging differences, resulting in low matching accuracy. Summary of the invention
[0005] In view of the problems existing in the prior art, the present invention provides a multi-channel image matching method and device for a multi-spectral camera.
[0006] The present invention provides a multi-channel image matching method for a multi-spectral camera, comprising: obtaining a preset number of multi-channel images, extracting feature points of each image, matching the feature points of all multi-channel images, and obtaining the same-name points of a reference channel and other channels respectively; using the image coordinates and lens focal lengths of the same-name points of other channels as pre-conversion coordinate parameters, and the image coordinates and lens focal lengths of the feature points of the reference channel as post-conversion coordinate parameters, and determining the coordinate conversion parameters in the coordinate conversion relationship according to camera imaging differences and sensor position offsets; converting the other channels in all captured multi-channel images to the reference channel according to the coordinate conversion parameters, and superimposing them to obtain the captured matching images.
[0007] According to a multi-channel image matching method for a multi-spectral camera of the present invention, the reference channel is a near-infrared channel, and the other channels are red edge, blue, green and red light channels.
[0008] According to a multi-channel image matching method for a multi-spectral camera of the present invention, the coordinate conversion parameters of the camera imaging difference include the rotation matrix of the same-name points of other channels converted to spatial coordinates, and the rotation matrix of the spatial coordinates converted to the reference channel; the coordinate conversion parameters of the sensor position offset include the distance between the reference channel and the images of other channels in space, and the rotation matrix of the spatial coordinates converted to the reference channel.
[0009] According to a multi-channel image matching method for a multi-spectral camera of the present invention, coordinate transformation parameters in a coordinate transformation relationship are determined respectively according to camera imaging differences and sensor position offsets, including determining according to the following formula:
[0010]
[0011] Among them, x s ,y s and f s are the row and column numbers of the feature points on the image corresponding to the reference channel and the focal length of the lens, respectively. t ,y t and f t are the row and column numbers of the points with the same name in other channel images and the focal length of the lens; in the coordinate transformation parameters, α and β are the correction coefficients, C x , C y and C z is the distance between the reference image and other channel images in X, Y, Y space, R s They are respectively the rotation matrix for converting spatial coordinates to the reference channel and the rotation matrix for converting the same-name points of other channels to spatial coordinates.
[0012] A multi-channel image matching method for a multi-spectral camera according to the present invention:
[0013]
[0014]
[0015] Accordingly, the coordinate transformation parameters include ω, κ, C x , C y , C z , α, β;
[0016] in, ω t , κ t and ω s , κ s They are and R s Flight heading inclination angle, lateral inclination angle, and sensor rotation angle.
[0017] According to a multi-channel image matching method for a multispectral camera of the present invention, obtaining a preset number of multi-channel images includes: randomly selecting images obtained through m shots from n shots obtained in one drone operation as multi-channel images of a preset number m; wherein m is greater than 30%*n.
[0018] According to a multi-channel image matching method for a multi-spectral camera of the present invention, the determining of the coordinate transformation parameters in the coordinate transformation relationship includes: determining a relaxation function of a measured value Y under a given parameter X:
[0019]
[0020] According to the release function, determine the posterior distribution P(X|Y) of the parameter; take the mean of the posterior distribution as the estimated value of the parameter; where n represents the number of estimates, f(X) is the estimated value, and y i is the i-th true value.
[0021] The resolution of current multi-channel drones is relatively low. In agricultural applications, when a more detailed observation of the target crop is required, fewer crop features can be obtained, and not enough matching points can be obtained between the channel images to be matched. The coordinate transformation parameters are determined based on the current least squares method, which ultimately leads to a high probability of calibration failure. In addition, for multispectral data, the reflectivity of the same object in different channels varies greatly, making the acquired features unstable, which also increases the possibility of calibration failure.
[0022] The method of the present invention determines the posterior distribution of the parameter through a release function, takes the mean of the posterior distribution as the estimated value of the parameter, and can obtain accurate coordinate conversion parameters and improve matching accuracy when there are few crop features and the acquired features are unstable.
[0023] The present invention also provides a multi-channel image matching device for a multi-spectral camera, comprising: a feature extraction module, used to obtain a preset number of multi-channel images, extract feature points of each image, match the feature points of all multi-channel images, and obtain the same-name points of the reference channel and other channels respectively; a parameter estimation module, used to use the image coordinates and lens focal length of the same-name points of other channels as the coordinate parameters before conversion, and the image coordinates and lens focal length of the feature points of the reference channel as the coordinate parameters after conversion, to determine the coordinate conversion parameters in the coordinate conversion relationship; an image matching module, used to convert the other channels in all the captured multi-channel images to the reference channel according to the coordinate conversion parameters, and superimpose them to obtain the captured matching images.
[0024] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the multi-channel image matching method of the multi-spectral camera described above are implemented.
[0025] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the multi-channel image matching method for a multi-spectral camera as described in any one of the above.
[0026] The multi-channel image matching method and device for a multi-spectral camera provided by the present invention respectively determine the coordinate transformation parameters in the coordinate transformation relationship according to the camera imaging difference and the sensor position offset, and take into account the above two main imaging offset differences. Correction can be performed to obtain an image with the imaging offset eliminated, thereby realizing multi-channel image matching for a multi-spectral camera, and can overcome the problems of matching failure or low accuracy in the agricultural field. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0028] Figure 1 It is a flow chart of a multi-channel image matching method for a multi-spectral camera provided by the present invention;
[0029] Figure 2 It is a structural schematic diagram of a multi-channel image matching device for a multi-spectral camera provided by the present invention;
[0030] Figure 3It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] Combine the following Figure 1-Figure 3 The present invention describes a multi-channel image matching method and device for a multi-spectral camera. Figure 1 : is a flow chart of the multi-channel image matching method of the multi-spectral camera provided by the present invention, such as Figure 1 As shown, the present invention provides a multi-channel image matching method for a multi-spectral camera, comprising:
[0033] 101. Obtain a preset number of multi-channel images, extract feature points of each image, match the feature points of all multi-channel images, and obtain the same-name points of the reference channel and other channels.
[0034] When a multi-channel drone takes an image, it obtains multiple channel images of the image. The five commonly used near infrared, red edge, blue, green, and red channel images are represented by b1, b2, b3, b4, and b5 respectively. Take one of the channels as the reference channel and match the other channels to the reference channel. For example, take b1 as the basis and match the remaining bands to the b1 band.
[0035] According to OpenCV, the scale-invariant feature transform (SIFT) algorithm can be used to extract feature points of each image. The FLANN (Fast Library for Approximate Nearest Neighbors) algorithm is used to match the image feature points of the b1 channel with the b2, b3, b4, and b5 channels obtained in each shot, and the same-name points of the b1 channel with b2, b3, b4, and b5 are obtained. When matching with FLANN, the Lowe ratio threshold is 0.5. If the same-name points of b1 and any other channels in a shot fail to match, the data of that shot is excluded from the feature matching operation.
[0036] 102. The image coordinates and lens focal length of the same-name points in other channels are used as the coordinate parameters before conversion, and the image coordinates and lens focal length of the feature points of the reference channel are used as the coordinate parameters after conversion. According to the camera imaging difference and the sensor position offset, the coordinate conversion parameters in the coordinate conversion relationship are determined respectively.
[0037] For a multispectral camera, each channel is independent of each other, close to each other, and fixed in position, and is a rigid body. Therefore, the offset of each channel in the imaging image mainly comes from two parts. The first part is the imaging offset caused by the position offset of the sensor between channels, and the second part is the imaging image offset caused by the imaging difference of each camera itself. Considering the above two main imaging offset differences, they can be corrected to obtain the image after the imaging offset is eliminated, as described in the following formula:
[0038] F t =F focal +F Position ;
[0039] In the formula, F t represents the corrected image position, F focal With F Position They represent the correction of imaging offset caused by camera imaging difference and sensor position offset respectively. By considering the offset during imaging globally, the source of inter-channel offset error is divided into two parts, and the offset is corrected through the corresponding imaging mechanism.
[0040] Determine the transformation relationship of the same-name points in other channels to the reference channel, and solve the coordinate transformation parameters in the transformation relationship on the basis that the same-name points and feature points are known. The coordinate transformation parameters can be estimated using the Bayesian probability programming package PyMC3 based on Markov Chain Monte Carlo (MCMC).
[0041] 103. Convert other channels in all captured multi-channel images to reference channels according to the coordinate conversion parameters, and superimpose them to obtain captured matching images.
[0042] After completing the parameter estimation, the other channels of all captured images are respectively converted into point coordinates (x s ,y s ) as input, go to the matched reference channel, and get the matched point coordinates (x t ,y t ), so that other non-near infrared channel images are corrected based on the near infrared channel image, and the corrected images are superimposed to obtain a matching image obtained by one shot.
[0043] The multi-channel image matching method for a multi-spectral camera provided by the present invention determines the coordinate transformation parameters in the coordinate transformation relationship respectively according to the camera imaging difference and the sensor position offset, takes into account the above two main imaging offset differences, and corrects them to obtain an image with the imaging offset eliminated, thereby realizing multi-channel image matching for a multi-spectral camera, and can overcome the problems of matching failure or low accuracy in the agricultural field.
[0044] In one embodiment, the reference channel is a near infrared channel, and the other channels are red edge, blue, green and red light channels, which have been exemplified above.
[0045] In one embodiment, the coordinate conversion parameters of the camera imaging difference include the rotation matrix of the same-name points of other channels converted to spatial coordinates, and the rotation matrix of the spatial coordinates converted to the reference channel; the coordinate conversion parameters of the sensor position offset include the distance in space between the reference channel and the images of other channels, and the rotation matrix of the spatial coordinates converted to the reference channel.
[0046] In one embodiment, the image coordinates and lens focal length of the same-name points of other channels are used as the coordinate parameters before conversion, and the image coordinates and lens focal length of the feature points of the reference channel are used as the coordinate parameters after conversion, and the coordinate conversion parameters in the coordinate conversion relationship are determined, including determining according to the following formula:
[0047]
[0048] Among them, x s ,y s and f s are the row and column numbers of the feature points on the image corresponding to the reference channel and the focal length of the lens; α and β are the correction coefficients; C x , C y and C z is the distance between the reference image and other channel images in X, Y, Y space; R s They are the rotation matrix of the spatial coordinates converted to the reference channel and the rotation matrix of the points of the same name in other channels converted to the spatial coordinates, that is, R s are the rotation matrices of the image to be matched and the reference image respectively.
[0049] Specifically, different coordinate systems are transformed according to the rotation matrix to achieve the coordinate transformation of each channel. The formula is as follows:
[0050]
[0051]
[0052]
[0053] In one embodiment,
[0054]
[0055]
[0056] Accordingly, the coordinate transformation parameters include ω, κ, C x , C y , C z , α, β;
[0057] in, ω t , κ t and ω s , κ s They are and R s Flight heading inclination angle, lateral inclination angle, and sensor rotation angle.
[0058] In one embodiment, obtaining a preset number of multi-channel images includes: randomly selecting images obtained through m shots from n shots obtained during a drone operation as a preset number of multi-channel images; wherein m is greater than 30%*n.
[0059] Since 5 images (b1, b2, b3, b4, b5) are acquired in one shot, the above 5m images are included. By randomly selecting a certain preset number of channel images to obtain the same-name points in a complete image acquisition, the problem of failure to obtain the same-name points using a single image can be overcome. In addition, the accuracy of subsequent parameter estimation can be improved, and the error caused by the selection of parameters estimated from a single image to match the overall image can be reduced.
[0060] In one embodiment, determining the coordinate transformation parameters in the coordinate transformation relationship includes: determining a relief function of the measured value Y under a given parameter X:
[0061]
[0062] According to the release function, determine the posterior distribution P(X|Y) of the parameter; take the mean of the posterior distribution as the estimated value of the parameter; where n means there are n estimates in total, f(X) is the estimated value, and y i is the i-th true value.
[0063] Assume that the distribution of the above parameters conforms to the truncated normal distribution with a variance of 1 and a mean of 0, and the distribution ranges of their value ranges are as follows:
[0064]
[0065] -5°≤ω t ≤5°
[0066] -8°≤κ t ≤8°
[0067]
[0068] -5°≤ω s ≤5°
[0069] -8°≤κ s ≤8°
[0070] -20mm≤C x ≤20mm
[0071] Assume that the parameters to be estimated ω t , κ t , ω s , κ s , C x , C y The distribution of , α, and β obeys a normal distribution with a variance of 1 and a mean of 0. Then for each parameter X, the likelihood function of the measured value Y occurring given the parameter X is as shown above.
[0072] After obtaining the release function P(Y|X) through the above formula, we can use the Bayesian formula as shown below to calculate P(X|Y), that is, the posterior distribution of the parameter to be estimated, and take the mean of the posterior distribution as the estimated value of the parameter, thus completing the calculation of the parameter to be estimated.
[0073]
[0074] This method makes full use of prior knowledge, quantifies the uncertainty of parameter estimation, and estimates the parameters to be estimated by using a Bayesian probability estimation model based on Markov Chain Monte Carlo, rather than using the least squares method that relies entirely on data information (same-name points) to estimate the parameters, thereby improving the accuracy of parameter estimation.
[0075] In the process of obtaining true color images in one imaging shot during flight, there are large differences between the red channel and the near-infrared channel. For example, vegetation in the red band strongly absorbs and vegetation in the near-infrared channel strongly reflects. In addition, since crop coverage is relatively uniform and there are few feature points, the existing method of extracting features to match the red channel and near-infrared channel images fails and the matching results cannot be obtained. However, this method can better handle the above problems and is closest to the true color obtained by the drone.
[0076] The multi-channel image matching device of the multi-spectral camera provided by the present invention is described below. The multi-channel image matching device of the multi-spectral camera described below and the multi-channel image matching method of the multi-spectral camera described above can be referred to each other.
[0077] Figure 2 is a schematic diagram of the structure of a multi-channel image matching device for a multi-spectral camera provided by an embodiment of the present invention, such as Figure 2 As shown, the multi-channel image matching device of the multi-spectral camera includes: a feature extraction module 201, a parameter estimation module 202 and an image matching module 203. Among them, the feature extraction module 201 is used to obtain a preset number of multi-channel images, extract the feature points of each image, match the feature points of all multi-channel images, and obtain the same-name points of the reference channel and other channels respectively; the parameter estimation module 202 is used to use the image coordinates and lens focal length of the same-name points of other channels as the coordinate parameters before conversion, and the image coordinates and lens focal length of the feature points of the reference channel as the coordinate parameters after conversion, to determine the coordinate conversion parameters in the coordinate conversion relationship; the image matching module 203 is used to convert the other channels in all the captured multi-channel images to the reference channel according to the coordinate conversion parameters, and superimpose them to obtain the captured matching image.
[0078] The device embodiments provided in the embodiments of the present invention are for implementing the above-mentioned method embodiments. For specific processes and detailed contents, please refer to the above-mentioned method embodiments, which will not be repeated here.
[0079] The multi-channel image matching device for a multi-spectral camera provided in an embodiment of the present invention determines the coordinate transformation parameters in the coordinate transformation relationship respectively according to the camera imaging difference and the sensor position offset, takes into account the above two main imaging offset differences, and corrects them to obtain an image with the imaging offset eliminated, thereby realizing multi-channel image matching for a multi-spectral camera, and can overcome the problems of matching failure or low accuracy in the agricultural field.
[0080] Figure 3 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 3As shown, the electronic device may include: a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302 and the memory 303 communicate with each other through the communication bus 304. The processor 301 may call the logic instructions in the memory 303 to execute the multi-channel image matching method of the multi-spectral camera, the method comprising: obtaining a preset number of multi-channel images, extracting feature points of each image, matching the feature points of all multi-channel images, and obtaining the same-name points of the reference channel and other channels respectively; using the image coordinates and lens focal length of the same-name points of other channels as the coordinate parameters before conversion, and the image coordinates and lens focal length of the feature points of the reference channel as the coordinate parameters after conversion, to determine the coordinate conversion parameters in the coordinate conversion relationship; converting the other channels in all the captured multi-channel images to the reference channel according to the coordinate conversion parameters, and superimposing them to obtain the captured matching images.
[0081] In addition, the logic instructions in the above-mentioned memory 303 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0082] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the multi-channel image matching method of the multi-spectral camera provided by the above methods, the method including: obtaining a preset number of multi-channel images, extracting feature points of each image, matching the feature points of all multi-channel images, and obtaining the same-name points of the reference channel and other channels respectively; using the image coordinates and lens focal length of the same-name points of other channels as the coordinate parameters before conversion, and the image coordinates and lens focal length of the feature points of the reference channel as the coordinate parameters after conversion, to determine the coordinate conversion parameters in the coordinate conversion relationship; converting the other channels in all the captured multi-channel images to the reference channel according to the coordinate conversion parameters, and superimposing them to obtain the captured matching images.
[0083] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the multi-channel image matching method of the multispectral camera provided in the above embodiments, the method comprising: obtaining a preset number of multi-channel images, extracting feature points of each image, matching the feature points of all multi-channel images, and obtaining the same-name points of the reference channel and other channels respectively; using the image coordinates and lens focal length of the same-name points of other channels as the coordinate parameters before conversion, and the image coordinates and lens focal length of the feature points of the reference channel as the coordinate parameters after conversion, to determine the coordinate conversion parameters in the coordinate conversion relationship; converting the other channels in all the captured multi-channel images to the reference channel according to the coordinate conversion parameters, and superimposing them to obtain the captured matching images.
[0084] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-channel image matching method for a multi-spectral camera, characterized in that: include: Obtain a preset number of multi-channel images, extract feature points of each image, match the feature points of all multi-channel images, and obtain the same-name points of the reference channel and other channels; The image coordinates and lens focal length of the same-name points in other channels are used as the coordinate parameters before conversion, and the image coordinates and lens focal length of the feature points of the reference channel are used as the coordinate parameters after conversion. According to the camera imaging difference and the sensor position offset, the coordinate conversion parameters in the coordinate conversion relationship are determined respectively. Converting other channels in all captured multi-channel images to reference channels according to the coordinate conversion parameters, and superimposing them to obtain captured matching images; The coordinate transformation parameters of the camera imaging difference include the rotation matrix of the same-name points of other channels transformed into the spatial coordinates, and the rotation matrix of the spatial coordinates transformed into the reference channel; The coordinate conversion parameters of the sensor position offset include the distance between the reference channel and the other channel images in space, and the rotation matrix of the spatial coordinate conversion to the reference channel; According to the camera imaging difference and the sensor position offset, the coordinate transformation parameters in the coordinate transformation relationship are determined respectively, including determining according to the following formula: Among them, x s ,y s and f s are the row and column numbers of the feature points on the image corresponding to the reference channel and the focal length of the lens, respectively. t ,y t and f t are the row and column numbers of the points with the same name in other channel images and the focal length of the lens; in the coordinate transformation parameters, α and β are the correction coefficients, C x , C y and C z is the distance between the reference image and other channel images in X, Y, Y space, R s They are the rotation matrix for converting spatial coordinates to the reference channel and the rotation matrix for converting the same-name points of other channels to spatial coordinates; Accordingly, the coordinate transformation parameters include ω, κ, C x , C y , C z , α, β; in, ω t , κ t and ω s , κ s They are and R s Flight heading inclination angle, lateral inclination angle, and sensor rotation angle.
2. The multi-channel image matching method of a multi-spectral camera according to claim 1, characterized in that: The reference channel is a near infrared channel, and the other channels are red edge, blue, green and red light channels.
3. The multi-channel image matching method of a multi-spectral camera according to claim 1, characterized in that: The step of obtaining a preset number of multi-channel images comprises: Among n shots acquired during a UAV operation, images acquired during m shots are randomly selected as multi-channel images of preset number m; Wherein, m is greater than 30%*n.
4. The multi-channel image matching method of a multi-spectral camera according to claim 1, characterized in that: The step of determining the coordinate transformation parameters in the coordinate transformation relationship includes: Determine the relief function for the measured value Y given the parameter X: According to the release function, determine the posterior distribution P(X|Y) of the parameter; Take the mean of the posterior distribution as the estimated value of the parameter; Where n is the number of estimates, f(X) is the estimated value, and y i is the i-th true value.
5. A multi-channel image matching device for a multi-spectral camera, characterized in that: include: A feature extraction module is used to obtain a preset number of multi-channel images, extract feature points of each image, match the feature points of all multi-channel images, and obtain the same-name points of the reference channel and other channels respectively; A parameter estimation module is used to use the image coordinates and lens focal length of the same-name points in other channels as the coordinate parameters before conversion, and the image coordinates and lens focal length of the feature points of the reference channel as the coordinate parameters after conversion, and to determine the coordinate conversion parameters in the coordinate conversion relationship according to the camera imaging difference and the sensor position offset; An image matching module, used to convert other channels in all captured multi-channel images to the reference channel according to the coordinate conversion parameters, and to superimpose the channels to obtain the captured matching images; The coordinate transformation parameters of the camera imaging difference include the rotation matrix of the same-name points of other channels transformed into the spatial coordinates, and the rotation matrix of the spatial coordinates transformed into the reference channel; The coordinate conversion parameters of the sensor position offset include the distance between the reference channel and the other channel images in space, and the rotation matrix of the spatial coordinate conversion to the reference channel; According to the camera imaging difference and the sensor position offset, the coordinate transformation parameters in the coordinate transformation relationship are determined respectively, including determining according to the following formula: Among them, x s ,y s and f s are the row and column numbers of the feature points on the image corresponding to the reference channel and the focal length of the lens, respectively. t ,y t and f t are the row and column numbers of the points with the same name in other channel images and the focal length of the lens; in the coordinate transformation parameters, α and β are the correction coefficients, C x , C y and C z is the distance between the reference image and other channel images in X, Y, Y space, R s They are the rotation matrix for converting spatial coordinates to the reference channel and the rotation matrix for converting the same-name points of other channels to spatial coordinates; Accordingly, the coordinate transformation parameters include ω, κ, C x , C y , C z , α, β; in, ω t , κ t and ω s , κ s They are and R s Flight heading inclination angle, lateral inclination angle, and sensor rotation angle.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the multi-channel image matching method for a multi-spectral camera as claimed in any one of claims 1 to 4 are implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the multi-channel image matching method for a multi-spectral camera according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Method for automatically eliminating wrongly-matched registration points in remote sensing image
CN104217209A
Image forming apparatus
CN104570654A
Homonymy point-based flight state detection method and apparatus
CN106778588A
Determination and registration method and device for characteristic point set of visible and infrared images
CN109389630A
Binocular camera calibration method and device, unmanned aerial vehicle and storage medium
CN110197510A
