Image real-time splicing transition method and device based on pathological slide and readable storage medium

Through template weight transition technology, the splicing problem caused by uneven light source distribution and camera distortion during slide scanning is solved, high-quality traceless splicing is achieved, and the accuracy and efficiency of pathological diagnosis are improved.

CN119323514AInactive Publication Date: 2025-01-17SHENZHEN SHENGQIANG TECH

Patent Information

Application Number
CN202411874606.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-01-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art is affected by uneven light source distribution and camera distortion in slide scanning, resulting in differences in brightness and contrast, distortion and dislocation of the images after stitching, which damages image quality and increases the risk of misjudgment of pathological diagnosis.

Method used

Template weight transition technology is used to reserve overlapping areas, generate weight transition templates, and adjust the weight distribution of pixels in the overlapping areas to achieve seamless splicing of images.

Benefits of technology

Effectively eliminate splicing traces, improve image quality and diagnostic efficiency, reduce the risk of misjudgment, and significantly improve the accuracy and reliability of medical image analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119323514A_ABST
    Figure CN119323514A_ABST
Patent Text Reader

Abstract

The invention provides an image real-time splicing transition method and device based on a pathological slide and a readable storage medium. The method and the device are innovated and improved for solving the problem that existing slide scanning digital splicing traces affect diagnosis. An overlapping area is reserved when adjacent original images are scanned, a weight transition template is generated by using a specific algorithm according to the distance between pixels and an overlapping boundary, and the transition smoothness is flexibly adjusted by controlling adjustable parameters. Overlapping region pixels and the corresponding templates are multiplied and accumulated to replace original data, overlapping region removing splicing is carried out, cyclic image-by-image processing is carried out, and traceless splicing is achieved. Through the optimization, the image definition and the film reading quality are remarkably improved, the misjudgment risk of doctors is greatly reduced, the pathological image analysis application range is powerfully expanded, clinical diagnosis and research are promoted to accurately and efficiently advance, powerful power is injected for pathology development, and the method has important value and wide application prospects in the technical field of medical images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pathological analysis, and in particular to a method, a device and a readable storage medium for real-time image stitching transition based on pathological slides. Background Art

[0002] At a time when medical technology is developing rapidly, digital scanning of glass slides has become a key trend. Its core lies in accurately converting glass slide information into high-resolution images that can be clearly viewed by computers, laying a solid foundation for pathological diagnosis and medical research. At present, the method of flying scanning with an objective lens connected to a camera is generally used to first obtain pictures of different fields of view and then stitch them into a complete image. However, this process is interfered by factors such as uneven distribution of light sources and camera distortion, resulting in many defects in the stitched image.

[0003] As for the light source, its uneven distribution causes significant differences in the light received by different areas of the slide, resulting in obvious differences in brightness and contrast in images of different fields of view. For example, weak light at the edge of the slide causes the image to be dark, while concentrated light in the center causes the image to be bright. When stitching, a clearly visible brightness ladder is formed, which seriously undermines the overall visual coherence of the image.

[0004] Camera distortion should not be ignored either. Due to the characteristics of the optical system and the limitations of the manufacturing process, images taken by the camera are prone to distortion such as barrel and pillow shapes. When stitching adjacent distorted images, the edges cannot be accurately aligned, and slight deviations are accumulated and amplified, causing distortion and misalignment at the stitching point, greatly damaging the integrity and accuracy of the image.

[0005] From the actual application effect, the stitched images leave traces at the junction, which has a serious negative impact on the quality of the whole image and the reading effect. Especially in pathological diagnosis, doctors need to accurately determine the cell morphology and tissue structure variation based on the image. The stitching traces can easily cover up small lesions or mislead the diagnosis direction, greatly increasing the risk of misjudgment and seriously hindering the timely diagnosis and effective treatment of the disease.

[0006] Therefore, it is urgent to develop an efficient and accurate image stitching technology, which needs to effectively overcome the existing technical bottlenecks, significantly optimize the stitching effect, improve image quality and diagnostic efficiency, and then effectively promote the steady development of the field of medical image analysis and provide solid image technology support for precision medicine. Summary of the invention

[0007] The embodiments of the present invention provide a method, device and readable storage medium for real-time image stitching transition based on pathology slides, which address the problems in current technologies such as uneven distribution of light sources causing differences in image brightness contrast, and camera distortion causing image distortion and dislocation, which result in marks at the stitching points, damage image quality, interfere with film reading and increase the risk of misjudgment in pathology diagnosis.

[0008] The core technology of the present invention is mainly based on template weight transition. During scanning, overlapping areas are reserved and weight transition templates are generated accordingly. Through steps such as multiplication and accumulation of overlapping area pixels and templates and data replacement, seamless splicing of pathological slide images is achieved, thereby improving quality and diagnostic efficiency.

[0009] In a first aspect, the present invention provides a method for real-time image stitching transition based on pathology slides, the method comprising the following steps: S00, reserving an overlapping area when scanning two adjacent original images; S10, generating weighted transition templates on the left and right sides according to the distance information between the pixel point and the boundary of the overlapping area, determining the weight of each pixel in the transition area, ensuring that the sum of the weights on the left and right sides in the same horizontal direction is 1, and setting adjustable parameters to control the smoothness of the transition area, so that the splicing effect is more in line with actual needs; S20, respectively extracting pixels in the overlapping area of ​​the left and right original images, and performing pixel multiplication operation with the corresponding weight transition template, thereby accurately adjusting the weight distribution of pixels in the overlapping area to optimize the image fusion basis; S30, adding the pixel results of the left and right overlapping areas after the multiplication operation, and then replacing the data of the corresponding positions of the left and right original images with the addition result, so as to achieve accurate update and fusion optimization of the image data; S40, after removing the overlapping area, splicing the original image after replacing the data, repeating the above steps to process each image one by one, so as to gradually eliminate the splicing marks, and finally obtain a high-quality pathology slide scanning result without splicing marks.

[0010] Furthermore, in step S10, the weight transition template is generated by first calculating the minimum distance between the pixel point and the boundary of the overlapping area in the horizontal and vertical directions, using a weighted calculation mechanism based on distance measurement to determine the initial weight coefficient, and then obtaining the final weight through mathematical transformation, thereby constructing a weight transition system that adapts to the image characteristics.

[0011] Furthermore, in step S10, the method of calculating the minimum distance between the pixel point and the overlap region boundary in the horizontal and vertical directions is achieved by comparing the absolute value of the difference between the pixel coordinate component and the overlap region size component.

[0012] Furthermore, in step S10, the calculation of the initial weighting coefficient is determined based on the ratio of the minimum distance product of the pixel points in each direction to the sum of the corresponding distance products of all the pixel points.

[0013] Furthermore, in step S10, the smaller the value of the adjustable parameter is, the slower the pixel value in the transition area changes, and the more natural and smooth the fusion at the joint is.

[0014] Furthermore, in step S10, the minimum value between the pixel point and the transition area boundary in two dimensions is calculated as: ;

[0015] in, is the weighting factor of the pixel value of an image at that pixel point, and the pixel point is located in the overlapping area of ​​the two fields of view; are pixels in the transition region. The closer they are to the transition region boundary, the smaller their contribution to the overall intensity. dim represents the size in the horizontal and vertical directions. The coordinates representing the pixel are extracted as two components in the horizontal and vertical directions; The length and width of the overlapping area are expressed as two components in the horizontal and vertical directions.

[0016] Furthermore, in step S10, the final weight is: ;

[0017] in, is a weighting factor of the pixel value of an image at this pixel point, and the pixel point is located in the overlapping area of ​​the two fields of view; α is an adjustable parameter; is the initial weighting coefficient.

[0018] In a second aspect, the present invention provides a real-time image stitching transition device based on pathological slides, comprising: A preprocessing module reserves overlapping areas when scanning two adjacent original images; The weight transition module generates weight transition templates on the left and right sides based on the distance information between the pixel point and the boundary of the overlapping area, determines the weight of each pixel in the transition area, ensures that the sum of the weights on the left and right sides in the same horizontal direction is 1, and sets adjustable parameters to control the smoothness of the transition area, so that the splicing effect is more in line with actual needs; The processing module extracts the pixels of the overlapping areas of the left and right original images respectively, and performs pixel multiplication operation with the corresponding weight transition template, so as to accurately adjust the weight distribution of the pixels in the overlapping areas to optimize the basis of image fusion; the pixel results of the left and right overlapping areas after the multiplication operation are added, and then the data of the corresponding positions of the left and right original images are replaced with the addition result to realize the accurate update and fusion optimization of the image data; after removing the overlapping area, the original images after the replacement data are spliced, and the steps of the processing module are processed one by one in a loop, so as to gradually eliminate the splicing marks, and finally obtain high-quality pathology slide scanning results without splicing marks.

[0019] In a third aspect, the present invention provides an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the above-mentioned real-time image stitching and transition method based on pathology slides.

[0020] In a fourth aspect, the present invention provides a readable storage medium storing a computer program, wherein the computer program includes a program code for controlling a process to execute the process, wherein the process includes the above-mentioned real-time image stitching transition method based on pathology slides.

[0021] The main contributions and innovations of the present invention are as follows: 1. Improved image quality: The existing technology is affected by uneven light source distribution and camera distortion, and the stitching marks are obvious, which damages the integrity and clarity of the image. The present invention uses template weight transition, overlap area processing and precise weight calculation to successfully eliminate the stitching marks, making the image transition natural, greatly improving the clarity and overall quality, providing high-quality image materials for pathological analysis, and helping doctors to accurately understand the subtle changes in cell and tissue structure.

[0022] 2. Improved accuracy of image reading: Traditional splicing traces interfere with the doctor's diagnostic vision, increase the risk of misjudgment, and delay the diagnosis and treatment of the disease. The seamless splicing of the present invention ensures the continuity and authenticity of the image, allowing doctors to focus more on pathological features when reading the image, accurately determine the degree and type of lesions, reduce the possibility of misjudgment, improve the accuracy and timeliness of diagnosis, win critical time for patient treatment, and optimize the quality of medical services.

[0023] 3. Expansion of application scope: Due to the problem of splicing, the existing technology is limited in the application of complex pathological image analysis and high-precision medical research. This invention breaks through the bottleneck, realizes seamless splicing, and meets the needs of multiple scenarios. From routine pathological diagnosis to cutting-edge medical research, it can provide solid technical support for image analysis, effectively expand the application boundaries of pathological image technology, and promote collaborative innovation and development in multiple fields of medicine.

[0024] 4. Optimize work efficiency: In the past, doctors had to identify splicing traces and fill in the image information in their minds, which was time-consuming and laborious. The present invention improves image quality and diagnostic accuracy, reduces doctors' time and energy consumption in diagnosis, enables them to handle cases efficiently, relieves workload, improves the overall efficiency of medical services, optimizes the allocation of medical resources, and enhances the operational efficiency of the medical system.

[0025] The details of one or more embodiments of the invention are set forth in the following drawings and description so that other features, objects, and advantages of the invention are more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 is a flow chart of a real-time image stitching transition method based on pathological slides according to an embodiment of the present invention; Figure 2 are left and right weight transition templates according to an embodiment of the present invention; Figure 3 yes Figure 2 and Figure 3 Weight change diagram of ; Figure 4 is a schematic diagram of an overlapping area of ​​two figures according to an embodiment of the present invention; Figure 5 According to an embodiment of the present invention Figure 4 The left picture and Figure 2 The image obtained by performing pixel multiplication operation on the weighted transition template on the left; Figure 6 According to an embodiment of the present invention Figure 4 The left picture and Figure 2 The image obtained by performing pixel multiplication operation on the weighted transition template on the right; Figure 7 According to an embodiment of the present invention, Figure 5 and Figure 6 The image obtained by adding pixels; Figure 8 is a final stitching result diagram according to an embodiment of the present invention; Fig. 9 4 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0028] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0029] The existing slide digitization technology uses an objective lens connected to a camera to fly, scan and stitch images together. However, due to the uneven distribution of light sources that causes differences in image brightness and contrast, and camera distortion that causes image distortion and dislocation, marks are left at the stitching, damaging image quality, interfering with film reading and increasing the risk of misjudgment in pathological diagnosis.

[0030] Based on this, the present invention solves the problems existing in the prior art based on template weight transition as the core.

[0031] Embodiment 1 The present invention aims to propose a real-time image stitching transition method based on pathological slides, specifically, referring to Figure 1 , the method comprises the following steps: Step 1: During scanning, due to factors such as camera distortion and light source, two adjacent images may be distorted or have different brightness, resulting in obvious seams in the stitched image. Therefore, a portion of the overlapping area needs to be reserved for transition processing when stitching the two original images.

[0032] Step 2: Generate weighted transition templates on the left and right sides based on the distance between the pixel point and the boundary of the overlapping area. Here, pixel-based linear blending is used. For the fused pixel value in the transition area, the weighting factor of the pixel value of the image at that pixel position is used. To determine the weights of the pixels in the transition region. The closer to the transition zone boundary, the smaller the contribution to the overall strength. Indicates the horizontal and vertical dimensions. The coordinates representing the pixel are extracted as two components in the horizontal direction and the vertical direction. The length and width of the overlapping area are expressed as two components in the horizontal and vertical directions, so that each pixel can be calculated separately The shortest distance to the horizontal and vertical boundaries of the transition area.

[0033] Step 3: First, calculate the minimum value of the pixel point and the transition area boundary in two dimensions: (1); It is a weighting factor of the pixel value of an image at this pixel point, and the pixel point is located in the overlapping area of ​​the two fields of view.

[0034] The initial weighting coefficient is , the final weight for: (2); Figure 2 The weight transition template for the generated left and right sides. Figure 3 The blue curve is Figure 2 The weight change on the left, the red curve is Figure 2 The weight changes on the right side. In the same X direction, the sum of the red line weight and the blue line weight is equal to 1. The smaller α is, Figure 3 The transition is smoother.

[0035] Step 4: Figure 4 As shown, the circled areas in the left and right pictures are overlapping areas. They are taken out and pixel multiplication is performed with the corresponding weight template. The results are as follows Figure 5 and Figure 6 .

[0036] Step 5: Figure 5 and Figure 6 Add the pixels together to get Figure 7 , you can see Figure 7 There are no traces of splicing. In step 2, the weight addition result is equal to 1 to ensure that the brightness after addition remains consistent with the original.

[0037] Step 6: Figure 7 Replace the data at the corresponding positions of the left and right original images.

[0038] Step 7: Remove the overlapping areas and stitch the replaced original images together. Figure 8 This is the result of stitching without any trace. Repeat steps 3 to 6 to process each image one by one, and you can get a complete pathology slide scan result without any stitching trace.

[0039] The present invention adopts a pixel-based linear blending method to generate a weight template for the transition area by calculating the minimum distance between each pixel and the boundary of the overlapping area. The weight template can smoothly blend the overlapping areas of the two images, reduce splicing traces, and ensure a natural splicing effect.

[0040] Embodiment 2 Based on the same concept, the present invention also proposes a real-time image stitching transition device based on pathological slides, comprising: A preprocessing module reserves overlapping areas when scanning two adjacent original images; The weight transition module generates weight transition templates on the left and right sides based on the distance information between the pixel point and the boundary of the overlapping area, determines the weight of each pixel in the transition area, ensures that the sum of the weights on the left and right sides in the same horizontal direction is 1, and sets adjustable parameters to control the smoothness of the transition area, so that the splicing effect is more in line with actual needs; The processing module extracts the pixels of the overlapping areas of the left and right original images respectively, and performs pixel multiplication operation with the corresponding weight transition template, so as to accurately adjust the weight distribution of the pixels in the overlapping areas to optimize the basis of image fusion; the pixel results of the left and right overlapping areas after the multiplication operation are added, and then the data of the corresponding positions of the left and right original images are replaced with the addition result to realize the accurate update and fusion optimization of the image data; after removing the overlapping area, the original images after the replacement data are spliced, and the steps of the processing module are processed one by one in a loop, so as to gradually eliminate the splicing marks, and finally obtain high-quality pathology slide scanning results without splicing marks.

[0041] Embodiment 3 This embodiment also provides an electronic device, referring to Fig. 9 , comprises a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any of the above method embodiments.

[0042] Specifically, the processor 402 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0043] Among them, the memory 404 may include a large capacity memory 404 for data or instructions. For example, but not limitation, the memory 404 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In appropriate cases, the memory 404 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 404 may be inside or outside the data processing device. In a specific embodiment, the memory 404 is a non-volatile memory. In a specific embodiment, the memory 404 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. In appropriate circumstances, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM may be a fast page mode dynamic random access memory 404 (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0044] The memory 404 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 402 .

[0045] The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any one of the pathology slide-based image real-time stitching and transition methods in the above embodiments.

[0046] Optionally, the electronic device may further include a transmission device 406 and an input / output device 408 , wherein the transmission device 406 is connected to the processor 402 , and the input / output device 408 is connected to the processor 402 .

[0047] The transmission device 406 can be used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 406 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0048] Input / output devices 408 are used to input or output information.

[0049] Embodiment 4 This embodiment also provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute the process. The process includes the real-time image stitching transition method based on pathological slides according to the first embodiment.

[0050] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0051] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.

[0052] Embodiments of the present invention may be implemented by computer software that is executable by a data processor of a mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros may be stored in any device-readable data storage medium, and they include program instructions for performing specific tasks. A computer program product may include one or more computer executable components configured to perform an embodiment when the program is run. One or more computer executable components may be at least one software code or a portion thereof. In addition, at this point, it should be noted that, for example, Figure 1 Any block of the logic flow in the program may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on physical media such as memory chips or storage blocks implemented within the processor, magnetic media such as hard disk or floppy disks, and optical media such as, for example, DVDs and their data variants, CDs, etc. Physical media are non-transitory media.

[0053] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0054] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.

Claims

1. A real-time image stitching transition method based on pathological slides, characterized in that: The following steps are involved: S00, reserving an overlapping area when scanning two adjacent original images; S10, generating weighted transition templates on the left and right sides according to the distance information between the pixel point and the boundary of the overlapping area, determining the weight of each pixel in the transition area, ensuring that the sum of the weights on the left and right sides in the same horizontal direction is 1, and setting adjustable parameters to control the smoothness of the transition area, so that the splicing effect is more in line with actual needs; S20, respectively extracting pixels in the overlapping area of ​​the left and right original images, and performing pixel multiplication operation with the corresponding weight transition template, thereby accurately adjusting the weight distribution of pixels in the overlapping area to optimize the image fusion basis; S30, adding the pixel results of the left and right overlapping areas after the multiplication operation, and then replacing the data of the corresponding positions of the left and right original images with the addition result, so as to achieve accurate update and fusion optimization of the image data; S40, after removing the overlapping area, splicing the original image after replacing the data, repeating the above steps to process each image one by one, so as to gradually eliminate the splicing marks, and finally obtain a high-quality pathology slide scanning result without splicing marks.

2. A method for real-time image stitching and transition based on pathological slides as claimed in claim 1, characterized in that: In step S10, the weight transition template is generated by first calculating the minimum distance between the pixel point and the boundary of the overlapping area in the horizontal and vertical directions, using a weighted calculation mechanism based on distance measurement to determine the initial weight coefficient, and then obtaining the final weight through mathematical transformation, thereby constructing a weight transition system that adapts to the image characteristics.

3. A method for real-time image stitching and transition based on pathological slides as claimed in claim 2, characterized in that: In step S10, the method of calculating the minimum distance between the pixel point and the overlap region boundary in the horizontal and vertical directions is achieved by comparing the absolute value of the difference between the pixel coordinate component and the overlap region size component.

4. A method for real-time image stitching and transition based on pathological slides as claimed in claim 2, characterized in that: In step S10, the calculation of the initial weighting coefficient is determined based on the ratio of the minimum distance product of the pixel points in each direction to the sum of the corresponding distance products of all the pixel points.

5. The real-time image stitching transition method based on pathological slides as claimed in claim 1, characterized in that: In step S10, the smaller the value of the adjustable parameter is, the slower the pixel value in the transition area changes, and the more natural and smooth the fusion at the joint is.

6. A method for real-time image stitching and transition based on pathological slides as claimed in claim 3, characterized in that: In step S10, the minimum value between the pixel point and the transition area boundary in two dimensions is calculated as: ; in, is the weighting factor of the pixel value of an image at that pixel point, and the pixel point is located in the overlapping area of ​​the two fields of view; are pixels in the transition region. The closer they are to the transition region boundary, the smaller their contribution to the overall intensity. dim represents the size in the horizontal and vertical directions. The coordinates representing the pixel are extracted as two components in the horizontal and vertical directions; The length and width of the overlapping area are expressed as two components in the horizontal and vertical directions.

7. A method for real-time image stitching and transition based on pathological slides as described in any one of claims 1 to 6, characterized in that: In step S10, the final weight is: ; in, is a weighting factor of the pixel value of an image at this pixel point, and the pixel point is located in the overlapping area of ​​the two fields of view; α is an adjustable parameter; is the initial weighting coefficient.

8. A real-time image stitching transition device based on pathology slides, characterized in that: include: A preprocessing module reserves overlapping areas when scanning two adjacent original images; The weight transition module generates weight transition templates on the left and right sides based on the distance information between the pixel point and the boundary of the overlapping area, determines the weight of each pixel in the transition area, ensures that the sum of the weights on the left and right sides in the same horizontal direction is 1, and sets adjustable parameters to control the smoothness of the transition area, so that the splicing effect is more in line with actual needs; The processing module extracts the pixels of the overlapping areas of the left and right original images respectively, and performs pixel multiplication operation with the corresponding weight transition template, so as to accurately adjust the weight distribution of the pixels in the overlapping areas to optimize the basis of image fusion; the pixel results of the left and right overlapping areas after the multiplication operation are added, and then the data of the corresponding positions of the left and right original images are replaced with the addition result to realize the accurate update and fusion optimization of the image data; after removing the overlapping area, the original images after the replacement data are spliced, and the steps of the processing module are processed one by one in a loop, so as to gradually eliminate the splicing marks, and finally obtain high-quality pathology slide scanning results without splicing marks.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the real-time image stitching and transition method based on pathological slides as described in any one of claims 1 to 7.

10. A readable storage medium, characterized in that: A computer program is stored in the readable storage medium, and the computer program includes a program code for controlling a process to execute the process, and the process includes the real-time image stitching and transition method based on pathological slides according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Image splicing method and terminal

    CN110276717A

  • Rapid panoramic stitching method and system for microscopic images

    CN111626936A

  • Image fusion method and system

    CN111798540A

  • Pathological section processing method and device, computer readable medium and electronic equipment

    CN114388105A

  • Fast image fusion method and system based on vision field information

    CN116542894A

Cited By

  • Method and system for eliminating real-time splicing trace of pathological section scanning image

    CN121685328A

  • Multi-object dependency constraint streaming splicing compression method and device and medium

    CN122550352A

  • Objective table jumping coupling detection, compensation and closed-loop control method and system, and medium

    CN122632635A

  • Stage runout coupled closed-loop control method, system, and medium

    CN122632635B