CN110706206A - Fluorescent cell counting method, fluorescent cell counting device, terminal equipment and storage medium - Google Patents

Fluorescent cell counting method, fluorescent cell counting device, terminal equipment and storage medium Download PDF

Info

Publication number
CN110706206A
CN110706206A CN201910858707.9A CN201910858707A CN110706206A CN 110706206 A CN110706206 A CN 110706206A CN 201910858707 A CN201910858707 A CN 201910858707A CN 110706206 A CN110706206 A CN 110706206A
Authority
CN
China
Prior art keywords
cell
fluorescent
image
area
counting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910858707.9A
Other languages
Chinese (zh)
Inventor
周魁魁
朱英杰
陈高伟
姜少磊
周涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN201910858707.9A priority Critical patent/CN110706206A/en
Publication of CN110706206A publication Critical patent/CN110706206A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10064Fluorescence image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30242Counting objects in image

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Quality & Reliability (AREA)
  • Radiology & Medical Imaging (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)
  • Investigating Or Analysing Biological Materials (AREA)

Abstract

本申请实施例适用于计算机技术领域,公开了一种荧光细胞计数方法、装置、终端设备及计算机可读存储介质,其中,方法包括:获取待计数的荧光图像,荧光图像包括至少一个经过免疫荧光染色的细胞;对荧光图像进行二值化处理,获得二值化图像;根据预设细胞面积参数,识别二值化图像中的细胞区域;基于细胞区域,统计荧光图像中的荧光细胞数量。本申请实施例通过直接将荧光图像转换为二值化图像,自动识别二值化图像中的细胞区域,再基于自细胞区域统计出荧光细胞的数量,减少了计数步骤,且自动识别并统计细胞区域,从而提高了计数效率和计数准确率,且操作简便。

The embodiments of the present application are applicable to the field of computer technology, and disclose a fluorescent cell counting method, device, terminal device, and computer-readable storage medium, wherein the method includes: acquiring a fluorescent image to be counted, and the fluorescent image includes at least one immunofluorescence Stained cells; binarize the fluorescent image to obtain a binarized image; identify the cell area in the binarized image according to the preset cell area parameter; count the number of fluorescent cells in the fluorescent image based on the cell area. In the embodiment of the present application, by directly converting a fluorescent image into a binarized image, the cell area in the binarized image is automatically identified, and the number of fluorescent cells is counted based on the cell area, which reduces the counting steps, and automatically identifies and counts the cells. area, thereby improving the counting efficiency and counting accuracy, and the operation is simple.

Description

荧光细胞计数方法、装置、终端设备及存储介质Fluorescent cell counting method, device, terminal equipment and storage medium

技术领域technical field

本申请属于计算机技术领域,尤其涉及一种荧光细胞计数方法、装置、终端设备及计算机可读存储介质。The present application belongs to the field of computer technology, and in particular relates to a fluorescent cell counting method, device, terminal device and computer-readable storage medium.

背景技术Background technique

免疫荧光染色可将特定类型的细胞染色,在激光照射下呈现荧光,与背景形成色差,基于此进行荧光细胞计数。Immunofluorescence staining can stain specific types of cells, which show fluorescence under laser irradiation, and form a color difference from the background, and perform fluorescent cell counting based on this.

目前,对于计数荧光细胞数量的方法不多,并且在计数的效率和准确度方面有很大欠缺。也就是说,在目前的荧光细胞计数方法中,存在不能快速自动计数荧光细胞,需要实验人员进行多项操作计数细胞而造成浪费时间的问题。且现有技术多集成于软件系统,操作复杂,每张待计数图片都需要连续多项操作完成,繁琐冗长。At present, there are few methods for counting the number of fluorescent cells, and the efficiency and accuracy of counting are largely lacking. That is to say, in the current fluorescent cell counting method, there is a problem that the fluorescent cells cannot be quickly and automatically counted, and the experimenter needs to perform multiple operations to count the cells, resulting in a waste of time. In addition, the existing technology is mostly integrated in the software system, and the operation is complicated, and each picture to be counted needs to be completed in a series of multiple operations, which is cumbersome and lengthy.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种荧光细胞计数方法、装置、终端设备及计算机可读存储介质,以解决现有荧光细胞计数方法的计数效率和准确率较低,操作繁琐的问题。Embodiments of the present application provide a fluorescent cell counting method, device, terminal device, and computer-readable storage medium, so as to solve the problems of low counting efficiency and accuracy of the existing fluorescent cell counting method and complicated operation.

第一方面,本申请实施例提供一种荧光细胞计数方法,包括:In a first aspect, the embodiments of the present application provide a method for counting fluorescent cells, including:

获取待计数的荧光图像,所述荧光图像包括至少一个经过免疫荧光染色的细胞;acquiring a fluorescent image to be counted, the fluorescent image including at least one immunofluorescently stained cell;

对所述荧光图像进行二值化处理,获得二值化图像;performing binarization processing on the fluorescence image to obtain a binarized image;

根据预设细胞面积参数,识别所述二值化图像中的细胞区域;Identify the cell area in the binarized image according to the preset cell area parameter;

基于所述细胞区域,统计所述荧光图像中的荧光细胞数量。Based on the cell area, the number of fluorescent cells in the fluorescent image is counted.

结合第一方面,在一种可能的实现方式中,所述二值化图像中的荧光细胞灰度值为第一数值,背景色灰度值为第二数值;With reference to the first aspect, in a possible implementation manner, the gray value of the fluorescent cells in the binarized image is a first value, and the gray value of the background color is a second value;

所述根据预设细胞面积参数,识别所述二值化图像中的细胞区域,包括:The identifying the cell area in the binarized image according to the preset cell area parameter includes:

读取所述二值化图像中各个像素点的灰度值;reading the gray value of each pixel in the binarized image;

将毗邻的灰度值为第一数值的像素点连接起来,形成待选区域;Connect the adjacent pixels whose gray value is the first value to form a candidate area;

分别计算各个待选区域的面积;Calculate the area of each candidate area separately;

从各个所述待选区域中筛选出面积符合所述预设细胞面积参数的目标区域,将所述目标区域作为所述细胞区域。A target area whose area conforms to the preset cell area parameter is screened out from each of the candidate areas, and the target area is used as the cell area.

