[go: up one dir, main page]

CN108230306A - Eyeground color picture blood vessel and arteriovenous recognition methods - Google Patents

Eyeground color picture blood vessel and arteriovenous recognition methods Download PDF

Info

Publication number
CN108230306A
CN108230306A CN201711457489.5A CN201711457489A CN108230306A CN 108230306 A CN108230306 A CN 108230306A CN 201711457489 A CN201711457489 A CN 201711457489A CN 108230306 A CN108230306 A CN 108230306A
Authority
CN
China
Prior art keywords
image
blood vessel
features
arteriovenous
picture
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
CN201711457489.5A
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.)
Sun Yat Sen University
Zhongshan Ophthalmic Center
Original Assignee
Sun Yat Sen University
Zhongshan Ophthalmic Center
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 Sun Yat Sen University, Zhongshan Ophthalmic Center filed Critical Sun Yat Sen University
Priority to CN201711457489.5A priority Critical patent/CN108230306A/en
Publication of CN108230306A publication Critical patent/CN108230306A/en
Pending legal-status Critical Current

Links

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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2413Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on distances to training or reference patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/181Segmentation; Edge detection involving edge growing; involving edge linking
    • 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/10004Still image; Photographic image
    • 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/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • G06T2207/20032Median filtering
    • 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/30041Eye; Retina; Ophthalmic

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Radiology & Medical Imaging (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a kind of eyeground color picture blood vessel and arteriovenous recognition methods.Automatic positioning and measurement to each position in the color picture of eyeground, achieve the effect that disease prescreening, the picture Automatic sieve for having lesion suspicion is selected, can identification accurately and effectively be marked to vessel profile and vascular arteriovenous, then by calculating the diameter ratio of quiet artery, working doctor amount can be reduced with diseases such as auxiliary diagnosis retinal vessels;And its result is independent of doctors experience, more objective, can effectively assist a physician and carry out the diagnosis of disease, realizes the purpose of remote medical consultation with specialists.

Description

眼底彩照血管及动静脉的识别方法Identification method of blood vessels and arteries and veins in fundus color photographs

技术领域technical field

本发明涉及一种眼底彩照血管及动静脉的识别方法。The invention relates to a method for identifying blood vessels and arteries and veins in fundus color photographs.

背景技术Background technique

为了迅速大批量地进行眼底彩照中的血管及动静脉的识别和边界绘制,以能够准确有效地对血管轮廓与与血管动静脉进行标记识别,然后通过计算静动脉的直径比,可以辅助诊断视网膜血管等疾病。在临床中,由于边远山区、基层医院眼科医生和眼底相关阅片人员等人力所限,如对大量的眼底彩照一张一张机械性地进行审阅,工作内容繁重、单一重复、且效率不高,浪费大量的宝贵的人力资源。现有眼底彩照自动识别系统也有涉及到眼底图像自动识别分区方法,但却不是进行眼底结构位置的精确定位,病变识别。此外现有,方法多是利用网上的标准图片进行参照比较识别,然而现实临床中的眼底彩照图片并不是标准图片,甚至包括很多聚焦、明暗都有问题的图片,目前很多系统都是直接将图片进行识别,而不分图片质量,因为网上的标准库都是质量较好的图片,而且数量都很少。In order to identify and draw the boundaries of blood vessels and arteries and veins in fundus color photos quickly and in large quantities, so as to accurately and effectively identify the outline of blood vessels and mark identification with blood vessels, arteries and veins, and then calculate the diameter ratio of veins and arteries to assist in the diagnosis of the retina diseases such as blood vessels. In clinical practice, due to the limited manpower of ophthalmologists in remote mountainous areas, grass-roots hospitals, and fundus-related film readers, such as mechanically reviewing a large number of fundus color photos one by one, the work content is heavy, single and repetitive, and the efficiency is not high. , wasting a lot of valuable human resources. The existing fundus color photo automatic recognition system also involves the automatic recognition and partition method of the fundus image, but it does not perform precise positioning of the fundus structure position and lesion identification. In addition, most of the existing methods use standard pictures on the Internet for reference comparison and identification. However, the color fundus pictures in clinical practice are not standard pictures, and even include many pictures with problems with focus and brightness. At present, many systems directly use the pictures Recognition, regardless of the quality of the picture, because the standard library on the Internet is all pictures of better quality, and the number is very small.

发明内容Contents of the invention

本发明的首要目的是提供一种眼底彩照血管及动静脉的识别方法。对眼底彩照中各部位的自动定位以及测量,达到疾病预筛选的效果,将有病变嫌疑的图片自动筛选出,以能够准确有效地对血管轮廓与与血管动静脉进行标记识别,然后通过计算静动脉的直径比,可以辅助诊断视网膜血管等疾病,减少医生工作量;并且其结果不依赖于医生经验,更加客观,能够有效的协助医生进行疾病的诊断,实现远程会诊的目的。The primary purpose of the present invention is to provide a method for identifying blood vessels and arteries and veins in fundus color photographs. The automatic positioning and measurement of each part in the fundus color photo achieves the effect of disease pre-screening, and automatically screens out pictures with suspected lesions, so as to accurately and effectively mark and identify the outline of blood vessels and blood vessels. The diameter ratio of the artery can assist in the diagnosis of diseases such as retinal vessels and reduce the workload of doctors; and the results do not depend on the doctor's experience and are more objective, which can effectively assist doctors in the diagnosis of diseases and achieve the purpose of remote consultation.

为解决上述技术问题,本发明所采用的技术方案是:In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is:

本发明提供的眼底彩照血管及动静脉的识别方法具有以下特点:The method for identifying blood vessels and arteries and veins in fundus color photographs provided by the present invention has the following characteristics:

1、通过将形态学方法与机器学习方法相结合,将定位的区域通过形态学方法进行初步处理,然后进行机器学习方法预测,最后再通过形态学方法精确定位;1. By combining the morphological method with the machine learning method, the localized area is preliminarily processed by the morphological method, then predicted by the machine learning method, and finally accurately positioned by the morphological method;

2、对医院或社区采集的大量患者的眼底彩照进行自动识别,以辅助医生对大量的视网膜血管等疾病病变筛查及体检中心常规眼底彩照图片进行诊断;2. Automatically identify the color fundus photos of a large number of patients collected in hospitals or communities, to assist doctors in the screening of a large number of diseases such as retinal vessels and the diagnosis of routine fundus color photos in physical examination centers;

3、利用大量张真实眼底彩照使模型充分地学习各种情况下图像数据的特征,使得判断更为精确,并且有更好的容错性,同时系统首先进行眼底彩照预处理以及图像质量的鉴别,以保证本系统在图片质量参差不齐的情况下,也能有很好的识别能力,有普适性。3. Using a large number of real fundus color photos to enable the model to fully learn the characteristics of image data in various situations, making the judgment more accurate and having better fault tolerance. At the same time, the system first performs preprocessing of the fundus color photos and identification of image quality. In order to ensure that the system can also have a good recognition ability and universal applicability even when the picture quality is uneven.

附图说明Description of drawings

构成本申请的一部分的附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings constituting a part of this application are used to provide further understanding of the present invention, and the schematic embodiments and descriptions of the present invention are used to explain the present invention, and do not constitute an improper limitation of the present invention. In the attached picture:

图1为本发明实施例选择的图像示例;Fig. 1 is the image example that the embodiment of the present invention selects;

图2为本发明实施例所选择图像的灰度分布;Fig. 2 is the gray scale distribution of the selected image of the embodiment of the present invention;

图3为本发明实施例血管识别时大致的血管轮廓示意图;FIG. 3 is a schematic diagram of a rough outline of a blood vessel during blood vessel identification according to an embodiment of the present invention;

图4为本发明实施例血管识别时去毛刺处理后的血管轮廓示意图;4 is a schematic diagram of a blood vessel outline after deburring treatment during blood vessel identification according to an embodiment of the present invention;

图5为本发明实施例血管识别时血管轮廓示意图断点拟合示意图;Fig. 5 is a schematic diagram of breakpoint fitting of a schematic diagram of a blood vessel contour during blood vessel identification according to an embodiment of the present invention;

图6为本发明实施例血管识别时确定血管边界示意图;Fig. 6 is a schematic diagram of determining a blood vessel boundary during blood vessel identification according to an embodiment of the present invention;

图7为本发明实施例血管识别效果示意图;Fig. 7 is a schematic diagram of the blood vessel recognition effect of the embodiment of the present invention;

图8为本发明实施例眼底图像动静脉识别结果示意图。Fig. 8 is a schematic diagram of an arteriovenous recognition result of a fundus image according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

实施例Example

一种眼底彩照血管及动静脉的识别方法,包括以下步骤:A method for identifying blood vessels and arteries and veins in fundus color photos, comprising the following steps:

图片质量检测:Image quality inspection:

一、特征提取:1. Feature extraction:

利用图像的骨架,提取其纹理特征,RGB,三个图层,每个图层提取15个特征。Using the skeleton of the image, extract its texture features, RGB, three layers, each layer extracts 15 features.

首先使用canny算子对图像进行边缘检测,再用中值滤波进行去噪处理,之后用预处理过的图,计算边缘总像素点的个数、边缘的总周长、边缘区域的最大高度、最大宽度、奇数链的链码数目(边缘不连续的点的数目)、目标面积、矩形度、伸长度。First use the canny operator to detect the edge of the image, and then use the median filter to denoise, and then use the preprocessed image to calculate the number of total pixels on the edge, the total perimeter of the edge, the maximum height of the edge area, Maximum width, number of chain codes for odd chains (number of points with discontinuous edges), target area, rectangularity, elongation.

再接着提取图像的七个不变矩特征:Then extract the seven invariant moment features of the image:

The sum of horizontal and vertical directed variance,moredistributed towards horizontal and vertical axes,the values are enlarged. The sum of horizontal and vertical directed variance, more distributed towards horizontal and vertical axes, the values are enlarged.

The covariance value of vertical and horizontal axes when thevariance intensity of vertical axis and horizontal axis were similar. The covariance value of vertical and horizontal axes when the variance intensity of vertical and horizontal axes were similar.

The result emphasizing the values inclined to left/right andupper/lower axes. The result emphasizing the values inclined to left/right and upper/lower axes.

The result emphasizing the values counterbalancing to left/rightand upper/lower axes. The result emphasizing the values counterbalancing to left/right and upper/lower axes.

The extraction of values invariant against size,rotation,and location. The extraction of values invariant against size, rotation, and location.

根据清晰度的判断,RGB,每个图层提取5个判断清晰度的特征。According to the judgment of sharpness, RGB, each layer extracts 5 features for judging sharpness.

a)灰度熵:a) Gray entropy:

它反映了图像中平均信息量的多少。图像的一维熵表示图像中灰度分布的聚集特征所包含的信息量,令pi表示图像中灰度值为i的像素所占的比例,则定义灰度图像的一元灰度熵为:It reflects the average amount of information in the image. The one-dimensional entropy of the image represents the amount of information contained in the aggregation features of the grayscale distribution in the image, and let p i represent the proportion of pixels with a grayscale value i in the image, then the unary grayscale entropy of the grayscale image is defined as:

b)Brenner梯度函数b) Brenner gradient function

Brenner梯度函数是最简单的梯度评价函数,它只是简单的计算相邻两个像素灰度差的平方,该函数定义如下:The Brenner gradient function is the simplest gradient evaluation function. It simply calculates the square of the gray difference between two adjacent pixels. The function is defined as follows:

f(x,y)表示图像f对应像素点(x,y)的灰度值。f(x, y) represents the gray value of the pixel point (x, y) corresponding to image f.

c)方差函数c) variance function

因为清晰聚焦的图像有着比模糊图像更大的灰度差异,可以将方差函数作为评价函数:Because sharply focused images have larger grayscale differences than blurred images, the variance function can be used as an evaluation function:

其中,为整幅图像的平均灰度值,该函数对噪声比较敏感,图像画面越纯净,函数值越小。in, is the average gray value of the entire image, the function is sensitive to noise, the purer the image, the smaller the function value.

