CN117036222B - Water body detection method, device and medium based on fusion of multi-scale polarimetric SAR images - Google Patents

Water body detection method, device and medium based on fusion of multi-scale polarimetric SAR images Download PDF

Info

Publication number
CN117036222B
CN117036222B CN202311051666.5A CN202311051666A CN117036222B CN 117036222 B CN117036222 B CN 117036222B CN 202311051666 A CN202311051666 A CN 202311051666A CN 117036222 B CN117036222 B CN 117036222B
Authority
CN
China
Prior art keywords
water body
image
scale
polarized
pixel gray
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311051666.5A
Other languages
Chinese (zh)
Other versions
CN117036222A (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.)
Guangdong Research Institute of Water Resources and Hydropower
Original Assignee
Guangdong Research Institute of Water Resources and Hydropower
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 Guangdong Research Institute of Water Resources and Hydropower filed Critical Guangdong Research Institute of Water Resources and Hydropower
Priority to CN202311051666.5A priority Critical patent/CN117036222B/en
Publication of CN117036222A publication Critical patent/CN117036222A/en
Application granted granted Critical
Publication of CN117036222B publication Critical patent/CN117036222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration using histogram techniques
    • 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
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

本申请公开了一种融合多尺度极化SAR图像的水体检测方法、装置及介质,所述方法包括获取同一个SAR图像数据的多个极化SAR图像,通过多尺度图像分割操作以及图像多尺度融合操作,获得每个极化SAR图像对应的水体标记图像,采用马尔科夫随机场和模拟退火降噪策略,进行图像降噪处理,获得多个单极化水体提取结果,根据多个单极化水体提取结果,获得多极化水体检测结果。本申请无需复杂的模型训练过程,能够快速大面积识别SAR图像中的水体信息,适用于复杂环境下的水体信息提取,通过水文约束和高程约束,克服了噪声干扰问题,利用马尔科夫随机场以及模拟退火策略使图像降噪达到全局最优。本申请广泛应用于SAR图像处理技术领域。

The present application discloses a water body detection method, device and medium for fusing multi-scale polarization SAR images. The method includes obtaining multiple polarization SAR images of the same SAR image data, obtaining a water body marker image corresponding to each polarization SAR image through multi-scale image segmentation operations and image multi-scale fusion operations, performing image denoising processing using Markov random fields and simulated annealing denoising strategies, obtaining multiple single-polarization water body extraction results, and obtaining multi-polarization water body detection results based on the multiple single-polarization water body extraction results. The present application does not require a complex model training process, can quickly identify water body information in SAR images over a large area, is suitable for water body information extraction in complex environments, overcomes noise interference problems through hydrological constraints and elevation constraints, and uses Markov random fields and simulated annealing strategies to achieve global optimization for image denoising. The present application is widely used in the field of SAR image processing technology.

Description

融合多尺度极化SAR图像的水体检测方法、装置及介质Water body detection method, device and medium based on fusion of multi-scale polarimetric SAR images

技术领域Technical Field

本申请涉及SAR图像处理技术领域,特别涉及一种融合多尺度极化SAR图像的水体检测方法、装置及介质。The present application relates to the technical field of SAR image processing, and in particular to a water body detection method, device and medium for fusing multi-scale polarization SAR images.

背景技术Background technique

洪水作为世界范围内最为严重的自然灾害之一,其具有发生速度快、影响范围广,并常伴有极端天气等特点,传统光学传感器所在的可见光波段穿透能力弱,易受气候条件的影响,容易出现检测盲区。Floods are one of the most serious natural disasters in the world. They occur quickly, affect a wide range, and are often accompanied by extreme weather. The visible light band where traditional optical sensors are located has weak penetration ability and is easily affected by climatic conditions, resulting in detection blind spots.

目前,通常采用SAR技术检测洪水信息,但在植被和城市地区等复杂环境下,使用SAR技术进行洪水探测仍有待进一步改进,一方面是因为这些地方雷达信号可能相当复杂,难以预测,光滑的地表可能产生镜面散射,强降水、大风等极端天气可能导致水面粗糙,从而造成水体和非水体的后向散射对比度降低,影响分类精度。另一方面,由于受地面斜坡盲区和雷达波后向散射突变的影响,导致图像上容易出现和水体特征相似的噪声图斑,造成水体检测结果出现大量误检。At present, SAR technology is usually used to detect flood information, but the use of SAR technology for flood detection in complex environments such as vegetation and urban areas still needs to be further improved. On the one hand, the radar signals in these places may be quite complex and difficult to predict. Smooth surfaces may produce specular scattering, and extreme weather such as heavy rainfall and strong winds may cause the water surface to be rough, resulting in a decrease in the backscattering contrast between water and non-water bodies, affecting classification accuracy. On the other hand, due to the influence of the blind spot of the ground slope and the sudden change of radar wave backscattering, noise spots similar to water body characteristics are likely to appear on the image, resulting in a large number of false detections in water body detection results.

发明内容Summary of the invention

为了解决至少一个上述相关技术中存在的技术问题,本申请实施例提出了一种融合多尺度极化SAR图像的水体检测方法、装置及介质。In order to solve at least one technical problem existing in the above-mentioned related technologies, the embodiments of the present application propose a water body detection method, device and medium by fusing multi-scale polarization SAR images.

本申请实施例的第一方面提出了一种融合多尺度极化SAR图像的水体检测方法,包括:A first aspect of an embodiment of the present application proposes a water body detection method by fusing multi-scale polarization SAR images, comprising:

获取同一个SAR图像数据的多个极化SAR图像;Acquire multiple polarimetric SAR images of the same SAR image data;

针对每个所述极化SAR图像,执行多尺度图像分割操作,获得多个第一尺度图像块以及多个第二尺度图像块,确定多个第一尺度像素灰度直方图以及多个第二尺度像素灰度直方图;所述第一尺度像素灰度直方图为所述第一尺度图像块的像素灰度直方图;所述第二尺度像素灰度直方图为所述第二尺度图像块的像素灰度直方图;For each of the polarimetric SAR images, a multi-scale image segmentation operation is performed to obtain a plurality of first-scale image blocks and a plurality of second-scale image blocks, and a plurality of first-scale pixel grayscale histograms and a plurality of second-scale pixel grayscale histograms are determined; the first-scale pixel grayscale histogram is a pixel grayscale histogram of the first-scale image block; the second-scale pixel grayscale histogram is a pixel grayscale histogram of the second-scale image block;

根据所述第一尺度像素灰度直方图和所述第二尺度像素灰度直方图,确定第一尺度水体部分以及第二尺度水体部分;所述第一尺度水体部分为所述第一尺度图像块中包含的水体区域;所述第二尺度水体部分为所述第二尺度图像块包含的水体区域;Determine a first-scale water body portion and a second-scale water body portion according to the first-scale pixel grayscale histogram and the second-scale pixel grayscale histogram; the first-scale water body portion is a water body area included in the first-scale image block; the second-scale water body portion is a water body area included in the second-scale image block;

根据图像块的空间关系,构建所述第一尺度图像块与所述第二尺度图像块之间的图像块父子关系;According to the spatial relationship of the image blocks, construct an image block parent-child relationship between the first-scale image block and the second-scale image block;

根据所述图像块父子关系、所述第一尺度水体部分以及所述第二尺度水体部分,执行图像多尺度融合操作,获得每个所述极化SAR图像对应的水体标记图像;Performing an image multi-scale fusion operation according to the parent-child relationship of the image blocks, the first-scale water body part, and the second-scale water body part to obtain a water body marker image corresponding to each of the polarimetric SAR images;

对所述水体标记图像进行栅格图形游程编码,通过水文约束以及高程约束,获得每个所述极化SAR图像对应的水体图斑标记图像;Performing raster graphic run-length encoding on the water body marker image, and obtaining a water body spot marker image corresponding to each polarimetric SAR image through hydrological constraints and elevation constraints;

采用马尔科夫随机场和模拟退火降噪策略,对所述水体图斑标记图像进行图像降噪处理,获得每个所述极化SAR图像对应的单极化水体提取结果;Using Markov random field and simulated annealing denoising strategy, image denoising is performed on the water body spot marking image to obtain a single polarization water body extraction result corresponding to each polarization SAR image;

