[go: up one dir, main page]

CN108109156B - SAR Image Road Detection Method Based on Ratio Feature - Google Patents

SAR Image Road Detection Method Based on Ratio Feature Download PDF

Info

Publication number
CN108109156B
CN108109156B CN201711415934.1A CN201711415934A CN108109156B CN 108109156 B CN108109156 B CN 108109156B CN 201711415934 A CN201711415934 A CN 201711415934A CN 108109156 B CN108109156 B CN 108109156B
Authority
CN
China
Prior art keywords
pixel
road
image
point
value
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
CN201711415934.1A
Other languages
Chinese (zh)
Other versions
CN108109156A (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.)
Xian University of Electronic Science and Technology
Original Assignee
Xian University of Electronic Science and Technology
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 Xian University of Electronic Science and Technology filed Critical Xian University of Electronic Science and Technology
Priority to CN201711415934.1A priority Critical patent/CN108109156B/en
Publication of CN108109156A publication Critical patent/CN108109156A/en
Application granted granted Critical
Publication of CN108109156B publication Critical patent/CN108109156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture
    • G06T7/41Analysis of texture based on statistical description of texture
    • G06T7/45Analysis of texture based on statistical description of texture using co-occurrence matrix computation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10032Satellite or aerial image; Remote sensing
    • G06T2207/10044Radar image
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20076Probabilistic image processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/30181Earth observation
    • G06T2207/30184Infrastructure

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开一种基于比值特征的SAR图像道路检测方法,主要解决现有技术对道路边缘定位不准确、虚警率高的问题。其实现包括:1)对SAR图像进行降斑并提取9种纹理特征,2)从9种纹理特征中依据巴氏距离筛选对分类贡献最大的3种纹理特征;3)逐点计算降斑后图像中对比比值特征R1和相似比值特征R2;4)用具有2)和3)结果的样本构造道路字典D1和背景字典D2;5)对每个像素点分别求解与道路字典D1的平均差值E1和与背景字典D2的平均差值E2,通过差值对像素点进行分类,得到初步检测结果;6)对初步检测结果进行优化,得到最终的到了检测结果。本发明能比较完整的、清晰的检测出SAR图像中的道路,适用于检测SAR图像中不同方向、不同宽度的道路。

The invention discloses a ratio feature-based SAR image road detection method, which mainly solves the problems of inaccurate road edge positioning and high false alarm rate in the prior art. Its implementation includes: 1) perform speckle reduction on the SAR image and extract 9 texture features, 2) select the 3 texture features that contribute the most to the classification from the 9 texture features according to the Bhattacharyian distance; 3) calculate the speckle reduction point by point Contrasting ratio feature R1 and similar ratio feature R2 in the image; 4) Construct road dictionary D 1 and background dictionary D 2 with samples of 2) and 3) results; 5) Solve for each pixel point and road dictionary D 1 respectively The average difference E 1 and the average difference E 2 with the background dictionary D 2 are used to classify the pixel points to obtain the preliminary detection result; 6) optimize the preliminary detection result to obtain the final detection result. The invention can relatively complete and clearly detect roads in SAR images, and is suitable for detecting roads in different directions and widths in SAR images.

Description

基于比值特征的SAR图像道路检测方法SAR Image Road Detection Method Based on Ratio Feature

技术领域technical field

本发明属于数字图像处理技术领域,特别涉及SAR图像的道路检测方法,可用于地图更新、运输物流和城市规划。The invention belongs to the technical field of digital image processing, in particular to a road detection method for SAR images, which can be used for map updating, transportation logistics and urban planning.

背景技术Background technique

近年来,随着合成孔径雷达关键技术的不断发展,SAR成像分辨率不断提高、信号处理能力不断增强、数据传输速率不断增加、设备体积不断减小、质量不断降低,SAR图像可广泛用于情报搜集、战场监视、攻击引导、打击效果评估等。SAR图像从其诞生到现在五十多年的时间,技术上已经取得了长足进步与发展。在SAR图像分析中,线特征具有非常重要的意义,因为图像中某些对象本身具有线性结构,如道路、桥梁、河流、海岸线等。利用计算机从SAR图像中自动提取道路之类的线性地物信息,是人们多年的愿望。线特征检测用于多传感器图像配准、绘图学应用以及图像分割与目标识别等。对于有一定宽度范围的对象,精确的轮廓线有助于不同对象的分割与目标的识别。In recent years, with the continuous development of key technologies of synthetic aperture radar, SAR imaging resolution has been continuously improved, signal processing capability has been continuously enhanced, data transmission rate has been continuously increased, equipment volume has been continuously reduced, and quality has been continuously reduced. SAR images can be widely used in intelligence. Collection, battlefield surveillance, attack guidance, strike effect evaluation, etc. SAR image technology has made considerable progress and development since its birth to the present for more than 50 years. In SAR image analysis, line features are very important, because some objects in the image have linear structures, such as roads, bridges, rivers, coastlines, etc. It has been people's wish for many years to use computers to automatically extract linear feature information such as roads from SAR images. Line feature detection is used in multi-sensor image registration, cartography applications, image segmentation and object recognition, etc. For objects with a certain width range, accurate contour lines are helpful for the segmentation of different objects and the recognition of targets.

道路作为重要的人造地物,是构成现代交通体系的主要部分,具有重要的地理、政治、经济等多方面的意义。由于合成孔径雷达SAR系统具有全天时、全天候等优点,从SAR图像中提取道路日益受到重视和应用。在获取的大量高分辨率SAR图像中,道路的提取常常既是SAR解译的中间过程,也可以作为一种解译结果。SAR图像道路的提取是目前学术界普遍关注的热点。同时,SAR图像道路提取在军用情报判读和民用城市规划等领域具有重要的应用价值。As an important man-made feature, road is the main part of the modern traffic system, and has important geographical, political, economic and other significance. Because the synthetic aperture radar (SAR) system has the advantages of all-day and all-weather, road extraction from SAR images has been paid more and more attention and applied. In a large number of acquired high-resolution SAR images, road extraction is often not only the intermediate process of SAR interpretation, but also a result of interpretation. The extraction of roads from SAR images is currently a hot spot in the academic circles. At the same time, SAR image road extraction has important application value in the fields of military intelligence interpretation and civilian urban planning.

一般的SAR图像道路检测算法是先根据基元检测确定道路种子点,然后利用线检测算法把道路种子点连接成道路线段,如Tupin等、Kartartzis等和Jeon等提出的方法。常规的这些基元检测方法均存在对道路边缘定位不准确、虚警率高等问题。The general SAR image road detection algorithm is to first determine the road seed points according to the primitive detection, and then use the line detection algorithm to connect the road seed points into road segments, such as the methods proposed by Tupin et al., Kartartzis et al. and Jeon et al. These conventional primitive detection methods all have problems such as inaccurate positioning of the road edge and high false alarm rate.

发明内容Contents of the invention

本发明的目的在于针对上述已有技术的不足,提出一种基于比值特征的SAR图像道路检测方法,以减小虚警率,提高对边缘定位的准确性。The object of the present invention is to address the deficiencies of the above-mentioned prior art, and propose a SAR image road detection method based on ratio features, so as to reduce the false alarm rate and improve the accuracy of edge positioning.

为实现上述目的,本发明的实现方案包括如下:In order to achieve the above object, the implementation scheme of the present invention includes as follows:

(1)读入待检测的SAR图像,并对SAR图像进行降斑预处理;(1) Read in the SAR image to be detected, and perform speckle reduction preprocessing on the SAR image;

(2)对降斑后的图像逐点构造灰度共生矩阵,并用灰度共生矩阵计算出能量、熵、对比度、均值、方差、相关性、非相似性、逆差距和均匀性9种纹理特征;(2) Construct a gray level co-occurrence matrix point by point for the image after spot reduction, and use the gray level co-occurrence matrix to calculate energy, entropy, contrast, mean, variance, correlation, dissimilarity, inverse gap and uniformity 9 texture features ;

(3)根据Bhattacharyya距离指标对以上提取的9种纹理特征进行优化和筛选,只选取能够有效地对SAR图像中道路检测和分类贡献最大3种的特征,分别是:均值、方差和对比度;(3) Optimize and screen the nine texture features extracted above according to the Bhattacharyya distance index, and only select the three features that can effectively contribute to the road detection and classification in SAR images, namely: mean, variance and contrast;

(4)提取比值特征:(4) Extract ratio features:

(4a)对降斑后的图像逐点提取两种比值特征,即道路与两侧区域之间的对比比值特征R1和道路两侧区域之间的相似比值特征R2;(4a) Extract two kinds of ratio features point by point from the image after speckle reduction, that is, the contrast ratio feature R1 between the road and the areas on both sides and the similarity ratio feature R2 between the areas on both sides of the road;

(4b)将步骤(3)中提取的3种纹理特征和步骤(4a)提取两种比值特征进行归一化,得到每个像素点的5维特征向量;(4b) normalize the 3 texture features extracted in step (3) and the two ratio features extracted in step (4a), to obtain a 5-dimensional feature vector of each pixel;

(5)随机选择部分带标签的像素点作为样本,包括道路点和非道路点,用该样本构造出道路字典D1和背景字典D2(5) Randomly select some pixel points with labels as samples, including road points and non-road points, construct road dictionary D 1 and background dictionary D 2 with this sample;

(6)初步检测:(6) Preliminary detection:

(6a)分别求解每个像素点与道路字典D1的差值E1和每个像素点与背景字典D2的差值E2(6a) Respectively solve the difference E 1 of each pixel point and the road dictionary D 1 and the difference E 2 of each pixel point and the background dictionary D 2 ;

(6b)根据这两个差值E1和E2对像素点进行分类:若E1-E2<0,表示测试样本的像素点和道路区域的原子相关性更强,则初步判为像素点属于道路区域;若E1-E2≥0,表示测试样本的像素点和背景区域的原子相关性更强,则初步判为像素点属于背景区域;(6b) Classify the pixel points according to the two differences E 1 and E 2 : if E 1 -E 2 <0, it means that the pixel point of the test sample has a stronger correlation with the atom in the road area, and it is initially judged as a pixel The point belongs to the road area; if E 1 -E 2 ≥ 0, it means that the pixel point of the test sample has a stronger correlation with the atoms in the background area, and the pixel point is initially judged to belong to the background area;

(7)对于步骤(6)得到的初步检测结果,再根据道路的细长型的特点,用面积周长比的优化算法排除虚警区域,得到道路检测的最终结果。(7) For the preliminary detection results obtained in step (6), according to the characteristics of the slender shape of the road, the optimization algorithm of the area-to-perimeter ratio is used to exclude false alarm areas, and the final result of road detection is obtained.

本发明与现有技术相比,具有如下优点:Compared with the prior art, the present invention has the following advantages:

1.本发明由于定义了一种新的比值特征的计算方法,该算法充分考虑了道路和两侧区域之间差异大,道路的两侧相似性强,克服了常规基元检测算子边缘定位不准确的缺点,提取的两种比值特征能够准确的对道路进行边缘定位;1. Since the present invention defines a new calculation method of ratio features, the algorithm fully considers the large difference between the road and the areas on both sides, and the strong similarity between the two sides of the road, and overcomes the edge positioning of the conventional primitive detection operator Inaccurate shortcomings, the extracted two ratio features can accurately locate the edge of the road;

2.本发明针对纹理特征之间存在冗余,提出用Bhattacharyya距离来筛选特征的规则,由于Bhattacharyya距离充分考虑了特征的均值、方差和标准图之间的相关性,不仅降低了特征的复杂度,还提高了算法的运行效率;2. In view of the redundancy between texture features, the present invention proposes a rule for screening features with Bhattacharyya distance. Because Bhattacharyya distance fully considers the correlation between the mean value, variance and standard map of features, it not only reduces the complexity of features , also improves the operating efficiency of the algorithm;

3.本发明针对道路检测对实时性要求高的特点,提出了通过构造字典利用差值分类的设计,这充分考虑了同类之间相似性强、不同类之间差异大的特点,相对于一些复杂度高、实用性低的分类器,本发明的差值分类器简化了计算,能够满足实时性的要求;3. The present invention aims at the characteristics of high real-time requirements for road detection, and proposes the design of using difference classification by constructing a dictionary, which fully considers the characteristics of strong similarity between similar classes and large differences between different classes. Compared with some A classifier with high complexity and low practicability, the difference classifier of the present invention simplifies calculation and can meet the requirements of real-time performance;

4.本发明提出的用面积周长比的优化算法,能够有效地排除虚警区域。由于初步检测结果存在虚警,已知道路都具有细长型的特点,即一个长度不变的闭合曲线,根据积分原理,其形状越趋近于细长型,面积越小,这就越符合道路的特点。4. The optimization algorithm using the area-to-perimeter ratio proposed by the present invention can effectively eliminate false alarm areas. Due to the existence of false alarms in the preliminary detection results, known roads have the characteristics of a slender shape, that is, a closed curve with a constant length. According to the integration principle, the closer the shape is to the slender shape and the smaller the area, the more consistent characteristics of the road.

附图说明Description of drawings

图1是本发明的道路检测总流程图;Fig. 1 is the general flowchart of road detection of the present invention;

图2是本发明中的优化算法的子流程图;Fig. 2 is the subflow chart of optimization algorithm among the present invention;

图3是本发明中三种不同宽度的道路区域示意图;Fig. 3 is a schematic diagram of road areas of three different widths in the present invention;

图4是本发明使用的测试图像;Fig. 4 is the test image that the present invention uses;

图5是本发明中的去噪后图像;Fig. 5 is the image after denoising among the present invention;

