Hyperspectral image fusion method and image acquisition system based on checkerboard guidance

Through the hyperspectral image fusion method based on checkerboard guidance, the problem of image differences between hyperspectral cameras of different specifications is solved, the spectral and spatial resolution of hyperspectral images are unified, the fusion effect is significantly improved, and the adaptability of data processing is enhanced. and precision.

CN118537693APending Publication Date: 2024-08-23HUNAN UNIV
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410613635.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Hyperspectral images captured by hyperspectral cameras of different specifications have differences in spatial and spectral resolution. Existing technologies are difficult to directly integrate, which affects subsequent component analysis and detection work.

Method used

A hyperspectral image fusion method based on checkerboard guidance is adopted. Through spectral data resampling and spatial resolution adjustment, the interpolation function and Harris corner point detection algorithm are used to achieve the unification of spectral and spatial resolution of hyperspectral images in different bands, and perform key Corner matching registration to fuse images.

Benefits of technology

Effectively integrate image data acquired by hyperspectral cameras of different specifications to generate hyperspectral images with unified spatial and spectral resolution, which improves the accuracy and fidelity of fused images, enhances the adaptability and convenience of data processing, and provides hyperspectral In-depth analysis of images provides a solid foundation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537693A
    Figure CN118537693A
Patent Text Reader

Abstract

The invention discloses a checkerboard guidance-based hyperspectral image fusion method and an image acquisition system, and the method comprises the following steps: S1, carrying out the shooting of a mobile carrying platform with a checkerboard scene through employing a double-hyperspectral camera which comprises a hyperspectral imaging system of different wavebands, establishing an original hyperspectral image data pair containing hyperspectral images of different wavebands; s2, through spectral data resampling, the spectral resolutions of the original hyperspectral image data pairs are unified through interpolation calculation; s3, carrying out angular point sorting on the checkerboard background image, and unifying the spatial resolution of the hyperspectral image data pair by adjusting the moving speed of a carrying platform of the hyperspectral imaging system with different wavebands; and S4, matching and registering the key angular points of the checkerboard background image, and fusing the hyperspectral images of the hyperspectral imaging systems with different wavebands in the hyperspectral image data pair. The hyperspectral image fusion is carried out through the hyperspectral image fusion method and device, and the fusion effect and the data fidelity are excellent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention discloses a hyperspectral image fusion method and an image acquisition system based on chessboard guidance, and belongs to the technical field of hyperspectral computational imaging. Background Art

[0002] With the continuous advancement of science and technology, traditional visible light cameras (RGB cameras) have gradually developed into spectral cameras (HS cameras). At present, hyperspectral cameras and related technologies have gradually become the forefront of the field. Compared with visible light images (RGB images), hyperspectral images (HS images) can have hundreds or even thousands of spectral bands. Although hyperspectral images have rich spectral information, due to the imaging principles and imaging mechanical hardware of different hyperspectral cameras, there are large differences in the spatial resolution and spectral resolution of hyperspectral images imaged by different cameras. In the analysis and detection of hyperspectral components, two or even more hyperspectral cameras are generally used to obtain data covering the visible light band to the near-infrared band, such as a combination of a visible light band camera (covering 400-1000nm) and a near-infrared camera (covering 900-1700nm). Therefore, how to combine hyperspectral images with different spatial resolutions, spectral resolutions and imaging angles to obtain a hyperspectral image with wide band, high spatial and spectral resolution is an urgent problem to be solved.

[0003] In the past few years, image feature matching has been an important task in many computer vision applications and is widely used in the fields of image matching and target detection. In terms of image matching, the early feature checker was Harris corner detection proposed by Chris Harris and Mike Stephens in 1998. In the following decades, various feature detectors have been proposed. Image matching consists of three steps: key point detection, key point feature description, and key point matching. However, such matching algorithms are mostly designed for visible light images and cannot be directly applied to hyperspectral images with different spatial resolutions and shooting angles. In addition, due to the differences in the imaging hardware of hyperspectral cameras, there is little research on spectral resolution dimension matching in the existing technology, and the direct fusion of hyperspectral images with different spectral resolutions often has a certain impact on subsequent component analysis and detection work. Summary of the invention

[0004] The technical problem solved by the present invention is that: in view of the differences in spatial and spectral resolution of hyperspectral images captured by hyperspectral cameras of different specifications, the present invention proposes a hyperspectral image fusion method and image acquisition system based on checkerboard guidance.

[0005] The present invention is implemented by the following technical solutions:

[0006] The hyperspectral image fusion method based on chessboard guidance includes the following steps:

[0007] S1. Using dual hyperspectral cameras including hyperspectral imaging systems of different bands to shoot a mobile carrier platform with a checkerboard scene, establishing an original hyperspectral image data pair including hyperspectral images of different bands, and all hyperspectral images have a checkerboard background;

[0008] S2, resampling the spectral data and unifying the spectral resolution of the original hyperspectral image data pair by interpolation calculation to obtain a first hyperspectral image data pair, and generating a new wavelength intensity value of the hyperspectral image at the resolution;

[0009] S3, sorting the corner points of the checkerboard background image in the first hyperspectral image data pair, unifying the spatial resolution of the first hyperspectral image data pair by adjusting the moving speed of the carrier platform of the hyperspectral imaging system of different bands, and obtaining a second hyperspectral image data pair;

[0010] S4, matching and registering the key corner points of the checkerboard background image in the second hyperspectral image data pair, and fusing the hyperspectral images of hyperspectral imaging systems of different bands in the second hyperspectral image data pair according to the registration information.

[0011] In the hyperspectral image fusion method based on chessboard guidance of the present invention, specifically, the chessboard is black and white squares attached to the object-carrying platform and arranged alternately.

[0012] In the hyperspectral image fusion method based on checkerboard guidance of the present invention, specifically, the dual hyperspectral cameras include a visible light hyperspectral camera and a near-infrared hyperspectral camera, both of which are line scanning hyperspectral cameras.

[0013] In the hyperspectral image fusion method based on checkerboard guidance of the present invention, specifically, step S2 specifically includes the following sub-steps:

[0014] S21. Select the following Interp1d linear interpolation function to construct new pixel data points of the hyperspectral image:

[0015]

[0016] Where a and b are the wavelengths of known pixel data points in the hyperspectral image, f(a) and f(b) are the intensity values ​​corresponding to the known pixel data points, x is the wavelength value of the new pixel data point, and f(x) is the intensity value corresponding to the new pixel data point;

[0017] S22, according to sub-step S21, a linear interpolation function is calculated for the pixel data points of the hyperspectral image to be adjusted in the original hyperspectral image data to obtain new pixel data points, and the intensity values ​​of the wavelengths of the pixel data points of the hyperspectral image to be adjusted are resampled by adjusting the uniform spectral resolution as the interval wavelength, and the spectral resolution of the constructed new pixel data point image is adjusted to the same resolution;

[0018] S23, traversing the hyperspectral image to be adjusted pixel by pixel using sub-step S22;

[0019] S24, cropping edge bands of the hyperspectral image data pair after the spectral resolution is adjusted and unified, optimizing data quality, and obtaining a first hyperspectral image data pair after the spectral resolution is adjusted.

[0020] In the hyperspectral image fusion method based on checkerboard guidance of the present invention, specifically, step S3 specifically includes the following sub-steps:

[0021] S31. From the first hyperspectral image data pair with uniform spectral resolution, randomly select one band from the hyperspectral images of hyperspectral imaging systems of different bands to perform spatial resolution adjustment correction; the correction is performed by adjusting the platform movement speed so that the aspect ratio of the chessboard in the image is 1. As long as one band is adjusted, the other bands are also adjusted synchronously.

[0022] S32, using the Harris corner detection algorithm to identify checkerboard corners in the hyperspectral image of the selected band, and using corner sorting to sort the identified checkerboard corners according to the actual layout of the checkerboard;

[0023] S33, respectively calculating the length-width ratio scale of the chessboard squares in the hyperspectral images of the hyperspectral imaging systems of different bands, L is the length of the chessboard, W is the width of the chessboard, and the moving speed of the loading platform is adjusted so that the length-to-width ratio of the chessboard squares in the hyperspectral images of the hyperspectral imaging systems of different bands is scale=1, so that the spatial resolution of the hyperspectral images of the hyperspectral imaging systems of different bands is unified, and the second hyperspectral image data pair is obtained.

[0024] In the hyperspectral image fusion method based on checkerboard guidance of the present invention, specifically, in the sub-step S32, the checkerboard corner point recognition process in the hyperspectral image is as follows:

[0025] First, the hyperspectral image of the selected band of S31 is converted into a binary image using an adaptive threshold algorithm. Then, the Harris corner detection algorithm is used to detect the corners of the black and white checkerboard in the binary image. The Harris corner response function is defined as:

[0026] R = det(M) - k(trace(M))2 ,

[0027] Where R is the Harris corner response function value, which is used to evaluate whether a pixel in a binary image is considered a checkerboard corner point, k is the algorithm sensitivity parameter, which ranges from 0.04 to 0.06, M is the second-order matrix of the local window points of the binary image, det(M) is the determinant of the matrix M, and trace(M) is the trace of the matrix M;

[0028] The calculation formula of the second-order matrix M of the local window point of the binary image is:

[0029]

[0030] Among them, I x and I y is the first-order derivative of the binary image in the x and y directions, and w(x,y) is the Gaussian window function.

[0031] In the hyperspectral image fusion method based on checkerboard guidance of the present invention, specifically, in the sub-step S32, the identified inner corner points are sorted as follows:

[0032] The Euclidean distance between each corner point and other corner points is calculated by the following formula, and the corner points are grouped and sorted by rows and columns according to the Euclidean distance between the corner points:

[0033]

[0034] Among them, d(p i ,p j ) represents the corner point p i and corner point p j The Euclidean distance between i ,y i ) and (x j ,y j ) are the corner points p i and corner point p j The coordinates of

[0035] Select the upper left corner of the black and white chessboard as the starting corner point, and determine the direction of the rows and columns of the black and white chessboard through the two corner points closest to the starting corner point. In each row, sort the corner points according to their x-coordinate values ​​to ensure that the corner points are arranged from left to right. In each column, sort the corner points according to their y-coordinate values ​​to ensure that the corner points are arranged from top to bottom.

[0036] In the hyperspectral image fusion method based on checkerboard guidance of the present invention, specifically, step S4 specifically includes the following sub-steps:

[0037] S41, selecting a second hyperspectral image data pair after the spectral resolution and spatial resolution are adjusted to be unified, and using a Harris corner detection algorithm to identify checkerboard corners in the hyperspectral image data;

[0038] S42. The mapping of any corner point (x, y) of the chessboard of the hyperspectral image to the transformation point (x', y') is achieved through the following perspective transformation:

[0039]

[0040] Where w' is the homogeneous coordinate, H is the perspective transformation homography matrix, and the perspective transformation homography matrix H is solved;

[0041] S43, the hyperspectral image after adjusting the spectral resolution is adjusted along the spectral dimension B by the following formula 1 Iterative transformation,

[0042]

[0043] Where f(·) represents the mapping relationship of the corner perspective transformation in S42, is the spectral dimension B 1 Hyperspectral two-dimensional image of is the spectral dimension B before transformation 1 -1 hyperspectral two-dimensional image, after the iterative registration is completed, the second hyperspectral image data pair is obtained;

[0044] S44, using the checkerboard corner points identified in S41 to divide the region of interest, cropping the second hyperspectral image data pair according to the region to obtain the image pair to be fused, and superimposing the image pair to be fused to obtain the final fused image.

[0045] In the hyperspectral image fusion method based on chessboard guidance of the present invention, specifically, in the sub-step S42, the RANSAC iterative algorithm is used to solve the perspective transformation matrix H, the chessboard corner points identified by S41 are used as matching points, all matching points are perspective transformed using the perspective transformation homography matrix H, and the Euclidean distance between the matching point and the transformed point is calculated as the matching distance to measure the deviation between the matching point after the perspective transformation and its theoretical position, and the matching distance between all matching points and the corresponding transformed points is iteratively calculated, and when the matching distance between the matching point and the corresponding transformed point is less than the set threshold, it is classified as a consistent point pair, and when the number of consistent point pairs exceeds the perspective transformation matrix H used, the iteration is stopped.

[0046] The present invention also discloses an image acquisition system, comprising a dual hyperspectral camera for photographing a moving loading platform, wherein the dual hyperspectral camera has a hyperspectral imaging system with different wavebands, a shooting area of ​​the loading platform is provided with a checkerboard background, and the hyperspectral images photographed by the hyperspectral imaging systems with different wavebands are fused by the hyperspectral image fusion method of the present invention.

[0047] In view of the differences in spatial and spectral resolution of hyperspectral images captured by hyperspectral cameras of different specifications, the present invention uses a checkerboard to perform spatial guidance registration and combines spectral interpolation technology to effectively integrate image data acquired by hyperspectral cameras of different specifications and generate hyperspectral images with uniform spatial and spectral resolution, which has the following beneficial effects:

[0048] (1) In view of the different spectral resolutions of different hyperspectral cameras, the present invention adopts a spectral data resampling algorithm to recalculate the new spectral resolution by interpolation and generates new wavelength intensity values, thereby achieving the unification of spectral resolutions of hyperspectral imaging systems in different bands and ensuring the authenticity and accuracy of subsequent image fusion.