d)能量梯度函数d) Energy gradient function

e)梯度函数e) Gradient function

3、灰度直方图256个特征。3. Gray histogram with 256 features.

现将RGB如转换成灰度图,Gray=0.29900*R+0.58700*G+0.11400*B,然后利用灰度直方图提取特征。Now convert RGB into a grayscale image, Gray=0.29900*R+0.58700*G+0.11400*B, and then use the grayscale histogram to extract features.

灰度直方图是关于灰度级分布的函数,是对图像中灰度级分布的统计。灰度直方图是将数字图像中的所有像素,按照灰度值的大小,统计其出现的频率。0-255个灰度值的频率,共提取256个特征。The gray level histogram is a function of the gray level distribution, which is the statistics of the gray level distribution in the image. The gray histogram is to count all the pixels in the digital image according to the size of the gray value and count the frequency of occurrence. The frequency of 0-255 gray values, a total of 256 features are extracted.

4、将RGB空间进行转换,提取出色彩与纹理特征256个。4. Transform the RGB space and extract 256 color and texture features.

利用论文《Color and texture descriptors》将原本的RGB空间转换为HSV空间,计算色彩直方图,得到有256个特征。Using the paper "Color and texture descriptors" to convert the original RGB space to HSV space, calculate the color histogram, and get 256 features.

至此,所需的全部特征全部提取完毕,然后利用提取出来的所有特征作为自变量,图片质量的好坏作为因变量(0或1),对图片质量进行预测。这里我们采用随机森林模型进行预测。So far, all the required features have been extracted, and then use all the extracted features as independent variables, and the quality of the picture as the dependent variable (0 or 1) to predict the picture quality. Here we use a random forest model for prediction.

一、机器学习进行预测:1. Machine learning for prediction:

随机森林算法:Random Forest Algorithm:

1、给定训练数据集d=(X,y),其中X为提取出来的特征,y为0,1分类变量(0表示图片质量差,1表示图片质量好)。固定m≤p(m为随机抽取出的特征个数,p为特征总个数)以及树(决策树算法)的个数B。1. Given a training data set d=(X, y), where X is the extracted feature, and y is a categorical variable of 0 and 1 (0 means poor picture quality, 1 means good picture quality). Fixed m≤p (m is the number of randomly extracted features, p is the total number of features) and the number B of trees (decision tree algorithm).

2、对每个b=1,2,...,B,做如下步骤:2. For each b=1, 2, ..., B, do the following steps:

a)对训练数据d通过随机从n个样本中抽取n次,构造bootstrap训练集 a) Construct a bootstrap training set by randomly sampling n times from n samples for training data d

b)使用中的数据构造最大深度的树随机从p个变量中抽取m个进行分裂;b) use Construct a tree of maximum depth from the data in Randomly select m from p variables for splitting;

c)储存树与bootstrap样本的信息。c) Store tree and bootstrap sample information.

3、对任意预测点x0,进行随机森林的拟合与预测。对每棵树都会预测出一个类别,这样由于有B棵树,所以可以预测出B个01类别。最终的预测结果,就是B个类别中,出现次数最多的类别(0或1)。3. For any prediction point x 0 , perform random forest fitting and prediction. for each tree A category will be predicted, so since there are B trees, B 01 categories can be predicted. The final prediction result is the category with the most occurrences (0 or 1) among the B categories.

由于真实图片中存在着大量质量不好的图片,所以通过图片质量检测先将这批质量不好的图片筛选出来,只针对图片质量过关的眼底图像进行后续处理。Since there are a large number of poor-quality pictures in real pictures, these pictures with poor quality are first screened out through the picture quality inspection, and only the fundus images that pass the picture quality are subjected to subsequent processing.

图像预处理:Image preprocessing:

预处理采用直方图均衡化。首先在所有的图像中选择一张识别效果最好的,如图1所示,并提取其RGB三个轨道的灰度分布,如图2所示。将其作为标准图。Preprocessing uses histogram equalization. Firstly, select one of the images with the best recognition effect, as shown in Figure 1, and extract the gray distribution of its RGB three tracks, as shown in Figure 2. Make it a standard graph.

视盘识别:Video disc recognition:

视盘识别主要分为三个主要步骤:初定位(ROI提取),精确定位,平滑拟合Optic disc recognition is mainly divided into three main steps: initial positioning (ROI extraction), precise positioning, and smooth fitting

初定位:首先基于视盘具有高亮的特点,其在红色轨道上最为明显,我们首先选取红色轨道进行分析。具体来说红绿轨道均能肉眼识别视盘位置,红色轨道更为明显。感兴趣区域(ROI)提取主要是利用自适应阈值分割的方法。首先将将整张图片更亮的区域用阈值分割的方法提取出来,其余较暗区域利用均值填补。修改后的图片再次进行阈值切分。通过多次迭代,将较亮区域面积一步步减小。当ROI面积事先确定的阈值后,停止迭代。然后再对提取出的高亮区域进行筛选。然后提取出该ROI的中心并截取ROI以供下一步分析。在ROI位置确定的方法上,目前流行的方法类似的还有简单阈值切割法:Optic cup and disclocalization for Detection of glaucoma usingMatlab,Hanamant M.Havagondi,2Mahesh S.Kumbhar.Kaiser Window定位法:Blood vessel inpainting based techniquefor efficient localization andsegmentationof optic disc in digital fundusimages,Biomedical Signal Processing and Control 25(2016)108–117等。相比较于其他方法,我们优点在于:单纯利用红轨道信息,血管影响比较小。对于边界曝光过度的照片。本发明所用方法可以很快去掉这部分影响,不会对ROI提取造成困扰。而对于一部分图像本身高亮区域过多(或者高度病变,视盘亮度不够),这些质量不是很高,ROI定位不准的图片程序会自动提示质量问题,不进行后续的分析。Preliminary positioning: First, based on the high brightness of the optic disc, which is most obvious on the red track, we first select the red track for analysis. Specifically, both the red and green tracks can identify the position of the optic disc with the naked eye, and the red track is more obvious. The region of interest (ROI) extraction mainly utilizes the method of adaptive threshold segmentation. Firstly, the brighter area of the whole picture is extracted by threshold segmentation, and the rest of the darker area is filled with the mean value. The modified image is thresholded again. Through multiple iterations, the area of the brighter area is reduced step by step. When the ROI area exceeds a predetermined threshold, the iteration is stopped. Then filter the extracted highlighted regions. Then extract the center of the ROI and intercept the ROI for further analysis. In the method of determining the ROI position, the current popular method is similar to the simple threshold cutting method: Optic cup and disclocalization for Detection of glaucoma using Matlab, Hanamant M.Havagondi, 2Mahesh S.Kumbhar. Kaiser Window positioning method: Blood vessel inpainting based technique for efficient localization and segmentation of optic disc in digital fundus images, Biomedical Signal Processing and Control 25(2016) 108–117 et al. Compared with other methods, our advantage lies in: only using the red track information, the influence of blood vessels is relatively small. For photos with overexposed borders. The method used in the present invention can quickly remove this part of the influence without causing trouble to ROI extraction. However, for some images with too many highlighted areas (or high-level lesions and insufficient brightness of the optic disc), the quality of these images is not very high, and the image program will automatically prompt quality problems without subsequent analysis.

精确定位与平滑拟合:Precise positioning and smooth fitting:

在提取出的ROI中,主要利用形态学处理方法先去掉噪音影响,然后对于图像进行阈值分割,可以得到相对不光滑的边界位置。然后对于边界位置进行椭圆拟合(最小外接椭圆),拟合出一个边界参数方程In the extracted ROI, the morphological processing method is mainly used to remove the noise effect first, and then the image is thresholded to obtain a relatively rough boundary position. Then ellipse fitting (minimum circumscribed ellipse) is performed on the boundary position, and a boundary parameter equation is fitted

x=a*cos(t)*cos(θ)-b*sin(t)*sin(θ)+x0 x=a*cos(t)*cos(θ)-b*sin(t)*sin(θ)+x 0

y=a*cos(t)*sin(θ)-b*sin(t)*cos(θ)+y0 y=a*cos(t)*sin(θ)-b*sin(t)*cos(θ)+y 0

其中θ为椭圆倾斜角,a,b为长短半轴,t为参数,x0,y0是椭圆中心坐标。最后将边界方程绘制在原图上。目前关于视盘边界定位方面,主要还有固定阈值分割和区域生长等算法。固定阈值分割稳定性最差,边界识别不准,而我们的自适应阈值方法则根据视盘面积自动选择最优阈值,不会造成视盘边界的明显误判。而区域生长算法则对于初始种子点选取有一定要求,并且可能会造成识别区域偏小的问题。Where θ is the inclination angle of the ellipse, a and b are the semi-major and minor axes, t is the parameter, x 0 and y 0 are the coordinates of the center of the ellipse. Finally, the boundary equations are drawn on the original graph. At present, there are mainly algorithms such as fixed threshold segmentation and region growing for optic disc boundary positioning. The fixed threshold has the worst segmentation stability and inaccurate boundary recognition, while our adaptive threshold method automatically selects the optimal threshold according to the optic disc area, which will not cause obvious misjudgment of the optic disc boundary. The region growing algorithm has certain requirements for the selection of initial seed points, and may cause the problem that the recognition area is too small.

