Cell frame selection method and device, computer equipment and storage medium

By calculating weighted Chebyshev distance and sorting accumulation, cells are automatically selected, solving the problem of low efficiency in cell selection and achieving accurate selection of cell number.

CN121788412APending Publication Date: 2026-04-03HANGZHOU ZHIWEI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Current cell selection technologies are inefficient and rely on manual operation, which is time-consuming and labor-intensive.

Method used

Based on the preset aspect ratio and the center point coordinates of each cell frame in the cell viewport and the user-preset position, the weighted Chebyshev distance is calculated, the cell frames are sorted and accumulated, the target cell frame is determined, and the minimum bounding rectangle is output.

Benefits of technology

It enables automated and precise selection of a preset number of cells based on the doctor's selected location, thus improving cell selection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121788412A_ABST
    Figure CN121788412A_ABST
Patent Text Reader

Abstract

The invention relates to a cell frame selection method, a cell frame selection device, computer equipment and a computer readable storage medium. Based on a preset aspect ratio, center point coordinates of cell frames in a cell view block diagram and center point coordinates of a user preset position in the cell view block diagram; determining a weighted Chebyshev distance between the central point of the preset position of the user and the central point of each cell frame; sorting the cell frames from small to large based on the weighted Chebyshev distance between the central point of the preset position of the user and the central point of each cell frame; accumulating the cell numbers of the cell frames from front to back according to the sorting result, and taking the cell frames participating in cell number accumulation when the cell number accumulation result is closest to the cell number preset by the user as target cell frames; and outputting the minimum bounding rectangle of the target cell frame based on the vertex coordinates of the target cell frame, thereby effectively improving the cell frame selection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cell detection technology, and in particular to a cell selection method, apparatus, computer equipment, and storage medium. Background Technology

[0002] In the medical field, after scanning cell smears to obtain cell smear images, to facilitate doctors' observation of these images, a minimum number of pre-defined rectangular boxes are typically used to select all cells in the cell smear image, resulting in an image like this. Figure 1 The cell field of view diagram shown makes the areas containing cells in a cell smear image more intuitively displayed to the doctor. Doctors usually need to select a preset number of cells at the desired location in the cell field of view diagram so that they can make a diagnosis based on the proportion of each cell type in the selected cells. Therefore, selecting a preset number of cells at a preset location in the cell field of view diagram is very important for clinical diagnosis.

[0003] In existing technologies, a preset number of cells are manually selected from user-preset locations in the cell field of view. However, this manual process is time-consuming and labor-intensive, resulting in low efficiency in cell selection.

[0004] There is currently no effective solution to the problem of low cell selection efficiency in existing technologies. Summary of the Invention

[0005] Therefore, it is necessary to provide a cell selection method, apparatus, computer device, and computer-readable storage medium to address the aforementioned technical problems and solve the problem of low cell selection efficiency in related technologies.

[0006] In a first aspect, embodiments of this application provide a cell selection method, the method comprising the following steps:

[0007] Based on a preset aspect ratio, the coordinates of the center points of each cell frame in the cell field of view, and the coordinates of the center point of a user-preset position in the cell field of view, the weighted Chebyshev distance between the center point of the user-preset position and the center points of each cell frame is determined. The width ratio in the preset aspect ratio is used as the weight of the difference in the abscissa between the center point of the user-preset position and the center points of each cell frame; the height ratio in the preset aspect ratio is used as the weight of the difference in the ordinate between the center point of the user-preset position and the center points of each cell frame; the cell field of view is an image obtained by selecting all cells in a cell smear image using a minimum number of preset-sized rectangular boxes.

[0008] The cell frames are sorted from smallest to largest based on the weighted Chebyshev distance between the center point of the user-preset location and the center point of each cell frame;

[0009] The cell counts of the cell frames are accumulated from front to back according to the sorting results. The cell frame whose cell count accumulation result is closest to the user's preset cell count is selected as the target cell frame.

[0010] Based on the vertex coordinates of the target cell box, output the minimum bounding rectangle of the target cell box.

