[go: up one dir, main page]

CN109410223A - A kind of SAR image segmentation method based on watershed algorithm and dictionary learning - Google Patents

A kind of SAR image segmentation method based on watershed algorithm and dictionary learning Download PDF

Info

Publication number
CN109410223A
CN109410223A CN201811322086.4A CN201811322086A CN109410223A CN 109410223 A CN109410223 A CN 109410223A CN 201811322086 A CN201811322086 A CN 201811322086A CN 109410223 A CN109410223 A CN 109410223A
Authority
CN
China
Prior art keywords
image
data
type
dictionary
histogram
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
CN201811322086.4A
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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201811322086.4A priority Critical patent/CN109410223A/en
Publication of CN109410223A publication Critical patent/CN109410223A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/155Segmentation; Edge detection involving morphological operators

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种分水岭算法和字典学习的SAR图像分割方法,该方法包括:利用去噪算法对原图像进行预处理,使图像变的更加平滑,同时提取三层小波特征;利用K‑means算法对原图像进行初次分割;求出训练图像的形态梯度图像,算出浮点活动图像,再用分水岭算法进行分割;每一个小块区域内的数据看作一类数据的数据集合,将该集合中的所有数据分别和每一类字典中的原子计算最近邻,对应每一类字典我们都可以得到一个统计直方图,计算对应于每一类的直方图和原始训练数据得到的该类的直方图之间的误差;判断在哪一类上的误差最小,就将集合内的数据划分为哪一类,依次将所有的小块区域进行划分,得到最终的分割结果。与传统的SAR图像分割方法相比,本发明在识别过程中的有效性和准确性更高,并且算法复杂度较低。The invention discloses a SAR image segmentation method based on a watershed algorithm and dictionary learning. The method includes: using a denoising algorithm to preprocess an original image to make the image smoother, and extracting three-layer wavelet features at the same time; using K-means The algorithm performs the initial segmentation of the original image; the morphological gradient image of the training image is obtained, the floating-point moving image is calculated, and then the watershed algorithm is used for segmentation; the data in each small area is regarded as a data set of a type of data, and the set is All the data in the nearest neighbors are calculated with the atoms in each type of dictionary, corresponding to each type of dictionary, we can get a statistical histogram, calculate the histogram corresponding to each type and the histogram of the type obtained from the original training data The error between the graphs; to determine which category has the smallest error, divide the data in the set into which category, and divide all the small areas in turn to obtain the final segmentation result. Compared with the traditional SAR image segmentation method, the present invention has higher effectiveness and accuracy in the identification process and lower algorithm complexity.

Description

