Fusion method of multiple fluorescent dyeing images
By preprocessing and Poisson fusion of multiple sets of cell staining images and fluorescent staining images of multiple channels, clear and rich multiple fluorescent staining images are generated, which solves the problem of insufficient image information integration in the prior art and improves pathological diagnosis visual effect and accuracy.
Patent Information
- Application Number
- CN202411145243.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-22
AI Technical Summary
The prior art is difficult to effectively fuse fluorescent stained images of multiple channels, resulting in insufficient integration of image information when multiple positive signals need to be considered comprehensively in pathological diagnosis, which affects the visual effect and accuracy of the diagnosis.
By obtaining multiple sets of cell staining images and fluorescent staining images of multiple channels, pre-processing is performed to extract cell segmentation maps and positive signal maps. Poisson fusion technology is used to fuse the cell segmentation maps and positive signal maps to generate clear and rich Multiple fluorescence staining images.
The comprehensive response of images of multiple channels in a fusion image is achieved, which improves the visual effect and richness of the image, facilitates doctors to make comprehensive judgments, and enhances the accuracy of pathological diagnosis.
Smart Images

Figure CN119006426A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computational pathology, and more particularly to a method for fusing multiple fluorescent staining images. Background Art
[0002] Multiple fluorescence quantitative technology is based on fluorescence quantitative technology, using a combination of several different fluorescent groups, combined with the instrument's ability to detect fluorescence in different channels to achieve real-time quantitative detection of multiple targets. Using equipment such as laser scanning confocal microscope (LSCM) or wide-field fluorescence microscope, different fluorescent labeled images are collected through different fluorescence filters, thereby obtaining fluorescent staining images of multiple different channels.
[0003] In routine diagnosis, pathologists often need to analyze the expression of multiple immune markers of pathological tissues or cells on sections. This work requires the combination of fluorescent staining information from multiple channels. However, the fluorescent staining images of each channel are obtained using laser scanning confocal microscopes and imaging software, and the images of all channels are not comprehensively reflected in one image. Therefore, image fusion technology is needed to integrate the information of fluorescent staining conditions of multiple channels. For example, in the data of multiple fluorescent staining sections of Beijing Tiantan Hospital, there are positive signals from multiple channels, including CD31, CD4, CD8, MX1, OCIAD2, etc., a total of 12 channels. Multiple stainings have obtained multiple pictures for different positive signals, and the positive signal on each picture represents the positive situation of a certain immune protein. Since the diagnosis of pathology requires comprehensive consideration of multiple positive signals, it is necessary to fuse the fluorescent staining images of multiple channels to facilitate doctors to make a comprehensive judgment on the pathological situation. Summary of the invention
[0004] In order to overcome at least one of the defects of the prior art, the present invention provides a method for fusing multiple fluorescent staining images.
[0005] The present invention aims to solve the above technical problems at least to a certain extent.
[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0007] A method for fusing multiple fluorescent staining images comprises the following steps:
[0008] S1: Acquire multiple groups of cell staining images and corresponding fluorescent staining images of multiple channels;
[0009] S2: preprocessing the multiple groups of cell staining images respectively to obtain multiple groups of cell segmentation images respectively;
[0010] S3: extracting multiple positive signal images from the fluorescent staining images of the multiple channels;
[0011] S4: fusing multiple groups of cell segmentation images to obtain a first fused image;
[0012] S5: fusing multiple positive signal images to obtain a second fused image;
[0013] S6: Fusing the first fused image and the second fused image to obtain a multiple fluorescence staining image.
[0014] Further, in step S2, the plurality of groups of cell staining images are preprocessed respectively to obtain a plurality of groups of cell segmentation maps respectively, including:
[0015] S2.1: converting the RGB values of the pixels of the multiple groups of cell staining images into grayscale values to obtain multiple groups of grayscale images;
[0016] S2.2: performing threshold processing on the plurality of groups of grayscale images to obtain a plurality of groups of binary images;
[0017] S2.3: performing corrosion processing and dilation processing on multiple groups of binary images to obtain cell mask images;
[0018] S2.4: Extract multiple groups of cell segmentation images from multiple groups of cell staining images through cell mask images.
[0019] Further, step S2.2, threshold processing is performed on the plurality of groups of grayscale images, including:
[0020] A threshold is set in advance, and each pixel of the grayscale image is traversed. If the grayscale value of a pixel is higher than or equal to the threshold, the pixel is classified as the maximum value of the RGB color space; if the grayscale value of a pixel is lower than the threshold, the pixel is classified as the minimum value of the RGB color space.
[0021] Further, step S2.3, corrosion processing is performed on the multiple sets of binary images, including:
[0022] The minimum value in the neighborhood of each pixel in the binary image is found, and the minimum value is the cell staining image noise. The cell staining image noise is eliminated to obtain the eroded binary image.
[0023] Further, in step S2.3, the dilation processing of the plurality of binary images includes:
[0024] The positions of the cell staining image noise described in step S2.3 are filled with white pixel blocks to obtain a dilated binary image.
[0025] Further, step S3, extracting multiple positive signal images from the fluorescent staining images of the multiple channels, including:
[0026] S3.1: converting the fluorescent staining images of multiple channels from the RGB color space to the HSV color space to obtain the fluorescent staining images after the color space conversion;
[0027] S3.2: extracting positive signals from the fluorescent staining image after the color space conversion of the initial channel by masking, and obtaining a positive signal map of the initial channel;
[0028] S3.3: switch to the fluorescent staining image of the next channel;
[0029] S3.4: Determine whether the fluorescence staining image of the next channel is the preset channel. If the fluorescence staining image of the next channel is the preset channel, end the extraction of positive signals and obtain multiple positive signal images; if the fluorescence staining image of the next channel is not the preset channel, return to step S3.3.
[0030] Furthermore, the mask is obtained according to a preset HSV range in the HSV color space.
[0031] Further, in step S4, the step of fusing the multiple groups of cell segmentation images to obtain a first fused image includes: performing Poisson fusion on the multiple groups of cell segmentation images obtained in step S2.4 to obtain a first fused image.
[0032] Further, in step S5, the plurality of positive signal images are fused to obtain a second fused image, including: fusing the plurality of positive signal images obtained in step S3.4 by linear weighting, and then performing Poisson fusion to obtain the second fused image.
[0033] Further, in step S6, the first fused image and the second fused image are fused to obtain a multiple fluorescence staining image, including:
[0034] The first fused image and the second fused image are subjected to Poisson fusion to obtain a multiple fluorescence staining image.
[0035] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0036] The present invention assigns different colors to the positive signals of two groups of cell segmentation images and different fluorescently stained pathological sections and then fuses them. The use of different colors is conducive to doctors using a variety of different positive signals to comprehensively judge the pathological conditions. Finally, the fusion obtains multiple fluorescent staining images. Compared with the multi-spectral image analysis software that uses images of more channels for fusion and comprehensively reflects the images of all channels in one fused image, the fused image obtained by the present invention is clear and discernible, rich in content, and has a good visual effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a flow chart of the fusion method described in the present invention;
[0038] Figure 2 The first group of cell images described in the embodiment;
[0039] Figure 3 A second group of cell images described in the embodiment;
[0040] Figure 4 The first group of segmentation diagrams described in the embodiment;
[0041] Figure 5 A second group of segmentation diagrams described in the embodiment;
[0042] Figure 6 The first group of cell segmentation images described in the embodiment;
[0043] Figure 7 The second group of cell segmentation images described in the embodiment;
[0044] Figure 8 The image before color modification in the fluorescent stained section described in the embodiment;
[0045] Fig. 9 The image after color modification in the fluorescent stained section described in the embodiment;
[0046] Fig.10 The N-Combine image described in the embodiment;
[0047] Fig.11 The C-Combine image described in the embodiment;
[0048] Fig.12 This is the multiple fluorescent staining image described in the present invention. DETAILED DESCRIPTION
[0049] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;
[0050] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;
[0051] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0052] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0053] Example 1
[0054] A fusion method for multiple fluorescent staining images, such as Figure 1 As shown, the following steps are included:
[0055] S1: Acquire multiple groups of cell staining images and corresponding fluorescent staining images of multiple channels;
[0056] S2: preprocessing the multiple groups of cell staining images respectively to obtain multiple groups of cell segmentation images respectively;
[0057] S3: extracting multiple positive signal images from the fluorescent staining images of the multiple channels;
[0058] S4: fusing multiple groups of cell segmentation images to obtain a first fused image;
[0059] S5: fusing multiple positive signal images to obtain a second fused image;
[0060] S6: Fusing the first fused image and the second fused image to obtain a multiple fluorescence staining image.
[0061] In the specific implementation process, the present invention assigns different colors to two groups of cell segmentation images and multiple positive signal images of different fluorescent stained pathological sections and then fuses them. The use of different colors is beneficial for doctors to use a variety of different positive signals to comprehensively judge the pathological conditions. The present invention comprehensively reflects the images of all channels in a fused image. The fused image obtained by the present invention is clear and discernible, rich in content, and has a good visual effect, so that doctors can make a comprehensive judgment on the pathological conditions.
[0062] Example 2
[0063] This embodiment further discloses the following contents based on the embodiment 1:
[0064] Step S2, preprocessing the plurality of groups of cell staining images respectively to obtain a plurality of groups of cell segmentation maps respectively, comprises:
[0065] S2.1: converting the RGB values of the pixels of the multiple groups of cell staining images into grayscale values to obtain multiple groups of grayscale images;
[0066] S2.2: performing threshold processing on the plurality of groups of grayscale images to obtain a plurality of groups of binary images;
[0067] S2.3: performing corrosion processing and dilation processing on multiple groups of binary images to obtain cell mask images;
[0068] In the specific implementation process, the corrosion method is used to filter the cell staining image to eliminate the influence of irrelevant noise in the image, and the expansion process is used to keep the cell morphology in the image as unchanged as possible to obtain the cell mask image after noise elimination.
[0069] function ErodeImage(image:Image,kernel:Kernel)returns Image
[0070] / / Initialize an empty image to hold the result of the erosion
[0071] erodedImage=createEmptyImageSameSizeAs(image)
[0072] kernelWidth=getWidth(kernel)
[0073] kernelHeight=getHeight(kernel)
[0074] / / Perform Erosion
[0075] for each pixel at(x,y)in image
[0076] minVal=infinity / / if dilateImage maxVal=-infinity
[0077] for dx from 0to kernelWidth-1
[0078] for dy from 0to kernelHeight-1
[0079] if kernel[dx][dy]==1
[0080] neighbourX=x+dx-kernelWidth / 2
[0081] neighbourY=y+dy-kernelHeight / 2
[0082] if isValidPixel(neighbourX,neighbourY,image)
[0083] val=image[neighbourX][neighbourY]
[0084] minVal=min(minVal,val) / / if dilateImage maxVal=
[0085] max(maxVal,val)
[0086] erodedImage[x][y]=minVal / / if dilateImage dilatedImage[x][y]=maxVal
[0087] S2.4: Extract multiple groups of cell segmentation images from multiple groups of cell staining images through cell mask images.
[0088] Step S2.2, performing threshold processing on the plurality of groups of grayscale images, comprising:
[0089] A threshold is set in advance, and each pixel of the grayscale image is traversed. If the grayscale value of a pixel is higher than or equal to the threshold, the pixel is classified as the maximum value of the RGB color space; if the grayscale value of a pixel is lower than the threshold, the pixel is classified as the minimum value of the RGB color space.
[0090] Step S2.3, performing corrosion processing on multiple sets of binary images, including:
[0091] The minimum value in the neighborhood of each pixel in the binary image is found, and the minimum value is the cell staining image noise. The cell staining image noise is eliminated to obtain the eroded binary image.
[0092] Step S2.3, performing dilation processing on the multiple sets of binary images, comprises:
[0093] The positions of the cell staining image noise described in step S2.3 are filled with white pixel blocks to obtain a dilated binary image.
[0094] Example 3
[0095] This embodiment further discloses the following contents based on Embodiments 1 and 2:
[0096] Step S3, extracting a plurality of positive signal images from the fluorescent staining images of the plurality of channels, comprising:
[0097] S3.1: converting the fluorescent staining images of multiple channels from the RGB color space to the HSV color space to obtain the fluorescent staining images after the color space conversion;
[0098] S3.2: extracting positive signals from the fluorescent staining image after the color space conversion of the initial channel by masking, and obtaining a positive signal map of the initial channel;
[0099] The fluorescence staining image of the initial channel is red
[0100] S3.3: switch to the fluorescent staining image of the next channel;
[0101] S3.4: Determine whether the fluorescence staining image of the next channel is the preset channel. If the fluorescence staining image of the next channel is the preset channel, end the extraction of positive signals and obtain multiple positive signal images; if the fluorescence staining image of the next channel is not the preset channel, return to step S3.3.
[0102] In the specific implementation process, the mask of the red area in the image is obtained according to the HSV upper and lower values of red in the HSV color space;
[0103]
[0104] The mask is obtained according to a preset HSV range in the HSV color space.
[0105] In a given HSV (hue, saturation, brightness) image, a threshold mask (ThresholdMask) is created according to the specified lower bound (LowerBound, lb) and upper bound (UpperBound, ub). This mask is used to identify which pixels' color values fall within the specified HSV range. Pixels within the range are marked as white, and pixels outside the range remain black or other colors.
[0106] Example 4
[0107] This embodiment further discloses the following contents based on Embodiments 1, 2 and 3:
[0108] Step S4, fusing the multiple groups of cell segmentation images to obtain a first fused image, includes: performing Poisson fusion on the multiple groups of cell segmentation images obtained in step S2.4 to obtain a first fused image.
[0109] In the specific implementation process, multiple groups of cell segmentation maps are Poisson fused to obtain the cell fusion map N-Combine;
[0110] / / Poisson Blending
[0111] function poisson_blend(BaseImg base,OverlayImg overlay,Mask mask):
[0112] initialize ResultImg with dimensions of BaseImg
[0113] / / Create a Poisson equation setup using the mask
[0114] for each pixel(x,y)in Mask:
[0115] if mask(x,y)==1: / / Inside the mask region
[0116] ResultImg(x,y)=overlay(x,y)
[0117] else: / / Outside the mask or boundary
[0118] ResultImg(x,y)=base(x,y)
[0119] / / Solve the Poisson equation to blend images
[0120] ResultImg=solve_poisson(ResultImg) / / solve Poisson equation
[0121] return ResultImg
[0122] In the specific implementation process, the Poisson fusion process includes:
[0123] Initialize the result image: First, create a result image of the same size as the base layer image to store the final fusion result.
[0124] Set Poisson equation: Use mask to determine which pixels belong to the overlay area to be fused and which pixels remain unchanged (i.e. pixels of the base layer). For pixels with a value of 1 in the mask (indicated to be within the fused area), set the pixel value of the corresponding position in the result image to the pixel value of the corresponding position in the overlay image. For pixels with a value of 0 in the mask (indicated to be outside the fused area or on the boundary), set the pixel value of the corresponding position in the result image to the pixel value of the corresponding position in the base image.
[0125] Solving Poisson’s equation: After setting the initial conditions, a Poisson’s equation needs to be solved to smooth the transition boundary so that the overlay image can blend naturally into the base image.
[0126] Return the result image: Finally, return the result image after Poisson fusion processing.
[0127] Step S5, fusing multiple positive signal images to obtain a second fused image, including: fusing the multiple positive signal images obtained in step S3.4 using linear weighting, then performing Poisson fusion, and then adjusting the transparency of the positive signal images after Poisson fusion to obtain the second fused image.
[0128] In the specific implementation process, multiple positive signal images are fused using linear weighting, including:
[0129] A weight is determined for the color of each positive signal, which reflects the importance of the color channel in the final fused image.
[0130] The multi-fluorescence-stained sections were decomposed into different color channels, and the color channels of all fluorescent colors in the positive signal map were extracted separately. Then, each color channel was weighted, and the pixel value in each color channel was multiplied by the corresponding weight. Then, the weighted color channels were superimposed.
[0131] In step S6, the first fused image and the second fused image are fused to obtain a multiple fluorescent staining image, including:
[0132] The first fused image and the second fused image are subjected to Poisson fusion to obtain a multiple fluorescence staining image.
[0133] In the specific implementation process, the method proposed in the present invention is tested on a dataset of multiple fluorescently stained pathological sections of Beijing Tiantan Hospital. The dataset contains fluorescently stained continuous section images of 10 different patients, where each patient's stained images are divided into two groups P1 and P2, each group containing 6 fluorescently stained images of different channels and 1 cell image. The data used in this example comes from the pathological images of multiple fluorescently stained sections of Beijing Tiantan Hospital. The method of the present invention is used to achieve image fusion, specifically the following steps:
[0134] S1: Figure 2 and Figure 3 As shown, two groups of fluorescently stained cell images are read, and then image preprocessing is performed to obtain a preliminary segmentation map, such as Figure 4 and Figure 5 As shown, Figure 4 and Figure 5 is a binary image;
[0135] S2: Figure 6 and Figure 7 As shown, the cell segmentation map is obtained by implementing the opening operation through corrosion and expansion methods;
[0136] S3: Figure 8 and Fig. 9 As shown, the positive signal in each fluorescently stained slice is extracted and its color is modified. Figure 8To extract the image before the positive signal of the fluorescent stained slice, Fig. 9 This is the image after extracting the positive signal;
[0137] S4: Fig.10 and Fig.11 As shown, we get N-Combine and C-Combine images. Fig.11 An image that combines multiple positive signals;
[0138] S4: Fig.12 As shown, N-Combine and C-Combine perform Poisson fusion to obtain the final result graph. Fig.12 A colorful image with rich colors.
[0139] By comparison, in the dataset of multiple fluorescent stained pathological sections of Tiantan Hospital, the image obtained after fusion using Infrom software has a single tone, containing only three colors: black, red, and blue; the image obtained after fusion using this method is rich in color, clear and discernible, and has more information. Therefore, this method has certain value in clinical application and can assist doctors in making better clinical diagnoses.
[0140] The same or similar reference numerals correspond to the same or similar components;
[0141] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;
[0142] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for fusing multiple fluorescent staining images, characterized in that: The following steps are involved: S1: Acquire multiple groups of cell staining images and corresponding fluorescent staining images of multiple channels; S2: preprocessing the multiple groups of cell staining images respectively to obtain multiple groups of cell segmentation images respectively; S3: extracting multiple positive signal images from the fluorescent staining images of the multiple channels; S4: fusing multiple groups of cell segmentation images to obtain a first fused image; S5: fusing multiple positive signal images to obtain a second fused image; S6: Fusing the first fused image and the second fused image to obtain a multiple fluorescence staining image.
2. The method for fusing multiple fluorescent staining images according to claim 1, characterized in that: Step S2, preprocessing the plurality of groups of cell staining images respectively to obtain a plurality of groups of cell segmentation maps respectively, comprises: S2.1: converting the RGB values of the pixels of the multiple groups of cell staining images into grayscale values to obtain multiple groups of grayscale images; S2.2: performing threshold processing on the plurality of groups of grayscale images to obtain a plurality of groups of binary images; S2.3: performing corrosion processing and dilation processing on multiple groups of binary images to obtain cell mask images; S2.4: Extract multiple groups of cell segmentation images from multiple groups of cell staining images through cell mask images.
3. The method for fusing multiple fluorescent staining images according to claim 2, characterized in that: Step S2.2, performing threshold processing on the plurality of groups of grayscale images, comprising: A threshold is set in advance, and each pixel of the grayscale image is traversed. If the grayscale value of a pixel is higher than or equal to the threshold, the pixel is classified as the maximum value of the RGB color space; if the grayscale value of a pixel is lower than the threshold, the pixel is classified as the minimum value of the RGB color space.
4. The method for fusing multiple fluorescent staining images according to claim 3, characterized in that: Step S2.3, performing corrosion processing on multiple sets of binary images, including: The minimum value in the neighborhood of each pixel in the binary image is found, and the minimum value is the cell staining image noise. The cell staining image noise is eliminated to obtain the eroded binary image.
5. The method for fusing multiple fluorescent staining images according to claim 4, characterized in that: Step S2.3, performing dilation processing on the multiple sets of binary images, comprises: The positions of the cell staining image noise described in step S2.3 are filled with white pixel blocks to obtain a dilated binary image.
6. The method for fusing multiple fluorescent staining images according to claim 1, characterized in that: Step S3, extracting a plurality of positive signal images from the fluorescent staining images of the plurality of channels, comprising: S3.1: converting the fluorescent staining images of multiple channels from the RGB color space to the HSV color space to obtain the fluorescent staining images after the color space conversion; S3.2: extracting positive signals from the fluorescent staining image after the color space conversion of the initial channel by masking, and obtaining a positive signal map of the initial channel; S3.3: switch to the fluorescent staining image of the next channel; S3.4: Determine whether the fluorescence staining image of the next channel is the preset channel. If the fluorescence staining image of the next channel is the preset channel, end the extraction of positive signals and obtain multiple positive signal images; if the fluorescence staining image of the next channel is not the preset channel, return to step S3.
3.
7. The method for fusing multiple fluorescent staining images according to claim 6, characterized in that: The mask is obtained according to a preset HSV range in the HSV color space.
8. The method for fusing multiple fluorescent staining images according to claim 1, characterized in that: Step S4, fusing the multiple groups of cell segmentation images to obtain a first fused image, includes: performing Poisson fusion on the multiple groups of cell segmentation images obtained in step S2.4 to obtain a first fused image.
9. The method for fusing multiple fluorescent staining images according to claim 6, characterized in that: Step S5, fusing the multiple positive signal images to obtain a second fused image, including: fusing the multiple positive signal images obtained in step S3.4 using linear weighting, and then performing Poisson fusion to obtain the second fused image.
10. The method for fusing multiple fluorescent staining images according to claim 9, characterized in that: In step S6, the first fused image and the second fused image are fused to obtain a multiple fluorescent staining image, including: The first fused image and the second fused image are subjected to Poisson fusion to obtain a multiple fluorescence staining image.
Citation Information
Cited By
Multimodal pathological image processing method, detection system and kit thereof
CN122265807A
