Large area data cube acquisition method based on microscopic hyperspectral imaging platform

By using the depth-first algorithm and the pushbroom acquisition method on the micro-hyperspectral imaging platform, the problems of micro-hyperspectral image stitching and efficient data collection are solved, and micro-hyperspectral images with a large field of view and a wide spectral range are achieved. Generated, providing high-quality support for medical diagnosis.

CN117911245BActive Publication Date: 2024-09-03EAST CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410219566.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-28
Publication Date
2024-09-03
Estimated Expiration
2044-02-28

AI Technical Summary

Technical Problem

In the field of microscopic hyperspectral imaging, it is difficult to effectively combine large-area microscopic hyperspectral images with existing technology. Especially at high magnifications, the image field of view is small and the edges are not obvious, resulting in incorrect matching by feature matching methods based on edge gradients, and The gaze-based collection method takes too long in multi-band situations and cannot meet the needs of efficient data collection.

Method used

The depth-first algorithm and pushbroom acquisition method based on the microscopic hyperspectral imaging platform are used to generate the acquisition task sequence, control the movement of the three-axis motorized stage, acquire the microscopic hyperspectral image, and use the offset matrix and feature point matching Perform image splicing to generate a large-area data cube.

Benefits of technology

It achieves efficient acquisition of microscopic hyperspectral image data, generates medical microscopic hyperspectral images with a large field of view and wide spectral range, improves the quality of image stitching and the accuracy of the conversion matrix, and supports medical diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117911245B
    Figure CN117911245B
Patent Text Reader

Abstract

The present invention discloses a large-area data cube acquisition method based on a microscopic hyperspectral imaging platform, including: selecting an image acquisition area and a blank image area; generating an acquisition task sequence based on the image acquisition area and the blank image area; performing data acquisition control on the microscopic hyperspectral imaging platform based on the acquisition task sequence to obtain a microscopic hyperspectral image; splicing the microscopic hyperspectral image based on a depth-first algorithm to generate a fused microscopic hyperspectral image; and generating a large-area data cube based on the fused microscopic hyperspectral image. The present invention utilizes the redundancy of spatial information of hyperspectral images and the position information when the image is taken to jointly improve the accuracy of the conversion matrix and the robustness of image splicing, effectively improve the quality of the spliced ​​image, and provide strong support for medical diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image stitching, and in particular relates to a large-area data cube acquisition method based on a microscopic hyperspectral imaging platform. Background Art

[0002] With the development of hyperspectral imaging technology, hyperspectral images are gradually playing an increasingly important role in many fields, from land exploration to medicine. Hyperspectral images are no longer limited to two-dimensional spatial morphological features, but by expanding the spectral information of the third dimension, a three-dimensional data cube of space and spectrum is generated. It has the characteristics of graph-spectrum integration, and can convey more information in a single image, providing a cornerstone for high-precision identification and classification of objects. However, in the medical field, doctors still use optical or electron microscopes to obtain single-point information on slides, which has the disadvantages of small field of view and narrow spectral range. Therefore, the demand for applying microscopic hyperspectral imaging technology in the medical field is becoming more and more urgent. Therefore, hyperspectral can assist pathological diagnosis due to its graph-spectrum integration characteristics, and has great potential application value.

[0003] In addition, in order to solve the problem of small field of view of a single image, many image stitching technologies have emerged in the field of images, which are mainly divided into feature point-based and region-based image matching and stitching methods, which require the image to have rich color information and texture information. However, in the field of microscopic hyperspectral images, especially in the case of high-magnification objective lenses, the images in the field of view are mostly partial tissues, which do not have complete texture information. In the case of high magnification, the edges of the tissues will also be magnified, resulting in unclear edges, so some feature matching methods based on edge gradients will also cause mismatches. And in microscopic hyperspectral imaging, how to select a wavelength as a reference image for feature matching is also a problem. The transmittance of different substances at different wavelengths is different. Therefore, how to effectively use the spectral dimension information of microscopic hyperspectral images to effectively stitch the images of each sub-region to form a large-area microscopic hyperspectral image for doctors to diagnose is an urgent problem to be solved.