A kind of SAR image segmentation method based on watershed algorithm and dictionary learning
Technical field
The invention belongs to synthetic aperture radar (SAR) image application fields, are related to a kind of SAR image segmentation method, especially It is a kind of SAR image segmentation method based on watershed algorithm and dictionary learning.
Background technique
Since SAR imaging technique has the advantage round-the-clock, the factors such as climate do not influence so that it in national product and Very big effect has been played in construction.And also just become the hot spot and emphasis of people's research to the processing of SAR image, wherein SAR image segmentation is as to the fundamental operation during image procossing, the also concern by more and more people.Spectral clustering Algorithm is common a kind of algorithm in processing image segmentation problem, but since the algorithm is difficult to handle the data of magnanimity, so its Using being restricted.
Dividing method based on mathematical morphology is method important always in the field of image segmentation.Based on Mathematical Morphology A kind of mathematical tool of the method based on image aspects, wherein more classical algorithm, such as watershed algorithm (watershed algorithm).Watershed algorithm has many good qualities, his scale is intuitive, and the width of cut-off rule is single pixel And closure is continuous, so being paid attention in recent years by many people, the method for dictionary learning is successfully applied to many fields, such as: Classification, segmentation, identification, super-resolution, denoising etc..
It is that everybody is common using the pixel in image as the method that a sample is handled in image segmentation problem Method, and traditional clustering method has spectral clustering etc., but the algorithm is difficult to that a large amount of data are effectively treated.To understand The problem of certainly above-mentioned SAR image is divided, the invention proposes the SAR image segmentation sides based on watershed algorithm and dictionary learning Method.Initial segmentation is carried out to image first, obtains the training sample of some tape labels, and the data of every a kind of tape label, benefit It obtains a statistic histogram under such obtained dictionary with arest neighbors, counts in dictionary atomic distance training data most Close number.Then in order to divide an image into some pockets, make over-segmentation of watershed, then by inside with picture Vegetarian refreshments is that unit is handled, and by using the method for statistic histogram, is sorted out, obtains final segmentation result.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the technical problem to be solved by the present invention is to how be directed to high resolution SAR Image carries out the segmentation identification of efficiently and accurately using the principle of watershed algorithm and dictionary learning.
To achieve the above object, the present invention provides the SAR image segmentation methods of a kind of watershed algorithm and dictionary learning. Its feature includes:
(1) SAR image pre-processes: since there are a large amount of speckle noises for SAR image itself, therefore first with Denoising Algorithm pair Original image is pre-processed, and so that image is become more smooth, while extracting three layers of wavelet character;
(2) initial partitioning is carried out to original image using K-means algorithm: selects some lean on from the segmentation result of every one kind The data of such nearly cluster centre;Every one kind data obtain such dictionary, the instruction of every one kind using K-means algorithm The arest neighbors for practicing data calculating and the category dictionary atom, obtains a statistic histogram, and every one kind data all obtain a histogram Figure;
(3) initial partitioning is carried out using watershed algorithm: to treated in (2) training image, finding out its morphocline Image calculates floating point activities image, then is split with watershed algorithm;
(4) region division: to the image after segmentation in (3), the data in each pocket regard a kind of data as Data acquisition system corresponds to every a kind of word by all data in the set respectively with the atom computing arest neighbors in each category dictionary We can obtain a statistic histogram to allusion quotation, calculate and be somebody's turn to do corresponding to what the histogram and original training data of every one kind obtained Error between the histogram of class;Judge that the error on which kind of is minimum, which kind of the data in set are just divided into, according to It is secondary to divide all pockets, obtain final segmentation result.
Further, in described (1) using open form state reconstruction filter remove in image some inessential details and Small noise.When calculating wavelet character, three layers of Stationary Wavelet Transform are carried out to original image, obtain coefficient matrix coefm1(i1, j1), m1=1,10, as m1=1, coefm1(i1,j1) represent low frequency coefficient;As m1 > 1, coefm1(i1,j1) represent height Frequency coefficient.10 dimension sub-belt energy feature e (i, j)=[e are extracted to each pixel1(i,j),...,e10(i,j)]T, as this The wavelet character of pixel:
Wherein, w × w is the size of sliding window, coefm1(i1,j1) it is i-th in stationary wavelet subband1Row jth1Column correspond to Coefficient value.
The classification number for needing to cluster in (2) is K, is selected in the segmentation result of every one kind some in such cluster The data of the heart;Every one kind data obtain such dictionary using K-means algorithm, the training data of every one kind calculate and The arest neighbors of the category dictionary atom, obtains a statistic histogram, and every one kind data all obtain a histogram;
Morphometric characters subtract corrosion transformation by dilation transformation and obtain in (3):
Wherein, b is structural element, and Θ indicates erosion operation,Dilation operation is indicated, if having grey scale change in image very Big pocket, then the value of structural element will suitably reduce, and otherwise may be filtered.Floating point activities image definition are as follows:
Fimg (f)=grad (f) * grad (f)/255.0
The pocket for generating watershed algorithm over-segmentation in (4) acquires statistics with the training sample of tape label Histogram seeks residual error by the statistic histogram as dictionary, to determine which kind of the region belongs to.Scheme with traditional SAR As dividing method is compared, validity and accuracy of the present invention in identification process are higher, and algorithm complexity is lower.
The technical effect of design of the invention, concrete scheme and generation will be described further below, with fully Solve the purpose of the present invention, feature and effect.
Specific embodiment
A specific embodiment of the invention addressed below
(1) remove some inessential details and small noise in image using open form state reconstruction filter.It is counting When calculating wavelet character, three layers of Stationary Wavelet Transform are carried out to original image, obtain coefficient matrix coefm1(i1,j1), m1=1,10, when When m1=1, coefm1(i1,j1) represent low frequency coefficient;As m1 > 1, coefm1(i1,j1) represent high frequency coefficient.To each pixel Point extracts 10 dimension sub-belt energy feature e (i, j)=[e1(i,j),...,e10(i,j)]T, wavelet character as the pixel:
Wherein, w × w is the size of sliding window, coefm1(i1,j1) it is i-th in stationary wavelet subband1Row jth1Column correspond to Coefficient value.
(2) initial partitioning is carried out to original image using K-means algorithm: selects some lean on from the segmentation result of every one kind The data of such nearly cluster centre;Every one kind data obtain such dictionary, the instruction of every one kind using K-means algorithm The arest neighbors for practicing data calculating and the category dictionary atom, obtains a statistic histogram, and every one kind data all obtain a histogram Figure;
(3) corrosion transformation is subtracted by dilation transformation and obtains morphometric characters:
Wherein, b is structural element, and Θ indicates erosion operation,Dilation operation is indicated, if having grey scale change in image very Big pocket, then the value of structural element will suitably reduce, and otherwise may be filtered.Floating point activities image definition are as follows:
Fimg (f)=grad (f) * grad (f)/255.0
(4) data in each pocket regard the data acquisition system of a kind of data as, by all data in the set Respectively with the atom computing arest neighbors in each category dictionary, corresponding to each category dictionary, we can obtain a statistics histogram Figure calculates the error between such histogram that the histogram for corresponding to every one kind and original training data obtain;Judge Error on which kind of is minimum, which kind of the data in set are just divided into, successively divides all pockets, Obtain final segmentation result.
The preferred embodiment of the present invention has been described in detail above.It should be appreciated that the ordinary skill of this field is without wound The property made labour, which according to the present invention can conceive, makes many modifications and variations.Therefore, all technician in the art Pass through the available technology of logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea Scheme, all should be within the scope of protection determined by the claims.