根据多个所述单极化水体提取结果,确定多极化水体检测结果。The multipolarized water body detection result is determined according to the plurality of single-polarized water body extraction results.

在一些实施例,所述方法还包括:In some embodiments, the method further comprises:

根据所述多极化水体检测结果以及所述SAR图像数据,生成水体检测图像。A water body detection image is generated according to the multi-polarization water body detection result and the SAR image data.

在一些实施例,所述获取同一个SAR图像数据的多个极化SAR图像这一步骤,具体包括:In some embodiments, the step of acquiring multiple polarization SAR images of the same SAR image data specifically includes:

获取SAR图像数据;Acquire SAR image data;

对所述SAR图像数据进行预处理和分贝化处理,获得多个所述极化SAR图像;所述预处理包括聚焦处理、多视处理、滤波处理、地理编码处理和辐射校正处理。The SAR image data is preprocessed and decibelized to obtain a plurality of polarized SAR images; the preprocessing includes focusing processing, multi-view processing, filtering processing, geocoding processing and radiation correction processing.

在一些实施例,所述针对每个所述极化SAR图像,执行多尺度图像分割操作,获得多个第一尺度图像块以及多个第二尺度图像块,确定多个第一尺度像素灰度直方图以及多个第二尺度像素灰度直方图这一步骤,具体包括:In some embodiments, the step of performing a multi-scale image segmentation operation on each of the polarimetric SAR images to obtain a plurality of first-scale image blocks and a plurality of second-scale image blocks, and determining a plurality of first-scale pixel grayscale histograms and a plurality of second-scale pixel grayscale histograms specifically includes:

获取第一尺度图像分割尺寸以及第二尺度图像分割尺寸;Obtaining a first scale image segmentation size and a second scale image segmentation size;

根据所述第一尺度图像分割尺寸,对所述极化SAR图像进行分割,获得多个所述第一尺度图像块;Segmenting the polarimetric SAR image according to the first-scale image segmentation size to obtain a plurality of first-scale image blocks;

根据所述第二尺度图像分割尺寸,对所述极化SAR图像进行分割,获得多个所述第二尺度图像块;Segmenting the polarimetric SAR image according to the second-scale image segmentation size to obtain a plurality of second-scale image blocks;

针对每个所述第一尺度图像块,统计像素灰度直方,获得所述第一尺度像素灰度直方图;For each first-scale image block, counting pixel grayscale histograms to obtain the first-scale pixel grayscale histogram;

针对每个所述第二尺度图像块,统计像素灰度直方,获得所述第二尺度像素灰度直方图。For each second-scale image block, pixel grayscale histogram is counted to obtain the second-scale pixel grayscale histogram.

在一些实施例,所述对所述水体标记图像进行栅格图形游程编码,通过水文约束以及高程约束,获得每个所述极化SAR图像对应的水体图斑标记图像这一步骤,具体包括:In some embodiments, the step of performing raster graphics run-length encoding on the water body marker image and obtaining the water body spot marker image corresponding to each polarimetric SAR image through hydrological constraints and elevation constraints specifically includes:

对所述水体标记图像进行栅格图形游程编码,确定多个预确定水体图斑和多个陆地图斑;Performing raster graphics run-length encoding on the water body marker image to determine a plurality of predetermined water body patches and a plurality of land patches;

通过数字高程模型,修正所述预确定水体图斑和所述陆地图斑,获得多个水体修正图斑;Correcting the predetermined water body spots and the land spots through a digital elevation model to obtain a plurality of water body corrected spots;

采用有限差分法,计算每个所述水体修正图斑的平均梯度;Using the finite difference method, the average gradient of each water body correction patch is calculated;

根据预设的梯度阈值以及所述水体修正图斑的平均梯度,判断所述水体修正图斑是否为水体图斑;According to a preset gradient threshold and an average gradient of the water body correction pattern, determining whether the water body correction pattern is a water body pattern;

对各所述极化SAR图像的所述水体图斑进行标记,获得所述水体图斑标记图像。The water body spots of each of the polarization SAR images are marked to obtain the water body spot marked image.

在一些实施例,所述采用有限差分法,计算每个所述水体修正图斑的平均梯度这一步骤,具体用下式表示:In some embodiments, the step of using the finite difference method to calculate the average gradient of each water body correction patch is specifically expressed by the following formula:

式1: Formula 1:

式2: Formula 2:

式3: Formula 3:

其中,G表示水体修正图斑的平均梯度,dx表示水体修正图斑的x轴方向梯度,dy表示水体修正图斑的y轴方向梯度,f(i,j)表示数字高程模型上像素坐标为(i,j)的高程值。Among them, G represents the average gradient of the water correction pattern, dx represents the gradient of the water correction pattern in the x-axis direction, dy represents the gradient of the water correction pattern in the y-axis direction, and f(i,j) represents the elevation value of the pixel coordinates (i,j) on the digital elevation model.

在一些实施例,所述采用马尔科夫随机场和模拟退火降噪策略,对所述水体图斑标记图像进行图像降噪处理,获得每个所述极化SAR图像对应的单极化水体提取结果这一步骤,具体包括:In some embodiments, the step of using Markov random field and simulated annealing denoising strategy to perform image denoising on the water body spot marked image to obtain a single polarization water body extraction result corresponding to each polarization SAR image specifically includes:

通过马尔科夫随机场构建所述水体图斑标记图像的二阶领域能量场,计算所述水体图斑标记图像的初始能量;Constructing the second-order field energy field of the water body spot mark image through the Markov random field, and calculating the initial energy of the water body spot mark image;

通过模拟退火降噪策略和迭代条件模式策略,对所述初始能量进行最小化处理,获得所述单极化水体提取结果。The initial energy is minimized by a simulated annealing noise reduction strategy and an iterative conditional mode strategy to obtain the single polarization water body extraction result.

在一些实施例,所述通过马尔科夫随机场构建所述水体图斑标记图像的二阶领域能量场,计算所述水体图斑标记图像的初始能量这一步骤,具体用下式表示:In some embodiments, the step of constructing the second-order field energy field of the water body spot mark image through the Markov random field and calculating the initial energy of the water body spot mark image is specifically expressed by the following formula:

其中,E为水体图斑标记图像的初始能量,表示能量基团为{xi,yi,xj}的局部能量,h,β,η表示非负权重,xi为水体图斑标记图像中的像素,xj为xi的二阶邻域像素,yi为xi对应的噪声图中的像素。Among them, E is the initial energy of the water body spot marked image, represents the local energy of the energy group { xi , yi , xj }, h, β, η represent non-negative weights, xi is the pixel in the water body spot marked image, xj is the second-order neighboring pixel of xi , and yi is the pixel in the noise image corresponding to xi .

本申请实施例的第二方面提出了一种融合多尺度极化SAR图像的水体检测装置,包括:A second aspect of the embodiments of the present application provides a water body detection device that fuses multi-scale polarization SAR images, including:

第一模块,用于获取同一个SAR图像数据的多个极化SAR图像;The first module is used to obtain multiple polarization SAR images of the same SAR image data;

第二模块,用于针对每个所述极化SAR图像,执行多尺度图像分割操作,获得多个第一尺度图像块以及多个第二尺度图像块,确定多个第一尺度像素灰度直方图以及多个第二尺度像素灰度直方图;所述第一尺度像素灰度直方图为所述第一尺度图像块的像素灰度直方图;所述第二尺度像素灰度直方图为所述第二尺度图像块的像素灰度直方图;The second module is used to perform a multi-scale image segmentation operation for each of the polarimetric SAR images, obtain a plurality of first-scale image blocks and a plurality of second-scale image blocks, and determine a plurality of first-scale pixel grayscale histograms and a plurality of second-scale pixel grayscale histograms; the first-scale pixel grayscale histogram is a pixel grayscale histogram of the first-scale image block; the second-scale pixel grayscale histogram is a pixel grayscale histogram of the second-scale image block;

第三模块,用于根据所述第一尺度像素灰度直方图和所述第二尺度像素灰度直方图,确定第一尺度水体部分以及第二尺度水体部分;所述第一尺度水体部分为所述第一尺度图像块中包含的水体区域;所述第二尺度水体部分为所述第二图像块包含的水体区域;The third module is used to determine a first-scale water body part and a second-scale water body part according to the first-scale pixel grayscale histogram and the second-scale pixel grayscale histogram; the first-scale water body part is the water body area included in the first-scale image block; the second-scale water body part is the water body area included in the second image block;

第四模块,用于根据图像块的空间关系,构建所述第一尺度图像块与所述第二尺度图像块之间的图像块父子关系;A fourth module is used to construct an image block parent-child relationship between the first-scale image block and the second-scale image block according to the spatial relationship of the image blocks;

第五模块,用于根据所述图像块父子关系、所述第一尺度水体部分以及所述第二尺度水体部分,执行图像多尺度融合操作,获得每个所述极化SAR图像对应的水体标记图像;A fifth module is used to perform an image multi-scale fusion operation according to the parent-child relationship of the image blocks, the first-scale water body part and the second-scale water body part, to obtain a water body marker image corresponding to each of the polarized SAR images;

第六模块,用于对所述水体标记图像进行栅格图形游程编码,通过水文约束以及高程约束,获得每个所述极化SAR图像对应的水体图斑标记图像;The sixth module is used to perform raster graphic run-length encoding on the water body marker image, and obtain a water body spot marker image corresponding to each polarimetric SAR image through hydrological constraints and elevation constraints;

第七模块,用于采用马尔科夫随机场和模拟退火降噪策略,对所述水体图斑标记图像进行图像降噪处理,获得每个所述极化SAR图像对应的单极化水体提取结果;The seventh module is used to perform image denoising on the water body spot marked image by using Markov random field and simulated annealing denoising strategy to obtain a single polarization water body extraction result corresponding to each polarization SAR image;

第八模块,用于根据多个所述单极化水体提取结果,确定多极化水体检测结果。The eighth module is used to determine the multi-polarization water body detection result according to the plurality of single-polarization water body extraction results.

本申请实施例的第三方面提出了一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,所述计算机程序在被处理器执行时实现上述第一方面所述的融合多尺度极化SAR图像的水体检测方法。A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a computer program, and when the computer program is executed by a processor, the computer program implements the water body detection method of fusing multi-scale polarimetric SAR images described in the first aspect.

本申请提供的一种融合多尺度极化SAR图像的水体检测方法、装置及介质,其通过获取同一个SAR图像数据的多个极化SAR图像,通过多尺度图像分割操作以及图像多尺度融合操作,获得每个极化SAR图像对应的水体标记图像,采用马尔科夫随机场和模拟退火降噪策略,进行图像降噪处理,获得多个单极化水体提取结果,根据多个单极化水体提取结果,获得多极化水体检测结果。本申请无需复杂的模型训练过程和大量的人工参与,简单高效,能够快速大面积识别SAR图像中的水体信息,适用于复杂环境下的水体信息提取,通过水文约束和高程约束,减少斜坡盲区和后向散射突变引起的噪声干扰,克服了噪声干扰问题,利用马尔科夫随机场以及模拟退火策略使图像降噪达到全局最优。The present application provides a water body detection method, device and medium that fuses multi-scale polarization SAR images. It obtains multiple polarization SAR images of the same SAR image data, obtains a water body marker image corresponding to each polarization SAR image through multi-scale image segmentation operations and image multi-scale fusion operations, uses Markov random fields and simulated annealing noise reduction strategies to perform image denoising, obtains multiple single-polarization water body extraction results, and obtains multi-polarization water body detection results based on the multiple single-polarization water body extraction results. The present application does not require a complex model training process and a large amount of manual participation. It is simple and efficient, can quickly identify water body information in SAR images over a large area, is suitable for water body information extraction in complex environments, reduces noise interference caused by slope blind spots and backscattering mutations through hydrological constraints and elevation constraints, overcomes the noise interference problem, and uses Markov random fields and simulated annealing strategies to achieve global optimization of image denoising.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本申请实施例提供的一种融合多尺度极化SAR图像的水体检测方法的流程图;FIG1 is a flow chart of a water body detection method for fusing multi-scale polarimetric SAR images provided in an embodiment of the present application;

图2是本申请实施例提供的一种融合多尺度极化SAR图像的水体检测方法的图像处理效果示意图;FIG2 is a schematic diagram of image processing effects of a water body detection method for fusing multi-scale polarimetric SAR images provided in an embodiment of the present application;

图3是本申请实施例提供的一种融合多尺度极化SAR图像的水体检测装置的结构示意图。FIG3 is a schematic diagram of the structure of a water body detection device for fusing multi-scale polarization SAR images provided in an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

参照图1,图1是本申请实施例提供的一种融合多尺度极化SAR图像的水体检测方法的一个可选的流程图,该方法包括但不限于包括步骤S101至步骤S108:Referring to FIG. 1 , FIG. 1 is an optional flow chart of a method for water body detection by fusing multi-scale polarimetric SAR images provided in an embodiment of the present application, the method including but not limited to steps S101 to S108:

步骤S101,获取同一个SAR图像数据的多个极化SAR图像;Step S101, acquiring multiple polarization SAR images of the same SAR image data;

步骤S102,针对每个极化SAR图像,执行多尺度图像分割操作,获得多个第一尺度图像块以及多个第二尺度图像块,确定多个第一尺度像素灰度直方图以及多个第二尺度像素灰度直方图;Step S102, performing a multi-scale image segmentation operation on each polarimetric SAR image, obtaining a plurality of first-scale image blocks and a plurality of second-scale image blocks, and determining a plurality of first-scale pixel grayscale histograms and a plurality of second-scale pixel grayscale histograms;

步骤S103,根据第一尺度像素灰度直方图和第二尺度像素灰度直方图,确定第一尺度水体部分以及第二尺度水体部分;Step S103, determining a first-scale water body portion and a second-scale water body portion according to the first-scale pixel grayscale histogram and the second-scale pixel grayscale histogram;

步骤S104,根据图像块的空间关系,构建第一尺度图像块与第二尺度图像块之间的图像块父子关系;Step S104, constructing an image block parent-child relationship between the first-scale image block and the second-scale image block according to the spatial relationship of the image blocks;

步骤S105,根据图像块父子关系、第一尺度水体部分以及第二尺度水体部分,执行图像多尺度融合操作,获得每个极化SAR图像对应的水体标记图像;Step S105, performing an image multi-scale fusion operation according to the parent-child relationship of the image blocks, the first-scale water body part, and the second-scale water body part, to obtain a water body marker image corresponding to each polarimetric SAR image;

步骤S106,对水体标记图像进行栅格图形游程编码,通过水文约束以及高程约束,获得每个极化SAR图像对应的水体图斑标记图像;Step S106, performing raster graphics run-length encoding on the water body marker image, and obtaining a water body spot marker image corresponding to each polarimetric SAR image through hydrological constraints and elevation constraints;

步骤S107,采用马尔科夫随机场和模拟退火降噪策略,对水体图斑标记图像进行图像降噪处理,获得每个极化SAR图像对应的单极化水体提取结果;Step S107, using Markov random field and simulated annealing denoising strategy to perform image denoising on the water body spot marking image, and obtain a single polarization water body extraction result corresponding to each polarization SAR image;

步骤S108,根据多个单极化水体提取结果,确定多极化水体检测结果。Step S108, determining a multi-polarized water body detection result according to a plurality of single-polarized water body extraction results.

在一些实施例中,该方法还包括步骤S109:In some embodiments, the method further comprises step S109:

步骤S109,根据多极化水体检测结果以及SAR图像数据,生成水体检测图像。Step S109: generating a water body detection image according to the multi-polarization water body detection result and the SAR image data.