[0011] In one embodiment, before determining the weighted Chebyshev distance between the center point of the user's preset position and the center points of each of the cell frames based on a preset aspect ratio, the coordinates of the center points of each cell frame in the cell viewport, and the coordinates of the center point of the user's preset position in the cell viewport, the method further includes:

[0012] Determine the coordinates of the center point of each cell frame in the cell viewport and the coordinates of the center point of the user-preset position in the cell viewport.

[0013] Secondly, this application also provides a cell selection device, which includes a calculation module, a sorting module, an accumulation module and an output module;

[0014] The calculation module is used to determine the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame based on a preset aspect ratio, the coordinates of the center points of each cell frame in the cell field of view, and the coordinates of the center point of the user's preset position in the cell field of view. The width ratio in the preset aspect ratio is used as the weight of the difference between the x-coordinates of the center point of the user's preset position and the center points of each cell frame; the height ratio in the preset aspect ratio is used as the weight of the difference between the y-coordinates of the center point of the user's preset position and the center points of each cell frame; the cell field of view is an image obtained by selecting all cells in a cell smear image using a minimum number of preset-sized rectangular boxes.

[0015] The sorting module is used to sort the cell frames from smallest to largest based on the weighted Chebyshev distance between the center point of the user preset position and the center point of each cell frame;

[0016] The accumulation module is used to accumulate the number of cells in the cell frame from front to back according to the sorting result, and the cell frame that participates in the accumulation of cell count when the cell count accumulation result is closest to the user preset cell count is taken as the target cell frame.

[0017] The output module is used to output the minimum bounding rectangle of the target cell frame based on the vertex coordinates of the target cell frame.

[0018] Thirdly, this embodiment provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method described in the first aspect above.

[0019] Fourthly, this embodiment provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect above.

[0020] The aforementioned cell bounding box selection method, apparatus, computer device, and computer-readable storage medium determine the weighted Chebyshev distance between the center point of the user-preset position and the center points of each cell bounding box based on a preset aspect ratio, the coordinates of the center points of each cell bounding box in the cell field of view, and the coordinates of the center point of the user-preset position in the cell field of view. Specifically, the width ratio in the preset aspect ratio serves as the weight of the difference in the abscissa between the center point of the user-preset position and the center points of each cell bounding box; the height ratio in the preset aspect ratio serves as the weight of the difference in the ordinate between the center point of the user-preset position and the center points of each cell bounding box; the cell field of view is an image obtained by selecting all cells in a cell smear image using the minimum number of rectangles of a preset size; the cell bounding boxes are sorted from smallest to largest based on the weighted Chebyshev distance between the center point of the user-preset position and the center points of each cell bounding box; the number of cells in each cell bounding box is accumulated from front to back according to the sorting result, and the cell bounding box whose accumulated cell number is closest to the user-preset cell number is selected as the target cell bounding box; and the minimum bounding rectangle of the target cell bounding box is output based on the vertex coordinates of the target cell bounding box. This application determines the weighted Chebyshev distance between the center point of the user's preset location and the center point of each cell frame, and then sorts the cell frames according to the weighted Chebyshev distance. The result that is close to the preset location and meets the cell number requirement is selected as the final selection result. It can accurately select the preset number of cells based on the preset aspect ratio according to the location selected by the doctor, effectively improving the cell selection efficiency. Attached Figure Description

[0021] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0022] Figure 1 This is a schematic diagram of the cell field of view in the cell selection method provided according to the embodiments of this application;

[0023] Figure 2 This is an application scenario diagram of the cell selection method provided in the embodiments of this application;

[0024] Figure 3 This is a flowchart of a cell selection method provided according to an embodiment of this application;

[0025] Figure 4 This is a schematic diagram of a user-preset position in the cell selection method provided according to the embodiments of this application;

[0026] Figure 5 This is a schematic diagram of the minimum bounding rectangle output result in the cell selection method provided in the embodiments of this application;

[0027] Figure 6 A schematic diagram of the cell selection device provided in the embodiments of this application;

