Base cluster brightness correction method and device, electronic equipment and readable storage medium

By detecting the direction of luminance crosstalk and establishing a luminance value mapping table, the problem of low accuracy in luminance correction of base clusters was solved, and higher accuracy base recognition was achieved.

CN116721029BActive Publication Date: 2025-11-11ZYBIO INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310693996.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-12
Publication Date
2025-11-11
Estimated Expiration
2043-06-12

AI Technical Summary

Technical Problem

The accuracy of base cluster brightness correction in existing technologies is low, mainly because the random formation of base clusters on the biochip leads to inconsistent distances between base clusters in the same area, resulting in frequent brightness crosstalk.

Method used

By detecting the orientation of luminance crosstalk base clusters in the target base cluster image, a luminance value mapping table is established to store the luminance correction values ​​of luminance crosstalk base clusters at different pixel distances. These values ​​are then queried and applied to perform luminance correction on the base clusters to be corrected.

Benefits of technology

It improves the accuracy of base cluster brightness correction, reduces brightness crosstalk, and enhances the accuracy of base identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116721029B_ABST
    Figure CN116721029B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, electronic device, and readable storage medium for base cluster brightness correction, applied in the field of gene sequencing technology. The base cluster brightness correction method includes: if a brightness crosstalk base cluster is detected in a target base cluster image, then obtaining the brightness crosstalk direction of the crosstalk base cluster relative to the base cluster to be corrected; determining a brightness value mapping table along the crosstalk direction, wherein the brightness value mapping table stores the mapping relationship between a first actual brightness value and a brightness correction value of the crosstalk base cluster at different pixel distances from the base cluster to be corrected; querying the brightness correction value corresponding to the first actual brightness value in the brightness value mapping table; and correcting a second actual brightness value of the base cluster to be corrected based on the brightness correction value to obtain a brightness correction result. This application solves the technical problem of low correction accuracy for base cluster brightness correction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of gene sequencing technology, and in particular to a base cluster brightness correction method, apparatus, electronic device and readable storage medium. Background Technology

[0002] With the continuous development of science and technology, high-throughput sequencing has become the core technology for gene sequencing. After the base clusters of the gene sequence undergo a chemical reaction with fluorescent dyes, the generated fluorescent clusters can be photographed by a miniature camera to obtain corresponding fluorescent images. Then, based on the brightness value of the base clusters, the bases belonging to different clusters can be identified. Among these, the identification of bases is one of the important steps to achieve high-precision gene sequencing.

[0003] Currently, base identification typically relies on establishing a brightness crosstalk model between base clusters using a base cluster brightness imaging function. By minimizing the brightness crosstalk, a brightness correction matrix is ​​obtained, and then the brightness of base clusters in different fluorescence image regions is corrected using the brightness correction matrix, ultimately achieving brightness crosstalk correction between base clusters. However, since base clusters are randomly formed on biochips, the distances between base clusters in the same region are not exactly the same. This makes it easy for brightness crosstalk to occur when relying on the same brightness correction matrix to correct the brightness of base clusters in a certain image region. Therefore, the current accuracy of brightness correction for base clusters is low. Summary of the Invention

[0004] The main objective of this application is to provide a method, apparatus, electronic device, and readable storage medium for base cluster brightness correction, aiming to solve the technical problem of low correction accuracy in the prior art for brightness correction of base clusters.

[0005] To achieve the above objectives, this application provides a base cluster brightness correction method, the base cluster brightness correction method comprising:

[0006] If a luminance crosstalk base cluster is detected in the target base cluster image, the luminance crosstalk direction of the luminance crosstalk base cluster relative to the base cluster to be corrected is obtained.

[0007] A brightness value mapping table is determined in the brightness crosstalk direction, wherein the brightness value mapping table is used to store the mapping relationship between the first actual brightness value and the brightness correction value of the brightness crosstalk base cluster at different pixel distances from the base cluster to be corrected;

[0008] Look up the brightness correction value corresponding to the first actual brightness value in the brightness value mapping table;

[0009] Based on the brightness correction value, the second actual brightness value of the base cluster to be corrected is corrected to obtain the brightness correction result.

[0010] To achieve the above objectives, this application also provides a base cluster brightness correction device, the base cluster brightness correction device comprising:

[0011] The acquisition module is used to acquire the brightness crosstalk direction of the brightness crosstalk base cluster relative to the base cluster to be corrected if a brightness crosstalk base cluster is detected in the base cluster image to be corrected.

[0012] The determination module is used to determine a brightness value mapping table in the brightness crosstalk direction, wherein the brightness value mapping table is used to store the mapping relationship between the first actual brightness value and the brightness correction value of the brightness crosstalk base cluster at different pixel distances from the base cluster to be corrected;

[0013] The query module is used to query the brightness correction value corresponding to the first actual brightness value in the brightness value mapping table;

[0014] The correction module is used to correct the second actual brightness value of the base cluster to be corrected according to the brightness correction value, so as to obtain the brightness correction result.

[0015] This application also provides an electronic device, the electronic device comprising: at least one processor and a memory communicatively connected to the at least one processor, the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the steps of the base cluster brightness correction method as described above.

[0016] This application also provides a computer-readable storage medium storing a program for implementing a base cluster brightness correction method, wherein when the program for the base cluster brightness correction method is executed by a processor, it implements the steps of the base cluster brightness correction method as described above.

[0017] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the base cluster brightness correction method described above.

[0018] This application provides a method, apparatus, electronic device, and readable storage medium for base cluster brightness correction. Specifically, if a brightness crosstalk base cluster is detected in a target base cluster image, the brightness crosstalk direction of the crosstalk base cluster relative to the base cluster to be corrected is obtained; a brightness value mapping table is determined along the crosstalk direction, wherein the brightness value mapping table stores the mapping relationship between a first actual brightness value and a brightness correction value of the crosstalk base cluster at different pixel distances from the base cluster to be corrected; the brightness correction value corresponding to the first actual brightness value is queried from the brightness value mapping table; and a second actual brightness value of the base cluster to be corrected is corrected according to the brightness correction value to obtain a brightness correction result.

[0019] When correcting the brightness of a base cluster, this application first detects whether there are brightness crosstalk base clusters in the target base cluster image. If brightness crosstalk base clusters are detected, the brightness crosstalk direction of the brightness crosstalk base cluster relative to the base cluster to be corrected is obtained, thereby determining a brightness value mapping table in the brightness crosstalk direction. Since the brightness value mapping table stores the mapping relationship between the actual brightness value and the brightness correction value of the brightness crosstalk base cluster at different pixel distances from the base cluster to be corrected, the corresponding brightness correction value can be found based on the actual brightness value of the brightness crosstalk base cluster. Finally, the actual brightness value of the base cluster to be corrected is corrected by the brightness correction value. That is, the brightness correction of the base cluster to be corrected in the target base cluster image is performed by using the brightness correction values ​​at different pixel distances between different base clusters in the corresponding brightness crosstalk direction in the brightness value mapping table.

[0020] Since the orientation and pixel distance between base clusters are determined, that is, the relative positional relationship between base clusters is accurately located, the brightness crosstalk level between base clusters can be accurately fed back. Therefore, the brightness correction value stored in the brightness value mapping table can be obtained in a targeted manner according to the brightness crosstalk level, so as to achieve the purpose of correcting the base clusters to be corrected based on different brightness crosstalk directions and different pixel distances between base clusters.

[0021] Based on this, this application pre-sets brightness correction values ​​for different brightness crosstalk directions and different pixel distances between base clusters in a brightness value mapping table. Then, when performing brightness correction on the base clusters to be corrected in the target base image, the brightness crosstalk direction between the base cluster to be corrected and the brightness crosstalk base cluster can be determined based on the brightness crosstalk base clusters. This allows for the determination of the brightness value mapping table along the brightness crosstalk direction, and the acquisition of the brightness correction values ​​stored in the brightness value mapping table at the corresponding pixel distances between the base cluster to be corrected and the brightness crosstalk base cluster. Finally, the brightness value of the base cluster to be corrected is corrected using the brightness correction values. This achieves the goal of performing cluster correction between base clusters in the target base image using different brightness correction values. In other words, it overcomes the technical defect that, because base clusters are randomly formed on the biochip, the distances between base clusters in the same region are not entirely the same, which makes brightness crosstalk prone to occur when relying on the same brightness correction matrix to perform brightness correction on base clusters in a certain image region. Therefore, it improves the accuracy of brightness correction for base clusters. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0023] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a schematic flowchart of the base cluster brightness correction method provided in Embodiment 1 of this application;

[0025] Figure 2 This is a schematic diagram of the interaxial angles in the preset base cluster coordinate system of the base cluster brightness correction method provided in Embodiment 1 of this application.

[0026] Figure 3 A schematic diagram of the brightness crosstalk model in the horizontal and vertical directions obtained by fitting the brightness value of the brightest base pixel in the base cluster of the base cluster brightness correction method provided in Embodiment 1 of this application when the brightness value is 10000.

[0027] Figure 4 A schematic diagram of the brightness crosstalk model obtained by fitting the brightness value of the brightest base pixel in the base cluster in the diagonal direction when the brightness value of the brightest base pixel in the base cluster is 6000, which is the method for correcting the brightness of the base cluster in Embodiment 1 of this application.

[0028] Figure 5 This is a schematic flowchart of the base cluster brightness correction method provided in Embodiment 2 of this application;

[0029] Figure 6 This is a schematic diagram of the base cluster brightness correction device provided in Embodiment 3 of this application;

[0030] Figure 7 This is a schematic diagram of the structure of the electronic device provided in Embodiment 4 of this application.

[0031] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0032] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0033] Example 1

[0034] First, it should be understood that in high-throughput sequencing, the accuracy of base identification will affect the feasibility of the identified bases. Therefore, base identification is particularly important. For example, in base identification, base clusters are reacted with different fluorescent dyes, and then the base clusters are irradiated with lasers to make them fluoresce, i.e., fluorescent clusters. Then, images of A (Adenine), C (Cytosine), G (Guanine), and T (Thymine) are obtained by taking pictures with a microscope camera. The brightness of the same base cluster on different images is identified by a base brightness extraction algorithm, and the brightness of the four base clusters is then judged to obtain the base of the cluster. Multi-cycle chemical reactions can be used to obtain bases of different base clusters under different chemical reaction cycles. By sorting the base signals of the same base cluster under all chemical reaction cycles according to the order of chemical reactions, a base sequence can be obtained. As the number of base clusters increases, the number of base sequences obtained also increases, thereby achieving higher throughput. However, current conventional methods usually establish a brightness crosstalk model between base clusters based on the brightness imaging function of the base clusters and obtain a brightness correction matrix by minimizing the brightness crosstalk. However, the method of correcting the brightness of base clusters in different fluorescence image regions using the same brightness correction matrix is ​​still prone to brightness crosstalk. This is because the randomness of the formation of base clusters on the biochip makes the pixel distance between base clusters unpredictable. Therefore, there is an urgent need for a method to improve the accuracy of brightness correction for base clusters.

[0035] This application provides a base cluster brightness correction method. In the first embodiment of the base cluster brightness correction method of this application, referring to... Figure 1 The base cluster brightness correction method includes:

[0036] Step S10: If a brightness crosstalk base cluster is detected in the target base cluster image, the brightness crosstalk direction of the brightness crosstalk base cluster relative to the base cluster to be corrected is obtained.

[0037] Step S20: Determine the brightness value mapping table in the brightness crosstalk direction, wherein the brightness value mapping table is used to store the mapping relationship between the first actual brightness value and the brightness correction value of the brightness crosstalk base cluster at different pixel distances from the base cluster to be corrected;

[0038] Step S30: Query the brightness correction value corresponding to the first actual brightness value in the brightness value mapping table;

[0039] Step S40: Correct the second actual brightness value of the base cluster to be corrected according to the brightness correction value to obtain the brightness correction result.

[0040] In this embodiment, it should be noted that, although Figure 1 The logical order is shown, but in some cases, the steps shown or described may be performed in a different order than that shown here. The base cluster brightness correction method is applied to a base cluster brightness correction device, which can be an automated or manual gene sequencer, etc. The target base cluster image is used to characterize the fluorescence image obtained by an imaging device after the base cluster undergoes a chemical reaction with a fluorescent dye; specifically, it can be an A-image, C-image, G-image, or T-image, etc. The imaging device can be a microscope camera. The base cluster to be corrected is used to characterize the base cluster awaiting brightness correction. In the fluorescence image obtained by the imaging device, there are a large number of... Any base cluster can be used as a base cluster to be corrected. The determination of the base cluster can be based on area. That is, the base cluster to be corrected can be an isolated base cluster or a base cluster composed of multiple isolated base clusters. For example, in one feasible method, three base clusters A, B and C are selected in the fluorescence image. Base cluster A and base cluster B are in an adhered state, base cluster C is in an isolated state, and the base cluster areas corresponding to the adhered base clusters A and B and the base cluster area of ​​base cluster C are all less than a preset area threshold. Then, the base cluster formed by the adhered base clusters A and B and base cluster C can be used as base clusters to be corrected.

[0041] Additionally, it should be noted that luminance crosstalk base clusters are used to characterize base clusters that exhibit luminance crosstalk with the base cluster to be corrected. Typically, for any two base clusters in a fluorescence image, if the pixel distance between the two base clusters is close, the base cluster with the higher luminance value will cause luminance crosstalk to the base cluster with the lower luminance value, thus affecting the accuracy of base identification. Determining whether luminance crosstalk base clusters exist around the base cluster to be corrected can be based on pixel distance. For example, in one feasible approach, a center coordinate system is constructed using the base cluster to be corrected as a reference. If a base cluster exists within a region m pixels away from the base cluster to be corrected, then that base cluster is considered a luminance crosstalk base cluster. The luminance crosstalk base cluster can be... There are one or more bases. After detecting the luminance crosstalk base cluster of the base cluster to be corrected, the luminance value of the base cluster to be corrected can be specifically corrected by accurately locating the relative position of the base cluster to be corrected and the luminance crosstalk base cluster in the fluorescence image. The luminance crosstalk direction is used to characterize the direction in which the luminance crosstalk is generated, which can be due east, northeast 45°, or due north, etc. The luminance crosstalk direction is determined by the positions of the luminance crosstalk base cluster and the base cluster to be corrected. For example, in one feasible method, a central coordinate system can be constructed with the base cluster to be corrected as the origin. The luminance crosstalk direction of the luminance crosstalk base cluster relative to the base cluster to be corrected can be located by the actual coordinates of the luminance crosstalk base cluster under the central coordinate system.

[0042] Additionally, it should be noted that since the degree of luminance crosstalk is affected by distance, the relative positional relationship between the base cluster to be corrected and the luminance crosstalk base cluster, in addition to their relative orientation, also requires determining the pixel distance between them. This allows for the lookup of the luminance correction value at the corresponding pixel distance in the luminance value mapping table. In other words, targeted correction is performed on the base cluster to be corrected at different pixel distances. The luminance value mapping table stores the mapping relationship between the first actual luminance value and the luminance correction value of the luminance crosstalk base cluster at different pixel distances from the base cluster to be corrected. This mapping relationship can be stored in key-value pairs. Before performing base cluster luminance correction, a preset number of base clusters can be used... The chemical reaction with fluorescent dyes yields brightness values ​​of base clusters in a large number of fluorescent images. A brightness crosstalk model with preset fitting parameters is used to calculate brightness correction values ​​between base clusters, thereby establishing a brightness value mapping table. To ensure the accuracy of correction, brightness value mapping tables can be established for different directions between base clusters. For example, in one feasible approach, when extracting base clusters from fluorescent images, extraction is performed according to direction, and brightness values ​​of base clusters in each direction are extracted, establishing multiple brightness value mapping tables for different directions. Thus, after determining the brightness crosstalk direction during base cluster brightness correction, the brightness value mapping table for that direction is found, and brightness correction values ​​are extracted to perform base cluster brightness correction.

[0043] Additionally, it should be noted that the brightness correction value is used to characterize the brightness value that needs to be corrected for the brightness of the base cluster. The target brightness value obtained by subtracting the corresponding brightness correction value from the second actual brightness value of the base cluster to be corrected can make the brightness crosstalk between the base cluster to be corrected and the brightness crosstalk base cluster negligible to a certain extent. That is, if the brightness value of the base cluster to be corrected is higher than the brightness value of the brightness crosstalk base cluster, the difference between the two brightness values ​​can be reduced after reducing the brightness value of the base cluster to be corrected, thereby improving the brightness crosstalk between the base cluster to be corrected and the brightness crosstalk model. The brightness value and coordinate value of the base cluster to be corrected and the brightness crosstalk base cluster can be characterized by the brightness value of any base pixel point that makes up the cluster.

[0044] As an example, steps S10 to S40 include: detecting whether there is a fluorescent cluster within a preset detection range corresponding to the base cluster to be corrected in the target base cluster image; if the fluorescent cluster is detected within the preset detection range, then the fluorescent cluster is taken as the brightness crosstalk base cluster; and determining the brightness crosstalk direction of the brightness crosstalk base cluster relative to the base cluster to be corrected based on the coordinate values ​​corresponding to the base cluster to be corrected and the brightness crosstalk base cluster, respectively; querying a brightness value mapping table in the brightness crosstalk direction in a preset mapping table library, wherein the preset mapping table library is used to store brightness value mapping tables in different directions; using the first actual brightness value of the brightness crosstalk base cluster as an index, querying the brightness value mapping table to obtain the corresponding brightness correction value; and taking the difference between the second actual brightness value and the brightness correction value as the brightness correction result.

[0045] This application embodiment detects whether fluorescent clusters exist in the target base cluster image within a preset detection range from the base cluster to be corrected. When fluorescent clusters are present, they are treated as luminance crosstalk base clusters. After determining the luminance crosstalk direction of the luminance crosstalk base cluster relative to the base cluster to be corrected, a luminance value mapping table is obtained along this direction. Using the first actual luminance value of the luminance crosstalk base cluster as an index, the luminance value to be corrected for the luminance crosstalk base cluster at that pixel distance is retrieved from the luminance value mapping table. The second actual luminance value of the base cluster to be corrected is subtracted from the luminance value to be corrected, and the difference is taken as the luminance correction result. Since the luminance value to be corrected is specifically obtained based on the relative positional relationship between the base cluster to be corrected and the luminance crosstalk base cluster, the purpose of correcting the base cluster to be corrected based on different luminance crosstalk directions and different pixel distances between base clusters is achieved, thus improving the accuracy of luminance correction for base clusters.

[0046] The step of determining the luminance value mapping table in the luminance crosstalk direction includes:

[0047] Step A10: Obtain the axis connecting the base clusters to be corrected and the brightness crosstalk base clusters in a preset base cluster coordinate system, wherein the preset base cluster coordinate system is constructed based on the base clusters to be corrected.

[0048] Step A20: Determine the brightness value mapping table in the brightness crosstalk direction based on the angle between the axis of the base cluster connection and the base cluster reference axis of the preset base cluster coordinate system.

[0049] In this embodiment, it should be noted that since there are many directions of brightness crosstalk between the brightness crosstalk base cluster and the base cluster to be corrected, if a brightness value mapping table is accurately established for each direction, the preliminary accurate work before brightness correction of the base cluster will take too long, that is, the efficiency of establishing the brightness value mapping table is too low. Therefore, a preset number of brightness value mapping tables can be set to classify the brightness crosstalk base clusters in different brightness directions into different brightness value mapping tables for brightness correction value lookup. For example, in one feasible approach, brightness value mapping tables can be established in the horizontal and vertical directions and the diagonal 45° direction. Since the diagonal 45° direction can represent the farthest pixel distance between the base cluster to be corrected and the brightness crosstalk base cluster, the accuracy of brightness correction for the base cluster can still be ensured.

[0050] Additionally, it should be noted that, to accurately characterize the relative positions between the base cluster to be corrected and the luminance crosstalk base cluster, a preset base cluster coordinate system can be set. This preset base cluster coordinate system is constructed based on the base cluster to be corrected. The base cluster connection axis is used to characterize the connections between base clusters; specifically, it can be the connection axis between any base pixel in the base cluster to be corrected and any base pixel in the luminance crosstalk base cluster. The base cluster reference axis is used to characterize the reference axis of the angle between the positioning axes; specifically, it can be the horizontal or vertical axis of the preset base cluster coordinate system, as shown in the reference diagram. Figure 2 , Figure 2 This diagram illustrates the inter-axis angles in a preset base cluster coordinate system, where the x-axis is the base cluster reference axis, 11 is the base cluster to be corrected, 12 is the brightness crosstalk base cluster, 13 is the axis connecting the base clusters, and p is the inter-axis angle.

[0051] As an example, steps A10 to A20 include: obtaining the base cluster connection axis of the base cluster to be corrected and the luminance crosstalk base cluster in a preset base cluster coordinate system, wherein the preset base cluster coordinate system is constructed based on the base cluster to be corrected; obtaining the inter-axis angle between the base cluster connection axis and the base cluster reference axis of the preset base cluster coordinate system; and determining a luminance value mapping table in the luminance crosstalk direction based on the correspondence between the inter-axis angle and a preset angle threshold, wherein the preset angle threshold is set by the technician according to the requirements.

[0052] The specific steps for determining the brightness value mapping table in the brightness crosstalk direction based on the correspondence between the interaxial angle and the preset angle threshold are as follows:

[0053] Calculate the angle difference between the interaxial angle and the preset angle threshold. If the angle difference is less than the preset angle threshold, then use the horizontal and vertical brightness value mapping table as the brightness value mapping table. If the angle difference is greater than or equal to the preset angle threshold, then use the diagonal brightness value mapping table as the brightness value mapping table. The horizontal and vertical brightness value mapping table is used to represent the brightness value mapping table in the horizontal axis direction or the brightness value mapping table in the vertical axis direction, and the diagonal brightness value mapping table is used to represent the brightness value mapping table in the 45° direction.

[0054] In one feasible approach, the preset angle threshold can be set to 22.5°. The brightness value mapping tables in different directions include a horizontal axis brightness value mapping table, a vertical axis brightness value mapping table, and a diagonal direction brightness value mapping table. When the inter-axis angle is less than 22.5°, the horizontal and vertical direction brightness value mapping tables are used as the brightness value mapping tables. When the inter-axis angle is greater than or equal to 22.5°, the diagonal direction brightness value mapping table is used as the brightness value mapping table.

[0055] Prior to the step of determining the luminance value mapping table in the luminance crosstalk direction, the base cluster luminance correction method further includes:

[0056] Step B10: Obtain at least one isolated base cluster from the preset base cluster image;

[0057] Step B20: For any of the isolated base clusters, extract at least one regional base pixel in the adjacent region of the base cluster corresponding to the center point of the isolated base cluster, wherein the adjacent region of the base cluster is a region with the center point of the base cluster as the center and a preset pixel distance as the radius; sort the brightness values ​​of each of the regional base pixels to obtain a brightness value sorting result.

[0058] Step B30: Input the model fitting parameters obtained by combining the brightness value sorting results of each isolated base cluster into the preset brightness crosstalk model to obtain the brightness crosstalk model.

[0059] Step B40: Based on the brightness correction values ​​output by the brightness crosstalk model in different brightness crosstalk directions, establish a brightness value mapping table.

[0060] In this embodiment, it should be noted that before performing base cluster brightness correction, a brightness value mapping table for different brightness crosstalk directions needs to be established. The preset base cluster images are used to characterize the base cluster images that provide fitting parameters for the iterative training model. The number of these images is set by the technician according to requirements. The model fitting parameters are the fitting parameters of the preset brightness crosstalk model, which can specifically be: y = ae -bx Where y is the pixel distance, x is the brightness value, a and b are model fitting parameters, and the adjacent region of the base cluster is the region with the center point of the base cluster as the center and the preset pixel distance as the radius. The center point of the base cluster can be the geometric center point of the isolated base cluster. The isolated base cluster is obtained by determining the area of ​​the base cluster in the preset base cluster image.

[0061] As an example, steps B10 to B40 include: detecting the base cluster area of ​​at least one base cluster in a preset base cluster image, and identifying at least one base cluster with an area less than a preset area threshold as an isolated base cluster; for any isolated base cluster, extracting the geometric center point of the isolated base cluster as the base cluster center point, and extracting at least one regional base pixel point within a region centered on the base cluster center point and with a preset pixel distance as the radius, wherein the preset pixel distance can specifically be 6 pixels, 7 pixels, or 8 pixels, etc., and the regional base pixel point is used to characterize the base pixels within the region; based on the brightness value of each regional base pixel point, sorting each regional base pixel point from smallest to largest to obtain a brightness value sorting result; and assigning base clusters with the same brightness value... The base pixels are fitted using the point spread function of a preset brightness crosstalk model combined with the least squares method to obtain model fitting parameters. These parameters are then input into the preset brightness crosstalk model to obtain a brightness crosstalk model, which outputs brightness correction values ​​at different pixel distances. Based on the brightness correction values ​​output by the brightness crosstalk model at unit pixel distances in different brightness crosstalk directions and the actual brightness values ​​of the base pixels in each region, a brightness value mapping table is established. The unit pixel distance can be set by technicians according to requirements. For example, in one feasible approach, the unit pixel distance can be 0.1 pixels, i.e., brightness correction values ​​are further calculated at 0.1 pixel intervals to obtain a brightness value mapping table at sub-pixel distances in different brightness crosstalk directions.

