TWI736446B - Seabed edge detection method capable of filtering horizontal noise - Google Patents

Seabed edge detection method capable of filtering horizontal noise Download PDF

Info

Publication number
TWI736446B
TWI736446B TW109135544A TW109135544A TWI736446B TW I736446 B TWI736446 B TW I736446B TW 109135544 A TW109135544 A TW 109135544A TW 109135544 A TW109135544 A TW 109135544A TW I736446 B TWI736446 B TW I736446B
Authority
TW
Taiwan
Prior art keywords
image
seabed
pixel
otsu
edge detection
Prior art date
Application number
TW109135544A
Other languages
Chinese (zh)
Other versions
TW202215368A (en
Inventor
施建州
曾奕睿
羅群智
洪盟峯
Original Assignee
國立高雄科技大學
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 國立高雄科技大學 filed Critical 國立高雄科技大學
Priority to TW109135544A priority Critical patent/TWI736446B/en
Application granted granted Critical
Publication of TWI736446B publication Critical patent/TWI736446B/en
Publication of TW202215368A publication Critical patent/TW202215368A/en

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本發明提出一種可濾橫紋雜訊之海床邊線偵測方法,包含:(a)輸入一 灰階影像步驟、(b)影像前處理步驟及(c)海床邊線偵測與標記步驟;其中,(b)影像前處理步驟,包含:一影像銳化步驟、一影像模糊步驟及一Otsu二值化(Otsu Threshold)步驟;其中,(c)海床邊線偵測與標記步驟,根據Otsu二值化側掃聲納影像並透過複數滑動視窗(sliding window)用以尋找海床邊線特徵,滑動視窗用以偵測Otsu二值化側掃聲納影像中像素值的變化。本發明所能達成的有利功效在於,透過(b)影像前處理步驟分割出海床與水團,而在(c)海床邊線偵測與標記之步驟,是使用滑動視窗的方式,偵測海床邊線所在位置並標記之。 The present invention provides a seabed edge detection method capable of filtering horizontal noise, including: (a) input one Grayscale image step, (b) image pre-processing step, and (c) seabed edge detection and marking step; among them, (b) image pre-processing step includes: an image sharpening step, an image blurring step, and a step Otsu Binarization (Otsu Threshold) step; where (c) the seabed edge detection and marking step, according to the Otsu binarization side scan sonar image and through multiple sliding windows to find the seabed edge Line feature, the sliding window is used to detect the change of the pixel value in the Otsu binarized side scan sonar image. The advantageous effect that the present invention can achieve is that the seabed and water masses are separated through the (b) image pre-processing step, and the step of detecting and marking the edge of the seabed in (c) is to use a sliding window to detect Mark the location of the seabed edge.

Description

可濾橫紋雜訊之海床邊線偵測方法 Seabed edge detection method capable of filtering horizontal noise

本發明屬於一種海床邊線偵測方法,特別是一種可濾橫紋雜訊之海床邊線偵測方法。 The invention belongs to a seabed edge detection method, in particular to a seabed edge detection method capable of filtering horizontal noise.

側掃聲納系統為一種廣泛應用於水下地形地貌探測的主動式聲納儀器,其原理是透過拖魚發射高頻聲納訊號至海床並接收其回波訊號,藉由所收到訊號反射的強弱轉換成0~255(像素,pixel)的灰階影像。側掃聲納系統包含:拖魚裝置、訊號控制器(Starfish Scanline)、全球定位單元及控制電腦。 The side scan sonar system is an active sonar instrument that is widely used in underwater terrain and landform detection. Its principle is to transmit high-frequency sonar signals to the seabed through tow fish and receive the echo signals. The intensity is converted into a grayscale image of 0~255 (pixel, pixel). The side scan sonar system includes: fish towing device, signal controller (Starfish Scanline), global positioning unit and control computer.

在側掃聲納探測之影像擷取或傳輸的過程中,會因為脈衝干擾而產生雜訊點,然而側掃聲納影像的優劣,取決於其中雜訊像素點的多寡。干擾源例如測量船本身的螺旋槳及引擎尾流的噪音、自然界海洋生物所發出的音頻,以及存在於海洋環境中的背景噪音,例如地殼運動及海表層風浪等。諸如此類的噪音將會對側掃聲納訊號在傳輸過程中,造成聲波傳遞的干擾,而這些干擾在側掃聲納影像中將會以雜訊的方式呈現。因此,如何對側掃聲納影像進行雜訊濾除,是本發明欲要解決的非常重要的議題之一。 In the process of image capture or transmission of side scan sonar detection, noise points will be generated due to pulse interference. However, the quality of the side scan sonar image depends on the number of noise pixels in it. Interference sources such as the noise of the propeller and engine wake of the measuring ship, the audio generated by marine organisms in nature, and the background noise that exists in the marine environment, such as the movement of the crust and the wind and waves on the sea surface. Such noises will cause interference to the transmission of sound waves during the transmission of the side scan sonar signal, and these interferences will appear as noise in the side scan sonar image. Therefore, how to filter the noise of the side scan sonar image is one of the very important issues to be solved by the present invention.

此外,側掃聲納系統所提供的海床邊線偵測,係以判定第一回水波,借以推估海床邊線。然而,第一回波容易受到懸浮物、尾流氣泡及海床地形地貌的影響,造成近九成的海床邊線標示錯誤。因此,提出新的海床邊線偵測技術來改善以第一回波判定拖魚與海床間的距離誤判的問題,是本發明須要面對的另一個議題。 In addition, the seabed edge detection provided by the side scan sonar system is used to determine the first return water wave and estimate the seabed edge. However, the first echo is easily affected by suspended solids, wake bubbles, and seabed topography, causing nearly 90% of seabed edges to be marked incorrectly. Therefore, to propose a new seabed edge detection technology to improve the misjudgment of the distance between the towfish and the seabed by the first echo is another issue that the present invention has to face.

側掃聲納影像進行雜訊及第一回波干擾的影像處理,將有助於後續的海床邊線偵測技術研究。透過海床邊線偵測技術來標示海床邊線,除了可以提供正確拖魚與海床間的距離資訊,確保拖魚不會碰觸海床,更可增加側掃聲納的影像品質(拖魚貼近海床所測量的聲納品質較佳)。 Image processing of side scan sonar images for noise and first echo interference will help the subsequent research on seabed edge detection technology. The seabed edge detection technology is used to mark the seabed edge. In addition to providing the correct distance information between the towing fish and the seabed, it can ensure that the towing fish will not touch the seabed, and it can also increase the image quality of the side scan sonar ( The quality of the sonar measured when the fish is dragged close to the seabed is better).

現有側掃聲納系統無法濾除船隻噪音干擾所產生黑色橫紋雜訊,以及在偵測海床邊線技術上,仍有諸多改善空間,為各方所欲解決之課題,並亟待加以改良。 The existing side scan sonar system cannot filter the black horizontal noise caused by ship noise interference, and there is still a lot of room for improvement in the seabed edge detection technology. It is a problem that all parties want to solve and urgently need to be improved. .

為解決前揭之問題,本發明之目的係提供一種可濾橫紋雜訊之海床邊線偵測方法之技術方案。 In order to solve the aforementioned problems, the object of the present invention is to provide a technical solution for detecting the edge of the seabed that can filter the horizontal noise.

為達上述目的,本發明提出一種可濾橫紋雜訊之海床邊線偵測方法,包含下列步驟:(a)輸入灰階影像步驟,當側掃聲納控制電腦接收到海床回波後,將回波分貝值轉換成側掃聲納影像(灰階影像)。(b)影像前處理步驟,包含:(b1)影像銳化步驟,濾波核通過原始像素點,並將濾波核大小(kernal size,ksize)為k*k個濾波核像素值與該灰階影像之原始像素值依序進行相乘運算,相乘運算後取得k*k個乘積像素值依序進行加總運算,若加總值大於像素值255,則將該加總值視為上限值255;以及(b2) 影像模糊步驟,將銳化後之像素值經由平滑濾波器(burring)處理,產生模糊化之側掃聲納影像;最後透過(b3)Otsu二值化(Otsu Threshold)步驟,將模糊化的側掃聲納影像進行影像分割。在(c)海床邊線偵測與標記步驟中,Otsu二值化側掃聲納影像透過滑動視窗(sliding window)方法,分左舷與右舷二個方向滑動,偵測Otsu二值化側掃聲納影像中像素值變化,藉以偵測海床邊線特徵。 To achieve the above objective, the present invention proposes a seabed edge detection method that can filter horizontal noise, which includes the following steps: (a) the step of inputting grayscale images, when the side scan sonar control computer receives the seabed echo Then, the echo decibel value is converted into a side scan sonar image (gray-scale image). (b) Image pre-processing step, including: (b1) Image sharpening step, the filter kernel passes through the original pixels, and the filter kernel size ( kernal size, ksize ) is k * k filter kernel pixel values and the grayscale image The original pixel values are multiplied in order, and k * k product pixel values are obtained after the multiplication, and then summed in order. If the sum is greater than the pixel value 255, the sum is regarded as the upper limit 255; and (b2) the image blurring step, the sharpened pixel values are processed by a smoothing filter (burring) to produce a blurred side scan sonar image; and finally through the (b3) Otsu Threshold step , To segment the blurred side scan sonar image. In (c) the seabed edge detection and marking step, the Otsu binarized side scan sonar image uses a sliding window method to slide in port and starboard directions to detect the Otsu binarized side scan The pixel value changes in the sonar image to detect the edge features of the seabed.

本發明所能達成的有利功效在於,透過與(b)影像前處理步驟濾除雜訊,增強海床邊線特徵;以及(c)海床邊線偵測與標記步驟,使用滑動視窗的方式偵測海床邊線所在位置並標記之。透過本發明海床邊線的偵測與標記,獲得標記有海床邊線的側掃聲納影像,輔助水下地形地貌的探測,且更精確的計算出拖魚和海床地形間的距離。 The advantageous effect that the present invention can achieve is to filter out noise through and (b) the image pre-processing step to enhance the seabed edge line characteristics; and (c) the seabed edge line detection and marking step, using a sliding window method Detect the location of the seabed edge and mark it. Through the detection and marking of the seabed edge of the present invention, a side scan sonar image marked with the seabed edge is obtained, which assists in the detection of underwater terrain and landforms, and more accurately calculates the distance between the tow fish and the seabed terrain .

S10-S40:步驟 S10-S40: steps

10:拖魚 10: Drag fish

11:左舷聲納訊號 11: Port side sonar signal

12:右舷聲納訊號 12: Starboard sonar signal

20:左舷 20: Port side

30:右舷 30: starboard

40:噪音 40: Noise

50:海床 50: Seabed

51:左舷海床 51: Port Seabed

52:右舷海床 52: Starboard Seabed

60:左舷水團 60: Port side water mass

70:右舷水團 70: Starboard Water Mass

80:高度 80: height

90:目標物 90: target

100:陰影 100: shadow

110:沈船 110: Shipwreck

120:左舷海床邊線 120: Port side seabed edge

130:右舷海床邊線 130: Starboard Seabed Edge

140:海床物件 140: Seabed Objects

150:前景 150: foreground

151:左舷二值化海床 151: Port Side Binary Seabed

152:右舷二值化海床 152: Starboard Binary Seabed

160:背景 160: background

161:左舷二值化水團 161: Port Side Binary Water Group

162:右舷二值化水團 162: Starboard Binary Water Group

170:左舷滑動視窗 170: Port side sliding window

180:右舷滑動視窗 180: Starboard sliding window

190:列 190: Column

200:欄 200: column

A、B:橫紋雜訊 A, B: horizontal noise

[圖1]為本發明之方塊流程圖。 [Figure 1] is a block flow diagram of the present invention.

[圖2]為水下環境或船隻引擎之噪音干擾示意圖。 [Figure 2] is a schematic diagram of noise interference in underwater environments or ship engines.

[圖3]為海床與水團成像示意圖。 [Figure 3] is a schematic diagram of seabed and water mass imaging.

[圖4]為沈船與噪音干擾之示意圖。 [Figure 4] is a schematic diagram of sinking ship and noise interference.

[圖5]為影像銳化前後對照圖。 [Figure 5] is a comparison chart before and after image sharpening.

[圖6]為有無做影像銳化之低通濾波結果對照圖。 [Figure 6] Comparison of the results of low-pass filtering with or without image sharpening.

[圖7]為Otsu二值化處理示意圖。 [Figure 7] is a schematic diagram of Otsu binarization processing.

[圖8]為有無經影像銳化及低通濾波的Otsu二值化結果圖。 [Figure 8] The result of Otsu binarization with or without image sharpening and low-pass filtering.

[圖9]為海床邊線判定示意圖。 [Figure 9] is a schematic diagram of the seabed edge determination.

[圖10]為海床邊線偵測與標記結果圖。 [Figure 10] is the result of detection and marking of the seabed edge.

[圖11]為連續率及對稱率結果圖。 [Figure 11] is a graph showing the results of continuity rate and symmetry rate.

[圖12]為連續率及對稱率平均值。 [Figure 12] is the average of continuity rate and symmetry rate.

以下將描述具體之實施例以說明本發明之實施態樣,惟其並非用以限制本發明所欲保護之範疇。 Specific embodiments will be described below to illustrate the implementation of the present invention, but they are not used to limit the scope of protection of the present invention.

定義 definition

聲納訊號:請參閱圖2,拖魚10分別自船尾之左舷20向左下及船尾之右舷30向右下,發射聲納訊號,其中拖魚10自船尾之左舷發射出的聲納訊號為左舷聲納訊號11,拖魚10自船尾之右舷30發射出的聲納訊號為右舷聲納訊號12。聲納訊號經水中傳遞,聲納訊號抵達海床50後反射回拖魚10。 Sonar signal: Please refer to Figure 2. The towfish 10 emits sonar signals from the port side of the stern 20 to lower left and the starboard side of the stern 30 to lower right. The sonar signal emitted by the towfish 10 from the port side of the stern is the port side. The sonar signal 11, the sonar signal emitted by the towfish 10 from the starboard side 30 of the stern is the starboard sonar signal 12. The sonar signal is transmitted through the water, and after reaching the seabed 50, the sonar signal is reflected back to the towfish 10.

海床:請參閱圖3,拖魚10裝置是整個側掃聲納系統的核心探測工具,拖魚10裝置利用左舷與右舷兩側音鼓發射聲納訊號抵達海床50;接著,拖魚10裝置接收反射聲納訊號後,訊號控制器經類比與數位訊號轉換後,將反射聲納訊號傳輸到控制電腦,以瀑布式由上而下呈現探測之水下地形地貌,即為側掃聲納灰階影像之呈現方式。更詳細說明(請參閱圖3),左舷聲納訊號11經水中傳遞抵達海床50後反射回拖魚10,經由訊號控制器將左舷聲納訊號11所有海床50回波能量值(dB)轉換成可視化的左舷海床51資訊;右舷聲納訊號12經水中傳遞抵達海床50後反射回拖魚10,經由訊號控制器將右舷聲納訊號12所有海床回波能量值(dB)轉換成可視化的右舷海床52資訊。 Seabed: Please refer to Figure 3. Towfish 10 is the core detection tool of the entire side scan sonar system. Towfish 10 uses port and starboard side drums to emit sonar signals to reach the seabed 50; then, Towfish 10 After the device receives the reflected sonar signal, the signal controller transmits the reflected sonar signal to the control computer after the analog and digital signal conversion, and presents the detected underwater terrain and landforms from top to bottom in a waterfall style, that is, side scan sonar The presentation method of grayscale images. In more detail (please refer to Figure 3), the port side sonar signal 11 is transmitted through the water to the seabed 50 and then reflected back to the towfish 10. The port side sonar signal 11 is echoed to the seabed 50 through the signal controller. The energy value (dB) Converted into visualized port side seabed 51 information; starboard sonar signal 12 is transmitted through the water to the seabed 50 and then reflected back to towfish 10, and all seabed echo energy values (dB) of starboard sonar signal 12 are converted by the signal controller 52 information on the starboard side seabed into a visualization.

水團:請參閱圖3,圖3下方為部份的原始側掃聲納影像,當聲納訊號之 第一波束發射後,在水中傳遞至海床50並反射回拖魚10的時間長度,用以計算出拖魚10與海床50之間的距離80,該距離80稱之為水團。更詳細說明(請參閱圖4a),水團包含左舷水團60與右舷水團70,左舷水團60及右舷水團70位於左舷海床51及右舷海床52之間。 Water mass: Please refer to Figure 3. The bottom part of Figure 3 is part of the original side scan sonar image. After the first beam is launched, the length of time that it passes to the seabed 50 in the water and is reflected back to the towfish 10 is used to calculate the distance 80 between the towfish 10 and the seabed 50, which is called a water mass. In more detail (please refer to Figure 4a), the water group includes a port side water group 60 and a starboard side water group 70. The port side water group 60 and the starboard side water group 70 are located between the port side sea bed 51 and the starboard side sea bed 52.

左舷海床邊線:請參閱圖4a,左舷海床邊線120位於左舷海床51與左舷水團60間,稱之為左舷海床邊線120。 Port side seabed sideline: Please refer to Figure 4a, the port side seabed sideline 120 is located between the port side seabed 51 and the port side water mass 60, which is called the port side seabed sideline 120.

右舷海床邊線:請參閱圖4a,右舷海床邊線130位於右舷海床52與右舷水團70間,稱之為右舷海床邊線130。 Starboard seabed edge: Please refer to Figure 4a. The starboard seabed edge 130 is located between the starboard seabed 52 and the starboard water mass 70, and is called the starboard seabed edge 130.

橫紋雜訊:請參閱圖4b紅框處,為原始側掃聲納影像。其中,橫紋雜訊A分布於左舷海床51、左舷海床邊線120及左舷水團60;橫紋雜訊B分布於右舷海床52、右舷海床邊線130及左舷水團70。 Horizontal noise: Please refer to the red frame in Figure 4b, which is the original side scan sonar image. Among them, the horizontal noise A is distributed on the port seabed 51, the port side seabed edge 120 and the port side water mass 60; the horizontal noise B is distributed on the starboard seabed 52, the starboard seabed edge 130 and the port water mass 70.

本發明提供一種可濾橫紋雜訊之海床邊線偵測方法,方法與流程請參閱圖1,包括以下步驟:(a)輸入側掃聲納灰階影像步驟S10,其中該灰階影像包含海床與水團資訊,以及可能發生的雜訊干擾(如橫紋雜訊A與B),海床邊線則位於海床與水團間,橫紋雜訊則分布於海床、海床邊線及水團;(b)影像前處理步驟S20,包含進行影像銳化S21以產生銳化影像(請參閱圖5),以及將該銳化影像進行平滑濾波器的模糊處理S22(請參閱圖6),濾除橫紋雜訊A與B並平滑化該海床影像,產生海床模糊影像,然後將海床模糊影像進行Otus二值化分割以產生分割影像S23,其中該分割影像包含前景150部分及背景160部分(請參閱圖7,前景150部分係為水團,背景160部分係為海床);及(c)海床邊線偵測與標記步驟S30,利用滑動視窗(sliding window)偵測該分割影像之水團及海床的像素轉換,若符合像素轉換次數為一次,則判定為找到該海 床邊線並標記該海床邊線,進而取得完成標記海床邊線。 The present invention provides a seabed edge detection method capable of filtering horizontal noise. Please refer to FIG. 1 for the method and flow. The method includes the following steps: (a) Input side scan sonar grayscale image step S10, wherein the grayscale image Contains the seabed and water mass information, as well as possible noise interference (such as horizontal noise A and B). The seabed edge is located between the seabed and the water mass, and the horizontal noise is distributed on the seabed and sea. Bedside line and water mass; (b) image pre-processing step S20, including image sharpening S21 to generate a sharpened image (see Figure 5), and the sharpened image is subjected to smoothing filter blur processing S22 (please Refer to Figure 6), filter the horizontal noise A and B and smooth the seabed image to produce a blurred seabed image, and then perform Otus binarization segmentation of the blurred seabed image to generate a segmented image S23, where the segmented image Including the foreground 150 part and the background 160 part (see Figure 7, the foreground 150 part is the water mass, and the background 160 part is the seabed); and (c) the seabed edge detection and marking step S30, using the sliding window ( sliding window) Detect the pixel conversion of the water mass and seabed of the segmented image. If the number of pixel conversion matches is once, it is determined that the sea is found. The edge of the bed and mark the edge of the sea bed, and then obtain the finished marking the edge of the sea bed.

其中,在(a)輸入灰階影像步驟S10,當側掃聲納控制電腦端收到海床回波訊號強度(dB)後,會依訊號強度轉換成側掃聲納影像,其中,控制電腦可呈現出不同單一色調的側掃聲納影像。在此步驟S10,控制電腦將側掃聲納回波訊號強度進行灰階影像的轉換,有利於後續(b)影像前處理步驟S20及(c)海床邊線偵測與標記步驟S30的處理效率。 Among them, in step S10 of (a) inputting the grayscale image, when the side scan sonar control computer receives the seabed echo signal strength (dB), it will be converted into a side scan sonar image according to the signal strength, where the control computer It can present side scan sonar images with different single tones. In this step S10, the control computer converts the intensity of the side scan sonar echo signal to the grayscale image, which is beneficial to the subsequent (b) image preprocessing step S20 and (c) seabed edge detection and marking step S30. efficient.

其中,在(b)影像前處理步驟S20之影像銳化S21,輸入原始側掃聲納影像與創建一儲存空間用以存放經過影像銳化處理後的銳化影像,而該儲存空間大小(pixel*pixel)與原始側掃聲納影像之影像大小(pixel*pixel)相同。接著初始化濾波核(Filter)的初始位置,使濾波核掃描位置皆從該原始側掃聲納影像的初始位置(0,0)開始。之後將濾波核逐一滑過並覆蓋整張原始側掃聲納影像中的每一原始像素值,並將濾波核大小(kernal size,ksize)k*k個濾波核像素值與原始側掃聲納影像之原始像素值依序進行相乘運算,相乘運算後取得k*k個乘積像素值依序進行加總運算,若加總值大於像素值255,則將該加總值視為上限值255。原始像素值經過影像銳化處理後獲得銳化像素值,計算方式如方程式(1)至(2)所示: Wherein, in the image sharpening S21 of (b) image preprocessing step S20, the original side scan sonar image is input and a storage space is created for storing the sharpened image after the image sharpening process. The size of the storage space ( pixel * pixel ) is the same as the image size (pixel * pixel ) of the original side scan sonar image. Then initialize the initial position of the filter core (Filter), so that the scanning positions of the filter core all start from the initial position (0, 0) of the original side scan sonar image. After that, the filter kernels are slid through and cover each original pixel value in the entire original side scan sonar image, and the filter kernel size ( kernal size, ksize ) k * k filter kernel pixel values are compared with the original side scan sonar image The original pixel values of the image are multiplied in sequence, and k * k product pixel values are obtained after the multiplication. The sum is sequentially summed. If the sum is greater than the pixel value 255, the sum is regarded as the upper limit The value is 255. The original pixel value is processed by image sharpening to obtain the sharpened pixel value. The calculation method is as shown in equations (1) to (2):

Figure 109135544-A0101-12-0006-1
Figure 109135544-A0101-12-0006-1

Figure 109135544-A0101-12-0006-2
方程式(1)中Filter ksize 為可任意變動之濾波核大小,其中s為用戶自定義值,方程式(2)以濾波核大小3*3為例,src(x,y)為該原始像素點(x,y)處的原始像素值;dst(x,y)為該原始像素點src(x,y)經影像銳化計算後之銳化像素值;Filter為進行遮罩計算的濾波核,其尺寸可任意變動。原始像素值經由影像銳化計算後產生銳化像素值,銳化像素點構成經影像銳化的側掃聲納影像。
Figure 109135544-A0101-12-0006-2
Filter ksize in equation (1) is the filter kernel size that can be changed arbitrarily, where s is a user-defined value, equation (2) takes the filter kernel size 3*3 as an example, and src ( x, y ) is the original pixel ( The original pixel value at x, y ); dst ( x, y ) is the sharpened pixel value of the original pixel src ( x, y ) after the image sharpening calculation; Filter is the filter kernel for mask calculation, which The size can be changed arbitrarily. The original pixel values are calculated by image sharpening to generate sharpened pixel values, and the sharpened pixels constitute a sharpened side scan sonar image.

進一步,本發明使用的濾波核大小(kernal size,ksize)為5*5,且採用四周漸進往濾波核中心(Anchor)增大的方式,其濾波核內的值設計如下所示,且濾波核內的值設計滿足方程式(3): Further, the filter kernel size ( kernal size, ksize ) used in the present invention is 5*5, and the method of gradually increasing to the center of the filter kernel (Anchor) is adopted. The value design of the filter kernel is as follows, and the filter kernel The value within is designed to satisfy equation (3):

Figure 109135544-A0101-12-0007-3
Figure 109135544-A0101-12-0007-3

Figure 109135544-A0101-12-0007-4
K為用戶自定義值,其範圍約莫在1-5內,皆能處理80%以上的側掃聲納影像。在本發明的較佳實施例中,使用濾波核大小為5*5進行影像銳化,側掃聲納影像銳化結果如圖5所示,圖5a為影像進行銳化前的結果,圖5b為影像進行銳化後的結果。其中,影像進行銳化後的結果明顯可見邊緣輪 廓增強的效果;再者,使用影像銳化,使得海床像素與水團像素之間的邊線越來越明顯,達到側掃聲納影像的海床邊線加強之效果。
Figure 109135544-A0101-12-0007-4
K is a user-defined value, and its range is about 1-5, and it can process more than 80% of the side scan sonar images. In a preferred embodiment of the present invention, a filter kernel size of 5*5 is used for image sharpening, and the result of side scan sonar image sharpening is shown in Figure 5. Figure 5a is the result before image sharpening, Figure 5b The result of sharpening the image. Among them, the result of image sharpening clearly shows the effect of edge contour enhancement; Moreover, the use of image sharpening makes the edge line between the seabed pixels and the water mass pixels more and more obvious, achieving the sea side scan sonar image. The effect of strengthening the bedside line.

在(b)影像前處理步驟S20之影像模糊S22,本發明使用低通濾波器用以濾除雜訊與平滑化影像。雜訊濾除的對象主要為第一回波干擾物及橫紋雜訊。第一回波干擾物請參閱圖4a的紅框處,其中右舷海床邊線130上的沈船110,使得右舷海床邊線130產生像素點相似於右舷海床52像素點,進而影響海床邊線偵測的正確性;請參閱圖4b的紅框處,其中右舷海床52中的海床物件140受到噪音40的干擾,造成海床物件140受到橫紋雜訊B的遮蓋,因此在進行水下海床物件140的識別過程中,正確率會大幅降低。此外,橫紋雜訊A與B像素值近似於水團像素值,因此在進行海床邊線偵測過程中,海床邊線偵測之正確率也會受到影響。 In the image blurring S22 of (b) image preprocessing step S20, the present invention uses a low-pass filter to filter out noise and smooth the image. The object of noise filtering is mainly the first echo interference and horizontal noise. Please refer to the red box in Figure 4a for the first echo interference. The sunken ship 110 on the starboard seabed edge 130 makes the starboard seabed edge 130 produce pixels similar to 52 pixels on the starboard seabed, thereby affecting the seabed The correctness of the edge detection; please refer to the red box in Figure 4b, where the seabed object 140 in the starboard seabed 52 is disturbed by the noise 40, causing the seabed object 140 to be covered by the horizontal noise B, so In the process of identifying the underwater seabed object 140, the accuracy rate will be greatly reduced. In addition, the pixel values of the horizontal noise A and B are similar to the pixel values of the water mass. Therefore, during the seabed edge detection process, the accuracy of the seabed edge detection will also be affected.

使用低通濾波器之計算方式如方程式(4)至(5)所示: The calculation method using low-pass filter is shown in equations (4) to (5):

Figure 109135544-A0101-12-0008-5
Figure 109135544-A0101-12-0008-5

Figure 109135544-A0101-12-0008-6
其中,src(x,y)為銳化像素點(x,y)處的銳化像素值;dst(x,y)為該銳化像素點(x,y)經低通濾波器計算後之平滑像素值;Filter為進行遮罩計算的濾波核,其尺寸可任意變動;FilterWidthSize為濾波核寬度,FilterHeightSize為濾波核高度,濾波核寬與高指的是濾波核的大小。銳化像素值經由低通濾波器計算用以產生平滑像素值,平滑像素點構成側掃聲納模糊影像。在本發明的演算法實施例中,使用濾波核大小為 17*17進行影像平滑,側掃聲納影像平滑結果如圖6所示,圖6a為無做影像銳化之低通濾波處理結果,圖6b為有做影像銳化之低通濾波處理結果。由圖6b明顯可見,先經影像銳化處理後,再進行低通濾波處理,可增加海床與水團之間的像素值對比度,進而達到濾除橫紋雜訊與平滑海床之效果。
Figure 109135544-A0101-12-0008-6
Wherein, sharpened pixel src (x, y) is sharpened pixel (x, y) at a value; dst (x, y) for sharpening the pixel (x, y) is calculated by the low-pass filter Smooth pixel value; Filter is the filter core for mask calculation, and its size can be changed arbitrarily; FilterWidthSize is the width of the filter core, FilterHeightSize is the height of the filter core, and the width and height of the filter core refer to the size of the filter core. The sharpened pixel value is calculated by a low-pass filter to generate a smooth pixel value, and the smooth pixel points form a side-scan sonar blurred image. In the algorithm embodiment of the present invention, a filter kernel size of 17*17 is used for image smoothing. The result of side scan sonar image smoothing is shown in Fig. 6, and Fig. 6a is the result of low-pass filtering without image sharpening. Figure 6b shows the result of low-pass filtering with image sharpening. It is obvious from Fig. 6b that the image sharpening process and then the low-pass filtering process can increase the pixel value contrast between the seabed and the water mass, thereby achieving the effect of filtering horizontal noise and smoothing the seabed.

在(b)影像前處理步驟S20之Otsu二值化S23(Otsu Threshold),將影像平滑化的側掃聲納影像進行影像分割。Otsu二值化S23包含以下步驟:(b1)根據經影像平滑化的側掃聲納影像之像素值,計算該像素值的直方圖,其中該等平滑像素值所構成的平滑像素點按照統計的方式,分布於0到255(pixel)共256個級別,如圖7所示;(b2)將每個像素級別中的像素點數量進行歸一化(normalization),將像素點數量壓縮至0-1的區間,以利於將統計出來之每個像素級別中的像素點數量,予以量化方式表示;(b3)根據像素級別1到254之間的所有平滑像素值及其量化後平滑像素點數量,使用Otsu二值化之計算方程式(6)至(11),用以尋找最佳閾值T。其中,將像素級別1到254之間的所有平滑像素值皆做為閾值T *,並對每個閾值T *計算其群內變異量,進而找出其最小群內變異量且將其判定為最佳閾值T(如圖7紅線所示);(b4)根據最佳閾值T對直方圖中的平滑像素值進行測掃聲納影像的分割,其中若平滑像素值大於或等於最佳閾值T,則該平滑像素值判定為前景,反之則該平滑像素值判定為背景;(b5)取得Otsu二值化影像分割之側掃聲納影像中,前景為海床(像素值為255),背景為水團(像素值為0)。Otsu二值化之計算方式如方程式(6)至(11)所示: In (b) the Otsu binarization S23 (Otsu Threshold) of the image preprocessing step S20, the smoothed side scan sonar image is image segmented. Otsu Binarization S23 includes the following steps: (b1) According to the pixel value of the smoothed side scan sonar image, calculate the histogram of the pixel value, wherein the smooth pixel points formed by the smoothed pixel values are calculated according to statistics Method, distributed in a total of 256 levels from 0 to 255 (pixel), as shown in Figure 7; (b2) Normalize the number of pixels in each pixel level, and compress the number of pixels to 0- The interval of 1, in order to facilitate the quantification of the number of pixels in each pixel level calculated; (b3) According to all the smoothed pixel values between pixel levels 1 to 254 and the number of smoothed pixels after quantization, The calculation equations (6) to (11) of Otsu binarization are used to find the optimal threshold T. Among them, all the smoothed pixel values between pixel levels 1 to 254 are used as the threshold T * , and the intra-cluster variation is calculated for each threshold T * , and then the minimum intra-cluster variation is found and judged as Optimal threshold T (shown by the red line in Figure 7); (b4) According to the optimal threshold T , the smoothed pixel values in the histogram are scanned and scanned sonar image segmentation, where if the smoothed pixel value is greater than or equal to the optimal threshold T , The smooth pixel value is judged as the foreground, otherwise, the smooth pixel value is judged as the background; (b5) In the side scan sonar image obtained by Otsu binarized image segmentation, the foreground is the seabed (the pixel value is 255), and the background It is a water mass (the pixel value is 0). The calculation method of Otsu binarization is shown in equations (6) to (11):

Figure 109135544-A0101-12-0009-7
Figure 109135544-A0101-12-0009-7

Figure 109135544-A0101-12-0010-8
Figure 109135544-A0101-12-0010-8

Figure 109135544-A0101-12-0010-9
Figure 109135544-A0101-12-0010-9

Figure 109135544-A0101-12-0010-10
Figure 109135544-A0101-12-0010-10

σ(T *)=σ1(T *)+σ2(T *) 方程式(10) σ( T * )=σ 1 ( T * )+σ 2 ( T * ) equation (10)

Figure 109135544-A0101-12-0010-11
其中,h(i)代表直方圖第i個像素級別之歸一化的平滑像素點數量;方程式(6)中u 1(T *)代表當T *為閾值,計算平滑像素值從0至T *之平均值;方程式(7)中u 2(T *)則代表當T *為閾值,計算平滑像素值從T *至254之平均值;方程式(8)中σ1(T *)則代表當T *為閾值,計算平滑像素值從0至T *之變異量;方程式(9)中σ2(T *)則代表計算平滑像素值從T *至254之變異量;方程式(10)中σ(T *)則代表當T *為閾值,計算其群內變異數之總和;方程式(11)則代表從0-254的閾值中找到其最小群內變異數。
Figure 109135544-A0101-12-0010-11
Among them, h ( i ) represents the number of normalized smooth pixels at the i- th pixel level of the histogram; u 1 ( T * ) in equation (6) represents when T * is the threshold, calculate the smooth pixel value from 0 to T The average value of * ; u 2 ( T * ) in equation (7) means that when T * is the threshold, calculate the average of smoothed pixel values from T * to 254; in equation (8), σ 1 ( T * ) means When T * is the threshold, calculate the variation of the smoothed pixel value from 0 to T * ; in equation (9) σ 2 ( T * ) represents the calculated variation of the smoothed pixel value from T * to 254; in equation (10) σ( T * ) means that when T * is the threshold, calculate the sum of the variance within the cluster; Equation (11) means finding the minimum variance within the cluster from the threshold of 0-254.

Otsu二值化結果如圖8所示,圖8a為未經影像銳化及低通濾波處理之結果,圖8b為經影像銳化及低通濾波處理之結果。由圖8a可見,倘若未先進行影像銳化S21及影像模糊S22之雜訊濾除處理,其Otsu二值化的影像分割效果會受到船隻噪音40所產生的橫紋雜訊A與B影響進而造成影像分割錯誤;相對地,由圖8b明顯可見,船隻噪音40干擾所造成的橫 紋雜訊A與B,透過先進行影像銳化S21及影像模糊S22之雜訊濾除的處理,在二值化左舷海床151與二值化左舷水團161,及二值化右舷海床152與二值化右舷水團162的影像分割上,有助於提升影像分割之準確率,有利於後續海床邊線的偵測與標記。 The Otsu binarization result is shown in Fig. 8. Fig. 8a is the result without image sharpening and low-pass filtering, and Fig. 8b is the result after image sharpening and low-pass filtering. It can be seen from Figure 8a that if the noise filtering process of image sharpening S21 and image blurring S22 is not performed first, the image segmentation effect of the Otsu binarization will be affected by the horizontal noise A and B generated by the ship noise 40. Causes image segmentation errors; relatively, it is obvious from Figure 8b that the horizontal interference caused by the interference of ship noise 40 Pattern noise A and B, through the image sharpening S21 and image blur S22 noise filtering process, the port side seabed 151 and the port side water mass 161 are binarized, and the starboard seabed is binarized The image segmentation between 152 and the binarized starboard water mass 162 helps to improve the accuracy of image segmentation and facilitates the subsequent detection and marking of the seabed edge.

在(c)海床邊線偵測與標記步驟S30,包含以下步驟:(c1)根據Otsu二值化側掃聲納影像並透過滑動視窗(sliding window),用以尋找海床邊線特徵S31,請參閱圖9。其中,Otsu二值化側掃聲納影像以影像中心軸劃分為左、右兩個部分,分別偵測左舷海床邊線120及右舷海床邊線130;(c2)S32L、S32R分別利用左舷滑動視窗及右舷滑動視窗,自Otsu二值化側掃聲納影像中,相對於影像中心軸的兩側向影像中心軸進行正向偵測,用以尋找右舷海床邊線130及左舷海床邊線120。左舷滑動視窗170正向滑動順序為C i

Figure 109135544-A0101-12-0011-12
,右舷滑動視窗180正向滑動順序為C n
Figure 109135544-A0101-12-0011-13
C為欄200(c3)S32L、S32R和S33之流程,包含以下步驟:(c3.1)當左舷滑動視窗170或右舷滑動視窗180偵測到滑動視窗涵蓋範圍內,發生前景150(像素值為255)轉換成背景160(像素值為0)變化時,且發生像素值變化的次數符合為一次,則該左舷滑動視窗170或右舷滑動視窗180將會停止,並判斷當下左舷滑動視窗170或右舷滑動視窗180之滑動視窗涵蓋範圍,已遮蓋在左舷海床邊線120或右舷海床邊線130之上;反之,若像素值發生變化的次數大於一次,則左舷滑動視窗170或右舷滑動視窗180會繼續往前偵測,直到符合像素值發生變化的次數為一次;(c3.2)滿足符合像素值發生變化的次數為一次的條件後,接著左舷滑動視窗170或右舷滑動視窗180進行反向偵測,反向偵測的滑動順序與正向偵測相反。其中,反向偵測設定之滑動視窗大小(windowsize)小於正向偵測設定之滑動視窗大小,反向偵測的設定步伐為1個像素值之大小(windowsize=1);(c3.3)在步驟 S33,當左舷滑動視窗170或右舷滑動視窗180偵測到滑動視窗涵蓋範圍內發生背景160轉換成前景150的像素值變化時,則將該像素值變化之所在像素視為海床邊線;(c3.4)在步驟S34,將滑動視窗偵測到的發生像素值變化處進行標記。其中,標記海床邊線的滑動順序為R i R n R為列190;(c3.5)在步驟S35判斷是否為最後一列R n ,由於影像輸入後,首先會去讀取該灰階影像的尺寸大小,進而取得其總列數R n 。當判斷為最後一列R n 且完成R n 的海床邊線標記後,則停止標記;(c3.6)在步驟S36,獲得左舷海床邊線120及右舷海床邊線130。其中,由於每筆海床邊線應屬連續,因此所標記之第i筆海床邊線與i+1筆海床邊線並不會落差太大,在影像呈現上形成一條連續的左舷海床邊線120與一條連續的右舷海床邊線130,如圖10所示。 In (c) Seabed edge detection and marking step S30, it includes the following steps: (c1) Binarize the side scan sonar image based on Otsu and use the sliding window to find seabed edge features S31 , Please refer to Figure 9. Among them, the Otsu binarized side scan sonar image is divided into two parts on the left and right of the image center axis, respectively detecting the port side seabed edge line 120 and the starboard side seabed edge line 130; (c2) S32L and S32R use the port side respectively Sliding window and starboard sliding window, from Otsu binarized side scan sonar image, forward detection to the image center axis on both sides of the image center axis to find the starboard seabed sideline 130 and the port side seabed Sideline 120. The forward sliding sequence of the port side sliding window 170 is C i
Figure 109135544-A0101-12-0011-12
, The forward sliding sequence of the starboard sliding window 180 is C n
Figure 109135544-A0101-12-0011-13
, C is the flow of column 200 (c3) S32L, S32R and S33, including the following steps: (c3.1) When the port side sliding window 170 or starboard side sliding window 180 detects the sliding window coverage, the foreground 150 (pixel value) 255) is converted to background 160 (pixel value 0) changes, and the number of pixel value changes coincides with once, then the port side sliding window 170 or starboard side sliding window 180 will stop, and the current port side sliding window 170 or The sliding window coverage of the starboard sliding window 180 has been covered on the port side seabed sideline 120 or the starboard side seabed sideline 130; on the contrary, if the pixel value changes more than once, the port side sliding window 170 or the starboard side sliding window 180 will continue to detect until the number of times the pixel value has changed is once; (c3.2) After meeting the condition that the number of times the pixel value has changed is once, then the port side sliding window 170 or the starboard side sliding window 180 will be reversed. The sliding sequence of forward detection and reverse detection is opposite to that of forward detection. Wherein the sliding window size is set to detect the reverse of (window size) of less than the forward sliding detection window size is set, the pace is set reverse to detect a size of the pixel values (window size = 1); ( c3. 3) In step S33, when the port side sliding window 170 or the starboard side sliding window 180 detects that the background 160 is converted into the foreground 150 pixel value within the scope of the sliding window, the pixel where the pixel value changes is regarded as the seabed Borderline; (c3.4) In step S34, mark the pixel value change detected by the sliding window. Among them, the sliding sequence for marking the edge of the seabed is R i R n , and R is column 190; (c3.5) In step S35, it is judged whether it is the last column R n . After the image is input, the gray will be read first. The size of the first-level image, and then obtain the total number of rows R n . When n is determined, and the last a complete R R n line marking the sea bed, the stop flag; (C3.6) In step S36, obtaining the port and starboard sea bed sea bed 120 line 130 line. Among them, since each seabed edge should be continuous, the marked i-th seabed edge and the i +1 seabed edge will not be too far apart, forming a continuous port side sea on the image presentation The bedside line 120 and a continuous starboard side seabed line 130 are shown in FIG. 10.

windowsize=aSizekSize 方程式(12)其中,windowsize是滑動視窗;aSizekSize為可任意變動之滑動視窗之大小。 window size = aSize * kSize equation (12) where window size is the sliding window; aSize and kSize are the sizes of the sliding window that can be changed arbitrarily.

Figure 109135544-A0101-12-0012-14
其中window i 為滑動至第i步的滑動視窗,k為化動視窗滑動步伐大小,window(x,y)為滑動視窗內第一個像素值,window(x j ,y)為滑動視窗內最後一個像素值,當像素值相減絕對值等於0,就視為滑動視窗尚未遮蓋於海床邊線上,若像素值相減絕對值等於255,就視為滑動視窗已遮蓋於海床邊線上。
Figure 109135544-A0101-12-0012-14
Among them, window i is the sliding window sliding to the i-th step, k is the size of the sliding step of the moving window, window ( x, y ) is the first pixel value in the sliding window, window ( x j , y ) is the last in the sliding window For a pixel value, when the absolute value subtracted from the pixel value is equal to 0, it is deemed that the sliding window has not been covered on the seabed edge. If the absolute value subtracted from the pixel value is equal to 255, it is deemed that the sliding window has been covered on the seabed edge.

Figure 109135544-A0101-12-0012-15
當先前條件成立,則從window(x j ,y)繼續往後看n個像素,n為用戶自定義值。若往後看n個像素之像素值皆為0,則視為該滑動視窗已遮該於海床邊線上且變換次數為一次,而往後看n個像素之像素值有出現255,則反之。
Figure 109135544-A0101-12-0012-15
When the previous condition is established, continue to look at n pixels from window ( x j , y ), where n is a user-defined value. If the pixel values of n pixels are all 0 in the future, it is deemed that the sliding window has been hidden on the edge of the seabed and the number of transformations is once, and the pixel values of n pixels in the future have 255, and vice versa .

Figure 109135544-A0101-12-0013-16
接著會對該滑動視窗之window(x j ,y)座標位子進行反向偵測,當window(x j -1,y)為0則視該像素值非為海床邊線點,若window(x j -1,y)為255則視該像素為海床邊線點。
Figure 109135544-A0101-12-0013-16
Then the window ( x j , y ) coordinate position of the sliding window will be detected in the reverse direction. When window ( x j -1 , y ) is 0, the pixel value is regarded as a seabed edge point. If window ( If x j -1 ,y ) is 255, the pixel is regarded as a seabed edge point.

補充說明的是,本發明所得到的海床邊線,其驗證方式為計算連續率與對稱率(非專利文獻:Z.Jianhu,W.Xiao,Z.Hongmei,and W.Aixue,A Comprehensive Bottom-Tracking Method for Side Scan Sonar Image Influenced by Complicated Measuring Environment,IEEE Journal of Ocenic Engineeing,November 2016)。其中,分析的側掃聲納灰階影像共有130張,圖11a為左舷海床邊線120連續率,平均達87.8%之效果;圖11b為右舷海床邊線130連續率,平均達94.8%之效果;圖11c為海床邊線對稱率,平均達80.7%之效果。圖12為綜合130張灰階影像的左舷海床邊線120及右舷海床邊線130連續率的平均值,及海床邊線對稱率的平均值。 It is supplemented that the seabed edge obtained by the present invention is verified by calculating the continuity rate and the symmetry rate (non-patent literature: Z. Jianhu, W. Xiao, Z. Hongmei, and W. Aixue, A Comprehensive Bottom -Tracking Method for Side Scan Sonar Image Influenced by Complicated Measuring Environment, IEEE Journal of Ocenic Engineeing , November 2016). Among them, there are a total of 130 side scan sonar grayscale images analyzed. Figure 11a shows the 120 continuity rate of the port side seabed edge, with an average effect of 87.8%; Figure 11b shows the 130 continuity rate of the starboard seabed edge, with an average of 94.8%. The effect; Figure 11c shows the symmetry rate of the seabed edge, with an average effect of 80.7%. Figure 12 shows the average value of the continuity rate of the port side seabed edge 120 and the starboard side seabed edge 130 of the 130 gray-scale images, and the average value of the seabed edge symmetry rate.

