CN109712099A - Sonar image equalization method based on SLIC and adaptive filtering - Google Patents

Sonar image equalization method based on SLIC and adaptive filtering Download PDF

Info

Publication number
CN109712099A
CN109712099A CN201811474850.XA CN201811474850A CN109712099A CN 109712099 A CN109712099 A CN 109712099A CN 201811474850 A CN201811474850 A CN 201811474850A CN 109712099 A CN109712099 A CN 109712099A
Authority
CN
China
Prior art keywords
image
sonar
slic
sonar image
method based
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.)
Granted
Application number
CN201811474850.XA
Other languages
Chinese (zh)
Other versions
CN109712099B (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.)
Shandong University
Original Assignee
Shandong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University filed Critical Shandong University
Priority to CN201811474850.XA priority Critical patent/CN109712099B/en
Publication of CN109712099A publication Critical patent/CN109712099A/en
Application granted granted Critical
Publication of CN109712099B publication Critical patent/CN109712099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
  • Image Processing (AREA)

Abstract

本发明属于声呐图像增强技术领域,公开了基于SLIC和自适应滤波的声呐图像均衡化方法,1.滤除声呐图像中的斑点噪声;2.使用简单线性迭代聚类方法将声呐图像划分为不规则的图像块;3.对每个图像块分别进行像素值唯一化,排序像素值,获取像素中值;4.更新图像块灰度值,按照步骤3遍历所有图像块;5.多次将声呐图像划分为不同数量的图像块,分别重复进行步骤3和步骤4;6.对多次取得的步骤5的均衡化图像取平均,得到最终的灰度均衡化图像。本技术方案充分考虑了相邻超像素图像块的灰度相似性和每一个超像素图像块的灰度均衡性,灰度均衡化效果好,对提高声呐图像分类正确率有明显效果。

The invention belongs to the technical field of sonar image enhancement, and discloses a sonar image equalization method based on SLIC and adaptive filtering. Regular image blocks; 3. Unique pixel values for each image block, sort the pixel values, and obtain the median value of the pixels; 4. Update the gray value of the image block, and traverse all image blocks according to step 3; 5. Repeat the The sonar image is divided into different numbers of image blocks, and steps 3 and 4 are repeated respectively; 6. Average the equalized images in step 5 obtained multiple times to obtain the final gray-scale equalized image. The technical solution fully considers the grayscale similarity of adjacent superpixel image blocks and the grayscale balance of each superpixel image block, and the grayscale equalization effect is good, and has a significant effect on improving the accuracy of sonar image classification.

Description

Method is equalized based on the sonar image of SLIC and adaptive-filtering
Technical field
The present invention relates to sonar images to enhance technical field, more particularly to the sonar image based on SLIC and adaptive-filtering Equalization method.
Background technique
Sonar image classification be sub-sea floor targets identification important means, can be used for seafloor topography detection, submarine survey, The fields such as submarine pipeline tracking and state-detection.Currently, the unbalanced problem of gray scale in sonar image has seriously affected sonar figure As the effect of classification, so, solution sonar image gray scale is unbalanced to have a direct impact raising sonar image classification accuracy rate.
It is influenced by sea bottom complex environment, acoustic noise and towed body motion state, it is abnormal often to there is gray scale in sonar image Become.Existing sonar image grayscale equalization method is based primarily upon towed body motion state, these states are passed by the posture in towed body Sensor and height sensor provide.The method of sonar image rectification is paper Data of the Capus et al. in 2008 at present Correction for visualisation and classification of sidescan SONAR imagery intermediary The method to continue.It is influenced by ocean wave motion and sea bottom complex terrain, the towed body motion state that sensor provides is constantly in variation State, meanwhile, the sensitivity and accuracy of sensor itself have error, by these sensor data correction sonar images, Correction course can be made to have biggish calculation amount and calculate error.In the segmentation and classification of sonar image, unbalanced gray scale is to influence One main problem of sonar image segmentation accuracy.At present about in the research that sonar image is divided and classifies, gray scale is uneven Weighing apparatus problem is not considered separately, and people focus primarily on emphasis in the method for classification or segmentation, although can also obtain in this way compared with Good classification or segmentation effect, but algorithm design is more complex, process is also extremely time-consuming.
Simple linear iteration clusters (SLIC): Simple Linear Iterative Clustering.
Summary of the invention
It is an object of the invention in view of the above technical problems, obtain the sonar image of not tonal distortion, one kind is provided Method is equalized based on the sonar image of SLIC and adaptive-filtering, realizes the grayscale equalization of a variety of sonar images, is seabed Target acquisition and classification provide the sonar image of correction, super-pixel cluster are carried out to sonar image, based on adaptive-filtering to poly- The sonar image block that class divides is filtered, and by the way that above steps may be repeated multiple times, realizes the grayscale equalization of sonar image.Specifically Steps are as follows:
Step 1, the speckle noise in sonar image is filtered out;
Step 2, sonar image is divided into irregular image block using simple linear iterative clustering methods;
Step 3, it carries out pixel value respectively to each image block uniquely to change, sorted pixels value, obtains pixel median;
To image block P0And its all adjacent image block { P1,P2,K,Pk, uniquely change their pixel value, obtains pixel Race { A0,A1,A2,...,Ak, Ai(i=0,1 ..., k) indicate image block PiWhat the pixel value of (i=0,1 ..., k) was uniquely changed As a result, removal PiIn repetition pixel value;To AiPixel value in (i=0,1 ..., k) is arranged according to sequence from small to large Sequence;Take AiIntermediate value ai(i=0,1 ..., k).
Step 4, image block gray value is updated, traverses all image blocks according to step 3;
If method particularly includes: ai(i=1,2 ..., k) is equal to 0 or 255, then image block PiPicture in (i=1,2 ..., k) Plain value all resets to 0 or 255;If ai(i=1,2 ..., k) be not equal to 0, also be not equal to 255, and | ai-a0| (i=1,2 ..., K) it is less than given threshold, then uses Pi'=a0± rand (X) updates image block Pi(i=1,2 ..., gray value k), rand (X) it indicates to generate a number at random in [1, X] range, updated image block is Pi'。
Step 5, sonar image is repeatedly divided into the image block of different number, repeats step 3 and step 4 respectively;
Step 6, the equalization image of the step 5 repeatedly obtained is averaged, obtains final grayscale equalization image.
Further: X=5.
Further: image block number is 3000.
Further: the image block number in step 5 is 2500 and/or 2000 and/or 1500 and/or 1000.
The technical program is based on simple linear iterative clustering methods and sonar image is divided into irregular super-pixel image Block is filtered each super-pixel image block using adaptive filter method, has fully considered neighbouring super pixels image block Grey similarity and each super-pixel image block gray scale balance, pass through local equalization realize image entirety equilibrium Change, after realizing grayscale equalization, can be obtained by preferably using simple image partition method (such as k means clustering algorithm) Segmentation result;This method does not use the attitude data of sonar towed body mounted, avoids inherent data present in calculating process Error.The sonar image obtained using this method, can solve the unbalanced problem of gray scale in sonar image, grayscale equalization effect It is good, there is positive effect to sonar image classification accuracy rate is improved.
Detailed description of the invention
Fig. 1: sonar image;
Fig. 2: simple linear iteration clusters the cluster result to Fig. 1;
Fig. 3: Fig. 1 grayscale equalization result;
Segmentation result of Fig. 4: the k means clustering algorithm to Fig. 1;
Segmentation result of Fig. 5: the k means clustering algorithm to Fig. 3.
Wherein, the white grid lines in Fig. 2 is the boundary of each cluster block.
Specific embodiment
1-5 with reference to the accompanying drawings specifically describes embodiments of the present invention.
Step 1, median filtering is carried out to sonar image, the size of filter multiplies 3 for 3, and the purpose of this step is to filter out sound Speckle noise in image.Median filtering is the common method in image filtering.
Step 2, it (is proposed within Achanta 2012) using simple linear iterative clustering methods, sonar image is divided into not The image block of rule.The size of sonar image is 419 × 317, K in Fig. 1l=3000, KlIndicate the number for the image block that SLIC is divided Amount.Fig. 2 is SLIC cluster result, and the white grid lines in figure is the boundary of each cluster block.
Step 3- step 5, to each image block that SLIC is obtained, using adaptive-filtering, this step is pass of the invention Key step.Detailed process are as follows:
A. pixel value is carried out respectively to each image block and its adjacent image block uniquely to change.To image block P0And its institute There is adjacent image block { P1,P2,K,Pk, uniquely change their pixel value, obtains pixel race { A0,A1,A2,...,Ak, Ai(i=0, 1 ..., k) indicate image block PiThe result that the pixel value of (i=0,1 ..., k) is uniquely changed.If PiPixel value be 4,7,0,0, 0,1,2,3,3,4, }, the result A that pixel value is uniquely changediFor { 4,7,0,1,2,3 }.
B. to AiPixel value in (i=0,1 ..., k) is ranked up according to sequence from small to large.If AiFor 4,7,0, 1,2,3 }, the result of sequence is { 0,1,2,3,4,7 }.
C. after sorting, the intermediate value a of pixel value is foundi(i=0,1 ..., k).AiIntermediate value aiIt is 2.5.
The processing of a-c step can reduce the unbalanced influence to intermediate value of gray value.If image block is that grey value profile is equal Weighing apparatus, then the maximum value and minimum value and intermediate value difference of its gray value are little.And if image block grey value profile is unbalanced, The possible gap of maxima and minima is larger.When gray value number less than normal is more, intermediate value is biased to lesser gray value;Work as gray scale Be worth number bigger than normal it is more when, intermediate value can be biased to biggish gray value.Uniqueization processing in a step can reduce this deviation.
If d. ai(i=1,2 ..., k) is equal to 0 or 255, then image block PiPixel value in (i=1,2 ..., k) is all heavy It is set to 0 or 255.
If ai(i=1,2 ..., k) be not equal to 0, also be not equal to 255, and | ai-a0| (i=1,2 ..., k) it is less than setting Threshold value illustrates image block PiWith image block P0Gray value it is similar, according to formula (1) update image block Pi(i=1,2 ..., k) Gray value, rand (5) expression generate a number at random in [1,5] range.Updated image block is Pi'.After update, figure As block Pi' gray value and P0Approximation realizes P0Neighborhood gray value equalization.
Pi'=a0±rand(5) (1)
E. all image blocks are traversed according to step a-d.
Step 6, using smaller KlValue (such as Kl=2500, Kl=2000, Kl=1500, Kl=1000) step, is repeated 3- step 5, to different KlThe equalization image that value obtains is averaged, and obtains final grayscale equalization image.The gray scale of Fig. 1 is equal Weighing apparatusization result is as shown in Figure 3.
By grayscale equalization, the contrast of target (the white high bright part of Fig. 3) is become apparent from sonar image, in Fig. 1 The unbalanced problem of gray scale effectively solved;After grayscale equalization, sonar image can be achieved with using simple dividing method Effectively segmentation.It is (white that sonar image (Fig. 1 and Fig. 3) using simple k means clustering algorithm is divided into target area by Fig. 4 and Fig. 5 Color), background area (grey) and shadow region (black).As can be seen from the results, by grayscale equalization, segmentation effect is more preferable.
Embodiment only illustrates technical solution of the present invention, rather than carries out any restrictions to it;Although with reference to the foregoing embodiments Invention is explained in detail, for those of ordinary skill in the art, still can be to previous embodiment institute The technical solution of record is modified or equivalent replacement of some of the technical features;And these modifications or substitutions, and The essence of corresponding technical solution is not set to be detached from the spirit and scope of claimed technical solution of the invention.

Claims (7)

1.基于SLIC和自适应滤波的声呐图像均衡化方法,其特征在于,包括以下步骤:1. the sonar image equalization method based on SLIC and adaptive filtering, is characterized in that, comprises the following steps: 步骤1,滤除声呐图像中的斑点噪声;Step 1, filter out speckle noise in the sonar image; 步骤2,使用简单线性迭代聚类方法将声呐图像划分为不规则的图像块;Step 2, using a simple linear iterative clustering method to divide the sonar image into irregular image blocks; 步骤3,对每个图像块分别进行像素值唯一化,排序像素值,获取像素中值;Step 3: Unique pixel values are performed on each image block, pixel values are sorted, and median pixel values are obtained; 步骤4,更新图像块灰度值,按照步骤3遍历所有图像块;Step 4, update the gray value of the image block, and traverse all the image blocks according to step 3; 步骤5,多次将声呐图像划分为不同数量的图像块,分别重复进行步骤3和步骤4;Step 5: Divide the sonar image into image blocks of different numbers for many times, and repeat step 3 and step 4 respectively; 步骤6,对多次取得的步骤5的均衡化图像取平均,得到最终的灰度均衡化图像。In step 6, the equalized images obtained in step 5 are averaged to obtain a final gray-scale equalized image. 2.根据权利要求1所述的基于SLIC和自适应滤波的声呐图像均衡化方法,其特征在于,步骤3的具体方法为:对图像块P0以及其所有相邻图像块{P1,P2,K,Pk},唯一化它们的像素值,得到像素族{A0,A1,A2,...,Ak},Ai(i=0,1,...,k)表示图像块Pi(i=0,1,...,k)的像素值唯一化的结果,去除Pi中的重复像素值;对Ai(i=0,1,...,k)中的像素值按照从小到大的顺序进行排序;取Ai的中值ai(i=0,1,...,k)。2. the sonar image equalization method based on SLIC and adaptive filtering according to claim 1, is characterized in that, the concrete method of step 3 is: to image block P 0 and all its adjacent image blocks {P 1 , P 2 , K, P k }, uniquely their pixel values, get the pixel family {A 0 , A 1 , A 2 ,...,A k }, A i (i=0,1,...,k ) represents the unique result of the pixel value of the image block P i (i=0,1,...,k), and removes the repeated pixel values in P i ; for A i (i=0,1,..., The pixel values in k) are sorted in ascending order; take the median value of A i ( i =0,1,...,k). 3.根据权利要求2所述的基于SLIC和自适应滤波的声呐图像均衡化方法,其特征在于,步骤4的具体方法为:若ai(i=1,2,...,k)等于0或255,则图像块Pi(i=1,2,...,k)中的像素值都重置为0或255;若ai(i=1,2,...,k)不等于0,也不等于255,且|ai-a0|(i=1,2,...,k)小于设定阈值,则使用Pi'=a0±rand(X)更新图像块Pi(i=1,2,...,k)的灰度值,rand(X)表示在[1,X]范围内随机生成一个数字,更新后的图像块为Pi'。3. the sonar image equalization method based on SLIC and adaptive filtering according to claim 2, is characterized in that, the concrete method of step 4 is: if a i (i=1,2,...,k) is equal to 0 or 255, the pixel values in the image block P i (i=1,2,...,k) are reset to 0 or 255; if a i (i=1,2,...,k) is not equal to 0 or 255, and |a i -a 0 |(i=1,2,...,k) is less than the set threshold, then use P i '=a 0 ±rand(X) to update the image The gray value of the block Pi ( i =1,2,...,k), rand(X) represents a random number generated in the range of [1,X], and the updated image block is Pi '. 4.根据权利要求1-3任一所述的基于SLIC和自适应滤波的声呐图像均衡化方法,其特征在于,步骤5的具体方法为:将声呐图像划分为更少数量的图像块。4. The sonar image equalization method based on SLIC and adaptive filtering according to any one of claims 1-3, wherein the specific method of step 5 is: dividing the sonar image into a smaller number of image blocks. 5.根据权利要求3所述的基于SLIC和自适应滤波的声呐图像均衡化方法,其特征在于:X=5。5 . The sonar image equalization method based on SLIC and adaptive filtering according to claim 3 , wherein: X=5. 6 . 6.根据权利要求1、2、3或5任一所述的基于SLIC和自适应滤波的声呐图像均衡化方法,其特征在于:图像块个数为3000。6 . The sonar image equalization method based on SLIC and adaptive filtering according to any one of claims 1 , 2 , 3 or 5 , wherein the number of image blocks is 3000. 7 . 7.根据权利要求6所述的基于SLIC和自适应滤波的声呐图像均衡化方法,其特征在于:步骤5中的图像块个数为2500和/或2000和/或1500和/或1000。7 . The sonar image equalization method based on SLIC and adaptive filtering according to claim 6 , wherein the number of image blocks in step 5 is 2500 and/or 2000 and/or 1500 and/or 1000. 8 .
CN201811474850.XA 2018-12-04 2018-12-04 Sonar image equalization method based on SLIC and adaptive filtering Active CN109712099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811474850.XA CN109712099B (en) 2018-12-04 2018-12-04 Sonar image equalization method based on SLIC and adaptive filtering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811474850.XA CN109712099B (en) 2018-12-04 2018-12-04 Sonar image equalization method based on SLIC and adaptive filtering

Publications (2)

Publication Number Publication Date
CN109712099A true CN109712099A (en) 2019-05-03
CN109712099B CN109712099B (en) 2022-12-27

Family

ID=66254028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811474850.XA Active CN109712099B (en) 2018-12-04 2018-12-04 Sonar image equalization method based on SLIC and adaptive filtering

Country Status (1)

Country Link
CN (1) CN109712099B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335219A (en) * 2019-07-17 2019-10-15 中国电子科技集团公司第十三研究所 A kind of bearing calibration, means for correcting and the terminal of pixel distortion

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1347621A (en) * 1999-12-14 2002-05-01 皇家菲利浦电子有限公司 Reducing 'blocking picture' effects
US20140147042A1 (en) * 2012-11-27 2014-05-29 Chenyang Ge Device for uniformly enhancing images
US20170046816A1 (en) * 2015-08-14 2017-02-16 Sharp Laboratories Of America, Inc. Super resolution image enhancement technique
US20180270479A1 (en) * 2017-03-16 2018-09-20 Mediatek Inc. Non-local adaptive loop filter processing
CN110706177A (en) * 2019-09-30 2020-01-17 北京大学 A method and system for grayscale equalization of side-scan sonar images
CN110852959A (en) * 2019-10-14 2020-02-28 江苏帝一集团有限公司 Sonar image filtering method based on novel median filtering algorithm

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1347621A (en) * 1999-12-14 2002-05-01 皇家菲利浦电子有限公司 Reducing 'blocking picture' effects
US20140147042A1 (en) * 2012-11-27 2014-05-29 Chenyang Ge Device for uniformly enhancing images
US20170046816A1 (en) * 2015-08-14 2017-02-16 Sharp Laboratories Of America, Inc. Super resolution image enhancement technique
US20180270479A1 (en) * 2017-03-16 2018-09-20 Mediatek Inc. Non-local adaptive loop filter processing
CN110706177A (en) * 2019-09-30 2020-01-17 北京大学 A method and system for grayscale equalization of side-scan sonar images
CN110852959A (en) * 2019-10-14 2020-02-28 江苏帝一集团有限公司 Sonar image filtering method based on novel median filtering algorithm

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335219A (en) * 2019-07-17 2019-10-15 中国电子科技集团公司第十三研究所 A kind of bearing calibration, means for correcting and the terminal of pixel distortion
CN110335219B (en) * 2019-07-17 2021-09-28 中国电子科技集团公司第十三研究所 Correction method and correction device for pixel distortion and terminal

Also Published As

Publication number Publication date
CN109712099B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CN109272489B (en) Infrared weak and small target detection method based on background suppression and multi-scale local entropy
CN107818555B (en) Multi-dictionary remote sensing image space-time fusion method based on maximum posterior
CN116091455A (en) Steel mesh surface defect judging method based on machine vision
CN107169962B (en) Gray level image fast segmentation method based on space density constraint kernel fuzzy clustering
CN109377450B (en) Edge protection denoising method
CN103353987A (en) Superpixel segmentation method based on fuzzy theory
CN103093443B (en) Based on the image salt-pepper noise adaptive filter method of GA-BP neural network
CN102034224B (en) Pseudo-Zernike moment-based image denoising algorithm
CN106372598A (en) Image stabilizing method based on image characteristic detection for eliminating video rotation and jittering
CN109903254B (en) An Improved Bilateral Filtering Method Based on Poisson Kernel
CN107506795A (en) A kind of local gray level histogram feature towards images match describes sub- method for building up and image matching method
CN109461164A (en) A kind of infrared small target detection method based on direction nuclear reconstitution
CN110751680A (en) An Image Processing Method with Fast Alignment Algorithm
CN111783583A (en) Coherent Speckle Suppression Method in SAR Image Based on Non-local Mean Algorithm
CN114119437A (en) GMS-based image stitching method for improving moving object distortion
CN102592290A (en) Method for detecting moving target region aiming at underwater microscopic video
CN113205494A (en) Infrared small target detection method and system based on adaptive scale image block weighting difference measurement
CN115272174B (en) Municipal road detection method and system
CN109003247A (en) The minimizing technology of color image mixed noise
CN109712099A (en) Sonar image equalization method based on SLIC and adaptive filtering
CN109241981B (en) A feature detection method based on sparse coding
CN117974655B (en) Asphalt road quality detection method based on computer vision
CN117876286B (en) Intelligent ship cleaning system for underwater robot
CN108470345A (en) A kind of method for detecting image edge of adaptive threshold
CN113792746B (en) Yolo V3-based ground penetrating radar image target detection method

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