Inclined scanning image fusion method

Through the oblique scanning image fusion method, fast pre-scanning, grid processing and image stitching technology are used to solve the problem that the focal plane cannot be adjusted independently in the linked scanning equipment, and achieve high-quality three-dimensional scanning image generation, which is suitable for various applications. Scan conditions and sample types.

CN118537237APending Publication Date: 2024-08-23WUHAN LANDING INTELLIGENCE MEDICAL CO LTD

Patent Information

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

AI Technical Summary

Technical Problem

In high-integrated scanning equipment, due to cost considerations, multiple scanners share a vertical or horizontal movement mechanism, which makes it impossible to adjust the height of the scanning mirror independently and cannot adapt to the tilt of the focal plane, affecting the quality and consistency of scanned images.

Method used

Adopting an oblique scan image fusion method, through automated steps such as fast pre-scanning, gridding, focus point selection, image scanning, evaluation and stitching, ensuring high-quality scanned images when the focus plane cannot be adjusted individually, including the identification of blank meshes Grid cells, select focus points, map logical coordinates to physical coordinates, select the clearest image, stitch panoramic images and refine seams.

Benefits of technology

It achieves efficient and accurate 3D scanning in an environment with limited costs and high equipment integration, ensuring the comprehensiveness, uniformity and image quality of the scan. It is suitable for various scanning conditions and sample types, and is highly adaptable and robust. Great sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537237A
    Figure CN118537237A
Patent Text Reader

Abstract

The invention provides an oblique scanning image fusion method, which comprises the following key steps of: firstly, carrying out rapid pre-scanning to obtain an image of a whole slide, and segmenting the image into a plurality of grid units; then, blank grid units are identified, and logic position information of the blank grid units is recorded; then focus points are selected in each non-blank grid unit, and logic coordinates of the focus points are mapped into physical coordinates for accurate scanning; selecting the clearest image from the images obtained from each focus point; replacing the unscanned blank grid units with the pre-scanned image; and finally, splicing all the clear images into a complete panoramic image according to the logic coordinates of the grid units, and further improving the quality of the panoramic image by refining joints and applying an image enhancement algorithm. In addition, according to the method, the image edges of the grid units are subjected to feature extraction and fusion, seams are smoothed, and the readability and diagnostic value of the image can be remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional scanning technology, and in particular to a method for fusion of oblique scanning images. Background Art

[0002] In the field of 3D scanning, stand-alone scanners are usually equipped with three independent linear drive axes, so that the position of the scanning mirror can be freely adjusted to meet the needs of different samples. This design allows precise control of the scanning mirror, including pre-detecting the slope when facing a tilted slide and adjusting the focal plane accordingly to ensure the clarity and accuracy of the image. Specifically, the conventional practice is to adjust the focal plane to the same tilt as the slide to ensure parallelism and compensate for errors in the depth direction.

[0003] However, in integrated high-rise scanning cabinets or scanning towers, due to cost considerations, multiple scanners often share the same vertical or horizontal movement mechanism. This linkage scanning device limits the ability to independently adjust the height of a single scanning mirror, making it impossible to correct the focal plane for each or certain specific slides. This results in the traditional scanning method not being able to provide enough flexibility to adapt to the tilt of the focal plane when the slide is tilted, which in turn affects the quality and consistency of the scanned image.

[0004] To solve this problem, the present invention proposes an innovative image fusion method, which is particularly suitable for the above-mentioned linked scanning equipment. The method ensures that high-quality scanned images can be obtained even when the focal plane cannot be adjusted individually through a series of automated steps, including image preprocessing, gridding, tilt detection, focus point selection, image scanning, evaluation and stitching. In this way, efficient and accurate 3D scanning can be achieved even in cost-constrained and highly integrated equipment environments. Summary of the invention

[0005] The purpose of the present invention is to solve the technical problems in the above background, and provide a method for fusion of oblique scanning images, comprising the following steps:

[0006] S1, quickly pre-scan the entire slide scanning area to obtain a pre-scan image;

[0007] S2, segmenting the pre-scanned image to divide the scanned area into a plurality of grid units;

[0008] S3, identifying blank grid cells and recording their logical position information;

[0009] S4, selecting a number of focus points, each focus point corresponding to a grid unit;

[0010] S5, mapping the logical coordinates of the focus point to the physical coordinates, and performing focusing and scanning;

[0011] S6, selecting the clearest image from the scanning results of each focus point;

[0012] S7, using the pre-scanned image to replace the unscanned blank grid cells;

[0013] S8, stitching all clear images into a complete panoramic image according to the logical coordinates of the grid cells;

[0014] S9. Refine the seams in the panoramic image and apply a global or local image enhancement algorithm to further improve the quality of the panoramic image.

[0015] In a preferred solution, it is characterized in that in step S2, the step of dividing the scanning area into grid units further includes:

[0016] S21, assigning logical location information to each grid unit;

[0017] S22. The logical position information is used for subsequent focus point selection and image stitching.

[0018] In a preferred solution, it is characterized in that in step S3, the step of identifying blank grid cells includes:

[0019] S31, analyzing brightness or texture features of the pre-scanned image;

[0020] S32. Determine and record the logical position information of the blank grid cells so as to skip these areas during focus scanning.

[0021] In a preferred solution, it is characterized in that in step S5, the step of mapping the logical coordinates of the focus point to the physical coordinates includes:

[0022] S51, using a mapping function to convert the logical coordinates into physical coordinates;

[0023] S52. Control the movement of the scanner lens according to the physical coordinates.

[0024] In a preferred solution, it is characterized in that in step S6, the step of selecting the clearest image includes:

[0025] S61. Apply image clarity assessment algorithm;

[0026] S62. Select the clearest image corresponding to each focus point according to the algorithm result.

[0027] In a preferred solution, it is characterized in that in step S7, the step of replacing the blank grid cells with the pre-scanned image comprises:

[0028] S71, cropping and scaling the corresponding area of ​​the pre-scanned image;

[0029] S72: Using the cropped and scaled images for stitching panoramic images.

[0030] In a preferred solution, in step S8, the step of stitching the panoramic image includes:

[0031] S81, determining the position of each clear image in the panoramic image according to the logical coordinates of the grid unit;

[0032] S82: register and fuse the images to form a seamless panoramic image.

[0033] In a preferred solution, in step S8, the step of stitching the panoramic image further includes:

[0034] S83, determining the position of each grid unit in the panoramic image according to the logical coordinates of the grid unit;

[0035] S84, extracting features from the image edge of each grid unit, such as edge detection or feature point recognition;

[0036] S85, using feature matching technology to determine the best alignment point in the overlapping area of ​​adjacent grid cells;

[0037] S86. Apply image fusion techniques, such as feature-based image fusion or deep learning-based image fusion, to smooth seams between adjacent grid cells.

[0038] S87. Adjust the consistency of the hue and brightness of the fused image to ensure the naturalness and uniformity of the panoramic image.

[0039] In a preferred solution, the image fusion technology used in step S86 further includes:

[0040] S861, Feature-based image fusion, by finding common features in overlapping areas and performing spatial transformation to achieve smooth transition;

[0041] S862, Image fusion based on deep learning, using a well-trained neural network model to fuse overlapping areas at the pixel level.

[0042] In a preferred solution, step S9 further includes:

[0043] S91, use image pyramid technology to gradually refine each level of the image to achieve a smoother stitching effect;

[0044] S92. Use image segmentation technology to identify and optimize specific areas in panoramic images, such as cell or tissue boundaries.

[0045] The beneficial effects of the present invention are:

[0046] 1) Select the focus point corresponding to each grid cell to ensure the comprehensiveness and uniformity of the scan.

[0047] 2) Apply an image clarity assessment algorithm to ensure that the clearest image is selected from the scan results at each focus point.

[0048] 3) Using pre-scanned images instead of blank grid cells simplifies the scanning process and ensures the integrity of the panoramic image. It avoids invalid scanning of blank areas, saves time and computing resources, and improves scanning efficiency.

[0049] 4) The quality of panoramic images is further improved by thinning seams and applying image enhancement algorithms, ensuring image clarity and consistency.

[0050] 5) Feature-based image fusion and deep learning-based image fusion techniques are used to achieve higher quality image fusion.

[0051] 6) Use image pyramid technology and image segmentation technology to carefully optimize panoramic images, thereby improving the visual effects and analytical value of the images.

[0052] 7) This method is applicable to various scanning conditions and sample types, especially for scanning conditions with tilted angles, and has high adaptability and robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a partial scan of a glass slide obtained after splicing using the method of the present invention;

[0054] Figure 2 It is a local scan of the glass slide after the spliced ​​image is smoothed by the method of the present invention;

[0055] Figure 3 It is a structural diagram of a linkage scanning device in the background technology. DETAILED DESCRIPTION

[0056] Example 1

[0057] This embodiment aims at the problem that the linked scanning device mentioned in the background technology has a tilt between the plane where the glass slide is located and the plane of the scanning mirror, which causes the scanned image to be distorted. A tilted scanning image fusion method is provided to solve the problem of image capture caused by the tilt of the glass slide:

[0058] 1. Pre-scan:

[0059] Perform a quick pre-scan of the entire slide scanning area to obtain a pre-scan image to provide basic data for subsequent steps.

[0060] 2. Grid unit division:

[0061] The pre-scanned image is divided into a plurality of grid units, and logical position information is assigned to each grid unit (S21, laying the foundation for automated processing).

[0062] 3. Blank grid cell identification:

[0063] By analyzing the brightness or texture features of the pre-scanned image, the logical position information of the blank grid cells is identified and recorded.

[0064] 4. Focus point selection:

[0065] Focus points were selected in each non-blank grid cell, ensuring that the entire scan area was covered.

[0066] 5. Coordinate mapping and scanning:

[0067] The logical coordinates of the focus point are mapped to physical coordinates, and the scanner lens is controlled to move to the corresponding position for focusing and scanning.

[0068] 6. Image clarity assessment:

[0069] An image clarity evaluation algorithm is applied to select the sharpest image from the scan results for each focus point.

[0070] 7. Blank area processing:

[0071] Pre-scanned images were used instead of blank grid cells to ensure the integrity of the panoramic image.

[0072] 8. Panoramic image stitching:

[0073] According to the logical coordinates of the grid cells, the position of each grid cell in the panoramic image is determined.

[0074] Features are extracted from the image edges of each grid cell, and the best alignment point is determined using feature matching technology in the overlapping area of ​​adjacent grid cells.

[0075] Image fusion techniques, including feature-based image fusion and deep learning-based image fusion, are applied to smooth the seams of adjacent grid cells.

[0076] Adjust the hue and brightness of the fused image to ensure the naturalness and uniformity of the panoramic image.

[0077] 9. Image post-processing:

[0078] Use image pyramid technology to gradually refine each level of the image to achieve smoother stitching effects.

[0079] Use image segmentation techniques to identify and optimize specific regions in panoramic images, such as cell or tissue boundaries.

[0080] The method in the above embodiment realizes the generation of seamless panoramic images, which significantly improves the readability and diagnostic value of the images.

[0081] Example 2

[0082] An image fusion method for scanning glass slides and generating seamless panoramic images is particularly suitable for dealing with image stitching problems caused by glass slide tilt or equipment limitations. The specific steps are as follows:

[0083] 1. Pre-scan and equipment calibration:

[0084] The entire slide was quickly pre-scanned to obtain the initial image, and the equipment was calibrated, and the average offset value of each field of view with the adjacent fields of view was recorded.

[0085] 2. Image segmentation and grid unit division:

[0086] The pre-scanned image is divided into grid cells, and logical position information is assigned to each grid cell.

[0087] 3. Blank grid cell identification:

[0088] Image analysis technology is used to identify blank grid cells and record their logical position information.

[0089] 4. Focus point selection and global coordinate mapping:

[0090] Focus points are selected in each non-blank grid cell and the logical coordinates of these focus points are mapped to physical coordinates.

[0091] 5. Image scanning and feature extraction:

[0092] The electric XYZ platform and industrial camera are used to scan each focus point, acquire images, and extract image features.

[0093] 6. Global coordinate calculation and field of view matching:

[0094] Based on the average offset value and image features obtained during the device calibration phase, the global coordinates of each field of view are calculated and template matching is performed.

[0095] 7. Fusion Queue Management:

[0096] The field of view images that need to be fused are added to the fusion queue and intelligently managed to ensure the correctness and efficiency of the fusion order.

[0097] 8. Image fusion processing:

[0098] The images in the fusion queue are fused and the seams are smoothed using feature matching technology and image fusion algorithms (such as a fusion algorithm based on deep learning).

[0099] 9. Panoramic image stitching:

[0100] According to the global coordinates of each field of view, all clear images and fused images are stitched into a complete panoramic image.

[0101] 10. Post-processing and image enhancement:

[0102] Post-processing of the stitched panoramic images includes seam thinning, tone and brightness consistency adjustment, and application of image pyramid technology to gradually refine each level of the image.

[0103] Example 3

[0104] A focusing method for a scanner comprises the following steps:

[0105] S1. Select several focus points from the slide scanning area and record the (x, y) coordinates of the focus points;

[0106] S2, taking a focus point recorded in step S1 as a coarse focus, moving the scanner lens to the coarse focus on the (x, y) plane, and moving within the coarse focus interval [z1, z2] set on the Z axis according to the set coarse focus step, taking a photo for each step, and obtaining a set of coarse focus images;

[0107] S3, inputting a set of coarse focus images obtained in step S2 into the deep learning algorithm model, outputting a clear image considered by the deep learning algorithm model, and recording the Z coordinate corresponding to the clear image as a rough clear layer;

[0108] S4, the scanner lens moves to above a focus point selected in step S1, and then moves in the Z-axis direction to the roughly clear layer obtained in step S3, and moves within the set fine focus interval according to the set fine focus step;

[0109] S5, inputting the fine focus image obtained in step S5 into the deep learning algorithm model, outputting a clear image considered by the deep learning algorithm model, and recording the Z coordinate corresponding to the clear image as the focal plane;

[0110] S6, repeating steps S4 to S5 until all focusing points are finely focused and the photographing operation is completed;

[0111] S7. Combine the focal plane Z coordinate recorded in step S6 with the (x, y) coordinates corresponding to each focus point to fit the plane equation corresponding to the focal plane.

[0112] In a preferred solution, the coarse focus selects a focus point located at the center of the scanning area among several focus points.

[0113] In a preferred embodiment, step S3 also includes the following steps: first, the coarse focus image in step S2 is analyzed using a traditional algorithm, and then the clearest image considered by the traditional algorithm is input as a parameter into the deep learning algorithm model.

[0114] In the preferred solution, step S3 also includes the following steps: when the deep learning algorithm model considers it clear, it means that the z coordinate corresponding to the location of the image is a roughly clear layer.

[0115] In the preferred scheme, step S3 also includes the following steps: when the deep learning algorithm model considers that the image is not clear, all images taken during coarse focus are input into the deep learning algorithm model, and the deep learning algorithm model determines the index of the clear image in this group of images, and then infers the roughly clear layer through the index.

[0116] In a preferred solution, step S3 also includes the following steps: when there is no clear image in a group of images, it is considered that there is no content under the current focus point, the focus point is switched, and other focus points are used to continue coarse focus until coarse focus is successful.

[0117] In the preferred scheme, step S3 also includes the following steps: when the deep learning algorithm model considers that the content on the image is impurities, the approximate scanning range of the scanner lens becomes [z1+distance, z2+distance], and the coarse focus action is re-executed until the coarse focus is successful, where distance refers to the thickness of the coverslip converted to the corresponding number of pulses under the current lens.

[0118] In the preferred solution, the traditional algorithm refers to an edge detection algorithm, which performs gradient calculation on a group of images taken by a scanner, and the image with the largest gradient value is regarded as the clearest image by the traditional algorithm.

[0119] In a preferred solution, step S5 further includes the following steps: using the clearest image considered by the traditional algorithm as a parameter input:

[0120] When the deep learning algorithm model considers it clear, the z coordinate corresponding to the image location is used as the focal plane;

[0121] When the deep learning algorithm model considers the image unclear, it changes the focus point and continues to refine the focus.

[0122] In a preferred embodiment, step S3 further includes the following steps: analyzing edge features of the coarse focus image to evaluate the inclination of the glass slide relative to the scanner lens:

[0123] When the inclination does not exceed the set threshold, continue with the next step;

[0124] When the inclination exceeds the set threshold, the number of fine focus points, fine focus interval and fine focus step are adjusted according to the inclination and inclination direction to perform fine focus operation.

[0125] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for fusion of oblique scanning images, characterized in that The following steps are involved: S1, quickly pre-scan the entire slide scanning area to obtain a pre-scan image; S2, segmenting the pre-scanned image to divide the scanned area into a number of grid units; S3, identifying blank grid cells and recording their logical position information; S4, selecting a number of focus points, each focus point corresponding to a grid unit; S5, mapping the logical coordinates of the focus point to the physical coordinates, and performing focusing and scanning; S6, selecting the clearest image from the scanning results of each focus point; S7, using the pre-scanned image to replace the unscanned blank grid cells; S8, stitching all clear images into a complete panoramic image according to the logical coordinates of the grid cells; S9. Refine the seams in the panoramic image and apply a global or local image enhancement algorithm to further improve the quality of the panoramic image.

2. The oblique scanning image fusion method according to claim 1, characterized in that In step S2, the step of dividing the scanning area into grid units further includes: S21, assigning logical location information to each grid unit; S22. The logical position information is used for subsequent focus point selection and image stitching.

3. The method for fusion of oblique scanning images according to claim 2, characterized in that In step S3, the step of identifying blank grid cells includes: S31, analyzing brightness or texture features of the pre-scanned image; S32. Determine and record the logical position information of the blank grid cells according to the features obtained in step S31.

4. The oblique scanning image fusion method according to claim 1 or 3, characterized in that In step S5, the process of mapping the logical coordinates of the focus point to the physical coordinates is used to control the movement of the scanner lens according to the physical coordinates; The process of mapping the logical coordinates of the focus point to the physical coordinates is specifically as follows: using a mapping function to convert the logical coordinates into the physical coordinates.

5. The oblique scanning image fusion method according to claim 1, characterized in that In step S6, the step of selecting the clearest image includes: S61, apply image clarity assessment algorithm; S62. Select the clearest image corresponding to each focus point according to the algorithm result.

6. The method for fusion of oblique scanning images according to claim 1, characterized in that In step S7, the step of replacing the blank grid cells with the pre-scanned image includes: S71, cropping and scaling corresponding grid cells of the pre-scanned image; S72: Using the cropped and scaled images for stitching panoramic images.

7. The oblique scanning image fusion method according to claim 1, characterized in that In step S8, the step of stitching the panoramic image includes: S81, determining the position of each clear image in the panoramic image according to the logical coordinates of the grid unit; S82: register and fuse the images to form a seamless panoramic image.

8. The method for fusion of oblique scanning images according to claim 1, characterized in that In step S8, the step of stitching the panoramic image further includes: S821, extracting features from the image edge of each grid unit; S22, in the overlapping area of ​​adjacent grid cells, using feature matching technology to determine the best alignment point; S823, applying deep learning based image fusion to smooth the seams of adjacent grid cells; S824. Adjust the consistency of the hue and brightness of the fused image to ensure the naturalness and uniformity of the panoramic image.

9. The oblique scanning image fusion method according to claim 8, characterized in that: The image fusion technique used in step S86 further includes: S861, Feature-based image fusion, by finding common features in overlapping areas and performing spatial transformation to achieve smooth transition; S862. Image fusion based on deep learning, using a trained neural network model to perform pixel-level fusion of overlapping areas.

10. The oblique scanning image fusion method according to claim 8, characterized in that: Step S9 also includes: S91, use image pyramid technology to gradually refine each level of the image to achieve a smoother stitching effect; S92. Use image segmentation technology to identify and optimize specific areas in panoramic images, such as cell or tissue boundaries.

Citation Information

Patent Citations

  • Microimaging scanning method and scanning system

    CN113344958A

  • Multilayer alignment fusion method and application thereof

    CN114577799A

  • Rapid focusing method for scanning pathological image based on lightweight network

    CN117455791A

  • System and method for creating magnified images of a microscope slide

    US20060045505A1

Cited By

  • High-speed scanning method for acquiring large-depth-of-field high-definition digital slice

    CN121582076A