结合第一方面,在一种可能的实现方式中,所述从各个所述待选区域中筛选出面积符合所述预设细胞面积参数的目标区域,包括:With reference to the first aspect, in a possible implementation manner, the screening of target regions whose areas meet the preset cell area parameters from each of the candidate regions includes:

将面积大于30个像素且小于1000个像素的待选区域作为所述目标区域。A candidate area with an area greater than 30 pixels and less than 1000 pixels is used as the target area.

结合第一方面,在一种可能的实现方式中,所述基于所述细胞区域,统计所述荧光图像中的荧光细胞数量,包括:With reference to the first aspect, in a possible implementation manner, the counting of the number of fluorescent cells in the fluorescent image based on the cell area includes:

在所述荧光图像中,使用预设标识对每个所述细胞区域进行标记,得到标记后的荧光图像;In the fluorescent image, each of the cell regions is marked with a preset mark to obtain a marked fluorescent image;

统计所述标记后的荧光图像中的标识数量,得到所述荧光图像中的荧光细胞数量。The number of markers in the labeled fluorescent image is counted to obtain the number of fluorescent cells in the fluorescent image.

结合第一方面,在一种可能的实现方式中,所述基于所述细胞区域,统计所述荧光图像中的荧光细胞数量,包括:With reference to the first aspect, in a possible implementation manner, the counting of the number of fluorescent cells in the fluorescent image based on the cell area includes:

统计所述二值化图像中的细胞区域数量,得到所述荧光图像中的荧光细胞数量。The number of cell regions in the binarized image is counted to obtain the number of fluorescent cells in the fluorescent image.

结合第一方面,在一种可能的实现方式中,在所述基于所述细胞区域,统计所述荧光图像中的荧光细胞数量之后,还包括:With reference to the first aspect, in a possible implementation manner, after counting the number of fluorescent cells in the fluorescent image based on the cell region, the method further includes:

计算所述荧光图像的图片大小;calculating the picture size of the fluorescence image;

根据所述荧光图像的图片大小计算所述荧光图像对应的切片组织的实际面积。The actual area of the sliced tissue corresponding to the fluorescence image is calculated according to the picture size of the fluorescence image.

第二方面,本申请实施例提供一种荧光细胞计数装置,包括:In a second aspect, the embodiments of the present application provide a fluorescent cell counting device, including:

图像获取模块,用于获取待计数的荧光图像,所述荧光图像包括至少一个经过免疫荧光染色的细胞;an image acquisition module, configured to acquire a fluorescent image to be counted, the fluorescent image including at least one immunofluorescently stained cell;

二值化模块,用于对所述荧光图像进行二值化处理,获得二值化图像;A binarization module, configured to perform binarization processing on the fluorescence image to obtain a binarized image;

细胞识别模块,用于根据预设细胞面积参数,识别所述二值化图像中的细胞区域;a cell identification module, used for identifying the cell area in the binarized image according to the preset cell area parameter;

统计模块,用于基于所述细胞区域,统计所述荧光图像中的荧光细胞数量。A statistics module, configured to count the number of fluorescent cells in the fluorescent image based on the cell area.

结合第二方面,在一种可能的实现方式中,所述二值化图像中的荧光细胞灰度值为第一数值,背景色灰度值为第二数值;With reference to the second aspect, in a possible implementation manner, the gray value of the fluorescent cells in the binarized image is a first value, and the gray value of the background color is a second value;

所述细胞识别模块具体用于:The cell identification module is specifically used for:

读取所述二值化图像中各个像素点的灰度值;reading the gray value of each pixel in the binarized image;

将毗邻的灰度值为第一数值的像素点连接起来,形成待选区域;Connect the adjacent pixels whose gray value is the first value to form a candidate area;

分别计算各个待选区域的面积;Calculate the area of each candidate area separately;

从各个所述待选区域中筛选出面积符合所述预设细胞面积参数的目标区域,将所述目标区域作为所述细胞区域。A target area whose area conforms to the preset cell area parameter is screened out from each of the candidate areas, and the target area is used as the cell area.

结合第二方面,在一种可能的实现方式中,所述细胞识别模块具体用于:In conjunction with the second aspect, in a possible implementation, the cell identification module is specifically used for:

将面积大于30个像素且小于1000个像素的待选区域作为所述目标区域。A candidate area with an area greater than 30 pixels and less than 1000 pixels is used as the target area.

结合第二方面,在一种可能的实现方式中,所述统计模块具体用于:With reference to the second aspect, in a possible implementation manner, the statistics module is specifically used for:

在所述荧光图像中,使用预设标识对每个所述细胞区域进行标记,得到标记后的荧光图像;In the fluorescent image, each of the cell regions is marked with a preset mark to obtain a marked fluorescent image;

统计所述标记后的荧光图像中的标识数量,得到所述荧光图像中的荧光细胞数量。The number of markers in the labeled fluorescent image is counted to obtain the number of fluorescent cells in the fluorescent image.

结合二方面,在一种可能的实现方式中,所述统计模块具体用于:Combining the two aspects, in a possible implementation manner, the statistics module is specifically used for:

统计所述二值化图像中的细胞区域数量,得到所述荧光图像中的荧光细胞数量。The number of cell regions in the binarized image is counted to obtain the number of fluorescent cells in the fluorescent image.

结合第二方面,在一种可能的实现方式中,还包括:In combination with the second aspect, in a possible implementation manner, the method further includes:

图片尺寸计算模块,用于计算所述荧光图像的图片大小;A picture size calculation module for calculating the picture size of the fluorescent image;

切片面积计算模块,用于根据所述荧光图像的图片大小计算所述荧光图像对应的切片组织的实际面积。The slice area calculation module is configured to calculate the actual area of the sliced tissue corresponding to the fluorescence image according to the picture size of the fluorescence image.

第三方面,本申请实施例提供一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面任一项所述的方法。In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the computer program when the processor executes the computer program. The method of any one of the first aspects above.

第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面任一项所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above-mentioned first aspect is implemented. method.

第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项所述的方法。In a fifth aspect, an embodiment of the present application provides a computer program product that, when the computer program product runs on a terminal device, causes the terminal device to execute the method described in any one of the above-mentioned first aspects.

本申请实施例通过直接将荧光图像转换为二值化图像,自动识别二值化图像中的细胞区域,再基于自细胞区域统计出荧光细胞的数量,减少了计数步骤,自动识别并统计细胞区域,从而提高了计数效率和计数准确率,且操作简便。In the embodiment of the present application, by directly converting the fluorescent image into a binarized image, the cell area in the binarized image is automatically identified, and the number of fluorescent cells is counted based on the cell area, which reduces the counting steps, and automatically identifies and counts the cell area. , thereby improving the counting efficiency and counting accuracy, and the operation is simple.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本申请实施例提供的一种荧光细胞计数方法的流程示意框图;FIG. 1 is a schematic block diagram of a process flow of a fluorescent cell counting method provided in an embodiment of the present application;

图2为本申请实施例提供的大小鼠脑组织切片的二值化图像的示意图;FIG. 2 is a schematic diagram of a binarized image of a rat and mouse brain tissue slice provided in an embodiment of the present application;

图3为本申请实施例提供的步骤S103的具体流程示意框图;FIG. 3 is a schematic block diagram of a specific flow of step S103 provided in an embodiment of the present application;

图4为本申请实施例提供的荧光细胞计数装置的结构示意框图;FIG. 4 is a schematic block diagram of the structure of the fluorescent cell counting device provided in the embodiment of the present application;

图5为本申请实施例提供的终端设备的结构示意图。FIG. 5 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.

如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".

另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.

本申请实施例提供的荧光细胞计数方案可以应用于脑组织切片的细胞计数,且脑组织切片的类型可以是任意的,例如,大小鼠脑组织切片。当然,也可以应用于其它组织切片,在此不作限定。The fluorescent cell counting scheme provided in the examples of the present application can be applied to the cell counting of brain tissue slices, and the type of brain tissue slices can be arbitrary, for example, rat brain tissue slices. Of course, it can also be applied to other tissue sections, which is not limited here.

具体应用中,荧光细胞计数方案可以应用于终端设备,该终端设备的类型可以是任意的,例如,电脑。且荧光细胞计数方案的实现方式也可以是任意的,例如,在本申请实施例中,可以通过Matlab实现该荧光细胞计数方案,即通过一个Matlab文件实现荧光细胞计数方案的各个步骤。In a specific application, the fluorescent cell counting solution can be applied to terminal equipment, and the type of the terminal equipment can be arbitrary, for example, a computer. The implementation of the fluorescent cell counting scheme can also be arbitrary. For example, in the embodiments of the present application, the fluorescent cell counting scheme can be implemented through Matlab, that is, each step of the fluorescent cell counting scheme can be implemented through a Matlab file.

下面将通过具体实施例对本申请实施例提供的技术方案进行介绍。The technical solutions provided by the embodiments of the present application will be introduced below through specific embodiments.

请参见图1,为本申请实施例提供的一种荧光细胞计数方法的流程示意框图,该方法可以包括以下步骤:Please refer to FIG. 1 , which is a schematic block diagram of the flow of a fluorescent cell counting method provided in the embodiment of the present application, and the method may include the following steps:

步骤S101、获取待计数的荧光图像,荧光图像包括至少一个经过免疫荧光染色的细胞。Step S101 , acquiring a fluorescent image to be counted, where the fluorescent image includes at least one cell that has undergone immunofluorescence staining.

可以理解的是,上述荧光图像是指经过免疫荧光染色后的组织切片图像,该组织切片图像可以是显微镜下成像的组织切片。经过免疫荧光染色之后,组织切片中的特定细胞会被染色,被染色的细胞在激光照射下呈现荧光,与图像背景形成色差。It can be understood that the above fluorescent image refers to an image of a tissue section after immunofluorescence staining, and the tissue section image may be a tissue section imaged under a microscope. After immunofluorescence staining, specific cells in the tissue section will be stained, and the stained cells will appear fluorescent under laser irradiation, forming a color difference with the image background.

值得指出的是,上述组织切片图像可以是任意组织切片的图像,例如,大小鼠脑组织切片图像。It is worth noting that the above-mentioned tissue slice images can be images of any tissue slices, for example, rat brain tissue slice images.

步骤S102、对荧光图像进行二值化处理,获得二值化图像。Step S102 , performing binarization processing on the fluorescence image to obtain a binarized image.

需要说明的是,二值化处理的方式可以是现有的任意方式,在此不作限定。具体地,设定相应的灰度阈值,再根据灰度阈值进行二值化操作,以将荧光图像转换为二值化图像。其中,上述灰度阈值可以根据实验需求和应用需要进行具体设定,在此不作限定。It should be noted that the method of binarization processing may be any existing method, which is not limited here. Specifically, a corresponding grayscale threshold is set, and then a binarization operation is performed according to the grayscale threshold to convert the fluorescence image into a binarized image. The above grayscale threshold can be specifically set according to experimental requirements and application requirements, and is not limited here.

二值化图像中包括灰度值为1和灰度为0的像素点。一般情况下,背景区域的灰度值为1,荧光标记细胞灰度值为1,即二值化图像中的黑色区域为背景区域,白色区域为荧光标记的细胞区域。具体可以参见图2示出的大小鼠脑组织切片的二值化图像的示意图,图2中的黑色区域均为大小鼠脑组织切片背景,白色区域为荧光标记的细胞。The binarized image includes pixels with a gray value of 1 and a gray value of 0. In general, the gray value of the background area is 1, and the gray value of the fluorescently labeled cells is 1, that is, the black area in the binarized image is the background area, and the white area is the fluorescently labeled cell area. For details, please refer to the schematic diagram of the binarized image of the rat and mouse brain tissue sections shown in FIG. 2 . The black areas in FIG. 2 are the background of the rat and mouse brain tissue sections, and the white areas are fluorescently labeled cells.

当然,在其它一些实施例中,也可以将荧光细胞的灰度值设置为0,背景区域的灰度值设置为1,此时,二值化图像中的黑色区域为荧光细胞,白色区域为背景区域。Of course, in some other embodiments, the gray value of the fluorescent cells can also be set to 0, and the gray value of the background area can be set to 1. In this case, the black areas in the binarized image are fluorescent cells, and the white areas are background area.

步骤S103、根据预设细胞面积参数,识别二值化图像中的细胞区域。Step S103 , identifying the cell area in the binarized image according to the preset cell area parameter.

需要说明的是,上述预设细胞面积参数是指用于定义二值化图像中哪些区域为细胞的参数。该预设细胞面积参数可以根据计数细胞体积差异进行调整,计数细胞体积越大时,该预设细胞面积参数越大,反之,计数细胞体积越小时,该预设细胞面积参数越小。例如,该预设细胞面积参数为大于30像素,小于1000个像素。It should be noted that the above-mentioned preset cell area parameters refer to parameters used to define which areas in the binarized image are cells. The preset cell area parameter can be adjusted according to the difference in the counted cell volume. The larger the counted cell volume is, the larger the preset cell area parameter is. On the contrary, the smaller the counted cell volume is, the smaller the preset cell area parameter is. For example, the preset cell area parameter is greater than 30 pixels and less than 1000 pixels.

识别二值化图像中的细胞区域可以是指确定或判断二值化图像中的哪个区域为细胞区域。具体可以根据预设细胞面积参数筛选出面积符合要求的区域,将其定义为细胞区域。一般情况下,一个细胞区域对应一个细胞。Identifying the cell region in the binarized image may refer to determining or judging which region in the binarized image is the cell region. Specifically, an area that meets the requirements can be screened out according to preset cell area parameters, and defined as a cell area. In general, one cell region corresponds to one cell.

例如,该预设细胞面积参数为大于30个像素,小于1000个像素,二值化图像中的黑色区域为背景区域,白色区域为荧光细胞区域,此时,分别计算各个白色区域的面积,将面积大于30个像素且小于1000个像素的白色区域定义为细胞区域,从而达到自动识别二值化图像中的细胞区域。For example, the preset cell area parameter is greater than 30 pixels and less than 1000 pixels, the black area in the binarized image is the background area, and the white area is the fluorescent cell area. At this time, the area of each white area is calculated separately, and the The white area with an area greater than 30 pixels and less than 1000 pixels is defined as the cell area, so as to automatically identify the cell area in the binarized image.

在根据预设细胞面积参数自动识别出二值化图像中的细胞区域之后,可以基于细胞区域进行荧光细胞计数。After the cell area in the binarized image is automatically identified according to the preset cell area parameter, the fluorescent cell count can be performed based on the cell area.

步骤S104、基于细胞区域,统计荧光图像中的荧光细胞数量。Step S104, based on the cell area, count the number of fluorescent cells in the fluorescent image.

具体应用中,在确定出二值化图像中的细胞区域之后,可以直接基于二值化图像进行荧光细胞计数,即统计二值化图像中的细胞区域个数,细胞区域个数即为荧光图像中的荧光细胞数量;也可以基于二值化图像中的细胞区域,使用预设标识在荧光图像中对每一个细胞进行标记,每一个标记对应一个细胞,这样可以通过荧光图像中的标记数量,以得出荧光细胞数量。In specific applications, after the cell area in the binarized image is determined, the fluorescent cell count can be performed directly based on the binarized image, that is, the number of cell areas in the binarized image is counted, and the number of cell areas is the fluorescent image. The number of fluorescent cells in the binarized image; or based on the cell area in the binarized image, each cell can be marked in the fluorescent image by using a preset marker, and each marker corresponds to a cell, so that the number of markers in the fluorescent image can be used. to obtain the number of fluorescent cells.

也就是说,在一些实施例中,上述基于细胞区域,统计荧光图像中的荧光细胞数量的具体过程可以包括:在荧光图像中,使用预设标识对每个细胞区域进行标记,得到标记后的荧光图像;统计标记后的荧光图像中的标识数量,得到荧光图像中的荧光细胞数量。That is to say, in some embodiments, the specific process of counting the number of fluorescent cells in the fluorescent image based on the cell area may include: in the fluorescent image, marking each cell area with a preset identifier, and obtaining the marked Fluorescent image; count the number of markers in the labeled fluorescent image to obtain the number of fluorescent cells in the fluorescent image.

需要说明的是,上述预设标识可以为但不限于红色圆圈,即在荧光图像中,将每一个细胞区域均分别使用红色圆圈圈起来。这样,除了方便细胞计数之外,可以更加直观地观察荧光图像中的细胞,尤其是在某一个区域有多个细胞,且多个细胞的距离很近,在如果不使用预设标识,可能无法直观地看出该区域一共有几个细胞,而使用预设标识进行标记之后,可以直观地看出该区域内有几个细胞。It should be noted that, the above-mentioned preset identification may be, but not limited to, a red circle, that is, in the fluorescence image, each cell area is circled with a red circle. In this way, in addition to facilitating cell counting, cells in fluorescent images can be observed more intuitively, especially if there are multiple cells in a certain area, and the distance between multiple cells is very close. It can be intuitively seen that there are several cells in the area, and after marking with the preset logo, it can be intuitively seen that there are several cells in the area.

在标记之后,由于一个标记对应一个细胞,此时可以通过统计标识数量,以得到荧光图像中的荧光细胞数量。After marking, since one marker corresponds to one cell, the number of fluorescent cells in the fluorescent image can be obtained by counting the number of markers.

当然,在其它一些实施例中,上述基于细胞区域,统计荧光图像中的荧光细胞数量的具体过程可以包括:统计二值化图像中的细胞区域数量,得到荧光图像中的荧光细胞数量。即直接统计二值化图像中的细胞区域数量,细胞区域数量即为荧光细胞数量。Certainly, in some other embodiments, the specific process of counting the number of fluorescent cells in the fluorescent image based on the cell area may include: counting the number of cell areas in the binarized image to obtain the number of fluorescent cells in the fluorescent image. That is, the number of cell regions in the binarized image is directly counted, and the number of cell regions is the number of fluorescent cells.

此外,为了更直观地观察二值化图像中的细胞,也可以使用预设标识对二值化图像中的每一个细胞区域进行标记。In addition, in order to observe the cells in the binarized image more intuitively, each cell region in the binarized image can also be marked with a preset marker.

可以看出,通过直接将荧光图像转换为二值化图像,自动识别二值化图像中的细胞区域,再基于自细胞区域统计出荧光细胞的数量,一步完成细胞的识别和计数,无需分步操作,减少了步骤,且可以自动识别并统计细胞区域,从而提高了计数效率和计数准确率,且操作简便。It can be seen that by directly converting the fluorescent image into a binarized image, the cell area in the binarized image is automatically identified, and then the number of fluorescent cells is counted based on the cell area, and the identification and counting of cells are completed in one step, without step-by-step. The operation reduces the steps, and can automatically identify and count the cell area, thereby improving the counting efficiency and counting accuracy, and the operation is simple.