[0049] (2) The present invention adopts a line scanning hyperspectral camera for shooting. Since the line scanning hyperspectral camera mainly scans the target scene through an array sensor and captures image data line by line, it has high requirements on the relative movement speed of the carrier platform and the exposure time of the hyperspectral camera. However, the hyperspectral cameras of different bands do not cooperate well with the carrier platform, resulting in serious deformation of the hyperspectral image. The present invention sets a checkerboard scene for the shooting area of ​​the carrier platform, adjusts the movement speed of the carrier platform in the visible light band and near-infrared band hyperspectral imaging system through the checkerboard image, and then adjusts the image spatial resolution to be uniform, thereby ensuring the spatial alignment of the fused image.

[0050] In summary, the hyperspectral image fusion method and image acquisition system based on checkerboard guidance provided by the present invention can effectively fuse hyperspectral data of different bands through precise spectral and spatial registration, thereby significantly improving the imaging effect after fusion, which not only improves the accuracy and fidelity of the fused image, but also enhances the adaptability and convenience of data processing, providing a solid foundation for the in-depth analysis of hyperspectral images. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the implementation of the present invention and its design scheme, the following is a brief introduction to the drawings required for this example.

[0052] Figure 1 It is a schematic diagram of the hyperspectral image acquisition system used in the present invention.

[0053] Figure 2 It is a flow chart of the hyperspectral image fusion method based on chessboard guidance disclosed in the present invention.

[0054] Figure 3 It is a visualization result diagram before and after the image spatial registration in the hyperspectral image fusion step S3 based on chessboard guidance in the embodiment.

[0055] Figure 4 This is a visualization result diagram of key point matching of near-infrared hyperspectral images in the hyperspectral image fusion step S4 based on checkerboard guidance in the embodiment.

[0056] Figure 5 This is a visualization result diagram before the fusion of the visible light band and near-infrared band hyperspectral images in the hyperspectral image fusion step S4 based on checkerboard guidance in the embodiment. DETAILED DESCRIPTION

[0057] Example

[0058] See also Figure 1 , the figure shows a hyperspectral image acquisition system that uses dual hyperspectral cameras to shoot a moving platform, specifically including a visible light band hyperspectral camera 1, a near-infrared band hyperspectral camera 2, a light source 3 and a platform 4. The platform 4 is attached with alternating black and white squares as a checkerboard background, such as a chessboard. The visible light band hyperspectral camera 1 and the near-infrared band hyperspectral camera 2 are arranged above the moving direction of the platform 4 to shoot the checkerboard scene of the platform 4. The light source 3 irradiates the checkerboard scene of the platform 4 to provide light sources for the visible light band hyperspectral camera 1 and the near-infrared band hyperspectral camera 2.

[0059] The visible light band hyperspectral camera 1 and the near infrared band hyperspectral camera 2 in this embodiment adopt line scanning hyperspectral cameras. After the light source 3 irradiates the checkerboard scene of the object platform 4, the reflected light waves therein are captured by the optical system of the visible light band hyperspectral camera 1 and spectrally separated by optical elements (such as prisms or diffraction gratings). The near infrared band hyperspectral camera 2 spectrally separates the near infrared band hyperspectral image through a dispersion prism. The object platform 4 moves from left to right. As the line scanning high-hanging spectral camera scans, the visible light band hyperspectral camera 1 captures each row of the checkerboard scene, thereby constructing a complete visible light hyperspectral image, and the near infrared band hyperspectral camera 2 constructs a near infrared hyperspectral image.

[0060] The above is a schematic diagram of the hardware structure of the hyperspectral image acquisition system in this embodiment, which uses the hyperspectral image fusion method based on chessboard guidance of the present invention to perform image acquisition. Figure 2 As shown, the specific steps include:

[0061] Step S1, use a visible light band hyperspectral camera 1 and a near-infrared band hyperspectral camera 2 to scan and shoot a mobile carrier platform 4 with a checkerboard scene, and establish an original hyperspectral image data pair including a visible light hyperspectral image and a near-infrared hyperspectral image, and all hyperspectral images have a checkerboard background.

[0062] Specifically, the visible light hyperspectral image constructed by the visible light hyperspectral camera 1 Among them, H 1 , W 1 represents the height and width of the visible light hyperspectral image, B 1 Represents the spectral channels of a visible light hyperspectral image.

[0063] Near-infrared hyperspectral image constructed using the Near-infrared Hyperspectral Camera 2 Among them, H 2 , W 2 represents the height and width of the near-infrared hyperspectral image, B 2 Represents the spectral channels of near-infrared hyperspectral images.