[0004] At present, medical hyperspectral data acquisition systems (scanners) usually use the gaze-type acquisition method as a solution. The gaze type is also called "face scanning". This imaging method has the advantages of low cost, simple structure and convenient expansion. Its working principle is generally to filter according to the target band through a filter device (such as: Acousto-Optic Tunable Filter (AOTF), Liquid Crystal Tunable Filter (LCTF), etc.) and collect the data of the target band one by one. Since this imaging method requires a separate exposure for each target band, it is generally suitable for the study of data with a single wavelength or a small number of bands. When the number of bands continues to increase, reaching hundreds or even thousands, the time required for the gaze-type acquisition method will also increase proportionally and linearly, which is often unacceptable to researchers. Therefore, it is very important to choose a more efficient acquisition method. Summary of the invention

[0005] In order to solve the above technical problems, the present invention proposes a large-area data cube acquisition method based on a microscopic hyperspectral imaging platform to solve the problems existing in the above-mentioned prior art.

[0006] To achieve the above object, the present invention provides a large area data cube acquisition method based on a microscopic hyperspectral imaging platform, comprising:

[0007] Select the image acquisition area and the blank image area;

[0008] Generate an acquisition task sequence based on the image acquisition area and the blank image area;

[0009] Based on the acquisition task sequence, data acquisition control is performed on the microscopic hyperspectral imaging platform to obtain a microscopic hyperspectral image;

[0010] splicing the microscopic hyperspectral images based on a depth-first algorithm to generate a fused microscopic hyperspectral image;

[0011] A large area data cube is generated based on the fused microscopic hyperspectral image.

[0012] Preferably, the process of generating the acquisition task sequence includes:

[0013] Calculate the number of steps required to move horizontally and vertically and the coordinates of the acquisition points based on the sizes of the image acquisition area and the blank image area;

[0014] adding the coordinates of the acquisition points into a scanning sequence;

[0015] The shooting parameters of the microscopic hyperspectral imaging platform are acquired, and the acquisition task sequence is generated based on the scanning sequence and the shooting parameters.

[0016] Preferably, the process of obtaining a microscopic hyperspectral image comprises:

[0017] Acquire a current acquisition task based on the acquisition task sequence;

[0018] Control the three-axis electric stage to move to the collection point;

[0019] The microscopic hyperspectral imaging platform is controlled to collect data based on the current collection task to obtain the microscopic hyperspectral image.

[0020] Preferably, the process of splicing the microscopic hyperspectral images based on a depth-first algorithm to generate a fused microscopic hyperspectral image includes:

[0021] sorting the microscopic hyperspectral images to generate a corresponding naming matrix;

[0022] Acquire adjacent microscopic hyperspectral images and corresponding blank area hyperspectral images for preprocessing to obtain preprocessed images;

[0023] Calculating two adjacent grayscale images at the same wavelength of the preprocessed image to obtain an offset between the two images;

[0024] Calculating the offset of the two images to generate an offset matrix;

[0025] Performing deviation value filtering on the offset matrix to generate a final valid offset matrix;

[0026] The microscopic hyperspectral image is stitched band by band based on the final effective offset matrix to generate the fused microscopic hyperspectral image.

[0027] Preferably, adjacent microscopic hyperspectral images and corresponding blank area hyperspectral images are obtained for preprocessing, and the process of obtaining the preprocessed images includes:

[0028] Acquire a single microscopic hyperspectral image and a hyperspectral image of a blank area;

[0029] The single microscopic hyperspectral image is spectrally corrected and stripe noise is eliminated based on the hyperspectral image of the blank area to obtain the preprocessed image.

[0030] Preferably, the process of calculating the offset of the two images and generating an offset matrix includes:

[0031] Calculating feature points of the two images, matching the feature points based on a nearest neighbor algorithm, and generating feature point pairs;

[0032] A distance threshold is set, and feature points whose distance between the feature point pairs is less than the distance threshold are deleted to generate the offset matrix.

[0033] Preferably, the process of performing band-by-band image stitching on the microscopic hyperspectral image based on the final effective offset matrix to generate the fused microscopic hyperspectral image comprises:

[0034] Setting the state of the microscopic hyperspectral image to an unstitched state;

[0035] Input the microscopic hyperspectral image, judge the stitching state of the microscopic hyperspectral image, and if the image is not stitched, stitch the image at the corresponding position of the image to the left or above according to the average value of the full-slide offset vector to generate a stitched image;