在一些实施例的步骤S101中,获取待检测区的SAR图像数据,利用软件ENVI对SAR图像数据进行预处理,预处理包括聚焦处理、多视处理、滤波处理、地理编码处理和辐射校正处理,在预处理操作中,滤波采用的是Refind Lee滤波算法对图像进行处理,窗口大小设置为5×5大小,其余预处理操作均采用SARscape的默认参数。对经过预处理后的SAR图像数据进行分贝化处理,得到SAR图像数据在多种极化通道下的多个极化SAR图像。In step S101 of some embodiments, SAR image data of the area to be detected is obtained, and the SAR image data is preprocessed using the software ENVI, the preprocessing includes focusing processing, multi-view processing, filtering processing, geocoding processing and radiation correction processing. In the preprocessing operation, the filter uses the Refind Lee filtering algorithm to process the image, the window size is set to 5×5, and the other preprocessing operations use the default parameters of SARscape. The preprocessed SAR image data is decibelized to obtain multiple polarization SAR images of the SAR image data under multiple polarization channels.

在一些实施例的步骤S102中,第一尺度像素灰度直方图为上述第一尺度图像块的像素灰度直方图;第二尺度像素灰度直方图为上述第二尺度图像块的像素灰度直方图。In step S102 of some embodiments, the first scaled pixel grayscale histogram is a pixel grayscale histogram of the first scaled image block; and the second scaled pixel grayscale histogram is a pixel grayscale histogram of the second scaled image block.

在一些实施例中,步骤S102可以包括但不限于包括步骤S201至步骤S205:In some embodiments, step S102 may include but is not limited to steps S201 to S205:

步骤S201,获取第一尺度图像分割尺寸以及第二尺度图像分割尺寸;Step S201, obtaining a first scale image segmentation size and a second scale image segmentation size;

步骤S202,根据第一尺度图像分割尺寸,对极化SAR图像进行分割,获得多个第一尺度图像块;Step S202, segmenting the polarimetric SAR image according to the first scale image segmentation size to obtain a plurality of first scale image blocks;

步骤S203,根据第二尺度图像分割尺寸,对极化SAR图像进行分割,获得多个第二尺度图像块;Step S203, segmenting the polarimetric SAR image according to the second scale image segmentation size to obtain a plurality of second scale image blocks;

步骤S204,针对每个第一尺度图像块,统计像素灰度直方,获得第一尺度像素灰度直方图;Step S204, for each first-scale image block, counting the pixel grayscale histogram to obtain a first-scale pixel grayscale histogram;

步骤S205,针对每个第二尺度图像块,统计像素灰度直方,获得第二尺度像素灰度直方图。Step S205 : For each second-scale image block, count the pixel grayscale histogram to obtain a second-scale pixel grayscale histogram.

在一些实施例的步骤S201至步骤S203中,可选地,第一尺度图像分割尺寸为500×500,第二尺度图像分割尺寸为1000×1000,根据两组图像分割尺寸,分别对每个极化SAR图像进行图像分块处理,图像像素存在不足的部分用空值填充,将每个极化SAR图像分为两组不同尺度的图像块,第一组图像块包括多个上述第一尺度图像块,第二组图像块包括多个上述第二尺度图像块。In steps S201 to S203 of some embodiments, optionally, the first-scale image segmentation size is 500×500, and the second-scale image segmentation size is 1000×1000. According to the two groups of image segmentation sizes, image block processing is performed on each polarimetric SAR image respectively, and insufficient parts of image pixels are filled with null values. Each polarimetric SAR image is divided into two groups of image blocks of different scales, the first group of image blocks includes a plurality of the first-scale image blocks, and the second group of image blocks includes a plurality of the second-scale image blocks.

在一些实施例的步骤S103中,第一尺度水体部分为上述第一尺度图像块中包含的水体区域;第二尺度水体部分为上述第二尺度图像块包含的水体区域。In step S103 of some embodiments, the first-scale water body portion is the water body region included in the first-scale image block; and the second-scale water body portion is the water body region included in the second-scale image block.

由于雷达波在水体表面发生镜面散射,具有较低的后向散射系数,因此对每个图像块的像素灰度直方图进行正态拟合,确定图像块中为水体的区域(第一尺度水体部分和第二尺度水体部分),若只有一个波峰,说明其只含有水体或非水体其中一种地物类型,则根据直方图波峰的像素值大小将其归类于水体或非水体;若存在两个波峰,说明含有水体和非水体两种地物类型,则利用KI阈值法将图像块分割为水体和非水体两类,高斯分布下的KI阈值判别准则函数具体用下式表示:Since radar waves are specularly scattered on the surface of water bodies and have a low backscattering coefficient, a normal fitting is performed on the pixel grayscale histogram of each image block to determine the area of water bodies in the image block (the first scale water body part and the second scale water body part). If there is only one peak, it means that it contains only one type of land object, water body or non-water body. It is classified as water body or non-water body according to the pixel value of the histogram peak; if there are two peaks, it means that it contains two types of land objects, water body and non-water body. The KI threshold method is used to segment the image block into two categories, water body and non-water body. The KI threshold discrimination criterion function under Gaussian distribution is specifically expressed as follows:

J(T)=1+2[Pw(T)lnσw(T)+Pn(T)lnσn(T)]+2H(Ω,T)J(T)=1+2[ Pw (T) lnσw (T)+ Pn (T) lnσn (T)]+2H(Ω,T)

H(Ω,T)=-[Pw(T)lnPw(T)+Pn(T)lnPn(T)]H(Ω,T)=-[ Pw (T) lnPw (T)+ Pn (T) lnPn (T)]

其中,J(T)为KI阈值分割的准则函数,用来描述阈值为T时的正确分类性能,H(Ω,T)表示类别集合Ω∈{w,n}的熵,w表示水体,n表示非水体,Pw(T)和Pn(T)为水体和非水体在阈值T时的先验概率,σw(T)和σn(T)为水体和非水体的标准差,通过改变阈值T并统计J(T)的大小,当J(T)达到最小值时取得最佳分割效果,将图像块的像素灰度直方图中小于T的所有像素值归类于水体。Among them, J(T) is the criterion function of KI threshold segmentation, which is used to describe the correct classification performance when the threshold is T, H(Ω,T) represents the entropy of the category set Ω∈{w,n}, w represents water body, n represents non-water body, Pw (T) and Pn (T) are the prior probabilities of water body and non-water body at threshold T, σw (T) and σn (T) are the standard deviations of water body and non-water body. By changing the threshold T and counting the size of J(T), the best segmentation effect is achieved when J(T) reaches the minimum value, and all pixel values less than T in the pixel grayscale histogram of the image block are classified as water body.

在一些实施例的步骤S104中,根据图像块的空间关系,构建两组图像尺度下的图像块的父子关系,其中,每个子图像块(第一尺度图像块)都只对应唯一的一个父图像块(第二尺度图像块)。In step S104 of some embodiments, a parent-child relationship of image blocks at two groups of image scales is constructed according to the spatial relationship of the image blocks, wherein each child image block (image block at the first scale) corresponds to only one parent image block (image block at the second scale).

在一些实施例的步骤S105中,将两组图像块(第一尺度图像块和第二尺度图像块)根据图像块父子关系进行空间叠加,以并集的方式融合不同尺度(图像分割尺寸)的图像块中的水体部分,融合后获得上述水体标记图像,在水体标记图像中分别对水体部分和非水体部分进行标记,从而大大降低大尺度下因水体区域面积过小而造成漏检的概率。In step S105 of some embodiments, two groups of image blocks (first-scale image blocks and second-scale image blocks) are spatially superimposed according to the parent-child relationship of the image blocks, and the water body parts in the image blocks of different scales (image segmentation sizes) are fused in a union manner. After the fusion, the above-mentioned water body marked image is obtained, and the water body part and the non-water body part are marked separately in the water body marked image, thereby greatly reducing the probability of missed detection due to the small area of the water body area at a large scale.

在一些实施例中,步骤S106可以包括但不限于包括步骤S301至步骤S305:In some embodiments, step S106 may include but is not limited to steps S301 to S305:

步骤S301,对水体标记图像进行栅格图形游程编码,确定多个预确定水体图斑和多个陆地图斑;Step S301, performing raster graphics run-length coding on the water body mark image to determine a plurality of predetermined water body spots and a plurality of land spots;

