Cellular cleavage methods, devices, electronic devices, and computer program products
By integrating the cutting paths of multiple cell groups into a second file, the problem of multiple loading and cutting of the cell cutting system is solved, improving cell cutting efficiency and the flexibility of biological tissue analysis.
Patent Information
- Application Number
- CN202510798598.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2045-06-13
AI Technical Summary
In existing technologies, when cell cutting systems need to analyze multiple groups of target cells, they need to input labeled data one by one, which makes the operation cumbersome and time-consuming, affecting the efficiency of biological tissue analysis.
By acquiring multiple first files, a second file containing multiple sets of cell cutting paths is generated and integrated into the cell cutting system, reducing the number of loading and cutting processes.
It improves cell cutting efficiency, reduces loading and cutting processes when cutting multiple cell groups, and enhances the efficiency and flexibility of biological tissue analysis.
Smart Images

Figure CN120807542B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and particularly relates to a cell cutting method and device, electronic equipment and computer program product. BACKGROUND
[0002] With the development of image processing technology, researchers can analyze biological tissues based on the processing of imaging images of the biological tissues, so as to further carry out life science research and clinical diagnosis.
[0003] In the related art, a set of target cells to be analyzed is labeled in an imaging image based on a manual labeling manner, and then a cell cutting system performs a round of cell cutting based on the labeling data to cut out the set of target cells, and then analyzes the set of target cells. However, in the case of needing to analyze multiple sets of target cells, the labeling data corresponding to each set of target cells needs to be input to the cell cutting system one by one, and the cell cutting system needs to perform multiple labeling data loading and cutting processes, which is tedious and time-consuming, resulting in low cell cutting efficiency and affecting the analysis efficiency of the biological tissues. SUMMARY
[0004] To solve the problems in the related art, the present application provides a cell cutting method, device, electronic equipment and computer program product.
[0005] The technical scheme of the present application is implemented as follows:
[0006] The present application provides a cell cutting method, which comprises the following steps:
[0007] Obtaining a plurality of first files; each of the plurality of first files is used for a cell cutting system to cut a set of cells in a plurality of sets of cells imaged in a first image; the set of cells comprises one or more cells; the first image is determined based on an image output by a cell imaging system after cell imaging processing of a target tissue;
[0008] Generating a second file based on the plurality of first files; the second file contains first data for describing a cutting path of each cell in a plurality of sets of cells corresponding to the plurality of first files;
[0009] Outputting the second file to the cell cutting system, so that the cell cutting system cuts a plurality of sets of cells imaged in the first image based on the second file.
[0010] The present application provides a cell cutting device, which comprises:
[0011] The acquisition unit is configured to acquire a plurality of first files, each of the plurality of first files being used for a cell cutting system to cut a group of cells in a plurality of groups of cells imaged in a first image, the group of cells including one or more cells, the first image being determined based on an image output by a cell imaging system after cell imaging processing of a target tissue;
[0012] The generation unit is configured to generate a second file based on the plurality of first files, the second file including first data used to describe a cutting path of each cell in a plurality of groups of cells corresponding to the plurality of first files;
[0013] The output unit is configured to output the second file to the cell cutting system, so that the cell cutting system cuts the plurality of groups of cells imaged in the first image based on the second file.
[0014] Embodiments of the present application provide an electronic device, comprising a processor and a memory for storing a computer program capable of running on the processor,
[0015] The processor is configured to execute the computer program to perform the steps of the above method.
[0016] Embodiments of the present application also provide a computer program product comprising a computer program, the computer program being executed by a processor to implement the steps of the above method.
[0017] In embodiments of the present application, a plurality of first files are acquired, wherein each of the plurality of first files is used for a cell cutting system to cut a group of cells in a plurality of groups of cells imaged in a first image, the group of cells including one or more cells, the first image being determined based on an image output by a cell imaging system after cell imaging processing of a target tissue; then, a second file is generated based on the plurality of first files, the second file including first data used to describe a cutting path of each cell in a plurality of groups of cells corresponding to the plurality of first files; and then, the second file is output to the cell cutting system, so that the cell cutting system cuts the plurality of groups of cells imaged in the first image based on the second file. In the above scheme, the cutting paths of the plurality of cells corresponding to the plurality of groups of cells are integrated into the same file, i.e., into the second file, by processing the plurality of first files. On this basis, inputting the second file to the cell cutting system can realize cutting of the plurality of groups of cells, compared with related technologies, the cell cutting system does not need to perform multiple loading processing and cutting processes when cutting the plurality of groups of cells, thereby improving the cell cutting efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1 An implementation flowchart of cell cutting provided by embodiments of the present application is shown;
[0019] Figure 2 A schematic diagram of a first interface provided for an embodiment of the present application;
[0020] Figure 3 A structural schematic diagram of a cell cutting device provided for an embodiment of the present application;
[0021] Figure 4 A structural schematic diagram of a hardware composition of an electronic device provided for an embodiment of the present application. DETAILED DESCRIPTION
[0022] With the development of image processing technology, researchers can analyze biological tissues based on the processing of imaging images of biological tissues, so as to further carry out life science research and clinical diagnosis.
[0023] In the related art, a set of target cells to be analyzed is labeled in the imaging image based on a manual labeling manner, and then a cell cutting system performs a round of cell cutting based on the labeling data to cut out the set of target cells, and then analyzes the set of target cells. However, in the case where multiple sets of target cells need to be analyzed, the labeling data corresponding to each set of target cells needs to be input to the cell cutting system one by one, and the cell cutting system needs to perform multiple labeling data loading and cutting processes, which is tedious and time-consuming, resulting in low cell cutting efficiency and affecting the analysis efficiency of biological tissues.
[0024] Therefore, in the embodiments of the present application, a plurality of first files are obtained, wherein each first file in the plurality of first files is used for a cell cutting system to cut a set of cells in a plurality of sets of cells imaged in a first image, a set of cells includes one or more cells, and the first image is determined based on an image output by a cell imaging system after cell imaging processing of a target tissue; then, based on the plurality of first files, a second file is generated, the second file contains first data for describing a cutting path of each cell in the plurality of sets of cells corresponding to the plurality of first files; and then, the second file is output to the cell cutting system, so that the cell cutting system cuts the plurality of sets of cells imaged in the first image based on the second file. In the above scheme, by processing the plurality of first files, the cutting paths of the plurality of cells corresponding to the plurality of sets of cells are integrated into the same file, that is, into the second file, and on this basis, the second file is input to the cell cutting system to realize cutting of the plurality of sets of cells. Compared with the related art, the cell cutting system does not need to perform multiple loading and cutting processes when cutting the plurality of sets of cells, thereby improving the cell cutting efficiency.
[0025] The present application will be further described in detail below with reference to the accompanying drawings and embodiments.
[0026] The embodiment of the present application provides a cell cutting method, in practical application, the method can be applied to an image processing system outside the cell imaging system and the cell cutting system, and the image processing system can be used as a plug-in between the cell imaging system and the cell cutting system. For the convenience of description, the image processing system can also be referred to as a plug-in system.
[0027] In practical application, the plug-in system can receive the image output by the cell imaging system based on the target tissue, and then perform corresponding image processing, for example, mask image conversion processing, and then output the file corresponding to the processing result to the cell cutting system, so that the cell cutting system cuts the cells in the target tissue. In this way, in the case that the output of the cell imaging system is incompatible with the input required by the cell cutting system, the plug-in system can convert through related processing, thereby improving the flexibility and efficiency of cell cutting, and further improving the flexibility and efficiency of analysis of the target tissue.
[0028] Referring to Figure 1 The cell cutting method provided by the embodiment of the present application comprises:
[0029] Step 101: Obtain a plurality of first files.
[0030] Each of the plurality of first files is used for the cell cutting system to cut a group of cells in a plurality of groups of cells imaged in a first image; a group of cells comprises one or more cells; the first image is determined based on an image output by the cell imaging system after cell imaging processing of the target tissue.
[0031] Here, the target tissue can be understood as a biological tissue that needs to be analyzed by a user, for example, the user can include a researcher, and the biological tissue can include a pathological tissue. The user can perform tumor microenvironment or spatial omics analysis based on the target tissue.
[0032] In practical application, the cell imaging system can perform microscopic imaging on the cells in the target tissue to generate a scanning image. After generating the scanning image, the cell imaging system can directly output the scanning image, or output the scanning image after optimization processing. The scanning image after optimization processing can also be referred to as an analysis image; for example, the optimization processing can include at least one or more of the following: saturation adjustment, brightness adjustment. For the convenience of description, the image output by the cell imaging system after cell imaging processing of the target tissue is referred to as an imaging image, that is, the scanning image and the analysis image are both referred to as imaging images, and the imaging image can contain one or more imaged cells.
[0033] Here, the first image is determined based on the image output by the cell imaging system after cell imaging of the target tissue, that is, the first image can be determined based on the imaging image output by the cell imaging system.
[0034] In actual applications, the imaging image can be directly used as the first image, or the imaging image can be pre-processed and then the pre-processed imaging image is used as the first image. Exemplarily, the pre-processing of the imaging image can at least include one or more of the following: expanding the cell contour in the imaging image by a set number of pixels, cell screening processing.
[0035] The cell imaging system can also identify the contour of the cells in the target tissue, and then output a mask image based on the identified cell contour.
[0036] The mask image can be characterized as a binary image, that is, each pixel in the mask image has only two values, and each pixel can be used to operate the pixel at the same position in the imaging image to indicate the target region in the imaging image where the cell is located, and the contour of the region can be regarded as the cell contour.
[0037] Exemplarily, the value of each pixel in the mask image can include: 0 or 1; wherein the pixel with a value of 0 represents a black pixel, which can be used to convert the pixel at the same position in the imaging image to a dark color, which is equivalent to weakening the image content at the same pixel position in the imaging image; the pixel with a value of 1 represents a white pixel, which can be used to maintain the color of the pixel at the same position in the imaging image, which is equivalent to retaining the content at the same pixel position in the imaging image. The white region in the mask image can represent the image region where the cell is located. It should be noted that the values of 0 or 1 are only examples, and in actual applications, the values corresponding to the pixels can also be set to 0 or 255, wherein the pixel with a value of 0 represents a black pixel, and the pixel with a value of 255 represents a white pixel. Here, the specific value mode is not limited.
[0038] In actual applications, the cell imaging system can image multiple groups of cells in the target tissue based on multiple analysis requirements of the user, and output one or more imaging images. The cell imaging system can also image all cells in the target tissue or cells in one or more fields indicated by the user, and these imaged cells can contain multiple groups of cells. Then, the cell imaging system can output one or more imaging images based on the imaging results. Each group of cells in the multiple groups of cells can correspond to an analysis requirement of the user, that is, it can be understood as a group of target cells intended to be analyzed by the user.
[0039] Based on the output of one or more imaging images by the cell imaging system, one or more first images can be determined based on the imaging images, and the determined one or more first images contain multiple groups of imaged cells.
[0040] In actual applications, the cell imaging system can also identify the cell contours of each group of cells in the target tissue based on multiple analysis requirements of the user, to output the mask image corresponding to each group of cells. In the process of outputting the mask images corresponding to the multiple groups of target cells, the cell imaging system can generate and output the mask image corresponding to each group of cells in batches.
[0041] For example, the cell imaging system can identify the cell contours of one or more cancer cells in the target tissue based on the analysis requirement 1 of the user, to output the mask image 1 corresponding to the cancer cells, which can be understood as a group of target cells. After generating the mask image 1, the cell imaging system can also identify the cell contours of one or more star-shaped cells in the target tissue based on the analysis requirement 2 of the user, to output the mask image 2 corresponding to the star-shaped cells, which can also be understood as a group of target cells. Here, the mask image 1 and the mask image 2 can be understood as mask images generated in different batches.
[0042] In actual applications, the mask image corresponding to each group of cells can also be generated by an image processing system other than the cell imaging system, such as a plug-in system. The cell cutting method provided in the embodiments of the present application can also include: screening multiple groups of cells from the target tissue to generate the mask image corresponding to each group of cells in the multiple groups of cells. In the process of screening multiple groups of cells from the target tissue to generate the mask image corresponding to each group of cells in the multiple groups of cells, the mask image output by the cell imaging system can be processed based on one or more analysis requirements of the user, to screen multiple groups of cells from the target tissue and generate the mask image corresponding to each group of cells in the multiple groups of cells.
[0043] Here, each of the multiple first files is used for the cell cutting system to cut a group of cells in the multiple groups of cells imaged in the first image. In actual applications, each of the multiple first files can be used for the cell cutting system to cut a group of cells in the multiple groups of cells imaged in one or more first images.
[0044] In actual applications, the first file can be determined based on a first mapping relationship and a second image, wherein the second image can be determined based on a first mask image, and the first mask image can be represented as a mask image output by the cell imaging system after identifying the cell contours of the group of cells corresponding to the first file in the target tissue; and the first mapping relationship can represent the coordinate mapping relationship of the corresponding pixels between the output image of the cell imaging system and the display interface of the cell cutting system.
[0045] In actual applications, the cell cutting method provided in the embodiments of the present application can further include: generating a first file based on the first mapping relationship and the second image. In the process of generating the first file, the second image can be converted into the first file based on the first mapping relationship. The second image can be obtained based on preprocessing of the first mask image. For example, the preprocessing of the first mask image can include at least one or more of the following: expanding the cell contour in the first mask image by a set number of pixels, cell screening processing.
[0046] The first file can include a cutting path of each cell in a corresponding group of cells. Each cell in the group of cells can be understood as each cell in a plurality of cells included in the group of cells. In the case of inputting a first file into a cell cutting system, the cell cutting system can cut the corresponding group of cells imaged based on the first file.
[0047] In actual applications, if the mask image output by the cell imaging system is directly input into the cell cutting system for display, there will be a large deviation between the image displayed on the display interface of the cell cutting system and the image actually output by the cell imaging system, for example, there are inconsistencies in image direction and scaling phenomena, etc., thereby causing the cell cutting system to be unable to accurately cut the cells in the imaged image based on the image output by the cell imaging system. The first file generated through the first mapping relationship is equivalent to adapting the cell imaging system and the cell cutting system, so that the cell cutting system can cut the cells based on the image output by the cell imaging system, thereby improving the efficiency and accuracy of cell cutting.
[0048] In actual applications, the file type corresponding to the first file can include an Extensible Markup Language (XML) file type.
[0049] Step 102: generating a second file based on a plurality of first files.
[0050] The second file includes first data for describing a cutting path of each cell in a plurality of groups of cells corresponding to the plurality of first files.
[0051] In actual applications, the cutting path of each cell in the plurality of groups of cells corresponding to the plurality of first files can be integrated into the second file through processing of the plurality of first files. The first data in the second file can be used to describe the cutting path of each cell in the plurality of groups of cells corresponding to the plurality of first files. The cutting path of each cell in the plurality of groups of cells can be understood as the cutting path of each cell in each group of cells in the plurality of groups of cells.
[0052] In actual applications, the first data in the second file can also be used to describe a first number of each cell in the multiple groups of cells corresponding to the multiple first files, and the first number can be used to identify the corresponding cell in the display interface of the cell cutting system.
[0053] In actual applications, the file type corresponding to the second file can include an XML file type.
[0054] Step 103: output the second file to the cell cutting system, so that the cell cutting system cuts the multiple groups of cells imaged in the first image based on the second file.
[0055] Here, outputting the second file to the cell cutting system can be understood as inputting the generated second file to the cell cutting system.
[0056] In actual applications, the generated second file can be directly input to the cell cutting system through wireless transmission or wired transmission, and the like, so that the cell cutting system can directly load the second file; or the second file can be output to a set storage path, and then the file loading mechanism of the cell cutting system is triggered to actively load the second file under the set storage path, so as to input the second file to the cell cutting system.
[0057] After loading the second file, the cell cutting system can present a cutting path in the display interface, and the area corresponding to the cutting path presented by the display interface can have the same position and size as the area corresponding to the cutting path indicated by the second file. Then, the cell cutting system can cut the multiple groups of cells imaged in the first image based on the cutting path. In the cutting process, the cell cutting system can cut out cell entities in the target tissue, and the cut-out cell entities correspond to the cells imaged in the first image.
[0058] In actual applications, the cell cutting system can cut the multiple groups of cells imaged in one or more first images based on the second file.
[0059] In actual applications, the cell cutting system can cut the multiple groups of cells imaged in the first image through one loading of the second file, that is, the cell cutting system can only perform one loading process when cutting the multiple groups of cells, and does not need to load multiple first files, and accordingly, the cutting process also only needs to be performed once, thereby avoiding multiple processes.
[0060] In the embodiments of the present application, through processing of the plurality of first files, the cutting paths of the plurality of cells corresponding to the plurality of groups of cells are integrated into the same file, that is, into the second file. On this basis, inputting the second file to the cell cutting system can realize cutting of the plurality of groups of cells. Compared with the related art, the cell cutting system does not need to perform multiple loading processing and cutting processes when cutting the plurality of groups of cells, thereby improving the cell cutting efficiency.
[0061] The generation manner of the second file is further described below.
[0062] In an embodiment, the second file is generated based on the plurality of first files, including:
[0063] Field recognition is performed on each of the plurality of first files to identify one or more first fields in each of the first files; each of the one or more first fields is used to describe a cutting path of a cell in a group of cells corresponding to the first file;
[0064] The plurality of first fields in the plurality of first files obtained are processed to obtain first data, so as to generate the second file.
[0065] In actual application, the first file can include one or more first fields, and each first field is used to describe a cutting path of a cell in a group of cells corresponding to the first file. Exemplarily, the first field can include a group field.
[0066] In actual application, the first setting instruction can be called to process each of the plurality of first files to perform field recognition. Exemplarily, the first setting instruction can include "combine_files".
[0067] Here, the plurality of first fields in the plurality of first files obtained are processed to obtain the first data, which can be regarded as integrating the plurality of cutting paths of the plurality of groups of cells described by the plurality of first files into the first data, that is, superimposing into the first data.
[0068] In actual application, the second setting instruction can be called to process the plurality of first fields obtained to perform the merging processing. Exemplarily, the second setting instruction can include "group.append".
[0069] After obtaining the first data, the second file can be generated based on the first data. The second file can include a plurality of second fields, each of which can correspond to a first field in the first file, and each of which can be used to describe a cutting path of a cell. The plurality of second fields included in the second file can be understood as the first data. Exemplarily, the second field can include a group field.
[0070] In practical applications, when the second file is generated based on the first data, at least one or more of the following processing can be performed: converting the first data into a plurality of second fields, adding additional information; for example, the additional information can include document declaration and / or root element information, etc.
[0071] In practical applications, through relevant processing, the cell cutting system can display the identification of each cell in the plurality of groups of cells in the display interface of the cell cutting system after loading the second file, that is, the cell cutting system can identify each cell in the display interface, thereby improving the intuitiveness of the cell cutting process, so that the user can better observe and / or control the cell cutting process in the cell cutting system, and the efficiency and flexibility of the cell cutting are improved.
[0072] In an embodiment, the first data in the second file is also used to describe a first number of each cell in the plurality of groups of cells corresponding to the plurality of first files; the first number is used to identify the corresponding cell in the display interface of the cell cutting system;
[0073] Correspondingly, based on the plurality of first files, the second file is generated, including:
[0074] Each cell in the plurality of groups of cells corresponding to the plurality of first files is numbered to obtain a first number of each cell in the plurality of groups of cells, so as to generate the second file.
[0075] In practical applications, the first number can be understood as the identification of the corresponding cell.
[0076] In practical applications, after the cell cutting system loads the second file, the first number of each cell corresponding to the second file can be displayed in the display interface. The user can select all or part of the cells based on the first number in the display interface of the cell cutting system and the user's analysis requirements, and input the first number corresponding to the selected cells to the cell cutting system, so that the cell cutting system cuts the cells selected by the user, thereby improving the efficiency and flexibility of the cell cutting.
[0077] In an embodiment, the attribute value of the first data attribute corresponding to each cell in the plurality of groups of cells in the first data is determined based on the corresponding first number.
[0078] In practical applications, the first data attribute in the first data can be used to describe the first number. The attribute value of the first data attribute can be obtained based on the splicing processing of the set string and the corresponding first number, and the attribute value of the first data attribute can also be represented as the corresponding first number.
[0079] Exemplarily, in a case that the first number of one cell is 1, the attribute value of the first data attribute corresponding to the cell in the first data can be represented as "Cells_1".
[0080] In practice, the first data attribute can be set on the second field in the second file. Exemplarily, the first data attribute can include attrib ["Name"], and in a case that the second field corresponding to one cell in the multiple groups of cells includes a group field, the group field corresponding to the cell and set with the first data attribute can be represented as: <Group Name="Cells_1" / >, where Name="Cells_1" can be understood as the first data attribute. It should be noted that, here, other data attributes that can be included in the first data are omitted for the convenience of understanding the first data attribute.
[0081] In the embodiments of the present application, the attribute value of the first data attribute corresponding to each cell in the multiple groups of cells in the first data is determined based on the corresponding first number, so that after the second file is loaded, the cell cutting system can identify each cell in the display interface according to the first data attribute in the second file, thereby improving the intuitiveness of the cell cutting processing, so that the user can better observe and / or control the cell cutting process in the cell cutting system, and the efficiency and flexibility of the cell cutting are improved.
[0082] The determination manner of the first number will be described below.
[0083] In an embodiment, each cell in the multiple groups of cells corresponding to the multiple first files is numbered to obtain the first number of each cell in the multiple groups of cells, including:
[0084] Based on the first coordinate of each cell in the multiple groups of cells, the first number of each cell in the multiple groups of cells is determined; the first coordinate represents the coordinate of the geometric center of the corresponding cell in the display interface of the cell cutting system, and the first coordinate is determined based on the first file corresponding to the cell.
[0085] In practice, the first coordinate of each cell in the multiple groups of cells can be determined based on the first file, and then the first number of each cell can be determined based on the first coordinate of each cell.
[0086] The first number of the cell can be used to describe the position of the geometric center of the cell in the display interface of the cell cutting system. When the first number of each cell is determined based on the first coordinate of each cell, the first number of each cell can be determined based on the first coordinate of each cell and the processing mode of the cell cutting system, so that the first number of the cell matches the processing mode of the cell cutting system. For example, the processing mode can include a cutting sequence mode of the cell cutting system, for example, the cutting sequence of each cell in a round of cell cutting of the cell cutting system can include: from the lower right corner to the upper left corner, or from the lower left corner to the upper right corner.
[0087] For example, when the processing mode of the cell cutting system indicates that the cutting is performed in the order from the lower right corner to the upper left corner, the first number of each cell can be determined based on the processing mode and the first coordinate of each cell, so that the first numbers corresponding to the plurality of groups of cells increase in the order of cell positions from the lower right corner to the upper left corner, and the order of cell positions can be determined based on the first coordinate of the cell.
[0088] In the embodiments of the present application, the first number of the cell is determined based on the first coordinate, and on this basis, the first number of the cell can be matched with the processing mode of the cell cutting system, thereby improving the efficiency of cell cutting and reducing the operation difficulty of the cell cutting system.
[0089] In an embodiment, the first number of each cell in the plurality of groups of cells is determined based on the first coordinate of each cell in the plurality of groups of cells, comprising:
[0090] The first sum value corresponding to each cell in the plurality of groups of cells is calculated based on the first coordinate of each cell in the plurality of groups of cells; wherein the first sum value represents the sum of the first ratio and the first product, the first product represents the product of the set positive integer value and the second ratio, the first ratio represents an integer determined based on the ratio of the coordinate value of the first coordinate of the corresponding cell on the first coordinate axis to the first set parameter, and the second ratio represents an integer determined based on the ratio of the coordinate value of the first coordinate of the corresponding cell on the second coordinate axis to the second set parameter; the first set parameter is determined based on the field of view (FoV) size of the cell imaging system in the corresponding direction of the first coordinate axis; and the second set parameter is determined based on the FoV size of the cell imaging system in the corresponding direction of the second coordinate axis.
[0091] The first number of each cell in the plurality of groups of cells is determined based on the first sum value corresponding to each cell in the plurality of groups of cells.
[0092] In actual applications, the first coordinate axis can be represented as a horizontal coordinate axis, in which case the second coordinate axis can be represented as a vertical coordinate axis. The first coordinate axis can also be represented as a vertical coordinate axis, in which case the second coordinate axis can be represented as a horizontal coordinate axis. The direction corresponding to the horizontal coordinate axis can be understood as a horizontal direction, and the direction corresponding to the vertical coordinate axis can be understood as a vertical direction.
[0093] In actual applications, the first set parameter and the second set parameter can be represented as corresponding FoV sizes. The FoV sizes corresponding to the first set parameter and the second set parameter can be determined based on imaging parameters of the cell imaging system. Exemplarily, the imaging parameters can include the magnification of the scanning objective.
[0094] The first image can include a plurality of FoV imaging regions, and each FoV imaging region can include one or more cells. The FoV size corresponding to the first set parameter can be regarded as the size of a single FoV imaging region in the direction corresponding to the first coordinate axis, and the FoV size corresponding to the second set parameter can be regarded as the size of a single FoV imaging region in the direction corresponding to the second coordinate axis.
[0095] Here, the first sum value corresponding to each cell in the plurality of groups of cells is calculated based on the first coordinate of each cell in the plurality of groups of cells, and then the first number of each cell is determined according to the first sum value corresponding to each cell.
[0096] Exemplarily, the first sum value corresponding to each cell can be represented as:
[0097] fov_index = fov_index_x + 100 x fov_index_y,
[0098] wherein fov_index can represent the first sum value, fov_index_x can represent the first ratio value, fov_index_y can represent the second ratio value, and 100 can represent a set positive integer value.
[0099] In actual applications, the numbering order of the first number of each cell in the plurality of groups of cells can be determined based on the size of the first sum value corresponding to the cell in the plurality of calculated first sum values.
[0100] The numbering order of the first number of each cell in each group of cells can be determined based on the size of the first sum value corresponding to the cell in the plurality of first sum values corresponding to the group of cells. There can be no repeated first numbers in the plurality of first numbers corresponding to each group of cells; the first numbers corresponding to different groups of cells can be repeated or not repeated.
[0101] Exemplarily, in a case that a first sum value corresponding to cell 1 in a group of cells is greater than a first sum value corresponding to cell 2 in the group of cells, the first number of cell 1 can be greater than the first number of cell 2.
[0102] Exemplarily, in a case that a first sum value corresponding to cell 1 in a group of cells is equal to a first sum value corresponding to cell 2 in the group of cells, the first number of cell 1 can be greater than the first number of cell 2, or the first number of cell 1 can be less than the first number of cell 2, the first numbers corresponding to the same first sum value can be set according to actual requirements or randomly, so as to make the first numbers corresponding to the same first sum value not repeated.
[0103] Exemplarily, in a case that the first number of a cell in a group of cells, for example, group 1, is 1, the first number of a cell in another group of cells, for example, group 2, can also be 1.
[0104] In an embodiment, the first numbers corresponding to the plurality of first cells in the plurality of groups of cells are represented as a plurality of consecutive integer values; and the plurality of first cells are represented as a plurality of cells with the same first ratio and the same second ratio.
[0105] In actual application, the plurality of cells with the same first ratio and the same second ratio can be understood as a plurality of cells located in the same FoV imaging region, that is, the plurality of first cells in the plurality of groups of cells are located in the same FoV imaging region.
[0106] In actual application, the plurality of first cells can be represented as a plurality of cells with the same first ratio and the same second ratio in the same group.
[0107] In the embodiments of the present application, the first numbers corresponding to the plurality of first cells in the plurality of groups of cells are represented as a plurality of consecutive integer values, so that the first numbers corresponding to the plurality of cells in the same FoV imaging region are consecutive, and on this basis, the user can better observe and / or control the cell cutting process in the cell cutting system, thereby improving the efficiency and flexibility of cell cutting.
[0108] Exemplarily, in a case that the user only needs to analyze the cells in a single FoV imaging region, since the first numbers of the cells in the FoV imaging region are consecutive, the user can conveniently determine the first numbers of the cells in the FoV imaging region and input the corresponding first numbers, so that the cell cutting system cuts the cells, thereby improving the efficiency and flexibility of cell cutting.
[0109] Based on the above method embodiments, the embodiments of the present application also provide an image processing system.
[0110] In practical applications, the image processing system can be characterized as an image processing system outside the cell imaging system and the cell cutting system, and the image processing system can be used as a plug-in between the cell imaging system and the cell cutting system. For ease of description, the image processing system can also be referred to as a plug-in system.
[0111] In practical applications, the image processing system provided in the embodiments of the present application can receive an image output by the cell imaging system based on the target tissue, and then perform corresponding image processing, for example, mask image conversion processing, and then output a file corresponding to the processing result to the cell cutting system, so that the cell cutting system cuts the cells in the target tissue. In this way, in the case that the output of the cell imaging system is incompatible with the input required by the cell cutting system, the plug-in system can perform conversion through related processing, improving the flexibility and efficiency of cell cutting, and further improving the flexibility and efficiency of analysis of the target tissue.
[0112] Here, the image processing system can be used to execute the method in any of the above embodiments to enable the cell cutting system to cut the multiple groups of cells imaged in the first image.
[0113] In practical applications, the image processing system can include a display module, which can be used to display a first interface. The image processing system can obtain and / or determine relevant information for outputting a second file based on user operations in the first interface, and then generate and output the second file to enable the cell cutting system to cut the multiple groups of cells imaged in the first image.
[0114] Exemplarily, Figure 2 A schematic diagram of a first interface is provided, which includes the following input items:
[0115] Selected XML file (select XML file), used for the image processing system to obtain multiple first files in the embodiments of the present application. In practical applications, the user can input the storage path corresponding to the multiple first files through the operation of the input component corresponding to the input item, so that the image processing system obtains the multiple first files. The input component corresponding to the input item can be characterized as a file selector.
[0116] Selected Folder (selected folder), used for the image processing system to determine the output path of the second file. In practical applications, the input component corresponding to the input item can be characterized as a folder selector.
[0117] The first interface further includes a Start button, and in practical applications, the user can trigger the image processing system to generate and output the second file by clicking the Start button.
[0118] In the embodiment of the present application, the image processing system integrates the cutting paths of the plurality of cells corresponding to the plurality of groups of cells into the same file, that is, into the second file, through processing of the plurality of first files. On this basis, inputting the second file to the cell cutting system can realize cutting of the plurality of groups of cells. Compared with the related art, the cell cutting system does not need to perform multiple loading processing and cutting processes when cutting the plurality of groups of cells, thereby improving the cell cutting efficiency.
[0119] Based on the above embodiment, the embodiment of the present application further provides a cell cutting device, which is described below with reference to Figure 3 The cell cutting device comprises:
[0120] The acquisition unit 31 is configured to acquire a plurality of first files. Each of the plurality of first files is used for the cell cutting system to cut a group of cells in a plurality of groups of cells imaged in a first image. The group of cells comprises one or more cells. The first image is determined based on an image output by a cell imaging system after cell imaging processing of a target tissue.
[0121] The generation unit 32 is configured to generate a second file based on the plurality of first files. The second file comprises first data used to describe a cutting path of each cell in a plurality of groups of cells corresponding to the plurality of first files.
[0122] The output unit 33 is configured to output the second file to the cell cutting system, so that the cell cutting system cuts the plurality of groups of cells imaged in the first image based on the second file.
[0123] In an embodiment, the generation unit 32 generates the second file based on the plurality of first files, comprising:
[0124] Field recognition is performed on each of the plurality of first files to identify one or more first fields in each first file. Each of the one or more first fields is used to describe a cutting path of a cell in a group of cells corresponding to the first file.
[0125] The plurality of first fields in the plurality of first files obtained are subjected to merging processing to obtain the first data, so as to generate the second file.
[0126] In an embodiment, the first data in the second file is further used to describe a first number of each cell in the plurality of groups of cells corresponding to the plurality of first files. The first number is used to identify the corresponding cell in a display interface of the cell cutting system.
[0127] Correspondingly, the generation unit 32 generates the second file based on the plurality of first files, comprising:
[0128] The generating file 32 performs numbering processing on each cell in the multiple groups of cells corresponding to the multiple first files to obtain a first number of each cell in the multiple groups of cells, to generate a second file.
[0129] In an embodiment, the generating file 32 performs numbering processing on each cell in the multiple groups of cells corresponding to the multiple first files to obtain a first number of each cell in the multiple groups of cells, including:
[0130] Based on the first coordinate of each cell in the multiple groups of cells, a first number of each cell in the multiple groups of cells is determined; the first coordinate represents the coordinate of the geometric center of the corresponding cell in the display interface of the cell cutting system, and the first coordinate is determined based on the first file corresponding to the cell.
[0131] In an embodiment, the generating file 32 determines the first number of each cell in the multiple groups of cells based on the first coordinate of each cell in the multiple groups of cells, including:
[0132] Based on the first coordinate of each cell in the multiple groups of cells, a first sum value corresponding to each cell in the multiple groups of cells is calculated respectively; wherein the first sum value represents the sum of a first ratio and a first product, the first product represents the product of a set positive integer value and a second ratio, the first ratio represents an integer determined based on the ratio of the coordinate value of the first coordinate of the corresponding cell on the first coordinate axis to the first set parameter, and the second ratio represents an integer determined based on the ratio of the coordinate value of the first coordinate of the corresponding cell on the second coordinate axis to the second set parameter; the first set parameter is determined based on the FoV size of the cell imaging system in the corresponding direction of the first coordinate axis; and the second set parameter is determined based on the FoV size of the cell imaging system in the corresponding direction of the second coordinate axis.
[0133] Based on the first sum value corresponding to each cell in the multiple groups of cells, a first number of each cell in the multiple groups of cells is determined.
[0134] In an embodiment, the multiple first numbers corresponding to the multiple first cells in the multiple groups of cells represent multiple consecutive integer values; the multiple first cells represent multiple cells with the same corresponding first ratio and the same corresponding second ratio.
[0135] In an embodiment, the attribute value of the first data attribute corresponding to each cell in the multiple groups of cells in the first data is determined based on the corresponding first number.
[0136] In actual application, the acquisition unit 31, the generating unit 32 and the output unit 33 can be realized by a processor in the cell cutting device.
[0137] It should be noted that the cell cutting device provided in the above embodiment is only used for illustrating the division of the above program modules when cutting cells. In actual application, the above processing distribution can be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above processing. In addition, the cell cutting device and the cell cutting method provided in the above embodiment belong to the same concept, and the specific implementation process is described in the method embodiment, which will not be repeated here.
[0138] It should be further noted that the cell cutting device in the embodiment of the application is different from the cell cutting system in actual application. In actual application, the cell cutting device in the embodiment of the application can be used as a plug-in between the cell imaging system and the cell cutting system.
[0139] Based on the hardware implementation of the above program modules, and in order to realize the method of the embodiment of the application, the application further provides an electronic device, which is shown in Figure 4 The electronic device comprises:
[0140] The communication interface 1 can interact with other devices.
[0141] The processor 2 is connected with the communication interface 1 to realize information interaction with other devices, and is used to run a computer program to execute the method provided in one or more technical solutions in the above embodiment. The computer program is stored on the memory 3.
[0142] Specifically, the processor 2 is used to acquire a plurality of first files; each first file in the plurality of first files is used for the cell cutting system to cut a group of cells in a plurality of groups of cells imaged in a first image; the group of cells comprises one or more cells; the first image is determined based on an image output by the cell imaging system after cell imaging processing of a target tissue; and
[0143] Based on the plurality of first files, a second file is generated; the second file comprises first data for describing a cutting path of each cell in a plurality of groups of cells corresponding to the plurality of first files; and
[0144] The second file is output to the cell cutting system, so that the cell cutting system cuts a plurality of groups of cells imaged in the first image based on the second file.
[0145] In an embodiment, the processor 2 generates a second file based on the plurality of first files, comprising:
[0146] performing field recognition on each of the plurality of first files to recognize one or more first fields in each of the first files; each of the one or more first fields is used to describe a cutting path of a cell in a group of cells corresponding to the first file;
[0147] performing merging processing on the plurality of first fields in the obtained plurality of first files to obtain the first data, so as to generate the second file.
[0148] In an embodiment, the first data in the second file is further used to describe a first number of each cell in the plurality of groups of cells corresponding to the plurality of first files; the first number is used to identify the corresponding cell in a display interface of the cell cutting system.
[0149] Correspondingly, the processor 2 generates a second file based on the plurality of first files, including:
[0150] performing numbering processing on each cell in the plurality of groups of cells corresponding to the plurality of first files to obtain a first number of each cell in the plurality of groups of cells, so as to generate the second file.
[0151] In an embodiment, the processor 2 performs numbering processing on each cell in the plurality of groups of cells corresponding to the plurality of first files to obtain a first number of each cell in the plurality of groups of cells, including:
[0152] determining the first number of each cell in the plurality of groups of cells based on a first coordinate of each cell in the plurality of groups of cells; the first coordinate represents a coordinate of a geometric center of the corresponding cell in a display interface of the cell cutting system, and the first coordinate is determined based on the first file corresponding to the cell.
[0153] In an embodiment, the processor 2 determines the first number of each cell in the plurality of groups of cells based on the first coordinate of each cell in the plurality of groups of cells, including:
[0154] respectively calculating a first sum value corresponding to each cell in the plurality of groups of cells based on the first coordinate of each cell in the plurality of groups of cells; wherein the first sum value represents a sum value of a first ratio and a first product; the first product represents a product of a positive integer value and a second ratio; the first ratio represents an integer determined based on a ratio of a coordinate value of the first coordinate of the corresponding cell on a first coordinate axis to a first setting parameter; the second ratio represents an integer determined based on a ratio of a coordinate value of the first coordinate of the corresponding cell on a second coordinate axis to a second setting parameter; the first setting parameter is determined based on a FoV size of the cell imaging system in a direction corresponding to the first coordinate axis; and the second setting parameter is determined based on a FoV size of the cell imaging system in a direction corresponding to the second coordinate axis.
[0155] determine a first number of each cell in the plurality of groups of cells based on the first and second values corresponding to each cell in the plurality of groups of cells.
[0156] In an embodiment, the plurality of first numbers corresponding to the plurality of first cells in the plurality of groups of cells are represented as a plurality of consecutive integer values; and the plurality of first cells are represented as a plurality of cells having a same first ratio value and a same second ratio value.
[0157] In an embodiment, an attribute value of a first data attribute corresponding to each cell in the plurality of groups of cells in the first data is determined based on the corresponding first number.
[0158] It should be noted that the specific processing procedure of the communication interface 1 can be understood with reference to the above method.
[0159] Of course, in actual application, various components in the electronic device are coupled together through the bus system 4. It can be understood that the bus system 4 is used to realize the connection communication between the components. The bus system 4 includes not only a data bus, but also a power bus, a control bus and a status signal bus. However, in order to clearly illustrate, all kinds of buses are marked as the bus system 4 in the Figure 4
[0160] The memory 3 in the embodiment of the present application is used to store various types of data to support the operation in the electronic device. Examples of these data include: any computer programs used for operation on the electronic device.
[0161] The method disclosed in the above embodiment of the present application can be applied to or implemented by the processor 2. The processor 2 can be an integrated circuit chip with a signal processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuit or the instruction in the form of software in the processor 2. The processor 2 mentioned above can be a general processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The processor 2 can realize or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiments of the present application, the execution can be directly embodied as a hardware coding processor, or a combination of hardware and software modules in the coding processor. The software module can be located in the storage medium, which is located in the memory 3, and the processor 2 reads the information in the memory 3 and combines the hardware to complete the steps of the above method.
[0162] In exemplary embodiments, the electronic device can be implemented with one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, Microprocessors, or other electronic elements for performing the aforementioned methods.
[0163] It can be understood that the memory 3 of the embodiments of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM). The magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM) used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), sync link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory described in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memory.
[0164] In the example embodiments, the embodiments of the present application also provide a storage medium, i.e., a computer storage medium, specifically a computer readable storage medium, such as an electronic device including a computer program stored therein, which can be executed by the processor 2 of the electronic device to complete the steps of the foregoing method. The computer readable storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM, etc.
[0165] In the example embodiments, the embodiments of the present application also provide a computer program product including a computer program, which can be executed by the processor 2 of the electronic device to complete the steps of any of the foregoing methods.
[0166] It should be noted that "first", "second", etc. are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.
[0167] The term "and / or" herein is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. In addition, the term "one or more" herein means any combination of at least two of any one or more of a plurality, for example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0168] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
Claims
1. A method of cell cleavage, characterized by, The method comprises: obtaining a plurality of first files; each of the plurality of first files is used for a cell cutting system to cut a group of cells in a plurality of groups of cells imaged in a first image; the group of cells comprises one or more cells; the first image is determined based on an image output after a cell imaging system performs cell imaging processing on a target tissue; based on the plurality of first files, generating a second file; the second file contains first data for describing the cutting path of each cell in the plurality of groups of cells corresponding to the plurality of first files; outputting the second file to the cell cutting system, so that the cell cutting system cuts the plurality of groups of cells imaged in the first image based on the second file.
2. The method of claim 1, wherein, The method comprises: field recognition is performed on each of the plurality of first files to identify one or more first fields in each first file; each of the one or more first fields is used to describe the cutting path of a cell in a group of cells corresponding to the first file; the plurality of first fields in the plurality of first files are merged to obtain the first data, so as to generate the second file.
3. The method of claim 1, wherein, The first data in the second file is also used to describe a first number of each cell in the plurality of groups of cells corresponding to the plurality of first files; the first number is used to identify the corresponding cell in the display interface of the cell cutting system; correspondingly, the method comprises: numbering processing is performed on each cell in the plurality of groups of cells corresponding to the plurality of first files to obtain a first number of each cell in the plurality of groups of cells, so as to generate the second file.
4. The method of claim 3, wherein, The method comprises: based on the first coordinates of each cell in the plurality of groups of cells, determining the first number of each cell in the plurality of groups of cells; the first coordinates represent the coordinates of the geometric center of the corresponding cell in the display interface of the cell cutting system, and the first coordinates are determined based on the first file corresponding to the cell.
5. The method of claim 4, wherein, The method comprises: based on the first coordinates of each cell in the plurality of groups of cells, determining the first number of each cell in the plurality of groups of cells; the first coordinates represent the coordinates of the geometric center of the corresponding cell in the display interface of the cell cutting system, and the first coordinates are determined based on the first file corresponding to the cell. The first sum value of each cell in the plurality of groups of cells is calculated based on the first coordinate of the cell, wherein the first sum value is represented as a sum of a first ratio and a first product, the first product is represented as a product of a positive integer value and a second ratio, the first ratio is represented as an integer determined based on a ratio of a coordinate value of the first coordinate of the corresponding cell on a first coordinate axis to a first set parameter, and the second ratio is represented as an integer determined based on a ratio of a coordinate value of the first coordinate of the corresponding cell on a second coordinate axis to a second set parameter; the first set parameter is determined based on a field of view (FoV) size of the cell imaging system in the corresponding direction of the first coordinate axis; and the second set parameter is determined based on the FoV size of the cell imaging system in the corresponding direction of the second coordinate axis. The first number of each cell in the plurality of groups of cells is determined based on the first sum value of the corresponding cell.
6. The method of claim 5, wherein, The plurality of first numbers of the plurality of first cells in the plurality of groups of cells are represented as a plurality of consecutive integer values; and the plurality of first cells are represented as a plurality of cells with the same corresponding first ratio and the same corresponding second ratio.
7. The method of claim 3, wherein, The attribute value of the first data attribute corresponding to the first data of each cell in the plurality of groups of cells is determined based on the corresponding first number.
8. A cell cleaving device, characterized in that, The method comprises the following steps: An acquisition unit is configured to acquire a plurality of first files. Each first file in the plurality of first files is used for a cell cutting system to cut a group of cells in a plurality of groups of cells imaged in a first image; the group of cells comprises one or more cells. The first image is determined based on an image output by a cell imaging system after performing cell imaging processing on a target tissue. A generation unit is configured to generate a second file based on the plurality of first files. The second file comprises first data used to describe a cutting path of each cell in a plurality of groups of cells corresponding to the plurality of first files. An output unit is configured to output the second file to the cell cutting system, so that the cell cutting system cuts the plurality of groups of cells imaged in the first image based on the second file.
9. An electronic device, comprising: The method comprises the following steps: A processor and a memory for storing a computer program capable of running on the processor, When the processor runs the computer program, the processor executes the steps of the method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Methods and compositions for obtaining associated image and sequence data of single cells
CN119403936A
Method for Accurate Segmentation of Unstained Living Adherent Cells in Differential Interference Contrast Images
US20250148813A1