[0036] Assume that the image has been spliced ​​or the coordinates of the adjacent image are out of range or the overlapping area with the current image is blank as the judgment condition;

[0037] If the four directional images of the stitched image meet the judgment condition, jump back to the search of the previous layer, set the stitched image to the position of the image previously searched to the current position, and output it;

[0038] If the four directional images of the stitched image do not meet the judgment condition, the image at this time is set as the entrance to the next layer of search, and the adjacent images are stitched onto the current image according to the corresponding offset vector, and then the image position is set to the coordinates of the adjacent image, and the judgment is made again until the current image is the last one in the row and column, thereby generating the fused microscopic hyperspectral image.

[0039] Preferably, the metadata of the microscopic hyperspectral image includes the resolution of the image, the combination form of the image data, the name of the image, the exposure time of the image, the objective lens magnification when the image was taken, the starting band image of the image, the ending band of the image, the number of bands of the image and the physical three-dimensional coordinates of the image.

[0040] Compared with the prior art, the present invention has the following advantages and technical effects:

[0041] The present invention provides an imaging platform that can efficiently obtain microscopic hyperspectral image data information and position information. This imaging platform collects multiple bands of spectral information for data of a slit width by means of dispersion. The push-broom type is also called the push-broom type. Since this acquisition method will collect data of a "line" (slit) within one exposure time, it is often called the "line scanning type". The structure of the push-broom acquisition system is slightly more complicated than the staring type, but its advantage is that it can obtain data of multiple bands within one exposure time, which is suitable for acquisition tasks with a large number of bands. And this platform can be used to generate medical microscopic hyperspectral images with a large field of view and a wide spectral range. And the present invention also proposes an image stitching method based on this platform. This method utilizes the redundancy of the spatial information of the hyperspectral image and the position information when the image is taken, and jointly improves the accuracy of the conversion matrix and the robustness of the image stitching, effectively improves the quality of the stitched image, and provides strong support for medical diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0043] Figure 1 The figure is a flow chart of a large-area data cube acquisition method based on a push-broom microscopic hyperspectral imaging platform according to an embodiment of the present invention.

[0044] Figure 2 It is a schematic diagram of the process of stitching method of push-broom microscope hyperspectral images according to an embodiment of the present invention.

[0045] Figure 3 The system block diagram of the push-broom microscope hyperspectral imaging platform according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0047] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0048] Embodiment 1

[0049] like Figure 1-2 As shown, this embodiment provides a large area data cube acquisition method based on a microscopic hyperspectral imaging platform, including:

[0050] The industrial control computer calculation system generates an acquisition task sequence according to the image acquisition area and the blank image area;

[0051] The microscopic hyperspectral imaging platform performs data acquisition according to an acquisition task sequence;

[0052] The industrial control computer calculation system sequentially splices the microscopic hyperspectral images;

[0053] The industrial control computer computing system generates a large area data cube.

[0054] To further optimize the solution, the process of generating the acquisition task sequence includes:

[0055] The industrial control computer calculation system calculates the number of steps required to move horizontally and vertically and the coordinates of all collection points according to the size of the area;

[0056] The industrial control computer calculation system adds the coordinate information of all the acquisition points to the scanning sequence in a column-first manner, and increases in the column direction in a column-first manner. After reaching the boundary, it moves one step in the row direction, then returns to the initial position in the column direction, reaches the boundary, and moves one step in the row direction. The above process is repeated until the row direction reaches the edge.

[0057] The industrial control computer calculation system obtains microscopic hyperspectral image shooting parameters and generates an acquisition task sequence in combination with a scanning sequence.

[0058] Further optimizing the scheme, the process of data acquisition by the microscopic hyperspectral imaging platform according to the task sequence includes:

[0059] The industrial control computer computing system obtains the current acquisition task from the task sequence;

[0060] The industrial control computer calculation system controls the three-axis electric stage to move to the collection point;

[0061] The industrial control computer computing system controls the hyperspectral camera to collect data.

[0062] Further optimizing the scheme, the process of sequentially stitching the microscopic hyperspectral images by the industrial control computer computing system includes:

[0063] The industrial control computer calculation system will sort the single hyperspectral image according to the collected hyperspectral data, generate a corresponding naming matrix, and know the position of the single hyperspectral image in the finally generated large image from the naming matrix;

