CN108629769B - Method and system for optic disc location in fundus images based on best sibling similarity - Google Patents
Method and system for optic disc location in fundus images based on best sibling similarity Download PDFInfo
- Publication number
- CN108629769B CN108629769B CN201810409425.6A CN201810409425A CN108629769B CN 108629769 B CN108629769 B CN 108629769B CN 201810409425 A CN201810409425 A CN 201810409425A CN 108629769 B CN108629769 B CN 108629769B
- Authority
- CN
- China
- Prior art keywords
- image
- point
- similarity
- matched
- optic disc
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000011524 similarity measure Methods 0.000 claims description 6
- 238000007781 pre-processing Methods 0.000 claims description 2
- 230000000007 visual effect Effects 0.000 claims 1
- 230000004807 localization Effects 0.000 abstract description 17
- 210000004204 blood vessel Anatomy 0.000 description 10
- 230000003902 lesion Effects 0.000 description 5
- 230000011218 segmentation Effects 0.000 description 5
- 238000010276 construction Methods 0.000 description 2
- 238000003745 diagnosis Methods 0.000 description 2
- 201000010099 disease Diseases 0.000 description 2
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000000691 measurement method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 208000002177 Cataract Diseases 0.000 description 1
- 208000010412 Glaucoma Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
- G06T7/0014—Biomedical image inspection using an image reference approach
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30041—Eye; Retina; Ophthalmic
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Biology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Quality & Reliability (AREA)
- Eye Examination Apparatus (AREA)
- Image Analysis (AREA)
Abstract
本发明公开了基于最佳兄弟相似度的眼底图像视盘定位方法及系统,包括以下步骤:步骤(1):选取健康的眼底图像,根据健康眼底图像的包含视盘区域的最小外接矩形,提取最小外接矩形内的图像作为模板图像;步骤(2):对模板图像和待匹配图像均进行预处理;步骤(3):计算模板图像和待匹配图像之间的最佳兄弟相似度;步骤(4):在待匹配图像中进行搜索,最佳兄弟相似度最大值所对应的区域为最终的定位结果。对于眼底图像视盘定位工作提出了新的观念并取得较好的效果。
The invention discloses a fundus image optic disc positioning method and system based on the best sibling similarity, comprising the following steps: Step (1): selecting a healthy fundus image, and extracting the minimum circumscribed rectangle according to the minimum circumscribed rectangle including the optic disc region of the healthy fundus image The image in the rectangle is used as the template image; Step (2): Preprocess both the template image and the image to be matched; Step (3): Calculate the best sibling similarity between the template image and the image to be matched; Step (4) : Search in the image to be matched, and the area corresponding to the maximum sibling similarity is the final positioning result. A new concept was put forward for optic disc localization in fundus images and good results were obtained.
Description
技术领域technical field
本发明涉及基于最佳兄弟相似度(Best-BuddiesSimilarity)的眼底图像视盘定位方法及系统。The present invention relates to a fundus image optic disc location method and system based on Best-BuddiesSimilarity.
背景技术Background technique
近年来,基于眼底图像的生理结构的定位和识别被广泛研究和应用,这对于及时预防和诊断白内障、青光眼等一类的致盲性眼科疾病具有重要的意义和作用。但是由于患眼科疾病的病人越来越多,而眼科专家的数量无法满足大量病人的需求,因此越来越多计算机视觉及医学领域的专家关注和研究基于医学图像的计算机自动识别及诊断系统。在眼底图像中,视盘是最主要的生理结构之一,因此对视盘进行高效准确的定位是自动分析处理眼底图像研究工作中非常重要的步骤。In recent years, the location and identification of physiological structures based on fundus images have been widely studied and applied, which is of great significance and role in the timely prevention and diagnosis of cataract, glaucoma and other blinding ophthalmic diseases. However, due to the increasing number of patients suffering from ophthalmic diseases, and the number of ophthalmologists cannot meet the needs of a large number of patients, more and more experts in the field of computer vision and medicine pay attention to and study the automatic computer recognition and diagnosis system based on medical images. In fundus images, the optic disc is one of the most important physiological structures, so efficient and accurate positioning of the optic disc is a very important step in the automatic analysis and processing of fundus images.
国内外研究人员根据眼底视盘的特性提出了多种视盘定位检测的方法,这些方法可以被大致分为3类:(1)基于血管特性的视盘定位方法;(2)基于视盘外观特征的视盘定位方法;(3)综合利用眼底图像血管信息和视盘特征的视盘定位方法。Researchers at home and abroad have proposed a variety of optic disc localization detection methods according to the characteristics of the fundus optic disc. These methods can be roughly divided into three categories: (1) optic disc localization methods based on blood vessel characteristics; (2) optic disc localization based on optic disc appearance characteristics Methods; (3) An optic disc localization method that comprehensively utilizes the blood vessel information of the fundus image and the characteristics of the optic disc.
基于血管特性的算法利用眼底视盘区域中血管的特殊结构和走向信息,当图像中存在病变或噪声等干扰因素导致视盘的外观特征不够明显时,依然可以有效准确的定位视盘,但是这一类方法大多要以严格的几何模板为基础,这导致了此类算法具有较高的算法复杂度。而构造几何模板需要以精准的分割血管结构为基础,而无论图像中是否存在病变区域,完整且精准的血管分割本身就是一项比较困难且复杂度较高的工作,这导致了基于血管特性的视盘定位方法通常不仅需要较长的处理时间,无法实时的定位检测眼底视盘,而且这使自动定位视盘的工作更加复杂。The algorithm based on blood vessel characteristics utilizes the special structure and orientation information of blood vessels in the optic disc area of the fundus. When the appearance characteristics of the optic disc are not obvious due to interference factors such as lesions or noise in the image, it can still effectively and accurately locate the optic disc. Most of them are based on strict geometric templates, which leads to high algorithm complexity of such algorithms. The construction of the geometric template needs to be based on the accurate segmentation of the blood vessel structure. Regardless of whether there is a diseased area in the image, the complete and accurate blood vessel segmentation itself is a relatively difficult and complex work, which leads to the characteristics of blood vessels. The optic disc localization method usually requires a long processing time and cannot locate and detect the fundus optic disc in real time, but also makes the automatic optic disc localization work more complicated.
基于视盘外观特征的算法重点关注了视盘自身的亮度、颜色、形状、大小和纹理特征。但是当眼底图像中出现的病变区域与视盘的亮度近似的情况下,只是通过视盘的亮度、形状等特征很有可能误将病变区域检测出来从而导致定位视盘失败,而由于病变区域对视盘外观的影响导致视盘的亮度和完整性遭到干扰和破坏,这也严重影响了视盘定位的准确程度。The algorithm based on the appearance features of the optic disc focuses on the brightness, color, shape, size and texture characteristics of the optic disc itself. However, when the lesion area in the fundus image is similar to the brightness of the optic disc, it is very likely that the lesion area will be detected by mistake only by the brightness, shape and other characteristics of the optic disc, resulting in failure to locate the optic disc. As a result, the brightness and integrity of the optic disc are disturbed and destroyed, which also seriously affects the accuracy of optic disc positioning.
因此降低眼底图像中病变区域对视盘定位工作的干扰,同时避免对眼底图像中血管结构的精准分割,降低算法复杂程度,减少工作量,是本领域技术人员亟需解决的问题。Therefore, it is an urgent problem for those skilled in the art to reduce the interference of the lesion area in the fundus image to the optic disc positioning work, avoid the accurate segmentation of the blood vessel structure in the fundus image, reduce the complexity of the algorithm, and reduce the workload.
发明内容SUMMARY OF THE INVENTION
基于传统的眼底图像视盘定位方法中存在的问题,本发明提出了基于最佳兄弟相似度的眼底图像视盘定位方法及系统。最佳兄弟相似性不仅仅考虑眼底视盘的外观,而是通过一种新的模板匹配的思想,结合眼底图像的视盘的梯度变化特征对算法中的最佳兄弟相似性度量方法进行优化和改进,首次将该算法应用于眼底图像视盘定位的领域,计算模板图像与待匹配图像的RGB外观差异,空间位置差异,并引入基于一阶导数的梯度度量进行优化,确保了定位的准确性,使得眼底图像视盘的定位工作具有更好的鲁棒性,同时避免了对眼底图像血管结构的分割,具有更高的定位成功率和较低的算法复杂度。Based on the problems existing in the traditional fundus image optic disc location method, the present invention proposes a fundus image optic disc location method and system based on the best sibling similarity. The optimal sibling similarity does not only consider the appearance of the fundus optic disc, but optimizes and improves the optimal sibling similarity measurement method in the algorithm through a new template matching idea, combined with the gradient change characteristics of the optic disc of the fundus image. For the first time, this algorithm is applied to the field of optic disc positioning in fundus images, and the RGB appearance difference and spatial position difference between the template image and the image to be matched are calculated. The localization of the optic disc in the image has better robustness, while avoiding the segmentation of the blood vessel structure in the fundus image, and has a higher localization success rate and lower algorithm complexity.
本发明基于模板匹配的思想,选取健康的视盘图像作为模板图像,将待定位的眼底图像作为待匹配图像,计算模板图像和待匹配图像之间的最佳兄弟相似度,搜索相似度的值最大的区域即为视盘区域。该发明为眼底图像视盘定位工作提供了一种新的思路。Based on the idea of template matching, the present invention selects a healthy optic disc image as the template image, takes the fundus image to be located as the image to be matched, calculates the best sibling similarity between the template image and the image to be matched, and searches for the maximum value of the similarity The area is the optic disc area. The invention provides a new idea for optic disc location in fundus images.
为了实现上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
作为本发明的第一方面,提供了基于最佳兄弟相似度的眼底图像视盘定位方法;As a first aspect of the present invention, a fundus image optic disc location method based on the best sibling similarity is provided;
基于最佳兄弟相似度的眼底图像视盘定位方法,包括以下步骤:The optic disc localization method in fundus images based on the best sibling similarity includes the following steps:
步骤(1):选取健康的眼底图像,根据健康眼底图像的包含视盘区域的最小外接矩形,提取最小外接矩形内的图像作为模板图像;Step (1): select a healthy fundus image, and extract the image in the minimum circumscribed rectangle as a template image according to the minimum circumscribed rectangle of the healthy fundus image that includes the optic disc region;
步骤(2):对模板图像和待匹配图像均进行预处理;Step (2): preprocess both the template image and the image to be matched;
步骤(3):计算模板图像和待匹配图像之间的最佳兄弟相似度;Step (3): calculate the best sibling similarity between the template image and the image to be matched;
步骤(4):在待匹配图像中进行搜索,最佳兄弟相似度最大值所对应的区域为最终的定位结果。Step (4): Search in the image to be matched, and the area corresponding to the maximum value of the best sibling similarity is the final positioning result.
所述步骤(1)中,待匹配图像即为待定位视盘所在的眼底图像。In the step (1), the image to be matched is the fundus image where the optic disc to be located is located.
所述步骤(2)中,对模板图像和待匹配图像均进行预处理,根据图像子块的尺寸大小,即图像的长度和宽度以像素为单位,调整模板图像和待匹配图像的尺寸大小,使模板图像和待匹配图像的大小均是图像子块大小的整数倍;然后将模板图像和模板图像分别分割成若干个尺寸大小相同的不重叠的图像子块,然后将每个图像子块分别视为一个点,从而形成由图像子块组成的点集,分别为模板图像对应的点集和待匹配图像对应的点集;In the step (2), both the template image and the image to be matched are preprocessed, and the size of the template image and the image to be matched is adjusted according to the size of the image sub-block, that is, the length and width of the image are in pixels, The size of the template image and the image to be matched is an integer multiple of the size of the image sub-block; then the template image and the template image are divided into several non-overlapping image sub-blocks of the same size, and then each image sub-block is divided into It is regarded as a point, thereby forming a point set composed of image sub-blocks, which are respectively the point set corresponding to the template image and the point set corresponding to the image to be matched;
所述步骤(3)中,基于步骤(2)中形成的模板图像对应的点集和待匹配图像对应的点集,计算模板图像对应的点集中的点与待匹配图像对应的点集中的点之间的距离值,找出两个点集的最佳兄弟点对(Best-BuddiesPairs),根据最佳兄弟点对的个数计算最佳兄弟相似度;In the step (3), based on the point set corresponding to the template image formed in step (2) and the point set corresponding to the image to be matched, calculate the point set corresponding to the template image and the point set corresponding to the image to be matched. Find the best sibling pair (Best-BuddiesPairs) of the two point sets, and calculate the best sibling similarity according to the number of best sibling pairs;
最佳兄弟点对的定义如下:首先定义两个点集,和其中表示模板图像的特征点集,表示待匹配图像中候选区域的特征点集,U,V分别代表点集中特征点的个数,其中ri,sj∈Rd。存在这样一个点对{ri∈R,sj∈S},当ri到集合S的最近邻点为sj并且sj到集合R的最近邻点也为ri时,那么称这样的点对为最佳兄弟点对(Best-BuddiesPairs,BBP)。The definition of the best sibling point pair is as follows: first define two point sets, and in the set of feature points representing the template image, Represents the feature point set of the candidate region in the image to be matched, U and V respectively represent the number of feature points in the point set, where r i , s j ∈ R d . There is such a point pair {ri i ∈ R, s j ∈ S}, when the nearest neighbor of ri to set S is s j and the nearest neighbor of s j to set R is also ri , then we call such a The pair is the best sibling pair (Best-BuddiesPairs, BBP).
判断最佳兄弟点对Seg(ri,sj,R,S)的数学表达式为:The mathematical expression for judging the best sibling point pair Seg(r i , s j , R, S) is:
其中,NN(ri,S)=argmin d(ri,s),s∈S表示ri到点集S的最近邻点判别方法,d(ri,s)表示任意的一种距离度量,∧表示与运算,NN(ri,S)=sj表示在点集S中ri的最近邻点为sj,如果NN(ri,S)=sj∧NN(sj,R)=ri表示ri和sj互为最近邻点,也就是最佳兄弟点对,则Seg(ri,sj,R,S)=1,如果不是最佳兄弟点对,则Seg(ri,sj,R,S)=0。Among them, NN(r i , S)=argmin d(r i , s), s∈S represents the method for discriminating the nearest neighbors from ri to point set S, and d( ri , s) represents an arbitrary distance metric , ∧ represents AND operation, NN(r i , S)=s j represents the nearest neighbor point of ri in point set S is s j , if NN(r i , S)=s j ∧NN(s j , R )=r i indicates that ri and s j are the nearest neighbors to each other, that is, the best sibling pair, then Seg(r i , s j , R, S)=1, if it is not the best sibling pair, then Seg (r i , s j , R, S)=0.
通过统计点集R和S之间的最佳兄弟点对的总数,然后归一化处理所得到的点对的总数,结果即为最佳兄弟相似性的结果值,而最佳兄弟相似性度量值BBS(R,S)表达式如下公式(2):By counting the total number of best sibling point pairs between point sets R and S, and then normalizing the total number of point pairs obtained by processing, the result is the result value of the best sibling similarity, and the best sibling similarity measure The value BBS(R, S) is expressed as the following formula (2):
将模板图像和待匹配图像中的每一个候选区域表示为xyRGB空间中的点,计算两个点集之间的最佳兄弟相似性度量的值,首先需要得到每个点对之间的距离值,将两个点之间的距离度量分为三个部分,一是两个点之间的颜色灰度值的差异,二是两个点之间的空间位置差异,三是图像梯度差异。Represent each candidate area in the template image and the image to be matched as a point in the xyRGB space, and calculate the value of the best sibling similarity measure between the two point sets. First, you need to get the distance value between each point pair , divides the distance metric between two points into three parts, one is the difference in color gray value between the two points, the other is the spatial position difference between the two points, and the third is the image gradient difference.
模板图像对应的点集中的点与待匹配图像对应的点集中的点之间的距离值d(ri,sj),如下公式(3):The distance value d(r i , s j ) between the points in the point set corresponding to the template image and the points in the point set corresponding to the image to be matched, is as follows formula (3):
其中,表示模板图像对应的点集中的点的颜色像素值;表示待匹配图像对应的点集中的点的颜色像素值;表示模板图像对应的点集中的点的空间位置;表示待匹配图像对应的点集中的点的空间位置;表示模板图像对应的点集中的点的梯度值;表示待匹配图像对应的点集中的点的梯度值;β表示为权重系数。in, Represents the color pixel value of the point in the point set corresponding to the template image; Represents the color pixel value of the point in the point set corresponding to the image to be matched; Represents the spatial position of the point in the point set corresponding to the template image; Represents the spatial position of the point in the point set corresponding to the image to be matched; Represents the gradient value of the point in the point set corresponding to the template image; represents the gradient value of the point in the point set corresponding to the image to be matched; β represents the weight coefficient.
所述步骤(4)中,基于步骤(3),在待匹配图像中逐列搜索相似度的值最高的区域,即为最终的定位结果。In the step (4), based on the step (3), the region with the highest similarity value is searched column by column in the image to be matched, which is the final positioning result.
所述步骤(4)中,构造相似性图像:通过颜色渐变形式展示最佳兄弟相似度的高低,相似度高的部分颜色深,相似度低的部分颜色浅,通过肉眼观察从待匹配图像中找到颜色最深的区域,即为与模板图像匹配程度最高的区域。In the step (4), the similarity image is constructed: the level of the best sibling similarity is displayed in the form of color gradient, the color of the part with high similarity is dark, and the color of the part with low similarity is light. Find the area with the darkest color, which is the area with the highest degree of matching with the template image.
作为本发明的第二方面,提供了基于最佳兄弟相似度的眼底图像视盘定位系统;As a second aspect of the present invention, a fundus image optic disc positioning system based on the best sibling similarity is provided;
基于最佳兄弟相似度的眼底图像视盘定位系统,包括:存储器、处理器以及存储在存储器上并在处理器上运行的计算机指令,所述计算机指令被处理器运行时,完成上述任一方法所述的步骤。A fundus image optic disc localization system based on the best sibling similarity, comprising: a memory, a processor, and computer instructions stored in the memory and executed on the processor, the computer instructions are executed by the processor to complete any of the above methods. the steps described.
作为本发明的第三方面,提供了一种计算机可读存储介质;As a third aspect of the present invention, a computer-readable storage medium is provided;
一种计算机可读存储介质,其上运行有计算机指令,所述计算机指令被处理器运行时,完成上述任一方法所述的步骤。A computer-readable storage medium on which computer instructions run, and when the computer instructions are executed by a processor, completes the steps described in any of the above methods.
本发明的有益效果是:The beneficial effects of the present invention are:
(1)本发明利用了基于最佳兄弟相似性的模板匹配方法,最佳兄弟相似度是一种鲁棒性强,且运行效率较高的相似性度量算法,能够有效的克服背景杂乱和遮挡,这样的特性应用于眼底图像视盘定位工作中,结合视盘区域的特征,引入基于一阶导数的图像梯度对该算法进行优化,不仅可以克服眼底图像中病变区域和光照变化等对视盘定位工作的干扰,也可以避免对眼底图像中血管结构的精准分割导致的计算复杂度较高,无法实现实时视盘定位的缺陷。所述步骤(2)利用图像子块组成点集,取代传统算法中以像素点组成的点集。(1) The present invention utilizes the template matching method based on the best sibling similarity, which is a similarity measurement algorithm with strong robustness and high operating efficiency, which can effectively overcome background clutter and occlusion , this feature is applied to the optic disc location of the fundus image. Combined with the characteristics of the optic disc area, the algorithm is optimized by introducing the image gradient based on the first derivative, which can not only overcome the changes in the lesion area and the illumination change in the fundus image. It can also avoid the high computational complexity caused by the accurate segmentation of the blood vessel structure in the fundus image, and the defect that real-time optic disc positioning cannot be realized. In the step (2), image sub-blocks are used to form a point set, instead of a point set composed of pixels in the traditional algorithm.
(2)本发明在对最佳兄弟相似性度量方法进行优化之后,将其应用于眼底图像视盘定位的工作中。本发明提出的基于最佳兄弟相似度的眼底图像视盘定位方法已经取得了较好的结果。本发明将在实验结果同其他的定位视盘的方法进行了比较,本发明的定位成功率,定位误差都表现出了非常突出的性能,其定位成功率在DRIVE和DIARETDB1这两个公共数据集上分别为100%和97.7%,定位平均误差分别为10.4和12.9,单位为像素。(2) After optimizing the best sibling similarity measurement method, the present invention applies it to the work of locating the optic disc in the fundus image. The fundus image optic disc location method based on the best sibling similarity proposed by the present invention has achieved good results. The present invention compares the experimental results with other methods for locating the optic disc. The present invention's localization success rate and localization error show very outstanding performance, and its localization success rate is on the two public data sets of DRIVE and DIARETDB1. are 100% and 97.7%, respectively, and the localization average errors are 10.4 and 12.9, respectively, in pixels.
附图说明Description of drawings
构成本申请的一部分的说明书附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。The accompanying drawings that form a part of the present application are used to provide further understanding of the present application, and the schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute improper limitations on the present application.
图1是本发明视盘定位方法的流程图。FIG. 1 is a flow chart of a video disc positioning method of the present invention.
图2(a)和图2(b)是模板图像的提取。Figure 2(a) and Figure 2(b) are the extraction of template images.
图3(a)-图3(h)是本发明定位视盘的步骤。Fig. 3(a)-Fig. 3(h) are the steps of positioning the optic disc according to the present invention.
图4(a)-图4(l)是本发明在DRIVE数据集中进行视盘定位的一些实例。Fig. 4(a)-Fig. 4(l) are some examples of optic disc localization in the DRIVE dataset of the present invention.
图5(a)-图5(t)是本发明在DIARETDB1数据集中进行视盘定位的一些实例。Figures 5(a)-5(t) are some examples of optic disc localization in the DIARETDB1 dataset of the present invention.
具体实施方式Detailed ways
应该指出,以下详细说明都是例示性的,旨在对本申请提供进一步的说明。除非另有指明,本发明使用的所有技术和科学术语具有与本申请所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and intended to provide further explanation of the application. Unless otherwise defined, 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 application belongs.
需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used herein is for the purpose of describing specific embodiments only, and is not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural as well, furthermore, it is to be understood that when the terms "comprising" and/or "including" are used in this specification, it indicates that There are features, steps, operations, devices, components and/or combinations thereof.
如图1所示,在一种基于最佳兄弟相似度(Best-Buddies Similarity)的眼底图像视盘定位方法中:As shown in Figure 1, in a fundus image optic disc location method based on Best-Buddies Similarity:
(1)模板图像的构造:在健康的眼底图像中,根据医生对视盘区域的标记,取包含视盘区域的最小外接矩形为模板图像,如图2(a)和图2(b)中,矩形即为模板图像。(1) Construction of the template image: In the healthy fundus image, according to the marking of the optic disc area by the doctor, the minimum circumscribed rectangle containing the optic disc area is taken as the template image, as shown in Figure 2(a) and Figure 2(b), the rectangle is the template image.
(2)图像预处理:在经过步骤(2)后,为了确保点集中的点足够进行匹配且不影响实验结果的准确性,同时保证计算量较小,所分割的子块的大小应当依据所选择模板的大小进行适当的调整,当模板图像较大时,可以使子块的大小为3甚至更大;而当模板图像较小时,可直接将单个像素作为一个点,这个值的大小可以根据具体的应用场景进行调整。之后根据子块的大小,重新调整原来模板图像和待匹配图像的大小,使原图像的大小是子块大小的整数倍。(2) Image preprocessing: After step (2), in order to ensure that the points in the point set are sufficient for matching without affecting the accuracy of the experimental results, and at the same time to ensure that the amount of calculation is small, the size of the divided sub-blocks should be based on the Select the size of the template to make appropriate adjustments. When the template image is large, the size of the sub-block can be 3 or even larger; and when the template image is small, a single pixel can be directly used as a point. The size of this value can be determined according to specific application scenarios. Then, according to the size of the sub-block, re-adjust the size of the original template image and the image to be matched, so that the size of the original image is an integer multiple of the size of the sub-block.
假设图像子块大小为3*3,根据这个大小,要将模板图像和待匹配图像的长度和宽度都调整为图像子块长度和宽度的整数倍。例如:模板图像为523*478,调整为522*477。Assuming that the size of the image sub-block is 3*3, according to this size, the length and width of the template image and the image to be matched are adjusted to an integer multiple of the length and width of the image sub-block. For example: the template image is 523*478, resized to 522*477.
(3)计算点对之间的最佳兄弟相似度:最佳兄弟相似度取决于两个点集之间最佳兄弟点对的个数,而最佳兄弟点对的定义如下:首先定义两个点集,和其中表示模板图像的特征点集,表示待匹配图像中候选区域的特征点集,U,V分别代表点集中特征点的个数,其中ri,sj∈Rd。存在这样一个点对{ri∈R,sj∈S},当ri到集合S的最近邻点为sj并且sj到集合R的最近邻点也为ri时,那么称这样的点对为最佳兄弟点对(Best-BuddiesPairs,BBP)。判断最佳兄弟点对的数学表达式为:(3) Calculate the best sibling similarity between point pairs: The best sibling similarity depends on the number of best sibling pairs between two point sets, and the best sibling pair is defined as follows: First define two set of points, and in the set of feature points representing the template image, Represents the feature point set of the candidate region in the image to be matched, U and V respectively represent the number of feature points in the point set, where r i , s j ∈ R d . There is such a point pair {ri i ∈ R, s j ∈ S}, when the nearest neighbor of ri to set S is s j and the nearest neighbor of s j to set R is also ri , then we call such a The pair is the best sibling pair (Best-BuddiesPairs, BBP). The mathematical expression for judging the best sibling pair is:
其中,NN(ri,S)=argmin d(ri,s),s∈S表示ri到点集S的最近邻点判别方法,其中的d(ri,s)表示任意的一种距离度量,∧表示与运算,NN(ri,S)=sj表示在点集S中ri的最近邻点为sj,NN(ri,S)=sj∧NN(sj,R)=ri表示ri和sj互为最近邻点,也就是最佳兄弟点对,反之亦然,则Seg(i,j)=1,如果不是最佳兄弟点对,则Seg(i,j)=0。通过统计点集R和S之间的最佳兄弟点对的总数,然后归一化处理所得到的点对的总数,结果即为最佳兄弟相似性的结果值,而最佳兄弟相似性度量值表达式如下公式(2):Among them, NN(r i , S)=argmin d(r i , s), s∈S represents the method for discriminating the nearest neighbor points from ri to point set S, where d( ri , s) represents any one Distance metric, ∧ represents AND operation, NN(r i , S)=s j represents the nearest neighbor point of ri in point set S is s j , NN(r i , S)=s j ∧NN(s j , R)=ri means that ri and s j are the nearest neighbors to each other, that is, the best sibling pair, and vice versa, then Seg(i, j)=1, if it is not the best sibling pair, then Seg( i,j)=0. By counting the total number of best sibling point pairs between point sets R and S, and then normalizing the total number of point pairs obtained by processing, the result is the result value of the best sibling similarity, and the best sibling similarity measure The value expression is as follows in formula (2):
我们将模板和待匹配图像中的每一个候选区域表示为xyRGB空间中的点,计算两个点集之间的最佳兄弟相似性度量的值,首先需要得到每个点对之间的距离值,结合眼底图像视盘特征,引入了基于一阶导数的图像梯度,将两个点之间的距离度量分为三个部分,一是它们之间的颜色灰度值的差异,二是它们之间的空间位置差异,三是图像梯度差异。点对之间具体的距离测度如下公式(3):We represent each candidate region in the template and the image to be matched as a point in the xyRGB space, and calculate the value of the best sibling similarity measure between the two point sets. First, we need to get the distance value between each point pair. , combined with the optic disc feature of the fundus image, the image gradient based on the first derivative is introduced, and the distance measure between two points is divided into three parts, one is the difference in color gray value between them, and the other is the difference between them The spatial position difference, and the third is the image gradient difference. The specific distance measurement between point pairs is as follows:
其中上标A表示了特征点之间的颜色像素值差异,上标L表示特征点之间的空间位置距离差异,归一化到[0,1]之间,β表示为权重系数,上标G代表子块的ri和sj的梯度值。The superscript A represents the color pixel value difference between the feature points, the superscript L represents the spatial position distance difference between the feature points, normalized to [0,1], β represents the weight coefficient, and the superscript G represents the gradient values of ri and s j of the sub-block.
(4)根据最佳兄弟相似度的值,构造相似性图像,搜索相似度的值最大的区域即为最终的定位结果。所定位区域的中心与视盘中心之间的距离小于60个像素即为定位成功。(4) According to the value of the best sibling similarity, a similarity image is constructed, and the region with the largest similarity value is searched for the final positioning result. The positioning is successful if the distance between the center of the located area and the center of the optic disc is less than 60 pixels.
图3(a),图3(e)为待匹配图像,图3(b),图3(f)中的矩形区域为模板图像,Fig. 3(a), Fig. 3(e) are the images to be matched, Fig. 3(b), the rectangular area in Fig. 3(f) is the template image,
图3(c),图3(g)为相似性图像,图3(d),图3(h)中的叉号为最终的定位结果。Figures 3(c) and 3(g) are the similarity images, and the crosses in Figures 3(d) and 3(h) are the final positioning results.
图4(a),图4(c),图4(e),图4(g),图4(i),图4(k)中叉号为视盘的正确位置,Fig. 4(a), Fig. 4(c), Fig. 4(e), Fig. 4(g), Fig. 4(i), Fig. 4(k) are the correct positions of the optic disc,
图4(b),图4(d),图4(f),图4(h),图4(j),图4(l)中的叉号为本发明实验结果。Figure 4(b), Figure 4(d), Figure 4(f), Figure 4(h), Figure 4(j), Figure 4(l) The crosses in Figure 4(l) are the experimental results of the present invention.
图5(a),图5(c),图5(e),图5(g),图5(i),图5(k),图5(m),图5(o),图5(q),图5(s)中叉号为视盘的正确位置,Figure 5(a), Figure 5(c), Figure 5(e), Figure 5(g), Figure 5(i), Figure 5(k), Figure 5(m), Figure 5(o), Figure 5 (q), the cross in Fig. 5(s) is the correct position of the optic disc,
图5(b),图5(d),图5(f),图5(h),图5(j),图5(l),图5(n),图5(p),图5(r),图5(t)中叉号为本发明实验结果。Figure 5(b), Figure 5(d), Figure 5(f), Figure 5(h), Figure 5(j), Figure 5(l), Figure 5(n), Figure 5(p), Figure 5 (r), the cross in Fig. 5(t) is the experimental result of the present invention.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810409425.6A CN108629769B (en) | 2018-05-02 | 2018-05-02 | Method and system for optic disc location in fundus images based on best sibling similarity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810409425.6A CN108629769B (en) | 2018-05-02 | 2018-05-02 | Method and system for optic disc location in fundus images based on best sibling similarity |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108629769A CN108629769A (en) | 2018-10-09 |
CN108629769B true CN108629769B (en) | 2020-09-29 |
Family
ID=63695220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810409425.6A Active CN108629769B (en) | 2018-05-02 | 2018-05-02 | Method and system for optic disc location in fundus images based on best sibling similarity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108629769B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109800787B (en) * | 2018-12-14 | 2020-12-29 | 西安交通大学 | Image Template Matching Method Based on Relative Feature Distance Error Metric |
CN110459299B (en) * | 2019-07-10 | 2023-06-27 | 中山大学 | An image screening method for retinal fundus color photographs |
CN110503639A (en) * | 2019-08-15 | 2019-11-26 | 依未科技(北京)有限公司 | The method and apparatus for handling eye fundus image |
CN111709434B (en) * | 2020-06-28 | 2022-10-04 | 哈尔滨工业大学 | Robust multi-scale template matching method based on nearest neighbor feature point matching |
CN112712521B (en) * | 2021-01-18 | 2023-12-12 | 佛山科学技术学院 | Automatic positioning method of fundus optic disk based on global gradient search and storage medium thereof |
CN118229672B (en) * | 2024-05-17 | 2024-10-01 | 中导光电设备股份有限公司 | Mark image positioning method and system based on film color difference |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102908120A (en) * | 2012-10-09 | 2013-02-06 | 北京大恒图像视觉有限公司 | Eye fundus image registration method, eye fundus image optic disk nerve and vessel measuring method and eye fundus image matching method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103632136B (en) * | 2013-11-11 | 2017-03-29 | 北京天诚盛业科技有限公司 | Human-eye positioning method and device |
-
2018
- 2018-05-02 CN CN201810409425.6A patent/CN108629769B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102908120A (en) * | 2012-10-09 | 2013-02-06 | 北京大恒图像视觉有限公司 | Eye fundus image registration method, eye fundus image optic disk nerve and vessel measuring method and eye fundus image matching method |
Non-Patent Citations (2)
Title |
---|
Best-Buddies Similarity for Robust Template;Tali Dekel等;《2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR)》;20150612;第2021-2029页 * |
彩色眼底图像视盘自动定位与分割;邹北骥等;《光学精密工程》;20150430;第23卷(第4期);第1187-1195页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108629769A (en) | 2018-10-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108629769B (en) | Method and system for optic disc location in fundus images based on best sibling similarity | |
WO2021169128A1 (en) | Method and apparatus for recognizing and quantifying fundus retina vessel, and device and storage medium | |
CN110751636B (en) | Fundus image retinal arteriosclerosis detection method based on improved coding and decoding network | |
WO2022142030A1 (en) | Method and system for measuring lesion features of hypertensive retinopathy | |
Saha et al. | Color fundus image registration techniques and applications for automated analysis of diabetic retinopathy progression: A review | |
CN106204555B (en) | A kind of optic disk localization method of combination Gbvs model and phase equalization | |
CN111369528B (en) | A deep convolutional network-based method for marking stenotic regions in coronary angiography images | |
WO2018045363A1 (en) | Screening method for automated detection of vision-degenerative diseases from color fundus images | |
CN111524170B (en) | Pulmonary CT image registration method based on unsupervised deep learning | |
US20240046632A1 (en) | Image classification method, apparatus, and device | |
CN112164043A (en) | Method and system for splicing multiple fundus images | |
WO2022086910A1 (en) | Anatomically-informed deep learning on contrast-enhanced cardiac mri | |
CN117392128B (en) | Artificial intelligent measuring method for aortic diameter | |
WO2022048171A1 (en) | Method and apparatus for measuring blood vessel diameter in fundus image | |
CN117198514B (en) | A vulnerable plaque identification method and system based on CLIP model | |
Sun et al. | Automatic detection of retinal regions using fully convolutional networks for diagnosis of abnormal maculae in optical coherence tomography images | |
CN111797900B (en) | A method and device for classifying arteries and veins in OCT-A images | |
Mao et al. | Deep learning with skip connection attention for choroid layer segmentation in oct images | |
CN117036288A (en) | Tumor subtype diagnosis method for full-slice pathological image | |
Yue et al. | SRV-GAN: A generative adversarial network for segmenting retinal vessels | |
CN109816665B (en) | A method and device for fast segmentation of optical coherence tomography images | |
CN118247277B (en) | Self-adaptive enhancement method for lung CT image | |
CN118037752A (en) | A method and system for right ventricular myocardial segmentation based on echocardiography | |
Zhou et al. | Automated detection of red lesions using superpixel multichannel multifeature | |
CN116912736A (en) | Carotid artery plaque echo classification method based on key features guiding multi-dimensional feature aggregation |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |