Nothing Special   »   [go: up one dir, main page]

CN118297812B - Liver cancer pathological image enhancement method based on artificial intelligence - Google Patents

Liver cancer pathological image enhancement method based on artificial intelligence Download PDF

Info

Publication number
CN118297812B
CN118297812B CN202410704759.1A CN202410704759A CN118297812B CN 118297812 B CN118297812 B CN 118297812B CN 202410704759 A CN202410704759 A CN 202410704759A CN 118297812 B CN118297812 B CN 118297812B
Authority
CN
China
Prior art keywords
pixel point
pixel
liver cancer
point
points
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.)
Active
Application number
CN202410704759.1A
Other languages
Chinese (zh)
Other versions
CN118297812A (en
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.)
First Hospital of China Medical University
Original Assignee
First Hospital of China Medical University
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 First Hospital of China Medical University filed Critical First Hospital of China Medical University
Priority to CN202410704759.1A priority Critical patent/CN118297812B/en
Publication of CN118297812A publication Critical patent/CN118297812A/en
Application granted granted Critical
Publication of CN118297812B publication Critical patent/CN118297812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/10Image enhancement or restoration using non-spatial domain filtering
    • 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
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • 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/10072Tomographic images
    • G06T2207/10081Computed x-ray tomography [CT]
    • 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/30004Biomedical image processing
    • G06T2207/30056Liver; Hepatic

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Apparatus For Radiation Diagnosis (AREA)

Abstract

本发明涉及图像处理技术领域,具体涉及一种基于人工智能的肝癌病理图像增强方法,包括:采集并预处理肝脏部位的CT图像;获取CT图像中的肝脏区域;根据肝脏区域中每个像素点的灰度值,获取像素点的第一肝癌边缘因子;获取每个像素点的局部像素点;根据像素点以及像素点的局部像素点的梯度方向以及第一肝癌边缘因子,获取像素点的第二肝癌边缘因子;根据像素点的第二肝癌边缘因子,获取像素点的拉普拉斯滤波权重对CT图像进行增强。本发明通过分析每个像素点为肝癌组织边缘的可能性,自适应得到每个像素点的拉普拉斯滤波权重,避免图像失真的情况出现,提高了图像增强的效果。

The present invention relates to the field of image processing technology, and in particular to a method for enhancing liver cancer pathology images based on artificial intelligence, comprising: collecting and preprocessing a CT image of a liver part; obtaining a liver area in the CT image; obtaining a first liver cancer edge factor of a pixel according to the gray value of each pixel in the liver area; obtaining a local pixel of each pixel; obtaining a second liver cancer edge factor of a pixel according to the gradient direction of the pixel and the local pixel of the pixel and the first liver cancer edge factor; obtaining the Laplace filter weight of the pixel according to the second liver cancer edge factor of the pixel to enhance the CT image. The present invention analyzes the possibility that each pixel is the edge of liver cancer tissue, adaptively obtains the Laplace filter weight of each pixel, avoids image distortion, and improves the effect of image enhancement.

Description

一种基于人工智能的肝癌病理图像增强方法A liver cancer pathology image enhancement method based on artificial intelligence

技术领域Technical Field

本发明涉及图像处理技术领域,具体涉及一种基于人工智能的肝癌病理图像增强方法。The present invention relates to the technical field of image processing, and in particular to a liver cancer pathology image enhancement method based on artificial intelligence.

背景技术Background Art

肝脏部位的CT图像通常可用于肝癌病理分析;但肝癌病理分析时通常由医生手动标记肝癌组织,而通过手动标记肝癌组织通常是耗时且繁琐的,为了能够令医生更方便准确地获取肝癌组织,因此需要对患者肝脏部位的CT图像进行增强。CT images of the liver can usually be used for pathological analysis of liver cancer; however, liver cancer tissue is usually manually marked by doctors during pathological analysis of liver cancer, and manual marking of liver cancer tissue is usually time-consuming and cumbersome. In order to enable doctors to obtain liver cancer tissue more conveniently and accurately, the CT images of the patient's liver need to be enhanced.

但通常情况下利用传统的拉普拉斯滤波对患者肝脏部位的CT图像进行增强时,由于传统的拉普拉斯滤波对所有像素点进行拉普拉斯滤波的卷积核是相同的,因此可能会导致增强后的图像失真,增强效果不佳。However, when the traditional Laplace filter is usually used to enhance the CT image of the patient's liver, since the convolution kernel of the traditional Laplace filter for all pixels is the same, it may cause distortion of the enhanced image and poor enhancement effect.

发明内容Summary of the invention

本发明提供一种基于人工智能的肝癌病理图像增强方法,以解决现有的问题:传统的拉普拉斯滤波对CT图像的增强效果不佳。The present invention provides a liver cancer pathology image enhancement method based on artificial intelligence to solve the existing problem that the traditional Laplace filter has a poor enhancement effect on CT images.

本发明的一种基于人工智能的肝癌病理图像增强方法采用如下技术方案:The present invention provides a method for enhancing liver cancer pathology images based on artificial intelligence using the following technical solutions:

包括以下步骤:The following steps are involved:

采集并预处理肝脏部位的CT图像;Acquire and preprocess CT images of the liver;

获取CT图像中的肝脏区域;根据肝脏区域中每个像素点与邻域像素点在灰度值上的差异,获取像素点的第一肝癌边缘因子;Acquire a liver region in a CT image; acquire a first liver cancer edge factor of a pixel point according to a difference in grayscale value between each pixel point in the liver region and a neighboring pixel point;

预设一个局部范围,获取每个像素点的局部像素点;对像素点以及像素点的局部像素点进行组合,得到像素点的若干组合;根据像素点的所有组合中像素点的梯度方向以及像素点的第一肝癌边缘因子,获取像素点的第二肝癌边缘因子;Preset a local range and obtain local pixel points of each pixel point; combine the pixel points and the local pixel points of the pixel points to obtain several combinations of the pixel points; obtain the second liver cancer edge factor of the pixel point according to the gradient direction of the pixel point in all combinations of the pixel points and the first liver cancer edge factor of the pixel point;

根据像素点的第二肝癌边缘因子,获取像素点的拉普拉斯滤波权重;根据像素点的拉普拉斯滤波权重,获取对像素点进行拉普拉斯滤波的卷积核,并对CT图像进行增强。According to the second liver cancer edge factor of the pixel point, the Laplace filter weight of the pixel point is obtained; according to the Laplace filter weight of the pixel point, the convolution kernel for performing Laplace filtering on the pixel point is obtained, and the CT image is enhanced.

优选的,所述根据肝脏区域中每个像素点与邻域像素点在灰度值上的差异,获取像素点的第一肝癌边缘因子,包括的具体方法为:Preferably, the method of obtaining the first liver cancer edge factor of a pixel point according to the difference in grayscale value between each pixel point and neighboring pixel points in the liver region includes the following specific methods:

根据第个像素点的邻域圆上所有点特征值,结合第个像素点的灰度值,获取第个像素点的第一肝癌边缘因子,其具体的计算公式为:According to The feature values of all points on the neighborhood circle of the pixel point are combined with the The gray value of the pixel is obtained The specific calculation formula of the first liver cancer edge factor of pixels is:

式中,表示第个像素点的第一肝癌边缘因子;表示第个像素点的邻域圆上点的数量;表示第个像素点的灰度值;表示第个像素点的邻域圆上第个点特征值;表示双曲线正切函数。In the formula, Indicates The first liver cancer edge factor of pixels; Indicates The number of points on the neighborhood circle of a pixel; Indicates The gray value of each pixel; Indicates The neighborhood circle of the pixel point eigenvalues; represents the hyperbolic tangent function.

优选的,所述第个像素点的邻域圆上所有点特征值的具体获取方法为:Preferably, the The specific method for obtaining the characteristic values of all points on the neighborhood circle of a pixel point is:

根据、第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点的灰度值,获取第个像素点的邻域圆上第个点特征值,其具体的计算公式为:according to The neighborhood circle of the pixel The grayscale values of the first reference pixel and the second reference pixel of the point are obtained. The neighborhood circle of the pixel The specific calculation formula of the point eigenvalue is:

式中,表示第个像素点的邻域圆上第个点特征值;表示第个像素点的邻域圆上第个点的第一基准像素点的灰度值;表示第个像素点的邻域圆上第个点的第二基准像素点的灰度值;表示第个像素点与第个像素点的邻域圆上第个点的连线的角度;表示取余函数。In the formula, Indicates The neighborhood circle of the pixel point eigenvalues; Indicates The neighborhood circle of the pixel The gray value of the first reference pixel of points; Indicates The neighborhood circle of the pixel The gray value of the second reference pixel point of the point; Indicates Pixels and The neighborhood circle of the pixel The angle of the line connecting the points; Represents the remainder function.

优选的,所述、第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点的具体获取方法为:Preferably, the The neighborhood circle of the pixel The specific method for obtaining the first reference pixel point and the second reference pixel point of a point is:

对于第个像素点的邻域圆上第个点,以水平向右方向为0°方向,竖直向上方向为90°方向;连接第个像素点与第个像素点的邻域圆上第个点,得到第个像素点与第个像素点的邻域圆上第个点的连线并获取连线的角度记为For The neighborhood circle of the pixel points, with the horizontal right direction as 0° and the vertical upward direction as 90°; connect the Pixels and The neighborhood circle of the pixel points, get the Pixels and The neighborhood circle of the pixel The connecting line of the points and the angle of the connecting line are recorded as ;

大于且小于或等于,则将第个像素点的第一邻域像素点与第二邻域像素点,分别记为第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点;若大于且小于或等于,则将第个像素点的第二邻域像素点与第三邻域像素点,记为第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点;若大于且小于或等于,则将第个像素点的第三邻域像素点与第四邻域像素点,记为第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点;若大于且小于或等于,则将第个像素点的第四邻域像素点与第一邻域像素点,记为第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点。like Greater than and less than or equal to , then the The first neighboring pixel point and the second neighboring pixel point of a pixel point are respectively denoted as The neighborhood circle of the pixel The first reference pixel point and the second reference pixel point of the point; if Greater than and less than or equal to , then the The second neighboring pixel point and the third neighboring pixel point of the pixel point are recorded as The neighborhood circle of the pixel The first reference pixel point and the second reference pixel point of the point; if Greater than and less than or equal to , then the The third neighboring pixel point and the fourth neighboring pixel point of the pixel point are recorded as The neighborhood circle of the pixel The first reference pixel point and the second reference pixel point of the point; if Greater than and less than or equal to , then the The fourth neighboring pixel and the first neighboring pixel of the pixel are recorded as The neighborhood circle of the pixel The first reference pixel point and the second reference pixel point of the points.

优选的,所述第个像素点的邻域圆的具体获取方法为:Preferably, the The specific method for obtaining the neighborhood circle of a pixel point is:

将第个像素点的四邻域范围内的所有像素点记为第个像素点的邻域像素点,并将位于第个像素点右侧、上侧、左侧以及下侧的第个像素点的邻域像素点,分别记为第个像素点的第一邻域像素点、第二邻域像素点、第三邻域像素点以及第四邻域像素点;以第个像素点的中心为圆心,做一个任意半径的圆,记为第个像素点的邻域圆。The first All pixels within the four neighborhoods of a pixel are recorded as The neighboring pixel of the pixel, and the pixels to the right, top, left, and bottom of The neighboring pixels of a pixel are respectively denoted as the first neighboring pixel point, the second neighboring pixel point, the third neighboring pixel point and the fourth neighboring pixel point of the pixel point; The center of the pixel is the center of the circle, and a circle with an arbitrary radius is made, which is recorded as The neighborhood circle of pixels.

优选的,所述预设一个局部范围,获取每个像素点的局部像素点;对像素点以及像素点的局部像素点进行组合,得到像素点的若干组合,包括的具体方法为:Preferably, the method of presetting a local range, obtaining local pixel points of each pixel point, and combining the pixel points and the local pixel points of the pixel points to obtain several combinations of pixel points includes the following specific methods:

对于第个像素点,以第个像素点为中心构建一个的窗口,将窗口中除第个像素点外的所有像素点记为第个像素点的局部像素点;For pixels, with the Pixels are used as the center to build a window, except the All pixels except the first pixel are recorded as Local pixel points of pixels;

将第个像素点以及从第个像素点的局部像素点中选取个像素点作为第个像素点的一个组合,获取第个像素点的若干组合。The first pixels and from Select from the local pixels of pixels The pixel is the A combination of pixels, get the Several combinations of pixels.

优选的,所述根据像素点的所有组合中像素点的梯度方向以及像素点的第一肝癌边缘因子,获取像素点的第二肝癌边缘因子,包括的具体方法为:Preferably, the method of obtaining the second liver cancer edge factor of the pixel point according to the gradient direction of the pixel point in all combinations of the pixel points and the first liver cancer edge factor of the pixel point comprises the following specific methods:

对于第个像素点的第个组合,将第个像素点的第个组合中的像素点进行两两配对,得到第个像素点的第个组合中的若干像素点对;For The pixel combination, The pixel The pixels in the combination are paired two by two to get the The pixel A number of pixel pairs in a combination;

对于第个像素点的第个组合中第个像素点对,计算第个像素点的第个组合中第个像素点对中两个像素点的梯度方向之间的余弦相似度,记为第个像素点的第个组合中第个像素点对的相似值;For The pixel The first pixel pairs, calculate the The pixel The first The cosine similarity between the gradient directions of two pixels in a pixel pair is denoted as The pixel The first Similarity value of pixel pairs;

将对于第个像素点的第个组合中所有像素点对的相似值均值,记为第个像素点的第个组合的相似值;For the The pixel The mean similarity value of all pixel pairs in the combination is recorded as The pixel Similarity values of combinations;

根据第个像素点的第个组合的特征值以及第个像素点的第个组合内每个像素点的第一肝癌边缘因子,获取第个像素点的第个组合的肝癌边缘系数;According to The pixel The eigenvalues of the combinations and The pixel The first liver cancer edge factor of each pixel in the combination is obtained The pixel The liver cancer margin coefficient of the combination;

将肝癌边缘系数最大的第个像素点的组合,记为第个像素点的最似边缘组合,并将第个像素点的最似边缘组合的肝癌边缘系数,作为第个像素点的第二肝癌边缘因子。The largest liver cancer marginal coefficient The combination of pixels is recorded as The most similar edge combination of pixels and the The liver cancer edge coefficient of the most similar edge combination of pixels is taken as the first The second liver cancer edge factor of pixels.