图6是本发明中的道路检测初步结果图;Fig. 6 is the preliminary result figure of road detection among the present invention;

图7是本发明使用优化算法去除虚警后的结果图;Fig. 7 is the result figure after the present invention uses optimization algorithm to remove false alarm;

图8是测试图像的标准图。Fig. 8 is a standard diagram of a test image.

具体实施方式Detailed ways

下面结合附图,对本发明进行详细说明:Below in conjunction with accompanying drawing, the present invention is described in detail:

参照图1,本发明的实现步骤如下:With reference to Fig. 1, the realization steps of the present invention are as follows:

步骤1:输入数据并进行降斑。Step 1: Enter data and perform speckle reduction.

SAR相干斑的抑制是SAR图像处理的关键,也是后续图像识别等工作的前提。The suppression of SAR coherence speckle is the key to SAR image processing, and also the premise of subsequent image recognition and other work.

本发明先将输入的SAR图像利用PPB算法进行降斑,得到道路更加清晰的图像,以削弱噪声的影响,增加道路和背景之间的对比度,为了能够准确地进行道路检测的特征打下了基础。The present invention uses the PPB algorithm to reduce the speckle of the input SAR image to obtain a clearer image of the road, so as to weaken the influence of noise, increase the contrast between the road and the background, and lay a foundation for accurate road detection features.

步骤2:提取纹理特征。Step 2: Extract texture features.

SAR图像包含丰富的纹理特征,如果这些纹理信息运用合理,将有益于道路检测。根据去噪后的图像逐点构造灰度共生矩阵,然后用灰度共生矩阵提取9种纹理特征,分别是:能量、熵、对比度、非相似性、逆差距、均匀性、均值、方差和相关性。纹理特征体现出了道路的细节信息,与背景有明显的差异,通过纹理特征能够将道路和背景区分开来。SAR images contain rich texture features, if the texture information is used reasonably, it will be beneficial to road detection. According to the denoised image, the gray level co-occurrence matrix is constructed point by point, and then 9 kinds of texture features are extracted by the gray level co-occurrence matrix, namely: energy, entropy, contrast, dissimilarity, inverse gap, uniformity, mean, variance and correlation sex. The texture feature reflects the detailed information of the road, which is obviously different from the background. The road and the background can be distinguished through the texture feature.

(2a)对降斑后的图像先归一化处理,通过灰度共生矩阵GLCM的概率密度函数生成灰度共生矩阵GLCM,用生成的灰度共生矩阵GLCM来描述归一化后的SAR图像,(2a) Normalize the speckle-reduced image first, generate a gray-level co-occurrence matrix GLCM through the probability density function of the gray-level co-occurrence matrix GLCM, and use the generated gray-level co-occurrence matrix GLCM to describe the normalized SAR image,

灰度共生矩阵GLCM的概率密度函数如下:The probability density function of the gray level co-occurrence matrix GLCM is as follows:

g(i,j)={(x1,y1),(x2,y2)∈M×Nf(x1,y1)=i,f(x2,y2)=j},g(i,j)={(x 1 ,y 1 ),(x 2 ,y 2 )∈M×Nf(x 1 ,y 1 )=i,f(x 2 ,y 2 )=j},

其中,g(i,j)表示SAR图像中元素的频数,也称为GLCM概率密度函数,M是SAR图像f(x,y)的横向维度,N是SAR图像f(x,y)的纵向维度,(x1,y1)和(x2,y2)是图像SAR图像f(x,y)的两个像素点,f(x1,y1)和f(x2,y2)是SAR图像(x1,y1)和(x2,y2)灰度值,i和j是表示像素点f(x1,y1)和f(x2,y2)灰度值大小的数值;Among them, g(i,j) represents the frequency of elements in the SAR image, also known as the GLCM probability density function, M is the horizontal dimension of the SAR image f(x,y), N is the vertical dimension of the SAR image f(x,y) Dimensions, (x 1 ,y 1 ) and (x 2 ,y 2 ) are two pixel points of the image SAR image f(x,y), f(x 1 ,y 1 ) and f(x 2 ,y 2 ) are the (x 1 ,y 1 ) and (x 2 ,y 2 ) grayscale values of the SAR image, i and j are the grayscale values of pixels f(x 1 ,y 1 ) and f(x 2 ,y 2 ) value;

(2b)根据灰度共生矩阵概率密度函数g(i,j)和归一化后的SAR图像中相距(Δx,Δy)时的两个灰度像素同时出现的次数,生成灰度共生矩阵p(i,j),如果将灰度级别分为w级,就能得到一个w×w的灰度共生矩阵;(2b) According to the probability density function g(i, j) of the gray level co-occurrence matrix and the number of times that two gray pixels appear at the same time in the normalized SAR image when the distance is (Δx, Δy), generate the gray level co-occurrence matrix p (i, j), if the gray level is divided into w levels, a w×w gray level co-occurrence matrix can be obtained;

(2c)根据生成的灰度共生矩阵p(i,j),分别计算9种常见的纹理特征:(2c) According to the generated gray level co-occurrence matrix p(i, j), calculate 9 common texture features:

(2c1)计算能量特征Ene:(2c1) Calculate the energy feature Ene:

能量,是衡量图像中灰度值变化稳定状态的参数,它能够描述图像纹理精密的程度和像素点灰度值均匀状态,其计算公式如下:Energy is a parameter to measure the stable state of the gray value change in the image. It can describe the degree of image texture precision and the uniform state of the pixel gray value. Its calculation formula is as follows:

其中p(i,j)灰度共生矩阵,在同质区域内由于灰度共生矩阵值多数为1,少数为0,,因而能量值大,表明当前纹理是一种规则变化较为稳定的纹理;在非同质区域内由于灰度共生矩阵值多数为0,少数为1,因而能量值较小,表明当前纹理是一种变化不稳定的纹理。Among them, the p(i,j) gray level co-occurrence matrix, in the homogeneous area, because the gray level co-occurrence matrix values are mostly 1, and a few are 0, so the energy value is large, indicating that the current texture is a texture with regular changes and relatively stable texture; In the non-homogeneous area, the gray level co-occurrence matrix values are mostly 0 and a few are 1, so the energy value is small, indicating that the current texture is a texture with unstable changes.

(2c2)计算熵特征Ent:(2c2) Calculate the entropy feature Ent:

熵,是描述图像中随机信息多少的度量,其计算公式如下:Entropy is a measure to describe the amount of random information in an image, and its calculation formula is as follows:

当灰度共生矩阵p(i,j)中的矩阵元素值都比较接近或者矩阵中元素值的分布有着最大的不确定性时,熵值越大,表明图像越是杂乱无章,纹理更繁杂;When the matrix element values in the gray level co-occurrence matrix p(i,j) are relatively close or the distribution of element values in the matrix has the greatest uncertainty, the larger the entropy value, the more chaotic the image and the more complicated the texture;

(2c3)计算对比度特征Con:(2c3) Calculate the contrast feature Con:

对比度,是衡量图像中局部出现变化数量多少的参数,其计算公式如下:Contrast is a parameter to measure the number of local changes in the image, and its calculation formula is as follows:

图像中出现局部变化的地方越多,对比度值越大,SAR图像中的建筑区域由于镜面反射产生的亮斑间夹杂着黑斑,所以它的对比度值较大;The more local changes appear in the image, the greater the contrast value is, and the building area in the SAR image is mixed with dark spots between bright spots caused by specular reflection, so its contrast value is larger;

(2c4)计算非相似性特征Dis:(2c4) Calculate the dissimilarity feature Dis:

相似性,是衡量图像中局部出现变化数量多少的参数,其计算公式如下:Similarity is a parameter to measure the number of local changes in the image, and its calculation formula is as follows:

如果局部对比度越高,则非相似度也越高;If the local contrast is higher, the dissimilarity is also higher;

(2c5)计算逆差矩特征Idm:(2c5) Calculate the inverse moment characteristic Idm:

逆差矩:是考察灰度共生矩阵中矩阵元素值聚集在主对角线较大数值多少的参数,其计算公式如下:Inverse moment: It is a parameter to investigate how much the matrix element values in the gray-level co-occurrence matrix are gathered on the main diagonal. The calculation formula is as follows:

如果逆差矩值越大,说明图像越是均匀;If the inverse moment value is larger, it means that the image is more uniform;

(2c6)计算均匀性特征Hom:(2c6) Calculate the homogeneity feature Hom:

均匀性,是考察灰度共生矩阵中矩阵元素值聚集在主对角线较大数值多少的参数,其计算公式如下:Uniformity is a parameter that examines how much the matrix element values in the gray-level co-occurrence matrix are gathered on the main diagonal. The calculation formula is as follows:

如果均匀性值越大,说明图像越是均匀;The larger the uniformity value, the more uniform the image;

(2c7)计算均值特征Mea:(2c7) Calculate the mean feature Mea:

均值:是描述灰度共生矩阵中矩阵元素值的参数,其计算公式如下:Mean value: It is a parameter describing the matrix element value in the gray level co-occurrence matrix, and its calculation formula is as follows:

均值反映了灰度共生矩阵中元素值的集中趋势,通常可以作为灰度共生矩阵中矩阵元素一个估计值。The mean value reflects the central tendency of the element values in the gray level co-occurrence matrix, and can usually be used as an estimated value of the matrix elements in the gray level co-occurrence matrix.

(2c8)计算方差特征Var:(2c8) Calculate the variance feature Var:

方差:是描述灰度共生矩阵中矩阵元素值偏离均值程度的参数,其计算公式如下:Variance: It is a parameter that describes the degree to which the matrix element values in the gray level co-occurrence matrix deviate from the mean value. Its calculation formula is as follows:

方差与均值共同反映图像的均匀程度;The variance and the mean together reflect the uniformity of the image;

(2c9)计算相关性特征Cor:(2c9) Calculate the correlation feature Cor:

相关性:是描述图像中各个像素点灰度值之间相关性的参数,从行方向和列方向分别考察灰度共生矩阵元素间的相似程度,可以辨别图像中的纹理方向,其计算公式如下:Correlation: It is a parameter that describes the correlation between the gray values of each pixel in the image. The similarity between the elements of the gray co-occurrence matrix is examined from the row direction and the column direction, and the texture direction in the image can be identified. The calculation formula is as follows :

步骤3:特征筛选Step 3: Feature Screening

根据SAR图像中道路区域的成像特点,只选择适合这类SAR图像的特征作为具有代表性的特征,一方面可以减少冗余无用信息对有用特征信息的干扰,另一方面可以提高检测效率。在本发明中,依据Bhattacharyya距离来进行特征的优化和筛选,这种选择特征的方法是简单快速且有效的,定义Bhattacharyya距离如下:According to the imaging characteristics of the road area in the SAR image, only the features suitable for this type of SAR image are selected as representative features. On the one hand, it can reduce the interference of redundant useless information on useful feature information, and on the other hand, it can improve the detection efficiency. In the present invention, feature optimization and screening are carried out according to the Bhattacharyya distance. This method of selecting features is simple, fast and effective. The Bhattacharyya distance is defined as follows:

其中,μ1、σ1分别表示同一纹理特征图像上第一类地物像素值的均值和方差;μ2、σ2分别表示同一纹理特征图像上第二类地物像素值的均值和方差,BD值越大,证明该特征区分这两类地物的能力越强。Among them, μ 1 and σ 1 represent the mean and variance of the pixel values of the first type of ground object on the same texture feature image respectively; μ 2 and σ 2 respectively represent the mean and variance of the pixel values of the second type of ground feature on the same texture feature image, The larger the BD value, the stronger the feature's ability to distinguish these two types of ground objects.

由于纹理特征之间存在冗余,为了简化计算,本实例根据Bhattacharyya距离指标来进行特征的优化和筛选,在具体操作中,从9类纹理特征中选择出能够对道路和背景区分最好的3种特征,分别是均值u、方差var和对比度cor。Due to the redundancy among texture features, in order to simplify the calculation, this example optimizes and screens the features according to the Bhattacharyya distance index. In the specific operation, select 3 of the 9 types of texture features that can distinguish the road and the background best. These features are mean u, variance var, and contrast cor.

步骤4:提取比值特征Step 4: Extract ratio features

纹理特征不能完全表示出SAR图像中道路区域的特点,为了提取到对道路边缘定位准确的特征,本发明对降斑后的图像逐点提取两种比值特征,即道路与两侧区域之间的对比比值特征R1和道路两侧区域之间的相似比值特征R2。提取步骤如下:Texture features cannot fully express the characteristics of the road area in the SAR image. In order to extract features that accurately locate the road edge, the present invention extracts two kinds of ratio features point by point from the image after speckle reduction, that is, the distance between the road and the areas on both sides. Compare the ratio feature R1 with the similar ratio feature R2 between the regions on both sides of the road. The extraction steps are as follows:

4a)对降斑后的图像逐点提取15×15的图像块Q;4a) Extract a 15×15 image block Q point by point from the speckle-reduced image;

4b)在图像块Q中心提取7×7的中心图像块P计算中心像素点的对比比值特征R1:4b) Extract the central image block P of 7×7 in the center of the image block Q and calculate the contrast ratio feature R1 of the central pixel point:

R1=min(max(u3/u1,u1/u3),max(u2/u1,u1/u2))R1=min(max(u 3 /u 1 ,u 1 /u 3 ),max(u 2 /u 1 ,u 1 /u 2 ))

其中,u1表示区域1内像素点的均值,u2表示区域2内像素点的均值,u3表示区域3内像素点的均值。Among them, u 1 represents the average value of pixels in area 1, u 2 represents the average value of pixels in area 2, and u 3 represents the average value of pixels in area 3.

参照图3,计算3种不同道路宽度的情况并保留最大值;根据SAR图像的分辨率和实际道路的宽度,道路在SAR图像中通常就是1-3个像素点的宽度,其中图3(a)表示道路宽度为1个像素点的情况,图3(b)表示道路宽度为2个像素点的情况,图3(c)表示道路宽度为3个像素点的情况,区域1为假定的道路,区域3为道路左侧的背景区域,区域2为道路右侧的背景区域。本发明中分别计算区域1和区域3、区域1和区域2之间的均值比值,即先取最大再取最小,本实例是区域1均值和区域3均值的相互比值取最大,区域1均值和区域2均值的相互比值取最大;然后从上述最大二者中取最小,即得到道路区域和背景区域的对比比值特征;分别计算3种道路宽度情况下的对比比值特征R1的值并取最大值,暂时作为中心图像块P中心像素点的对比比值特征;Referring to Figure 3, calculate the situation of 3 different road widths and keep the maximum value; according to the resolution of the SAR image and the width of the actual road, the road in the SAR image is usually 1-3 pixels wide, where Figure 3 (a ) represents the case where the road width is 1 pixel, Fig. 3(b) represents the case where the road width is 2 pixels, Fig. 3(c) represents the case where the road width is 3 pixels, area 1 is the hypothetical road , area 3 is the background area on the left side of the road, and area 2 is the background area on the right side of the road. In the present invention, calculate the average ratio between area 1 and area 3, area 1 and area 2 respectively, that is, first get the maximum and then get the minimum. In this example, the mutual ratio of the area 1 mean and area 3 mean is the largest, and the area 1 mean and area 2 Take the maximum of the mutual ratio of the average value; then take the minimum from the above two maximum, that is, obtain the contrast ratio feature of the road area and the background area; calculate the value of the contrast ratio feature R1 under the three road width conditions and take the maximum value, Temporarily used as the contrast ratio feature of the central pixel of the central image block P;

4c)对于图像块Q以中心像素点为中心逆时针旋转22.5度,执行步骤4b),得到图像块中心像素点在该角度上对应的对比比值特征R1,为了找到了那个最接近道路的方向,一共旋转7次,总共得到了8个方向对比比值特征;4c) For the image block Q rotated 22.5 degrees counterclockwise around the center pixel point, perform step 4b) to obtain the contrast ratio feature R1 corresponding to the image block center pixel point at this angle, in order to find the direction closest to the road, A total of 7 rotations were performed, and a total of 8 direction contrast ratio features were obtained;

4d)根据道路和两侧区域的对比度较大,其对比比值特征R1值越大,像素点为道路点的可能性就越大的特点,本实例一共考虑了8个方向,比较8个对比比值特征R1并保留最大值,作为该图像块Q中心像素点的对比比值特征R1,由于中心图像块P是从图像块Q中提取出来的,因而R1也是中心图像块P中心像素点的对比比值特征。计算过程中保留对比比值特征R1最大时的图像块Q,将该图像块Q的方向作为最接近道路的方向。4d) According to the fact that the contrast between the road and the areas on both sides is relatively large, the greater the value of the contrast ratio feature R1, the greater the possibility that the pixel point is a road point. In this example, a total of 8 directions are considered, and 8 contrast ratios are compared. Feature R1 and keep the maximum value as the contrast ratio feature R1 of the central pixel point of the image block Q. Since the central image block P is extracted from the image block Q, R1 is also the contrast ratio feature of the central pixel point of the central image block P . During the calculation process, the image block Q when the contrast ratio feature R1 is the largest is retained, and the direction of the image block Q is regarded as the direction closest to the road.

4e)从步骤4d)中保留的图像块Q中提取7×7的中心图像块P;4e) extracting a central image block P of 7×7 from the image block Q retained in step 4d);

4f)计算图像块P的中心像素点的相似比值特征R2:4f) Calculate the similarity ratio feature R2 of the central pixel point of the image block P:

R2=max(u3/u2,u2/u3)R2=max(u 3 /u 2 ,u 2 /u 3 )

其中,u2表示区域2内像素点的均值,u3表示区域3内像素点的均值。Among them, u 2 represents the average value of pixels in area 2, and u 3 represents the average value of pixels in area 3.

相似比值特征R2代表道路两侧区域相似性的大小,参照图3,图3表示道路宽度为1-3个像素点的情况,本发明中分别计算区域2和区域3的均值比值并取大;分别计算3种道路宽度情况下的相似比值特征R2,保留最小值,作为图像块中心点的相似比值特征,R2的值越接近1,图像块P的中心像素点为道路点的可能性就越大。The similarity ratio feature R2 represents the size of the regional similarity on both sides of the road, with reference to Fig. 3, Fig. 3 represents the situation that the road width is 1-3 pixel points, calculates respectively the average value ratio of region 2 and region 3 in the present invention and gets big; Calculate the similarity ratio feature R2 of the three road widths respectively, and keep the minimum value as the similarity ratio feature of the center point of the image block. The closer the value of R2 is to 1, the more likely the center pixel point of the image block P is a road point. big.

步骤5:构造字典。Step 5: Construct a dictionary.

对输入的图像提取均值、方差、对比度、对比比值特征R1和相似比值特征R2共5种特征,将其归一化,得到一系列具有5维特征向量的样本,这些样本是带有标记的,其中一部分属于图像中的道路区域,另外一部分属于图像中的背景区域。用这些样本构造出道路字典D1和背景字典D2Extract 5 features including mean, variance, contrast, contrast ratio feature R1 and similarity ratio feature R2 from the input image, and normalize them to obtain a series of samples with 5-dimensional feature vectors. These samples are marked, One part belongs to the road area in the image, and the other part belongs to the background area in the image. Construct road dictionary D 1 and background dictionary D 2 with these samples;

步骤6:初步检测。Step 6: Preliminary testing.

分别求解每个像素点与道路字典D1的差值E1和每个像素点与背景字典D2的差值E2,根据这两个差值E1和E2对像素点进行分类,初步判断像素点属于道路区域还是背景区域。Respectively solve the difference E1 between each pixel point and the road dictionary D1 and the difference E2 between each pixel point and the background dictionary D2, and classify the pixels according to these two differences E1 and E2 . Determine whether the pixel belongs to the road area or the background area.

通过如下公式对输入的样本分别求解与道路字典D1的差值E1和与背景字典D2的差值E2Calculate the difference E 1 with the road dictionary D 1 and the difference E 2 with the background dictionary D 2 for the input samples respectively by the following formula:

其中,x为输入的测试样本,为道路字典D1的第k个原子,p表示字典D1里原子的个数;为背景字典D2的第l个原子,q表示字典D2里原子的个数;Among them, x is the input test sample, is the kth atom of the road dictionary D 1 , and p represents the number of atoms in the dictionary D 1 ; Is the lth atom of the background dictionary D2, and q represents the number of atoms in the dictionary D2 ;