血管识别:Vessel Identification:

一,读入图片。One, read in the picture.

二,对图片做的第一个处理是去掉圆形眼底图片周围的黑色边框。Second, the first processing done on the image is to remove the black border around the circular fundus image.

三,图片处理Three, image processing

对图片处理,得到大致的血管轮廓。首先,预处理去噪音,之后中值滤波、阈值去噪,结果如图3所示;The image is processed to obtain a rough outline of the blood vessel. First, preprocessing to remove noise, followed by median filtering and threshold denoising, the results are shown in Figure 3;

接着,对预处理得到的血管,进行多次腐蚀操作,得到血管的大致分布范围,这时由于部分图片会因为拍摄角度,光线等原因造成的图片局部出现类似于暗点的图片质量原因,所以这一步得到的图片可能会出现血管在某一处断裂的情况,所以接着对得到的不连续的断裂的血管进行像素链接及对角线填充,得到连续的血管。然后对得到的粗糙的血管进行去毛刺处理,到血管的大致轮廓,结果如图4所示。Then, perform multiple corrosion operations on the pre-processed blood vessels to obtain the approximate distribution range of the blood vessels. At this time, due to the shooting angle, light and other reasons, some of the pictures may locally appear similar to dark spots in the picture quality, so The picture obtained in this step may have broken blood vessels at a certain place, so then pixel linking and diagonal filling are performed on the obtained discontinuous broken blood vessels to obtain continuous blood vessels. Then, deburring is performed on the obtained rough blood vessel to obtain the rough outline of the blood vessel, and the result is shown in Fig. 4 .

四,血管识别4. Vascular Identification

接着血管识别是把每一段血管看做一个个体,识别每一段血管。Then blood vessel identification is to treat each segment of blood vessel as an individual and identify each segment of blood vessel.

主要做法是首先找到血管的中心线。因为初步识别血管的轮廓不准,但通过腐蚀操作可以找到相对来说比较准确的血管中心线。这一步就已经把血管各段分开了,除去血管的连接点,每一段都是连续的线。然后利用算法对断点进行拟合,如图5所示。The main approach is to first find the centerline of the vessel. Because the initial identification of the outline of the blood vessel is not accurate, but the relatively accurate centerline of the blood vessel can be found through the corrosion operation. This step has already separated the segments of the blood vessels, except for the connection points of the blood vessels, each segment is a continuous line. Then use the algorithm to fit the breakpoints, as shown in Figure 5.

中心线选好后,利用中心线两侧向外的灰度梯度变化,确定血管边界,如图6所示。After the centerline is selected, use the outward gray gradient changes on both sides of the centerline to determine the boundaries of blood vessels, as shown in Figure 6.

最后将识别的血管画在原图片上,如图7所示。Finally, draw the identified blood vessels on the original picture, as shown in Figure 7.

血管动静脉识别:Blood vessel arteriovenous recognition:

动静脉识别是在血管识别和实盘识别的基础上,利用眼底图片及对应的标记好动静脉的血管图片行训练而成的。Arteriovenous recognition is based on blood vessel recognition and solid disk recognition, using fundus pictures and corresponding blood vessel pictures with marked arteries and veins for training.

动静脉识别我们利用了机器学习的方法。For arteriovenous recognition, we used machine learning methods.

训练是运用机器学习的方法,首先识别的对象是血管,需要识别出动静脉,所以要选定机器识别的图片特征作为识别标准。训练所需要的图片特征首先从血管所在的位置入手。根据血管所在的位置,可以将该区域以血管壁为边界,分为血管外侧,血管边界,血管内侧三个子区域。然后对这三个子区域分别提取灰度梯度变化和纹理变化两个大方面的特征。这类特征包括每一处像素点所在小区域(以每个像素点为中心的3*3区域)的灰度梯度变化的平均数,中位数,众数,及纹理特征的模式,也包括这些特征的线性及非线性组合共141个训练特征进行训练。这里选择SVM(支持向量机)进行训练,得到我们需要的分类器。Training is the use of machine learning methods. The first object to be recognized is blood vessels, and arteries and veins need to be recognized. Therefore, the image features recognized by the machine must be selected as the recognition standard. The image features required for training start with the location of the blood vessels. According to the location of the blood vessel, the region can be divided into three sub-regions: the outer side of the blood vessel, the border of the blood vessel, and the inner side of the blood vessel, taking the blood vessel wall as the boundary. Then, the features of gray gradient change and texture change are extracted from these three sub-regions respectively. This type of feature includes the average, median, mode, and pattern of texture features of the gray gradient change in the small area where each pixel is located (3*3 area centered on each pixel), and also includes A total of 141 training features were trained using linear and nonlinear combinations of these features. Here we choose SVM (Support Vector Machine) for training to get the classifier we need.

动静脉识别的区域选择血管较粗,交叉较少的区域进行识别。所以选择以视盘为圆心一定距离内的区域作为目标区域。The area for arteriovenous identification is selected to identify areas with thicker blood vessels and fewer crossings. Therefore, an area within a certain distance with the optic disc as the center is selected as the target area.

识别时将图片输入,然后识别出目标区域的血管,然后在血管的外侧,血管壁,内测分别提取我们训练所选择的141个特征,然后用训练得到的机器学习分类器进行识别,得到结果,并将结果展示在原图片上,结果如图8所示。Input the picture when identifying, and then identify the blood vessels in the target area, and then extract the 141 features selected by our training on the outside of the blood vessels, the blood vessel wall, and the internal test, and then use the trained machine learning classifier to identify and get the result , and display the result on the original picture, as shown in Figure 8.

识别的过程中对图片的处理与血管识别时对图片的处理基本相同,这里不进行赘述。The image processing in the identification process is basically the same as that in blood vessel identification, and will not be repeated here.

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

Claims (5)

1.一种眼底彩照血管及动静脉的识别方法,其特征在于包括以下步骤:1. a method for identifying fundus color photos of blood vessels and arteries and veins, characterized in that it may further comprise the steps: 图片质量检测,输入原始图像,进行图像特征的提取,并进行训练,对图片质量进行预测,检测出图片质量过关的眼底图像进行后续处理;Image quality detection, input the original image, extract image features, and conduct training, predict the image quality, detect the fundus image with acceptable image quality for subsequent processing; 图像预处理,在所有的图像中选择一张识别效果最好的,并提取其RGB三个轨道的灰度分布,将其作为标准图;Image preprocessing, select one of the images with the best recognition effect, and extract the gray distribution of its RGB three tracks, and use it as a standard image; 读入图片,去掉圆形眼底图片周围的边框;Read in the picture and remove the border around the circular fundus picture; 图片处理,先处理去噪音,之后中值滤波、阈值去噪处理,得到大致的血管轮廓;Image processing, denoising first, followed by median filtering and threshold denoising to obtain a rough outline of blood vessels; 得到血管轮廓,预处理得到的血管轮廓,进行多次腐蚀操作,得到血管的大致分布范围,接着对得到的不连续的断裂的血管进行像素链接及对角线填充,得到连续的血管,然后对得到的粗糙的血管进行去毛刺处理,到血管轮廓;Obtain the vessel outline, preprocess the obtained vessel outline, perform multiple erosion operations to obtain the approximate distribution range of the vessel, and then perform pixel linking and diagonal filling on the obtained discontinuous broken vessels to obtain continuous vessels, and then The obtained rough blood vessels are deburred to the outline of the blood vessels; 血管识别,首先找到血管的中心线,利用中心线两侧向外的灰度梯度变化,确定血管边界,最后将识别的血管画在原图片上。For blood vessel recognition, first find the centerline of the blood vessel, use the outward gray gradient changes on both sides of the centerline to determine the boundary of the blood vessel, and finally draw the recognized blood vessel on the original image. 2.如权利要求1所述的眼底彩照血管及动静脉的识别方法,其特征在于所述图像特征的提取包括以下步骤:2. the recognition method of fundus color photograph blood vessel and arteriovenous as claimed in claim 1, is characterized in that the extraction of described image feature comprises the following steps: 首先使用canny算子对图像进行边缘检测,再用中值滤波进行去噪处理,之后用预处理过的图,计算边缘总像素点的个数、边缘的总周长、边缘区域的最大高度、最大宽度、奇数链的链码数目、目标面积、矩形度、伸长度,然后提取图像的七个不变矩特征;First use the canny operator to detect the edge of the image, and then use the median filter to denoise, and then use the preprocessed image to calculate the number of total pixels on the edge, the total perimeter of the edge, the maximum height of the edge area, The maximum width, the number of chain codes of odd chains, the target area, rectangularity, elongation, and then extract the seven invariant moment features of the image; 每个图层提取5个判断清晰度的特征:灰度熵、Brenner梯度函数、方差函数、能量梯度函数、梯度函数;Each layer extracts 5 features for judging clarity: gray entropy, Brenner gradient function, variance function, energy gradient function, gradient function; 利用灰度直方图提取特征;Use the gray histogram to extract features; 将原本的RGB空间转换为HSV空间,计算色彩直方图。Convert the original RGB space to HSV space and calculate the color histogram. 3.如权利要求1所述的眼底彩照血管及动静脉的识别方法,其特征在于所述对图片质量进行预测包括以下步骤:3. the identification method of fundus color photograph blood vessel and arteriovenous as claimed in claim 1, is characterized in that described picture quality is predicted and comprises the following steps: 1)给定训练数据集d=(X,y),其中x为提取出来的特征,y为0、1分类变量,0表示图片质量差,1表示图片质量好,固定m≤p,m为随机抽取出的特征个数,p为特征总个数,以及决策树算法中树的个数B;1) Given a training data set d=(X,y), where x is the extracted feature, y is 0, 1 is a classification variable, 0 means poor picture quality, 1 means good picture quality, fixed m≤p, m is The number of features extracted randomly, p is the total number of features, and the number B of trees in the decision tree algorithm; 2)对每个b=1,2,…,B,做如下步骤:2) For each b=1,2,...,B, do the following steps: a)对训练数据d通过随机从n个样本中抽取n次,构造bootstrap训练集 a) Construct a bootstrap training set by randomly sampling n times from n samples for training data d b)使用中的数据构造最大深度的树随机从p个变量中抽取m个进行分裂;b) use Construct a tree of maximum depth from the data in Randomly select m from p variables for splitting; c)储存树与bootstrap样本的信息;c) store tree and bootstrap sample information; 3)对任意预测点X0,进行随机森林的拟合与预测,对每棵树都会预测出一个类别,这样由于有B棵树,所以可以预测出B个01类别,最终的预测结果,就是B个类别中,出现次数最多的类别。3) For any prediction point X 0 , perform random forest fitting and prediction, and for each tree A category will be predicted, so since there are B trees, B 01 categories can be predicted, and the final prediction result is the category with the most occurrences among the B categories. 4.如权利要求1所述的眼底彩照血管及动静脉的识别方法,其特征在于还包括血管动静脉识别步骤:4. the identification method of fundus color photograph blood vessel and arteriovenous as claimed in claim 1, is characterized in that also comprising blood vessel arteriovenous identification step: 选择以视盘为圆心一定距离内的区域作为目标区域,根据血管所在的位置,将该区域以血管壁为边界,分为血管外侧,血管边界,血管内侧三个子区域;Select the area within a certain distance with the optic disc as the center of the circle as the target area. According to the location of the blood vessel, the area is divided into three sub-areas: the outer side of the blood vessel, the border of the blood vessel, and the inner side of the blood vessel; 对这三个子区域分别提取灰度梯度变化和纹理变化两个大方面的特征;Two major features of gray gradient change and texture change are extracted from these three sub-regions respectively; 识别时将图片输入,然后识别出目标区域的血管,然后在血管的外侧,血管壁,内侧分别提取训练所选择的特征;Input the picture when identifying, and then identify the blood vessels in the target area, and then extract the features selected for training on the outside of the blood vessels, the blood vessel wall, and the inside; 用训练得到的机器学习分类器进行识别,得到结果,并将结果展示在原图片上。Use the trained machine learning classifier to identify, get the result, and display the result on the original picture. 5.如权利要求4所述的眼底彩照血管及动静脉的识别方法,其特征在于还包括视盘识别步骤:5. the identification method of fundus color photograph blood vessel and arteriovenous as claimed in claim 4, is characterized in that also comprising optic disc identification step: 初定位,首先将将整张图片更亮的区域用阈值分割的方法提取出来,其余较暗区域利用均值填补,修改后的图片再次进行阈值切分,通过多次迭代,将较亮区域面积一步步减小,当感兴趣区域面积事先确定的阈值后,停止迭代,再对提取出的高亮区域进行筛选,提取出该感兴趣区域的中心并截取以供下一步分析;For initial positioning, first extract the brighter area of the entire image by threshold segmentation, and fill the rest of the darker area with the mean value, and then perform threshold segmentation on the modified image again. When the area of the region of interest has reached the predetermined threshold, the iteration is stopped, and then the extracted highlighted region is screened, and the center of the region of interest is extracted and intercepted for further analysis; 精确定位与平滑拟合,利用形态学处理方法先去掉噪音影响,然后对于图像进行阈值分割以得到相对不光滑的边界位置,然后对于边界位置进行椭圆拟合,最后将边界方程绘制在原图上。Precise positioning and smooth fitting, use the morphological processing method to remove the influence of noise first, then threshold the image to obtain a relatively rough boundary position, then perform ellipse fitting on the boundary position, and finally draw the boundary equation on the original image.
CN201711457489.5A 2017-12-28 2017-12-28 Eyeground color picture blood vessel and arteriovenous recognition methods Pending CN108230306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711457489.5A CN108230306A (en) 2017-12-28 2017-12-28 Eyeground color picture blood vessel and arteriovenous recognition methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711457489.5A CN108230306A (en) 2017-12-28 2017-12-28 Eyeground color picture blood vessel and arteriovenous recognition methods