优选的,所述获取第个像素点的第个组合的肝癌边缘系数的具体计算方法为:Preferably, the obtaining The pixel The specific calculation method of the liver cancer edge coefficient of a combination is:

式中,表示第个像素点的第个组合的肝癌边缘系数;表示第个像素点的第个组合的相似值;表示预设的窗口边长;表示第个像素点的第个组合中第个像素点的第一肝癌边缘因子;表示最大值最小值归一化函数。In the formula, Indicates The pixel The liver cancer margin coefficient of the combination; Indicates The pixel Similarity values of combinations; Indicates the preset window side length; Indicates The pixel The first The first liver cancer edge factor of pixels; Represents the maximum and minimum normalization function.

优选的,所述根据像素点的第二肝癌边缘因子,获取像素点的拉普拉斯滤波权重;根据像素点的拉普拉斯滤波权重,获取对像素点进行拉普拉斯滤波的卷积核,包括的具体方法为:Preferably, the method of obtaining the Laplace filter weight of the pixel point according to the second liver cancer edge factor of the pixel point; and obtaining the convolution kernel for performing Laplace filtering on the pixel point according to the Laplace filter weight of the pixel point includes the following specific methods:

对于第个像素点,获取第个像素点的最似边缘组合中所有像素点的第二肝癌边缘因子,将第个像素点的最似边缘组合中所有像素点的第二肝癌边缘因子的均值,记为第个像素点肝癌边缘特征值,并利用双曲线正切函数对第个像素点肝癌边缘特征值进行归一化,得到第个像素点的拉普拉斯滤波权重记为For pixels, get the The second liver cancer edge factor of all pixels in the most similar edge combination of pixels is The average of the second liver cancer edge factors of all pixels in the most similar edge combination of pixels is recorded as The edge feature value of liver cancer at each pixel is calculated by using the hyperbolic tangent function. Normalize the liver cancer edge feature value of each pixel point to get The Laplace filter weight of each pixel is recorded as ;

预设一个初始拉普拉斯卷积核;根据第个像素点的拉普拉斯滤波权重对初始拉普拉斯卷积核进行加权,得到对第个像素点进行拉普拉斯滤波的卷积核;Preset an initial Laplace convolution kernel; according to The Laplace filter weights of pixels are used to weight the initial Laplace convolution kernel, and the The convolution kernel for Laplacian filtering of pixels;

根据对第个像素点进行拉普拉斯滤波的卷积核,对第个像素点进行拉普拉斯滤波。According to the The convolution kernel of the Laplace filter is used for the pixels. The pixels are Laplace filtered.

优选的,所述获取CT图像中的肝脏区域,包括的具体方法为:Preferably, the method of acquiring the liver region in the CT image includes:

利用语义分割算法获取CT图像中的肝脏区域。The semantic segmentation algorithm is used to obtain the liver region in the CT image.

本发明的技术方案的有益效果是:本发明根据肝脏区域中每个像素点的灰度值,获取像素点的第一肝癌边缘因子,通过分析每个像素点与邻域像素点灰度过渡上的平滑程度,对每个像素可能为肝癌组织中的像素点进行初步量化,同时为后续获取像素点的第二肝癌边缘因子提供数据支持;获取每个像素点的局部像素点;根据像素点以及像素点的局部像素点的梯度方向以及第一肝癌边缘因子,获取像素点的第二肝癌边缘因子,通过从连续性上衡量像素点为肝癌组织的边缘像素点可能性,得到每个像素点所具有的肝癌组织边缘的特征,为后续获取每个像素点的拉普拉斯滤波权重提供支持;根据像素点的第二肝癌边缘因子,获取像素点的拉普拉斯滤波权重对CT图像进行增强,通过给予第二肝癌边缘因子大的像素点大的拉普拉斯滤波权重,给予第二肝癌边缘因子小的像素点小的拉普拉斯滤波权重,实现针对肝癌组织边缘的锐化,避免了图像增强失真的情况出现,提高了肝癌病理图像的增强效果。The technical solution of the present invention has the following beneficial effects: the present invention obtains the first liver cancer edge factor of the pixel point according to the gray value of each pixel point in the liver area, and preliminarily quantifies each pixel point that may be a pixel point in liver cancer tissue by analyzing the smoothness of the gray transition between each pixel point and the neighboring pixel points, and provides data support for the subsequent acquisition of the second liver cancer edge factor of the pixel point; obtains the local pixel point of each pixel point; obtains the second liver cancer edge factor of the pixel point according to the gradient direction of the pixel point and the local pixel point of the pixel point and the first liver cancer edge factor, and obtains the characteristics of the liver cancer tissue edge of each pixel point by measuring the possibility that the pixel point is an edge pixel point of liver cancer tissue from the perspective of continuity, and provides support for the subsequent acquisition of the Laplace filter weight of each pixel point; according to the second liver cancer edge factor of the pixel point, obtains the Laplace filter weight of the pixel point to enhance the CT image, and by giving a large Laplace filter weight to the pixel point with a large second liver cancer edge factor and a small Laplace filter weight to the pixel point with a small second liver cancer edge factor, the edge of the liver cancer tissue is sharpened, the image enhancement distortion is avoided, and the enhancement effect of the liver cancer pathological image is improved.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

图1为本发明一种基于人工智能的肝癌病理图像增强方法的步骤流程图;FIG1 is a flowchart of a method for enhancing liver cancer pathology images based on artificial intelligence according to the present invention;

图2为像素点的邻域圆以及邻域像素点示意图。FIG. 2 is a schematic diagram of a neighborhood circle of a pixel point and a neighborhood pixel point.

具体实施方式DETAILED DESCRIPTION

为了更进一步阐述本发明为达成预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明提出的一种基于人工智能的肝癌病理图像增强方法,其具体实施方式、结构、特征及其功效,详细说明如下。在下述说明中,不同的“一个实施例”或“另一个实施例”指的不一定是同一实施例。此外,一或多个实施例中的特定特征、结构或特点可由任何合适形式组合。In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation, structure, features and effects of a liver cancer pathology image enhancement method based on artificial intelligence proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

下面结合附图具体的说明本发明所提供的一种基于人工智能的肝癌病理图像增强方法的具体方案。The following is a detailed description of a specific solution of a liver cancer pathology image enhancement method based on artificial intelligence provided by the present invention in conjunction with the accompanying drawings.

请参阅图1,其示出了本发明一个实施例提供的一种基于人工智能的肝癌病理图像增强方法的步骤流程图,该方法包括以下步骤:Please refer to FIG. 1 , which shows a flowchart of a method for enhancing liver cancer pathology images based on artificial intelligence according to an embodiment of the present invention. The method comprises the following steps:

步骤S001:采集并预处理肝脏部位的CT图像。Step S001: Acquire and pre-process a CT image of the liver.