[0028] Figure 7 A schematic diagram of the structure of a computer device provided in the embodiments of this application. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0030] Obviously, the accompanying drawings described below are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar scenarios based on these drawings without any inventive effort. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, any changes to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.

[0031] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0032] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units not listed, or may include other steps or units inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following objects are in an "or" relationship. The terms "first," "second," and "third" used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.

[0033] Figure 2 This diagram illustrates an application scenario of a cell selection method provided in one embodiment of this application. Figure 2As shown, data can be transmitted between server 101 and mobile terminal 102 via the network. Mobile terminal 102 is used to acquire a preset aspect ratio, a cell field of view, the vertex coordinates of a user-preset position within the cell field of view, and the vertex coordinates of each cell frame within the cell field of view. It then transmits this acquired information to server 101. The cell field of view is an image obtained by selecting all cells in a cell smear image using a minimum number of preset-sized rectangular boxes. Server 101 determines the center point coordinates of the user's preset position based on the vertex coordinates of the user's preset position in the cell viewport; and determines the center point coordinates of each cell frame based on the vertex coordinates of each cell frame in the cell viewport. Server 101 determines the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame based on a preset aspect ratio, the center point coordinates of each cell frame in the cell viewport, and the center point coordinates of the user's preset position. The width ratio in the preset aspect ratio is used as the weight of the difference between the x-coordinates of the center point of the user's preset position and the center points of each cell frame; the height ratio in the preset aspect ratio is used as the weight of the difference between the y-coordinates of the center point of the user's preset position and the center points of each cell frame. Server 101 also sorts the cell frames based on the magnitude of the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame; based on the sorting result, the cell count of each cell frame is accumulated from front to back, and the cell frame whose accumulated cell count is closest to the user's preset cell count is selected as the target cell frame; based on the vertex coordinates of the target cell frame, the minimum bounding rectangle of the target cell frame is output.

[0034] This application provides a cell selection method, such as... Figure 3 As shown, the method includes the following steps:

[0035] Step S210: Based on the preset aspect ratio, the coordinates of the center points of each cell frame in the cell field of view, and the coordinates of the center point of the user-preset position in the cell field of view, determine the weighted Chebyshev distance between the center point of the user-preset position and the center points of each cell frame; wherein, the width ratio in the preset aspect ratio is used as the weight of the difference between the abscissa of the center point of the user-preset position and the center points of each cell frame; the height ratio in the preset aspect ratio is used as the weight of the difference between the ordinate of the center point of the user-preset position and the center points of each cell frame; the cell field of view is an image obtained by selecting all cells in the cell smear image using the minimum number of preset-sized rectangles.

[0036] Specifically, since the ratio of the rectangle used to select the preset number of cells is not unique (e.g., it could be 1:1, 1:2, or 1:3), in this application, the user can preset their preferred aspect ratio to obtain a preset aspect ratio. Of course, the user can have one or more preset aspect ratios; the default is 1:1. Figure 4 As shown, Figure 4 This is a schematic diagram of the user-preset position in the cell selection method. The user-preset position is the position that the user wants to observe. The user can obtain the user-preset position by drawing a rectangle or circle at the desired observation position in the cell viewport. Then, based on the shape and vertex coordinates of the user-preset position, the coordinates of the center point of the user-preset position can be determined. Similarly, based on the vertex coordinates of each cell frame in the cell viewport, the coordinates of the center point of each cell frame in the cell viewport can be obtained. Taking the center point coordinates of the user-preset position as (X1, Y1), the center point coordinates of the cell frame as (X2, Y2), the preset aspect ratio as ratio1∶ratio2, and the weighted Chebyshev distance between the center point of the user-preset position and the center points of each cell frame as Dist as an example, then Dist=max(ratio1×|X1 - X2|,ratio2×|Y1 - Y2|). This application uses a preset aspect ratio to weight the Chebyshev distance between the center point of the user-preset position and the center point of each cell frame, and calculates the distance using the preset aspect ratio, ensuring that the rectangle used to select the preset number of cells is output according to the preset aspect ratio.