Claims (4)

1.一种分水岭算法和字典学习的SAR图像分割方法,其特征在于,包括:1. a SAR image segmentation method of watershed algorithm and dictionary learning, is characterized in that, comprises: 步骤(1)SAR图像预处理:由于SAR图像本身存在大量的斑点噪声,故先利用去噪算法对原图像进行预处理,使图像变的更加平滑,同时提取三层小波特征;Step (1) SAR image preprocessing: Since the SAR image itself has a large amount of speckle noise, the original image is preprocessed by a denoising algorithm to make the image smoother, and three-layer wavelet features are extracted at the same time; 步骤(2)利用K-means算法对原图像进行初次分割:从每一类的分割结果中挑选一些靠近该类聚类中心的数据;每一类数据使用K-means算法来获得一个该类的字典,每一类的训练数据计算与该类字典原子的最近邻,得到一个统计直方图,每一类数据都得到一个直方图;Step (2) Use the K-means algorithm to segment the original image for the first time: select some data close to the cluster center of this type from the segmentation results of each type; use the K-means algorithm for each type of data to obtain a Dictionary, each type of training data calculates the nearest neighbor to the dictionary atom of this type, and gets a statistical histogram, and each type of data gets a histogram; 步骤(3)使用分水岭算法进行初次分割:对(2)中处理后的训练图像,求出其形态梯度图像,算出浮点活动图像,再用分水岭算法进行分割;Step (3) uses watershed algorithm to perform initial segmentation: for the training image processed in (2), obtain its morphological gradient image, calculate floating-point moving image, and then use watershed algorithm to segment; 步骤(4)区域划分:对(3)中分割后的图像,每一个小块区域内的数据看作一类数据的数据集合,将该集合中的所有数据分别和每一类字典中的原子计算最近邻,对应每一类字典我们都可以得到一个统计直方图,计算对应于每一类的直方图和原始训练数据得到的该类的直方图之间的误差;判断在哪一类上的误差最小,就将集合内的数据划分为哪一类,依次将所有的小块区域进行划分,得到最终的分割结果。Step (4) Region division: For the image segmented in (3), the data in each small area is regarded as a data set of a type of data, and all the data in the set are respectively associated with the atoms in each type of dictionary. Calculate the nearest neighbor, corresponding to each type of dictionary, we can get a statistical histogram, calculate the error between the histogram corresponding to each type and the histogram of the type obtained from the original training data; determine which type of If the error is the smallest, the data in the set is divided into which category, and all the small areas are divided in turn to obtain the final segmentation result. 2.如权利要求1中利用开形态重建滤波器去掉图像中一些无关紧要的细节和微小的噪声,在计算小波特征时,对原图进行三层平稳小波变换,得到系数矩阵coefm1(i1,j1),m1=1,,10,当m1=1时,coefm1(i1,j1)代表低频系数;当m1>1时,coefm1(i1,j1)代表高频系数,对每个像素点提取10维子带能量特征e(i,j)=[e1(i,j),...,e10(i,j)]T,作为该像素点的小波特征:2. utilize open morphological reconstruction filter to remove some insignificant details and tiny noise in the image as claimed in claim 1, when calculating wavelet feature, carry out three-layer stationary wavelet transform to original image, obtain coefficient matrix coef m 1 (i 1 ,j 1 ),m1=1,,10, when m1=1, coef m1 (i 1 , j 1 ) represents low-frequency coefficients; when m1>1, coef m1 (i 1 , j 1 ) represents high-frequency coefficients , extract the 10-dimensional sub-band energy feature e(i,j)=[e 1 (i,j),...,e 10 (i,j)] T for each pixel, as the wavelet feature of the pixel : 其中,w×w为滑动窗口的大小,coefm1(i1,j1)为平稳小波子带中第i1行第j1列对应的系数值。Among them, w×w is the size of the sliding window, and coef m1 (i 1 , j 1 ) is the coefficient value corresponding to the i 1 row and the j 1 column in the stationary wavelet subband. 3.如权利要求1中需要聚类的类别数为K,每一类的分割结果中挑选一些靠近该类聚类中心的数据;每一类数据使用K-means算法来获得一个该类的字典,每一类的训练数据计算与该类字典原子的最近邻,得到一个统计直方图,每一类数据都得到一个直方图;3. The number of categories that need to be clustered in claim 1 is K, and some data close to the cluster center of this class are selected in the segmentation result of each class; each class of data uses the K-means algorithm to obtain a dictionary of this class , each type of training data calculates the nearest neighbor to the dictionary atom of this type, and obtains a statistical histogram, and each type of data obtains a histogram; 其所述步骤(3)中形态梯度图像通过膨胀变换减去腐蚀变换得到:In the step (3), the morphological gradient image is obtained by subtracting the erosion transformation from the dilation transformation: 其中,b为结构元素,Θ表示腐蚀运算,表示膨胀运算,如果图像中有灰度变化很大的小块区域,则结构元素的值要适当减小,否则可能被滤掉,浮点活动图像定义为:where b is a structuring element, Θ is an erosion operation, Represents the expansion operation. If there are small areas with large grayscale changes in the image, the value of the structural element should be appropriately reduced, otherwise it may be filtered out. The floating-point active image is defined as: fimg(f)=grad(f)*grad(f)/255.0fimg(f)=grad(f)*grad(f)/255.0 4.如权利要求1中将分水岭算法过分割产生的小块区域,与带标签的训练样本求得统计直方图,通过当作字典的统计直方图求取残差,来确定该区域属于哪一类。4. As claimed in claim 1, the small area generated by the watershed algorithm is over-segmented, and a statistical histogram is obtained with the labeled training sample, and the residual is obtained by using the statistical histogram as a dictionary to determine which area this area belongs to. kind.
CN201811322086.4A 2018-11-07 2018-11-07 A kind of SAR image segmentation method based on watershed algorithm and dictionary learning Pending CN109410223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811322086.4A CN109410223A (en) 2018-11-07 2018-11-07 A kind of SAR image segmentation method based on watershed algorithm and dictionary learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811322086.4A CN109410223A (en) 2018-11-07 2018-11-07 A kind of SAR image segmentation method based on watershed algorithm and dictionary learning