需要说明的是,CT(Computed Tomography,电子计算机断层扫描)是一种安全可靠的影像检查方法,医生可通过患者肝脏部位的CT图像,在判断患者是否患有肝癌的同时获取患者肝脏中的肝癌组织,而广泛的应用于医疗领域;但由于传统的通过CT图像获取肝癌组织的方法为医生手动标记肝癌组织,但由于肝癌组织中的像素点的灰度值与正常组织中的像素点的灰度值相似,因此通过手动标记肝癌组织通常是耗时且繁琐的,因此为了能够令医生更好的获取肝癌组织,本实施例提出了一种基于人工智能的肝癌病理图像增强方法,通过分析CT图像中肝癌组织的特征,CT图像中肝癌组织的边缘进行增强,使医生能够更好地获取肝癌组织,为此首先需要采集患者肝脏区域的CT图像。It should be noted that CT (Computed Tomography) is a safe and reliable imaging examination method. Doctors can use CT images of the patient's liver to determine whether the patient has liver cancer and obtain liver cancer tissue in the patient's liver, and it is widely used in the medical field. However, since the traditional method of obtaining liver cancer tissue through CT images is for doctors to manually mark liver cancer tissue, and since the grayscale values of pixels in liver cancer tissue are similar to those in normal tissue, manual marking of liver cancer tissue is usually time-consuming and cumbersome. Therefore, in order to enable doctors to better obtain liver cancer tissue, this embodiment proposes a liver cancer pathology image enhancement method based on artificial intelligence. By analyzing the characteristics of liver cancer tissue in CT images, the edges of liver cancer tissue in CT images are enhanced, so that doctors can better obtain liver cancer tissue. To this end, it is first necessary to collect a CT image of the patient's liver area.

具体的,利用CT扫描仪采集患者肝脏部位的CT图像,由于利用CT扫描仪采集CT的具体过程作为一种公知的现有技术,故在本实施例中不再进行赘述。Specifically, a CT scanner is used to acquire a CT image of the patient's liver. Since the specific process of acquiring CT images using a CT scanner is a well-known prior art, it will not be described in detail in this embodiment.

需要进一步说明的是,在采集CT图像的过程中时常伴有噪声的存在,为此还需要对肝脏部位的CT图像进行去噪处理。It should be further explained that noise often exists in the process of acquiring CT images, so it is necessary to perform denoising on the CT images of the liver.

具体的,对患者肝脏部位的CT图像进行中值滤波去噪处理,得到经过中值滤波处理后的患者肝脏部位的CT图像记为CT图像;由于中值滤波去噪处理的具体过程作为一种公知的现有技术,故在本实施例中不再进行赘述。Specifically, the CT image of the patient's liver area is subjected to median filtering and denoising processing, and the CT image of the patient's liver area after the median filtering processing is recorded as the CT image; since the specific process of the median filtering and denoising processing is a well-known prior art, it will not be described in detail in this embodiment.

至此,得到CT图像。At this point, a CT image is obtained.

步骤S002:获取CT图像中的肝脏区域;根据肝脏区域中每个像素点与邻域像素点在灰度值上的差异,获取像素点的第一肝癌边缘因子。Step S002: Acquire a liver region in a CT image; and acquire a first liver cancer edge factor of a pixel point according to a difference in grayscale value between each pixel point in the liver region and a neighboring pixel point.

需要说明的是,本实施例作为一种基于人工智能的肝癌病理图像增强方法,具体是通过分析肝癌边缘所具有的特征,若对整张CT图像进行拉普拉斯滤波进行边缘锐化,则可能会导致增强后的图像失真增强效果不佳,因此本实施例通过获取CT图像中每个像素点的拉普拉斯滤波权重,通过给予具有肝癌边缘特征的像素点大的拉普拉斯滤波权重,给予不具有肝癌边缘特征的像素点小的拉普拉斯滤波权重,以此对CT图像中肝癌组织的边缘进行锐化,以此对CT图像中肝癌组织的边缘进行增强,最终达到使医生能够更好地获取肝癌组织的目的。It should be noted that this embodiment is a liver cancer pathology image enhancement method based on artificial intelligence. Specifically, by analyzing the characteristics of the liver cancer edge, if the entire CT image is subjected to Laplace filtering for edge sharpening, it may cause distortion of the enhanced image and poor enhancement effect. Therefore, this embodiment obtains the Laplace filtering weight of each pixel in the CT image, gives a large Laplace filtering weight to the pixel with liver cancer edge characteristics, and gives a small Laplace filtering weight to the pixel without liver cancer edge characteristics, so as to sharpen the edge of the liver cancer tissue in the CT image, thereby enhancing the edge of the liver cancer tissue in the CT image, and ultimately achieves the purpose of enabling doctors to better obtain liver cancer tissue.

需要进一步说明的是,在CT图像中除了患者的肝脏区域,还包含了不是肝脏的部分,而肝癌只会存在于肝脏区域,因此需要将CT图像中的肝脏区域分割出来,通过单独对CT图像中的肝脏区域进行分析,以此达到更加准确的获取肝癌组织。It should be further explained that, in addition to the patient's liver area, the CT image also includes parts that are not the liver, and liver cancer only exists in the liver area. Therefore, the liver area in the CT image needs to be segmented out and the liver area in the CT image needs to be analyzed separately in order to obtain liver cancer tissue more accurately.

具体的,利用语义分割算法对CT图像进行分割,得到CT图像中的肝脏区域。Specifically, the CT image is segmented using a semantic segmentation algorithm to obtain the liver region in the CT image.

需要说明的是,本实施例中将DeepLabV3神经网络作为语义分割算法的神经网络模型,将交叉熵损失函数作为DeepLabV3神经网络的损失函数,该神经网络为一种公知的现有技术,在本实施例中不再进行赘述该神经网络的具体训练方法由于肝癌组织存在于肝脏区域中,因此在得到肝脏区域后,后续所分析的像素点均为肝脏区域中的像素点。但在肝脏区域中的肝癌组织的边缘具有不规则的特征,故可以此作为区分肝脏区域中肝癌组织与正常组织的依据,获取肝脏区域中像素点的第一肝癌边缘因子。It should be noted that in this embodiment, the DeepLabV3 neural network is used as the neural network model of the semantic segmentation algorithm, and the cross entropy loss function is used as the loss function of the DeepLabV3 neural network. The neural network is a well-known prior art, and the specific training method of the neural network is not repeated in this embodiment. Since liver cancer tissue exists in the liver area, after the liver area is obtained, the pixels analyzed subsequently are all pixels in the liver area. However, the edge of the liver cancer tissue in the liver area has irregular characteristics, so this can be used as a basis for distinguishing liver cancer tissue from normal tissue in the liver area, and the first liver cancer edge factor of the pixel point in the liver area is obtained.

具体的,对于第个像素点,将第个像素点的四邻域范围内的所有像素点记为第个像素点的邻域像素点,并将位于第个像素点右侧、上侧、左侧以及下侧的第个像素点的邻域像素点,分别记为第个像素点的第一邻域像素点、第二邻域像素点、第三邻域像素点以及第四邻域像素点;以第个像素点的中心为圆心,做一个任意半径的圆,记为第个像素点的邻域圆,如图2所示;Specifically, for pixels, the All pixels within the four neighborhoods of a pixel are recorded as The neighboring pixel of the pixel, and the pixels to the right, top, left, and bottom of The neighboring pixels of a pixel are respectively denoted as the first neighboring pixel point, the second neighboring pixel point, the third neighboring pixel point and the fourth neighboring pixel point of the pixel point; The center of the pixel is the center of the circle, and a circle with an arbitrary radius is made, which is recorded as The neighborhood circle of pixels is shown in Figure 2;