[0037] Of course, assuming there are multiple preset aspect ratios, it is necessary to calculate the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame under different aspect ratios. For example, if the preset aspect ratios are 1:1 and 1:2, then when the preset aspect ratio is 1:1, the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame is Dist = max(|X1 - X2|, |Y1 - Y2|); when the preset aspect ratio is 1:2, the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame is Dist = max(|X1 - X2|, 2 × |Y1 - Y2|).

[0038] Step S220: Sort the cell frames from smallest to largest based on the weighted Chebyshev distance between the center point of the user-preset location and the center point of each cell frame.

[0039] After calculating the weighted Chebyshev distance between the center point of the user-preset location and the center points of each cell frame in step S210, the cell frames can be sorted from smallest to largest based on the weighted Chebyshev distance between the center point of the user-preset location and the center points of each cell frame. Of course, the number of weighted Chebyshev distance sorting results will correspond to the number of preset aspect ratios.

[0040] Step S230: Based on the sorting results, the cell count of the cell boxes is accumulated from front to back. The cell box whose cell count accumulation result is closest to the user's preset cell count is selected as the target cell box.

[0041] Specifically, assuming the preset aspect ratio is only 1:1, the sorting result is: cell frame ① (8 cells), cell frame ② (9 cells), cell frame ③ (12 cells), cell frame ④ (14 cells), cell frame ⑤ (8 cells), cell frame ⑥ (6 cells), cell frame ⑦ (15 cells), cell frame ⑧ (14 cells), cell frame ⑨ (16 cells), and cell frame ⑩ (7 cells). Assuming the preset number of cells is 50, the cells are sorted from front to back according to the sorting result. The cell counts in each cell frame are summed up: cell frame 1 + cell frame 2 + cell frame 3 + cell frame 4 = 43 cells, cell frame 1 + cell frame 2 + cell frame 3 + cell frame 4 + cell frame 5 = 51 cells. The sum of the cell counts in cell frame 1 + cell frame 2 + cell frame 3 + cell frame 4 + cell frame 5 is closest to the user's preset cell count. Therefore, cell frames 1, 2, 3, 4, and 5 are selected as the target cell frames.

[0042] Assuming there is more than one preset aspect ratio, such as 1:1 and 1:2, the sorting results and the cumulative cell count results for the preset aspect ratio of 1:1 are as follows: For the preset aspect ratio of 1:2, the sorting results are: cell frame ① (8 cells), cell frame ② (9 cells), cell frame ④ (14 cells), cell frame ⑤ (8 cells), cell frame ⑥ (6 cells), cell frame ③ (12 cells), cell frame ⑦ (15 cells), cell frame ⑩ (7 cells), cell frame ⑨ (16 cells), and cell frame ⑧ (14 cells). Based on the sorting results, the number of cells in each cell box is accumulated from front to back. Cell box 1 + cell box 2 + cell box 4 + cell box 5 + cell box 6 = 45 cells, and cell box 1 + cell box 2 + cell box 4 + cell box 5 + cell box 6 + cell box 3 = 57 cells. Therefore, the accumulated number of cells in cell box 1 + cell box 2 + cell box 4 + cell box 5 + cell box 6 is closest to the user's preset number of cells. Compared to the preset aspect ratio of 1:2, where cell frame 1 + cell frame 2 + cell frame 4 + cell frame 5 + cell frame 6 = 45 cells, the preset aspect ratio of 1:1 results in a sum of cell frames 1 + 2 + 3 + 4 + 5 that is closer to the user's preset cell number. Therefore, cell frames 1, 2, 3, 4, and 5 are ultimately used as the target cell frames, and 1:1 is used as the aspect ratio of the rectangle that ultimately selects the preset number of cells.

[0043] Step S240: Based on the vertex coordinates of the target cell box, output the minimum bounding rectangle of the target cell box.

[0044] Specifically, the formula for calculating the minimum bounding rectangle is as follows:

[0045] Rect(minX, minY, maxX, maxY)=(min(minX1, minX2...minXn),

[0046] min(minY1, minY2,... minYn),

[0047] max(maxX1, maxX2...maxXn),

[0048] max(maxY1, maxY2, ..., maxYn))