[0062] The step of obtaining at least one isolated base cluster in a preset base cluster image includes:

[0063] Step C10: By performing region segmentation on the preset base cluster image, regional base clusters are obtained;

[0064] Step C20: When the area of ​​the base cluster in the region is less than a preset area threshold, detect whether the ratio of the major axis to the minor axis of the base cluster in the region is not greater than a preset ratio threshold.

[0065] Step C30: If so, the regional base cluster is taken as the isolated base cluster.

[0066] In this embodiment, it should be noted that, in order to avoid the luminance crosstalk model being unable to meet the actual application requirements due to inaccurate selection of isolated base clusters, in addition to considering the area of ​​the base cluster, the ratio of the major and minor axes of the base cluster will also be detected when selecting isolated base clusters. This is to avoid the situation where different base clusters with luminance crosstalk are regarded as isolated base clusters, thereby ensuring the comprehensiveness of the mapping relationship stored in the luminance value mapping table.

[0067] As an example, steps C10 to C30 include: performing region segmentation on a preset base cluster image according to a preset segmentation rule to obtain regional base clusters; detecting whether the base cluster area of ​​the regional base cluster is greater than a preset area threshold; if the base cluster area of ​​the regional base cluster is detected to be greater than the preset area threshold, then the regional base cluster is not considered an isolated base cluster; if the base cluster area of ​​the regional base cluster is detected to be less than the preset area threshold, then detecting whether the ratio of the major axis to the minor axis of the regional base cluster is not greater than a preset ratio threshold; if the ratio of the major axis to the minor axis of the regional base cluster is detected to be not greater than the preset ratio threshold, then the regional base cluster is considered an isolated base cluster; if the ratio of the major axis to the minor axis of the regional base cluster is detected to be greater than the preset ratio threshold, then the regional base cluster is not considered an isolated base cluster. The major axis and minor axis can both be calculated based on the base pixels of the regional base cluster that are furthest apart on the major and minor axes.

[0068] The brightness correction value includes at least one unit brightness decrease ratio, and the step of establishing a brightness value mapping table based on the brightness correction values ​​output by the brightness crosstalk model in different brightness crosstalk directions includes:

[0069] Step D10: Select a first base pixel and a second base pixel in the isolated base cluster, wherein the first distance between the first base pixel and the center point of the base cluster is equal to the second distance between the first base pixel and the second base pixel.

[0070] Step D20: For any luminance crosstalk direction, obtain the first luminance correction value of the first base pixel and the second luminance correction value of the second base pixel output by the luminance crosstalk model.

[0071] Step D30: Determine each unit brightness reduction ratio based on the first brightness correction value and the second brightness correction value in different brightness crosstalk directions, wherein each unit brightness reduction ratio corresponds to a brightness crosstalk direction.

[0072] Step D40: Establish the brightness value mapping table according to the unit brightness reduction ratio.

[0073] In this embodiment, it should be noted that if a brightness correction value is calculated for each base pixel on the base cluster when establishing the brightness value mapping table, a large amount of data processing will be generated, resulting in low efficiency in establishing the brightness value mapping table. Consequently, when correcting the brightness of the base cluster, the brightness correction value stored in the brightness value mapping table is relied upon to correct the pixel value of each base pixel on the base cluster to be corrected. This will also affect the correction efficiency of the base cluster brightness correction. Therefore, the required brightness correction for the brightness crosstalk base clusters in different brightness crosstalk directions can be compared by unit brightness decrease. The values ​​are calculated proportionally. For example, in one feasible approach, assuming the luminance value of the base cluster to be corrected is 8000, and the luminance correction value of the luminance crosstalk base cluster relative to the base cluster to be corrected is 6000, wherein the luminance correction value decreases by 10% for every unit pixel away from the base cluster to be corrected (the unit luminance decrease ratio is 10%). If the base cluster to be corrected is three units away from the luminance crosstalk base cluster, then the luminance correction value corresponding to the luminance crosstalk base cluster is 6000 * 30%, and the luminance obtained after correction of the base cluster to be corrected is 8000 - 6000 * 30%.

[0074] Additionally, it should be noted that the first base pixel and the second base pixel are two base pixels arbitrarily selected from an isolated base cluster. A direction can be determined by connecting these two base pixels. The first distance between the first base pixel and the center point of the base cluster is equal to the second distance between the first base pixel and the second base pixel. That is, different base pixels are equidistant. The unit brightness decrease ratio and the brightness crosstalk direction are in one-to-one correspondence. That is, the brightness value mapping table for different brightness crosstalk directions has a corresponding unit brightness decrease ratio. Then, the brightness correction value can be quickly calculated by using the unit brightness decrease ratio and the pixel distance between the base cluster to be corrected and the brightness crosstalk base cluster. The mapping table can then be directly established based on the unit brightness decrease ratio. That is, there is no need to index the specific brightness correction value in the brightness value mapping table that stores the brightness correction values ​​of many base pixels, thus laying the foundation for improving the query efficiency of the brightness correction value.

[0075] As an example, steps D10 to D40 include: selecting a first base pixel and a second base pixel in the isolated base cluster, wherein a first distance between the first base pixel and the center point of the base cluster is equal to a second distance between the first base pixel and the second base pixel; for any brightness crosstalk direction, by sequentially inputting the pixel distance between the first base pixel and the base cluster to be corrected, and the pixel distance between the second base pixel and the base cluster to be corrected, into the brightness crosstalk model, to obtain a first brightness correction value for the first base pixel and a second brightness correction value for the second base pixel; determining each unit brightness reduction ratio based on the first brightness correction value and the second brightness correction value in different brightness crosstalk directions, wherein one unit brightness reduction ratio corresponds to one brightness crosstalk direction; and establishing a brightness value mapping table based on each unit brightness reduction ratio.

[0076] Prior to the step of extracting at least one base pixel within the adjacent region of the base cluster corresponding to the center point of the isolated base cluster for any of the isolated base clusters, the base cluster brightness correction method further includes:

[0077] Step E10: Obtain at least one base pixel within the isolated base cluster;

[0078] Step E20: Select the base pixel with the highest brightness value among all the base pixels as the center point of the isolated base cluster.

[0079] In this embodiment, it should be noted that since the geometric center point of an isolated base cluster is not necessarily the base pixel with the largest brightness value in the isolated base cluster, the degree of brightness crosstalk of the isolated base cluster to other base clusters cannot be accurately fed back by the geometric center point alone. Therefore, the base pixel with the largest brightness value in the isolated base cluster can be used as the center point of the base cluster, which can lay the foundation for accurately correcting the brightness of the base cluster to be corrected.

[0080] As an example, steps E10 to E20 include: obtaining at least one base pixel within the isolated base cluster; sorting each base pixel in ascending order of pixel brightness value, and taking the base pixel with the largest pixel brightness value as the center point of the isolated base cluster.

[0081] In one feasible approach, when the base pixel with the highest brightness is selected as the center point of the base cluster, the accuracy of the fitted brightness crosstalk model is high, referring to... Figure 3 , Figure 3 To illustrate the brightness crosstalk model in the horizontal and vertical directions when the brightness value of the brightest base pixel in the base cluster is 10000, refer to... Figure 4 , Figure 4 This diagram illustrates the brightness crosstalk model fitted to the diagonal direction when the brightness value of the brightest base pixel in the base cluster is 6000, where x is the pixel distance and y is the brightness value.

[0082] This application provides a method for base cluster brightness correction. Specifically, if a brightness crosstalk base cluster is detected in a target base cluster image, the brightness crosstalk direction of the crosstalk base cluster relative to the base cluster to be corrected is obtained. A brightness value mapping table is determined along the crosstalk direction, wherein the brightness value mapping table stores the mapping relationship between a first actual brightness value and a brightness correction value of the crosstalk base cluster at different pixel distances from the base cluster to be corrected. The brightness correction value corresponding to the first actual brightness value is queried from the brightness value mapping table. Based on the brightness correction value, the second actual brightness value of the base cluster to be corrected is corrected to obtain a brightness correction result.

[0083] In this embodiment of the application, when correcting the brightness of a base cluster, the first step is to detect whether there are brightness crosstalk base clusters in the target base cluster image. If brightness crosstalk base clusters are detected, the brightness crosstalk direction of the brightness crosstalk base cluster relative to the base cluster to be corrected is obtained, thereby determining a brightness value mapping table in the brightness crosstalk direction. Since the brightness value mapping table stores the mapping relationship between the actual brightness value and the brightness correction value of the brightness crosstalk base cluster at different pixel distances from the base cluster to be corrected, the corresponding brightness correction value can be found based on the actual brightness value of the brightness crosstalk base cluster. Finally, the actual brightness value of the base cluster to be corrected is corrected by the brightness correction value. That is, the brightness correction of the base cluster to be corrected in the target base cluster image is performed by using the brightness correction values ​​at different pixel distances between different base clusters in the corresponding brightness crosstalk direction in the brightness value mapping table.

[0084] Since the orientation and pixel distance between base clusters are determined, that is, the relative positional relationship between base clusters is accurately located, the brightness crosstalk level between base clusters can be accurately fed back. Therefore, the brightness correction value stored in the brightness value mapping table can be obtained in a targeted manner according to the brightness crosstalk level, so as to achieve the purpose of correcting the base clusters to be corrected based on different brightness crosstalk directions and different pixel distances between base clusters.

[0085] Based on this, the embodiments of this application pre-set the brightness correction values ​​for different brightness crosstalk directions and different pixel distances between base clusters in a brightness value mapping table. Then, when performing brightness correction on the base clusters to be corrected in the target base image, the brightness crosstalk direction between the base cluster to be corrected and the brightness crosstalk base cluster can be determined based on the brightness crosstalk base clusters, thereby determining the brightness value mapping table in the brightness crosstalk direction, and obtaining the brightness correction values ​​for the corresponding pixel distances between the base cluster to be corrected and the brightness crosstalk base cluster stored in the brightness value mapping table. Finally, the brightness value of the base cluster to be corrected is corrected by the brightness correction value, thereby achieving the purpose of performing cluster correction between base clusters in the target base image through different brightness correction values. That is, it overcomes the technical defect that since base clusters are randomly formed on the biochip, the distance between base clusters in the same region is not exactly the same, which makes it easy for brightness crosstalk to occur when relying on the same brightness correction matrix to perform brightness correction on base clusters in a certain image region. Therefore, the correction accuracy of brightness correction of base clusters is improved.

[0086] Example 2

[0087] Furthermore, referring to Figure 5 In another embodiment of this application, content that is the same as or similar to that in Embodiment 1 above can be referred to the above description and will not be repeated hereafter. Based on this, the step of determining the luminance value mapping table in the luminance crosstalk direction according to the angle between the axis of the base cluster connection and the base cluster reference axis of the preset base cluster coordinate system includes:

[0088] Step F10: Obtain the image identifier of the target base cluster image, and obtain the angle relationship between the interaxial angle and the preset angle threshold;

[0089] Step F20: Using the image identifier and the angle relationship as indexes, retrieve the brightness value mapping table in the brightness crosstalk direction.

[0090] In this embodiment, it should be noted that due to the characteristics of chemical reactions between base clusters and different fluorescent dyes, if a certain base cluster generates images A, C, G, and T respectively through chemical reactions, the brightness values ​​of the base cluster in the above four images are not the same. Therefore, in order to ensure the accuracy of brightness correction of base clusters in different fluorescent images, a brightness value mapping table can be established according to image type when establishing the brightness value mapping table. Then, when determining the brightness crosstalk base cluster and the brightness crosstalk of the base cluster to be corrected, different fluorescent images are distinguished by image identifiers, thereby obtaining the brightness correction value under the corresponding fluorescent image. The identifier is used to distinguish the base clusters in different fluorescent images.

[0091] As an example, steps F10 to F20 include: extracting an image identifier from the target base cluster image, and calculating the angle difference between the interaxial angle and a preset angle threshold; using the image identifier and the angle difference as a common index, querying a preset correction table to obtain a brightness value mapping table in the brightness crosstalk direction, wherein the preset correction table stores the mapping relationship between the table name of the brightness mapping table and the combined index in key-value pairs, and the combined index is formed by combining the image identifier and the angle difference.

[0092] This application provides a method for determining a brightness value mapping table. Specifically, it involves obtaining the image identifier of the target base cluster image and the angle difference between the interaxial angle and a preset angle threshold. Using the image identifier and the angle difference as a combined index, a brightness value mapping table corresponding to the target base cluster image in the brightness crosstalk direction is retrieved. This application first obtains the image identifier of the target base cluster image and the angle difference between the interaxial angle and the preset angle threshold. Then, using the image identifier and the angle difference as a combined index, a brightness value mapping table corresponding to the target base cluster image in the brightness crosstalk direction is retrieved. This achieves the purpose of specifically matching corresponding brightness value mapping tables for different fluorescence images, thus laying the foundation for accurately correcting the brightness values ​​of the base clusters to be corrected on different fluorescence images.

[0093] Example 3

[0094] This application also provides a base cluster brightness correction device, see reference. Figure 6 The base cluster brightness correction device includes:

[0095] The acquisition module 101 is used to acquire the brightness crosstalk direction of the brightness crosstalk base cluster relative to the base cluster to be corrected if a brightness crosstalk base cluster is detected in the target base cluster image.

[0096] The determining module 102 is used to determine a brightness value mapping table in the brightness crosstalk direction, wherein the brightness value mapping table is used to store the mapping relationship between the first actual brightness value and the brightness correction value of the brightness crosstalk base cluster at different pixel distances from the base cluster to be corrected;

[0097] The query module 103 is used to query the brightness correction value corresponding to the first actual brightness value in the brightness value mapping table;

[0098] The correction module 104 is used to correct the second actual brightness value of the base cluster to be corrected according to the brightness correction value, so as to obtain the brightness correction result.

[0099] Optionally, the determining module 102 is further configured to:

[0100] Obtain the axis connecting the base clusters to be corrected and the brightness crosstalk base clusters in a preset base cluster coordinate system, wherein the preset base cluster coordinate system is constructed with the base clusters to be corrected as a reference.

[0101] A luminance value mapping table in the luminance crosstalk direction is determined based on the angle between the axis connecting the base clusters and the base cluster reference axis of the preset base cluster coordinate system.

[0102] Optionally, the determining module 102 is further configured to:

[0103] Obtain the image identifier of the target base cluster image, and obtain the angle relationship between the interaxial angle and the preset angle threshold;

[0104] Using the image identifier and the angle relationship as indexes, a luminance value mapping table in the luminance crosstalk direction is obtained.

[0105] Optionally, the base cluster brightness correction device is further used for:

[0106] Obtain at least one isolated base cluster from a preset base cluster image;

[0107] For any of the isolated base clusters, at least one regional base pixel is extracted from the adjacent region of the base cluster corresponding to the center point of the isolated base cluster, wherein the adjacent region of the base cluster is a region with the center point of the base cluster as the center and a preset pixel distance as the radius; the brightness values ​​of each of the regional base pixels are sorted to obtain a brightness value sorting result;

[0108] The model fitting parameters obtained by combining the sorting results of the brightness values ​​of each isolated base cluster are input into the preset brightness crosstalk model to obtain the brightness crosstalk model.

[0109] A luminance value mapping table is established based on the luminance correction values ​​output by the luminance crosstalk model in different luminance crosstalk directions.

[0110] Optionally, the base cluster brightness correction device is further used for:

[0111] By segmenting the preset base cluster image into regions, regional base clusters are obtained;

[0112] When the area of ​​the base cluster in the region is less than a preset area threshold, it is detected whether the ratio of the major axis to the minor axis of the base cluster in the region is not greater than a preset ratio threshold.

[0113] If so, the regional base cluster is considered as the isolated base cluster.

[0114] Optionally, the brightness correction value includes at least one unit brightness decrease ratio, and the base cluster brightness correction device is further used for:

[0115] A first base pixel and a second base pixel are selected from the isolated base cluster, wherein the first distance between the first base pixel and the center point of the base cluster is equal to the second distance between the first base pixel and the second base pixel;

[0116] For any direction of luminance crosstalk, obtain the first luminance correction value of the first base pixel and the second luminance correction value of the second base pixel output by the luminance crosstalk model;

[0117] Based on the first brightness correction value and the second brightness correction value in different brightness crosstalk directions, each unit brightness decrease ratio is determined, wherein each unit brightness decrease ratio corresponds to a brightness crosstalk direction.

[0118] A brightness value mapping table is established based on the unit brightness decrease ratio.

[0119] Optionally, the base cluster brightness correction device is further used for:

[0120] At least one base pixel within the isolated base cluster is obtained;

[0121] Among all the base pixels, the base pixel with the highest brightness value is selected as the center point of the isolated base cluster.

[0122] The base cluster brightness correction device provided by this invention employs the base cluster brightness correction method in the above embodiments, solving the technical problem of low correction accuracy for base cluster brightness correction. Compared with the prior art, the beneficial effects of the base cluster brightness correction device provided by this invention are the same as those of the base cluster brightness correction method provided in the above embodiments, and other technical features in this base cluster brightness correction device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0123] Example 4

[0124] This invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the base cluster brightness correction method in Embodiment 1 above.

[0125] The following is for reference. Figure 7The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0126] like Figure 7 As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processor, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus.

[0127] Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. The communication devices allow electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although electronic devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0128] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of embodiments of this disclosure.

[0129] The electronic device provided by this invention employs the base cluster brightness correction method in the above embodiments, solving the technical problem of low correction accuracy for base cluster brightness correction. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiments of this invention are the same as those of the base cluster brightness correction method provided in the above embodiments, and other technical features of this electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0130] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

[0131] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

[0132] Example 5

[0133] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the base cluster brightness correction method in the above embodiment.

[0134] The computer-readable storage medium provided in this embodiment of the invention may be, for example, a USB flash drive, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0135] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.

[0136] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by an electronic device, the electronic device causes the following: if it detects a luminance crosstalk base cluster in the target base cluster image, it acquires the luminance crosstalk direction of the luminance crosstalk base cluster relative to the base cluster to be corrected; determines a luminance value mapping table in the luminance crosstalk direction, wherein the luminance value mapping table is used to store the mapping relationship between a first actual luminance value and a luminance correction value of the luminance crosstalk base cluster at different pixel distances from the base cluster to be corrected; queries the luminance correction value corresponding to the first actual luminance value in the luminance value mapping table; and corrects the second actual luminance value of the base cluster to be corrected according to the luminance correction value to obtain a luminance correction result.

[0137] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0139] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0140] The computer-readable storage medium provided by this invention stores computer-readable program instructions for executing the above-described base cluster brightness correction method, thus solving the technical problem of low correction accuracy for base cluster brightness correction. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this invention are the same as those of the base cluster brightness correction method provided in the above-described embodiments, and will not be repeated here.

[0141] Example 6

[0142] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the base cluster brightness correction method described above.

[0143] The computer program product provided in this application solves the technical problem of low accuracy in brightness correction of base clusters. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiments of this invention are the same as the beneficial effects of the base cluster brightness correction method provided in the above embodiments, and will not be repeated here.

[0144] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. A method for correcting the brightness of base clusters, characterized in that, The base cluster brightness correction method includes: If a luminance crosstalk base cluster is detected in the target base cluster image, the luminance crosstalk direction of the luminance crosstalk base cluster relative to the base cluster to be corrected is obtained. A brightness value mapping table is determined in the brightness crosstalk direction, wherein the brightness value mapping table is used to store the mapping relationship between the first actual brightness value and the brightness correction value of the brightness crosstalk base cluster at different pixel distances from the base cluster to be corrected; Look up the brightness correction value corresponding to the first actual brightness value in the brightness value mapping table; Based on the brightness correction value, the second actual brightness value of the base cluster to be corrected is corrected to obtain the brightness correction result; The step of determining the luminance value mapping table in the luminance crosstalk direction includes: Obtain the axis connecting the base clusters to be corrected and the brightness crosstalk base clusters in a preset base cluster coordinate system, wherein the preset base cluster coordinate system is constructed with the base clusters to be corrected as a reference. A luminance value mapping table in the luminance crosstalk direction is determined based on the angle between the axis connecting the base clusters and the base cluster reference axis of the preset base cluster coordinate system.

2. The base cluster brightness correction method as described in claim 1, characterized in that, The step of determining the luminance value mapping table in the luminance crosstalk direction based on the angle between the axis of the base cluster connection and the base cluster reference axis of the preset base cluster coordinate system includes: Obtain the image identifier of the target base cluster image, and obtain the angle relationship between the interaxial angle and the preset angle threshold; Using the image identifier and the angle relationship as indexes, a luminance value mapping table in the luminance crosstalk direction is obtained.

3. The base cluster brightness correction method as described in claim 1, characterized in that, Prior to the step of determining the luminance value mapping table in the luminance crosstalk direction, the base cluster luminance correction method further includes: Obtain at least one isolated base cluster from a preset base cluster image; For any of the isolated base clusters, at least one regional base pixel is extracted from the adjacent region of the base cluster corresponding to the center point of the isolated base cluster, wherein the adjacent region of the base cluster is a region with the center point of the base cluster as the center and a preset pixel distance as the radius; the brightness values ​​of each of the regional base pixels are sorted to obtain a brightness value sorting result; The model fitting parameters obtained by combining the sorting results of the brightness values ​​of each isolated base cluster are input into the preset brightness crosstalk model to obtain the brightness crosstalk model. A luminance value mapping table is established based on the luminance correction values ​​output by the luminance crosstalk model in different luminance crosstalk directions.

4. The base cluster brightness correction method as described in claim 3, characterized in that, The step of obtaining at least one isolated base cluster in the preset base cluster image includes: By segmenting the preset base cluster image into regions, regional base clusters are obtained; When the area of ​​the base cluster in the region is less than a preset area threshold, it is detected whether the ratio of the major axis to the minor axis of the base cluster in the region is not greater than a preset ratio threshold. If so, the regional base cluster is considered as the isolated base cluster.

5. The base cluster brightness correction method as described in claim 3, characterized in that, The brightness correction value includes at least one unit brightness reduction ratio. The step of establishing a luminance value mapping table based on the luminance correction values ​​output by the luminance crosstalk model in different luminance crosstalk directions includes: A first base pixel and a second base pixel are selected from the isolated base cluster, wherein the first distance between the first base pixel and the center point of the base cluster is equal to the second distance between the first base pixel and the second base pixel; For any direction of luminance crosstalk, obtain the first luminance correction value of the first base pixel and the second luminance correction value of the second base pixel output by the luminance crosstalk model; Based on the first brightness correction value and the second brightness correction value in different brightness crosstalk directions, each unit brightness decrease ratio is determined, wherein each unit brightness decrease ratio corresponds to a brightness crosstalk direction. A brightness value mapping table is established based on the unit brightness decrease ratio.

6. The base cluster brightness correction method as described in claim 3, characterized in that, Before the step of extracting at least one base pixel within the adjacent region of the base cluster corresponding to the center point of the isolated base cluster for any of the isolated base clusters, the base cluster brightness correction method further includes: At least one base pixel within the isolated base cluster is obtained; Among all the base pixels, the base pixel with the highest brightness value is selected as the center point of the isolated base cluster.

7. A base cluster brightness correction device, characterized in that, The base cluster brightness correction device includes: The acquisition module is used to acquire the brightness crosstalk direction of the brightness crosstalk base cluster relative to the base cluster to be corrected if a brightness crosstalk base cluster is detected in the base cluster image to be corrected. The determination module is used to determine a brightness value mapping table in the brightness crosstalk direction, wherein the brightness value mapping table is used to store the mapping relationship between the first actual brightness value and the brightness correction value of the brightness crosstalk base cluster at different pixel distances from the base cluster to be corrected; The query module is used to query the brightness correction value corresponding to the first actual brightness value in the brightness value mapping table; The correction module is used to correct the second actual brightness value of the base cluster to be corrected according to the brightness correction value, so as to obtain the brightness correction result; The determining module is further configured to: obtain the base cluster connection axis of the base cluster to be corrected and the luminance crosstalk base cluster in a preset base cluster coordinate system, wherein the preset base cluster coordinate system is constructed with the base cluster to be corrected as a reference; and determine a luminance value mapping table in the luminance crosstalk direction based on the angle between the base cluster connection axis and the base cluster reference axis of the preset base cluster coordinate system.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; A memory that is communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the steps of the base cluster brightness correction method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program for implementing a base cluster brightness correction method, the program for implementing the base cluster brightness correction method being executed by a processor to implement the steps of the base cluster brightness correction method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Base recognition device and base recognition method

    CN113822838A

  • Image brightness correction method, storage medium and electronic equipment

    CN115578291A