对于第个像素点的邻域圆上第个点,以水平向右方向为0°方向,竖直向上方向为90°方向;连接第个像素点与第个像素点的邻域圆上第个点,得到第个像素点与第个像素点的邻域圆上第个点的连线并获取连线的角度记为For The neighborhood circle of the pixel points, with the horizontal right direction as 0° and the vertical upward direction as 90°; connect the Pixels and The neighborhood circle of the pixel points, get the Pixels and The neighborhood circle of the pixel The connecting line of the points and the angle of the connecting line are recorded as ;

大于且小于或等于,则将第个像素点的第一邻域像素点与第二邻域像素点,分别记为第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点;若大于且小于或等于,则将第个像素点的第二邻域像素点与第三邻域像素点,记为第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点;若大于且小于或等于,则将第个像素点的第三邻域像素点与第四邻域像素点,记为第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点;若大于且小于或等于,则将第个像素点的第四邻域像素点与第一邻域像素点,记为第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点;like Greater than and less than or equal to , then the The first neighboring pixel point and the second neighboring pixel point of a pixel point are respectively denoted as The neighborhood circle of the pixel The first reference pixel point and the second reference pixel point of the point; if Greater than and less than or equal to , then the The second neighboring pixel point and the third neighboring pixel point of the pixel point are recorded as The neighborhood circle of the pixel The first reference pixel point and the second reference pixel point of the point; if Greater than and less than or equal to , then the The third neighboring pixel point and the fourth neighboring pixel point of the pixel point are recorded as The neighborhood circle of the pixel The first reference pixel point and the second reference pixel point of the point; if Greater than and less than or equal to , then the The fourth neighboring pixel and the first neighboring pixel of the pixel are recorded as The neighborhood circle of the pixel A first reference pixel point and a second reference pixel point of a point;

根据、第个像素点的邻域圆上第个点的第一基准像素点与第二基准像素点的灰度值,获取第个像素点的邻域圆上第个点特征值,其具体的计算公式为:according to The neighborhood circle of the pixel The grayscale values of the first reference pixel and the second reference pixel of the point are obtained. The neighborhood circle of the pixel The specific calculation formula of the point eigenvalue is:

式中,表示第个像素点的邻域圆上第个点特征值;表示第个像素点的邻域圆上第个点的第一基准像素点的灰度值;表示第个像素点的邻域圆上第个点的第二基准像素点的灰度值;表示第个像素点与第个像素点的邻域圆上第个点的连线的角度;表示取余函数。In the formula, Indicates The neighborhood circle of the pixel point eigenvalues; Indicates The neighborhood circle of the pixel The gray value of the first reference pixel of points; Indicates The neighborhood circle of the pixel The gray value of the second reference pixel point of the point; Indicates Pixels and The neighborhood circle of the pixel The angle of the line connecting the points; Represents the remainder function.

进一步的,根据第个像素点的邻域圆上所有点特征值,结合第个像素点的灰度值,获取第个像素点的第一肝癌边缘因子,其具体的计算公式为:Furthermore, according to The feature values of all points on the neighborhood circle of the pixel point are combined with the The gray value of the pixel is obtained The specific calculation formula of the first liver cancer edge factor of pixels is:

式中,表示第个像素点的第一肝癌边缘因子;表示第个像素点的邻域圆上点的数量;表示第个像素点的灰度值;表示第个像素点的邻域圆上第个点特征值;表示双曲线正切函数,在本实施例中用于进行归一化操作。In the formula, Indicates The first liver cancer edge factor of pixels; Indicates The number of points on the neighborhood circle of a pixel; Indicates The gray value of each pixel; Indicates The neighborhood circle of the pixel point eigenvalues; represents a hyperbolic tangent function, which is used to perform a normalization operation in this embodiment.

需要说明的是,表示的是第个像素点灰度值过渡的崎岖程度,的值越大,则说明第个像素点灰度值的过渡越不平滑,而当第个像素点位于肝癌组织边缘时,第个像素点灰度值的过渡不平滑;因此的值越大,则第个像素点为肝癌边缘像素点的可能性就越大。It should be noted that It means the The roughness of the grayscale transition of each pixel, The larger the value of The transition of the gray value of the pixel is not smoother, and when the When the pixel is located at the edge of liver cancer tissue, The transition of the gray value of each pixel is not smooth; therefore The larger the value of The more pixels there are, the greater the possibility that they are liver cancer edge pixels.

至此,得到像素点的第一肝癌边缘因子。At this point, the first liver cancer edge factor of the pixel point is obtained.

步骤S003:预设一个局部范围,获取每个像素点的局部像素点;对像素点以及像素点的局部像素点进行组合,得到像素点的若干组合;根据像素点的所有组合中像素点的梯度方向以及像素点的第一肝癌边缘因子,获取像素点的第二肝癌边缘因子。Step S003: Preset a local range and obtain the local pixel points of each pixel point; combine the pixel points and the local pixel points of the pixel points to obtain several combinations of the pixel points; obtain the second liver cancer edge factor of the pixel point according to the gradient direction of the pixel point in all combinations of the pixel points and the first liver cancer edge factor of the pixel point.

需要说明的是,由于步骤S002获取肝脏区域中所有像素点的第一肝癌边缘因子表示的是单个像素点所具有的肝癌组织边缘像素点的特征,而为了能够更好的对CT图像中肝癌组织的边缘进行增强,还需要对肝脏区域中所有像素点进行进一步的分析。由于在肝脏区域中肝癌组织的边缘像素点的局部范围内,必然存在其他肝癌组织的边缘像素点,故可以此为依据获取像素点的第二肝癌边缘因子。It should be noted that, since the first liver cancer edge factor of all pixels in the liver region obtained in step S002 represents the characteristics of the edge pixel of liver cancer tissue possessed by a single pixel, in order to better enhance the edge of liver cancer tissue in the CT image, it is necessary to further analyze all pixels in the liver region. Since there must be other edge pixels of liver cancer tissue within the local range of the edge pixel of liver cancer tissue in the liver region, the second liver cancer edge factor of the pixel can be obtained based on this.

具体的,对于第个像素点,以第个像素点为中心构建一个的窗口,将窗口中除第个像素点外的所有像素点记为第个像素点的局部像素点;所述为预设的窗口边长,的具体取值可结合实际情况自行设置,本实施例不做硬性要求,在本实施例中以进行叙述;Specifically, for pixels, with the Pixels are used as the center to build a window, except the All pixels except the first pixel are recorded as A local pixel point of pixels; is the preset window side length, The specific value of can be set according to the actual situation. This embodiment does not make a hard requirement. to give a narrative;

将第个像素点以及从第个像素点的局部像素点中选取个像素点作为第个像素点的一个组合,获取第个像素点的若干组合;The first pixels and from Select from the local pixels of pixels The pixel is the A combination of pixels, get the Several combinations of pixels;

对于第个像素点的第个组合,将第个像素点的第个组合中的像素点进行两两配对,得到第个像素点的第个组合中的若干像素点对;For The pixel combination, The pixel The pixels in the combination are paired two by two to get the The pixel A number of pixel pairs in a combination;