[0049] Where minX and minY are the x and y coordinates of the top-left vertex of the minimum bounding rectangle, and maxX and maxY are the x and y coordinates of the bottom-right vertex of the minimum bounding rectangle. minX1, minX2... minXn are the x-coordinates of the top-left vertices of all cells in the target cell frame, minY1, minY2... minYn are the y-coordinates of the top-left vertices of all cells in the target cell frame, maxX1, maxX2... maxXn are the x-coordinates of the bottom-right vertices of all cells in the target cell frame, and maxY1, maxY2... maxYn are the y-coordinates of the bottom-right vertices of all cells in the target cell frame. Figure 4 Taking cell frames ①, ②, and ③ as the target cell frames as an example. Figure 5 This is a schematic diagram of the output result of the minimum bounding rectangle.

[0050] In existing technologies, a preset number of cells are manually selected from user-preset locations in the cell field of view. However, this manual process is time-consuming and labor-intensive, resulting in low efficiency in cell selection.

[0051] To address the aforementioned issues, this application proposes a cell bounding box selection method. This method determines the weighted Chebyshev distance between the center point of the user-preset location and the center points of each cell bounding box in the cell viewport, based on a preset aspect ratio, the coordinates of the center points of each cell bounding box in the cell viewport, and the coordinates of the center point of the user-preset location in the cell viewport. Specifically, the width ratio in the preset aspect ratio serves as the weight of the difference between the x-coordinates of the user-preset location's center point and the center points of each cell bounding box; the height ratio in the preset aspect ratio serves as the weight of the difference between the y-coordinates of the user-preset location's center point and the center points of each cell bounding box; the cell viewport is an image obtained by selecting all cells in a cell smear image using the minimum number of rectangles of a preset size; the cell bounding boxes are sorted from smallest to largest based on the weighted Chebyshev distance between the user-preset location's center point and the center points of each cell bounding box; the number of cells in each cell bounding box is accumulated from front to back according to the sorting result, and the cell bounding box whose accumulated cell number is closest to the user-preset cell number is selected as the target cell bounding box; and the minimum bounding rectangle of the target cell bounding box is output based on the vertex coordinates of the target cell bounding box. This application determines the weighted Chebyshev distance between the center point of the user's preset location and the center point of each cell frame, and then sorts the cell frames according to the weighted Chebyshev distance. The result that is close to the preset location and meets the cell number requirement is selected as the final selection result. It can accurately select the preset number of cells based on the preset aspect ratio according to the location selected by the doctor, effectively improving the cell selection efficiency.

[0052] In one implementation, each additional cell box selected from the beginning of the cell box sorting process can be considered a new cell box combination. The minimum bounding rectangle of each cell box combination can be calculated. After outputting the minimum bounding rectangle, it can be determined whether there are any cell boxes other than the current cell box combination that intersect with the minimum bounding rectangle. If so, the number of cells in the cell boxes other than the current cell box combination that intersect with the minimum bounding rectangle can be updated in the minimum bounding rectangle. The minimum bounding rectangle of all cell box combinations whose number of cells is closest to the preset number can be selected as the final output result. Taking the cell frame order as ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩ as an example, then cell frame ① is a cell frame combination, cell frame ① and cell frame ② are a cell frame combination, cell frame ①, cell frame ②, and cell frame ③ are a cell frame combination, cell frame ①, cell frame ②, cell frame ③, and cell frame ④ are a cell frame combination, and so on, resulting in 10 cell frame combinations. Figure 5 As shown, assuming the current cell box combination is cell box ①, cell box ②, and cell box ③, and cell box ① contains 5 cells, cell box ② contains 5 cells, and cell box ③ contains 3 cells, the minimum bounding rectangle of the current cell box combination should contain 13 cells. However, since the minimum bounding rectangle intersects with cell boxes ④, ⑤, ⑥, ⑦, and ⑧, the cell counts of cell boxes ④, ⑤, ⑥, ⑦, and ⑧ are updated in the minimum bounding rectangle of the current cell box combination. This cell count is then compared with the preset cell count, and finally, the minimum bounding rectangle among all cell box combinations whose cell count is closest to the preset cell count is selected as the final output.