[0064] The industrial control computer calculation system obtains two adjacent microscopic hyperspectral images and a corresponding blank area hyperspectral image, and performs Bill-Lambert preprocessing on the two microscopic hyperspectral images;

[0065] The industrial control computer calculation system extracts two adjacent grayscale images at the same wavelength of the two microscopic hyperspectral images and calculates the offset of the two images;

[0066] The industrial computer system calculates the offset between a picture and the picture on the left and the picture on the top respectively, and records them in an offset matrix;

[0067] The industrial computer system uses post-processing to filter out values ​​with large deviations in the offset matrix to generate a final valid offset matrix;

[0068] The industrial computer uses a depth search method to calculate the coordinates of the upper left corner position of each image according to the offset matrix calculated above, and stores them in a position matrix.

[0069] The industrial control computer calculation system performs band-by-band image splicing on a single microscopic hyperspectral image according to a position matrix to construct a fused microscopic hyperspectral image.

[0070] Finally, the fused microscopic hyperspectral image is filtered using a median filter to remove the salt and pepper noise generated by the hardware in the image.

[0071] Further optimizing the scheme, the process of preprocessing the two microscopic hyperspectral images by the industrial control computer computing system includes:

[0072] The industrial control computer calculation system acquires a single microscopic hyperspectral image and a hyperspectral image of a blank area;

[0073] The industrial control computer calculation system uses the hyperspectral image of the blank area to perform spectrum correction and eliminate stripe noise on a single microscopic hyperspectral image.

[0074] At the same time, due to the hardware offset during the acquisition process, the final stitched large image appears as a parallelogram. For the sake of display beauty, it is hoped that the final displayed image will be a rectangular image with white blank parts and no abruptness. When creating a large image, use a single blank image to fill the entire large image in columns.

[0075] Further optimizing the solution, the process of calculating the offset matrix of two images by the industrial control computer computing system includes:

[0076] Calculate the feature points of each of the two images, and use the nearest neighbor algorithm to match the feature points to generate feature point pairs. Set a reasonable threshold a, set the matching condition to set the distance between the two feature points to be less than a, and filter out feature points that do not meet the conditions.

[0077] To further optimize the scheme, the steps of the splicing algorithm are:

[0078] (1) Before stitching begins, set the status of all sub-images to unstitched, set the position of the first image (upper left corner) to (0,0), and then process the hyperspectral image in the named matrix in the order of rows first and columns later;

[0079] (2) Determine whether the image at position P is stitched. If so, execute step 4. Otherwise, stitch the image at position P to the corresponding position of the image to its left or above according to the average value of the full slide offset vector, set the image status to stitched, and start the depth search from the stitched position;

[0080] (3) Assume that the image has been spliced ​​or the coordinates of the adjacent image are out of range or the overlapping area with the current image is blank as condition A. Perform the following judgments and operations on the adjacent images in the four directions of the top, bottom, left, and right of the current image P in turn:

[0081] If the adjacent image meets condition A, skip the adjacent image directly. If the search and judgment of the four directional images are completed, jump back to the search of the previous layer, and set P to the position of the image that was previously searched to the current position, that is, the "entrance" of the depth search of this layer. If the search of all current depths has been skipped, execute step 4.

[0082] If the adjacent image does not meet condition A, the image at P is set as the "entrance" of the next layer search, and the adjacent image is spliced ​​onto the current image at P according to the corresponding offset vector, and P is set as the coordinate of the adjacent image, and step 3 is executed to enter the next layer search;

[0083] (4) Let P be (P x ,P y ). If the current image is the last image, go to step 5. Otherwise, if the current image is the last image in the row, set P to (P x +1,0). Otherwise, set P to (P x ,P y +1), go to step 2;

[0084] (5) Complete the stitching of the whole slide image.

[0085] Further optimizing the scheme, the hyperspectral image metadata includes the image resolution, the combination form of the image data, the image name, the exposure time of the image, the objective lens magnification when the image was taken, the image starting band image, the image ending band, the image band number and the physical three-dimensional coordinates of the image;

[0086] The image data has three combinations: BIL, BIP and BSQ;

[0087] The physical three-dimensional coordinates of the image are provided by a three-axis electric stage, and the zero point of the image position coincides with the zero point of the three-axis electric stage.

[0088] The storage characteristics of the further optimized solution are:

[0089] It is extremely normal for the final generated fused hyperspectral image file to occupy tens or even hundreds of GB. Normal computer memory can hardly meet this requirement, so we rewrite the storage function. When we have assembled several bands, we will write the data into the final file to ensure the normal reading and writing of data.

[0090] The further optimized solution has the following reading and writing characteristics:

[0091] The method of reading and writing data of each band in batches is adopted, and the data is saved in combination with buffer stream;

[0092] The method of reading and writing each band data in batches will divide the hyperspectral full-slide big data into several batches according to the bands, and write the data of each batch to the hard disk in multiple times, reducing the memory usage of data at the cost of increasing the number of IO times;

[0093] After completing the saving operation of a certain band, the system garbage collection method is called to promptly clean up the data in the memory that is no longer used. Although this method fundamentally solves the memory overflow problem caused by excessive hyperspectral full-slide data, it also increases the number of IO times, resulting in a decrease in data storage efficiency. The buffered stream is different from the traditional IO stream that reads or writes one byte at a time. It uses an internal buffer to cache data. The data is read or written only when the buffer is full, thereby reducing the actual IO times and improving the read and write efficiency;

[0094] Embodiment 2

[0095] This embodiment provides a large area data cube acquisition method based on a microscopic hyperspectral imaging platform, including:

[0096] like Figure 3As shown, in this embodiment, the microscopic hyperspectral imaging platform is integrally provided with an optical biological microscope, a color camera, a hyperspectral camera, a precision three-axis electric stage, a control computer, a dual-light path beam splitter, an integrated controller, and an objective lens. The optical biological microscope includes a precision three-axis electric stage and an objective lens. The function of the precision three-axis electric stage is that it can be controlled by a computer to move and record the position. The function of the dual-light path beam splitter is to select whether the light of the optical microscope is transmitted to the grayscale camera or the color camera. The function of the industrial control computer is to provide computing power support and storage support for the image stitching method in addition to controlling the hardware.

[0097] The specific steps of this embodiment are:

[0098] 101: The microscopic hyperspectral imaging platform provides a software interface through which operators can select the image area to be collected and the corresponding blank image area.

[0099] 102: Generate a collection task sequence.

[0100] The industrial control computer in the microscopic hyperspectral imaging platform generates a scanning sequence according to the selected image area, and generates two blank image acquisition points according to the selected blank area.

[0101] 1021: Calculate the number of steps required to move horizontally and vertically and all the acquisition points.

[0102] The two adjacent images taken should have a certain overlapping area, which generally does not exceed 1 / 3 of the entire image. According to this standard, the single step length of the horizontal and vertical movement of the three-axis motorized stage can be calculated in advance. The industrial control computer calculation system can calculate the number of steps required for horizontal and vertical movement and all acquisition points.

[0103] 1022: The industrial control computer generates the scan sequence in a column-first manner.

[0104] The industrial control computer generates a scanning sequence for all acquisition points in the image area in a column-first manner, and adds two acquisition points in the blank area to the end of the scanning sequence.

[0105] The column-first scanning method refers to:

[0106] 1. Scan the points in the current column in the positive direction;

[0107] 2. Move a single step in the row direction after reaching the edge;

[0108] 3. Scan the points of the current column in the reverse direction;

[0109] 4. Move a single step in the row direction after reaching the edge;

[0110] 5. Go back to step 1 until it works.

[0111] 1023: Generate a collection task sequence.

[0112] The industrial control computer obtains the shooting parameters of the microscopic hyperspectral image and generates an acquisition task sequence in combination with the scanning sequence.

[0113] 103: Microscopic hyperspectral imaging platform for collection.

[0114] 1031: Get the current collection task.

[0115] The industrial control computer obtains the current acquisition task from the acquisition task sequence and sets the acquisition parameters according to the task description.

[0116] 1032: The three-axis motorized stage moves to the collection point.

[0117] The industrial control computer controls the three-axis electric stage to move to the collection point according to the description of the current collection task.

[0118] 1033: Hyperspectral camera performs data collection.

[0119] When the stage moves, the industrial control computer controls the hyperspectral camera to collect data according to the set parameters.

[0120] 104: Stitching microscopic hyperspectral images.

[0121] When all data are collected, the industrial control computer system will stitch the microscopic hyperspectral images.

