A method for radiance correction of spectral imager
By combining the BP neural network with spatial correction parameters, the image data of the calibrated spectral imager is used to correct the radiation brightness of the uncalibrated spectral imager, which solves the high cost and complex operation problems of the traditional method and realizes low-cost and low-tech threshold spectral imager calibration, which is suitable for environmental monitoring and agricultural production.
Patent Information
- Application Number
- CN202411900193.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2044-12-23
AI Technical Summary
Existing radiation correction methods for spectral imagers require expensive instruments and complex experimental conditions, are difficult to combine with computational imaging methods, and cannot effectively utilize the advantages of computational imaging design.
By obtaining images taken by calibrated and uncalibrated spectral imagers at different locations, the mapping relationship between the DN value and radiance of the calibrated spectral imager is fitted using a BP neural network. Combined with the spatial correction parameters, the radiance correction of the uncalibrated spectral imager is performed.
It realizes low-cost, low-tech threshold spectral imager radiation correction in ordinary environments. It is suitable for simultaneous calibration of multiple instruments, reduces dependence on high-precision measuring instruments, improves calibration accuracy, and is suitable for commercial applications such as environmental monitoring and agricultural production.
Smart Images

Figure CN119714532B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of spectral imaging, and in particular to a method for correcting radiation brightness of a spectral imager. Background Art
[0002] Radiometric calibration primarily addresses the quantitative conversion between the radiation input received by an optical sensor and a digital signal (Digital Number, DN). It is the prerequisite and foundation for quantifying spectral information. This technology can address the image quality loss introduced by various processes in spectral imaging, from solar radiation to ground object reflection, optical imaging, and signal acquisition. Spectral imaging instruments are typically calibrated in a laboratory. Radiometric calibration is typically performed in a darkroom with stable temperature and humidity. A standard radiation source, integrating sphere, and standard diffuse reflectance plate generate uniform radiant brightness, which is then received by the system under test. Common radiometric calibration methods include the long-range small light source method, the long-range extended source method, the short-range extended source method, and the Jones method. Most of these methods require high-precision distance measurement, expensive experimental equipment (such as collimators, large-scale uniform light sources, and transmission / reflection extenders), and a suitable external environment (such as a calibration field, a lake with a known temperature, and good weather conditions). They are also typically limited to calibrating a single instrument at a time, resulting in low efficiency. In short, although there are relatively mature methods for radiation correction of spectral imaging instruments, they require expensive instruments, complex operating steps and strict experimental conditions.
[0003] In recent years, with the rise of computational imaging methods, many spectral imagers have directly or indirectly achieved DN values with resolutions similar to or higher than those of standard instruments through methods such as fitting, super-resolution, deblurring, neural networks, and deep learning. This approach, combining algorithms with instrument design, has pushed the limits of spectral imaging systems, enabling the acquisition of spectral images exceeding the system's hardware capabilities at low equipment or sampling costs. This approach is becoming a key approach in spectral imaging device design. Continuing to use traditional radiometric correction methods or systems for spectral imagers designed or optimized using computational imaging methods would neither maintain the computation-focused, supplemented instrument or system design approach of computational imaging nor leverage the advantages of computational imaging design approaches in shifting instrument costs to algorithm design. Therefore, it is urgent to design a calibration method for instrument radiance based on DN value images acquired through computational imaging methods. Summary of the Invention
[0004] The present invention aims to solve at least one of the above-mentioned technical problems existing in the prior art.
[0005] To this end, the present invention provides a method for correcting the radiation brightness of a spectral imager.
[0006] The present invention provides a method for calibrating the radiation brightness of a spectral imager, comprising:
[0007] Acquire several sets of reference spectral images and spectral images to be calibrated, taken at different locations; wherein the reference spectral images are taken by a reference spectral imager that has completed radiation correction, and the spectral images to be calibrated are taken by a spectral imager to be calibrated; the reference spectral images and the spectral images to be calibrated in the same set are images with matching image centers;
[0008] Calculate the number of pixels of the spectral image to be calibrated corresponding to the reference spectral image based on the field of view angle and offset angle of the reference spectral imager and the spectral imager to be calibrated during shooting, as well as the pixel size of the formed spectral image;
[0009] The DN value of the pixel point on the reference spectrum image is used as the input of the BP neural network, and the radiance of the pixel point after calibration is used as the output of the BP neural network to generate n1 point-to-point BP neural networks, where n1 is the number of pixels of the reference spectrum image; the BP neural network is trained to obtain the mapping relationship between the DN value and the radiance of the reference spectrum image;
[0010] For any pixel point at a spatial position on the spectral image to be calibrated, the coordinates of the pixel point corresponding to the point on the reference spectral image are determined according to the number and pixel size of the reference spectral image and the spectral image to be calibrated;
[0011] The spatial correction parameter is calculated based on the DN value difference between the pixel points corresponding to the spatial position on the reference spectral image and the spectral image to be calibrated;
[0012] Combined with the spatial correction parameters and the mapping relationship between DN value and radiant brightness in the BP neural network, the radiant brightness of any point in the spectral image newly taken by the spectral imager to be calibrated is calibrated; wherein, the DN value of the image pixel point corrected by the spatial correction parameters is input into the trained BP neural network.
[0013] The method for calibrating the radiance of a spectral imager according to the above technical solution of the present invention may also have the following additional technical features:
[0014] In the above technical solution, the spectral range of the reference spectral imager is larger than the spectral range of the spectral imager to be calibrated.
[0015] In the above technical solution, in the same group of reference spectral images and spectral images to be calibrated, the frame of the reference spectral image is larger than the frame of the spectral image to be calibrated, that is, the vertical field angle of the reference spectral imager when photographing the ground object is larger than the vertical field angle of the spectral image to be calibrated when photographing the ground object, and the horizontal field angle of the reference spectral imager when photographing the ground object is larger than the horizontal field angle of the spectral image to be calibrated when photographing the ground object.
[0016] In the above technical solution, a coordinate system is established with the spatial coordinates of the shooting position of the reference spectral imager as the origin, and the vertical offset angle and horizontal offset angle of the spectral imager to be calibrated during shooting are recorded; generally, when shooting the same group of images, the shooting angles of the reference spectral imager and the spectral imager to be calibrated remain consistent, which can effectively reduce the difficulty of calculation.
[0017] In the above technical solution, the vertical offset angle of the spectral imager to be calibrated is less than half of the vertical field angle of the spectral imager to be calibrated; the horizontal offset angle of the spectral imager to be calibrated is less than half of the horizontal field angle of the spectral imager to be calibrated.
[0018] In the above technical solution, the step of calculating the number of pixels of the spectral image to be calibrated corresponding to the reference spectral image includes:
[0019] X n2 =X n1 ·u1·(tan(α2 / 2+α3)+tan(α2 / 2-α3)) / 2(tan(α1 / 2)·u2)
[0020] Y n2 =Y n1 ·u1·(tan(β2 / 2+β3)+tan(β2 / 2-β3)) / 2(tan(β1 / 2)·u2)
[0021] Among them, X n1 ×Y n1 is the number of pixels of the reference spectrum image, X n2 ×Y n2 is the number of pixels of the spectral image to be calibrated; u1 is the pixel size of the reference spectral image; u2 is the pixel size of the spectral image to be calibrated; α1 is the vertical field angle of the reference spectral imager when photographing the ground object; α2 is the vertical field angle of the spectral imager to be calibrated when photographing the ground object; α3 is the vertical offset angle of the spectral imager to be calibrated when photographing; β1 is the horizontal field angle of the reference spectral imager when photographing the ground object; β2 is the horizontal field angle of the spectral imager to be calibrated when photographing the ground object; β3 is the horizontal offset angle of the spectral imager to be calibrated when photographing.
[0022] In the above technical solution, for a pixel point at any spatial position on the spectral image to be calibrated, determining the pixel coordinates corresponding to the point on the reference spectral image based on the number and pixel size of the reference spectral image and the spectral image to be calibrated includes:
[0023] Establish a first coordinate system with any point on the spectral image to be calibrated as the coordinate origin, and determine the coordinates (x′, y′) of each pixel point on the spectral image to be calibrated in the first coordinate system;
[0024] The second coordinate system is established with the pixel point on the reference spectrum image that matches the origin of the first coordinate system as the coordinate origin. The pixel point on the reference spectrum image that corresponds to the pixel point with coordinates (x′, y′) on the spectrum image to be calibrated has the coordinates (x, y) in the second coordinate system:
[0025]
[0026]
[0027] in, Indicates rounding up.
[0028] In the above technical solution, the calculation of the spatial correction parameter based on the difference in DN values of the pixel points corresponding to the spatial positions on the reference spectral image and the spectral image to be calibrated includes:
[0029] For any point (x′, y′) on the k′th image captured by the spectral imager to be calibrated, this point is defined as a calibration point. If there are p images capturing this calibration point at the same time in all the spectral images captured by the spectral imager to be calibrated, then the calibration parameter γ of this calibration point is (x′,y′) for:
[0030]
[0031] Among them, λ x ″ ,y′,k′,i represents the DN value of the calibration point on the i-th image among the p images of the calibration point captured by the spectral imager to be calibrated; x,y,k,j represents the DN value of the pixel point (x, y) corresponding to the spatial position of the calibration point on the j-th reference spectral image corresponding to the p-th spectral image to be calibrated; k represents the number of the reference spectral image in the same group as the k′-th image captured by the spectral imager to be calibrated.
[0032] In the above technical solution, for the pixel points on the k′th image captured by the spectral imager to be calibrated that are not captured by other images, the correction parameters are:
[0033]
[0034] Wherein, N represents the number of pixels in the current spectral image to be calibrated that are captured by other images.
[0035] In the above technical solution, in each of the BP neural networks, it is assumed that the number of input neurons is IN M , the number of neurons in the hidden layer is HID L , the number of neurons in the output layer is OUT N; The transfer function used in the hidden layer is the Sigmoid function, and the transfer function in the output layer is the linear function;
[0036] Calculate the estimated value J of the number of neuron nodes in each hidden layer M :
[0037]
[0038] Where q represents an adjustable parameter, which is a constant with a value in [0,10].
[0039] Record the vertical and horizontal field of view angles of each spectral imager when photographing ground objects;
[0040] The training of the BP neural network to obtain a mapping relationship between the DN value and the radiance of the reference spectrum image includes:
[0041] Simulation was carried out based on simulation software, using feedforward neural network as the basic framework to create the network, with initial weights defined as non-zero values, and the Levenberg-Marquardt algorithm was used for network training;
[0042] Randomly select images to divide into training set, validation set and test set, and carry out training, set the evaluation function to MSE, and set the number of training iterations; among them, perform time and value normalization on the network input, and perform value normalization on the network output;
[0043] After training, the BP neural network of all spatial pixels of the benchmark spectrum image can converge successfully; for each pixel point with spatial coordinates (x, y) in the benchmark spectrum image, the BP neural network generated is N (x,y) ; Take any k-th spectral image, and the radiance of any point (x, y) on this image can be calculated through the neural network according to the DN value of the point, which is:
[0044] N (x,y) (λ x,y,k )
[0045] Among them, λ x,y,k Indicates the DN value of pixel (x, y) in the kth spectral image.
[0046] In summary, due to the adoption of the above technical features, the beneficial effects of the present invention are:
[0047] The present invention utilizes a spectral imager that has completed radiation calibration in combination with a BP neural network to complete radiation correction for a spectral imager that responds to a known DN value, thus eliminating the traditional method's reliance on expensive calibration instruments, complex calibration operations, and harsh experimental conditions. It is only necessary to simultaneously capture several images of an unknown scene using an uncalibrated spectral imager and a calibrated spectral imager, and record the shooting angles of the two spectral imagers during the capture; the spatial geometric relationship between the shooting angles and image resolutions of the calibrated and uncalibrated spectral imagers is analyzed and calculated. The BP (Back-Propagation) neural network is used to fit the mapping relationship between the DN value image of the calibrated spectral imager and its radiation brightness image. Based on the numerical relationship between the DN value images captured by the two spectral imagers and the analyzed spatial geometric relationship, the radiation brightness is calculated from the DN value captured by the uncalibrated spectral imager using the fitted mapping relationship.
[0048] Specifically, the present invention can calibrate multiple uncalibrated instruments at the same time while completing a single process; the calibration cost is low, and there is no need to use a large number of high-precision measuring instruments. The environmental requirements are low, and spectral images can be taken in an ordinary outdoor environment. There is no need for a specific laboratory environment with constant temperature and humidity, and the technical threshold required for operators is low. Previous methods usually require technicians to use multiple instruments, and the accuracy of operating the instruments has a greater impact on the instrument calibration results. The present invention only needs to use the automatic acquisition function of the instrument as required. Subsequent calculation processes can be solidified into software functions through programming. The calibrated spectral imaging accuracy can be used in a wider range of commercial applications, such as environmental monitoring, agricultural production, etc.
[0049] Additional aspects and advantages of the invention will become apparent from the description which follows, or may be learned by practice of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments with reference to the accompanying drawings, in which:
[0051] Figure 1 is a flow chart of a method for calibrating the radiance of a spectral imager according to an embodiment of the present invention;
[0052] Figure 2 This is a module diagram of a method for calibrating the radiation brightness of a spectral imager according to an embodiment of the present invention;
[0053] Figure 3 is the convergence error distribution of the entire image after BP neural network training in the spectral imager radiation brightness correction method according to one embodiment of the present invention;
[0054] Figure 4Schematic diagram of changes in training, validation, and test errors at a certain point in a method for radiance correction of a spectral imager according to an embodiment of the present invention;
[0055] Figure 5 is a radiance image captured by a reference spectral imager in a specific embodiment of the present invention;
[0056] Figure 6 The spectral imager to be calibrated in a specific embodiment of the present invention takes the DN value image as input and obtains the radiance map according to the mapping relationship between the correction coefficient and the spatial correction;
[0057] Figure 7 is based on Figure 6 Schematic diagram of the difference between the RAD curve of the spectral imager to be calibrated obtained by fitting at point A and the standard RAD curve of the reference spectral imager;
[0058] Figure 8 is based on Figure 6 Schematic diagram of the difference between the RAD curve of the spectral imager to be calibrated obtained by fitting at point B and the standard RAD curve of the reference spectral imager. DETAILED DESCRIPTION
[0059] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features therein can be combined with each other.
[0060] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the scope of protection of the present invention is not limited to the specific embodiments disclosed below.
[0061] Refer to the following Figures 1 to 8 The following describes a method for radiance correction of a spectral imager according to some embodiments of the present invention.
[0062] Some embodiments of the present application provide a method for calibrating the radiation brightness of a spectral imager.
[0063] like Figure 1 and Figure 2 As shown, the first embodiment of the present invention provides a method for calibrating the radiation brightness of a spectral imager, including steps S1-S6.
[0064] S1. Acquire several groups of reference spectral images and spectral images to be calibrated, taken at different locations; wherein the reference spectral images are taken by a reference spectral imager that has completed radiation correction, and the spectral images to be calibrated are taken by a spectral imager to be calibrated; the reference spectral images and the spectral images to be calibrated in the same group are images with matching screen centers.
[0065] It's understood that within each image set, the spectral image to be calibrated corresponds to the reference spectral image. Each spectral image to be calibrated has a corresponding reference spectral image. Image center matching means that the image centers of the two images are identical or approximately identical. Generally, the captured scene should contain as many different types of objects as possible, and the spectral range of the reference spectral imager should be larger than that of the spectral imager to ensure that the reference spectral imager has a more accurate reference value.
[0066] Furthermore, in the same set of reference spectral images and spectral images to be calibrated, the frame of the reference spectral image is larger than that of the spectral image to be calibrated. This means that the vertical field of view of the reference spectral imager when capturing objects is larger than that of the spectral image to be calibrated, and the horizontal field of view of the reference spectral imager when capturing objects is larger than that of the spectral image to be calibrated. This ensures that, during subsequent calibration, each pixel in the spectral image to be calibrated can find a corresponding pixel in the reference spectral image.
[0067] During each image capture, a coordinate system is established with the spatial coordinates of the reference spectral imager's capture position as the origin, and the vertical and horizontal offset angles of the spectral imager to be calibrated are recorded. When capturing the same set of images, the reference spectral imager and the spectral imager to be calibrated maintain consistent shooting angles. In some embodiments, the vertical offset angle of the spectral imager to be calibrated is set to be less than half of the vertical field of view of the spectral imager to be calibrated; and the horizontal offset angle of the spectral imager to be calibrated is set to be less than half of the horizontal field of view of the spectral imager to be calibrated.
[0068] S2. Calculate the number of pixels of the spectral image to be calibrated corresponding to the reference spectral image based on the field of view angle and offset angle of the reference spectral imager and the spectral imager to be calibrated during shooting, as well as the pixel size of the formed spectral image.
[0069] It should be noted that the field of view angle and offset angle of the reference spectral imager and the spectral imager to be calibrated during shooting, as well as the pixel size of the spectral image, are all known quantities obtained in S1. Under the condition that the centers of the reference spectral image and the spectral image to be calibrated match, the number of pixels of the spectral image to be calibrated corresponding to the reference spectral image can be calculated based on the number of pixels in the reference spectral image using the above-mentioned known quantities. The calculation method is as follows:
[0070] Xn2 =X n1 ·u1·(tan(α2 / 2+α3)+tan(α2 / 2-α3)) / 2(tan(α1 / 2)·u2)
[0071] Y n2 =Y n1 ·u1·(tan(β2 / 2+β3)+tan(β2 / 2-β3)) / 2(tan(β1 / 2)·u2)
[0072] Among them, X n1 ×Y n1 is the number of pixels of the reference spectrum image, X n2 ×Y n2 is the number of pixels of the spectral image to be calibrated; u1 is the pixel size of the reference spectral image; u2 is the pixel size of the spectral image to be calibrated; α1 is the vertical field angle of the reference spectral imager when photographing the ground object; α2 is the vertical field angle of the spectral imager to be calibrated when photographing the ground object; α3 is the vertical offset angle of the spectral imager to be calibrated when photographing; β1 is the horizontal field angle of the reference spectral imager when photographing the ground object; β2 is the horizontal field angle of the spectral imager to be calibrated when photographing the ground object; β3 is the horizontal offset angle of the spectral imager to be calibrated when photographing.
[0073] S3, using the DN value of the pixel point on the reference spectrum image as the input of the BP neural network, and the radiant brightness of the pixel point after calibration as the output of the BP neural network, generate n1 point-to-point BP neural networks, where n1 is the number of pixels in the reference spectrum image, that is, X n1 ×Y n1 ; Train the BP neural network to obtain the mapping relationship between the DN value and the radiation brightness of the reference spectrum image.
[0074] It should be noted that the radiant brightness of the pixel points in the reference spectral image is usually obtained by laboratory calibration to obtain the corresponding parameters. The specific calibration method can adopt any of the existing methods and can be expressed in the form of calculation through the standard correction equation. However, an accurate calibration method should be selected as much as possible to improve the accuracy of the reference. The specific calibration method is not limited here.
[0075] In some embodiments, in each of the BP neural networks, it is assumed that the number of input neurons is IN M , the number of neurons in the hidden layer is HID L , the number of neurons in the output layer is OUT N ; The transfer function used in the hidden layer is the Sigmoid function, and the transfer function in the output layer is the linear function;
[0076] Calculate the estimated value J of the number of neuron nodes in each hidden layerM :
[0077]
[0078] Where q is an adjustable parameter, which is a constant with a value between [0,10] and can be adjusted according to the specific problem.
[0079] Record the vertical and horizontal field of view angles of each spectral imager when photographing ground objects;
[0080] The training of the BP neural network to obtain a mapping relationship between the DN value and the radiance of the reference spectrum image includes:
[0081] Simulations were conducted using simulation software (such as MATLAB and Python), with a feedforward neural network used as the basic framework to create the network. Initial weights were defined as small non-zero values, and the Levenberg-Marquardt algorithm was used for network training.
[0082] Randomly select images to divide into training set, validation set and test set, and conduct training, set the evaluation function to MSE, and set the number of training iterations; wherein, the network input is normalized in time and value, and the network output is normalized in value; in a specific embodiment, the ratio of training set, validation set and test set is about 7:2:1, and the maximum number of training iterations is set to 1000;
[0083] After training, the BP neural network of all spatial pixels of the benchmark spectrum image can converge successfully; for each pixel point with spatial coordinates (x, y) in the benchmark spectrum image, the BP neural network generated is N (x,y) ; Take any k-th spectral image, and the radiance of any point (x, y) on this image can be calculated through the neural network according to the DN value of the point, which is:
[0084] N (x,y) (λ x,y,k )
[0085] Among them, λ x,y,k Indicates the DN value of pixel (x, y) in the kth spectral image.
[0086] In a specific embodiment, Figure 3 The figure shows the technical effect of the BP neural network when it converges after the above training, that is, the convergence error distribution of the whole figure; Figure 4The figure shows the changes in training, validation, and test errors, taking the coordinate point (158, 137) as an example and MSE as the evaluation criterion. The horizontal axis is the training round, the vertical axis is the MSE (mean square error), the blue line represents the training error, the green line represents the validation error, and the red line represents the test error. The best validation performance is 0.00010718 at 13 rounds.
[0087] It is understandable that the corresponding relationship between the DN value and the radiant brightness of each pixel point in the image captured by the reference spectral imager can be obtained through step S3, and this corresponding relationship is associated with the coordinates of the pixel point.
[0088] S4. For any pixel point at a spatial position on the spectral image to be calibrated, determine the pixel coordinates corresponding to the point on the reference spectral image according to the number and size of pixels of the reference spectral image and the spectral image to be calibrated.
[0089] In some embodiments, step S4 includes:
[0090] Establish a first coordinate system with any point on the spectral image to be calibrated as the coordinate origin, and determine the coordinates (x′, y′) of each pixel point on the spectral image to be calibrated in the first coordinate system;
[0091] The second coordinate system is established with the pixel point on the reference spectrum image that matches the origin of the first coordinate system as the coordinate origin. The pixel point on the reference spectrum image that corresponds to the pixel point with coordinates (x′, y′) on the spectrum image to be calibrated has the coordinates (x, y) in the second coordinate system:
[0092]
[0093]
[0094] in, Indicates rounding up.
[0095] In a specific embodiment, the coordinate origin of the first coordinate system is usually a vertex of the spectral image to be calibrated, and the coordinate origin of the second coordinate system is a vertex on the reference spectral image corresponding to the direction of the vertex.
[0096] According to step S4, the spatial correspondence between the pixel points on the spectral image to be calibrated and the pixel points on the reference spectral image can be determined.
[0097] S5. Calculate the spatial correction parameter according to the difference in DN values of the pixel points corresponding to the spatial positions on the reference spectral image and the spectral image to be calibrated.
[0098] Specifically, step S5 includes:
[0099] For any point (x′, y′) on the k′th image captured by the spectral imager to be calibrated, this point is defined as a calibration point. If there are p images capturing this calibration point at the same time in all the spectral images captured by the spectral imager to be calibrated, then the calibration parameter γ of this calibration point is (x′,y′) for:
[0100]
[0101] Among them, λ x ″ ,y′,k′,i represents the DN value of the calibration point on the i-th image among the p images of the calibration point captured by the spectral imager to be calibrated; x,y,k,j represents the DN value of the pixel point (x, y) corresponding to the spatial position of the calibration point on the j-th reference spectral image corresponding to (in the same group as) the p-th spectral image to be calibrated; k represents the number of the reference spectral image in the same group as the k′-th image captured by the spectral imager to be calibrated.
[0102] In addition, if there are some pixels on the current spectral image to be calibrated that are not captured by other spectral images to be calibrated, the correction parameters of these pixels can be taken as the average of the correction parameters of the remaining pixels on the current spectral image to be calibrated. Specifically: for the pixels on the k′th image captured by the spectral imager to be calibrated that are not captured by other images, their correction parameters are:
[0103]
[0104] Wherein, N represents the number of pixels in the current spectral image to be calibrated that are captured by other images.
[0105] S6. Calibrate the radiance of any point in the spectral image newly taken by the spectral imager to be calibrated by combining the spatial correction parameters and the mapping relationship between the DN value and the radiance in the BP neural network; wherein the DN value of the image pixel point corrected by the spatial correction parameters is input into the trained BP neural network.
[0106] Specifically, for any point (x0, y0) in the spectral image newly taken by the spectral imager to be calibrated, according to step S4, its corresponding pixel point on the reference spectral image can be determined to be (x, y), and its corresponding trained BP neural network is N (x,y) According to step S5, the correction parameter of this point can be determined as Set the DN value of point (x0,y0) First use the correction parameters to make corrections and then use them as the input of the BP neural network to get the radiation brightness of the corresponding point: By traversing the entire image in this way, we can obtain the radiation brightness map of the scene captured by the spectral imager to be calibrated.
[0107] In some embodiments, when executing step S1, each set of images is composed of a reference spectrum image and multiple spectra to be calibrated taken by different spectral imagers to be calibrated, so that calibration of multiple spectral imagers to be calibrated can be completed at one time.
[0108] The present invention provides a specific example of using the spectral imager radiation brightness correction method disclosed in the present invention to implement spectral imager calibration, as shown below.
[0109] The reference spectral imager is the calibrated HySpex Baldur V-1024 (device model), and the spectral imager to be calibrated is the uncalibrated PSD-HIS (device model) produced by Spectrum.
[0110] The instrument parameters corresponding to the benchmark spectral imager are α1=β1=16.33°, X n1 =Y n1 =1024;
[0111] The instrument parameters corresponding to the spectral imager to be calibrated are α2 = β2 = 9.28°;
[0112] The angles of the two images are the same when shooting, i.e. α3 = β3 = 0°, and the pixel sizes of the two images are u1 = u2 = 6.5 μm.
[0113] According to step S2, the pixel size of the image space taken by the spectral imager to be calibrated at equal distance is calculated as X n2 ×Y n2 =568×568;
[0114] The spectral range of the HySpex Baldur V-1024 instrument (400-1000 nm) is larger than the spectral range of the PSD-HIS (450-720 nm). Since the PSD-HIS has a total of 55 bands in its spectral range, the dimension of the network input variable is set to 55 in the BP neural network.
[0115] In the BP neural network training, MATLAB is selected as the simulation platform. Take the cumulative number of scene pictures taken P = 10, that is, IN M =OUT N =10. Take q=5, calculate the number of neuron nodes in each hidden layer, and round it up to J M = 10. The ratio of training set, validation set, and test set is 7:2:1.
[0116] After 1000 training cycles, the mean of the best test error was 0.0044 and the maximum was 0.9475. Since the shooting angles were consistent, N = 568 * 568 = 322624. It should be noted that since the PSD-HIS computational spectral imaging instrument uses HySpex Baldur V-1024 to perform DN value calibration, there is a γ (x′,y′) =1, no further calculation is required.
[0117] The radiance of the corrected HySpex Baldur V-1024 and the PSD-HIS calculated by the present invention are compared on the test spectrum image. The results are shown in the attached figure. Figure 5-8 middle. Figure 5 Standard radiance obtained for HySpex Baldur V-1024, Figure 6 is the radiant brightness of PSD-HIS obtained by the method of the present invention. Figure 6 The feature points with spatial coordinates A(115,180) and B(242,122) are Figure 5 The corresponding coordinate points are (286,318) and (349,284) respectively. That is, select N in the trained BP neural network. (286,318) and N (349,284) Two neural networks, with the DN value of each point as network input, obtain the corrected radiation brightness N (286,318) (λ (115,180) ) and N (349,284) (λ (242,122) The results are shown in Figure 7 and 8 In the experiment, the difference between the algorithm-corrected radiometric brightness curve and the standard radiometric brightness curve is small, and the curve shapes are basically the same, which can be used for low-cost batch calibration of radiometric brightness of commercial instruments.
[0118] In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any suitable manner in any one or more embodiments or examples.
[0119] Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for calibrating the radiation brightness of a spectral imager, characterized in that: include: Acquire several sets of reference spectral images and spectral images to be calibrated, taken at different locations; wherein the reference spectral images are taken by a reference spectral imager that has completed radiation correction, and the spectral images to be calibrated are taken by a spectral imager to be calibrated; the reference spectral images and the spectral images to be calibrated in the same set are images with matching image centers; Calculate the number of pixels of the spectral image to be calibrated corresponding to the reference spectral image based on the field of view angle and offset angle of the reference spectral imager and the spectral imager to be calibrated during shooting, as well as the pixel size of the formed spectral image; The DN value of the pixel point on the reference spectrum image is used as the input of the BP neural network, and the radiance of the pixel point after calibration is used as the output of the BP neural network to generate n1 point-to-point BP neural networks, where n1 is the number of pixels of the reference spectrum image; the BP neural network is trained to obtain the mapping relationship between the DN value and the radiance of the reference spectrum image; For any pixel point at a spatial position on the spectral image to be calibrated, the coordinates of the pixel point corresponding to the point on the reference spectral image are determined according to the number and pixel size of the reference spectral image and the spectral image to be calibrated; The spatial correction parameter is calculated based on the DN value difference between the pixel points corresponding to the spatial position on the reference spectral image and the spectral image to be calibrated; Combined with the spatial correction parameters and the mapping relationship between DN value and radiant brightness in the BP neural network, the radiant brightness of any point in the spectral image newly taken by the spectral imager to be calibrated is calibrated; wherein, the DN value of the image pixel point corrected by the spatial correction parameters is input into the trained BP neural network.
2. The method for calibrating the radiance of a spectral imager according to claim 1, wherein: The spectral range of the reference spectral imager is larger than the spectral range of the spectral imager to be calibrated.
3. The method for calibrating the radiant brightness of a spectral imager according to claim 1, wherein: In the same group of reference spectral images and spectral images to be calibrated, the frame of the reference spectral image is larger than the frame of the spectral image to be calibrated, that is, the vertical field angle of the reference spectral imager when photographing the ground object is larger than the vertical field angle of the spectral image to be calibrated when photographing the ground object, and the horizontal field angle of the reference spectral imager when photographing the ground object is larger than the horizontal field angle of the spectral image to be calibrated when photographing the ground object.
4. The method for calibrating the radiant brightness of a spectral imager according to claim 3, wherein: A coordinate system is established with the spatial coordinates of the shooting position of the reference spectral imager as the origin, and the vertical offset angle and the horizontal offset angle of the spectral imager to be calibrated when shooting are recorded.
5. The method for calibrating the radiation brightness of a spectral imager according to claim 4, wherein: The vertical offset angle of the spectral imager to be calibrated is less than half of the vertical field angle of the spectral imager to be calibrated; the horizontal offset angle of the spectral imager to be calibrated is less than half of the horizontal field angle of the spectral imager to be calibrated.
6. The method for calibrating the radiation brightness of a spectral imager according to claim 1, wherein: The calculating the number of pixels of the spectral image to be calibrated corresponding to the reference spectral image includes: X n2 =X n1 ·u1·(tan(α2 / 2+α3)+tan(α2 / 2-α3)) / 2(tan(α1 / 2)·u2) AND n2 =And n1 ·u1·(tan(β2 / 2+β3)+tan(β2 / 2-β3)) / 2(tan(β1 / 2)·u2) Among them, X n1 ×Y n1 is the number of pixels of the reference spectrum image, X n2 ×Y n2 is the number of pixels of the spectral image to be calibrated; u1 is the pixel size of the reference spectral image; u2 is the pixel size of the spectral image to be calibrated; α1 is the vertical field angle of the reference spectral imager when photographing the ground object; α2 is the vertical field angle of the spectral imager to be calibrated when photographing the ground object; α3 is the vertical offset angle of the spectral imager to be calibrated when photographing; β1 is the horizontal field angle of the reference spectral imager when photographing the ground object; β2 is the horizontal field angle of the spectral imager to be calibrated when photographing the ground object; β3 is the horizontal offset angle of the spectral imager to be calibrated when photographing.
7. The method for calibrating the radiation brightness of a spectral imager according to claim 6, wherein: The method of determining, for a pixel point at any spatial position on the spectral image to be calibrated, the pixel coordinates corresponding to the pixel point on the reference spectral image according to the number and pixel size of the reference spectral image and the spectral image to be calibrated, includes: Establish a first coordinate system with any point on the spectral image to be calibrated as the coordinate origin, and determine the coordinates (x′, y′) of each pixel point on the spectral image to be calibrated in the first coordinate system; The second coordinate system is established with the pixel point on the reference spectrum image that matches the origin of the first coordinate system as the coordinate origin. The pixel point on the reference spectrum image that corresponds to the pixel point with coordinates (x′, y′) on the spectrum image to be calibrated has the coordinates (x, y) in the second coordinate system: in, Indicates rounding up.
8. The method for calibrating the radiation brightness of a spectral imager according to claim 7, wherein: The calculating of the spatial correction parameter according to the difference in DN values of the pixel points corresponding to the spatial positions on the reference spectral image and the spectral image to be calibrated includes: For any point (x′, y′) on the k′th image captured by the spectral imager to be calibrated, this point is defined as a calibration point. If there are p images capturing this calibration point at the same time in all the spectral images captured by the spectral imager to be calibrated, then the calibration parameter γ of this calibration point is (x′,y′) for: Among them, λ′ x′,y′,k′,i represents the DN value of the calibration point on the i-th image among the p images of the calibration point captured by the spectral imager to be calibrated; x,y,k,j represents the DN value of the pixel point (x, y) corresponding to the spatial position of the calibration point on the j-th reference spectral image corresponding to the p-th spectral image to be calibrated; k represents the number of the reference spectral image in the same group as the k′-th image captured by the spectral imager to be calibrated.
9. The method for calibrating the radiation brightness of a spectral imager according to claim 8, wherein: For the pixel points on the k′th image captured by the spectral imager to be calibrated that are not captured by other images, the correction parameters are: Wherein, N represents the number of pixels in the current spectral image to be calibrated that are captured by other images.
10. The method for calibrating the radiation brightness of a spectral imager according to claim 1, wherein: In each of the BP neural networks, it is assumed that the number of input neurons is IN M , the number of neurons in the hidden layer is HID L , the number of neurons in the output layer is OUT N ; The transfer function used in the hidden layer is the Sigmoid function, and the transfer function in the output layer is the linear function; Calculate the estimated value J of the number of neuron nodes in each hidden layer M : Where q represents an adjustable parameter, which is a constant with a value in [0,10]. Record the vertical and horizontal field of view angles of each spectral imager when photographing ground objects; The training of the BP neural network to obtain a mapping relationship between the DN value and the radiance of the reference spectrum image includes: Based on the simulation software, the simulation was carried out, and the feedforward neural network was selected as the basic framework to create the network. The initial weights were defined as non-zero values, and the Levenberg-Marquardt algorithm was used to carry out network training. Randomly select images to divide into training set, validation set and test set, and carry out training, set the evaluation function to MSE, and set the number of training iterations; among them, perform time and value normalization on the network input, and perform value normalization on the network output; After training, the BP neural network of all spatial pixels of the benchmark spectrum image can converge successfully; for each pixel point with spatial coordinates (x, y) in the benchmark spectrum image, the BP neural network generated is N (x,y) ; Take any k-th spectral image, and the radiance of any point (x, y) on this image can be calculated through the neural network according to the DN value of the point, which is: N (x,y) (l x,y,k ) Among them, λ x,y,k Indicates the DN value of pixel (x, y) in the kth spectral image.
Citation Information
Patent Citations
Spectrum reconstruction method and device, and electronic equipment
CN110332991A
Curve radiation calibration method and system for satellite-borne hyperspectral imager
CN118129905A