对于第个像素点的第个组合中第个像素点对,计算第个像素点的第个组合中第个像素点对中两个像素点的梯度方向之间的余弦相似度,记为第个像素点的第个组合中第个像素点对的相似值;由于像素点的梯度方向以及余弦相似度的具体获取方法作为一种公知的现有技术,故在本实施例不再进行赘述;For The pixel The first pixel pairs, calculate the The pixel The first The cosine similarity between the gradient directions of two pixels in a pixel pair is denoted as The pixel The first similarity value of a pair of pixels; since the specific method for obtaining the gradient direction of the pixel points and the cosine similarity is a well-known prior art, it will not be described in detail in this embodiment;

将对于第个像素点的第个组合中所有像素点对的相似值均值,记为第个像素点的第个组合的相似值;For the The pixel The mean similarity value of all pixel pairs in the combination is recorded as The pixel Similarity values of combinations;

进一步的,根据第个像素点的第个组合的特征值以及第个像素点的第个组合内每个像素点的第一肝癌边缘因子,获取第个像素点的第个组合的肝癌边缘系数,其具体的计算公式为:Furthermore, according to The pixel The eigenvalues of the combinations and The pixel The first liver cancer edge factor of each pixel in the combination is obtained The pixel The specific calculation formula for the liver cancer edge coefficient of the combination is:

式中,表示第个像素点的第个组合的肝癌边缘系数;表示第个像素点的第个组合的相似值;表示预设的窗口边长;表示第个像素点的第个组合中第个像素点的第一肝癌边缘因子;表示最大值最小值归一化函数,归一化对象为所有像素点的所有组合的In the formula, Indicates The pixel The liver cancer margin coefficient of the combination; Indicates The pixel Similarity values of combinations; Indicates the preset window side length; Indicates The pixel The first The first liver cancer edge factor of pixels; Represents the maximum and minimum normalization function, and the normalized object is all combinations of all pixels. ;

将肝癌边缘系数最大的第个像素点的组合,记为第个像素点的最似边缘组合,并将第个像素点的最似边缘组合的肝癌边缘系数,作为第个像素点的第二肝癌边缘因子。The largest liver cancer marginal coefficient The combination of pixels is recorded as The most similar edge combination of pixels and the The liver cancer edge coefficient of the most similar edge combination of pixels is taken as the first The second liver cancer edge factor of pixels.

需要说明的是,由于肝脏区域中肝癌组织的边缘像素点的局部范围内,必然存在其他肝癌组织的边缘像素点,因此若第个像素点为肝癌组织的边缘像素点,则在第个像素点的局部像素点中至少存在个肝癌组织的边缘像素点;又由于肝癌组织的边缘总是凹凸不平的,因此局部范围内肝癌组织的边缘像素点的梯度方向不一致,故值越小,则第个像素点的第个组合中的像素点越具有肝癌组织的边缘像素点的特征,同时表示的是第个像素点的第个组合中第个像素点的第一肝癌边缘因子,因此的值越大,则第个像素点的第个组合中的像素点越具有肝癌组织的边缘像素点的特征;故的值越大,则第个像素点的第个组合中的像素点越可能是肝癌组织的边缘像素点;因此若第个像素点为肝癌组织的边缘像素点,则第个像素点的最似边缘组合内的像素点,就是最可能为肝癌组织的边缘像素点,以此为依据从连续性上衡量第个像素点为肝癌组织的边缘像素点可能性。It should be noted that, since the local range of the edge pixel points of liver cancer tissue in the liver area must contain edge pixel points of other liver cancer tissues, The pixel point is the edge pixel point of liver cancer tissue, then There are at least The edge pixels of liver cancer tissue are always uneven, so the gradient directions of the edge pixels of liver cancer tissue in the local range are inconsistent. The smaller the value, the The pixel The more pixels in the combination have the characteristics of edge pixels of liver cancer tissue, the It means the The pixel The first The first liver cancer edge factor of pixels, therefore The larger the value of The pixel The more pixels in the combination have the characteristics of edge pixels of liver cancer tissue; The larger the value of The pixel The pixel points in the combination are more likely to be edge pixels of liver cancer tissue; therefore, if the The pixel point is the edge pixel point of liver cancer tissue, then The pixel point in the most similar edge combination of the pixels is the edge pixel point that is most likely to be liver cancer tissue. Based on this, the continuity of the first pixel is measured. The possibility that a pixel is an edge pixel of liver cancer tissue.

至此,得到像素点的第二肝癌边缘因子。At this point, the second liver cancer edge factor of the pixel point is obtained.

步骤S004:根据像素点的第二肝癌边缘因子,获取像素点的拉普拉斯滤波权重;根据像素点的拉普拉斯滤波权重,获取对像素点进行拉普拉斯滤波的卷积核,并对CT图像进行增强。Step S004: according to the second liver cancer edge factor of the pixel point, obtain the Laplace filter weight of the pixel point; according to the Laplace filter weight of the pixel point, obtain the convolution kernel for Laplace filtering the pixel point, and enhance the CT image.

需要说明的是,在通过步骤S003得到像素点的第二肝癌边缘因子为第个像素点为肝癌组织的边缘像素点可能性,即可通过对越可能为肝癌组织的边缘像素点,给予越大的拉普拉斯滤波权重,对越不可能为肝癌组织的边缘像素点,给予越小的拉普拉斯滤波权重,实现对CT图像中肝癌组织的边缘进行增强。It should be noted that the second liver cancer edge factor of the pixel point obtained in step S003 is The possibility that a pixel point is an edge pixel point of liver cancer tissue can be enhanced by giving a larger Laplace filter weight to the edge pixel point that is more likely to be liver cancer tissue and giving a smaller Laplace filter weight to the edge pixel point that is less likely to be liver cancer tissue, thereby enhancing the edge of liver cancer tissue in the CT image.

具体的,对于第个像素点,获取第个像素点的最似边缘组合中所有像素点的第二肝癌边缘因子,将第个像素点的最似边缘组合中所有像素点的第二肝癌边缘因子的均值,记为第个像素点肝癌边缘特征值,并利用双曲线正切函数对第个像素点肝癌边缘特征值进行归一化,得到第个像素点的拉普拉斯滤波权重记为Specifically, for pixels, get the The second liver cancer edge factor of all pixels in the most similar edge combination of pixels is The average of the second liver cancer edge factors of all pixels in the most similar edge combination of pixels is recorded as The edge feature value of liver cancer at each pixel is calculated by using the hyperbolic tangent function. Normalize the liver cancer edge feature value of each pixel point to get The Laplace filter weight of each pixel is recorded as ;

接着预设一个初始拉普拉斯卷积核,初始拉普拉斯卷积核可结合实际情况自行设置本实施例不做硬性要求,在本实施例中以初始拉普拉斯卷积核为进行叙述;根据第个像素点的拉普拉斯滤波权重对初始拉普拉斯卷积核进行加权,得到对第个像素点进行拉普拉斯滤波的卷积核:Next, an initial Laplace convolution kernel is preset. The initial Laplace convolution kernel can be set according to the actual situation. This embodiment does not make a rigid requirement. In this embodiment, the initial Laplace convolution kernel is To narrate; according to The Laplace filter weights of pixels are used to weight the initial Laplace convolution kernel, and the The convolution kernel for Laplacian filtering of pixels:

根据对第个像素点进行拉普拉斯滤波的卷积核,对第个像素点进行拉普拉斯滤波,由于拉普拉斯滤波作为一种公知的现有技术,故在本实施例不再进行赘述。According to the The convolution kernel of the Laplace filter is used for the pixels. The Laplace filtering is performed on each pixel point. Since the Laplace filtering is a well-known prior art, it will not be described in detail in this embodiment.

需要说明的是,对于一个像素点若该像素点以及该像素点的局部范围内的其他像素点越具备肝癌组织的边缘像素点的特征,则越应该使该像素点的拉普拉斯卷积核中心的值增大,以强度该像素点的肝癌组织边缘细节,若该像素点以及该像素点的局部范围内的其他像素点越不具备肝癌组织的边缘像素点的特征,则越应该使该像素点的拉普拉斯卷积核中心的值减小,以避免增强失真的情况出现;通过对肝脏区域中所有像素点进行滤波,最终使肝脏区域中肝癌组织的边缘得到增强,使医生能够更好地获取肝癌组织。It should be noted that for a pixel point, if the pixel point and other pixels within the local range of the pixel point have the characteristics of the edge pixel point of liver cancer tissue, the value of the center of the Laplace convolution kernel of the pixel point should be increased to strengthen the edge details of the liver cancer tissue of the pixel point; if the pixel point and other pixels within the local range of the pixel point do not have the characteristics of the edge pixel point of liver cancer tissue, the value of the center of the Laplace convolution kernel of the pixel point should be reduced to avoid enhancement distortion; by filtering all pixels in the liver area, the edge of the liver cancer tissue in the liver area is finally enhanced, so that doctors can better obtain liver cancer tissue.

至此,本实施例完成。At this point, this embodiment is completed.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. An artificial intelligence-based liver cancer pathological image enhancement method is characterized by comprising the following steps of:
collecting and preprocessing CT images of liver parts;
Acquiring a liver region in a CT image; acquiring a first liver cancer edge factor of each pixel point in the liver region according to the difference of gray values of each pixel point and the neighborhood pixel points;
presetting a local range, and obtaining local pixel points of each pixel point; combining the pixel points and local pixel points of the pixel points to obtain a plurality of combinations of the pixel points; acquiring a second liver cancer edge factor of the pixel point according to the gradient direction of the pixel point and the first liver cancer edge factor of the pixel point in all combinations of the pixel points;
Obtaining the Laplacian filtering weight of the pixel point according to the second liver cancer edge factor of the pixel point; acquiring a convolution kernel for carrying out Laplace filtering on the pixel points according to the Laplace filtering weights of the pixel points, and enhancing the CT image;
According to the difference of gray values of each pixel point and the neighborhood pixel points in the liver region, a first liver cancer edge factor of the pixel point is obtained, and the specific method comprises the following steps:
according to the first Combining all point characteristic values on the neighborhood circle of each pixel point with the firstThe gray value of each pixel point is obtainedThe specific calculation formula of the first liver cancer edge factor of each pixel point is as follows:
In the method, in the process of the invention, Represent the firstA first liver cancer edge factor of each pixel point; Represent the first The number of the neighborhood circle points of each pixel point; Represent the first Gray values of the individual pixels; Represent the first Neighborhood circle of each pixel pointA point feature value; Representing a hyperbolic tangent function;
Said first The specific acquisition method of the characteristic values of all points on the neighborhood circle of each pixel point comprises the following steps:
According to First, theNeighborhood circle of each pixel pointGray values of a first reference pixel point and a second reference pixel point of each point are obtainedNeighborhood circle of each pixel pointThe specific calculation formula of the characteristic values of the points is as follows:
In the method, in the process of the invention, Represent the firstNeighborhood circle of each pixel pointA point feature value; Represent the first Neighborhood circle of each pixel pointGray values of first reference pixel points of the points; Represent the first Neighborhood circle of each pixel pointGray values of second reference pixel points of the points; Represent the first The pixel point and the firstNeighborhood circle of each pixel pointThe angle of the connection line of the points; Representing a remainder function;
The said First, theNeighborhood circle of each pixel pointThe specific acquisition method of the first reference pixel point and the second reference pixel point of each point comprises the following steps:
for the first Neighborhood circle of each pixel pointA plurality of points, wherein the horizontal rightward direction is 0 DEG, and the vertical upward direction is 90 DEG; connect the firstThe pixel point and the firstNeighborhood circle of each pixel pointA point is obtained to obtain the firstThe pixel point and the firstNeighborhood circle of each pixel pointThe connection of the points and the acquisition of the angle of the connection are recorded as
Will be the firstAll pixel points in the four-neighborhood range of each pixel point are marked as the first pixel pointNeighborhood pixel point of each pixel point and is to be positioned at the first pixel pointRight side, upper side, left side and lower side of each pixel pointNeighborhood pixel points of each pixel point are respectively marked as the first pixel pointThe first neighborhood pixel point, the second neighborhood pixel point, the third neighborhood pixel point and the fourth neighborhood pixel point of the pixel points;
If it is Greater thanAnd less than or equal toWill be the firstThe first neighborhood pixel point and the second neighborhood pixel point of each pixel point are respectively marked as the first neighborhood pixel pointNeighborhood circle of each pixel pointA first reference pixel point and a second reference pixel point of each point; if it isGreater thanAnd less than or equal toWill be the firstThe second neighborhood pixel point and the third neighborhood pixel point of each pixel point are marked as the second neighborhood pixel pointNeighborhood circle of each pixel pointA first reference pixel point and a second reference pixel point of each point; if it isGreater thanAnd less than or equal toWill be the firstThe third neighborhood pixel point and the fourth neighborhood pixel point of each pixel point are marked as the fourth neighborhood pixel pointNeighborhood circle of each pixel pointA first reference pixel point and a second reference pixel point of each point; if it isGreater thanAnd less than or equal toWill be the firstA fourth adjacent pixel point and a first adjacent pixel point of each pixel point are marked as the firstNeighborhood circle of each pixel pointA first reference pixel point and a second reference pixel point of each point;
Said first The specific acquisition method of the neighborhood circle of each pixel point comprises the following steps:
in the first place The center of each pixel point is used as the center of a circle, and a circle with any radius is made and marked as the firstNeighborhood circles of the pixel points;
The method for obtaining the second liver cancer edge factor of the pixel point according to the gradient direction of the pixel point and the first liver cancer edge factor of the pixel point in all combinations of the pixel point comprises the following specific steps:
for the first The first pixel pointCombinations of (a) and (b)The first pixel pointThe pixel points in the combinations are paired pairwise to obtain the first pixel pointThe first pixel pointA plurality of pixel point pairs in the plurality of combinations;
for the first The first pixel pointIn the first combinationA pixel point pair is used for calculating the firstThe first pixel pointIn the first combinationCosine similarity of gradient direction between two pixels in each pixel pair is marked as the firstThe first pixel pointIn the first combinationSimilarity values for the pairs of pixels;
Will be for the first The first pixel pointThe average value of the similarity values of all pixel point pairs in each combination is recorded as the firstThe first pixel pointSimilarity values for each combination;
according to the first The first pixel pointCharacteristic values of each combinationThe first pixel pointThe first liver cancer edge factor of each pixel point in each combination is obtainedThe first pixel pointThe liver cancer edge coefficients of each combination;
maximum liver cancer edge coefficient The combination of the pixel points is marked as the firstCombining the most similar edges of the pixel points and combining the first pixel pointLiver cancer edge coefficient of the most similar edge combination of each pixel point is used as the firstA second liver cancer edge factor of each pixel point;
The acquisition of the first The first pixel pointThe specific calculation method of the liver cancer edge coefficients comprises the following steps:
In the method, in the process of the invention, Represent the firstThe first pixel pointThe liver cancer edge coefficients of each combination; Represent the first The first pixel pointSimilarity values for each combination; representing a preset window side length; Represent the first The first pixel pointIn the first combinationA first liver cancer edge factor of each pixel point; Representing a maximum minimum normalization function.
2. The method for enhancing liver cancer pathology image based on artificial intelligence according to claim 1, wherein a local range is preset, and local pixel points of each pixel point are obtained; combining the pixel points and local pixel points of the pixel points to obtain a plurality of combinations of the pixel points, wherein the specific method comprises the following steps:
for the first A first pixel pointConstructing one pixel point as centerDividing the window by the first windowAll the pixel points except the pixel point are marked as the first pixel pointLocal pixel points of the pixel points;
will be the first Pixel dot and slaveSelecting local pixel points of the pixel pointsThe pixel point is taken as the firstA combination of pixel points to obtain the firstSeveral combinations of pixels.
3. The liver cancer pathological image enhancement method based on artificial intelligence according to claim 1, wherein the laplace filter weight of the pixel point is obtained according to the second liver cancer edge factor of the pixel point; according to the Laplace filtering weight of the pixel point, a convolution kernel for carrying out Laplace filtering on the pixel point is obtained, and the specific method comprises the following steps:
for the first A pixel point is acquiredSecond liver cancer edge factors of all pixel points in the most similar edge combination of the pixel pointsThe average value of the second liver cancer edge factors of all the pixel points in the most similar edge combination of the pixel points is recorded as the firstThe liver cancer edge characteristic value of each pixel point is compared with the first curve tangent functionNormalizing the liver cancer edge characteristic value of each pixel point to obtain the first pixel pointThe Laplacian filtering weight of each pixel point is recorded as
Presetting an initial Laplace convolution kernel; according to the firstThe Laplace filtering weight of each pixel point weights the initial Laplace convolution kernel to obtain the second pixel pointA convolution kernel of Laplace filtering is carried out on each pixel point;
according to the pair of Convolution kernel of Laplace filtering is carried out on each pixel point, and the first pixel point is subjected toAnd carrying out Laplacian filtering on each pixel point.
4. The method for enhancing liver cancer pathology image based on artificial intelligence according to claim 1, wherein the method for acquiring liver region in CT image comprises the following specific steps:
and acquiring a liver region in the CT image by using a semantic segmentation algorithm.
CN202410704759.1A 2024-06-03 2024-06-03 Liver cancer pathological image enhancement method based on artificial intelligence Active CN118297812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410704759.1A CN118297812B (en) 2024-06-03 2024-06-03 Liver cancer pathological image enhancement method based on artificial intelligence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410704759.1A CN118297812B (en) 2024-06-03 2024-06-03 Liver cancer pathological image enhancement method based on artificial intelligence