[0122] 105: Generate a large area data cube.

[0123] When the microscopic hyperspectral images are stitched together, the industrial control computer computing system generates metadata information of the large-area hyperspectral image based on the metadata information of each sub-image, and integrates the image data information to generate the data cube.

[0124] 201: Preprocessing of Microscopic Hyperspectral Images.

[0125] Microscopic hyperspectral images may not be good due to the influence of some lighting and dust when they are taken, so some preprocessing is required. Therefore, when acquiring the image area, the blank area image is also acquired for preprocessing.

[0126] 2011: Acquisition of images to be processed.

[0127] The industrial control computer calculation system obtains a microscopic hyperspectral image and a hyperspectral image of a blank area.

[0128] 2012: Preprocessing process.

[0129] The industrial control computer calculation system divides the microscopic hyperspectral image and the blank area hyperspectral image band by band to eliminate the influence of light source and dust. The industrial control computer calculation system performs spectral correction and strip noise elimination on the two microscopic hyperspectral images respectively to ensure the cleanliness of the image and the stability of image splicing.

[0130] 202: Extract corresponding image pairs from two hyperspectral images Calculate the offset matrix M ref1 , M ref2 ;

[0131] 2021: Industrial control computer computing system extracts the same band B from two hyperspectral images ref The two grayscale images below;

[0132] 2022: The industrial control computer computing system calculates the offset matrix for the two grayscale images.

[0133] 2023: Industrial control computer calculation system post-processes the offset rectangle to remove the problematic offset

[0134] 203: Use deep search to get the position matrix L ref1 , L ref2

[0135] 204: Stitching Hyperspectral Images

[0136] 301: Filter offset

[0137] 3011: The industrial control computer computing system uses the accelerated robust feature method (SURF, Speeded Up Robust Features) to calculate feature points according to the set threshold;

[0138] 3012: The industrial control computer computing system uses the nearest neighbor algorithm to calculate similar feature points in two images, retaining feature points with a distance difference within 0.4.

[0139] 302: Feature point pair matching.

[0140] The rematching process is to use the industrial control computer calculation system to recalculate the feature points of the two images and the matching feature point pairs, take the average value of the feature point pairs and store them in the offset matrix, and provide the required feature point pair information for the subsequent generation of the offset matrix.

[0141] 303: Calculate the transformation matrix

[0142] If there is no feature point pair that meets the requirements, the offset is set to 0 and stored in the offset matrix.

[0143] Embodiment 3

[0144] This embodiment provides a large area data cube acquisition method based on a microscopic hyperspectral imaging platform, including:

[0145] Select the image acquisition area and the blank image area;

[0146] Generate an acquisition task sequence based on the image acquisition area and the blank image area;

[0147] Based on the acquisition task sequence, data acquisition control is performed on the microscopic hyperspectral imaging platform to obtain a microscopic hyperspectral image;

[0148] splicing the microscopic hyperspectral images based on a depth-first algorithm to generate a fused microscopic hyperspectral image;

[0149] A large area data cube is generated based on the fused microscopic hyperspectral image.

[0150] The process of generating an acquisition task sequence includes: the industrial control computer computing system calculates the number of steps required to move in the horizontal and vertical directions and the coordinates of all acquisition points according to the size of the area; the industrial control computer computing system adds the coordinate information of all acquisition points to the scanning sequence in a column-first manner; the column-first manner means first increasing in the column direction, stepping one step in the row direction after reaching the boundary, then moving to point 0 in the column direction, then increasing in the column direction, stepping one step in the row direction after reaching the boundary, and repeating the above process until the row direction reaches the edge; the industrial control computer computing system obtains the microscopic hyperspectral image shooting parameters, and generates an acquisition task sequence in combination with the scanning sequence.

[0151] The process of the microscopic hyperspectral imaging platform collecting data according to the task sequence includes: the industrial control computer computing system obtains the current collection task from the task sequence; the industrial control computer computing system controls the three-axis electric stage to move to the collection point; the industrial control computer computing system controls the hyperspectral camera to collect data.

[0152] The process of sequentially splicing the microscopic hyperspectral images by the industrial control computer computing system includes: the industrial control computer computing system obtains two adjacent microscopic hyperspectral images and a corresponding blank area hyperspectral image, and pre-processes the two microscopic hyperspectral images; the industrial control computer computing system extracts two grayscale images at the same wavelength of the two microscopic hyperspectral images, and calculates the offset matrix of the two images;

