Fluorescence image registration method and device, computer equipment, readable storage medium and program product
By obtaining the deviation value of the reference fluorescence image and the fluorescence image to be registered in the gene sequencer, and determining the registration result, the problem of low accuracy of fluorescence image registration in the traditional method is solved, and the data quality of gene sequencing is improved.
Patent Information
- Application Number
- CN202410838452.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-24
AI Technical Summary
The traditional fluorescence image registration method has interference from bubbles, impurities, and light spots in the gene sequencer, resulting in low fluorescence image registration accuracy.
By acquiring the reference fluorescence image and the fluorescence image to be registered, the correlation between the central registration area and the central reference area corresponding to the reference fluorescence image is determined. If the correlation is less than or equal to the threshold, each registration area and the reference fluorescence are obtained. Deviation values between corresponding reference areas in the image are used to determine the registration results between the reference fluorescence image and the fluorescence image to be registered based on these deviation values to avoid interference caused by using only one area for registration.
It improves the accuracy of fluorescence image registration and ensures the accuracy and reliability of gene sequencing results.
Smart Images

Figure CN118691650A
Abstract
Description
Technical Field
[0001] The present application relates to the field of gene sequencing technology, and in particular to a fluorescence image registration method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] Gene sequencers are devices used for gene sequencing, detection and generation of raw data of species gene sequences. Gene sequencers are high-tech equipment that combines multidisciplinary technologies, including instrument direction, reagent direction, etc., and have extremely high requirements for each technical direction. The instrument direction includes electronic information, intelligent algorithms, mechanical control, optics, fluids, chip design, bioinformatics, etc.; the reagent direction includes protein, raw materials, biochemistry, etc.
[0003] Most of the gene sequencers on the target market rely on the collection, recognition and registration of fluorescent images, and finally extract the original data of the gene sequence from the fluorescent image (commonly known as: upstream), which is provided to the downstream for bioinformatics analysis (bioinformatics analysis), thereby generating a gene sequencing report. It can be seen that the accuracy of the data depends greatly on the fluorescent image to ensure the generation of high-quality data. Among them, the sequencing chip is called a flow cell, and there are multiple flow channels (Lane channels) on the flow cell, where chemical reagents flow to produce chemical reactions. When the gene fragment reacts, it produces fluorescence under the excitation of the laser, and then these fluorescent points are photographed by a camera to obtain a fluorescent image.
[0004] However, in the traditional fluorescence image registration method, a large amount of chemical reagents flow through the flow pool, and it is difficult to avoid interference from bubbles, impurities, and light spots, resulting in low accuracy of fluorescence image registration. Summary of the invention
[0005] Based on this, it is necessary to provide a fluorescence image registration method, apparatus, computer device, computer-readable storage medium and computer program product that can improve the accuracy in order to solve the above technical problems.
[0006] In a first aspect, the present application provides a fluorescence image registration method, comprising:
[0007] Acquire a reference fluorescent image and a fluorescent image to be registered; the fluorescent image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area;
[0008] determining a central region correlation between the central registration region and a central reference region corresponding to the reference fluorescent image;
[0009] If the central region correlation is less than or equal to a first correlation threshold, obtaining a deviation value between each registration region and a corresponding reference region in the reference fluorescence image;
[0010] Based on the deviation values corresponding to the respective registration regions, a registration result between the reference fluorescence image and the fluorescence image to be registered is determined.
[0011] In one embodiment, the fluorescence image to be registered includes at least three registration regions; and determining the registration result between the reference fluorescence image and the fluorescence image to be registered based on the deviation values corresponding to the respective registration regions includes:
[0012] Subtracting the deviation values corresponding to the respective registration regions from each other in pairs to obtain at least two difference values, and determining a target difference value from the at least two difference values; the target difference value is less than a difference threshold value;
[0013] Determine a registration region corresponding to the target difference, and use the registration region corresponding to the target difference as an element to form a region set;
[0014] If there are at least two elements in the region set, a registration result between the reference fluorescent image and the fluorescent image to be registered is determined based on the registration regions of the at least two elements.
[0015] In one embodiment, determining the registration result between the reference fluorescent image and the fluorescent image to be registered based on the registration area of the at least two elements includes:
[0016] For the registration area of each element, obtain the correlation corresponding to each registration area;
[0017] Determine a first target registration region from the registration regions of the at least two elements based on a correlation corresponding to the registration regions of the at least two elements;
[0018] If the correlation of the first target registration area is greater than the second correlation threshold, it is determined that the reference fluorescence image and the fluorescence image to be registered are successfully registered, and the registration result between the reference fluorescence image and the fluorescence image to be registered is the deviation value corresponding to the first target registration area.
[0019] In one embodiment, the method further comprises:
[0020] If the correlation of the first target registration region is less than or equal to a second correlation threshold, determining a second target registration region from the at least two registration regions based on the correlation corresponding to each registration region;
[0021] If the correlation of the second target registration area is greater than the third correlation threshold, it is determined that the reference fluorescent image and the fluorescent image to be registered are successfully registered, and the registration result between the reference fluorescent image and the fluorescent image to be registered is the deviation value corresponding to the second target registration area.
[0022] In one embodiment, after determining the central region correlation between the central registration region and the central reference region corresponding to the reference fluorescent image, the method further comprises:
[0023] If the central region correlation is greater than a first correlation threshold, it is determined that the reference fluorescent image and the fluorescent image to be registered are successfully registered, and the registration result between the reference fluorescent image and the fluorescent image to be registered is the deviation value corresponding to the central region.
[0024] In one of the embodiments, the at least two registration regions include a central registration region and four non-central registration regions, and the four non-central registration regions are located at different non-central positions.
[0025] In one embodiment, the method for determining the correlation between the registration region and the reference region corresponding to the reference fluorescent image includes:
[0026] Acquire an initial correlation distribution map between the registration region and a reference region corresponding to the reference fluorescence image;
[0027] Determine a correlation region in the initial correlation distribution map with a peak extreme value point in the initial correlation distribution map as the center;
[0028] Based on the correlation region, a correlation between the registration region and a corresponding reference region is determined.
[0029] In one embodiment, determining the correlation between the registration region and the corresponding reference region based on the correlation region includes:
[0030] Obtaining a region matrix corresponding to the correlation region;
[0031] determining a standard deviation, a maximum value, and a minimum value of the region matrix;
[0032] Based on the standard deviation, maximum value and minimum value of the region matrix, a correlation between the registration region and the corresponding reference region is determined.
[0033] In a second aspect, the present application also provides a fluorescence image registration device, comprising:
[0034] An image acquisition module, used for acquiring a reference fluorescent image and a fluorescent image to be registered; the fluorescent image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area;
[0035] a correlation determination module, configured to determine a central region correlation between the central registration region and a central reference region corresponding to the reference fluorescent image;
[0036] a deviation value acquisition module, configured to acquire a deviation value between each registration region and a corresponding reference region in the reference fluorescent image if the central region correlation is less than or equal to a first correlation threshold;
[0037] The registration module is used to determine the registration result between the reference fluorescent image and the fluorescent image to be registered based on the deviation value corresponding to each registration area.
[0038] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0039] Acquire a reference fluorescent image and a fluorescent image to be registered; the fluorescent image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area;
[0040] determining a central region correlation between the central registration region and a central reference region corresponding to the reference fluorescent image;
[0041] If the central region correlation is less than or equal to a first correlation threshold, obtaining a deviation value between each registration region and a corresponding reference region in the reference fluorescence image;
[0042] Based on the deviation values corresponding to the respective registration regions, a registration result between the reference fluorescence image and the fluorescence image to be registered is determined.
[0043] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0044] Acquire a reference fluorescent image and a fluorescent image to be registered; the fluorescent image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area;
[0045] determining a central region correlation between the central registration region and a central reference region corresponding to the reference fluorescent image;
[0046] If the central region correlation is less than or equal to a first correlation threshold, obtaining a deviation value between each registration region and a corresponding reference region in the reference fluorescence image;
[0047] Based on the deviation values corresponding to the respective registration regions, a registration result between the reference fluorescence image and the fluorescence image to be registered is determined.
[0048] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0049] Acquire a reference fluorescent image and a fluorescent image to be registered; the fluorescent image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area;
[0050] determining a central region correlation between the central registration region and a central reference region corresponding to the reference fluorescent image;
[0051] If the central region correlation is less than or equal to a first correlation threshold, obtaining a deviation value between each registration region and a corresponding reference region in the reference fluorescence image;
[0052] Based on the deviation values corresponding to the respective registration regions, a registration result between the reference fluorescence image and the fluorescence image to be registered is determined.
[0053] The above-mentioned fluorescence image registration method, device, computer equipment, computer-readable storage medium and computer program product obtain a reference fluorescence image and a fluorescence image to be registered, wherein the fluorescence image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area; determine the central area correlation between the central registration area and the central reference area corresponding to the reference fluorescence image, and if the central area correlation is less than or equal to a first correlation threshold, obtain the deviation value between each registration area and the corresponding reference area in the reference fluorescence image. Then, based on the deviation value corresponding to each registration area, the problem of interference caused by only using one area for registration can be avoided, and the registration result between the reference fluorescence image and the fluorescence image to be registered can be determined more accurately, thereby improving the accuracy of fluorescence image registration. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1A diagram of an application environment of a fluorescence image registration method in an embodiment;
[0056] Figure 2 It is a structural schematic diagram of a single optical path system of an embodiment;
[0057] Figure 3 A schematic diagram of the structure of a multi-light path system according to an embodiment;
[0058] Figure 4 is a schematic diagram of a fluorescent image in one embodiment;
[0059] Figure 5 is a schematic diagram of a registration area of a fluorescence image to be registered in one embodiment;
[0060] Figure 6 is a schematic diagram of an initial correlation distribution diagram in one embodiment;
[0061] Figure 7 A schematic diagram of the relationship between sigma and the side length L of the correlation region in one embodiment;
[0062] Figure 8 is a structural block diagram of a fluorescence image registration device in one embodiment;
[0063] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] In one embodiment, Figure 1As shown, a fluorescence image registration method is provided. This embodiment uses the method applied to a computer device as an example. The computer device can be a terminal or a server. It can be understood that the method can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0066] In this embodiment, the fluorescence image registration method includes the following steps:
[0067] Step S102, acquiring a reference fluorescence image and a fluorescence image to be registered; the fluorescence image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area.
[0068] When the gene fragment reacts, fluorescence is generated under the excitation of the laser; the fluorescence image sequence is acquired through the camera module of the sequencing instrument; the reference fluorescence image and the fluorescence image to be registered are determined from the fluorescence image sequence. Among them, the reference fluorescence image is the image used as the reference in the fluorescence image registration process. The camera module acquires the fluorescence image sequence through the light propagation path (optical path) of the lens, filter, and camera. The camera module can be a single optical path system or a multi-optical path system, and the multi-optical path system can be a dual optical path system or a four-optical path system. Figure 2 The schematic diagram of the structure of a single optical path system is shown in FIG. Figure 3 Shown is a schematic diagram of the structure of a multi-optical path system.
[0069] Some single optical path systems are a combination of a lens (microscope), a filter, and a camera. Some dual optical path systems are a combination of a lens, two filters, and a camera; some quad optical path systems are a combination of two lenses, two filters per lens, and two cameras. The number of optical paths depends on how many different paths a point on the object can take to become a point on the image.
[0070] For example, the flow cell of a gene sequencing chip has 4 channels, each of which is virtually divided into 5 rows (Swath) x 80 columns (Tile) of small grids, a total of 1600 grids, also known as FOV (field of view), with hundreds of thousands of such clusters (fluorescent spots, clusters) in each field of view. Figure 4 shown.
[0071] It is understandable that the cluster points have fixed spatial coordinates on the chip, but due to mechanical errors, the positions of the cluster points in the fluorescence images obtained in each field of view have certain deviations. Therefore, it is necessary to use the camera module of the sequencing instrument to capture the field of view in each round of reaction to obtain a fluorescence image sequence and align the fluorescence images so that the cluster points can fall into the theoretically corresponding positions.
[0072] The fluorescence image to be registered and the reference fluorescence image satisfy that the deflection angle, scaling and deformation (image distortion) are all less than a preset threshold. The fluorescence image to be registered and the reference fluorescence image can be a fluorescence image collected by a single optical path system or a fluorescence image collected by a multi-optical path system.
[0073] Optionally, the computer device may determine the first fluorescence image from the fluorescence image sequence as the reference fluorescence image, or may determine any fluorescence image from the fluorescence image sequence as the reference fluorescence image, which is not limited here.
[0074] Optionally, the fluorescence image to be registered includes at least two registration areas, the at least two registration areas include a central registration area, and also include at least one non-central registration area; correspondingly, the reference fluorescence image includes at least two reference areas, the at least two reference areas include a central reference area, and also include at least one non-central reference area. Wherein, the registration areas and the reference areas correspond one to one, the central registration area is an area at the central position of the fluorescence image to be registered, the non-central registration area is an area at the non-central position of the fluorescence image to be registered, the central reference area is an area at the central position of the reference fluorescence image, and the non-central reference area is an area at the non-central position of the reference fluorescence image.
[0075] Optionally, the at least two registration areas include a central registration area and four non-central registration areas, and the four non-central registration areas are located at different non-central positions.
[0076] like Figure 5As shown in the figure, the registration regions are set at the center and four corners of the fluorescence image to be registered, and the side length of each registration region is 0.065~0.1 of the side length of the fluorescence image to be registered. For example, when the size of the fluorescence image to be registered is 3000x3000, the area size of the registration region is 200x200 or 300x300. Statistics show that when interference factors such as bubbles, impurities, and light spots appear in the flow cell, the probability that all five registration regions are covered by interference factors is extremely low, which can prove the effectiveness of the registration region division method, and it will not affect the use of more computing resources. The size of the reference area and the corresponding registration area is the same.
[0077] Step S104 , determining a central region correlation between the central registration region and a central reference region corresponding to the reference fluorescent image.
[0078] The computer device uses a correlation evaluation algorithm to determine the central region correlation between the central registration region and the central reference region corresponding to the reference fluorescence image, wherein the correlation evaluation algorithm can be set as needed.
[0079] Optionally, the computer device determines a target pixel point having the strongest correlation between the central registration area and a central reference area corresponding to the reference fluorescent image, and uses the correlation of the target pixel point as the central area correlation.
[0080] Optionally, the computer device determines a target pixel point at a second strongest correlation or a center position between the central registration area and a central reference area corresponding to the reference fluorescent image, and uses the correlation of the target pixel point as the central area correlation.
[0081] Step S106: if the central region correlation is less than or equal to the first correlation threshold, then obtaining a deviation value between each registration region and a corresponding reference region in the reference fluorescence image.
[0082] The first correlation threshold can be set as needed and is not limited here. The offset value is the value of the coordinate deviation between the registration area and the reference area. For example, the offset value (Offset) can be the sub-pixel deviation value between the registration area and the reference area in the x direction and the y direction.
[0083] Optionally, for each registration area and the corresponding reference area in the reference fluorescence image, the computer device traverses each pixel in the registration area and each pixel in the reference area, determines the pixel pair with the strongest correlation between the registration area and the reference area, and uses the deviation value between the pixel point of the registration area and the center pixel point in the pixel pair as the deviation value between the registration area and the reference area.
[0084] Optionally, for each registration area and the corresponding reference area in the reference fluorescence image, the computer device calculates the phase correlation between the registration area and the reference area, determines the pixel pair corresponding to the maximum phase correlation, and uses the deviation value between the pixel point of the registration area and the center pixel point in the pixel pair as the deviation value between the registration area and the reference area.
[0085] Optionally, after determining the central area correlation between the central registration area and the central reference area corresponding to the reference fluorescence image, it also includes: if the central area correlation is greater than a first correlation threshold, determining that the reference fluorescence image and the fluorescence image to be registered are successfully registered, and the registration result between the reference fluorescence image and the fluorescence image to be registered is the deviation value corresponding to the central area.
[0086] Step S108 : determining a registration result between the reference fluorescence image and the fluorescence image to be registered based on the deviation values corresponding to the respective registration regions.
[0087] The registration result includes registration success and registration failure. If the registration is successful, the offset value (Offset) between the reference fluorescence image and the fluorescence image to be registered can be obtained.
[0088] The above-mentioned fluorescence image registration method obtains a reference fluorescence image and a fluorescence image to be registered, and the fluorescence image to be registered includes at least two registration areas, and at least the two registration areas include a central registration area; the central area correlation between the central registration area and the central reference area corresponding to the reference fluorescence image is determined, and if the central area correlation is less than or equal to the first correlation threshold, the deviation value between each registration area and the corresponding reference area in the reference fluorescence image is obtained, then, based on the deviation value corresponding to each registration area, the problem of interference caused by using only one area for registration can be avoided, and the registration result between the reference fluorescence image and the fluorescence image to be registered can be determined more accurately, thereby improving the accuracy of fluorescence image registration. Furthermore, the computer device more accurately registers the reference fluorescence image and the fluorescence image to be registered, and can subsequently extract more correct cluster point (fluorescence point, cluster) information, thereby obtaining more accurate gene sequencing results.
[0089] In one embodiment, the fluorescence image to be registered includes at least three registration areas; based on the deviation values corresponding to the respective registration areas, determining the registration result between the reference fluorescence image and the fluorescence image to be registered, including: subtracting the deviation values corresponding to the respective registration areas in pairs to obtain at least two differences, and determining a target difference from the at least two differences; the target difference is less than a difference threshold; determining the registration area corresponding to the target difference, and using the registration area corresponding to the target difference as an element to constitute a region set; if there are at least two elements in the region set, determining the registration result between the reference fluorescence image and the fluorescence image to be registered based on the registration areas of the at least two elements.
[0090] The at least three registration areas include a central registration area and at least two non-central registration areas. The difference threshold can be set as required, such as a difference threshold of 1.0 pixel.
[0091] Optionally, the computer device obtains the deviation value corresponding to each registration area, subtracts each deviation value from each other to obtain at least two difference values, and determines a target difference value that is less than a difference threshold value from the at least two difference values.
[0092] Exemplarily, the fluorescence image to be registered includes 5 registration areas, and the computer device obtains the deviation value corresponding to each registration area, subtracts each deviation value from each other to obtain at least two differences, and determines a target difference value less than 1.0 pixel from the at least two differences; determines the registration area corresponding to the target difference value, and uses the registration area corresponding to the target difference value as an element to constitute a region set, that is, the elements in the region set are used as candidate values to determine the registration result.
[0093] It can be understood that if there are at least two elements in the region set, it means that the deviation values corresponding to the at least two elements are substantially the same, and the reference fluorescent image and the fluorescent image to be registered can be determined.
[0094] Optionally, if there are at least two elements in the region set, a second target registration region is determined from the at least two registration regions based on the correlation corresponding to each registration region; if the correlation of the second target registration region is greater than a third correlation threshold, it is determined that the reference fluorescence image and the fluorescence image to be registered are successfully registered, and the registration result between the reference fluorescence image and the fluorescence image to be registered is the deviation value corresponding to the second target registration region. The number of elements in the region set is positively correlated with the credibility of the image registration, that is, the more elements in the region set, the higher the credibility of the image registration.
[0095] Optionally, based on the registration areas of at least two elements, the registration result between the reference fluorescence image and the fluorescence image to be registered is determined, including: for the registration area of each element, obtaining the correlation corresponding to each registration area; based on the correlation corresponding to the registration areas of at least two elements, determining a first target registration area from the registration areas of at least two elements; if the correlation of the first target registration area is greater than a second correlation threshold, it is determined that the reference fluorescence image and the fluorescence image to be registered are successfully registered, and the registration result between the reference fluorescence image and the fluorescence image to be registered is the deviation value corresponding to the first target registration area.
[0096] The second correlation threshold can be set as needed.
[0097] Optionally, the computer device determines a registration region with the greatest correlation from the registration regions of at least two elements as a first target registration region.
[0098] Optionally, the computer device determines a registration region with the second largest correlation from the registration regions of at least two elements as a first target registration region.
[0099] Optionally, the computer device may also determine the first target registration area in other ways, such as randomly determining the first target registration area from the registration areas of at least two elements, etc., which is not limited here.
[0100] Optionally, the above method also includes: if the correlation of the first target registration area is less than or equal to a second correlation threshold, then based on the correlation corresponding to each registration area, determining the second target registration area from at least two registration areas; if the correlation of the second target registration area is greater than a third correlation threshold, then determining that the baseline fluorescence image and the fluorescent image to be registered are successfully registered, and the registration result between the baseline fluorescence image and the fluorescent image to be registered is the deviation value corresponding to the second target registration area.
[0101] The third correlation threshold can be set as needed.
[0102] Optionally, the computer device determines a registration region with the greatest correlation from various registration regions as the second target registration region.
[0103] Optionally, the computer device determines a registration region with the second largest correlation from the registration regions of each element as a second target registration region.
[0104] Optionally, the computer device may also determine the second target registration area in other ways, such as randomly determining the second target registration area from various registration areas, etc., which is not limited here.
[0105] Optionally, if the correlation of the second target registration area is less than or equal to a third correlation threshold, it is determined that the registration of the reference fluorescent image and the fluorescent image to be registered has failed.
[0106] Optionally, if the correlation of the second target registration area is less than or equal to the third correlation threshold, at least 10 registration areas are randomly determined from the fluorescence image to be registered, and the step of determining the central area correlation between the central registration area and the central reference area corresponding to the reference fluorescence image is returned to execute the above-mentioned step to improve the success rate of registration between the reference fluorescence image and the fluorescence image to be registered; the 10 registration areas include the central registration area.
[0107] In this embodiment, the computer device subtracts the deviation values corresponding to each registration area from each other to obtain at least two differences, and determines a target difference from the at least two differences, determines the registration area corresponding to the target difference, and uses the registration area corresponding to the target difference as an element to constitute a region set; then, if there are at least two elements in the region set, the registration result between the reference fluorescence image and the fluorescence image to be registered can be more accurately guaranteed.
[0108] Furthermore, the computer device determines a first target registration area from the registration areas of at least two elements based on the correlation corresponding to the registration areas of at least two elements; if the correlation of the first target registration area is greater than a second correlation threshold, it can be accurately determined that the baseline fluorescent image and the fluorescent image to be registered are successfully registered, and the registration result between the baseline fluorescent image and the fluorescent image to be registered is the deviation value corresponding to the first target registration area.
[0109] Furthermore, if the correlation of the first target registration area is less than or equal to the second correlation threshold, the computer device determines the second target registration area from at least two registration areas. If the correlation of the second target registration area is greater than the third correlation threshold, it can be accurately determined that the baseline fluorescence image and the fluorescent image to be registered are successfully registered, and the registration result between the baseline fluorescence image and the fluorescent image to be registered is the deviation value corresponding to the second target registration area.
[0110] In one embodiment, a method for determining the correlation between a registration area and a reference area corresponding to a reference fluorescence image includes: obtaining an initial correlation distribution map between the registration area and the reference area corresponding to the reference fluorescence image; determining a correlation area in the initial correlation distribution map with a peak extreme point in the initial correlation distribution map as the center; and determining the correlation between the registration area and the corresponding reference area based on the correlation area.
[0111] The position of the peak extreme point in the initial correlation distribution graph is the registration position. The correlation region is a region with the peak extreme point as the center, a side length of L, and an area of LxL. Figure 6 Shown is a schematic diagram of the initial correlation distribution map.
[0112] Optionally, the computer device calculates an initial correlation distribution map between the registration area and the reference area corresponding to the reference fluorescence image through an image correlation matching algorithm. The image correlation matching algorithm includes template matching (spatial domain method), Fourier phase correlation matching (frequency domain method), etc., but is not limited thereto. Figure 3 Shown is the initial correlation distribution map between the registration region and the reference region corresponding to the reference fluorescence image.
[0113] Optionally, based on the correlation area, the correlation between the registration area and the corresponding reference area is determined, including: obtaining a region matrix corresponding to the correlation area; determining the standard deviation, maximum value and minimum value of the region matrix; based on the standard deviation, maximum value and minimum value of the region matrix, determining the correlation between the registration area and the corresponding reference area.
[0114] Optionally, the computer device converts the correlation region into a region matrix, and determines the correlation between the registration region and the corresponding reference region based on the region matrix.
[0115] Optionally, the computer device determines a mean of the regional matrix and calculates a standard deviation based on the mean of the regional matrix.
[0116] Optionally, the computer device determines the correlation between the registration region and the corresponding reference region using the following formula: Relation = (Max-Min) / Std. Wherein, Relation is the correlation between the registration region and the corresponding reference region, Max is the maximum value of the region matrix, Min is the minimum value of the region matrix, and Std is the standard deviation of the region matrix.
[0117] It can be understood that the size of the correlation Relation between the registration region and the corresponding reference region is related to the size of the side length L of the correlation region, and the side length L of the correlation region is determined according to the standard deviation sigma of the peak curve. Figure 7 As shown in the figure, 4 to 6 times sigma is used to determine the side length L of the correlation region, for example, L = 6*sigma. Among them, Sigma is a measure of the width of the peak section, and the standard deviation Std of the area matrix is a measure of the fluctuation of the signal height.
[0118] Relation is a multiple of std. When the peak of the peak extreme point in the initial correlation distribution graph is sharp, it will have little effect on the standard deviation std of the correlation area, but the ratio of (Max-Min) / std will become larger, that is, the correlation between the registration area and the corresponding reference area is stronger.
[0119] In this embodiment, the computer device obtains an initial correlation distribution map between the registration area and the reference area corresponding to the reference fluorescence image, and determines the correlation area in the initial correlation distribution map with the peak extreme point in the initial correlation distribution map as the center. Then, based on the correlation area, the correlation between the registration area and the corresponding reference area can be more accurately determined.
[0120] Furthermore, since the absolute value of the peak in the initial correlation distribution graph is related to the brightness of the image and the density of the cluster points, that is, when comparing different images, there may be a situation where the peak is high but the correlation is not high. For example, if the brightness of the two images is very high, the peak value (correlation) obtained may be relatively large, but if the two images are highly correlated but very dark, the peak value may be relatively small, that is, the correlation is more related to the sharpness of the peak (prominence). Therefore, the computer device obtains the regional matrix corresponding to the correlation area, and based on the standard deviation, maximum value and minimum value of the regional matrix, the correlation between the registration area and the corresponding reference area can be accurately determined, the interference caused by the changes in image brightness and cluster point density can be removed, and the correlation between the registration area and the reference area can be more accurately determined, so as to more accurately perform fluorescence image registration.
[0121] In one embodiment, another fluorescence image registration method is provided, which is applied to a computer device and includes the following steps:
[0122] Step A1, acquiring a reference fluorescent image and a fluorescent image to be registered; the fluorescent image to be registered includes at least two registration areas, the at least two registration areas include a central registration area and four non-central registration areas, and the four non-central registration areas are in different non-central positions.
[0123] Step A2, determining the central area correlation between the central registration area and the central reference area corresponding to the reference fluorescence image; if the central area correlation is greater than the first correlation threshold, determining that the reference fluorescence image and the fluorescence image to be registered are successfully registered, and the registration result between the reference fluorescence image and the fluorescence image to be registered is the deviation value corresponding to the central area; if the central area correlation is less than or equal to the first correlation threshold, executing steps A3 to A5.
[0124] Step A3, obtaining the deviation value between each registration area and the corresponding reference area in the reference fluorescence image; subtracting the deviation values corresponding to each registration area in pairs to obtain at least two differences, and determining a target difference from the at least two differences; the target difference is less than the difference threshold; determining the registration area corresponding to the target difference, and using the registration area corresponding to the target difference as an element to constitute a region set.
[0125] Step A4: if there are at least two elements in the region set, for the registration region of each element, obtain the correlation corresponding to each registration region; based on the correlation corresponding to the registration regions of the at least two elements, determine a first target registration region from the registration regions of the at least two elements;
[0126] Step A5, if the correlation of the first target registration area is greater than the second correlation threshold, it is determined that the base fluorescence image and the fluorescence image to be registered are successfully registered, and the registration result between the base fluorescence image and the fluorescence image to be registered is the deviation value corresponding to the first target registration area; if the correlation of the first target registration area is less than or equal to the second correlation threshold, execute step A6.
[0127] Step A6, based on the correlation corresponding to each registration area, determine a second target registration area from at least two registration areas; if the correlation of the second target registration area is greater than a third correlation threshold, it is determined that the baseline fluorescence image and the fluorescence image to be registered are successfully registered, and the registration result between the baseline fluorescence image and the fluorescence image to be registered is the deviation value corresponding to the second target registration area.
[0128] Among them, the method for determining the correlation between the registration area and the reference area corresponding to the reference fluorescence image includes: obtaining an initial correlation distribution map between the registration area and the reference area corresponding to the reference fluorescence image; determining the correlation area in the initial correlation distribution map with the peak extreme point in the initial correlation distribution map as the center; obtaining a region matrix corresponding to the correlation area; determining the standard deviation, maximum value and minimum value of the region matrix; based on the standard deviation, maximum value and minimum value of the region matrix, determining the correlation between the registration area and the corresponding reference area.
[0129] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0130] Based on the same inventive concept, the embodiment of the present application also provides a fluorescence image registration device for implementing the fluorescence image registration method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more fluorescence image registration device embodiments provided below can refer to the limitations of the fluorescence image registration method above, and will not be repeated here.
[0131] In an exemplary embodiment, Figure 8As shown, a fluorescence image registration device is provided, comprising: an image acquisition module 802, a correlation determination module 804, a deviation value acquisition module 806 and a registration module 808, wherein:
[0132] The image acquisition module 802 is used to acquire a reference fluorescent image and a fluorescent image to be registered; the fluorescent image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area.
[0133] The correlation determination module 804 is configured to determine a central region correlation between the central registration region and a central reference region corresponding to the reference fluorescent image.
[0134] The deviation value acquisition module 806 is configured to acquire a deviation value between each registration region and a corresponding reference region in the reference fluorescent image if the central region correlation is less than or equal to a first correlation threshold.
[0135] The registration module 808 is used to determine the registration result between the reference fluorescence image and the fluorescence image to be registered based on the deviation value corresponding to each registration area.
[0136] The above-mentioned fluorescence image registration device obtains a reference fluorescence image and a fluorescence image to be registered, wherein the fluorescence image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area; determines the central area correlation between the central registration area and the central reference area corresponding to the reference fluorescence image, and if the central area correlation is less than or equal to a first correlation threshold, obtains a deviation value between each registration area and the corresponding reference area in the reference fluorescence image. Then, based on the deviation values corresponding to each registration area, the problem of interference caused by only using one area for registration can be avoided, and the registration result between the reference fluorescence image and the fluorescence image to be registered can be determined more accurately, thereby improving the accuracy of fluorescence image registration.
[0137] In one embodiment, the fluorescence image to be registered includes at least three registration areas; the above-mentioned registration module 808 is also used to subtract the deviation values corresponding to the respective registration areas from each other to obtain at least two differences, and determine a target difference from the at least two differences; the target difference is less than a difference threshold; determine the registration area corresponding to the target difference, and use the registration area corresponding to the target difference as an element to constitute a region set; if there are at least two elements in the region set, then based on the registration areas of the at least two elements, determine the registration result between the reference fluorescence image and the fluorescence image to be registered.
[0138] In one embodiment, the above-mentioned registration module 808 is also used to obtain the correlation corresponding to each registration area for each element; based on the correlation corresponding to the registration areas of at least two elements, determine a first target registration area from the registration areas of the at least two elements; if the correlation of the first target registration area is greater than a second correlation threshold, it is determined that the reference fluorescence image and the fluorescent image to be registered are successfully registered, and the registration result between the reference fluorescence image and the fluorescent image to be registered is the deviation value corresponding to the first target registration area.
[0139] In one embodiment, the above-mentioned registration module 808 is also used to determine the second target registration area from the at least two registration areas based on the correlation corresponding to each registration area if the correlation of the first target registration area is less than or equal to a second correlation threshold; if the correlation of the second target registration area is greater than a third correlation threshold, it is determined that the reference fluorescence image and the fluorescent image to be registered are successfully registered, and the registration result between the reference fluorescence image and the fluorescent image to be registered is the deviation value corresponding to the second target registration area.
[0140] In one embodiment, the above-mentioned registration module 808 is also used to determine that the registration of the reference fluorescence image and the fluorescence image to be registered is successful if the correlation of the central area is greater than a first correlation threshold, and the registration result between the reference fluorescence image and the fluorescence image to be registered is the deviation value corresponding to the central area.
[0141] In one embodiment, the at least two registration regions include a central registration region and four non-central registration regions, and the four non-central registration regions are located at different non-central positions.
[0142] In one embodiment, the correlation determination module 804 is further used to obtain an initial correlation distribution map between the registration area and the reference area corresponding to the reference fluorescence image; determine the correlation area in the initial correlation distribution map with the peak extreme point in the initial correlation distribution map as the center; and determine the correlation between the registration area and the corresponding reference area based on the correlation area.
[0143] In one embodiment, the above-mentioned correlation determination module 804 is also used to obtain the regional matrix corresponding to the correlation area; determine the standard deviation, maximum value and minimum value of the regional matrix; and determine the correlation between the registration area and the corresponding reference area based on the standard deviation, maximum value and minimum value of the regional matrix.
[0144] Each module in the above-mentioned fluorescence image registration device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0145] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a fluorescent image registration method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0146] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0147] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0148] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0149] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0150] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0151] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0152] The technical features of the above embodiments may be combined arbitrarily. 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 application.
[0153] The above-described 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 fluorescence image registration method, characterized in that: The method comprises: Acquire a reference fluorescent image and a fluorescent image to be registered; the fluorescent image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area; determining a central region correlation between the central registration region and a central reference region corresponding to the reference fluorescent image; If the central region correlation is less than or equal to a first correlation threshold, obtaining a deviation value between each registration region and a corresponding reference region in the reference fluorescence image; Based on the deviation values corresponding to the respective registration regions, a registration result between the reference fluorescence image and the fluorescence image to be registered is determined.
2. The method according to claim 1, characterized in that The to-be-registered fluorescent image includes at least three registration regions; and determining the registration result between the reference fluorescent image and the to-be-registered fluorescent image based on the deviation values corresponding to the respective registration regions includes: Subtracting the deviation values corresponding to the respective registration regions from each other in pairs to obtain at least two difference values, and determining a target difference value from the at least two difference values; the target difference value is less than a difference threshold value; Determine a registration region corresponding to the target difference, and use the registration region corresponding to the target difference as an element to form a region set; If there are at least two elements in the region set, a registration result between the reference fluorescent image and the fluorescent image to be registered is determined based on the registration regions of the at least two elements.
3. The method according to claim 2, characterized in that The step of determining the registration result between the reference fluorescent image and the fluorescent image to be registered based on the registration area of the at least two elements comprises: For the registration area of each element, obtain the correlation corresponding to each registration area; Determine a first target registration region from the registration regions of the at least two elements based on a correlation corresponding to the registration regions of the at least two elements; If the correlation of the first target registration area is greater than the second correlation threshold, it is determined that the reference fluorescent image and the fluorescent image to be registered are successfully registered, and the registration result between the reference fluorescent image and the fluorescent image to be registered is the deviation value corresponding to the first target registration area.
4. The method according to claim 3, characterized in that The method further comprises: If the correlation of the first target registration region is less than or equal to a second correlation threshold, determining a second target registration region from the at least two registration regions based on the correlation corresponding to each registration region; If the correlation of the second target registration area is greater than the third correlation threshold, it is determined that the reference fluorescence image and the fluorescence image to be registered are successfully registered, and the registration result between the reference fluorescence image and the fluorescence image to be registered is the deviation value corresponding to the second target registration area.
5. The method according to any one of claims 1 to 4, characterized in that: The method for determining the correlation between the registration area and the reference area corresponding to the reference fluorescent image includes: Acquire an initial correlation distribution map between the registration region and a reference region corresponding to the reference fluorescence image; Determine a correlation region in the initial correlation distribution map with a peak extreme value point in the initial correlation distribution map as the center; Based on the correlation region, a correlation between the registration region and a corresponding reference region is determined.
6. The method according to claim 5, characterized in that The determining, based on the correlation region, the correlation between the registration region and the corresponding reference region comprises: Obtaining a region matrix corresponding to the correlation region; determining a standard deviation, a maximum value, and a minimum value of the region matrix; Based on the standard deviation, maximum value and minimum value of the region matrix, a correlation between the registration region and the corresponding reference region is determined.
7. A fluorescence image registration device, characterized in that: The device comprises: An image acquisition module, used for acquiring a reference fluorescent image and a fluorescent image to be registered; the fluorescent image to be registered includes at least two registration areas, and the at least two registration areas include a central registration area; a correlation determination module, configured to determine a central region correlation between the central registration region and a central reference region corresponding to the reference fluorescent image; a deviation value acquisition module, configured to acquire a deviation value between each registration region and a corresponding reference region in the reference fluorescent image if the central region correlation is less than or equal to a first correlation threshold; The registration module is used to determine the registration result between the reference fluorescent image and the fluorescent image to be registered based on the deviation value corresponding to each registration area.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