在一些实施例中,参见图3示出的上述步骤S103的具体流程示意框图,上述二值化图像中的荧光细胞灰度值为第一数值,背景色灰度值为第二数值。其中,第一数值可以为1,相应地,第二数值为0。当然,第一数值也可以为0,第二数值相应地为1。In some embodiments, referring to the schematic block diagram of the specific flow of the above step S103 shown in FIG. 3 , the gray value of the fluorescent cells in the above binarized image is a first value, and the gray value of the background color is a second value. Wherein, the first value may be 1, and correspondingly, the second value may be 0. Of course, the first value may also be 0, and the second value is correspondingly 1.

此时,上述根据预设细胞面积参数,识别二值化图像中的细胞区域的具体过程可以包括:At this time, the above-mentioned specific process of identifying the cell area in the binarized image according to the preset cell area parameter may include:

步骤S301、读取二值化图像中各个像素点的灰度值。Step S301, read the gray value of each pixel in the binarized image.

步骤S302、将毗邻的灰度值为第一数值的像素点连接起来,形成待选区域。Step S302 , connecting adjacent pixels with a gray value of a first value to form a region to be selected.

具体地,获取二值化图像中的所有像素点的灰度值,并区分各个像素点的灰度值。并将灰度值为第二数值的像素点连接起来,形成图片的背景区域,将灰度值为第一数值的相邻的像素点连接起来,以形成各个具备一定面积大小的待选区域。Specifically, the grayscale values of all pixels in the binarized image are obtained, and the grayscale values of each pixel are distinguished. The pixels with the gray value of the second value are connected to form the background area of the picture, and the adjacent pixels with the gray value of the first value are connected to form each candidate area with a certain area size.

例如,当第一数值为0,第二数值为1时,根据灰度值进行像素点连接之后可以得到如图2所示的图像,其中,白色区域即为上述待选区域。For example, when the first value is 0 and the second value is 1, the image shown in FIG. 2 can be obtained after pixel points are connected according to the gray value, wherein the white area is the above-mentioned candidate area.

步骤S303、分别计算各个待选区域的面积。Step S303: Calculate the area of each candidate region respectively.

步骤S304、从各个待选区域中筛选出面积符合预设细胞面积参数的目标区域,将目标区域作为细胞区域。Step S304: Screen out a target area whose area conforms to the preset cell area parameter from each candidate area, and use the target area as a cell area.

具体地,分别计算各个待选区域的面积,根据面积从各个待选区域中筛选出符合面积参数要求的目标区域,将筛选的目标区域定义为细胞区域。Specifically, the area of each candidate area is calculated separately, and a target area that meets the area parameter requirements is screened from each candidate area according to the area, and the screened target area is defined as a cell area.

其中,预设细胞参数的相关介绍请参见上文相应内容,在此不再赘述。For the relevant introduction of the preset cell parameters, please refer to the corresponding content above, which will not be repeated here.

具体地,上述从各个待选区域中筛选出面积符合预设细胞面积参数的目标区域的过程可以包括:将面积大于30个像素且小于1000个像素的待选区域作为目标区域。Specifically, the above-mentioned process of selecting a target area with an area conforming to a preset cell area parameter from each candidate area may include: taking a candidate area with an area greater than 30 pixels and less than 1000 pixels as the target area.

在自动识别二值化图像中的细胞区域之后,并统计出细胞数量之后,可以进一步计算荧光图像的大小,再根据荧光图像计算实际切片组件的实际面积。即在基于细胞区域,统计荧光图像中的荧光细胞数量之后,上述方法还可以包括:计算荧光图像的图片大小;根据荧光图像的图片大小计算荧光图像对应的切片组织的实际面积。After the cell area in the binarized image is automatically identified and the number of cells is counted, the size of the fluorescence image can be further calculated, and then the actual area of the actual slice component can be calculated according to the fluorescence image. That is, after counting the number of fluorescent cells in the fluorescent image based on the cell area, the above method may further include: calculating the picture size of the fluorescent image; and calculating the actual area of the sliced tissue corresponding to the fluorescent image according to the picture size of the fluorescent image.

具体应用中,可以根据切片实际面积=像素/分辨率,自动计算出组织切片的实际面积。In specific applications, the actual area of the tissue slice can be automatically calculated according to the actual area of the slice = pixel/resolution.

在本申请实施例中,可以具体通过Matlab程序文件实现上述荧光细胞计数方案。具体为:输入荧光图片存储路径和图片名称后,自动读取所需的荧光图片;根据实际需要调节灰度阈值,将读取的荧光图像转换为二值化图像,并将该二值化图像显示出来;读取二值化图像中所有像素点的灰度值,并连接相邻的灰度值为1的像素点,形成多个区域;计算所有毗邻的灰度值为1的像素点连接形成的区域面积;再筛选出面积大于30个像素点,小于1000个像素点的区域,将其定义为细胞区域;根据确定出细胞区域,使用红色圆圈将荧光图像中的细胞圈起来,并显示标记后的原始荧光图像;自动统计荧光图像中的荧光细胞数量;最后根据读取的荧光图像的大小,计算出组织切片的实际面积。In the embodiment of the present application, the above-mentioned fluorescent cell counting scheme can be implemented specifically through the Matlab program file. Specifically: after inputting the fluorescence image storage path and image name, automatically read the required fluorescence image; adjust the grayscale threshold according to actual needs, convert the read fluorescence image into a binarized image, and convert the binarized image Display; read the gray value of all pixels in the binarized image, and connect the adjacent pixels with a gray value of 1 to form multiple regions; calculate the connection of all adjacent pixels with a gray value of 1 The area of the formed area; then screen out the area with an area greater than 30 pixels and less than 1000 pixels, and define it as a cell area; according to the determined cell area, use a red circle to circle the cells in the fluorescence image, and display The original fluorescent image after labeling; the number of fluorescent cells in the fluorescent image is automatically counted; finally, the actual area of the tissue section is calculated according to the size of the read fluorescent image.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

对应于上文实施例所述的荧光细胞计数方法,图4示出了本申请实施例提供的荧光细胞计数装置的结构示意框图。Corresponding to the fluorescent cell counting method described in the above embodiment, FIG. 4 shows a schematic block diagram of the structure of the fluorescent cell counting device provided in the embodiment of the present application.

参照图4,该荧光细胞计数装置可以包括:Referring to Figure 4, the fluorescent cell counting device may include:

图像获取模块41,用于获取待计数的荧光图像,荧光图像包括至少一个经过免疫荧光染色的细胞;an image acquisition module 41, configured to acquire a fluorescent image to be counted, where the fluorescent image includes at least one immunofluorescently stained cell;

二值化模块42,用于对荧光图像进行二值化处理,获得二值化图像;The binarization module 42 is configured to perform binarization processing on the fluorescence image to obtain a binarized image;

细胞识别模块43,用于根据预设细胞面积参数,识别二值化图像中的细胞区域;The cell identification module 43 is used for identifying the cell area in the binarized image according to the preset cell area parameter;

统计模块44,用于基于细胞区域,统计荧光图像中的荧光细胞数量。The statistics module 44 is configured to count the number of fluorescent cells in the fluorescent image based on the cell area.

在一种可能的实现方式中,二值化图像中的荧光细胞灰度值为第一数值,背景色灰度值为第二数值;上述细胞识别模块可以具体用于:In a possible implementation manner, the gray value of the fluorescent cells in the binarized image is a first value, and the gray value of the background color is a second value; the above cell identification module can be specifically used for:

读取二值化图像中各个像素点的灰度值;Read the gray value of each pixel in the binarized image;

将毗邻的灰度值为第一数值的像素点连接起来,形成待选区域;Connect the adjacent pixels whose gray value is the first value to form a candidate area;

分别计算各个待选区域的面积;Calculate the area of each candidate area separately;

从各个待选区域中筛选出面积符合预设细胞面积参数的目标区域,将目标区域作为细胞区域。A target area whose area conforms to the preset cell area parameters is screened out from each candidate area, and the target area is used as a cell area.

在一种可能的实现方式中,上述细胞识别模块可以具体用于:In a possible implementation manner, the above cell identification module can be specifically used for:

将面积大于30个像素且小于1000个像素的待选区域作为目标区域。The area to be selected with an area greater than 30 pixels and less than 1000 pixels is used as the target area.

在一种可能的实现方式中,上述统计模块可以具体用于:In a possible implementation manner, the above statistical module can be specifically used for:

在荧光图像中,使用预设标识对每个细胞区域进行标记,得到标记后的荧光图像;In the fluorescence image, each cell area is marked with a preset mark to obtain a marked fluorescence image;

统计标记后的荧光图像中的标识数量,得到荧光图像中的荧光细胞数量。Count the number of markers in the labeled fluorescent image to obtain the number of fluorescent cells in the fluorescent image.

在一种可能的实现方式中,上述统计模块可以具体用于:In a possible implementation manner, the above statistical module can be specifically used for:

统计二值化图像中的细胞区域数量,得到荧光图像中的荧光细胞数量。Count the number of cell regions in the binarized image to obtain the number of fluorescent cells in the fluorescent image.

在一种可能的实现方式中,上述装置还可以包括:In a possible implementation manner, the above-mentioned apparatus may further include:

图片尺寸计算模块,用于计算荧光图像的图片大小;The picture size calculation module is used to calculate the picture size of the fluorescence image;

切片面积计算模块,用于根据荧光图像的图片大小计算荧光图像对应的切片组织的实际面积。The slice area calculation module is used to calculate the actual area of the sliced tissue corresponding to the fluorescence image according to the picture size of the fluorescence image.

需要说明的是,上述荧光细胞计数装置与上文的荧光细胞计数方法一一对应,相同或相似之处可参见上文相应内容,在此不再赘述。It should be noted that the above fluorescent cell counting device corresponds to the above fluorescent cell counting method one-to-one, and the similarities or similarities can be found in the corresponding content above, which will not be repeated here.

需要说明的是,上述装置或模块之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the above-mentioned devices or modules are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section. It is not repeated here.

图5为本申请一实施例提供的终端设备的结构示意图。如图5所示,该实施例的终端设备5包括:至少一个处理器50、存储器51以及存储在所述存储器51中并可在所述至少一个处理器50上运行的计算机程序52,所述处理器50执行所述计算机程序52时实现上述任意各个荧光细胞计数方法实施例中的步骤。FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in FIG. 5 , the terminal device 5 in this embodiment includes: at least one processor 50 , a memory 51 , and a computer program 52 stored in the memory 51 and executable on the at least one processor 50 , the When the processor 50 executes the computer program 52, the steps in any of the above-mentioned embodiments of the fluorescent cell counting method are implemented.

所述终端设备5可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该终端设备可包括,但不仅限于,处理器50、存储器51。本领域技术人员可以理解,图5仅仅是终端设备5的举例,并不构成对终端设备5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。The terminal device 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 50 and a memory 51 . Those skilled in the art can understand that FIG. 5 is only an example of the terminal device 5, and does not constitute a limitation on the terminal device 5. It may include more or less components than the one shown, or combine some components, or different components , for example, may also include input and output devices, network access devices, and the like.

所称处理器50可以是中央处理单元(Central Processing Unit,CPU),该处理器50还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 50 may be a central processing unit (Central Processing Unit, CPU), and the processor 50 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuits) , ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

所述存储器51在一些实施例中可以是所述终端设备5的内部存储单元,例如终端设备5的硬盘或内存。所述存储器51在另一些实施例中也可以是所述终端设备5的外部存储设备,例如所述终端设备5上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器51还可以既包括所述终端设备5的内部存储单元也包括外部存储设备。所述存储器51用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the terminal device 5 in some embodiments, such as a hard disk or a memory of the terminal device 5 . The memory 51 may also be an external storage device of the terminal device 5 in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device. The memory 51 is used to store an operating system, an application program, a boot loader (Boot Loader), data, and other programs, such as program codes of the computer program, and the like. The memory 51 can also be used to temporarily store data that has been output or will be output.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个荧光细胞计数方法实施例中的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing embodiments of the fluorescent cell counting methods can be implemented. .

本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现可实现上述各个荧光细胞计数方法实施例中的步骤。The embodiments of the present application provide a computer program product, when the computer program product runs on a terminal device, the terminal device can implement the steps in each of the above-mentioned embodiments of the fluorescent cell counting method.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program to instruct the relevant hardware. The computer program can be stored in a computer-readable storage medium, and the computer program When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include at least: any entity or device capable of carrying computer program codes to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electrical carrier signal, telecommunication signal, and software distribution medium. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.

Claims (10)

1. A method of fluorescent cell counting, comprising:
acquiring a fluorescence image to be counted, wherein the fluorescence image comprises at least one cell subjected to immunofluorescence staining;
carrying out binarization processing on the fluorescence image to obtain a binarized image;
identifying a cell area in the binary image according to a preset cell area parameter;
counting the number of fluorescent cells in the fluorescent image based on the cell region.
2. The fluorescent cell counting method according to claim 1, wherein the fluorescent cell gray value in the binarized image is a first value, and the background color gray value is a second value;
the identifying the cell area in the binary image according to the preset cell area parameter comprises the following steps:
reading the gray value of each pixel point in the binary image;
connecting adjacent pixel points with the gray values as first numerical values to form a to-be-selected area;
respectively calculating the area of each region to be selected;
and screening target regions with areas meeting the preset cell area parameters from the regions to be selected, and taking the target regions as the cell regions.
3. The fluorescent cell counting method according to claim 2, wherein the step of screening the target region with an area meeting the preset cell area parameter from each of the candidate regions comprises:
and taking the area of the candidate area which is larger than 30 pixels and smaller than 1000 pixels as the target area.
4. The fluorescent cell counting method of claim 1, wherein the counting the number of fluorescent cells in the fluorescent image based on the cell region comprises:
marking each cell area in the fluorescence image by using a preset mark to obtain a marked fluorescence image;
and counting the number of the marks in the marked fluorescence image to obtain the number of the fluorescence cells in the fluorescence image.
5. The fluorescent cell counting method of claim 1, wherein the counting the number of fluorescent cells in the fluorescent image based on the cell region comprises:
and counting the number of the cell areas in the binary image to obtain the number of the fluorescent cells in the fluorescent image.
6. The fluorescent cell counting method according to any one of claims 1 to 5, further comprising, after the counting the number of fluorescent cells in the fluorescent image based on the cell region:
calculating the picture size of the fluorescence image;
and calculating the actual area of the slice tissue corresponding to the fluorescence image according to the size of the fluorescence image.
7. A fluorescent cell counting device, comprising:
the device comprises an image acquisition module, a counting module and a counting module, wherein the image acquisition module is used for acquiring a fluorescence image to be counted, and the fluorescence image comprises at least one cell subjected to immunofluorescence staining;
the binarization module is used for carrying out binarization processing on the fluorescent image to obtain a binarization image;
the cell identification module is used for identifying a cell area in the binary image according to a preset cell area parameter;
and the counting module is used for counting the number of the fluorescent cells in the fluorescent image based on the cell region.
8. The fluorescent cell counting device according to claim 7, wherein the fluorescent cell gray scale value in the binarized image is a first value, and the background color gray scale value is a second value;
the cell recognition module is specifically configured to:
reading the gray value of each pixel point in the binary image;
connecting adjacent pixel points with the gray values as first numerical values to form a to-be-selected area;
respectively calculating the area of each region to be selected;
and screening target regions with areas meeting the preset cell area parameters from the regions to be selected, and taking the target regions as the cell regions.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN201910858707.9A 2019-09-11 2019-09-11 Fluorescent cell counting method, fluorescent cell counting device, terminal equipment and storage medium Pending CN110706206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910858707.9A CN110706206A (en) 2019-09-11 2019-09-11 Fluorescent cell counting method, fluorescent cell counting device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910858707.9A CN110706206A (en) 2019-09-11 2019-09-11 Fluorescent cell counting method, fluorescent cell counting device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110706206A true CN110706206A (en) 2020-01-17

Family

ID=69195327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910858707.9A Pending CN110706206A (en) 2019-09-11 2019-09-11 Fluorescent cell counting method, fluorescent cell counting device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110706206A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111832389A (en) * 2020-05-25 2020-10-27 中国人民解放军陆军军医大学第二附属医院 Counting and analysis method of an automatic detection system of bone marrow cell morphology
CN111862004A (en) * 2020-06-30 2020-10-30 江西微润芯璟科技有限公司 Tumor cell phenotype identification and counting method based on cytofluorescence images
CN111932499A (en) * 2020-07-10 2020-11-13 深圳市瑞沃德生命科技有限公司 Method, device and system for calculating cell diameter
CN112161910A (en) * 2020-09-19 2021-01-01 湖南伊鸿健康科技有限公司 Blood cell counting method
CN112819795A (en) * 2021-02-05 2021-05-18 复旦大学附属中山医院 Cell number and area statistical method based on multicolor fluorescence picture
CN112837316A (en) * 2021-03-16 2021-05-25 深圳市瑞沃德生命科技有限公司 Method and device for identifying clustered cells
CN113222969A (en) * 2021-05-28 2021-08-06 大连海事大学 Imaging flow cytometry adhesion counting and activity detection method and device based on bidirectional background difference method
CN113693724A (en) * 2021-08-19 2021-11-26 南京诺源医疗器械有限公司 Irradiation method, device and storage medium suitable for fluorescence image navigation operation
CN113962947A (en) * 2021-10-11 2022-01-21 南京诺源医疗器械有限公司 Storage method, device and storage medium suitable for fluorescence tomography image and incisal margin information
CN114067315A (en) * 2021-10-23 2022-02-18 广州市艾贝泰生物科技有限公司 Cell counting method, cell counting device, computer device, and storage medium
CN114708588A (en) * 2022-03-29 2022-07-05 武汉大学 Method, device, equipment and storage medium for identifying brain glioma circulating tumor cells
CN116342686A (en) * 2023-05-29 2023-06-27 苏州创腾软件有限公司 Cell classification counting method and device based on OpenCV image processing
CN117218139A (en) * 2023-09-12 2023-12-12 珠海横琴圣澳云智科技有限公司 Method and device for determining cell density of sample

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101949819A (en) * 2010-09-16 2011-01-19 北京优纳科技有限公司 Cell counting method based on image identification
CN102819765A (en) * 2012-02-28 2012-12-12 浙江工业大学 Milk somatic cell counting method based on computer vision
CN108961250A (en) * 2018-07-20 2018-12-07 中国科学院深圳先进技术研究院 A kind of object statistical method, device, terminal and storage medium
CN109472761A (en) * 2018-11-23 2019-03-15 军事科学院系统工程研究院卫勤保障技术研究所 A kind of method for cell count and system based on fluorescent image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101949819A (en) * 2010-09-16 2011-01-19 北京优纳科技有限公司 Cell counting method based on image identification
CN102819765A (en) * 2012-02-28 2012-12-12 浙江工业大学 Milk somatic cell counting method based on computer vision
CN108961250A (en) * 2018-07-20 2018-12-07 中国科学院深圳先进技术研究院 A kind of object statistical method, device, terminal and storage medium
CN109472761A (en) * 2018-11-23 2019-03-15 军事科学院系统工程研究院卫勤保障技术研究所 A kind of method for cell count and system based on fluorescent image

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111832389B (en) * 2020-05-25 2022-12-09 中国人民解放军陆军军医大学第二附属医院 Counting and analysis method of a bone marrow cell morphology automatic detection system
CN111832389A (en) * 2020-05-25 2020-10-27 中国人民解放军陆军军医大学第二附属医院 Counting and analysis method of an automatic detection system of bone marrow cell morphology
CN111862004A (en) * 2020-06-30 2020-10-30 江西微润芯璟科技有限公司 Tumor cell phenotype identification and counting method based on cytofluorescence images
CN111862004B (en) * 2020-06-30 2023-08-29 江西中医药大学 Tumor cell phenotype recognition and counting method based on cell fluorescence image
CN111932499A (en) * 2020-07-10 2020-11-13 深圳市瑞沃德生命科技有限公司 Method, device and system for calculating cell diameter
CN111932499B (en) * 2020-07-10 2023-12-22 深圳市瑞沃德生命科技有限公司 Cell diameter calculation method, device and system
CN112161910A (en) * 2020-09-19 2021-01-01 湖南伊鸿健康科技有限公司 Blood cell counting method
CN112819795A (en) * 2021-02-05 2021-05-18 复旦大学附属中山医院 Cell number and area statistical method based on multicolor fluorescence picture
CN112819795B (en) * 2021-02-05 2023-03-31 复旦大学附属中山医院 Cell number and area statistical method based on multicolor fluorescence picture
CN112837316A (en) * 2021-03-16 2021-05-25 深圳市瑞沃德生命科技有限公司 Method and device for identifying clustered cells
CN112837316B (en) * 2021-03-16 2024-01-12 深圳市瑞沃德生命科技有限公司 Method and device for identifying aggregated cells
CN113222969A (en) * 2021-05-28 2021-08-06 大连海事大学 Imaging flow cytometry adhesion counting and activity detection method and device based on bidirectional background difference method
CN113222969B (en) * 2021-05-28 2024-05-14 大连海事大学 Imaging flow type cell adhesion counting and activity detecting method and device based on bidirectional background difference method
CN113693724A (en) * 2021-08-19 2021-11-26 南京诺源医疗器械有限公司 Irradiation method, device and storage medium suitable for fluorescence image navigation operation
CN113962947A (en) * 2021-10-11 2022-01-21 南京诺源医疗器械有限公司 Storage method, device and storage medium suitable for fluorescence tomography image and incisal margin information
CN113962947B (en) * 2021-10-11 2023-04-18 南京诺源医疗器械有限公司 Storage method and device suitable for fluorescence tomography image and incisal margin information
CN114067315A (en) * 2021-10-23 2022-02-18 广州市艾贝泰生物科技有限公司 Cell counting method, cell counting device, computer device, and storage medium
CN114708588A (en) * 2022-03-29 2022-07-05 武汉大学 Method, device, equipment and storage medium for identifying brain glioma circulating tumor cells
CN114708588B (en) * 2022-03-29 2024-07-26 武汉大学 Brain glioma circulating tumor cell identification method, device, equipment and storage medium
CN116342686A (en) * 2023-05-29 2023-06-27 苏州创腾软件有限公司 Cell classification counting method and device based on OpenCV image processing
CN117218139A (en) * 2023-09-12 2023-12-12 珠海横琴圣澳云智科技有限公司 Method and device for determining cell density of sample
CN117218139B (en) * 2023-09-12 2024-05-24 珠海横琴圣澳云智科技有限公司 Method and device for determining cell density of sample

Similar Documents

Publication Publication Date Title
CN110706206A (en) Fluorescent cell counting method, fluorescent cell counting device, terminal equipment and storage medium
CN109886928B (en) Target cell marking method, device, storage medium and terminal equipment
CN109978890B (en) Target extraction method and device based on image processing and terminal equipment
CN109117773B (en) Image feature point detection method, terminal device and storage medium
CN109166156B (en) Camera calibration image generation method, mobile terminal and storage medium
CN107492091A (en) Label look detection method and terminal device based on machine vision
CN112348765A (en) Data enhancement method and device, computer readable storage medium and terminal equipment
CN108717744B (en) Method and device for identifying seal serial number on financial document and terminal equipment
CN109447074B (en) License plate recognition method and terminal equipment
CN108229232B (en) Method and device for scanning two-dimensional codes in batch
CN111340796A (en) Defect detection method and device, electronic equipment and storage medium
CN113763370B (en) Digital pathology image processing method and device, electronic equipment and storage medium
CN110647889A (en) Medical image recognition method, medical image recognition device, terminal equipment and medium
CN111290684A (en) Image display method, image display device and terminal equipment
CN115631122A (en) Image optimization method and device for edge image algorithm
CN114638294A (en) Data enhancement method and device, terminal equipment and storage medium
CN110599520A (en) Open field experiment data analysis method, system and terminal equipment
TWI671686B (en) Image data retrieving method and image data retrieving device
CN112308046A (en) Method, device, server and readable storage medium for positioning text region of image
CN115761270A (en) Color card detection method and device, electronic equipment and storage medium
CN117496560B (en) Fingerprint line identification method and device based on multidimensional vector
CN108629219B (en) Method and device for identifying one-dimensional code
CN110610178A (en) Image recognition method, device, terminal and computer readable storage medium
CN115033487A (en) Automatic testing method and device based on image recognition, computer equipment and storage medium
CN111627511A (en) Ophthalmologic report content identification method and device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117

RJ01 Rejection of invention patent application after publication