上列詳細說明係針對本發明之一可行實施例之具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明方法精神所為之等效實施或變更,均應包含於本案之專利範圍中。 The above detailed description is a specific description of a possible embodiment of the present invention, but this embodiment is not intended to limit the scope of the present invention. Any equivalent implementation or modification that does not deviate from the spirit of the method of the present invention should be included in In the scope of the patent in this case.

S10-S40:步驟 S10-S40: steps

Claims (8)

一種可濾橫紋雜訊之海床邊線偵測方法,包含:(a)輸入灰階影像步驟,當側掃聲納控制電腦接收到海床回波後會轉換成原始側掃聲納影像(灰階影像);(b)影像前處理步驟,包含:影像銳化步驟,原始像素點所在之像素值,經由影像銳化計算用以產生銳化像素值,其中,影像銳化計算包含濾波核覆蓋灰階影像中的該等原始像素點,並將濾波核大小(kernal size,ksize)k*k個濾波核像素值與該灰階影像之原始像素值依序進行相乘運算;相乘運算後取得k*k個乘積像素值依序進行加總運算;影像模糊步驟,將該等銳化像素值經由濾波器處理用以產生複數平滑像素值,該等平滑像素值構成一側掃聲納模糊影像;Otsu二值化(Otsu Threshold)步驟,透過Otsu二值化用以將該側掃聲納模糊影像進行影像分割,以產生一Otsu二值化側掃聲納影像;及(c)海床邊線偵測與標記步驟,根據該Otsu二值化側掃聲納影像並透過複數滑動視窗(sliding window)用以尋找海床邊線特徵,其中,該等滑動視窗用以偵測該Otsu二值化側掃聲納影像中像素值的變化;其中,在(b)影像前處理之Otsu二值化步驟進行影像分割前更包含以下步驟:根據該等平滑像素值及其像素點數量用以計算其直方圖(Histogram),其中該等平滑像素值所構成的複數平滑像素點按照統計的方式分布於0到255(pixel)個級別;將每個像素級別中的像素點數量進行歸一化;根據像素級別1到254 之間的所有平滑像素值及其量化後平滑像素點數量,使用Otsu二值化之計算方程式用以尋找最佳閾值T;根據最佳閾值T對直方圖中的該等平滑像素值進行影像分割。 A seabed edge detection method that can filter horizontal noise. It includes: (a) Input grayscale image step, when the side scan sonar control computer receives the seabed echo, it will convert it into the original side scan sonar image (Gray-scale image); (b) Image pre-processing step, including: image sharpening step, where the pixel value of the original pixel is used to generate sharpened pixel value through image sharpening calculation, where the image sharpening calculation includes filtering The kernel covers the original pixels in the gray-scale image, and sequentially multiplies the filter kernel size (kernal size, ksize ) k * k filter kernel pixel values with the original pixel values of the gray-scale image; After the operation, k * k product pixel values are obtained in order for the sum operation; the image blurring step, the sharpened pixel values are processed by the filter to generate complex smooth pixel values, and these smooth pixel values constitute a side sweep sound Nano-blur image; Otsu threshold (Otsu Threshold) step, the side scan sonar blurred image is segmented through Otsu binarization to generate an Otsu binary side-scan sonar image; and (c) The seabed edge detection and marking steps are based on the Otsu binarized side-scan sonar image and used to find the seabed edge features through a plurality of sliding windows, wherein the sliding windows are used to detect the The change of pixel values in the Otsu binarization side scan sonar image; among them, the Otsu binarization step of (b) image preprocessing before image segmentation further includes the following steps: according to the smoothed pixel values and the number of pixels It is used to calculate its histogram (Histogram), in which the complex smooth pixel points formed by the smooth pixel values are distributed in a statistical manner from 0 to 255 (pixel) levels; the number of pixels in each pixel level is returned One conversion; according to all the smoothed pixel values between pixel level 1 to 254 and the number of smoothed pixels after quantization, the calculation equation of Otsu binarization is used to find the best threshold T; according to the best threshold T to the histogram The smoothed pixel values of the image segmentation are performed. 如請求項第1項所述之海床邊線偵測方法,其中,在(b)影像前處理之影像銳化步驟使用的方程式如下式:
Figure 109135544-A0305-02-0019-1
The seabed edge detection method described in claim 1, wherein the equation used in the image sharpening step of (b) image preprocessing is as follows:
Figure 109135544-A0305-02-0019-1
如請求項第1項所述之海床邊線偵測方法,其中,在(b)影像前處理之影像模糊步驟使用的方程式如下式:
Figure 109135544-A0305-02-0019-2
The seabed edge detection method described in claim 1, wherein the equation used in the image blurring step of (b) image preprocessing is as follows:
Figure 109135544-A0305-02-0019-2
如請求項第1項所述之海床邊線偵測方法,其中,該影像銳化步驟所使用之濾波核大小為5*5。 The seabed edge detection method according to claim 1, wherein the size of the filter kernel used in the image sharpening step is 5*5. 如請求項第1項所述之海床邊線偵測方法,其中,該影像銳化模糊步驟所使用之濾波核大小為17*17。 The seabed edge detection method according to claim 1, wherein the size of the filter kernel used in the image sharpening and blurring step is 17*17. 如請求項第1項所述之海床邊線偵測方法,其中,該等滑動視窗用以偵測該Otsu二值化側掃聲納影像中像素值的變化更包含以下步驟:該等滑動視窗自該Otsu二值化側掃聲納影像之相對於影像中心軸的兩側朝向影像中心軸進行正向偵測;當該等滑動視窗偵測到滑動視窗涵蓋範圍內發生像素值變化時,且像素值變化的次數符合為一次,則該等滑動視窗將會停止滑動;若發生像素值變化的次數大於一次時,則該等滑動視窗繼續進行滑動,直到符合發生像素值變化的次數為一次。 The seabed edge detection method according to claim 1, wherein the sliding windows for detecting changes in pixel values in the Otsu binarized side scan sonar image further include the following steps: the sliding The window is detected in a positive direction from the two sides of the Otsu binarized side scan sonar image relative to the image center axis toward the image center axis; when the sliding windows detect that the pixel value changes within the scope of the sliding window, And the number of pixel value changes coincides with one time, the sliding windows will stop sliding; if the number of pixel value changes is greater than one, the sliding windows continue to slide until the number of pixel value changes coincides with one time . 如請求項第6項所述之海床邊線偵測方法,其中,在符合發生像素值變化的次數為一次的條件後,更包含以下步驟:接著該等滑動視窗進行反向偵測,反向偵測設定之滑動視窗大小(windowsize)小於正向偵測設定之滑動視窗大小;當該等滑動視窗偵測到滑動視窗涵蓋範圍內發生像素值變化時,且像素值變化的次數符合為一次,則該等滑動視窗將會停止滑動並進行標記。 The seabed edge detection method described in claim 6, wherein, after the condition that the number of pixel value changes is one time is met, the method further includes the following steps: then the sliding windows perform reverse detection, and The window size of the forward detection setting is smaller than the sliding window size of the forward detection setting; when the sliding windows detect that the pixel value changes within the scope of the sliding window, and the number of pixel value changes accords with Once, the sliding windows will stop sliding and mark them. 如請求項第1、6或7項所述之海床邊線偵測方法,其中,該等滑動視窗大小的計算方程式如下式,其中aSize、kSize值可視聲納影像尺寸自行定義:windowsize=aSizekSizeSuch as the seabed edge detection method described in claim 1, 6 or 7, wherein the calculation equations for the size of the sliding windows are as follows, where the values of aSize and kSize can be defined by the size of the sonar image: window size = aSize * kSize .
TW109135544A 2020-10-14 2020-10-14 Seabed edge detection method capable of filtering horizontal noise TWI736446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109135544A TWI736446B (en) 2020-10-14 2020-10-14 Seabed edge detection method capable of filtering horizontal noise

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109135544A TWI736446B (en) 2020-10-14 2020-10-14 Seabed edge detection method capable of filtering horizontal noise