[0053] Figure 6 This is a schematic diagram of a cell selection device according to an embodiment of the present invention, such as... Figure 6 As shown, a cell selection device 30 is provided, which includes a calculation module 31, a sorting module 32, an accumulation module 33 and an output module 34.

[0054] The calculation module 31 is used to determine the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame based on a preset aspect ratio, the coordinates of the center points of each cell frame in the cell field of view, and the coordinates of the center point of the user's preset position in the cell field of view. The width ratio in the preset aspect ratio is used as the weight of the difference between the abscissa of the center point of the user's preset position and the center points of each cell frame; the height ratio in the preset aspect ratio is used as the weight of the difference between the ordinate of the center point of the user's preset position and the center points of each cell frame; the cell field of view is an image obtained by selecting all cells in the cell smear image using the minimum number of preset-sized rectangular boxes.

[0055] The sorting module 32 is used to sort the cell boxes based on the weighted Chebyshev distance between the center point of the user-preset position and the center point of each cell box;

[0056] The accumulation module 33 is used to accumulate the number of cells in the cell box from front to back according to the sorting result, and the cell box that is closest to the user's preset number of cells when the cell count accumulation result is used as the target cell box.

[0057] Output module 34 is used to output the minimum bounding rectangle of the target cell box based on the vertex coordinates of the target cell box.

[0058] In one embodiment, before determining the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame based on the preset aspect ratio, the center point coordinates of each cell frame in the cell viewport, and the center point coordinates of the user's preset position in the cell viewport, the calculation module 31 is further used to determine the center point coordinates of each cell frame in the cell viewport and the center point coordinates of the user's preset position in the cell viewport.

[0059] It should be noted that the above modules can be functional modules or program modules, and can be implemented in software or hardware. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or they can be stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0060] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores a set of preset configuration information. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements the aforementioned cell selection method.

[0061] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a cell selection method. The display screen of the computer device may be a liquid crystal display (LCD) or an e-ink display. The input device of the computer device may be a touch layer covering the display screen, or buttons, a trackball, or a touchpad located on the casing of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0062] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0063] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0064] Based on the preset aspect ratio, the coordinates of the center points of each cell frame in the cell field of view, and the coordinates of the center point of the user-preset position in the cell field of view, the weighted Chebyshev distance between the center point of the user-preset position and the center points of each cell frame is determined. The width ratio in the preset aspect ratio is used as the weight of the difference in the x-coordinates between the center point of the user-preset position and the center points of each cell frame; the height ratio in the preset aspect ratio is used as the weight of the difference in the y-coordinates between the center point of the user-preset position and the center points of each cell frame. The cell field of view is an image obtained by selecting all cells in the cell smear image using the minimum number of preset-sized rectangles.

[0065] The cell frames are sorted from smallest to largest based on the weighted Chebyshev distance between the center point of the user-preset location and the center point of each cell frame.

[0066] Based on the sorting results, the number of cells in the cell boxes is accumulated from front to back. The cell box whose accumulated cell count is closest to the user's preset cell count is selected as the target cell box for the cell count accumulation.

[0067] Based on the vertex coordinates of the target cell bounding box, output the minimum bounding rectangle of the target cell bounding box.

[0068] In one embodiment, before determining the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame based on a preset aspect ratio, the coordinates of the center points of each cell frame in the cell viewport, and the coordinates of the center point of the user's preset position in the cell viewport, the processor executes the computer program by performing the following steps:

[0069] Determine the coordinates of the center point of each cell frame in the cell viewport and the coordinates of the center point of the user-preset position in the cell viewport.

