Fluorescence image high-speed splicing method based on circulating tumor cells
Through automated and optimized image processing algorithms, it solves the problems of slow processing speed and low accuracy of fluorescence images of circulating tumor cells, achieves efficient image stitching and overlapping area positioning, and supports rapid decision-making in cancer diagnosis and treatment.
Patent Information
- Application Number
- CN202410907575.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-29
AI Technical Summary
Existing technologies are slow and have limited accuracy when processing fluorescent images of circulating tumor cells, and cannot effectively handle large data volumes, resulting in delays in diagnosis and research.
A high-speed splicing method of fluorescent images based on circulating tumor cells is adopted to achieve precise image splicing and overlapping area positioning through automated and optimized image processing algorithms, including black pixel statistics, adaptive threshold processing, sliding window processing, ORB algorithm and RANSAC algorithm. .
It significantly improves the image processing speed and stitching accuracy, ensures the efficiency and accuracy of medical and scientific research work, reduces manual intervention, and is suitable for large-scale image data processing.
Smart Images

Figure CN118864239A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image processing, and in particular is a high-speed splicing method of fluorescence images based on circulating tumor cells. Background Art
[0002] Circulating tumor cell detection plays a key role in cancer research and clinical diagnosis. By analyzing these cells, doctors can monitor cancer progression and treatment response.
[0003] With the advancement of medical imaging technology, fluorescence microscopy has become a common technique for analyzing circulating tumor cells. However, with the increasing demand for scientific research and clinical practice, existing image processing technologies face challenges in speed and efficiency when processing large amounts of image data. The limitation of these technologies is that the processing speed is not fast enough to achieve rapid and accurate analysis of large-scale image data, which may delay doctors and researchers from obtaining key diagnostic and research results.
[0004] In addition, because circulating tumor cell images usually contain rich details and are affected by different focal lengths and exposure conditions, traditional image processing methods are difficult to efficiently process these complex images, often leading to delays in diagnosis and research. Manual image stitching methods are not only time-consuming but also prone to errors, which is particularly unsuitable for situations that require fast and large-scale image processing.
[0005] Therefore, the main problems of existing technologies are slow processing speed, limited accuracy and inability to effectively cope with large amounts of data. These shortcomings urgently need to be solved through more efficient image processing systems to ensure the efficiency and accuracy of medical and scientific research work. Summary of the invention
[0006] The present invention aims to address the deficiencies of the above-mentioned prior art and proposes a high-speed stitching method for fluorescence images based on circulating tumor cells, in order to significantly improve the processing speed and stitching accuracy of fluorescence images through automated and optimized image processing algorithms, thereby supporting the subsequent optimization of cancer treatment strategies and the development of new therapies, and ensuring the efficiency and accuracy of medical and scientific research work.
[0007] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:
[0008] The invention discloses a method for high-speed stitching of fluorescence images based on circulating tumor cells, which comprises the following steps:
[0009] Step 1: Obtain two fluorescence images I1 and I2 of circulating tumor cells, and count the black pixels on the right edge of I1 and the left edge of I2 to determine whether both I1 and I2 have black edges. If so, execute Step 2; otherwise, it indicates that there are cell parts in I1 and / or I2, and execute Step 3;
[0010] Step 2: Horizontally splice I1 and I2, and output the spliced image result. Among them, the width of the spliced image result is the sum of the widths of I1 and I2, and the height of the spliced image result is the larger value of the heights of I1 and I2;
[0011] Step 3: Estimate the overlapping regions in I1 and I2 according to the black pixel distribution of the same vertical segments in I1 and I2 to determine whether there are overlapping regions in I1 and I2. If so, execute Step 4; otherwise, return to execute Step 2;
[0012] Step 4: Splice O1 and O2, and output the spliced image R.
[0013] Another feature of the high-speed splicing method for fluorescence images of circulating tumor cells according to the present invention is that Step 1 includes the following steps:
[0014] Step 1.1: Convert I1 and I2 into two grayscale images G1 and G2 respectively;
[0015] Step 1.2: Define the rightmost w-pixel-wide edge region of the first grayscale image G1 as R1 and the leftmost w-pixel-wide edge region of the second grayscale image G2 as L2, so as to calculate the proportion P black (R1) of black pixels in R1 and the proportion P black (L2) of black pixels in L2 by using Equations (1) and (2):
[0016]
[0017] In Equations (1) and (2), threshold is the grayscale threshold of black pixels; H1 represents the height of G1, C1 represents the width of G1, H2 represents the height of G2, C2 represents the width of G2; R1(p,q) represents the grayscale value at the p-th row and q-th column in R1, L2(p,q) represents the grayscale value at the p-th row and q-th column in L2, 1(·) is an indicator function. If R1(p,q) or L2(p,q) < threshold, let 1(·) be 1; otherwise, let 1(·) be 0; Num(·) represents a function for obtaining the total number of pixels;
[0018] Step 1.3: Set the proportion threshold T black of black pixels, and judge P black(R1)>T black And P black (L2)>T black Is it true? If so, it means that both I1 and I2 have black edges, and step 2 is executed. Otherwise, it means that I1 and / or I2 have cell parts, and step 3 is executed.
[0019] The step 3 comprises the following steps:
[0020] Step 3.1: Adaptively threshold G1 and G2 to obtain two binary images B1 and B2, and then use median filtering to process B1 and B2 to obtain two filtered images M1 and M2;
[0021] Step 3.2: Segment M1 and M2 vertically into τ segments and calculate the width of each segment. The number of black pixels in each segment is counted and stored in an array, where the number of black pixels in the i-th segment of M1 is stored in the first array C img1 [i], the number of black pixels in the jth segment of M2 is stored in the second array C img2 [j], i,j∈[1,τ];
[0022] Step 3.3: Define the length of the sliding window as n, and perform sliding window processing on the segmented M1 and M2 respectively, and use formula (3) to calculate the absolute value X of the pixel difference between the i-th segment in M1 and the j-th segment in M2 under any k-th sliding window: i,j,k :
[0023] X i,j,k =|C img1,k [i]-C img2,k [j]| (3)
[0024] In formula (3), C img1,k [i] represents the number of black pixels in the i-th segment of M1 under the k-th sliding window, C img2,k [j] represents the number of black pixels in the jth segment of M2 under the kth sliding window;
[0025] Step 3.4: Use formula (4) to calculate the absolute value X of all pixel differences under the kth sliding window i,j,k The variance S k :
[0026]
[0027] In formula (4), is the average of the absolute values of all pixel differences under the kth sliding window;
[0028] Step 3.5: Find the window with the smallest variance among all sliding windows, and record the segment index i corresponding to the window with the smallest variance min 、j min ; where i min represents the segment index with the minimum variance found in M1, j min represents the segment index with the minimum variance found in M2;
[0029] Step 3.6: Calculate the width w1 and height h1 of the overlapping area in I1 and the width w2 and height h2 of the overlapping area in I2;
[0030] Step 3.7: If h1≤0 or h2≤0 or w1≤0 or w2≤0, it means that there is no overlapping area in I1 and I2, and return to step 2 for execution; otherwise, execute step 4.
[0031] The step 3.6 comprises the following steps:
[0032] Step 3.6.1: Calculate the overlapping area O1 in image M1 using equation (5):
[0033] O1=(x start ,y start ,w1,h1)(5)
[0034] In formula (5), x start Indicates the starting horizontal coordinate of the overlapping area O1 in M1, y start represents the starting ordinate of the overlapping region O1 in M1, w1 represents the width of the overlapping region O1 in M1, h1 represents the height of the overlapping region O1 in M1, and:
[0035]
[0036] Step 3.6.2: Calculate the overlapping area O2 in image M2 using equation (7):
[0037] O2=(x s ' tart ,y s ' tart ,w2,h2)(7)
[0038] In formula (7), x s ' tart Indicates the starting horizontal coordinate of the overlapping area O2 in M2, y s ' tart represents the starting ordinate of the overlapping region O2 in M2, w2 represents the width of the overlapping region O2 in M2, h2 represents the height of the overlapping region O2 in M2, and:
[0039]
[0040] The step 4 comprises the following steps:
[0041] Step 4.1: Convert O1 and O2 into two grayscale images E1 and E2;
[0042] Step 4.2: Use the ORB algorithm to detect several key points on E1 and E2 and calculate the descriptor of each key point;
[0043] Step 4.3: For each descriptor in E1, use the BFMatcher matcher to find the first m descriptors closest to E2;
[0044] Step 4.3: Use the ratio test to select the best matching pair:
[0045] If the ratio of the distance of the first closest descriptor to the distance of the second closest descriptor is less than the set threshold F, it means that the corresponding descriptor in E1 and the first m descriptors in E2 are matched effectively and are regarded as the best matching pair; otherwise, it means that the match is invalid;
[0046] Step 4.4: Based on the best matching pair, use the RANSAC algorithm to calculate the homography matrix H from I2 to I1;
[0047] Step 4.5: Use the homography matrix H to perform perspective transformation on I2 to obtain the transformed image I2′;
[0048] Step 4.6: Horizontally stitch I1 and I2′ to obtain the stitched image R and output it, where the width of R is x max and w1, the height of R is y max and h1, the larger value; x max and max is the maximum boundary coordinate of I2′.
[0049] The electronic device of the present invention includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the fluorescent image high-speed stitching method, and the processor is configured to execute the program stored in the memory.
[0050] The present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program executes the steps of the high-speed fluorescence image stitching method when the computer program is executed by a processor.
[0051] Compared with the prior art, the present invention has the following beneficial effects:
[0052] 1. Accurate overlap region positioning: Through the sliding window processing technology of segmenting the image and calculating the variance, the present invention can accurately identify and locate the best overlap region between two images. This step solves the problems of errors and inefficiency introduced by manual operation in traditional methods, and ensures the continuity and integrity of the stitched image.
[0053] 2. Optimized stitching quality: By using feature point matching based on the ORB algorithm and the RANSAC algorithm to calculate the homography matrix, the present invention provides a more stable and accurate image stitching method. This not only improves the accuracy of the stitched image, but also significantly improves the visual seamlessness of the stitched area, making the final image output more suitable for subsequent high-precision medical diagnosis and research analysis.
[0054] 3. Automated processing flow: The present invention realizes a fully automated process from image preprocessing to final splicing, which reduces manual intervention, operation complexity and time cost. This makes the present invention particularly suitable for processing large-scale image data, supporting rapid clinical decision-making and scientific research analysis in subsequent applications, and thus plays an important role in cancer diagnosis and treatment monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 This is a flow chart of a high-speed stitching method for fluorescence images based on circulating tumor cells of the present invention;
[0056] Figure 2 It is a flow chart of the edge black pixel statistical algorithm of the present invention;
[0057] Figure 3 is a flow chart of an overlap region estimation algorithm of the present invention;
[0058] Figure 4 The figure is a flow chart of the image stitching algorithm of the present invention. DETAILED DESCRIPTION
[0059] The specific implementation of the present invention will be described below in conjunction with the accompanying drawings.
[0060] like Figure 1 As shown, a high-speed stitching method for fluorescence images of circulating tumor cells includes the following steps:
[0061] Step 1: If Figure 2 As shown, two circulating tumor cell fluorescence images I1 and I2 are obtained, and black pixel statistics are performed on the right edge of I1 and the left edge of I2:
[0062] Step 1.1: In order to improve the accuracy of subsequent image processing, I1 and I2 are converted into two grayscale images G1 and G2 respectively;
[0063] Step 1.2: Define the rightmost w-pixel-wide edge region of the first grayscale image G1 as R1 and the rightmost w-pixel-wide edge region of the second grayscale image G2 as L2. In this example, w = 2, and then calculate the proportion of black pixels P black (R1) and the proportion of black pixels P black (L2) of L2:
[0064]
[0065] In Equation (1) and Equation (2), threshold is the grayscale threshold of black pixels; H1 represents the height of G1, C1 represents the width of G1, H2 represents the height of G2, C2 represents the width of G2; R1(p, q) represents the grayscale value at the p-th row and q-th column in R1, L2(p, q) represents the grayscale value at the p-th row and q-th column in L2, 1(·) is an indicator function. If R1(p, q) or L2(p, q) < threshold, let 1(·) be 1, otherwise, let 1(·) be 0; Num(·) represents the function of calculating the total number of pixels.
[0066] Step 1.3: Set the proportion threshold T black of black pixels. In this example, T black = 0.8, and judge whether P black (R1) > T black and P black (L2) > T black holds. If it holds, it means that both I1 and I2 have black edges, and execute Step 2. Otherwise, it means that there is a cell part in I1 and / or I2, and execute Step 3; these measurements help to judge whether the two images are suitable for estimating the overlapping region, and then decide whether to use direct stitching or overlapping processing.
[0067] Step 2: If the edge region is mainly black, it means that there is no cell part between the two images, and they can be directly stitched horizontally. Horizontally stitch I1 and I2, and output the stitched image result. Among them, the width of the stitched image result is the sum of the widths of I1 and I2, and the height of the stitched image result is the larger value of the heights of I1 and I2.
[0068] Step 3: As Figure 3 shown, estimate the overlapping region in I1 and I2 according to the black pixel distribution of the same vertical segments in I1 and I2:
[0069] Step 3.1: Adaptive threshold processing is performed on G1 and G2 to obtain two binary images B1 and B2. This method automatically adjusts the threshold according to the brightness of the local area of the image, so that the main features in the image, such as the cell edge, are accurately highlighted. Then, median filtering is used to process B1 and B2 respectively to obtain two filtered images M1 and M2; this step uses median filtering to improve the accuracy of edge detection and reduce the influence of noise and irregular edges.
[0070] Step 3.2: Analyze the vertical segments of each image to estimate the potential overlapping areas. Segment M1 and M2 vertically into τ segments respectively, and calculate the width of each segment The number of black pixels in each segment is counted and stored in an array, where the number of black pixels in the i-th segment of M1 is stored in the first array C img1 [i], the number of black pixels in the jth segment of M2 is stored in the second array C img2 In [j], i,j∈[1,τ].
[0071] Step 3.3: Define the length of the sliding window as n. In this example, n=5. Perform sliding window processing on the segmented M1 and M2 respectively. Use the sliding window technique to search for the minimum variance region between multiple vertical segments, which indicates the potential optimal overlap point of the two images. And use formula (3) to calculate the absolute value X of the pixel difference between the i-th segment in M1 and the j-th segment in M2 under any k-th sliding window: i,j,k :
[0072] X i,j,k =|C img1,k [i]-C img2,k [j]| (3)
[0073] In formula (3), C img1,k [i] represents the number of black pixels in the i-th segment of M1 under the k-th sliding window, C img2,k [j] represents the number of black pixels in the jth segment of M2 under the kth sliding window;
[0074] Step 3.4: Use formula (4) to calculate the absolute value X of all pixel differences under the kth sliding window i,j,k The variance S k :
[0075]
[0076] In formula (4), is the average of the absolute values of all pixel differences under the kth sliding window; this variance calculation provides a measure indicating the degree of consistency of image segment matching in different sliding windows.
[0077] Step 3.5: Find the window with the smallest variance among all sliding windows, and record the segment index i corresponding to the window with the smallest variance min 、j min ; where i min represents the segment index with the minimum variance found in M1, j min Represents the segment index with the minimum variance found in M2; calculates the variance S, determines the window with the minimum variance, and thus finds the area with the highest similarity in the two images as the basis for the final stitching.
[0078] Step 3.6: Calculate the overlapping area in I1 and I2:
[0079] Step 3.6.1: Calculate the overlapping area O1 in image M1 using equation (5):
[0080] O1=(x start ,y start ,w1,h1)(5)
[0081] In formula (5), x start Indicates the starting horizontal coordinate of the overlapping area O1 in M1, y start represents the starting ordinate of the overlapping region O1 in M1, w1 represents the width of the overlapping region O1 in M1, h1 represents the height of the overlapping region O1 in M1, and:
[0082]
[0083] Step 3.6.2: Calculate the overlapping area O2 in image M2 using equation (7):
[0084] O2=(x s ' tart ,y s ' tart ,w2,h2)(7)
[0085] In formula (7), x s ' tart Indicates the starting horizontal coordinate of the overlapping area O2 in M2, y s ' tart represents the starting ordinate of the overlapping region O2 in M2, w2 represents the width of the overlapping region O2 in M2, h2 represents the height of the overlapping region O2 in M2, and:
[0086]
[0087] Step 3.7: If h1≤0 or h2≤0 or w1≤0 or w2≤0, it means that there is no overlapping area in I1 and I2, and they can be directly spliced, and return to step 2 for execution; otherwise, it means that there is an overlapping area between the two images, and execute step 4.
[0088] Step 4: Figure 4 As shown, O1 and O2 are spliced to obtain the spliced image R and then output:
[0089] Step 4.1: Convert O1 and O2 into two grayscale images E1 and E2;
[0090] Step 4.2: Use the ORB algorithm to detect several key points on E1 and E2 and calculate the descriptor of each key point; the ORB algorithm is used because of its high speed and efficiency;
[0091] Step 4.3: For each descriptor in E1, use the BFMatcher matcher to find the first m descriptors closest to E2;
[0092] Step 4.3: Use the ratio test to select the best matching pair:
[0093] If the ratio of the distance of the first nearest descriptor to the distance of the second nearest descriptor is less than the set threshold F, in this example F = 0.75, it means that the corresponding descriptor in E1 and the first m descriptors in E2 are matched effectively and serve as the optimal matching pair; otherwise, it means that the match is invalid; this step ensures that only the most similar feature points are used to calculate the homography matrix.
[0094] Step 4.4: Based on the best matching pair, use the RANSAC algorithm to calculate the homography matrix H from I2 to I1; use the RANSAC algorithm to obtain a robust homography matrix, which is to minimize the impact of mismatched points and ensure the accuracy of the transformation.
[0095] Step 4.5: Use the homography matrix H to perform perspective transformation on I2 to obtain the transformed image I2′;
[0096] Step 4.6: Horizontally stitch I1 and I2′ to obtain the stitched image R and output it, where the width of R is x max and w1, the height of R is y max and h1, the larger value; x max and max is the maximum boundary coordinate of I2′.
[0097] In this embodiment, an electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above method, and the processor is configured to execute the program stored in the memory.
[0098] In this embodiment, a computer-readable storage medium stores a computer program on the computer-readable storage medium, and the computer program executes the steps of the above method when executed by a processor.
Claims
1. A high-speed stitching method for fluorescence images of circulating tumor cells, characterized in that: It includes the following steps: Step 1: Obtain two fluorescence images of circulating tumor cells I1 and I2, and perform black pixel statistics on the right edge of I1 and the left edge of I2 to determine whether both I1 and I2 have black edges. If so, execute Step 2; otherwise, it indicates that there are cell parts in I1 and / or I2, and execute Step 3; Step 2: Horizontally splice I1 and I2 to obtain a spliced image result and output it. Among them, the width of the spliced image result is the sum of the widths of I1 and I2, and the height of the spliced image result is the larger value of the heights of I1 and I2; Step 3: Estimate the overlapping regions in I1 and I2 according to the black pixel distribution of the same vertical segments in I1 and I2 to determine whether there are overlapping regions in I1 and I2. If so, execute Step 4; otherwise, return to Step 2 for execution; Step 4: Splice O1 and O2 to obtain a spliced image R and output it.
2. The method for high-speed stitching of fluorescence images based on circulating tumor cells according to claim 1, characterized in that: The said Step 1 includes the following steps: Step 1.1: Convert I1 and I2 into two grayscale images G1 and G2 respectively; Step 1.2: Define the rightmost w-pixel-wide edge region of the first grayscale image G1 as R1 and the rightmost w-pixel-wide edge region of the second grayscale image G2 as L2, and use equations (1) and (2) to calculate the black pixel proportion P of R1 respectively: black The black pixel ratio P of (R1) and L2 black (L2): In formulas (1) and (2), threshold is the grayscale threshold of black pixels; H1 represents the height of G1, C1 represents the width of G1, H2 represents the height of G2, C2 represents the width of G2; R1(p,q) represents the grayscale value at the p-th row and q-th column in R1, L2(p,q) represents the grayscale value at the p-th row and q-th column in L2, 1(·) is an indicator function. If R1(p,q) or L2(p,q) < threshold, let 1(·) be 1; otherwise, let 1(·) be 0; Num(·) represents a function for calculating the total number of pixels; Step 1.3: Set the black pixel ratio threshold T black , judge P black (R1)>T black And P black (L2)>T black Is it true? If so, it means that both I1 and I2 have black edges, and step 2 is executed. Otherwise, it means that I1 and / or I2 have cell parts, and step 3 is executed.
3. The method for high-speed stitching of fluorescence images based on circulating tumor cells according to claim 2, characterized in that: The said Step 3 includes the following steps: Step 3.1: Perform adaptive threshold processing on G1 and G2 respectively to obtain two binary images B1 and B2, and then use median filtering to process B1 and B2 respectively to obtain two filtered images M1 and M2; Step 3.2: Segment M1 and M2 vertically into τ segments and calculate the width of each segment. The number of black pixels in each segment is counted and stored in an array, where the number of black pixels in the i-th segment of M1 is stored in the first array C img1 [i], the number of black pixels in the jth segment of M2 is stored in the second array C img2 [j], i,j∈[1,τ]; Step 3.3: Define the length of the sliding window as n, and perform sliding window processing on the segmented M1 and M2 respectively, and use formula (3) to calculate the absolute value X of the pixel difference between the i-th segment in M1 and the j-th segment in M2 under any k-th sliding window: i,j,k : X i,j,k =|C img1,k [i]-C img2,k [j]| (3) In formula (3), C img1,k [i] represents the number of black pixels in the i-th segment of M1 under the k-th sliding window, C img2,k [j] represents the number of black pixels in the jth segment of M2 under the kth sliding window; Step 3.4: Use formula (4) to calculate the absolute value X of all pixel differences under the kth sliding window i,j,k The variance S k : In formula (4), is the average of the absolute values of all pixel differences under the kth sliding window; Step 3.5: Find the window with the smallest variance among all sliding windows, and record the segment index i corresponding to the window with the smallest variance min 、j min ; where i min represents the segment index with the minimum variance found in M1, j min represents the segment index with the minimum variance found in M2; Step 3.6: Calculate the width w1 and height h1 of the overlapping region in I1 and the width w2 and height h2 of the overlapping region in I2; Step 3.7: If h1 ≤ 0 or h2 ≤ 0 or w1 ≤ 0 or w2 ≤ 0, it indicates that there is no overlapping region in I1 and I2, and return to Step 2 for execution; otherwise, execute Step 4.
4. The method for high-speed stitching of fluorescence images based on circulating tumor cells according to claim 3, characterized in that: The said Step 3.6 includes the following steps: Step 3.6.1: Calculate the overlapping region O1 in the image M1 using formula (5): O1=(x start ,y start ,w1,h1)(5) In formula (5), x start Indicates the starting horizontal coordinate of the overlapping area O1 in M1, y start represents the starting ordinate of the overlapping region O1 in M1, w1 represents the width of the overlapping region O1 in M1, h1 represents the height of the overlapping region O1 in M1, and: Step 3.6.2: Calculate the overlapping region O2 in the image M2 using formula (7): O2=(x s ′ tart ,y s ′ tart ,w2,h2)(7) In formula (7), x s ' tart Indicates the starting horizontal coordinate of the overlapping area O2 in M2, y s ' tart represents the starting ordinate of the overlapping region O2 in M2, w2 represents the width of the overlapping region O2 in M2, h2 represents the height of the overlapping region O2 in M2, and:
5. The method for high-speed stitching of fluorescence images based on circulating tumor cells according to claim 4, characterized in that: The said Step 4 includes the following steps: Step 4.1: Convert O1 and O2 into two grayscale images E1 and E2; Step 4.2: Use the ORB algorithm to detect several key points on E1 and E2 and calculate the descriptors of each key point; Step 4.3: For each descriptor in E1, use the BFMatcher matcher to find the top m descriptors with the closest distance to E2; Step 4.3: Use ratio testing to screen the optimal matching pairs: If the ratio of the distance of the first closest descriptor to the distance of the second closest descriptor is less than the set threshold F, it means that the corresponding descriptor in E1 and the first m descriptors in E2 are matched effectively and are regarded as the best matching pair; otherwise, it means that the match is invalid; Step 4.4: Based on the best matching pair, use the RANSAC algorithm to calculate the homography matrix H from I2 to I1; Step 4.5: Use the homography matrix H to perform perspective transformation on I2 to obtain the transformed image I2′; Step 4.6: Horizontally stitch I1 and I2′ to obtain the stitched image R and output it, where the width of R is x max and w1, the height of R is y max and h1, the larger value; x max and max is the maximum boundary coordinate of I2′.
6. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the high-speed fluorescence image stitching method according to any one of claims 1 to 5, and the processor is configured to execute the program stored in the memory.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the high-speed fluorescence image stitching method according to any one of claims 1 to 5 are executed.
Citation Information
Cited By
Temperature curve splicing method and system for ultra-long string disc-shaped suspension porcelain insulator
CN119168859A