Publications (1)

Publication Number Publication Date
CN109410223A true CN109410223A (en) 2019-03-01

Family

ID=65472246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811322086.4A Pending CN109410223A (en) 2018-11-07 2018-11-07 A kind of SAR image segmentation method based on watershed algorithm and dictionary learning

Country Status (1)

Country Link
CN (1) CN109410223A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510309A (en) * 2009-03-30 2009-08-19 西安电子科技大学 Segmentation method for improving water parting SAR image based on compound wavelet veins region merge
CN102129573A (en) * 2011-03-10 2011-07-20 西安电子科技大学 SAR (Synthetic Aperture Radar) image segmentation method based on dictionary learning and sparse representation
CN104166856A (en) * 2014-07-30 2014-11-26 西安电子科技大学 Polarization SAR image classification method based on neighbor propagation clustering and region growing
CN104915676A (en) * 2015-05-19 2015-09-16 西安电子科技大学 Deep-level feature learning and watershed-based synthetic aperture radar (SAR) image classification method
KR101629163B1 (en) * 2015-01-12 2016-06-13 한밭대학교 산학협력단 Signal Filling Method Using Watershed Algorithm for MRC-based Image Compression
CN108460400A (en) * 2018-01-02 2018-08-28 南京师范大学 A kind of hyperspectral image classification method of combination various features information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510309A (en) * 2009-03-30 2009-08-19 西安电子科技大学 Segmentation method for improving water parting SAR image based on compound wavelet veins region merge
CN102129573A (en) * 2011-03-10 2011-07-20 西安电子科技大学 SAR (Synthetic Aperture Radar) image segmentation method based on dictionary learning and sparse representation
CN104166856A (en) * 2014-07-30 2014-11-26 西安电子科技大学 Polarization SAR image classification method based on neighbor propagation clustering and region growing
KR101629163B1 (en) * 2015-01-12 2016-06-13 한밭대학교 산학협력단 Signal Filling Method Using Watershed Algorithm for MRC-based Image Compression
CN104915676A (en) * 2015-05-19 2015-09-16 西安电子科技大学 Deep-level feature learning and watershed-based synthetic aperture radar (SAR) image classification method
CN108460400A (en) * 2018-01-02 2018-08-28 南京师范大学 A kind of hyperspectral image classification method of combination various features information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
郝阳阳: "基于字典学习的SAR图像分割", 《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑》 *
马秀丽 等: "基于分水岭-谱聚类的SAR图像分割", 《红外与毫米波学报》 *

Similar Documents

Publication Publication Date Title
CN109766858A (en) Three-dimensional convolution neural network hyperspectral image classification method combined with bilateral filtering
CN105809198B (en) SAR image target recognition method based on depth confidence network
CN102354397B (en) A face image super-resolution reconstruction method based on the similarity of facial features and organs
CN101794372B (en) Method for representing and recognizing gait characteristics based on frequency domain analysis
CN107563433B (en) Infrared small target detection method based on convolutional neural network
CN107862249B (en) A method and device for identifying bifurcated palm prints
CN110135296A (en) Airport runway FOD detection method based on convolutional neural network
CN108537751B (en) Thyroid ultrasound image automatic segmentation method based on radial basis function neural network
CN110458192B (en) Visual saliency-based classification method and system for hyperspectral remote sensing images
CN105184265A (en) Self-learning-based handwritten form numeric character string rapid recognition method
Guedri et al. Indexing and images retrieval by content
CN102411709A (en) Iris segmentation and identification method
Liang et al. Automatic defect detection of texture surface with an efficient texture removal network
CN110533100A (en) A method of CME detection and tracking is carried out based on machine learning
CN107330412A (en) A kind of face age estimation method based on depth rarefaction representation
CN116188786B (en) Image segmentation system for hepatic duct and biliary tract calculus
CN106056627A (en) Robustness object tracking method based on local identification sparse representation
Yan et al. Fsm-yolo: Apple leaf disease detection network based on adaptive feature capture and spatial context awareness
CN106971392A (en) A kind of combination DT CWT and MRF method for detecting change of remote sensing image and device
CN105930788A (en) Non-downsampling contour wave and PCA (principal component analysis) combining human face recognition method
Sandhya et al. Segmentation of lip print images using clustering and thresholding techniques
CN106952251B (en) An Image Saliency Detection Method Based on Adsorption Model
CN109410223A (en) A kind of SAR image segmentation method based on watershed algorithm and dictionary learning
Jinisha et al. Brain tumor classification using SVM and bag of visual word classifier
Kan et al. Two-phase greedy pursuit algorithm for automatic detection and characterization of transient calcium signaling

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190301

WD01 Invention patent application deemed withdrawn after publication