[0064] Step S2: After shooting with the dual hyperspectral cameras, we found that the spectral resolutions of the visible light band hyperspectral camera 1 and the near-infrared band hyperspectral camera 2 are different. The spectral resolution of the visible light band hyperspectral camera 1 is 1 nm, while the spectral resolution of the near-infrared band hyperspectral camera 2 is not uniform, and the spectral resolution is not 1 to 3 nm. For example, some bands B 2 (883.20, 884.90, 886.60, 888.30, etc.) In this embodiment, the near-infrared hyperspectral image is used as the hyperspectral image to be adjusted, and the near-infrared hyperspectral image is adjusted to be the same as the visible light hyperspectral image by spectral data resampling and interpolation calculation, so that the spectral resolution of the original hyperspectral image data pair is unified to 1 nm, the first hyperspectral image data pair is obtained, and the new wavelength intensity value of the hyperspectral image at the resolution is generated.

[0065] As the platform moves, the line scan hyperspectral camera continuously captures a series of line segments, which are then combined or "stitched" into a complete hyperspectral image. Therefore, each pixel contains not only spatial information but also spectral information of that point, that is, light intensity data at different wavelengths.

[0066] The step S2 specifically includes the following sub-steps:

[0067] S21. First, use the following Interp1d linear interpolation function to construct new data points of the hyperspectral image:

[0068]

[0069] Where a and b are the wavelengths of known data points in the hyperspectral image, f(a) and f(b) are the intensity values ​​corresponding to the known data points, x is the wavelength value of the new data point, and f(x) is the intensity value corresponding to the new data point.

[0070] S22, the pixels of the near-infrared hyperspectral image are calculated using the linear interpolation function of S21, where the intensity value of the wavelength is resampled every 1nm wavelength, and the spectral resolution of the constructed new data point image is adjusted to 1nm. Pixels in Perform interpolation calculation to obtain the wavelength of this pixel Its corresponding intensity value Resample the intensity values ​​of the wavelengths every 1 nm using the linear interpolation in step 2.1 to adjust the spectral resolution of the near-infrared hyperspectral image to 1 nm.

[0071] S23, using sub-step S22 to analyze the near-infrared hyperspectral image Traverse pixel by pixel to obtain the first near-infrared hyperspectral image after adjusting the spectral resolution

[0072] S24, in view of the low sensitivity of the edge band sensor of the hyperspectral camera and the weak band signal, the edge bands of the hyperspectral image can be cropped from the visible light hyperspectral image and the first near-infrared hyperspectral image after the spectral resolution is adjusted to optimize the data quality. In this embodiment, the visible light hyperspectral camera band is taken as The near-infrared hyperspectral camera band is A first hyperspectral image data pair after spectral resolution adjustment is obtained.

[0073] S3. Sort the corner points of the checkerboard background image in the first hyperspectral image data pair, unify the spatial resolution of the hyperspectral image data pair by adjusting the moving speed of the carrier platform of the hyperspectral imaging system in different bands, and obtain the second hyperspectral image data pair. Since the line scanning hyperspectral camera mainly scans the target scene through the array sensor and captures the image data line by line, the relative moving speed of the carrier platform and the exposure time of the hyperspectral camera are required to be coordinated with high requirements. However, the near-infrared band and visible light band hyperspectral cameras do not cooperate well with the carrier platform, resulting in serious deformation of the hyperspectral image. To this end, the moving speed of the carrier platform in the visible light band and near-infrared band hyperspectral imaging systems is adjusted through the checkerboard image, thereby adjusting the image spatial resolution.

[0074] The specific steps include the following:

[0075] S31, from the first hyperspectral image data pair with uniform spectral resolution, randomly select a band from the hyperspectral images of the hyperspectral imaging system with different bands to perform spatial resolution adjustment correction. and the first near-infrared hyperspectral image Take the 100th band for spatial correction respectively, that is, and

[0076] S32. Use the Harris corner detection algorithm to identify checkerboard corners in the hyperspectral image of the selected band, and use corner sorting to sort the identified checkerboard corners according to the actual layout of the checkerboard, because these corners are easier to identify due to the special structure of the black and white checkerboard. In hyperspectral images, the identified corners may not be completely accurate or the order may be chaotic due to the complexity and interference of the image. By correctly sorting the corners, it helps to verify whether the detected corners are organized according to the actual layout of the checkerboard (that is, the expected row and column structure), which can ensure the accuracy and reliability of subsequent processing (such as camera calibration or image registration).

[0077] First, an adaptive threshold algorithm is used to select the visible light hyperspectral image of the selected band and near-infrared hyperspectral images Convert it to a binary image, and then use the Harris corner detection algorithm to detect the corners of the black and white checkerboard in the binary image. The Harris corner response function is defined as:

[0078] R = det(M) - k(trace(M)) 2 ,

[0079] Wherein R is the value of the Harris corner response function, which is used to evaluate whether a pixel point in a binary image is regarded as a checkerboard corner point. k is an algorithm sensitivity parameter, which is used to adjust the influence of the trace. It is a constant, usually between 0.04 and 0.06. In this embodiment, it is taken as 0.05. M is the second-order matrix of the local window points of the binary image. det(M) is the determinant of the matrix M. trace(M) is the trace of the matrix M (i.e., the sum of the diagonal elements of the matrix).

[0080] In addition, the calculation formula of the second-order matrix M of the local window point of the binary image is:

[0081]

[0082] I x and I y is the first-order derivative of the binary image in the x and y directions, and w(x,y) is a Gaussian window function that gives higher weight to the central pixel.

[0083] Finally, the corner points are sorted according to the actual layout of the chessboard in the hyperspectral image using corner point sorting. The Euclidean distance between each chessboard corner point and other corner points is calculated using the following formula, and the corner points are grouped and sorted by rows and columns according to the Euclidean distance between the corner points:

[0084]

[0085] Among them, d(p i ,p j ) represents the corner point p i and corner point p j The Euclidean distance between i ,y i ) and (x j ,y j ) are the corner points p i and corner point p j The coordinates of

[0086] Select the upper left corner of the black and white chessboard as the starting corner point, determine the direction of the rows and columns of the black and white chessboard through the corner point closest to the starting corner point, determine the relative position of the corner point to the starting corner point based on the Euclidean distance, and divide the corner points into rows and columns. For the starting corner point, find the nearest few corner points, usually two, corresponding to the first row and first column of the chessboard), and use these corner points to determine the direction of the rows and columns. Row sorting: Within each row, sort the corner points according to their x-coordinate values ​​to ensure that the points are arranged from left to right. Column sorting: Within each column, sort the corner points according to their y-coordinate values ​​to ensure that the points are arranged from top to bottom.

[0087] S33, respectively calculate the visible light hyperspectral image and near-infrared hyperspectral images The length-to-width ratio of the chessboard squares is scale, L is the length of the chessboard, and W is the width of the chessboard. Since the line scan hyperspectral camera scans the target scene through a linear array sensor and captures image data line by line, the width y of the line scan hyperspectral image will not change. The moving speed of the loading platform is adjusted so that the length-to-width ratio of the chessboard squares in the hyperspectral images of the hyperspectral imaging systems of different bands is scale = 1, and the scale of the chessboard squares of the hyperspectral images of the visible light band and the hyperspectral images of the near-infrared band is adjusted to 1, so that the spatial resolution of the hyperspectral images of the hyperspectral imaging systems of different bands is unified, and the second hyperspectral image data pair is obtained, as shown in FIG. Figure 3 shown.

[0088] S4. The second hyperspectral image data pair after adjusting the spectral resolution and spatial resolution in the hyperspectral image data pair to be unified is matched and registered with the key corner points of its checkerboard background image, and the hyperspectral images of the hyperspectral imaging systems of different bands in the second hyperspectral image data pair are fused.

[0089] S41, selecting the second hyperspectral image data pair after the spectral resolution is adjusted to be unified, and using the Harris corner detection algorithm to identify the checkerboard corner points vis_corner and inf_corner in the respective hyperspectral image data.

[0090] S42. The mapping of any corner point (x, y) of the chessboard of the hyperspectral image to the transformation point (x', y') is achieved through the following perspective transformation:

[0091]

[0092] Where w' is a homogeneous coordinate, which allows the affine transformation to be combined into a single matrix multiplication operation, and H is the perspective transformation homography matrix.

[0093] The RANSAC iterative algorithm is used to solve the perspective transformation matrix H. The checkerboard corner points vis_corner and inf_corner identified by S41 are used as matching points. All matching points are transformed using the perspective transformation homography matrix H. The Euclidean distance between the matching point and the transformed point is calculated as the matching distance to measure the deviation between the matching point after perspective transformation and its theoretical position. The Euclidean distance d between the matching point (x, y) and the transformed point (x', y') is calculated by the following formula:

[0094]

[0095] The matching distance between all matching points and corresponding transformation points is iteratively calculated. When the matching distance between a matching point and a corresponding transformation point is less than the set threshold of 5.0, the matching point and the corresponding transformation point are considered to be a consistent point pair. When the number of consistent point pairs exceeds the perspective transformation matrix H used, the iteration is stopped.

[0096] S43, after solving the perspective transformation matrix H, the near-infrared hyperspectral image with adjusted spectral resolution is transformed along the spectral dimension B by the following formula: 1 Iterative transformation,