Publications (1)

Publication Number Publication Date
CN108230306A true CN108230306A (en) 2018-06-29

Family

ID=62648262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711457489.5A Pending CN108230306A (en) 2017-12-28 2017-12-28 Eyeground color picture blood vessel and arteriovenous recognition methods

Country Status (1)

Country Link
CN (1) CN108230306A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816637A (en) * 2019-01-02 2019-05-28 电子科技大学 A method for detecting hard exudate areas in fundus images
CN113303771A (en) * 2021-07-30 2021-08-27 天津慧医谷科技有限公司 Pulse acquisition point determining method and device and electronic equipment
CN115100222A (en) * 2022-08-24 2022-09-23 首都医科大学附属北京朝阳医院 Image processing method and device for separating artery and vein blood vessels, storage medium and terminal

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458772A (en) * 2011-04-07 2013-12-18 香港中文大学 Retinal image analysis method and device
CN104318565A (en) * 2014-10-24 2015-01-28 中南大学 Interactive method for retinal vessel segmentation based on bidirectional region growing of constant-gradient distance
CN104545792A (en) * 2014-12-31 2015-04-29 浙江大学 Arteriovenous retinal vessel optic disk positioning method of eye fundus image
CN105894490A (en) * 2015-11-05 2016-08-24 广西师范大学 Fuzzy integration multiple classifier integration-based uterine neck cell image identification method and device
CN105962881A (en) * 2016-07-26 2016-09-28 西安交通大学第附属医院 Blood vessel recognition method and device
CN106228566A (en) * 2016-08-15 2016-12-14 哈尔滨工业大学 Automatically detection and the recognition methods of retinal microaneurysm based on the loud analysis of gradient
CN107229937A (en) * 2017-06-13 2017-10-03 瑞达昇科技(大连)有限公司 Method and device for classifying retinal blood vessels
CN107248161A (en) * 2017-05-11 2017-10-13 江西理工大学 Retinal vessel extracting method is supervised in a kind of having for multiple features fusion
CN107480644A (en) * 2017-08-21 2017-12-15 吉林大学 The positioning of optic disk and dividing method, device and storage medium in eye fundus image

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458772A (en) * 2011-04-07 2013-12-18 香港中文大学 Retinal image analysis method and device
CN104318565A (en) * 2014-10-24 2015-01-28 中南大学 Interactive method for retinal vessel segmentation based on bidirectional region growing of constant-gradient distance
CN104545792A (en) * 2014-12-31 2015-04-29 浙江大学 Arteriovenous retinal vessel optic disk positioning method of eye fundus image
CN105894490A (en) * 2015-11-05 2016-08-24 广西师范大学 Fuzzy integration multiple classifier integration-based uterine neck cell image identification method and device
CN105962881A (en) * 2016-07-26 2016-09-28 西安交通大学第附属医院 Blood vessel recognition method and device
CN106228566A (en) * 2016-08-15 2016-12-14 哈尔滨工业大学 Automatically detection and the recognition methods of retinal microaneurysm based on the loud analysis of gradient
CN107248161A (en) * 2017-05-11 2017-10-13 江西理工大学 Retinal vessel extracting method is supervised in a kind of having for multiple features fusion
CN107229937A (en) * 2017-06-13 2017-10-03 瑞达昇科技(大连)有限公司 Method and device for classifying retinal blood vessels
CN107480644A (en) * 2017-08-21 2017-12-15 吉林大学 The positioning of optic disk and dividing method, device and storage medium in eye fundus image

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
MINHAJ ALAM等: "Combing ODR and Blood Vessel Tracking for Artery-Vein Classification and Analysis in Color Fundus Images", 《TRANSLATION VISION SCIENCE & TECHNOLOGY》 *
代小红: "《基于机器视觉的数字图像处理与识别研究》", 31 March 2012, 西南交通大学出版社 *
孟琭: "《计算机视觉原理与应用》", 30 November 2012, 东北大学出版社 *
曹厚德等: "《现代医学影像技术学》", 30 September 2016, 上海科学技术出版社 *
李奇,冯华君,徐之海,边美娟,申溯,戴瑞春: "数字图象清晰度评价函数研究", 《光子学报》 *
韩松涛: "眼底图像的血管特性分析", 《中国博士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816637A (en) * 2019-01-02 2019-05-28 电子科技大学 A method for detecting hard exudate areas in fundus images
CN113303771A (en) * 2021-07-30 2021-08-27 天津慧医谷科技有限公司 Pulse acquisition point determining method and device and electronic equipment
CN113303771B (en) * 2021-07-30 2021-11-05 天津慧医谷科技有限公司 Pulse acquisition point determining method and device and electronic equipment
CN115100222A (en) * 2022-08-24 2022-09-23 首都医科大学附属北京朝阳医院 Image processing method and device for separating artery and vein blood vessels, storage medium and terminal