步骤S302,通过数字高程模型,修正预确定水体图斑和陆地图斑,获得多个水体修正图斑;Step S302, correcting predetermined water body patches and land patches through a digital elevation model to obtain a plurality of water body corrected patches;

步骤S303,采用有限差分法,计算每个水体修正图斑的平均梯度;Step S303, using the finite difference method to calculate the average gradient of each water body correction patch;

步骤S304,根据预设的梯度阈值以及水体修正图斑的平均梯度,判断水体修正图斑是否为水体图斑;Step S304, judging whether the water body correction spot is a water body spot according to a preset gradient threshold and an average gradient of the water body correction spot;

步骤S305,对各极化SAR图像的水体图斑进行标记,获得水体图斑标记图像。Step S305 , marking the water body spots in each polarization SAR image to obtain a water body spot marked image.

在一些实施例的步骤S301中,利用栅格图形游程编码对水体标记图像进行图斑确定,根据空间的连通性,将水体标记图像上每一块被水体包围的陆地标记为陆地图斑,将每一块被陆地包围的水体标记为预确定水体图斑,从而获得多个预确定水体图斑。In step S301 of some embodiments, raster graphics run-length encoding is used to determine the spots of the water body marking image. According to the spatial connectivity, each piece of land surrounded by water on the water body marking image is marked as a land spot, and each piece of water surrounded by land is marked as a predetermined water body spot, thereby obtaining a plurality of predetermined water body spots.

在一些实施例的步骤S302中,引入DEM(数字高程模型)数据,将在步骤S301中确定了预确定水体图斑和陆地图斑的图像叠加到数字高程模型上,根据水的流动性,水体的高程应该低于周边陆地的高程,因此,将高程小于周边水体的陆地图斑修正为水体图斑,将高程大于周边陆地的预确定水体图斑修正为陆地图斑,可以有效降低雷达波后向散射突变引起的误检,从而实现水文约束。In step S302 of some embodiments, DEM (digital elevation model) data is introduced, and the image of the predetermined water body patches and land patches determined in step S301 is superimposed on the digital elevation model. According to the fluidity of water, the elevation of the water body should be lower than the elevation of the surrounding land. Therefore, the land patches with elevations lower than the surrounding water bodies are corrected to water body patches, and the predetermined water body patches with elevations higher than the surrounding land are corrected to land patches. This can effectively reduce false detections caused by sudden changes in radar wave backscattering, thereby achieving hydrological constraints.

在一些实施例的步骤S303和步骤S304中,利用有限差分法计算每一个水体修正图斑的平均梯度进行二次确定,设定梯度阈值,理论上水面的高程梯度应该趋近于0,考虑到分辨率误差的存在,根据DEM分辨率预先设置一定容差,若水体修正图斑的平均梯度大于梯度阈值,说明此处是斜坡盲区造成的误检,将其修改为陆地图斑,若水体修正图斑的平均梯度小于梯度阈值,则确定水体修正图斑为水体图斑,从而实现高程约束。In step S303 and step S304 of some embodiments, the finite difference method is used to calculate the average gradient of each water body correction patch for secondary determination, and a gradient threshold is set. In theory, the elevation gradient of the water surface should be close to 0. Taking into account the existence of resolution error, a certain tolerance is pre-set according to the DEM resolution. If the average gradient of the water body correction patch is greater than the gradient threshold, it means that this is a false detection caused by the slope blind spot, and it is modified to a land patch. If the average gradient of the water body correction patch is less than the gradient threshold, the water body correction patch is determined to be a water body patch, thereby achieving elevation constraint.

采用有限差分法,计算水体修正图斑的公式具体用下式表示:Using the finite difference method, the formula for calculating the water body correction pattern is specifically expressed as follows:

式1: Formula 1:

式2: Formula 2:

式3: Formula 3:

其中,G表示水体修正图斑的平均梯度,dx表示水体修正图斑的x轴方向梯度,dy表示水体修正图斑的y轴方向梯度,f(i,j)表示数字高程模型上像素坐标为(i,j)的高程值。Among them, G represents the average gradient of the water correction pattern, dx represents the gradient of the water correction pattern in the x-axis direction, dy represents the gradient of the water correction pattern in the y-axis direction, and f(i,j) represents the elevation value of the pixel coordinates (i,j) on the digital elevation model.

在一些实施例的步骤S305中,确定了极化SAR图像中对应的水体图斑后,对水体图斑进行标记,获得水体图斑标记图像。In step S305 of some embodiments, after the corresponding water body spots in the polarization SAR image are determined, the water body spots are marked to obtain a water body spot marked image.

在一些实施例中,步骤S107可以包括但不限于包括步骤S401至步骤S402:In some embodiments, step S107 may include but is not limited to steps S401 to S402:

步骤S401,通过马尔科夫随机场构建水体图斑标记图像的二阶邻域能量场,计算水体图斑标记图像的初始能量;Step S401, constructing a second-order neighborhood energy field of the water body spot marked image through a Markov random field, and calculating the initial energy of the water body spot marked image;

步骤S402,通过模拟退火降噪策略和迭代条件模式策略,对初始能量进行最小化处理,获得水体提取结果。Step S402, the initial energy is minimized by using a simulated annealing denoising strategy and an iterative conditional mode strategy to obtain a water body extraction result.

在一些实施例的步骤S401至步骤S402中,利用马尔科夫随机场构建图像的二阶邻域能量场,计算全图的初始能量,并利用ICM(迭代条件模式)策略和模拟退火降噪策略实现能量最小化,使降噪效果达到全局最优,获得每个单极化通道下的极化SAR图像对应的单极化水体提取结果。In steps S401 to S402 of some embodiments, the second-order neighborhood energy field of the image is constructed using the Markov random field, the initial energy of the entire image is calculated, and the ICM (iterative conditional mode) strategy and the simulated annealing denoising strategy are used to achieve energy minimization, so that the denoising effect reaches the global optimum, and the single-polarization water body extraction result corresponding to the polarization SAR image under each single-polarization channel is obtained.

在一些实施例的步骤S401中,通过马尔科夫随机场构建水体图斑标记图像的二阶领域能量场,计算水体图斑标记图像的初始能量,具体用下式表示:In step S401 of some embodiments, the second-order field energy field of the water body spot mark image is constructed by using the Markov random field, and the initial energy of the water body spot mark image is calculated, which is specifically expressed by the following formula:

其中,E为水体图斑标记图像的初始能量,表示能量基团为{xi,yi,xj}的局部能量,h,β,η表示非负权重,xi为水体图斑标记图像中的像素,xj为xi的二阶邻域像素,yi为xi对应的噪声图中的像素。Among them, E is the initial energy of the water body spot marked image, represents the local energy of the energy group { xi , yi , xj }, h, β, η represent non-negative weights, xi is the pixel in the water body spot marked image, xj is the second-order neighboring pixel of xi , and yi is the pixel in the noise image corresponding to xi .

在一些实施例的步骤S402中,ICM策略通过改变当前像素并固定其他像素的方式,来计算水体图斑标记图像的局部能量变化。在模拟退火中,根据当前温度t和局部能量变化,计算局部可接受概率q,计算公式如下:In step S402 of some embodiments, the ICM strategy calculates the local energy change of the water body spot mark image by changing the current pixel and fixing other pixels. In simulated annealing, the local acceptable probability q is calculated according to the current temperature t and the local energy change, and the calculation formula is as follows:

其中,exp(*)表示自然常数e为底的指数函数,相当于e*,E(xnew)和E(xk)分别表示水体图斑标记图像的当前像素改变前后的局部能量,温度t控制整个算法流程,随着迭代计算的进行,温度t最终趋近于0,其计算公式如下:Wherein, exp(*) represents an exponential function with the natural constant e as the base, which is equivalent to e * . E(x new ) and E(x k ) represent the local energy of the current pixel of the water body spot mark image before and after the change, respectively. The temperature t controls the entire algorithm process. As the iterative calculation proceeds, the temperature t eventually approaches 0. The calculation formula is as follows:

其中,s为常数,控制温度下降速率,k和kmax为当前迭代次数和最大迭代次数。根据Metropolis准则,以概率确认是否保留新状态,公式如下:Among them, s is a constant that controls the temperature drop rate, k and kmax are the current iteration number and the maximum iteration number. According to the Metropolis criterion, the probability of whether to keep the new state is determined by the following formula:

其中,q表示上述局部可接受概率,xk表示第k次迭代的图像当前像素值,xnew表示图像当前像素改变后的新值,xk+1表示第k次迭代完成后进入k+1次迭代的当前像素值,ξ为在[0,1)区间上均匀分布的随机数。当q大于ξ或q大于等于1时,则接受当前像素改变,反之则不接受。Among them, q represents the above-mentioned local acceptable probability, xk represents the current pixel value of the image at the kth iteration, xnew represents the new value of the current pixel of the image after the change, xk+1 represents the current pixel value entering the k+1th iteration after the kth iteration is completed, and ξ is a random number uniformly distributed in the interval [0,1). When q is greater than ξ or q is greater than or equal to 1, the current pixel change is accepted, otherwise it is not accepted.

在一些实施例的步骤S108中,以交集的方式组合多个单极化水体提取结果,即当且仅当一个像素在不同的极化通道下均为水体(所有的单极化水体提取结果均显示该像素为水体部分)时,该像素才最终标记为水体,从而确定多极化水体检测结果,通过这种多极化融合的方式可以大大改善水体检测结果。In step S108 of some embodiments, multiple single-polarization water body extraction results are combined in an intersection manner, that is, when and only when a pixel is a water body under different polarization channels (all single-polarization water body extraction results show that the pixel is part of a water body), the pixel is finally marked as a water body, thereby determining a multi-polarization water body detection result. This multi-polarization fusion method can greatly improve the water body detection result.

参照图2,图2是运用本申请实施例提供的一种融合多尺度极化SAR图像的水体检测方法的一个可选的图像处理效果示意图,其中,第一步,获得同一SAR图像数据的不同极化SAR图像(步骤S101);第二步,对图像进行预处理(步骤S202);第三步,多尺度融合阈值分割(步骤S102至步骤S105);第四步,高程约束和水文约束(步骤S106);第五步,马尔科夫随机场和模拟退火降噪(步骤S107);第六步,多极化通道融合(步骤S108)。Referring to Figure 2, Figure 2 is a schematic diagram of an optional image processing effect of a water body detection method for fusing multi-scale polarization SAR images provided by an embodiment of the present application, wherein, in the first step, different polarization SAR images of the same SAR image data are obtained (step S101); the second step is to preprocess the image (step S202); the third step is multi-scale fusion threshold segmentation (steps S102 to S105); the fourth step is elevation constraint and hydrological constraint (step S106); the fifth step is Markov random field and simulated annealing denoising (step S107); and the sixth step is multi-polarization channel fusion (step S108).

参照图3,图3是本申请实施例提供的一种融合多尺度极化SAR图像的水体检测装置的一个可选的结构示意图,该装置包括:Referring to FIG. 3 , FIG. 3 is an optional structural schematic diagram of a water body detection device for fusing multi-scale polarimetric SAR images provided in an embodiment of the present application, the device comprising:

第一模块,用于获取同一个SAR图像数据的多个极化SAR图像;The first module is used to obtain multiple polarization SAR images of the same SAR image data;

第二模块,用于针对每个极化SAR图像,执行多尺度图像分割操作,获得多个第一尺度图像块以及多个第二尺度图像块,确定多个第一尺度像素灰度直方图以及多个第二尺度像素灰度直方图;第一尺度像素灰度直方图为第一尺度图像块的像素灰度直方图;第二尺度像素灰度直方图为第二尺度图像块的像素灰度直方图;The second module is used to perform a multi-scale image segmentation operation for each polarimetric SAR image, obtain a plurality of first-scale image blocks and a plurality of second-scale image blocks, and determine a plurality of first-scale pixel grayscale histograms and a plurality of second-scale pixel grayscale histograms; the first-scale pixel grayscale histogram is a pixel grayscale histogram of the first-scale image block; the second-scale pixel grayscale histogram is a pixel grayscale histogram of the second-scale image block;

第三模块,用于根据第一尺度像素灰度直方图和第二尺度像素灰度直方图,确定第一尺度水体部分以及第二尺度水体部分;第一尺度水体部分为第一尺度图像块中包含的水体区域;第二尺度水体部分为第二尺度图像块包含的水体区域;The third module is used to determine the first-scale water body part and the second-scale water body part according to the first-scale pixel grayscale histogram and the second-scale pixel grayscale histogram; the first-scale water body part is the water body area included in the first-scale image block; the second-scale water body part is the water body area included in the second-scale image block;

第四模块,用于根据图像块的空间关系,构建第一尺度图像块与第二尺度图像块之间的图像块父子关系;A fourth module is used to construct an image block parent-child relationship between the first-scale image block and the second-scale image block according to the spatial relationship of the image blocks;

第五模块,用于根据图像块父子关系、第一尺度水体部分以及第二尺度水体部分,执行图像多尺度融合操作,获得每个极化SAR图像对应的水体标记图像;The fifth module is used to perform a multi-scale image fusion operation according to the parent-child relationship of the image blocks, the first-scale water body part and the second-scale water body part, so as to obtain a water body label image corresponding to each polarimetric SAR image;

第六模块,用于对水体标记图像进行栅格图形游程编码,通过水文约束以及高程约束,获得每个极化SAR图像对应的水体图斑标记图像;The sixth module is used to perform raster graphics run-length encoding on the water body marker image, and obtain the water body spot marker image corresponding to each polarimetric SAR image through hydrological constraints and elevation constraints;

第七模块,用于采用马尔科夫随机场和模拟退火降噪策略,对水体图斑标记图像进行图像降噪处理,获得每个极化SAR图像对应的单极化水体提取结果;The seventh module is used to perform image denoising on the water body spot marked image using Markov random field and simulated annealing denoising strategy to obtain the single polarization water body extraction result corresponding to each polarization SAR image;

第八模块,用于根据多个单极化水体提取结果,确定多极化水体检测结果。The eighth module is used to determine the multi-polarization water body detection result based on the multiple single-polarization water body extraction results.

该融合多尺度极化SAR图像的水体检测装置的具体实施方式与上述融合多尺度极化SAR图像的水体检测方法的具体实施例基本相同,在此不再赘述。The specific implementation of the water body detection device for fusing multi-scale polarimetric SAR images is basically the same as the specific implementation of the water body detection method for fusing multi-scale polarimetric SAR images described above, and will not be repeated here.

本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述融合多尺度极化SAR图像的水体检测方法。An embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned water body detection method for fusing multi-scale polarization SAR images.

存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

本申请实施例提供的一种融合多尺度极化SAR图像的水体检测方法、装置及介质,其通过获取同一个SAR图像数据的多个极化SAR图像,通过多尺度图像分割操作以及图像多尺度融合操作,获得每个极化SAR图像对应的水体标记图像,采用马尔科夫随机场和模拟退火降噪策略,进行图像降噪处理,获得多个单极化水体提取结果,根据多个单极化水体提取结果,获得多极化水体检测结果。本申请无需复杂的模型训练过程和大量的人工参与,简单高效,能够快速大面积识别SAR图像中的水体信息,适用于复杂环境下的水体信息提取,通过水文约束和高程约束,减少斜坡盲区和后向散射突变引起的噪声干扰,克服了噪声干扰问题,利用马尔科夫随机场以及模拟退火策略使图像降噪达到全局最优。The embodiment of the present application provides a water body detection method, device and medium that fuses multi-scale polarization SAR images. It obtains multiple polarization SAR images of the same SAR image data, obtains a water body marker image corresponding to each polarization SAR image through multi-scale image segmentation operation and image multi-scale fusion operation, uses Markov random field and simulated annealing noise reduction strategy to perform image denoising, obtains multiple single-polarization water body extraction results, and obtains multi-polarization water body detection results based on multiple single-polarization water body extraction results. The present application does not require a complex model training process and a large amount of manual participation. It is simple and efficient, can quickly identify water body information in SAR images over a large area, is suitable for water body information extraction in complex environments, reduces noise interference caused by slope blind spots and backscattering mutations through hydrological constraints and elevation constraints, overcomes the noise interference problem, and uses Markov random fields and simulated annealing strategies to achieve global optimization of image denoising.

本申请实施例描述的实施例是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着技术的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

本领域技术人员可以理解的是,图中示出的技术方案并不构成对本申请实施例的限定,可以包括比图示更多或更少的步骤,或者组合某些步骤,或者不同的步骤。Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

以上参照附图说明了本申请实施例的优选实施例,并非因此局限本申请实施例的权利范围。本领域技术人员不脱离本申请实施例的范围和实质内所作的任何修改、等同替换和改进,均应在本申请实施例的权利范围之内。The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.

Claims (9)

1. The water body detection method for fusing the multi-scale polarized SAR image is characterized by comprising the following steps of:
acquiring a plurality of polarized SAR images of the same SAR image data;
Performing multi-scale image segmentation operation on each polarized SAR image to obtain a plurality of first-scale image blocks and a plurality of second-scale image blocks, and determining a plurality of first-scale pixel gray histograms and a plurality of second-scale pixel gray histograms; the first-scale pixel gray level histogram is a pixel gray level histogram of the first-scale image block; the second-scale pixel gray level histogram is the pixel gray level histogram of the second-scale image block;
determining a first-scale water body part and a second-scale water body part according to the first-scale pixel gray level histogram and the second-scale pixel gray level histogram; the first scale water body part is a water body area contained in the first scale image block; the second-scale water body part is a water body area contained in the second-scale image block;
Constructing an image block father-son relationship between the first-scale image block and the second-scale image block according to the spatial relationship of the image blocks;
performing image multi-scale fusion operation according to the image block father-son relationship, the first-scale water body part and the second-scale water body part to obtain a water body mark image corresponding to each polarized SAR image;
Performing grid pattern run-length coding on the water body mark images, and obtaining water body pattern spot mark images corresponding to each polarized SAR image through hydrologic constraint and high Cheng Yaoshu;
carrying out image noise reduction processing on the water body image spot marked image by adopting a Markov random field and a simulated annealing noise reduction strategy to obtain a single polarized water body extraction result corresponding to each polarized SAR image;
Determining a multi-polarization water body detection result according to the single-polarization water body extraction results;
The step of performing grid pattern run-length coding on the water body mark images and obtaining the water body pattern spot mark image corresponding to each polarized SAR image through hydrologic constraint and high Cheng Yaoshu specifically comprises the following steps:
Performing grid pattern run-length coding on the water body marker image to determine a plurality of predetermined water body map spots and a plurality of land map spots;
Correcting the predetermined water body map spots and the land map spots through a digital elevation model to obtain a plurality of water body correction map spots;
Calculating the average gradient of each water body correction map spot by adopting a finite difference method;
Judging whether the water body correction pattern spots are water body pattern spots or not according to a preset gradient threshold value and the average gradient of the water body correction pattern spots;
and marking the water body image spots of each polarized SAR image to obtain the water body image spot marking image.
2. The method for water detection fusing multiscale polarized SAR images according to claim 1, further comprising:
And generating a water body detection image according to the multi-polarization water body detection result and the SAR image data.
3. The method for detecting a water body by fusing multiscale polarized SAR images according to claim 1, wherein said step of acquiring a plurality of polarized SAR images of the same SAR image data comprises:
SAR image data are obtained;
Preprocessing and decibeling are carried out on the SAR image data to obtain a plurality of polarized SAR images; the preprocessing includes focusing processing, multiview processing, filtering processing, geocoding processing, and radiation correction processing.
4. The method for detecting a water body by fusing multi-scale polarized SAR images according to claim 1, wherein said step of performing multi-scale image segmentation operation to obtain a plurality of first-scale image blocks and a plurality of second-scale image blocks and determining a plurality of first-scale pixel gray level histograms and a plurality of second-scale pixel gray level histograms for each of said polarized SAR images specifically comprises:
acquiring a first scale image segmentation size and a second scale image segmentation size;
Dividing the polarized SAR image according to the first scale image dividing size to obtain a plurality of first scale image blocks;
dividing the polarized SAR image according to the dividing size of the second scale image to obtain a plurality of second scale image blocks;
Counting pixel gray scales rectangularities for each first-scale image block to obtain a first-scale pixel gray scale histogram;
and counting the pixel gray level rectangularities for each second-scale image block to obtain the second-scale pixel gray level histogram.
5. The method for detecting a water body by fusing multiscale polarized SAR images according to claim 1, wherein said step of calculating the average gradient of each of said water body corrected patches by finite difference method is specifically represented by the following formula:
formula 1:
formula 2:
Formula 3:
wherein G represents the average gradient of the water body correction pattern spot, dx represents the x-axis gradient of the water body correction pattern spot, dy represents the y-axis gradient of the water body correction pattern spot, and f (i, j) represents the elevation value of the pixel coordinate (i, j) on the digital elevation model.
6. The method for detecting water body by fusing multi-scale polarized SAR images according to claim 1, wherein the step of performing image denoising processing on the water body map spot marker images by using a markov random field and a simulated annealing denoising strategy to obtain a single polarized water body extraction result corresponding to each polarized SAR image specifically comprises the steps of:
constructing a second-order field energy field of the water body image spot marking image through a Markov random field, and calculating initial energy of the water body image spot marking image;
and performing minimization treatment on the initial energy through a simulated annealing noise reduction strategy and an iteration condition mode strategy to obtain the single-polarized water body extraction result.
7. The method for detecting water body by fusing multiscale polarized SAR images according to claim 6, wherein said step of constructing a second-order domain energy field of said water body speckle marker image by markov random field and calculating the initial energy of said water body speckle marker image is specifically represented by the following formula:
Where E is the initial energy of the water body pattern spot marker image, and represents the local energy of the energy group { x i,yi,xj }, h, β, η represents the non-negative weight, x i is the pixel in the water body pattern spot marker image, x j is the second-order neighborhood pixel of x i, and y i is the pixel in the noise map corresponding to x i.
8. A water body detection device fusing multiscale polarized SAR images is characterized by comprising:
A first module for acquiring a plurality of polarized SAR images of the same SAR image data;
The second module is used for executing multi-scale image segmentation operation for each polarized SAR image to obtain a plurality of first-scale image blocks and a plurality of second-scale image blocks, and determining a plurality of first-scale pixel gray histograms and a plurality of second-scale pixel gray histograms; the first-scale pixel gray level histogram is a pixel gray level histogram of the first-scale image block; the second-scale pixel gray level histogram is the pixel gray level histogram of the second-scale image block;
A third module for determining a first scale water body portion and a second scale water body portion according to the first scale pixel gray level histogram and the second scale pixel gray level histogram; the first scale water body part is a water body area contained in the first scale image block; the second-scale water body part is a water body area contained in the second-scale image block;
A fourth module, configured to construct an image block parent-child relationship between the first-scale image block and the second-scale image block according to a spatial relationship of the image blocks;
A fifth module, configured to perform an image multi-scale fusion operation according to the image block father-son relationship, the first-scale water body portion, and the second-scale water body portion, and obtain a water body marker image corresponding to each polarized SAR image;
A sixth module, configured to perform raster graphics run-length encoding on the water body marker images, and obtain a water body map spot marker image corresponding to each polarized SAR image through hydrologic constraint and altitude Cheng Yaoshu; the step of performing grid pattern run-length coding on the water body mark images and obtaining the water body pattern spot mark image corresponding to each polarized SAR image through hydrologic constraint and high Cheng Yaoshu specifically comprises the following steps:
Performing grid pattern run-length coding on the water body marker image to determine a plurality of predetermined water body map spots and a plurality of land map spots;
Correcting the predetermined water body map spots and the land map spots through a digital elevation model to obtain a plurality of water body correction map spots;
Calculating the average gradient of each water body correction map spot by adopting a finite difference method;
Judging whether the water body correction pattern spots are water body pattern spots or not according to a preset gradient threshold value and the average gradient of the water body correction pattern spots;
marking the water body image spots of each polarized SAR image to obtain the water body image spot marking image;
A seventh module, configured to perform image noise reduction processing on the water body map spot marker image by using a markov random field and a simulated annealing noise reduction strategy, to obtain a single polarized water body extraction result corresponding to each polarized SAR image;
And an eighth module, configured to determine a multi-polarized water body detection result according to the multiple single-polarized water body extraction results.
9. A computer readable storage medium comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method for water detection of fusion of multiscale polarized SAR images according to any one of claims 1 to 7.
CN202311051666.5A 2023-08-18 2023-08-18 Water body detection method, device and medium based on fusion of multi-scale polarimetric SAR images Active CN117036222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311051666.5A CN117036222B (en) 2023-08-18 2023-08-18 Water body detection method, device and medium based on fusion of multi-scale polarimetric SAR images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311051666.5A CN117036222B (en) 2023-08-18 2023-08-18 Water body detection method, device and medium based on fusion of multi-scale polarimetric SAR images