[0153] The industrial control computer computing system extracts grayscale images of the same band from the collected microscopic hyperspectral images, calculates the offset of each image respectively, and generates a set of auxiliary offset matrix groups; the computer uses Euclidean distance to eliminate offsets with large deviations, so as to filter out values ​​with large deviations in the auxiliary conversion matrix group and generate a set of effective auxiliary conversion matrix groups; the industrial control computer computing system uses a deep search method to generate a final position matrix; the computer performs band-by-band image splicing on two microscopic hyperspectral images to construct a fused microscopic hyperspectral image.

[0154] The process of calculating the conversion matrix of the two images by the industrial control computer computing system includes: calculating the feature points of each of the two images, matching the feature points using the nearest neighbor algorithm, generating feature point pairs, and saving the feature point distance deviation less than a. Then, the offsets of the saved feature points are averaged and stored in the offset matrix. If there is no feature point, the offset is set to 0 and stored in the offset matrix.

[0155] The process of the industrial control computer computing system using a depth search method to calculate the upper left corner position of a single small image includes:

[0156] By using the offset matrix, we start processing from the upper left corner of the named matrix. When we find that the position of the graphic directly above the processed hyperspectral image is fixed and there is an offset with the processed hyperspectral image, we can calculate the upper left corner position of the processed hyperspectral image. If it does not meet the conditions, we check the offset with the hyperspectral image on the left. If it still does not meet the conditions, we use the default offset to calculate the offset with the upper or left image, and then get the upper left corner position coordinates. Finally, we get the upper left corner coordinates of all hyperspectral images in the order of rows first and columns later.

[0157] The preprocessing performed by the industrial control computer computing system before stitching includes: the industrial control computer computing system uses the hyperspectral image of the blank area to correct the spectrum of the two microscopic hyperspectral images, and because the hardware will be offset during the push-scan process, the stitched large image is roughly a parallelogram. The final displayed image is a square, and the position without the image is black. In order to maintain a more realistic visual effect, when creating the large image, a single blank image is used to cover the entire large image.

[0158] The hyperspectral image metadata includes: image resolution, combination form of image data, image name, image exposure time, objective lens magnification when the image is taken, image starting band image, image ending band, image band number and image physical three-dimensional coordinates; the image data combination forms include BIL, BIP and BSQ; the physical three-dimensional coordinates of the image are provided by a three-axis electric stage, and the zero point of the image position coincides with the zero point of the three-axis electric stage.

[0159] The physical three-dimensional coordinates of the image are used to generate a linear displacement matrix based on position. The method of calculating the linear displacement matrix is: first-order difference is made between the physical three-dimensional coordinates of the two images to obtain differential coordinate information; by magnifying the difference coordinate information at a fixed ratio, the differential coordinate information is mapped to the coordinate system of the image pixels to generate a linear displacement matrix based on position.

[0160] The technical effects of this embodiment are:

[0161] This embodiment aims at the shortcomings of small field of view and narrow spectrum brought by traditional optical microscope diagnosis methods, and proposes a large-area data cube acquisition method based on a microscopic hyperspectral imaging platform. This embodiment provides an imaging platform that can efficiently obtain microscopic hyperspectral image data information and position information, and this platform can be used to generate medical microscopic hyperspectral images with a large field of view and a wide spectral range. In addition, this embodiment also proposes an image stitching method based on this platform. This method uses the redundancy of spatial information of hyperspectral images and the position information when the image is taken to jointly improve the accuracy of the conversion matrix and the robustness of image stitching, effectively improve the quality of the stitched image, and provide strong support for medical diagnosis.

[0162] The post-processing performed by the industrial control computer computing system before splicing includes using median filtering to process the spliced ​​large image, and eliminating image fusion aims to reduce or eliminate the splicing traces (such as splicing seams, ghosting, etc.) caused by factors such as brightness differences and offset errors during the image registration process. A successful image fusion strategy can greatly improve the quality of the image and make the information in the image more accurate. Commonly used image fusion methods include fusion based on pixel weights at the splicing point, fusion based on minimizing differences at the splicing point, and fusion based on frequency domain features. The splicing between images acquired under different conditions requires the selection of a suitable fusion strategy based on environmental differences to achieve a balance between the quality of the fused image and the time consumed.