Similar Documents

Publication Publication Date Title
CN108416344B (en) Method for locating and identifying eyeground color optic disk and yellow spot
CN108185984A (en) The method that eyeground color picture carries out eyeground lesion identification
CN110276356B (en) Fundus image microaneurysm identification method based on R-CNN
CN107451998B (en) Fundus image quality control method
Bharkad Automatic segmentation of optic disk in retinal images
Medhi et al. An effective fovea detection and automatic assessment of diabetic maculopathy in color fundus images
Bae et al. A study on hemorrhage detection using hybrid method in fundus images
US9462945B1 (en) System and methods for automatic processing of digital retinal images in conjunction with an imaging device
CN105513077A (en) System for screening diabetic retinopathy
Haloi et al. A Gaussian scale space approach for exudates detection, classification and severity prediction
Stapor et al. Segmentation of fundus eye images using methods of mathematical morphology for glaucoma diagnosis
Sopharak et al. Automatic exudates detection from diabetic retinopathy retinal image using fuzzy c-means and morphological methods
Mondal et al. Blood vessel detection from Retinal fundas images using GIFKCN classifier
Noronha et al. Enhancement of retinal fundus image to highlight the features for detection of abnormal eyes
CN108230306A (en) Eyeground color picture blood vessel and arteriovenous recognition methods
Mane et al. Progress towards automated early stage detection of diabetic retinopathy: Image analysis systems and potential
Harangi et al. Automatic detection of the optic disc using majority voting in a collection of optic disc detectors
Sagar et al. A novel integrated approach using dynamic thresholding and edge detection (idted) for automatic detection of exudates in digital fundus retinal images
Brancati et al. Automatic segmentation of pigment deposits in retinal fundus images of Retinitis Pigmentosa
Gou et al. A novel retinal vessel extraction method based on dynamic scales allocation
Romero-Oraá et al. A robust method for the automatic location of the optic disc and the fovea in fundus images
Wihandika et al. Retinal blood vessel segmentation with optic disc pixels exclusion
Luo et al. An Optic Disc Segmentation Method Based on Active Contour Tracking.
Dharani et al. Improved microaneurysm detection in fundus images for diagnosis of diabetic retinopathy
CN115272333A (en) Storage system of cup-to-disk ratio data

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629