[0097]

[0098] Where f(·) represents the mapping relationship of the corner perspective transformation in S42, is the spectral dimension B 1 Hyperspectral two-dimensional image of is the hyperspectral image along the spectral dimension B to be adjusted before transformation 1 -1 hyperspectral two-dimensional image. After iterative registration is completed, the visible light hyperspectral image is obtained and the second near-infrared hyperspectral image The second hyperspectral image data pair is composed of Figure 4 shown.

[0099] S44, use the checkerboard corners vis_corner and inf_corner identified in S41 to divide the region of interest, and crop the visible light hyperspectral image according to this region and the second near-infrared hyperspectral image Get the images X' and Y to be fused N2 'Image, such as Figure 5 As shown, the superimposed images X' and Y N2 'The final fused image is obtained

[0100] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. Hyperspectral image fusion method based on chessboard guidance, Features The steps include: S1. Using dual hyperspectral cameras including hyperspectral imaging systems of different bands to shoot a mobile carrier platform with a checkerboard scene, establishing an original hyperspectral image data pair including hyperspectral images of different bands, and all hyperspectral images have a checkerboard background; S2, resampling the spectral data and unifying the spectral resolution of the original hyperspectral image data pair by interpolation calculation to obtain a first hyperspectral image data pair, and generating a new wavelength intensity value of the hyperspectral image at the unified spectral resolution; S3, sorting the corner points of the checkerboard background image in the first hyperspectral image data pair, unifying the spatial resolution of the first hyperspectral image data pair by adjusting the moving speed of the carrier platform of the hyperspectral imaging system of different bands, and obtaining a second hyperspectral image data pair; S4, matching and registering the key corner points of the checkerboard background image in the second hyperspectral image data pair, and fusing the hyperspectral images of hyperspectral imaging systems of different bands in the second hyperspectral image data pair according to the registration information.

2. The hyperspectral image fusion method based on checkerboard guidance according to claim 1, Features: The chessboard is black and white squares attached to the object-carrying platform and arranged alternately.

3. The hyperspectral image fusion method based on checkerboard guidance according to claim 1, Features: The dual hyperspectral camera comprises a visible light hyperspectral camera and a near-infrared hyperspectral camera, both of which are line scanning hyperspectral cameras.

4. The hyperspectral image fusion method based on checkerboard guidance according to claim 1, Features: The step S2 specifically includes the following sub-steps: S21. Select the following Interp1d linear interpolation function to construct new pixel data points of the hyperspectral image: Where a and b are the wavelengths of known pixel data points in the hyperspectral image, f(a) and f(b) are the intensity values ​​corresponding to the known pixel data points, x is the wavelength value of the new pixel data point, and f(x) is the intensity value corresponding to the new pixel data point; S22, according to sub-step S21, a linear interpolation function is calculated for the pixel data points of the hyperspectral image to be adjusted in the original hyperspectral image data to obtain new pixel data points, and the intensity values ​​of the wavelengths of the pixel data points of the hyperspectral image to be adjusted are resampled by adjusting the uniform spectral resolution as the interval wavelength, and the spectral resolution of the constructed new pixel data point image is adjusted to the same resolution; S23, traversing the hyperspectral image to be adjusted pixel by pixel using sub-step S22; S24, cropping edge bands of the hyperspectral image data pair after the spectral resolution is adjusted and unified, optimizing data quality, and obtaining a first hyperspectral image data pair after the spectral resolution is adjusted.

5. The hyperspectral image fusion method based on checkerboard guidance according to claim 1, Features: The step S3 specifically includes the following sub-steps: S31, from the first hyperspectral image data pair with uniform spectral resolution, randomly selecting a band from hyperspectral images of hyperspectral imaging systems of different bands to perform spatial resolution adjustment correction; S32, using the Harris corner detection algorithm to identify checkerboard corners in the hyperspectral image of the selected band, and using corner sorting to sort the identified checkerboard corners according to the actual layout of the checkerboard; S33, respectively calculating the length-width ratio scale of the checkerboard squares in the hyperspectral images of the hyperspectral imaging systems of different bands, L is the length of the chessboard, W is the width of the chessboard, and the moving speed of the loading platform is adjusted so that the length-to-width ratio of the chessboard squares in the hyperspectral images of the hyperspectral imaging systems of different bands is scale=1, so that the spatial resolution of the hyperspectral images of the hyperspectral imaging systems of different bands is unified, and the second hyperspectral image data pair is obtained.