[0070] The aforementioned storage medium determines the weighted Chebyshev distance between the center point of the user-preset location and the center points of each cell frame by using a preset aspect ratio, the coordinates of the center points of each cell frame in the cell viewport, and the coordinates of the center point of the user-preset location in the cell viewport. Specifically, the width ratio in the preset aspect ratio is used as the weight of the difference in the abscissa between the center point of the user-preset location and the center points of each cell frame; the height ratio in the preset aspect ratio is used as the weight of the difference in the ordinate between the center point of the user-preset location and the center points of each cell frame; the cell viewport is an image obtained by selecting all cells in a cell smear image using the minimum number of rectangles of a preset size; the cell frames are sorted from smallest to largest based on the weighted Chebyshev distance between the center point of the user-preset location and the center points of each cell frame; the number of cells in each cell frame is accumulated from front to back according to the sorting result, and the cell frame whose accumulated cell number is closest to the user-preset cell number is selected as the target cell frame; based on the vertex coordinates of the target cell frame, the minimum bounding rectangle of the target cell frame is output. This application determines the weighted Chebyshev distance between the center point of the user's preset location and the center point of each cell frame, and then sorts the cell frames according to the weighted Chebyshev distance. The result that is close to the preset location and meets the cell number requirement is selected as the final selection result. It can accurately select the preset number of cells based on the preset aspect ratio according to the location selected by the doctor, effectively improving the cell selection efficiency.

[0071] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0072] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.

[0073] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0074] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.

Claims

1. A method for selecting cells by frame, characterized in that, The method includes the following steps: Based on a preset aspect ratio, the coordinates of the center points of each cell frame in the cell field of view, and the coordinates of the center point of a user-preset position in the cell field of view, the weighted Chebyshev distance between the center point of the user-preset position and the center points of each cell frame is determined. The width ratio in the preset aspect ratio is used as the weight of the difference in the abscissa between the center point of the user-preset position and the center points of each cell frame; the height ratio in the preset aspect ratio is used as the weight of the difference in the ordinate between the center point of the user-preset position and the center points of each cell frame; the cell field of view is an image obtained by selecting all cells in a cell smear image using a minimum number of preset-sized rectangular boxes. The cell frames are sorted from smallest to largest based on the weighted Chebyshev distance between the center point of the user-preset location and the center point of each cell frame; The cell counts of the cell frames are accumulated from front to back according to the sorting results. The cell frame whose cell count accumulation result is closest to the user's preset cell count is selected as the target cell frame. Based on the vertex coordinates of the target cell box, output the minimum bounding rectangle of the target cell box.

2. The cell selection method according to claim 1, characterized in that, Before determining the weighted Chebyshev distance between the center point of the user-preset position and the center points of each cell frame based on the preset aspect ratio, the coordinates of the center points of each cell frame in the cell viewport, and the coordinates of the center point of the user-preset position in the cell viewport, the method further includes: Determine the coordinates of the center point of each cell frame in the cell viewport and the coordinates of the center point of the user-preset position in the cell viewport.

3. A cell selection device, characterized in that, The device includes a calculation module, a sorting module, an accumulation module, and an output module; The calculation module is used to determine the weighted Chebyshev distance between the center point of the user's preset position and the center points of each cell frame based on a preset aspect ratio, the coordinates of the center points of each cell frame in the cell field of view, and the coordinates of the center point of the user's preset position in the cell field of view. The width ratio in the preset aspect ratio is used as the weight of the difference between the x-coordinates of the center point of the user's preset position and the center points of each cell frame; the height ratio in the preset aspect ratio is used as the weight of the difference between the y-coordinates of the center point of the user's preset position and the center points of each cell frame; the cell field of view is an image obtained by selecting all cells in a cell smear image using a minimum number of preset-sized rectangular boxes. The sorting module is used to sort the cell frames from smallest to largest based on the weighted Chebyshev distance between the center point of the user preset position and the center point of each cell frame; The accumulation module is used to accumulate the number of cells in the cell frame from front to back according to the sorting result, and the cell frame that participates in the accumulation of cell count when the cell count accumulation result is closest to the user preset cell count is taken as the target cell frame. The output module is used to output the minimum bounding rectangle of the target cell frame based on the vertex coordinates of the target cell frame.

4. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method of claim 1 or 2.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method of claim 1 or 2.