[0163] This embodiment aims at the shortcomings of small field of view and narrow spectrum brought by traditional optical microscope diagnosis method, and proposes a large area data cube acquisition method based on microscopic hyperspectral imaging platform. This embodiment provides a set of imaging platforms that can efficiently obtain microscopic hyperspectral image data information and position information. This imaging platform collects multiple bands of spectral information for data of a slit width by dispersion. The push-broom type is also called the push-broom type. Since this acquisition method will collect data of a "line" (slit) within one exposure time, it is often called the "line scanning type". The structure of the push-broom acquisition system is slightly more complicated than the staring type, but the advantage is that data of multiple bands can be obtained within one exposure time, which is suitable for acquisition tasks with a large number of bands. And this platform can be used to generate medical microscopic hyperspectral images with a large field of view and a wide spectral range. And this embodiment also proposes an image stitching method based on this platform. This method uses the redundancy of hyperspectral images in spatial information and the position information when the image is taken to jointly improve the accuracy of the conversion matrix and the robustness of image stitching, effectively improve the quality of the stitched image, and provide strong support for medical diagnosis.

[0164] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A large area data cube acquisition method based on a microscopic hyperspectral imaging platform, It is characterized in that The following steps are involved: Select the image acquisition area and the blank image area; Generate an acquisition task sequence based on the image acquisition area and the blank image area; Based on the acquisition task sequence, data acquisition control is performed on the microscopic hyperspectral imaging platform to obtain a microscopic hyperspectral image; splicing the microscopic hyperspectral images based on a depth-first algorithm to generate a fused microscopic hyperspectral image; generating a large area data cube based on the fused microscopic hyperspectral image; The process of generating the acquisition task sequence includes: Calculate the number of steps required to move horizontally and vertically and the coordinates of the acquisition points based on the sizes of the image acquisition area and the blank image area; adding the coordinates of the acquisition points into a scanning sequence; Acquiring shooting parameters of a microscopic hyperspectral imaging platform, and generating the acquisition task sequence based on the scanning sequence and the shooting parameters; The process of obtaining a microscopic hyperspectral image comprises: Acquire a current acquisition task based on the acquisition task sequence; Control the three-axis electric stage to move to the collection point; Based on the current acquisition task, the microscopic hyperspectral imaging platform is controlled to perform data acquisition to obtain the microscopic hyperspectral image; The process of stitching the microscopic hyperspectral images based on the depth-first algorithm to generate a fused microscopic hyperspectral image includes: sorting the microscopic hyperspectral images to generate a corresponding naming matrix; Acquire adjacent microscopic hyperspectral images and corresponding blank area hyperspectral images for preprocessing to obtain preprocessed images; Calculating three adjacent grayscale images at the same wavelength of the preprocessed image to obtain an offset between the two images; Calculating the offset of the two images to generate an offset matrix; Performing deviation value filtering on the offset matrix to generate a final valid offset matrix; Based on the final effective offset matrix, the microscopic hyperspectral image is stitched band by band to generate the fused microscopic hyperspectral image; The metadata of the microscopic hyperspectral image includes the resolution of the image, the combination form of the image data, the name of the image, the exposure time of the image, the objective lens magnification when the image was taken, the starting band image of the image, the ending band of the image, the number of bands of the image and the physical three-dimensional coordinates of the image.

2. The large-area data cube acquisition method based on the microscopic hyperspectral imaging platform according to claim 1, It is characterized in that The adjacent microscopic hyperspectral images and the corresponding blank area hyperspectral images are obtained for preprocessing. The process of obtaining the preprocessed images includes: Acquire a single microscopic hyperspectral image and a hyperspectral image of a blank area; The single microscopic hyperspectral image is spectrally corrected and stripe noise is eliminated based on the hyperspectral image of the blank area to obtain the preprocessed image.

3. The large-area data cube acquisition method based on the microscopic hyperspectral imaging platform according to claim 1, It is characterized in that The process of calculating the offset of the two images and generating an offset matrix includes: Calculating feature points of the two images, matching the feature points based on a nearest neighbor algorithm, and generating feature point pairs; A distance threshold is set, and feature points whose distance between the feature point pairs is less than the distance threshold are deleted to generate the offset matrix.