Publications (2)

Publication Number Publication Date
CN117036222A CN117036222A (en) 2023-11-10
CN117036222B true CN117036222B (en) 2024-04-19

Family

ID=88635155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311051666.5A Active CN117036222B (en) 2023-08-18 2023-08-18 Water body detection method, device and medium based on fusion of multi-scale polarimetric SAR images

Country Status (1)

Country Link
CN (1) CN117036222B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103076612A (en) * 2013-01-07 2013-05-01 河海大学 Building surveying and mapping method combining laser radar with aerial photography
CN103208121A (en) * 2013-04-12 2013-07-17 南京师范大学 Remote sensing image segmentation method based on hard boundary constraint and two-stage combination
CN105046087A (en) * 2015-08-04 2015-11-11 中国资源卫星应用中心 Water body information automatic extraction method for multi-spectral image of remote sensing satellite
KR101814023B1 (en) * 2017-01-09 2018-01-03 한양대학교 에리카산학협력단 Apparatus and Method for Automatic Calibration of Finite Difference Grid Data
CN109816674A (en) * 2018-12-27 2019-05-28 北京航天福道高技术股份有限公司 An edge extraction method of registration map based on Canny operator
CN111931709A (en) * 2020-09-17 2020-11-13 航天宏图信息技术股份有限公司 Water body extraction method and device for remote sensing image, electronic equipment and storage medium
CN113484245A (en) * 2021-07-05 2021-10-08 重庆市规划和自然资源调查监测院 Remote sensing rapid monitoring method and system for paddy field planting pattern in hilly and mountainous areas and computer readable storage medium
CN113848551A (en) * 2021-09-24 2021-12-28 成都理工大学 A Landslide Depth Inversion Method Using InSAR Elevating Orbit Deformation Data
WO2022252242A1 (en) * 2021-06-04 2022-12-08 江苏南大五维电子科技有限公司 Multispectral image-based water pollution area identification method and system
CN115659733A (en) * 2022-10-17 2023-01-31 武汉大学 Regional scale large-scale water delivery channel leakage characteristic estimation method and device
CN116305902A (en) * 2023-03-09 2023-06-23 中国水利水电科学研究院 A method for spatial simulation of flood maximum inundation water depth based on multimodal remote sensing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MX2021002202A (en) * 2018-08-31 2021-05-14 Climate Corp Subfield moisture model improvement using overland flow modeling with shallow water computations.

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103076612A (en) * 2013-01-07 2013-05-01 河海大学 Building surveying and mapping method combining laser radar with aerial photography
CN103208121A (en) * 2013-04-12 2013-07-17 南京师范大学 Remote sensing image segmentation method based on hard boundary constraint and two-stage combination
CN105046087A (en) * 2015-08-04 2015-11-11 中国资源卫星应用中心 Water body information automatic extraction method for multi-spectral image of remote sensing satellite
KR101814023B1 (en) * 2017-01-09 2018-01-03 한양대학교 에리카산학협력단 Apparatus and Method for Automatic Calibration of Finite Difference Grid Data
CN109816674A (en) * 2018-12-27 2019-05-28 北京航天福道高技术股份有限公司 An edge extraction method of registration map based on Canny operator
CN111931709A (en) * 2020-09-17 2020-11-13 航天宏图信息技术股份有限公司 Water body extraction method and device for remote sensing image, electronic equipment and storage medium
WO2022252242A1 (en) * 2021-06-04 2022-12-08 江苏南大五维电子科技有限公司 Multispectral image-based water pollution area identification method and system
CN113484245A (en) * 2021-07-05 2021-10-08 重庆市规划和自然资源调查监测院 Remote sensing rapid monitoring method and system for paddy field planting pattern in hilly and mountainous areas and computer readable storage medium
CN113848551A (en) * 2021-09-24 2021-12-28 成都理工大学 A Landslide Depth Inversion Method Using InSAR Elevating Orbit Deformation Data
CN115659733A (en) * 2022-10-17 2023-01-31 武汉大学 Regional scale large-scale water delivery channel leakage characteristic estimation method and device
CN116305902A (en) * 2023-03-09 2023-06-23 中国水利水电科学研究院 A method for spatial simulation of flood maximum inundation water depth based on multimodal remote sensing

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
Extraction and Classification of Flood-Affected Areas Based on MRF and Deep Learning;Jie Wang et al.;water;全文 *
Object-Scale Adaptive Convolutional Neural Networks for High-Spatial Resolution Remote Sensing Image Classification;Jie Wang et al.;IEEE JOURNAL OF SELECTED TOPICS IN APPLIED EARTH OBSERVATIONS AND REMOTE SENSING;全文 *
土结构相互作用体系动力响应的敏感性分析;古泉等;地下空间与工程学报;第11卷(第S1期);全文 *
基于图斑空间关系的遥感专家分类方法研究;蔡晓斌;陈晓玲;王涛;吴忠宜;;武汉大学学报(信息科学版)(04);全文 *
基于数字高程模型的复杂地表红外辐射特性模拟;丁伟利;刘晓民;付双飞;王文锋;;系统仿真学报(12);全文 *
融合梯度与平坦度的城区点云滤波算法;盛志娟;;遥感信息(06);全文 *

Also Published As

Publication number Publication date
CN117036222A (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN107610164B (en) High-resolution four-number image registration method based on multi-feature mixing
CN111027446B (en) Coastline automatic extraction method of high-resolution image
Zhao et al. Road network extraction from airborne LiDAR data using scene context
CN107145874A (en) Ship Target Detection and Discrimination Method in Complex Background SAR Image
CN107145891B (en) A method and system for water body extraction based on remote sensing images
CN111027511A (en) Remote sensing image ship detection method based on region of interest block extraction
CN104715474B (en) Linear Building Detection Method for High Resolution Synthetic Aperture Radar Image Based on Marker Watershed Algorithm
CN105184251B (en) A kind of recognition methods in the wawter bloom region based on high score No.1 satellite image and device
CN103984945A (en) Optical remote sensing image ship detection method
CN101694720B (en) Multi-temporal SAR Image Change Detection Method Based on Spatial Correlation Conditional Probability Fusion
WO2019049324A1 (en) Image processing device, image processing method and storage medium
CN107767404A (en) A kind of remote sensing images sequence moving target detection method based on improvement ViBe background models
CN105139396B (en) A fully automatic remote sensing image cloud detection method
CN113221813B (en) Coastline remote sensing extraction method
CN116704331A (en) Beach change information extraction method and device and electronic equipment
CN114998365A (en) Ground feature classification method based on polarimetric interference SAR
CN114332085B (en) Optical satellite remote sensing image detection method
CN104700427B (en) A kind of road damage information extracting method based on SAR image
CN117036222B (en) Water body detection method, device and medium based on fusion of multi-scale polarimetric SAR images
Wei et al. Extracting line features in SAR images through image edge fields
CN116129191B (en) Multi-target intelligent identification and fine classification method based on remote sensing AI
CN117932333A (en) Urban building height extraction method considering different terrain scenes
CN115082359B (en) Synchronous orbit optical satellite geometric fine correction method based on coastline data
Zhang et al. A road extraction method based on high resolution remote sensing image
CN117092647A (en) Method and system for manufacturing regional satellite-borne optical and SAR image DOM

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