Publications (2)

Publication Number Publication Date
TWI736446B true TWI736446B (en) 2021-08-11
TW202215368A TW202215368A (en) 2022-04-16

Family

ID=78283154

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109135544A TWI736446B (en) 2020-10-14 2020-10-14 Seabed edge detection method capable of filtering horizontal noise

Country Status (1)

Country Link
TW (1) TWI736446B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113963171A (en) * 2021-09-09 2022-01-21 武汉长江航道救助打捞局 Method and system for automatically identifying submarine line of shallow stratum section sonar image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI362629B (en) * 2008-06-26 2012-04-21 Chunghwa Picture Tubes Ltd Image process method and apparatus
CN103165100A (en) * 2013-02-05 2013-06-19 华映视讯(吴江)有限公司 Weight type image enhancing method and system
US8644565B2 (en) * 2008-07-23 2014-02-04 Indiana University Research And Technology Corp. System and method for non-cooperative iris image acquisition
TWI522934B (en) * 2014-01-03 2016-02-21 Nat Univ Chin Yi Technology Gyro sensor license plate recognition system for smart phone and method thereof
TWI638336B (en) * 2017-11-22 2018-10-11 瑞昱半導體股份有限公司 Image enhancement method and image enhancement apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI362629B (en) * 2008-06-26 2012-04-21 Chunghwa Picture Tubes Ltd Image process method and apparatus
US8644565B2 (en) * 2008-07-23 2014-02-04 Indiana University Research And Technology Corp. System and method for non-cooperative iris image acquisition
CN103165100A (en) * 2013-02-05 2013-06-19 华映视讯(吴江)有限公司 Weight type image enhancing method and system
TWI522934B (en) * 2014-01-03 2016-02-21 Nat Univ Chin Yi Technology Gyro sensor license plate recognition system for smart phone and method thereof
TWI638336B (en) * 2017-11-22 2018-10-11 瑞昱半導體股份有限公司 Image enhancement method and image enhancement apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113963171A (en) * 2021-09-09 2022-01-21 武汉长江航道救助打捞局 Method and system for automatically identifying submarine line of shallow stratum section sonar image