6. The hyperspectral image fusion method based on checkerboard guidance according to claim 5, Features: In the sub-step S32, the process of identifying checkerboard corner points in the hyperspectral image is as follows: First, the hyperspectral image of the selected band of S31 is converted into a binary image using an adaptive threshold algorithm. Then, the Harris corner detection algorithm is used to detect the corners of the black and white checkerboard in the binary image. The Harris corner response function is defined as: R=det(M)-k(trace(M)) 2 , Where R is the Harris corner response function value, which is used to evaluate whether a pixel in a binary image is considered a checkerboard corner point, k is the algorithm sensitivity parameter, which ranges from 0.04 to 0.06, M is the second-order matrix of the local window points of the binary image, det(M) is the determinant of the matrix M, and trace(M) is the trace of the matrix M; The calculation formula of the second-order matrix M of the local window point of the binary image is: Among them, I x and I y is the first-order derivative of the binary image in the x and y directions, and w(x,y) is the Gaussian window function.

7. The hyperspectral image fusion method based on checkerboard guidance according to claim 1, Features: In the sub-step S32, the identified inner corner points are sorted as follows: The Euclidean distance between each corner point and other corner points is calculated by the following formula, and the corner points are grouped and sorted by rows and columns according to the Euclidean distance between the corner points: Among them, d(p i ,p j ) represents the corner point p i and corner point p j The Euclidean distance between i ,y i ) and (x j ,y j ) are the corner points p i and corner point p j The coordinates of Select the upper left corner of the black and white chessboard as the starting corner point, and determine the direction of the rows and columns of the black and white chessboard through the two corner points closest to the starting corner point. In each row, sort the corner points according to their x-coordinate values ​​to ensure that the corner points are arranged from left to right. In each column, sort the corner points according to their y-coordinate values ​​to ensure that the corner points are arranged from top to bottom.

8. The hyperspectral image fusion method based on checkerboard guidance according to claim 1, Features: The step S4 specifically includes the following sub-steps: S41, selecting a second hyperspectral image data pair after the spectral resolution and spatial resolution are adjusted to be unified, and using a Harris corner detection algorithm to identify checkerboard corners in the hyperspectral image data; S42. The mapping of any corner point (x, y) of the chessboard of the hyperspectral image to the transformation point (x', y') is achieved through the following perspective transformation: Where w' is the homogeneous coordinate, H is the perspective transformation homography matrix, and the perspective transformation homography matrix H is solved; S43, the hyperspectral image after adjusting the spectral resolution is adjusted along the spectral dimension B by the following formula 1 Iterative transformation, Where f(·) represents the mapping relationship of the corner perspective transformation in S42, is the spectral dimension B 1 Hyperspectral two-dimensional image of is the spectral dimension B before transformation 1 -1 hyperspectral two-dimensional image, after the iterative registration is completed, the second hyperspectral image data pair is obtained; S44, using the checkerboard corner points identified in S41 to divide the region of interest, cropping the second hyperspectral image data pair according to the region to obtain the image pair to be fused, and superimposing the image pair to be fused to obtain the final fused image.

9. The hyperspectral image fusion method based on chessboard guidance according to claim 8, Features: In the sub-step S42, the RANSAC iterative algorithm is used to solve the perspective transformation matrix H, and the checkerboard corner points identified in S41 are used as matching points. All matching points are perspective transformed using the perspective transformation homography matrix H. The Euclidean distance between the matching point and the transformed point is calculated as the matching distance to measure the deviation between the matching point after the perspective transformation and its theoretical position. The matching distance between all matching points and the corresponding transformed points is iteratively calculated. When the matching distance between the matching point and the corresponding transformed point is less than the set threshold, it is classified as a consistent point pair. When the number of consistent point pairs exceeds the perspective transformation matrix H used, the iteration is stopped.

10. An image acquisition system, Features: The invention comprises a dual hyperspectral camera for photographing a moving loading platform, wherein the dual hyperspectral camera has a hyperspectral imaging system with different wavebands, a photographing area of ​​the loading platform is provided with a checkerboard background, and hyperspectral images photographed by the hyperspectral imaging system with different wavebands are fused by the hyperspectral image fusion method described in any one of claims 1 to 9.

Citation Information

Cited By

  • Ultrahigh-gray-scale intelligent hyperspectral imaging method and device

    CN119595106A

  • Parameter closed-loop adaptive wide-spectrum hyperspectral online acquisition and fusion method and system

    CN122505829A

  • Waste textile hyperspectral online sorting method and device suitable for line scanning scene

    CN122538452A

  • Hyperspectral online sorting method and device for waste textiles suitable for line scanning scene

    CN122538452B