通过比较两个差值的大小对测试样本的像素点进行分类,得到道路检测的初步结果:Classify the pixels of the test sample by comparing the size of the two differences, and get the preliminary results of road detection:

若E1-E2<0,表示测试样本的像素点和道路区域的原子相关性更强,则初步判为像素点属于道路区域;If E 1 -E 2 <0, it means that the pixel point of the test sample has a stronger correlation with the atom in the road area, and the pixel point is initially judged to belong to the road area;

若E1-E2≥0,表示测试样本的像素点和背景区域的原子相关性更强,则初步判为像素点属于背景区域;If E 1 -E 2 ≥ 0, it means that the pixel point of the test sample has a stronger correlation with the atoms in the background area, and it is preliminarily determined that the pixel point belongs to the background area;

本步骤得到的初步检测如图6所示。The preliminary detection obtained in this step is shown in Figure 6.

步骤7:结果优化。Step 7: Result optimization.

通过初步检测可以得到道路的大体轮廓,如何从中确定出真实的道路,并排除虚警干扰,是很关键的一步。本发明根据道路自身的特点,即道路是细长型的,其轮廓是一个闭合曲线,这条曲线的形状越接近于细长型,面积越小,就越符合道路的特点,根据积分原理提出如下面积周长比的优化算法,以有效地排除虚警区域。The general outline of the road can be obtained through preliminary detection. How to determine the real road and eliminate false alarm interference is a critical step. The present invention is based on the characteristics of the road itself, that is, the road is slender, and its outline is a closed curve. The closer the shape of this curve is to the slender type, the smaller the area, the more in line with the characteristics of the road. According to the integral principle, the present invention proposes The optimization algorithm of the area-to-perimeter ratio is as follows to effectively eliminate false alarm areas.

参照图2,本步骤的实现如下:Referring to Figure 2, the implementation of this step is as follows:

7a)输入一幅待优化的初步检测结果图I,参见图6,其大小为m×n,以初步检测结果图I的中心为定点,把图像的大小拓展为(m+2)×(n+2),将拓展出来的边界都设置为0,即为背景,拓展后的图像为初始化连通域内为道路的像素点的个数S*=0及连通域的周长L*=0;7a) Input a preliminary detection result graph I to be optimized, see FIG. 6, its size is m×n, take the center of the preliminary detection result graph I as a fixed point, and expand the size of the image to (m+2)×(n +2), set the expanded border to 0, which is the background, and the expanded image is Initialize the number S * =0 of the pixel points of the road and the perimeter L * =0 of the connected domain in the connected domain;

7b)对拓展后的图像从像素点(2,2)开始扫描,跳过所有的边界点,直到遇到第一个像素值为1的像素点(x,y),令S*=1,像素点(x,y)的像素值设为3;7b) For the expanded image Start scanning from pixel point (2,2), skip all boundary points until encountering the first pixel point (x, y) with a pixel value of 1, let S * = 1, pixel point (x, y) The pixel value of is set to 3;

7c)对像素点(x,y)取它的4邻域,即以(x,y)为中心点的3*3的窗内,查找上下左右4邻域内像素值为0的点的个数m,用L*+m的值更新L*7c) Take the 4 neighborhoods of the pixel point (x, y), that is, in the 3*3 window with (x, y) as the center point, find the number of points with pixel values of 0 in the 4 neighborhoods of up, down, left, and right m, update L * with the value of L * + m;

7d)对像素点(x,y)取它的8邻域,即以(x,y)为中心点的3*3的窗内查找四周8邻域内像素值为1的点的个数n,用S*+n的值更新S*,逐个把这n个像素值从1改为3,并记录这些像素点所在的位置;7d) Take its 8 neighborhoods for the pixel point (x, y), that is, find the number n of points with a pixel value of 1 in the surrounding 8 neighborhoods in a 3*3 window with (x, y) as the center point, Update S * with the value of S * +n, change the n pixel values from 1 to 3 one by one, and record the positions of these pixels;

7e)对步骤7d)中记录的n个像素点,逐一重复执行步骤7c)和步骤7d),直到像素点(x,y)及其8邻域内找不到像素点值为1的点,即把一个连通域遍历一遍,记录这个连通域内为道路的像素点的个数S*及连通域的周长L*,如果把像素点的边长设定为1,则像素点个数S*就等同于连通域内道路的面积;7e) For the n pixels recorded in step 7d), repeat step 7c) and step 7d) one by one until no pixel value 1 can be found in the pixel point (x, y) and its 8 neighborhoods, that is Traversing a connected domain, record the number S * of pixels in this connected domain that are roads and the perimeter L * of the connected domain. If the side length of the pixel is set to 1, the number of pixels S * will be Equivalent to the area of the road in the connected domain;

7f)设定门限值T,用更新后的S*和更新后的L*计算道路逼近率再将道路逼近率与门限值进行比较:如果道P*>T,则把步骤7d)里所记录像素值为3的那些点都改为0,否则不变,重新初始化S*=0,L*=0;7f) Set the threshold value T, calculate the road approach rate with the updated S * and the updated L * Then compare the road approach rate with the threshold value: if the road P * >T, then change those points whose pixel value is 3 recorded in step 7d) to 0, otherwise unchanged, reinitialize S * =0, L * = 0;

门限值的设定是一个浮动的值,根据检测的要求灵活选择,如果T的值设定较小,去除虚警的效果也就越好,但同时漏检率会更高,如果T的值设定较大,检测的道路相对更加完整,但虚警的去除效果相对较差,本实例设门限值T为0.35;The setting of the threshold value is a floating value, which can be flexibly selected according to the detection requirements. If the value of T is set smaller, the effect of removing false alarms will be better, but at the same time the missed detection rate will be higher. If the value of T If the value is set larger, the detected road is relatively more complete, but the effect of removing false alarms is relatively poor. In this example, the threshold value T is set to 0.35;

7g)对拓展后的图像从像素点(x+1,y+1)开始扫描,重复执行步骤7b)到步骤7f),直到初步检测结果图像的最后一个点像素点(m,n);把所有拓展后的图像中像素值为3的点值重新改为1,把拓展后的边界去掉,就得到待检测图像道路检测优化后的结果,如图7。7g) For the expanded image Start scanning from the pixel point (x+1, y+1), repeat step 7b) to step 7f), until the last pixel point (m, n) of the preliminary detection result image; all the expanded images Change the value of the point with a pixel value of 3 to 1, remove the expanded boundary, and obtain the optimized road detection result of the image to be detected, as shown in Figure 7.

本发明的效果可以通过下面的仿真结果进一步说明。The effects of the present invention can be further illustrated by the following simulation results.

1.仿真条件1. Simulation conditions

本发明在Visual Studio 2010的编程环境下、并结合MFC技术进行仿真实验。The present invention carries out simulation experiments under the programming environment of Visual Studio 2010 and in combination with MFC technology.

被检测SAR图像的大小为329×329、分辨率为4米,如图4所示。The size of the detected SAR image is 329×329 and the resolution is 4 meters, as shown in Figure 4.

2.仿真内容2. Simulation content

仿真1,用本发明图4所示的SAR图像进行PPB降斑处理,结果如图5。从图5中可以明显看出,经过本发明降斑后的图像更加清晰,道路特征更加明显,这对下一步提取能够准确代表道路的特征打下良好的基础;In simulation 1, the SAR image shown in FIG. 4 of the present invention is used for PPB speckle reduction processing, and the result is shown in FIG. 5 . As can be clearly seen from Fig. 5, the image after speckle reduction in the present invention is clearer, and the road features are more obvious, which lays a good foundation for the next step of extracting the features that can accurately represent the road;

仿真2,用本发明对降斑后的图像如图5的每个像素点进行分类,得到初步检测结果图,如图6。从图6检测结果看,已经初步把道路的大体轮廓和走向检测出来,但是仍然存在将非道路点误检测成了道路点的问题,所以采取优化算法的对初步检测结果进行后处理是有必要的;In simulation 2, the present invention is used to classify each pixel of the speckle-reduced image, as shown in Figure 5, to obtain a preliminary detection result map, as shown in Figure 6. From the detection results in Figure 6, the general outline and direction of the road have been detected preliminarily, but there is still the problem of wrongly detecting non-road points as road points, so it is necessary to post-process the preliminary detection results by adopting an optimization algorithm of;

仿真3,本发明结合道路自身的特点,即道路都是细长型的线状目标,用面积周长比的优化算法对如图6所示的初步检测结果图进行优化,以有效地去除孤立的干扰点以及块状的虚警区域,结果如图7。从图7的结果中可以看出,经过优化算法后的检测结果排除了初步检测结果图的一些干扰点和块状的虚警区域;Simulation 3, the present invention combines the characteristics of the road itself, that is, the roads are all slender linear objects, and the preliminary detection result diagram shown in Figure 6 is optimized with the optimization algorithm of the area-to-perimeter ratio to effectively remove isolated The interference points and blocky false alarm areas, the results are shown in Figure 7. It can be seen from the results in Figure 7 that the detection results after the optimized algorithm exclude some interference points and blocky false alarm areas in the preliminary detection result map;

将图7与图8所示的对应测试图像的标准图进行对比,可以看出,本发明的道路检测结果与标准图的相符程度很高,表明本发明具有很好的道路检测效果。Comparing FIG. 7 with the standard image corresponding to the test image shown in FIG. 8, it can be seen that the road detection result of the present invention is highly consistent with the standard image, indicating that the present invention has a good road detection effect.

Claims (6)

1. a kind of SAR image Approach for road detection based on ratio feature, comprising:
(1) SAR image to be detected is read in, and drop spot pretreatment is carried out to SAR image;
(2) gray level co-occurrence matrixes are constructed to the image after drop spot point by point, and calculate energy, entropy, comparison with gray level co-occurrence matrixes Degree, mean value, variance, correlation, non-similarity, unfavourable balance away from 9 kinds of textural characteristics of uniformity;
(3) the 9 kinds of textural characteristics extracted above are optimized and is screened according to Bhattacharyya range index, only chosen Can be respectively: mean value, variance and comparison effectively to Road Detection in SAR image and maximum 3 kinds of the feature of classification contribution Degree;
(4) ratio feature is extracted:
(4a) extracts two kinds of ratio features to the image after drop spot point by point, i.e., the comparison ratio feature between road and two side areas Similar ratio feature R2 between R1 and both sides of the road region;
The 3 kinds of textural characteristics extracted in step (3) and step (4a) are extracted two kinds of ratio features and are normalized by (4b), are obtained 5 dimensional feature vectors of each pixel;
(5) pixel of part tape label is randomly choosed as sample, including road waypoint and non-rice habitats point, is gone out with the sample architecture Road dictionary D1With background dictionary D2
(6) Preliminary detection:
(6a) solves each pixel and road dictionary D respectively1Difference E1With each pixel and background dictionary D2Difference E2
(6b) is according to the two differences E1And E2Classify to pixel: if E1-E2< 0, indicate test sample pixel and The Atomic Correlations of road area are stronger, then are tentatively judged to pixel and belong to road area;If E1-E2>=0, indicate test sample Pixel and background area Atomic Correlations it is stronger, then be tentatively judged to pixel and belong to background area;
(7) Preliminary detection that obtains for step (6) is as a result, leptosomatic feature further according to road, with area perimeter ratio Optimization algorithm excludes false-alarm region, obtains the final result of Road Detection.
2. according to the method described in claim 1, wherein in step (3) according to Bhattacharyya range index to step (2) The 9 kinds of textural characteristics extracted optimize screening, are to optimize screening to every kind by following range formula:
Wherein, BD indicates Bhattacharyya range index, μ1、σ1Respectively indicate first kind atural object on same texture template image The mean value and variance of pixel value;μ2、σ2Respectively indicate the mean value of the second class atural object pixel value and side on same texture template image Difference.
3. being carried out as follows according to the method described in claim 1, wherein calculating comparison ratio feature R1 in step (4):
4a) extract 15 × 15 image block Q point by point to the image after drop spot;
4b) in the center image block P of image block Q center extraction 7 × 7, the feelings that road width is 1,2,3 pixel are calculated separately Condition obtains 3 comparison ratio features, and takes maximum value therein, temporarily special as the comparison ratio of image block P central pixel point Sign;
22.5 degree 4c) are rotated counterclockwise centered on central pixel point to image block Q, return step 4b), a corotating 7 times obtains To 8 comparison ratio features;
Maximum value 4d) is found out from 8 comparison ratio features, the comparison ratio feature R1 as image block P central pixel point:
R1=min (max (u3/u1,u1/u3),max(u2/u1,u1/u2)),
Wherein, u1Indicate the mean value of pixel in region 1, u2Indicate the mean value of pixel in region 2, u3Indicate pixel in region 3 The mean value of point;
The image block Q in corresponding direction when retaining comparison ratio feature R1 maximum simultaneously, as closest to the direction of road.
4. being carried out as follows according to the method described in claim 1, wherein calculating likelihood ratio value tag R2 in step (4):
7 × 7 center image block P 4e) is extracted in the image block Q retained from step (4d);
4f) calculate separately road width be 1,2,3 pixel the case where, obtain 3 similar ratio features, and take it is therein most Small value, the similar ratio feature R2 as image block P central pixel point:
R2=max (u3/u2,u2/u3),
Wherein, u2Indicate the mean value of pixel in region 2, u3Indicate the mean value of pixel in region 3.
5. according to the method described in claim 1, wherein solving each pixel and road dictionary D1Difference E1With each pixel Point and background dictionary D2Difference E2, it is carried out respectively with following formula:
Wherein, x is the test sample of input,For road dictionary D1K-th of atom, p indicate dictionary D1In atom number;For background dictionary D2First of atom, q indicate dictionary D2In atom number.
6. according to the method described in claim 1, wherein excluding false-alarm area with the optimization algorithm of area perimeter ratio in step (7) Domain carries out as follows:
Preliminary detection result images I 7a) is inputted, it is fixed point with the center of Preliminary detection result images I that size, which is m × n, It is (m+2) × (n+2) that the size of image, which is expanded, will expand the boundary come out and is both configured to 0, as background, the image after expansion ForIt initializes in connected domain as the number S of the pixel of road*=0 and connected domain perimeter L*=0;
7b) to image after expansionStart to scan from pixel (2,2), skip all boundary points, until encountering first pixel The pixel (x, y) that value is 1, enables S*=1, the pixel value of pixel (x, y) is set as 3;
Its 4 neighborhoods 7c) are taken to pixel (x, y), are searched the number m for the point that pixel value is 0 in 4 neighborhoods, are used L*The value of+m updates L*
Its 8 neighborhoods 7d) are taken to pixel (x, y), are searched the number n for the point that pixel value is 1 in 8 neighborhoods, are used S*The value of+n updates S*, the pixel value of this n point is changed to 3 one by one, and record the position where these pixel values;
Step 7c 7e) is repeated to above-mentioned n point) and step 7d), it can not find until in pixel (x, y) and its 8 neighborhoods The point that pixel value is 1 obtains in this connected domain as the number S of the pixel of road*And the perimeter L of connected domain*
Threshold T 7f) is set, with updated S*With updated L*It calculates road and approaches rateRoad is approached again Rate is compared with threshold value: if road P*> T is then to be changed to 0 inner the recorded pixel value of step 7d) those of 3 o'clock, no It is then constant, reinitialize S*=0, L*=0;
7g) to image after expansionStart to scan from pixel (x+1, y+1), repeat step 7b) arrive step 7f), Zhi Daochu The last one pixel (m, n) for walking detection result image I, image after all expansionsThe value weight for the point that middle pixel value is 3 It newly is changed to 1, removes image after expansionBoundary, obtain the final optimization pass result of Road Detection.
CN201711415934.1A 2017-12-25 2017-12-25 SAR Image Road Detection Method Based on Ratio Feature Active CN108109156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711415934.1A CN108109156B (en) 2017-12-25 2017-12-25 SAR Image Road Detection Method Based on Ratio Feature

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711415934.1A CN108109156B (en) 2017-12-25 2017-12-25 SAR Image Road Detection Method Based on Ratio Feature

Publications (2)

Publication Number Publication Date
CN108109156A CN108109156A (en) 2018-06-01
CN108109156B true CN108109156B (en) 2019-10-11

Family

ID=62212580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711415934.1A Active CN108109156B (en) 2017-12-25 2017-12-25 SAR Image Road Detection Method Based on Ratio Feature

Country Status (1)

Country Link
CN (1) CN108109156B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188889A (en) * 2019-04-28 2019-08-30 温州市兴海市政建设有限公司 A kind of urban road surfaces maintenance management system based on preventative maintenance
CN117809052B (en) * 2024-03-01 2024-05-14 海豚乐智科技(成都)有限责任公司 Block target detection and feature extraction method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102592114A (en) * 2011-12-26 2012-07-18 河南工业大学 Method for extracting and recognizing lane line features of complex road conditions
CN102915441A (en) * 2012-08-30 2013-02-06 杭州电子科技大学 Method for detecting unstructured road on basis of Haar texture
CN104392212A (en) * 2014-11-14 2015-03-04 北京工业大学 Method for detecting road information and identifying forward vehicles based on vision

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7869667B1 (en) * 2007-01-19 2011-01-11 Google Inc. Method for automatic alignment of raster data with vector data in a geographic information system
CN101739667B (en) * 2009-12-04 2012-06-20 西安电子科技大学 Non-downsampling contourlet transformation-based method for enhancing remote sensing image road
CN101982835B (en) * 2010-11-12 2012-02-08 西安电子科技大学 Level Set Method for Airport Road Edge Detection in SAR Images
CN104331873A (en) * 2013-07-22 2015-02-04 浙江大学 Method for detecting road from single image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102592114A (en) * 2011-12-26 2012-07-18 河南工业大学 Method for extracting and recognizing lane line features of complex road conditions
CN102915441A (en) * 2012-08-30 2013-02-06 杭州电子科技大学 Method for detecting unstructured road on basis of Haar texture
CN104392212A (en) * 2014-11-14 2015-03-04 北京工业大学 Method for detecting road information and identifying forward vehicles based on vision

Also Published As

Publication number Publication date
CN108109156A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN108596055B (en) Airport target detection method of high-resolution remote sensing image under complex background
Rani et al. Road Identification Through Efficient Edge Segmentation Based on Morphological Operations.
Ao et al. Detection and discrimination of ship targets in complex background from spaceborne ALOS-2 SAR images
Xiao et al. Change detection of built-up land: A framework of combining pixel-based detection and object-based recognition
CN106127204B (en) A multi-directional water meter reading area detection algorithm based on fully convolutional neural network
CN110378308B (en) Improved method for nearshore ship detection in port SAR images based on Faster R-CNN
Zhang et al. Adaptive contourlet fusion clustering for SAR image change detection
Yu et al. Intelligent Crack Detection and Quantification in the Concrete Bridge: A Deep Learning‐Assisted Image Processing Approach
CN108898065A (en) Candidate regions quickly screen and the depth network Ship Target Detection method of dimension self-adaption
CN101634706B (en) Method for automatically detecting bridge target in high-resolution SAR images
CN110097101A (en) Remote sensing image fusion and coastal zone classification method based on improved reliability factor
Kahraman et al. Road extraction techniques from remote sensing images: A review
CN107301649B (en) An Algorithm for Shoreline Detection in Region Merged SAR Images Based on Superpixels
Wang et al. Revisiting SLIC: Fast superpixel segmentation of marine SAR images using density features
CN110717531A (en) A Post-Classification Variation Type Detection Method Based on Uncertainty Analysis and Bayesian Fusion
CN110598613A (en) Expressway agglomerate fog monitoring method
CN110414566A (en) A Land Cover Type Change Detection Method Based on Time Series PolSAR Images
CN116434072B (en) Geological disaster early identification method and device based on multi-source data
CN108109156B (en) SAR Image Road Detection Method Based on Ratio Feature
Huang et al. Superpixel-based change detection in high resolution sar images using region covariance features
CN118566924A (en) Water body range determination method, device and electronic equipment
Shen et al. Cropland extraction from very high spatial resolution satellite imagery by object-based classification using improved mean shift and one-class support vector machines
CN118587578A (en) A method and system for extracting building shadows through image segmentation based on edge constraints
CN112036246B (en) Construction method of remote sensing image classification model, remote sensing image classification method and system
Busch Revision of built-up areas in a GIS using satellite imagery and GIS 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
GR01 Patent grant
GR01 Patent grant