Also Published As

Publication number Publication date
TW202215368A (en) 2022-04-16

Similar Documents

Publication Publication Date Title
CN107167810B (en) Method for rapidly extracting underwater target by side-scan sonar imaging
CN110852959B (en) Sonar image filtering method based on novel median filtering algorithm
CN111445395B (en) Method for repairing middle area of side-scan sonar waterfall image based on deep learning
CN108520511A (en) A kind of underwater fish target detection and identification method based on fish finder
CN110675410A (en) Side-scan sonar sunken ship target unsupervised detection method based on selective search algorithm
CN109785260B (en) Nonlinear enhancement method for side-scan sonar image
CN111105390B (en) Improved sea-sky-line detection and evaluation method
CN116596163B (en) Image detection-based white croaker resource distribution prediction system and method
CN104021553A (en) Sonar image object detection method based on pixel point layering
CN109559321A (en) A kind of sonar image dividing method and equipment
CN108647693B (en) Sea surface infrared target detection method based on binary significance characteristics
TWI736446B (en) Seabed edge detection method capable of filtering horizontal noise
CN114764801A (en) Weak and small ship target fusion detection method and device based on multi-vision significant features
CN115187666A (en) Deep learning and image processing combined side-scan sonar seabed elevation detection method
CN111627030A (en) Rapid and efficient sea-land accurate segmentation method for visible light remote sensing image
Nau et al. Extended detection of shallow water gas seeps from multibeam echosounder water column data
Shih et al. An adaptive bottom tracking algorithm for side-scan sonar seabed mapping
CN116862973A (en) Underwater dam surface defect measurement method based on acoustics
CN115187855A (en) Seabed substrate sonar image classification method
CN116243289A (en) Unmanned ship underwater target intelligent identification method based on imaging sonar
CN113096171B (en) Multi-scale iterative self-adaptive registration method for multi-beam and side-scan sonar images
CN112070765B (en) Cloth detection method based on double-sided filtering combined improvement OTSU
Haghighat et al. Segmentation, classification and modeling of two-dimensional forward-scan sonar imagery for efficient coding and synthesis
CN117953360B (en) Submarine sand wave ridge line detection method
Febriawan et al. Rapid Hard-bottom Identification Using Unsupervised Classification of Multibeam Bathymetry and Backscatter in Raja Ampat Waters, Indonesia