Publications (2)

Publication Number Publication Date
CN118297812A CN118297812A (en) 2024-07-05
CN118297812B true CN118297812B (en) 2024-09-10

Family

ID=91687564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410704759.1A Active CN118297812B (en) 2024-06-03 2024-06-03 Liver cancer pathological image enhancement method based on artificial intelligence

Country Status (1)

Country Link
CN (1) CN118297812B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118658630B (en) * 2024-08-19 2024-11-12 长春中医药大学 A gynecological tumor resection auxiliary method and system based on three-dimensional model
CN118674718B (en) * 2024-08-22 2024-10-25 大石桥市中宁冶金矿产有限责任公司 Visual detection method and system for refractory material processing quality

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117745751A (en) * 2024-02-21 2024-03-22 中国人民解放军总医院第八医学中心 Pulmonary tuberculosis CT image segmentation method based on feature extraction

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115187592B (en) * 2022-09-08 2022-12-09 山东奥洛瑞医疗科技有限公司 Image segmentation method suitable for nuclear magnetic resonance image
CN116883537B (en) * 2023-09-06 2023-12-01 微山县人民医院 Image enhancement-based common surgical image acquisition method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117745751A (en) * 2024-02-21 2024-03-22 中国人民解放军总医院第八医学中心 Pulmonary tuberculosis CT image segmentation method based on feature extraction

Also Published As

Publication number Publication date
CN118297812A (en) 2024-07-05

Similar Documents

Publication Publication Date Title
CN118297812B (en) Liver cancer pathological image enhancement method based on artificial intelligence
CN109461495B (en) Medical image recognition method, model training method and server
US11508059B2 (en) Methods and systems for detecting a centerline of a vessel
WO2021129323A1 (en) Ultrasound image lesion describing method and apparatus, computer device, and storage medium
CN102800089B (en) Main carotid artery blood vessel extraction and thickness measuring method based on neck ultrasound images
CN106909947B (en) Mean Shift algorithm-based CT image metal artifact elimination method and system
Liu et al. Automatic lung segmentation based on image decomposition and wavelet transform
CN116993628B (en) A CT image enhancement system for tumor radiofrequency ablation guidance
CN117422628B (en) Optimized enhancement method for cardiac vascular ultrasonic examination data
CN105488781A (en) Dividing method based on CT image liver tumor focus
CN116580068B (en) Multi-mode medical registration method based on point cloud registration
CN118333893B (en) A preoperative vascular assessment method for free flap surgery
Yin et al. A robust method for segmenting pectoral muscle in mediolateral oblique (MLO) mammograms
CN116342591B (en) Visual analysis method for building parameters
CN117218200A (en) Bone tumor focus positioning method and device based on accurate recognition
CN114757953B (en) Medical ultrasonic image recognition method, equipment and storage medium
WO2020140380A1 (en) Method and device for quickly dividing optical coherence tomography image
CN111223090A (en) Identification system of tumor image in human lung CT image
CN112529900B (en) Method, device, terminal and storage medium for matching ROI in mammary gland image
CN118570204A (en) Medical image analysis system based on artificial intelligence
CN116128774B (en) A data enhancement processing method for gastric spiral CT
CN107240114A (en) A kind of semi-automatic medical image cutting method based on a distance function shape constraining
CN118037752A (en) A method and system for right ventricular myocardial segmentation based on echocardiography
CN113658193B (en) Liver CT image tumor segmentation method based on information fusion
CN109493351A (en) The system that liver segmentation is carried out using probability map and level set to CT image

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240820

Address after: 110000 No. 155 North Nanjing street, Heping District, Liaoning, Shenyang

Applicant after: THE FIRST HOSPITAL OF CHINA MEDICIAL University

Country or region after: China

Address before: Floor 2, Gate 7, No. 66 Nanjing South Street, Heping District, Shenyang City, Liaoning Province, 110000

Applicant before: Shenyang Hongqi Health Management Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant