Multi-dyed image accurate matching method and device based on same wax block and application of multi-dyed image accurate matching method and device

By performing image preprocessing, feature extraction and transformation matrix calculation on the same wax block, accurate matching of multiple staining images is achieved, solving the problem of difficulty in comparing multiple staining results in traditional techniques, improving diagnostic accuracy and reducing costs. Experimental costs.

CN118691655AInactive Publication Date: 2024-09-24SHENZHEN SHENGQIANG TECH

Patent Information

Application Number
CN202411166986.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In traditional staining operations, HE staining, immunohistochemistry (IHC) and fluorescent staining techniques are usually performed on different sections, making it difficult to directly effectively compare and comprehensively analyze multiple staining results in the same area, increasing the complexity of research. Complexity and uncertainty.

Method used

Through image preprocessing, feature extraction, transformation matrix calculation, image transformation, optimization and verification, accurate matching and corresponding area analysis of multiple stained images on the same wax block are achieved, including image registration using SIFT features and RANSAC algorithms. , calculate the affine transformation matrix, and perform image resampling to achieve precise alignment.

Benefits of technology

It significantly improves diagnostic accuracy, simplifies operating procedures, reduces experimental costs, provides more comprehensive and accurate information, reduces the number of sections and consumption of staining reagents, and saves researchers time and energy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691655A
    Figure CN118691655A
Patent Text Reader

Abstract

The invention provides a multi-dyed image accurate matching method and device based on the same wax block and application of the multi-dyed image accurate matching method and device, and the method comprises the steps: firstly carrying out the preprocessing including cutting, rotating and zooming of HE and IHC dyed images, and guaranteeing the preliminary alignment of the images; and then feature extraction is carried out, and image registration is carried out through SIFT features and an FLANN algorithm. Then calculating a transformation matrix comprising translation, rotation and scaling parameters by using an RANSAC algorithm, transforming the IHC image according to the matrix, and performing image resampling on non-integer coordinates in transformation; and then the registered image is optimized and verified, so that the accuracy and reliability of the registration result are ensured. And finally, accurate matching and comprehensive analysis of various dyeing results are realized by comparing the same region under different dyeing methods. The method improves the diagnosis accuracy, simplifies the operation process, reduces the experiment cost, and has remarkable advantages in the field of medical image processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical image processing technology, and in particular to a method and device for accurate matching of multiple stained images based on the same wax block and its application. Background Art

[0002] In the field of modern pathology research, HE staining, as a basic and widely used staining method, provides a key means for observing the morphological structure of tissue cells. It has an irreplaceable position in pathology diagnosis and research.

[0003] With the advancement of science and technology, especially the booming development of molecular biology, immunohistochemistry (IHC) and fluorescent staining techniques have emerged. These advanced technologies have brought new possibilities for in-depth exploration of the distribution, location and expression of proteins.

[0004] However, in traditional staining operations, HE staining, immunohistochemistry (IHC) and fluorescent staining techniques are often performed on different sections. This brings a significant problem. Since the operations are performed on different sections, it is difficult to directly compare and comprehensively analyze the multiple staining results of the same area.

[0005] For example, when researchers try to understand the relationship between the morphological structure of cells and protein expression in a specific area, due to the limitations of the staining method, it is impossible to intuitively compare multiple staining results in the same area, which increases the complexity and uncertainty of the research.

[0006] Therefore, in order to overcome this problem, developing a method that can perform multiple stainings on the same wax block at the same time and achieve accurate matching of corresponding areas is of vital importance to promote the in-depth development of pathology research. Summary of the invention

[0007] The embodiments of the present application provide a method, device and application for accurate matching of multiple stained images based on the same wax block, which aims to solve the problems existing in the current technology, such as the inability to match corresponding areas under different forms of slices.

[0008] The core technology of the present invention is mainly to achieve accurate matching and corresponding area analysis of multiple stained images on the same wax block through a series of image preprocessing, feature extraction, transformation matrix calculation, image transformation, optimization and verification operations.

[0009] In a first aspect, the present application provides a method for accurate matching of multiple stained images based on the same wax block, the method comprising the following steps: S00, pre-process the HE and IHC stained images to ensure preliminary alignment between the images; S10, performing feature extraction, selecting feature points or feature regions in the preprocessed image, so as to establish a corresponding relationship between the two stained images; S20, calculating a transformation matrix, using the extracted feature points or feature regions to calculate a transformation matrix between the HE and IHC images, where parameters covered by the transformation matrix include translation, rotation, and scaling; S30, performing image transformation, transforming the IHC image according to the obtained transformation matrix, and generating a target image so as to accurately align the target image with the HE image; S40, performing optimization processing on the registered image, including smoothing edges and enhancing contrast; At the same time, the accuracy and reliability of the registration results can be guaranteed by comparing the image quality before and after registration or by using known standard images for verification; S50. By comparing the same area under different staining methods, accurate matching and comprehensive analysis of multiple staining results can be achieved.

[0010] Furthermore, in step S10, after feature extraction, image registration is performed using SIFT features, specifically including using the SIFT algorithm to detect key points and descriptors on the HE and IHC images, and using the FLANN algorithm to match key points in the two images.

[0011] Furthermore, in step S20, the transformation matrix between the HE and IHC images is calculated using the RANSAC algorithm.

[0012] Furthermore, in step S20, the specific steps of using the RANSAC algorithm to calculate the transformation matrix between the HE and IHC images are: Select a set of matching point pairs obtained by image registration through SIFT features, including at least three pairs of point pairs, and each pair of point pairs includes a point in one image and a corresponding point in another image; The RANSAC algorithm is used to solve the affine transformation matrix, which is composed of matching point pairs according to the affine transformation formula.

[0013] 5. Further, in step S30, an affine transformation is performed on one image using a transformation matrix so as to align it with another image; During the transformation process, if the transformed coordinates are non-integers, image resampling is performed to obtain transformed image pixel values.

[0014] Furthermore, in step S20, the specific steps of using the RANSAC algorithm to solve and obtain the affine transformation matrix are: Randomly select three points from a set of matching point pairs and use these three points to estimate the affine transformation matrix; Use the estimated affine transformation matrix to transform the remaining points and calculate the error between the transformed points and the corresponding matching points; Points with errors less than the threshold are considered as inliers, i.e. correctly matched points; Repeat the above steps to the maximum number of iterations, and record the number of internal points in each iteration; The affine transformation matrix estimated by the iteration with the largest number of inliers is selected as the final result.

[0015] Furthermore, preprocessing includes cropping, rotation and scaling.

[0016] In a second aspect, the present application provides a device for accurately matching multiple stained images based on the same wax block, comprising: The preprocessing module preprocesses the HE and IHC stained images to ensure preliminary alignment between the images; A feature extraction module performs feature extraction and selects feature points or feature areas in the preprocessed image so as to establish a corresponding relationship between the two stained images; A transformation matrix calculation module is used to calculate the transformation matrix, and calculate the transformation matrix between the HE and IHC images using the extracted feature points or feature areas. The parameters covered by the transformation matrix include translation, rotation and scaling; An image transformation module is used to transform the image. According to the obtained transformation matrix, the IHC image is transformed to generate a target image so as to align it accurately with the HE image. The optimization processing module performs optimization processing on the registered image, including smoothing edges and enhancing contrast. At the same time, the image quality before and after registration is compared or verified using known standard images to ensure the accuracy and reliability of the registration result. The comparison module compares the same area under different staining methods to achieve accurate matching and comprehensive analysis of multiple staining results.

[0017] In a third aspect, the present application provides an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the above-mentioned method for precise matching of multiple stained images based on the same wax block.

[0018] In a fourth aspect, the present application 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 a process. The process includes the above-mentioned method for precise matching of multiple stained images based on the same wax block.

[0019] The main contributions and innovations of the present invention are as follows: 1. Improve diagnostic accuracy: In the prior art, since different staining methods are usually performed on different sections, it is difficult to directly compare multiple staining results in the same area, which may lead to diagnostic deviations. However, the present invention can perform multiple staining on the same wax block, and achieve accurate matching and comprehensive analysis, providing more comprehensive and accurate information for pathological diagnosis, and significantly improving diagnostic accuracy. For example, in cancer diagnosis, it can provide more accurate judgment basis for determining the boundaries of tumor cells and the distribution of specific proteins in cells.

[0020] 2. Simplify the operation process: Traditional technology requires tedious comparison between different slices, which is complicated and time-consuming. The present invention avoids this situation, greatly simplifies the operation process, and saves researchers time and energy. For example, in the past, it may take a lot of time to find and compare the corresponding areas on different slices, but now it can be analyzed directly on the processing results of the same wax block.

[0021] 3. Reduce experimental costs: The existing technology requires the preparation of multiple slices and the use of a large amount of staining reagents, which is costly. The present invention reduces the number of slices and the consumption of staining reagents, effectively reducing experimental costs. Taking large-scale pathological research as an example, in the long run, the present invention can save a lot of experimental material costs.

[0022] In summary, the present invention has significant advantages over the prior art in terms of diagnostic accuracy, operating procedures and experimental costs, and provides a more efficient, economical and accurate solution for pathological research and clinical diagnosis.

[0023] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 is a partial flow chart of a method for accurate matching of multiple stained images based on the same wax block according to an embodiment of the present application; Figure 2 is one of the images after preprocessing according to an embodiment of the present application; Figure 3 is the remaining image after preprocessing according to the embodiment of the present application; Figure 4 is a reference image for registration according to an embodiment of the present application; Figure 5 is a registered floating image according to an embodiment of the present application; Figure 6 is a registered image according to an embodiment of the present application; Figure 7 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] 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.

[0026] 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.

[0027] In traditional staining operations, HE staining, immunohistochemistry (IHC) and fluorescent staining techniques are often performed on different sections. This brings about a significant problem. Since the operations are performed on different sections, it is difficult to directly compare and comprehensively analyze the multiple staining results of the same area.

[0028] Based on this, the present invention solves the problems existing in the prior art through a series of operations such as image preprocessing, feature extraction, transformation matrix calculation, image transformation, optimization and verification.

[0029] Embodiment 1 This application aims to propose a method for accurately matching multiple stained images based on the same wax block. Specifically, Figure 1 , the method comprising: S00, Image preprocessing: Preprocess HE and IHC stained images, including cropping, rotation, and scaling, to ensure preliminary alignment between images; The specific operations are as follows: 1) Cropping: Remove the irrelevant edge parts of the image and keep only the valid area containing the tissue sample. For example, if there is a blank area or marking information at the edge of the image, it will be cut off. You can accurately cut by setting the coordinate range according to the approximate range of the tissue sample.

[0030] 2) Rotation: If the image has a deviation in shooting angle, for example, the tissue sample in the image is not placed horizontally or vertically, it is rotated at a certain angle as needed to achieve a normal viewing angle. The rotation angle can be determined by calculating the main direction of the image or by referring to certain landmark structures in the image.

[0031] 3) Scaling: Adjust the size of the image so that the tissue samples in different images have similar size ratios. For example, if the tissue sample in one image looks too large or too small, scale it to a certain ratio to facilitate subsequent processing and comparison.

[0032] S10, feature extraction: extract feature points or feature regions from the preprocessed image (generally feature regions have similar contours, such as Figure 2 , Figure 3 ), these features should be stable and unique so as to establish the correspondence between the two stained images; In this embodiment, if Figure 1 In , SIFT features are used for image registration (feature extraction is for image registration): 1. Feature detection: Use SIFT algorithm to detect keypoints and descriptors on HE and IHC images (or fluorescence images), respectively.

[0033] 2. Feature matching: Use FLANN to match key points in two images.

[0034] Among them, SIFT (Scale-Invariant Feature Transform) feature is a feature descriptor widely used in the fields of image processing and computer vision. For example, in image stitching, by extracting SIFT features of two images to be stitched and matching them, the corresponding relationship between them can be found, thereby achieving accurate stitching. Another example is in target recognition, by extracting SIFT features of the target object and comparing them with a known feature library, it can be determined whether a specific target object exists in the image.

[0035] Among them, FLANN (Fast Library for Approximate Nearest Neighbors) is a library for fast approximate nearest neighbor search in high-dimensional space. For example, in image feature matching, FLANN can be used to quickly find the approximate matching relationship between feature points in two images, thereby realizing image registration, splicing and other operations.

[0036] like Figure 4 is the reference image for registration, such as Figure 5 is the registered floating image, such as Figure 6 is the image after registration.

[0037] S20, transformation matrix calculation: using the extracted feature points or feature regions, calculate the transformation matrix between the HE and IHC images (or fluorescence images), including parameters such as translation, rotation, and scaling.

[0038] In this embodiment, RANSAC is used to estimate the affine transformation matrix from the matching point pairs. The steps are as follows: 1) First, you need a set of matching point pairs (usually at least 3 pairs), which are found in the two images by the feature matching algorithm (SIFT). Each pair of points includes a point in one image and a corresponding point in the other image.

[0039] 2) Use RANSAC to solve the affine transformation matrix. This involves solving a system of linear equations consisting of the formula for the affine transformation of the matching point pairs. The formula is as follows:

[0040] Among them, x, y: represent the original coordinates of the point; x', y': this represents the new coordinates of the original coordinate point x, y after some transformation (such as translation, rotation, scaling, etc.); a, b, c, d control rotation, scaling and tilt, tx, ty control translation. Affine transformation maintains the collinearity of points and the parallelism of lines.

[0041] Among them, the basic steps of the RANSAC algorithm are as follows: Random sampling: Randomly select 3 points from the matching point pairs (because the affine transformation matrix requires at least 3 points to solve).

[0042] Model estimation: Use these 3 points to estimate the affine transformation matrix.

[0043] Model evaluation: Use the estimated affine transformation matrix to transform the remaining points and calculate the error between the transformed points and the corresponding matching points.

[0044] Determine inliers: Based on a preset threshold, points with errors less than the threshold are considered inliers (i.e. correctly matched points).

[0045] Repeated iteration: Repeat the above steps multiple times (usually there is a preset maximum number of iterations), and record the number of inliers at each iteration.

[0046] Select the best model: select the affine transformation matrix estimated by the iteration with the largest number of inliers as the final result.

[0047] Among them, RANSAC (Random Sample Consensus) is an algorithm for estimating model parameters from data containing a large number of outliers. In the transformation matrix calculation of the present invention, it is used to more accurately estimate the affine transformation matrix from the matching point pairs found by the feature matching algorithm (such as SIFT).

[0048] S30, image transformation: transform the IHC image (or fluorescence image) according to the calculated transformation matrix to generate a target image so that it is aligned with the HE image. The steps are as follows: 1) Image transformation: Use the solved affine transformation matrix to perform an affine transformation on one image to align it with another image. For example: Figures 4 to 6 .

[0049] 2) Image resampling: During the transformation process, if the transformed coordinates are non-integer, image resampling (nearest neighbor interpolation, bilinear interpolation, and bicubic interpolation) is required to obtain the transformed image pixel values. Finally, Figure 5 and Figure 4 The registration is obtained Figure 6 .

[0050] S40, optimization and verification: Optimize the registered image, smooth the edges, enhance the contrast, etc. At the same time, by comparing the image quality before and after registration or using known standard images for verification, ensure the accuracy and reliability of the registration result.

[0051] S50. By comparing the same area under different staining methods, accurate matching and comprehensive analysis of multiple staining results can be achieved.

[0052] Embodiment 2 Based on the same concept, the present application also proposes a multi-stained image accurate matching device based on the same wax block, comprising: The preprocessing module preprocesses the HE and IHC stained images to ensure preliminary alignment between the images; A feature extraction module performs feature extraction and selects feature points or feature areas in the preprocessed image so as to establish a corresponding relationship between the two stained images; A transformation matrix calculation module is used to calculate the transformation matrix, and calculate the transformation matrix between the HE and IHC images using the extracted feature points or feature areas. The parameters covered by the transformation matrix include translation, rotation and scaling; An image transformation module is used to transform the image. According to the obtained transformation matrix, the IHC image is transformed to generate a target image so as to align it accurately with the HE image. The optimization processing module performs optimization processing on the registered image, including smoothing edges and enhancing contrast. At the same time, the image quality before and after registration is compared or verified using known standard images to ensure the accuracy and reliability of the registration result. The comparison module compares the same area under different staining methods to achieve accurate matching and comprehensive analysis of multiple staining results.

[0053] Embodiment 3 This embodiment also provides an electronic device, referring to Figure 7 , 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.

[0054] 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 embodiments of the present application.

[0055] 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.

[0056] 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 .

[0057] The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any one of the methods for accurate matching of multiple stained images based on the same wax block in the above embodiments.

[0058] 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 .

[0059] 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.

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

[0061] 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 method for accurate matching of multiple stained images based on the same wax block according to the first embodiment.

[0062] 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.

[0063] 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.

[0064] 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.

[0065] 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.

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

Claims

1. A precise matching method for multiple stained images based on the same wax block. It is characterized in that The following steps are involved: S00, pre-process the HE and IHC stained images to ensure preliminary alignment between the images; S10, performing feature extraction, selecting feature points or feature regions in the preprocessed image, so as to establish a corresponding relationship between the two stained images; S20, calculating a transformation matrix, using the extracted feature points or feature regions to calculate a transformation matrix between the HE and IHC images, where parameters covered by the transformation matrix include translation, rotation, and scaling; S30, performing image transformation, transforming the IHC image according to the obtained transformation matrix, and generating a target image so as to accurately align the target image with the HE image; S40, performing optimization processing on the registered image, including smoothing edges and enhancing contrast; At the same time, the accuracy and reliability of the registration results can be guaranteed by comparing the image quality before and after registration or by using known standard images for verification; S50. By comparing the same area under different staining methods, accurate matching and comprehensive analysis of multiple staining results can be achieved.

2. A method for accurate matching of multiple stained images based on the same wax block as claimed in claim 1, It is characterized in that In step S10, after feature extraction, image registration is performed using SIFT features, specifically including using the SIFT algorithm on the HE and IHC images to detect key points and descriptors, and using the FLANN algorithm to match the key points in the two images.

3. A method for accurately matching multiple stained images based on the same wax block as claimed in claim 2, It is characterized in that In step S20, the transformation matrix between the HE and IHC images is calculated using the RANSAC algorithm.

4. A method for accurate matching of multiple stained images based on the same wax block as claimed in claim 3, It is characterized in that In step S20, the specific steps of using the RANSAC algorithm to calculate the transformation matrix between the HE and IHC images are: Select a set of matching point pairs obtained by image registration through SIFT features, including at least three pairs of point pairs, and each pair of point pairs includes a point in one image and a corresponding point in another image; The RANSAC algorithm is used to solve the affine transformation matrix, which is composed of matching point pairs according to the affine transformation formula.

5. A method for accurate matching of multiple stained images based on the same wax block as claimed in claim 4, It is characterized in that In step S30, an affine transformation is performed on one image using a transformation matrix so as to align it with another image; During the transformation process, if the transformed coordinates are non-integers, image resampling is performed to obtain transformed image pixel values.

6. A method for accurate matching of multiple stained images based on the same wax block as claimed in claim 4, It is characterized in that In step S20, the specific steps of using the RANSAC algorithm to solve the affine transformation matrix are: Randomly select three points from a set of matching point pairs and use these three points to estimate the affine transformation matrix; Use the estimated affine transformation matrix to transform the remaining points and calculate the error between the transformed points and the corresponding matching points; Points with errors less than the threshold are considered as inliers, i.e. correctly matched points; Repeat the above steps to the maximum number of iterations, and record the number of internal points in each iteration; The affine transformation matrix estimated by the iteration with the largest number of inliers is selected as the final result.

7. A method for accurate matching of multiple stained images based on the same wax block according to any one of claims 1 to 6, It is characterized in that Preprocessing includes cropping, rotation and scaling.

8. A device for accurately matching multiple stained images based on the same wax block. It is characterized in that include: The preprocessing module preprocesses the HE and IHC stained images to ensure preliminary alignment between the images; A feature extraction module performs feature extraction and selects feature points or feature areas in the preprocessed image so as to establish a corresponding relationship between the two stained images; A transformation matrix calculation module is used to calculate the transformation matrix, and calculate the transformation matrix between the HE and IHC images using the extracted feature points or feature areas. The parameters covered by the transformation matrix include translation, rotation and scaling; An image transformation module is used to transform the image. According to the obtained transformation matrix, the IHC image is transformed to generate a target image so as to align it accurately with the HE image. The optimization processing module performs optimization processing on the registered image, including smoothing edges and enhancing contrast. At the same time, the image quality before and after registration is compared or verified using known standard images to ensure the accuracy and reliability of the registration result. The comparison module compares the same area under different staining methods to achieve accurate matching and comprehensive analysis of multiple staining results.

9. An electronic device comprising a memory and a processor, It is characterized in that The memory stores a computer program, and the processor is configured to run the computer program to execute the method for accurate matching of multiple stained images based on the same wax block according to any one of claims 1 to 7.

10. A readable storage medium, It is characterized in that The readable storage medium stores a computer program, which includes a program code for controlling a process to execute a process, wherein the process includes the method for accurate matching of multiple stained images based on the same wax block according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Remote sensing image registration method based on improved KAZE features and Pseudo-RANSAC algorithm

    CN108401565B

  • Microscopic digital image registration method suitable for histopathological staining section

    CN116664640A

Cited By

  • Instance segmentation method and device for early intestinal cancer vessel infringement phenomenon analysis and readable storage medium thereof

    CN120235889A

  • Instance segmentation method, device and readable storage medium for analysis of vascular invasion of early-stage intestinal cancer

    CN120235889B