[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118628841B - Remote sensing image data processing method, device, equipment and storage medium - Google Patents

Remote sensing image data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN118628841B
CN118628841B CN202411095587.9A CN202411095587A CN118628841B CN 118628841 B CN118628841 B CN 118628841B CN 202411095587 A CN202411095587 A CN 202411095587A CN 118628841 B CN118628841 B CN 118628841B
Authority
CN
China
Prior art keywords
probability
weight
image
pixel
category
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
CN202411095587.9A
Other languages
Chinese (zh)
Other versions
CN118628841A (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.)
Peng Cheng Laboratory
Original Assignee
Peng Cheng Laboratory
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 Peng Cheng Laboratory filed Critical Peng Cheng Laboratory
Priority to CN202411095587.9A priority Critical patent/CN118628841B/en
Publication of CN118628841A publication Critical patent/CN118628841A/en
Application granted granted Critical
Publication of CN118628841B publication Critical patent/CN118628841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the application provides a remote sensing image data processing method, a remote sensing image data processing device, remote sensing image data processing equipment and a storage medium, and relates to the technical field of remote sensing image processing. Selecting a target probability image from probability images of the remote sensing image, acquiring a time front probability image and a time rear probability image, selecting a target pixel from the target probability image, selecting a current category, calculating a spatial neighborhood similarity weight of the target pixel according to the target probability image, calculating a temporal neighborhood similarity weight of the target pixel according to the time front probability image and the time rear probability image, calculating a correction weight of the current category based on a probability value of the target pixel, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, and updating a category result corresponding to the target pixel in the remote sensing image according to the correction weight. And the classification result is corrected by utilizing the rationality that the classification result of the long-time sequence remote sensing data changes back and forth in time and space and combining the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, so that the accuracy of the classification result is improved.

Description

遥感图像数据处理方法、装置、设备和存储介质Remote sensing image data processing method, device, equipment and storage medium

技术领域Technical Field

本申请涉及遥感图像处理技术领域,尤其涉及遥感图像数据处理方法、装置、设备和存储介质。The present application relates to the technical field of remote sensing image processing, and in particular to a remote sensing image data processing method, device, equipment and storage medium.

背景技术Background Art

遥感图像处理中长时序地表覆盖分类指的是利用卫星或航空器在较长时间内多次重复观测地面所得到的图像,通过监督分类方法获取每个像素在多个时间点的类型信息。例如某个像素点在第一年是草地,第二年变成水体,第三年变为裸土,而从第四年到第十年则变成了居民区。Long-term land cover classification in remote sensing image processing refers to the use of satellites or aircraft to repeatedly observe the ground for a long time, and obtain the type information of each pixel at multiple time points through supervised classification methods. For example, a pixel point is grassland in the first year, becomes a water body in the second year, becomes bare soil in the third year, and becomes a residential area from the fourth to the tenth year.

相关技术中基于概率空间建模的方法,如马尔科夫随机场,被用来提高分类准确性。马尔科夫随机场能够在一定程度上合理地约束时间序列数据的前后一致性和变化。然而其全局和局部转移概率的估计过程比较粗略,导致求解准确性和先验知识约束等都有局限性。In related technologies, methods based on probability space modeling, such as Markov random fields, are used to improve classification accuracy. Markov random fields can reasonably constrain the consistency and changes of time series data to a certain extent. However, the estimation process of its global and local transition probabilities is relatively rough, resulting in limitations in solution accuracy and prior knowledge constraints.

发明内容Summary of the invention

本申请实施例的主要目的在于提出遥感图像数据处理方法、装置、设备和存储介质,提升遥感数据的分类准确性。The main purpose of the embodiments of the present application is to propose a remote sensing image data processing method, device, equipment and storage medium to improve the classification accuracy of remote sensing data.

为实现上述目的,本申请实施例的第一方面提出了一种遥感图像数据处理方法,包括:To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a remote sensing image data processing method, comprising:

对多个时序的遥感图像进行分类,得到每个遥感图像对应的概率图像,所述概率图像中每个像素包括所述遥感图像在所述像素的对应位置图像在每个地表类别下的概率值;Classifying multiple time-series remote sensing images to obtain a probability image corresponding to each remote sensing image, wherein each pixel in the probability image includes a probability value of the remote sensing image at a position corresponding to the pixel under each surface category;

从所述概率图像中选取目标时间对应的目标概率图像,并获取所述目标时间之前第一预设数量的概率图像作为时间前概率图像,以及获取所述目标时间之后第二预设数量的概率图像作为时间后概率图像;Selecting a target probability image corresponding to the target time from the probability images, and obtaining a first preset number of probability images before the target time as a pre-time probability image, and obtaining a second preset number of probability images after the target time as a post-time probability image;

从所述目标概率图像中选取目标像素,并从所述地表类别中选取当前类别,根据所述目标概率图像计算所述目标像素在所述当前类别下的空间邻域相似权重,以及根据所述时间前概率图像和所述时间后概率图像计算所述目标像素在所述当前类别下的时间邻域相似权重;Selecting a target pixel from the target probability image and selecting a current category from the surface category, calculating a spatial neighborhood similarity weight of the target pixel under the current category according to the target probability image, and calculating a temporal neighborhood similarity weight of the target pixel under the current category according to the pre-time probability image and the post-time probability image;

基于所述目标像素的所述概率值、所述空间邻域相似权重和所述时间邻域相似权重计算所述当前类别下所述目标像素的修正权重,计算得到所述目标像素中每个所述地表类别对应的修正权重,根据所述修正权重更新所述遥感图像中所述目标像素对应的类别结果。The correction weight of the target pixel under the current category is calculated based on the probability value of the target pixel, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, and the correction weight corresponding to each surface category in the target pixel is calculated, and the category result corresponding to the target pixel in the remote sensing image is updated according to the correction weight.

在一些实施例,所述根据所述目标概率图像计算所述目标像素在所述当前类别下的空间邻域相似权重,包括:In some embodiments, calculating the spatial neighborhood similarity weight of the target pixel under the current category according to the target probability image includes:

根据预设邻域像素范围从所述目标概率图像中确定所述目标像素对应的空间邻域像素;Determining spatial neighborhood pixels corresponding to the target pixel from the target probability image according to a preset neighborhood pixel range;

将所述空间邻域像素在所述当前类别下对应的所述概率值相加,得到所述当前类别对应的所述空间邻域相似权重。The probability values corresponding to the spatial neighborhood pixels under the current category are added to obtain the spatial neighborhood similarity weight corresponding to the current category.

在一些实施例,所述时间邻域相似权重包括时间相似权重和时间转移权重,所述根据所述时间前概率图像和所述时间后概率图像计算所述目标像素在所述当前类别下的时间邻域相似权重,包括:In some embodiments, the temporal neighborhood similarity weight includes a temporal similarity weight and a temporal shift weight, and the step of calculating the temporal neighborhood similarity weight of the target pixel under the current category according to the temporal pre-probability image and the temporal post-probability image includes:

根据所述时间前概率图像和所述时间后概率图像计算所述目标像素在所述当前类别下的所述时间相似权重;Calculate the time similarity weight of the target pixel under the current category according to the time-previous probability image and the time-postvious probability image;

从所述时间前概率图像中选取目标时间之前第一个所述概率图像作为第一转移概率图像,从所述时间后概率图像中选取目标时间之后第一个所述概率图像作为第二转移概率图像;Select the first probability image before the target time from the before-time probability image as the first transition probability image, and select the first probability image after the target time from the after-time probability image as the second transition probability image;

根据所述第一转移概率图像和所述第二转移概率图像计算所述目标像素在所述当前类别下的所述时间转移权重。The temporal transfer weight of the target pixel in the current category is calculated according to the first transfer probability image and the second transfer probability image.

在一些实施例,所述根据所述时间前概率图像和所述时间后概率图像计算所述目标像素的所述时间相似权重,包括:In some embodiments, calculating the temporal similarity weight of the target pixel according to the pre-temporal probability image and the post-temporal probability image includes:

选取所述时间前概率图像和所述时间后概率图像中与所述目标像素相同位置的邻域像素,结合所述目标像素和所述邻域像素得到时间邻域像素;Selecting neighboring pixels at the same position as the target pixel in the time-previous probability image and the time-postvious probability image, and combining the target pixel and the neighboring pixels to obtain a time-neighboring pixel;

将所述时间邻域像素在所述当前类别下的所述概率值相加,得到所述当前类别对应的所述时间相似权重。The probability values of the temporal neighborhood pixels under the current category are added to obtain the temporal similarity weight corresponding to the current category.

在一些实施例,所述根据所述第一转移概率图像和所述第二转移概率图像计算所述目标像素的所述时间转移权重,包括:In some embodiments, calculating the temporal transfer weight of the target pixel according to the first transfer probability image and the second transfer probability image includes:

基于所述目标像素的所述空间邻域像素,获取所述第一转移概率图像的第一转移像素,以及获取所述第二转移概率图像的第二转移像素;Based on the spatial neighborhood pixels of the target pixel, acquiring a first transition pixel of the first transition probability image, and acquiring a second transition pixel of the second transition probability image;

对于每一个地表类别,基于同一像素位置,将所述第一转移像素的所述地表类别的概率值与所述空间邻域像素的所述当前类别对应的概率值相乘得到第一乘积值,在所述空间邻域像素对应的范围内对所述第一乘积值进行求和,得到所述地表类别下的第一候选值,并得到根据所述第二转移像素得到所述地表类别对应的第二候选值;For each surface category, based on the same pixel position, multiply the probability value of the surface category of the first shifted pixel by the probability value corresponding to the current category of the spatial neighboring pixel to obtain a first product value, sum the first product values within the range corresponding to the spatial neighboring pixels to obtain a first candidate value under the surface category, and obtain a second candidate value corresponding to the surface category according to the second shifted pixel;

将所述第一候选值的最大值和所述第二候选值的最大值相加,得到所述当前类别对应的所述时间转移权重。The maximum value of the first candidate value and the maximum value of the second candidate value are added to obtain the time transfer weight corresponding to the current category.

在一些实施例,所述基于所述目标像素的所述概率值、所述空间邻域相似权重和所述时间邻域相似权重计算所述当前类别下所述目标像素的修正权重,包括:In some embodiments, the calculating the modified weight of the target pixel in the current category based on the probability value of the target pixel, the spatial neighborhood similarity weight, and the temporal neighborhood similarity weight includes:

获取所述空间邻域相似权重的第一权重系数、所述时间相似权重的第二权重系数和所述时间转移权重的第三权重系数;Obtaining a first weight coefficient of the spatial neighborhood similarity weight, a second weight coefficient of the temporal similarity weight, and a third weight coefficient of the temporal transfer weight;

获取所述第一权重系数和所述空间邻域相似权重的第一修正值、所述第二权重系数和所述时间相似权重的第二修正值、所述第三权重系数和所述时间转移权重的第三修正值;Obtaining a first revised value of the first weight coefficient and the spatial neighborhood similarity weight, a second revised value of the second weight coefficient and the temporal similarity weight, and a third revised value of the third weight coefficient and the temporal transfer weight;

累加所述目标像素在所述当前类别下的所述概率值、所述第一修正值、所述第二修正值和所述第三修正值,得到所述当前类别的所述修正权重。The probability value, the first correction value, the second correction value, and the third correction value of the target pixel in the current category are accumulated to obtain the correction weight of the current category.

在一些实施例,所述基于所述目标像素的所述概率值、所述空间邻域相似权重和所述时间邻域相似权重计算所述当前类别下所述目标像素的修正权重,还包括:In some embodiments, the calculating the modified weight of the target pixel in the current category based on the probability value of the target pixel, the spatial neighborhood similarity weight, and the temporal neighborhood similarity weight further includes:

获取所述地表类别对应的无效转移概率矩阵,所述无效转移概率矩阵中包括在两两所述地表类别之间的无效转移概率值;Obtaining an invalid transition probability matrix corresponding to the surface category, wherein the invalid transition probability matrix includes invalid transition probability values between each of the surface categories;

根据所述第一转移概率图像、所述第二转移概率图像和所述无效转移概率矩阵得到所述目标像素在所述当前类别下无效转移权重;Obtaining an invalid transfer weight of the target pixel under the current category according to the first transfer probability image, the second transfer probability image and the invalid transfer probability matrix;

获取所述无效转移权重的第四权重系数,并获取所述第四权重系数和所述无效转移权重的第四修正值;obtaining a fourth weight coefficient of the invalid transfer weight, and obtaining a fourth correction value of the fourth weight coefficient and the invalid transfer weight;

在所述修正权重中减去所述第四修正值,更新所述修正权重。The fourth correction value is subtracted from the correction weight to update the correction weight.

在一些实施例,所述根据所述第一转移概率图像、所述第二转移概率图像和所述无效转移概率矩阵得到所述目标像素在所述当前类别下无效转移权重,包括:In some embodiments, obtaining the invalid transfer weight of the target pixel under the current category according to the first transfer probability image, the second transfer probability image and the invalid transfer probability matrix includes:

基于所述目标像素的所述空间邻域像素,从所述第一转移概率图像中选取第一概率转移像素,以及从所述第二转移概率图像中选取第二概率转移像素;Based on the spatial neighborhood pixels of the target pixel, selecting a first probability transition pixel from the first transition probability image, and selecting a second probability transition pixel from the second transition probability image;

将所述第一概率转移像素对应的所述地表类别作为转移前类型,将所述第二概率转移像素对应的地表类别作为转移后类型;The surface category corresponding to the first probability transfer pixel is used as the pre-transfer type, and the surface category corresponding to the second probability transfer pixel is used as the post-transfer type;

根据所述无效转移概率矩阵获取所述转移前类型和所述当前类型的转移前概率,以及获取所述转移后类型和所述当前类型的转移后概率;Acquire the pre-transfer type and the pre-transfer probability of the current type according to the invalid transition probability matrix, and acquire the post-transfer type and the post-transfer probability of the current type;

对于每一个地表类别,基于同一像素位置,将所述转移前概率的所述地表类别的概率值与所述空间邻域像素的所述当前类别对应的概率值相乘得到第三乘积值,在所述空间邻域像素对应的范围内对所述第三乘积值进行求和,得到所述地表类别下的第三候选值,并得到根据所述转移后概率得到所述地表类别对应的第四候选值;For each surface category, based on the same pixel position, the probability value of the surface category of the pre-transfer probability is multiplied by the probability value corresponding to the current category of the spatial neighboring pixels to obtain a third product value, the third product value is summed within the range corresponding to the spatial neighboring pixels to obtain a third candidate value under the surface category, and a fourth candidate value corresponding to the surface category is obtained according to the post-transfer probability;

将所述第三候选值的最大值和所述第四候选值的最大值相加,得到所述当前类别下无效转移权重。The maximum value of the third candidate value and the maximum value of the fourth candidate value are added together to obtain the invalid transfer weight under the current category.

为实现上述目的,本申请实施例的第二方面提出了一种遥感图像数据处理装置,包括:To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a remote sensing image data processing device, comprising:

地表类别分类模块:用于对多个时序的遥感图像进行分类,得到每个遥感图像对应的概率图像,所述概率图像中每个像素包括所述遥感图像在所述像素的对应位置图像在每个地表类别下的概率值;A surface category classification module is used to classify multiple time-series remote sensing images to obtain a probability image corresponding to each remote sensing image, wherein each pixel in the probability image includes a probability value of the remote sensing image at the corresponding position of the pixel under each surface category;

概率图像选取模块:用于从所述概率图像中选取目标时间对应的目标概率图像,并获取所述目标时间之前第一预设数量的概率图像作为时间前概率图像,以及获取所述目标时间之后第二预设数量的概率图像作为时间后概率图像;A probability image selection module is used to select a target probability image corresponding to a target time from the probability image, and obtain a first preset number of probability images before the target time as a pre-time probability image, and obtain a second preset number of probability images after the target time as a post-time probability image;

相似权重计算模块:用于从所述目标概率图像中选取目标像素,并从所述地表类别中选取当前类别,根据所述目标概率图像计算所述目标像素在所述当前类别下的空间邻域相似权重,以及根据所述时间前概率图像和所述时间后概率图像计算所述目标像素在所述当前类别下的时间邻域相似权重;A similarity weight calculation module: used to select a target pixel from the target probability image, select a current category from the surface category, calculate the spatial neighborhood similarity weight of the target pixel under the current category according to the target probability image, and calculate the temporal neighborhood similarity weight of the target pixel under the current category according to the pre-time probability image and the post-time probability image;

地表类别修正模块:用于基于所述目标像素的所述概率值、所述空间邻域相似权重和所述时间邻域相似权重计算所述当前类别下所述目标像素的修正权重,计算得到所述目标像素中每个所述地表类别对应的修正权重,根据所述修正权重更新所述遥感图像中所述目标像素对应的类别结果。Surface category correction module: used to calculate the correction weight of the target pixel under the current category based on the probability value of the target pixel, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, calculate the correction weight corresponding to each surface category in the target pixel, and update the category result corresponding to the target pixel in the remote sensing image according to the correction weight.

为实现上述目的,本申请实施例的第三方面提出了一种电子设备,所述电子设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的方法。To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.

为实现上述目的,本申请实施例的第四方面提出了一种存储介质,所述存储介质为存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面所述的方法。To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

本申请实施例提出的遥感图像数据处理方法、装置、设备和存储介质,通过对多个时序的遥感图像进行分类,得到每个遥感图像对应的概率图像,其中,概率图像中每个像素包括遥感图像在像素的对应位置图像在每个地表类别下的概率值。接下来从概率图像中选取目标时间对应的目标概率图像,并获取目标时间之前第一预设数量的概率图像作为时间前概率图像,以及获取目标时间之后第二预设数量的概率图像作为时间后概率图像。从目标概率图像中选取目标像素,并从地表类别中选取当前类别,根据目标概率图像计算目标像素在当前类别下的空间邻域相似权重,以及根据时间前概率图像和时间后概率图像计算目标像素在当前类别下的时间邻域相似权重,最后基于目标像素的概率值、空间邻域相似权重和时间邻域相似权重计算当前类别下目标像素的修正权重,计算得到目标像素中每个地表类别对应的修正权重,根据修正权重更新遥感图像中目标像素对应的类别结果。本申请实施例在得到遥感图像的分类结果后,利用长时序遥感数据的分类结果在时间和空间上存在前后变化的合理性,结合空间邻域相似权重和时间邻域相似权重对分类结果进行修正,从而减少伪变化,提升分类结果的准确性。The remote sensing image data processing method, device, equipment and storage medium proposed in the embodiment of the present application obtain a probability image corresponding to each remote sensing image by classifying multiple time series remote sensing images, wherein each pixel in the probability image includes the probability value of the remote sensing image at the corresponding position image of the pixel under each surface category. Next, the target probability image corresponding to the target time is selected from the probability image, and the probability images of the first preset number before the target time are obtained as the probability image before time, and the probability images of the second preset number after the target time are obtained as the probability image after time. The target pixel is selected from the target probability image, and the current category is selected from the surface category, and the spatial neighborhood similarity weight of the target pixel under the current category is calculated according to the target probability image, and the temporal neighborhood similarity weight of the target pixel under the current category is calculated according to the probability image before time and the probability image after time. Finally, the correction weight of the target pixel under the current category is calculated based on the probability value of the target pixel, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, and the correction weight corresponding to each surface category in the target pixel is calculated, and the category result corresponding to the target pixel in the remote sensing image is updated according to the correction weight. After obtaining the classification results of the remote sensing image, the embodiment of the present application utilizes the rationality of the classification results of the long-term remote sensing data in time and space, and combines the spatial neighborhood similarity weight and the temporal neighborhood similarity weight to correct the classification results, thereby reducing pseudo-changes and improving the accuracy of the classification results.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本申请实施例提供的遥感图像数据处理方法的流程图。FIG1 is a flow chart of a remote sensing image data processing method provided in an embodiment of the present application.

图2是本申请实施例提供的多个时序的遥感图像的示意图。FIG. 2 is a schematic diagram of multiple time-series remote sensing images provided in an embodiment of the present application.

图3是本申请实施例提供的概率图像的示意图。FIG. 3 is a schematic diagram of a probability image provided in an embodiment of the present application.

图4是本申请实施例根据目标概率图像计算目标像素在当前类别下的空间邻域相似权重的示意图。FIG4 is a schematic diagram of an embodiment of the present application for calculating the spatial neighborhood similarity weight of a target pixel in the current category based on a target probability image.

图5是本申请实施例提供的空间邻域像素的示意图。FIG. 5 is a schematic diagram of spatial neighborhood pixels provided in an embodiment of the present application.

图6是本申请实施例提供的根据时间前概率图像和时间后概率图像计算目标像素在当前类别下的时间邻域相似权重的流程图。FIG6 is a flowchart of calculating the temporal neighborhood similarity weight of a target pixel in the current category based on a temporal pre-probability image and a temporal post-probability image provided by an embodiment of the present application.

图7是本申请实施例提供的根据时间前概率图像和时间后概率图像计算目标像素的时间相似权重的示意图。FIG7 is a schematic diagram of calculating the temporal similarity weight of a target pixel based on a temporal pre-probability image and a temporal post-probability image provided by an embodiment of the present application.

图8是本申请实施例提供的根据第一转移概率图像和第二转移概率图像计算目标像素的时间转移权重的流程图。FIG8 is a flowchart of calculating the temporal transfer weight of a target pixel according to the first transfer probability image and the second transfer probability image provided by an embodiment of the present application.

图9是本申请实施例提供的基于目标像素的概率值、空间邻域相似权重和时间邻域相似权重计算当前类别下目标像素的修正权重的流程图。9 is a flowchart of calculating the modified weight of the target pixel in the current category based on the probability value of the target pixel, the spatial neighborhood similarity weight, and the temporal neighborhood similarity weight provided by an embodiment of the present application.

图10是本申请实施例提供的基于目标像素的概率值、空间邻域相似权重和时间邻域相似权重计算当前类别下目标像素的修正权重的又一流程图。FIG10 is another flowchart provided in an embodiment of the present application for calculating the modified weight of the target pixel in the current category based on the probability value of the target pixel, the spatial neighborhood similarity weight, and the temporal neighborhood similarity weight.

图11是本申请实施例提供的根据第一转移概率图像、第二转移概率图像和无效转移概率矩阵得到目标像素在当前类别下无效转移权重的流程图。11 is a flowchart of obtaining the invalid transfer weight of a target pixel in the current category according to the first transfer probability image, the second transfer probability image and the invalid transfer probability matrix provided by an embodiment of the present application.

图12为本申请实施例提供的遥感图像数据处理方法的实施效果示意图。FIG. 12 is a schematic diagram showing the implementation effect of the remote sensing image data processing method provided in an embodiment of the present application.

图13是本申请又一实施例提供的遥感图像数据处理装置结构框图。FIG13 is a structural block diagram of a remote sensing image data processing device provided in yet another embodiment of the present application.

图14是本申请实施例提供的电子设备的硬件结构示意图。FIG. 14 is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。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 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.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。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.

遥感图像处理中长时序地表覆盖分类指的是利用卫星或航空器在较长时间内多次重复观测地面所得到的图像,通过监督分类方法获取每个像素在多个时间点的类型信息,其中,像素的大小与分辨率有关,例如30米分辨率,对应成像位置的地表大约30米*30米范围。类型信息对应的结果数据的每个像素对应一个时间序列,代表对应成像范围的逐季度或逐年的类型序列。例如,某个像素点在第一年是草地,第二年变成水体,第三年变为裸土,而从第四年到第十年则变成了居民区。Long-term land cover classification in remote sensing image processing refers to the use of satellites or aircraft to repeatedly observe the ground for a long time to obtain the type information of each pixel at multiple time points through supervised classification methods, where the size of the pixel is related to the resolution. For example, a 30-meter resolution corresponds to a surface area of approximately 30 meters * 30 meters at the imaging location. Each pixel of the result data corresponding to the type information corresponds to a time series, representing a quarterly or yearly type sequence of the corresponding imaging range. For example, a pixel point is grassland in the first year, becomes a water body in the second year, becomes bare soil in the third year, and becomes a residential area from the fourth to the tenth year.

相关技术中基于概率空间建模的方法,如马尔科夫随机场,被用来提高分类准确性。概率空间建模的方法使用可以输出概率向量的分类器,概率向量的维数与类型数相同,每个维度的元素对应一个类型,其值对应当前点分类为该类型的概率。概率空间建模方法中每个时间的输入特征和分类方法可以不同,分类结果按像素对应,形成时间序列。虽然马尔科夫随机场能够在一定程度上合理地约束时间序列数据的前后一致性和变化。然而其全局和局部转移概率的估计过程比较粗略,导致求解准确性和先验知识约束等都有局限性。In the related art, methods based on probability space modeling, such as Markov random fields, are used to improve classification accuracy. The probability space modeling method uses a classifier that can output a probability vector. The dimension of the probability vector is the same as the number of types. The elements of each dimension correspond to a type, and its value corresponds to the probability that the current point is classified as that type. In the probability space modeling method, the input features and classification methods at each time can be different, and the classification results correspond to pixels to form a time series. Although the Markov random field can reasonably constrain the consistency and changes of time series data to a certain extent. However, the estimation process of its global and local transition probabilities is relatively rough, resulting in limitations in solution accuracy and prior knowledge constraints.

具体而言,求解准确性主要体现在时间序列结果的一致性上。例如,在前一个时间段的遥感图像中出现一片森林和一块裸地,在下一个时间段的遥感图像中,该位置实际上森林保持不变,而裸地变为草地。然而,在分类结果中,下一个时间段的森林部分被错误地分类为灌木丛,而稀疏的草地仍然被误分类为裸地。这时后一个时间段分类得到的灌木丛属于伪变化,同时其未能识别到裸地变为草地的真实变化。考虑到通常地表的实际变化比例并不高,因此分类结果中时间序列上的大部分变化可能都是伪变化。因此需要对分类结果进行修正来减少伪变化的发生,并尽可能少地遗漏真实变化,以获得准确的分类结果。Specifically, the accuracy of the solution is mainly reflected in the consistency of the time series results. For example, a forest and a bare land appear in the remote sensing image of the previous time period. In the remote sensing image of the next time period, the forest actually remains unchanged, while the bare land becomes grassland. However, in the classification results, the forest part of the next time period is mistakenly classified as bushes, while the sparse grassland is still misclassified as bare land. At this time, the bushes classified in the latter time period are pseudo-changes, and it fails to identify the real change of bare land turning into grassland. Considering that the actual change ratio of the surface is usually not high, most of the changes in the time series in the classification results may be pseudo-changes. Therefore, it is necessary to correct the classification results to reduce the occurrence of pseudo-changes and miss as few real changes as possible to obtain accurate classification results.

基于此,本申请实施例提供一种遥感图像数据处理方法、装置、设备和存储介质,在得到遥感图像的分类结果后,利用长时序遥感数据的分类结果在时间和空间上存在前后变化的合理性,结合空间邻域相似权重和时间邻域相似权重对分类结果进行修正,从而减少伪变化,提升分类结果的准确性。Based on this, the embodiments of the present application provide a remote sensing image data processing method, apparatus, equipment and storage medium. After obtaining the classification results of the remote sensing image, the rationality of the classification results of long-term remote sensing data in time and space is utilized, and the classification results are corrected in combination with the spatial neighborhood similarity weights and the temporal neighborhood similarity weights, thereby reducing pseudo-changes and improving the accuracy of the classification results.

本申请实施例提供遥感图像数据处理方法、装置、设备和存储介质,具体通过如下实施例进行说明,首先描述本申请实施例中的遥感图像数据处理方法。The embodiments of the present application provide a remote sensing image data processing method, apparatus, device and storage medium, which are specifically described through the following embodiments. First, the remote sensing image data processing method in the embodiments of the present application is described.

本申请实施例提供的遥感图像数据处理方法,涉及遥感图像处理技术领域。本申请实施例提供的遥感图像数据处理方法可应用于终端中,也可应用于服务器端中,还可以是运行于终端或服务器端中的计算机程序。举例来说,计算机程序可以是操作系统中的原生程序或软件模块;可以是本地(Native)应用程序(APP,Application),即需要在操作系统中安装才能运行的程序,如支持遥感图像数据处理的客户端,也可以是小程序,即只需要下载到浏览器环境中就可以运行的程序;还可以是能够嵌入至任意APP中的小程序。总而言之,上述计算机程序可以是任意形式的应用程序、模块或插件。其中,终端通过网络与服务器进行通信。该遥感图像数据处理方法可以由终端或服务器执行,或由终端和服务器协同执行。The remote sensing image data processing method provided in the embodiment of the present application relates to the technical field of remote sensing image processing. The remote sensing image data processing method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, and can also be a computer program running in a terminal or a server side. For example, a computer program can be a native program or software module in an operating system; it can be a native application (APP, Application), that is, a program that needs to be installed in an operating system to run, such as a client that supports remote sensing image data processing, or it can be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be an application, module or plug-in in any form. Among them, the terminal communicates with the server through a network. The remote sensing image data processing method can be executed by a terminal or a server, or by a terminal and a server in collaboration.

在一些实施例中,终端可以是智能手机、平板电脑、笔记本电脑、台式计算机或者智能手表等。此外,终端还可以是智能车载设备。该智能车载设备应用本实施例的遥感图像数据处理方法提供相关的服务,提升驾驶体验。服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器;也可以是区块链系统中的服务节点,该区块链系统中的各服务节点之间组成点对点(P2P,Peer To Peer,P2P)网络,P2P协议是一个运行在传输控制协议(Transmission Control Protocol,TCP)协议之上的应用层协议。终端与服务器之间可以通过蓝牙、通用串行总线(Universal Serial Bus,USB)或者网络等通讯连接方式进行连接,本实施例在此不做限制。In some embodiments, the terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, or a smart watch. In addition, the terminal may also be an intelligent vehicle-mounted device. The intelligent vehicle-mounted device applies the remote sensing image data processing method of this embodiment to provide related services and enhance the driving experience. The server may be an independent server, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms; or a service node in a blockchain system, wherein each service node in the blockchain system forms a peer-to-peer (P2P, Peer To Peer, P2P) network, and the P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP) protocol. The terminal and the server may be connected via Bluetooth, Universal Serial Bus (USB) or a network or other communication connection methods, which are not limited in this embodiment.

本申请可用于众多通用或专用的计算机系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

下面描述本申请实施例中的遥感图像数据处理方法。The remote sensing image data processing method in the embodiment of the present application is described below.

图1是本申请实施例提供的遥感图像数据处理方法的一个可选的流程图,图1中的方法可以包括但不限于包括步骤110至步骤140。同时可以理解的是,本实施例对图1中步骤110至步骤140的顺序不做具体限定,可以根据实际需求调整步骤顺序或者减少、增加某些步骤。FIG1 is an optional flow chart of a remote sensing image data processing method provided in an embodiment of the present application, and the method in FIG1 may include but is not limited to steps 110 to 140. It is also understood that the present embodiment does not specifically limit the order of steps 110 to 140 in FIG1, and the order of steps may be adjusted or some steps may be reduced or added according to actual needs.

步骤110:对多个时序的遥感图像进行分类,得到每个遥感图像对应的概率图像。Step 110: Classify multiple time-series remote sensing images to obtain a probability image corresponding to each remote sensing image.

在一实施例中,时序指的是连续的多个采集时间,每个采集时间都采集得到该时相对应的遥感图像,其中遥感图像中每个像素都对应一个按照实际需求划分的图像区域。参照图2,图2是本申请实施例提供的多个时序的遥感图像的示意图。图2中以T1、T2、T3和T4作为4个连续的采集时间,分别得到对应的遥感图像,遥感图像按照相同的区域划分方式得到尺寸一致的像素。以右上角的像素为例进行说明,时相T1中该像素为草地,图中表示为“草”,时相T2中该像素为水体,图中表示为“水”,时相T3中该像素为裸地,图中表示为“土”,时相T4中该像素为居民区,图中表示为“居”。In one embodiment, the time sequence refers to a plurality of continuous acquisition times, and each acquisition time acquires a remote sensing image corresponding to that time, wherein each pixel in the remote sensing image corresponds to an image area divided according to actual needs. Referring to Figure 2, Figure 2 is a schematic diagram of remote sensing images of multiple time sequences provided in an embodiment of the present application. In Figure 2, T1, T2, T3 and T4 are used as four continuous acquisition times, and corresponding remote sensing images are obtained respectively, and the remote sensing images obtain pixels of the same size according to the same area division method. Taking the pixel in the upper right corner as an example for explanation, the pixel in phase T1 is a grassland, which is represented as "grass" in the figure, the pixel in phase T2 is a water body, which is represented as "water" in the figure, the pixel in phase T3 is bare land, which is represented as "soil" in the figure, and the pixel in phase T4 is a residential area, which is represented as "residential" in the figure.

可以理解的是,本申请实施例对不同时相的遥感图像的采集方式不做限定,遥感数据可以来源于不同的传感器类型,比如光学传感器、合成孔径雷达(SAR)等,只需要将其按照像素对齐即可。It is understandable that the embodiments of the present application do not limit the method of collecting remote sensing images of different phases. The remote sensing data can come from different sensor types, such as optical sensors, synthetic aperture radar (SAR), etc., and they only need to be aligned pixel by pixel.

在一实施例中,接着将每个时相的遥感图像都送入分类器进行数据监督分类,得到每个时相的遥感图像对应的概率图像。参照图3,图3是本申请实施例提供的概率图像的示意图。其中,概率图像中每个像素都对应一个概率向量,概率向量的维度与预先义好的地表类别数量一致,每个维度上的元素值都对应一个地表类别的概率值,这个概率值为遥感图像在像素的对应位置图像被划分成某一个地表类别的概率,因此概率值越大,该像素被划分成对应类别的可能性越高。以右下角像素X为例,假设有8个地表类别,此时该位置对应一个8维的概率向量。In one embodiment, the remote sensing images of each phase are then sent to a classifier for data supervised classification to obtain a probability image corresponding to the remote sensing images of each phase. Referring to Figure 3, Figure 3 is a schematic diagram of a probability image provided by an embodiment of the present application. Among them, each pixel in the probability image corresponds to a probability vector, the dimension of the probability vector is consistent with the number of pre-defined surface categories, and the element value on each dimension corresponds to the probability value of a surface category. This probability value is the probability that the remote sensing image is divided into a certain surface category at the corresponding position of the pixel, so the larger the probability value, the higher the possibility that the pixel is divided into the corresponding category. Taking the lower right corner pixel X as an example, assuming that there are 8 surface categories, this position corresponds to an 8-dimensional probability vector.

在一实施例中,基于多个地表类别的分类,比如10类或以上的分类,通常每个像素的概率向量中只有2到3个概率值较大,其他的概率值非常接近0,因此本申请实施例可以只输出概率向量中前面几个概率值以及对应的地表类别,将其他地表类别的概率值都设置为0,从而减少需要存储的中间结果,提升数据处理效率。In one embodiment, based on the classification of multiple surface categories, such as 10 categories or more, usually only 2 to 3 probability values in the probability vector of each pixel are large, and the other probability values are very close to 0. Therefore, the embodiment of the present application can only output the first few probability values in the probability vector and the corresponding surface categories, and set the probability values of other surface categories to 0, thereby reducing the intermediate results that need to be stored and improving data processing efficiency.

可以理解的是,对于多个时序的概率图像时,如果按照时间顺序划分,那么每个时相的概率图像中像素的概率值可以直接对应到当前采集时间下遥感图像中的分类结果。如果按照像素划分,则不同时序的概率图像中同一位置的像素概率值能够反映出该位置地形随时间的变化情况。It can be understood that for probability images of multiple time series, if they are divided in time order, the probability value of the pixel in the probability image of each time phase can directly correspond to the classification result in the remote sensing image at the current acquisition time. If divided by pixel, the probability value of the pixel at the same position in the probability images of different time series can reflect the change of the terrain at that position over time.

步骤120:从概率图像中选取目标时间对应的目标概率图像,并获取目标时间之前第一预设数量的概率图像作为时间前概率图像,以及获取目标时间之后第二预设数量的概率图像作为时间后概率图像。Step 120: Select a target probability image corresponding to the target time from the probability images, obtain a first preset number of probability images before the target time as the before-time probability image, and obtain a second preset number of probability images after the target time as the after-time probability image.

在一实施例中,假设选取时间t作为目标时间,则时间t的遥感图像对应的概率图像作为目标概率图像。假设第一预设数量和第二预设数量均为5,则表示以时间t为中心,沿着时间方向,向前和向后分别选取5个概率图像,时间t之前的5个概率图像作为时间前概率图像,时间t之后的5个概率图像作为时间后概率图像。可以理解的是,首先第一预设数量和第二预设数量也可以不相等。其次,对应的数值可以根据实际图像处理需求设定。In one embodiment, assuming that time t is selected as the target time, the probability image corresponding to the remote sensing image at time t is used as the target probability image. Assuming that the first preset number and the second preset number are both 5, it means that with time t as the center, 5 probability images are selected forward and backward along the time direction, and the 5 probability images before time t are used as the probability images before time, and the 5 probability images after time t are used as the probability images after time. It can be understood that, first of all, the first preset number and the second preset number may not be equal. Secondly, the corresponding numerical value can be set according to the actual image processing requirements.

步骤130:从目标概率图像中选取目标像素,并从地表类别中选取当前类别,根据目标概率图像计算目标像素在当前类别下的空间邻域相似权重,以及根据时间前概率图像和时间后概率图像计算目标像素在当前类别下的时间邻域相似权重。Step 130: Select a target pixel from the target probability image and select a current category from the surface category, calculate the spatial neighborhood similarity weight of the target pixel in the current category based on the target probability image, and calculate the temporal neighborhood similarity weight of the target pixel in the current category based on the pre-time probability image and the post-time probability image.

在一实施例中,在对结果进行修正时,如果运算设备的算力不足,则可以考虑选取遥感图像中关键部分的像素的结果进行修正,如果运算设备的算力充足以及实际精度要求高,则可以逐像素进行修正。因此可以根据实际情况从目标概率图像中逐一选取需要进行修正的像素作为目标像素,本实施例对此不做限定。In one embodiment, when correcting the result, if the computing power of the computing device is insufficient, the result of selecting the pixels of the key part in the remote sensing image for correction can be considered, and if the computing power of the computing device is sufficient and the actual accuracy requirement is high, correction can be performed pixel by pixel. Therefore, according to the actual situation, the pixels that need to be corrected can be selected one by one from the target probability image as the target pixels, and this embodiment does not limit this.

在一实施例中,在选好目标像素之后,还可以基于实际的精度需求对地表类别中的每一种或者某几种进行修正,从地表类别中逐一选取需要进行修正的地表类别作为当前类别。In one embodiment, after the target pixel is selected, each or some of the surface categories may be corrected based on actual accuracy requirements, and the surface categories that need to be corrected are selected one by one from the surface categories as the current category.

接下来描述如何对目标限度的当前类别进行修正。Next, we describe how to modify the current category of the target limit.

在一实施例中,考虑到概率值比最大的概率值稍小的某一个类型,也有可能是正确结果,并且空间邻近的像素更可能是相同的类型,空间邻近的一定比例同时变化的可能是真变化,因此利用空间邻近结果的一致性进行辅助修正。参照图4,图4是本申请实施例根据目标概率图像计算目标像素在当前类别下的空间邻域相似权重的示意图,具体包括以下步骤:In one embodiment, considering that a type with a probability value slightly smaller than the maximum probability value may also be a correct result, and that spatially adjacent pixels are more likely to be of the same type, a certain proportion of spatially adjacent pixels changing at the same time may be a true change, so the consistency of the spatially adjacent results is used for auxiliary correction. Referring to FIG4 , FIG4 is a schematic diagram of an embodiment of the present application calculating the spatial neighborhood similarity weight of a target pixel under the current category based on a target probability image, specifically comprising the following steps:

步骤410:根据预设邻域像素范围从目标概率图像中确定目标像素对应的空间邻域像素。Step 410: Determine spatial neighborhood pixels corresponding to the target pixel from the target probability image according to a preset neighborhood pixel range.

在一实施例中,预设邻域像素范围可以是以目标像素为中心的预设长度矩形像素范围。这里的预设长度Ns的大小可以根据实际需求设定,例如,Ns为5或者7,对应的预设邻域像素范围为In one embodiment, the preset neighborhood pixel range may be a rectangular pixel range of preset length centered on the target pixel. The size of the preset length Ns here can be set according to actual needs. For example, if Ns is 5 or 7, the corresponding preset neighborhood pixel range is or .

然后从目标概率图像中根据预设邻域像素范围圈定目标像素的空间邻域像素,可以认为空间邻域像素的类别一定程度上与目标像素的类别关联。参照图5,图5是本申请实施例提供的空间邻域像素的示意图。图5中Ns为5,以像素X作为目标像素,此时目标像素位于的的中心区域,将该区域中所有像素都作为目标像素的空间邻域像素,包含目标像素在内。Then, the spatial neighborhood pixels of the target pixel are delineated from the target probability image according to the preset neighborhood pixel range. It can be considered that the category of the spatial neighborhood pixels is associated with the category of the target pixel to a certain extent. Referring to FIG. 5 , FIG. 5 is a schematic diagram of the spatial neighborhood pixels provided by an embodiment of the present application. In FIG. 5 , Ns is 5, and pixel X is taken as the target pixel. At this time, the target pixel is located at The central area of the target pixel is taken as the spatial neighborhood pixels of the target pixel, including the target pixel.

步骤420:将空间邻域像素在当前类别下对应的概率值相加,得到当前类别对应的空间邻域相似权重。Step 420: Add the probability values corresponding to the spatial neighborhood pixels under the current category to obtain the spatial neighborhood similarity weight corresponding to the current category.

在一实施例中,将所有的空间邻域像素在当前类别下对应的概率值相加,即可得到目标像素在当前类别下对应的空间邻域相似权重。结合图5,也就是将区域中所有的像素在当前类别的概率值相加,得到空间邻域相似权重。In one embodiment, the probability values of all spatial neighborhood pixels under the current category are added together to obtain the spatial neighborhood similarity weight corresponding to the target pixel under the current category. . Combined with Figure 5, that is, The probability values of all pixels in the area in the current category are added together to obtain the spatial neighborhood similarity weight.

在一实施例中,考虑到前后时间的少量变化大多是分类器判别错误导致的伪变化,因此利用时间邻近结果的一致性进行辅助修正。参照图6,图6是本申请实施例提供的根据时间前概率图像和时间后概率图像计算目标像素在当前类别下的时间邻域相似权重的流程图,具体包括以下步骤:In one embodiment, considering that a small amount of changes before and after time are mostly pseudo changes caused by classifier discrimination errors, the consistency of the temporal proximity results is used for auxiliary correction. Referring to FIG6 , FIG6 is a flowchart of calculating the temporal neighborhood similarity weight of the target pixel under the current category based on the temporal probability image before and the temporal probability image after provided by an embodiment of the present application, specifically including the following steps:

步骤610:根据时间前概率图像和时间后概率图像计算目标像素在当前类别下的时间相似权重。Step 610: Calculate the temporal similarity weight of the target pixel in the current category according to the temporal pre-probability image and the temporal post-probability image.

在一实施例中,连续时序下同一像素位置的分类结果通常不会出现较大的变化,因此可以考虑连续时序对结果一致性的影响。也就是说,时间前后有较强相似时,说明很可能一致没有变化,应该优先于其他类型的转换。例如前一个遥感图像中整体森林概率0.9,当前的遥感图像中整体草地概率0.5且森林0.4,后一遥感图像中也是整体森林0.9。相关技术中马尔科夫随机场利用概率最大的类型算转移矩阵,则会强化森林转换为草地,草地又转换为森林的概率,使得最后的分类结果中强化当前的遥感图像为草地。而事实上,前后时间的遥感图像都是森林,即便当前遥感图像的预测结果中森林概率只比草地稍低,也应该推断当前类型更可能为森林。参照图7,图7是本申请实施例提供的根据时间前概率图像和时间后概率图像计算目标像素的时间相似权重的示意图,具体包括以下步骤:In one embodiment, the classification results of the same pixel position under continuous time series usually do not change significantly, so the impact of continuous time series on the consistency of results can be considered. In other words, when there is a strong similarity before and after time, it means that there is a high probability of consistency and no change, and it should be given priority over other types of conversions. For example, the overall forest probability in the previous remote sensing image is 0.9, the overall grassland probability in the current remote sensing image is 0.5 and the forest is 0.4, and the overall forest in the next remote sensing image is also 0.9. In the related art, the Markov random field uses the type with the largest probability to calculate the transfer matrix, which will strengthen the probability of forest conversion to grassland, and grassland conversion to forest, so that the current remote sensing image is strengthened as grassland in the final classification result. In fact, the remote sensing images before and after the time are all forests. Even if the probability of forest in the prediction result of the current remote sensing image is only slightly lower than that of grassland, it should be inferred that the current type is more likely to be forest. Referring to Figure 7, Figure 7 is a schematic diagram of calculating the time similarity weight of the target pixel based on the probability image before time and the probability image after time provided by the embodiment of the present application, which specifically includes the following steps:

步骤710:选取时间前概率图像和时间后概率图像中与目标像素相同位置的邻域像素,结合目标像素和邻域像素得到时间邻域像素。Step 710: Selecting neighboring pixels at the same position as the target pixel in the pre-temporal probability image and the post-temporal probability image, and combining the target pixel and the neighboring pixels to obtain a temporal neighborhood pixel.

在一实施例中,以目标像素的位置为基础,从多个时间前概率图像和时间后概率图像中选取相同位置的像素作为目标像素的邻域像素,然后结合目标像素和邻域像素整体构成目标像素的时间邻域像素。可以理解的是,例如上述示例中时间前概率图像和时间后概率图像分别为5个,此时得到的邻域像素也包括对应的10个,时间邻域像素为11个。In one embodiment, based on the position of the target pixel, pixels at the same position are selected from multiple time-previous probability images and time-postvious probability images as neighborhood pixels of the target pixel, and then the target pixel and the neighborhood pixels are combined to form the temporal neighborhood pixels of the target pixel. It can be understood that, for example, in the above example, the number of the time-previous probability image and the time-postvious probability image is 5, and the neighborhood pixels obtained at this time also include the corresponding 10, and the number of temporal neighborhood pixels is 11.

步骤720:将时间邻域像素在当前类别下的概率值相加,得到当前类别对应的时间相似权重。Step 720: Add the probability values of the temporal neighborhood pixels under the current category to obtain the temporal similarity weight corresponding to the current category.

在一实施例中,将时间邻域像素内所有像素在当前类别下的概率值相加,得到目标像素在当前类别下对应的时间相似权重。例如,时间邻域像素为11个,当前类别为第3个地表类别,此时将11个像素的概率向量中第3个元素值对应的概率值相加得到时间相似权重。In one embodiment, the probability values of all pixels in the temporal neighborhood pixels under the current category are added to obtain the temporal similarity weight corresponding to the target pixel under the current category. For example, if there are 11 temporal neighborhood pixels and the current category is the third surface category, the probability values corresponding to the third element value in the probability vector of the 11 pixels are added together to obtain the temporal similarity weight.

步骤620:从时间前概率图像中选取目标时间之前第一个概率图像作为第一转移概率图像,从时间后概率图像中选取目标时间之后第一个概率图像作为第二转移概率图像。Step 620: Select the first probability image before the target time from the pre-time probability image as the first transition probability image, and select the first probability image after the target time from the post-time probability image as the second transition probability image.

步骤630:根据第一转移概率图像和第二转移概率图像计算目标像素在当前类别下的时间转移权重。Step 630: Calculate the temporal transfer weight of the target pixel in the current category according to the first transfer probability image and the second transfer probability image.

在一实施例中,考虑到目标时间的相邻时间的分类结果一致性对目标时间的影响较大,因此本申请实施例还量化相邻时序的情况下空间领域像素的分类转移可能性。首先基于目标时间,选取目标时间之前第一个概率图像作为第一转移概率图像,选取目标时间之后第一个概率图像作为第二转移概率图像。可以理解的是,按照时序关系,概率图像的顺序为:第二转移概率图像、目标概率图像和第一转移概率图像。In one embodiment, considering that the consistency of the classification results of the adjacent time of the target time has a greater impact on the target time, the embodiment of the present application also quantifies the classification transfer possibility of the pixels in the spatial domain under the condition of adjacent time sequence. First, based on the target time, the first probability image before the target time is selected as the first transfer probability image, and the first probability image after the target time is selected as the second transfer probability image. It can be understood that, according to the time sequence relationship, the order of the probability images is: the second transfer probability image, the target probability image and the first transfer probability image.

在得到第一转移概率图像和第二转移概率图像之后,参照图8,图8是本申请实施例提供的根据第一转移概率图像和第二转移概率图像计算目标像素的时间转移权重的流程图,具体包括以下步骤:After obtaining the first transition probability image and the second transition probability image, refer to FIG. 8 , which is a flowchart of calculating the time transition weight of the target pixel according to the first transition probability image and the second transition probability image provided by an embodiment of the present application, specifically including the following steps:

步骤810:基于目标像素的空间邻域像素,获取第一转移概率图像的第一转移像素,以及获取第二转移概率图像的第二转移像素。Step 810: Based on the spatial neighborhood pixels of the target pixel, obtain a first transition pixel of the first transition probability image, and obtain a second transition pixel of the second transition probability image.

其中,将第一转移概率图像中与目标像素的空间邻域像素对应范围的像素作为第一转移像素以及将第二转移概率图像中目标像素的空间邻域像素对应范围的像素作为第二转移像素。由此可见,第一转移像素和第二转移像素的像素数量与空间邻域像素的数量一致。The pixels in the first transition probability image corresponding to the spatial neighborhood pixels of the target pixel are used as the first transition pixels, and the pixels in the second transition probability image corresponding to the spatial neighborhood pixels of the target pixel are used as the second transition pixels. It can be seen that the number of the first transition pixels and the second transition pixels is consistent with the number of the spatial neighborhood pixels.

步骤820:对于每一个地表类别,基于同一像素位置,将第一转移像素的地表类别的概率值与空间邻域像素的当前类别对应的概率值相乘得到第一乘积值,在空间邻域像素对应的范围内对第一乘积值进行求和,得到地表类别下的第一候选值,并得到根据第二转移像素得到地表类别对应的第二候选值。Step 820: For each surface category, based on the same pixel position, multiply the probability value of the surface category of the first transferred pixel by the probability value corresponding to the current category of the spatial neighboring pixel to obtain a first product value, sum the first product values within the range corresponding to the spatial neighboring pixels to obtain a first candidate value under the surface category, and obtain a second candidate value corresponding to the surface category according to the second transferred pixel.

在一实施例中,针对每一种地表类别都需要计算一个第一候选值和第二候选值。以地表类别CLS为例,如果空间邻域像素的邻域坐标范围表示为S,则首先获取该邻域坐标范围S内所有的像素(包括目标像素)在当前类型的概率值。假如邻域坐标范围S为图5所示,则以当前类型为第1个地表类别,选取每个像素的概率向量中第一个元素值,即可得到一个的概率值矩阵Ps。In one embodiment, a first candidate value and a second candidate value need to be calculated for each surface category. Taking the surface category CLS as an example, if the neighborhood coordinate range of the spatial neighborhood pixel is represented as S, the probability values of all pixels (including the target pixel) in the neighborhood coordinate range S in the current type are first obtained. If the neighborhood coordinate range S is as shown in Figure 5, the current type is the first surface category, and the first element value in the probability vector of each pixel is selected to obtain a The probability value matrix Ps.

接下来,以预设邻域像素范围中第i个像素为例,假设第i个空间邻域像素在概率值矩阵中对应的元素值为,对应位置的第i个第一转移像素的地表类别CLS对应的概率值表示为,第i个第二转移像素的地表类别CLS对应的概率值表示为Next, taking the i-th pixel in the preset neighborhood pixel range as an example, assuming that the i-th spatial neighborhood pixel is in the probability value matrix The corresponding element value in is , the probability value corresponding to the surface category CLS of the i-th first transfer pixel at the corresponding position is expressed as , the probability value corresponding to the surface category CLS of the i-th second transfer pixel is expressed as .

第i个第一转移像素在地表类别下的第一乘积值表示为:The first product value of the i-th first transfer pixel under the ground surface category is expressed as:

因此,地表类别下的第一候选值表示为:Therefore, the first candidate value under the surface category is expressed as:

其中,表示在邻域坐标范围S内对i进行求和。in, It means to sum i within the neighborhood coordinate range S.

同理,根据第二转移像素计算得到对应的第二乘积值,再根据第二乘积值得到地表类别对应的第二候选值,表示为:Similarly, the corresponding second product value is calculated according to the second transfer pixel, and then the second candidate value corresponding to the surface category is obtained according to the second product value, which is expressed as:

其中,表示第i个第二转移像素在地表类别下的第二乘积值。in, Represents the second product value of the i-th second transferred pixel under the ground surface category.

可以理解的是,上述第一候选值和第二候选值在计算过程中第一乘积值和第二乘积值可能存在多次重复计算,可以将其进行存储,后续计算过程中直接读取对应的相乘结果,从而降低运算复杂度,提升运算效率。It is understandable that the first product value and the second product value may be repeatedly calculated multiple times during the calculation process of the first candidate value and the second candidate value. They can be stored and the corresponding multiplication results can be directly read in the subsequent calculation process, thereby reducing the calculation complexity and improving the calculation efficiency.

步骤830:将第一候选值的最大值和第二候选值的最大值相加,得到当前类别对应的时间转移权重。Step 830: Add the maximum value of the first candidate value and the maximum value of the second candidate value to obtain the time transfer weight corresponding to the current category.

其中,每个地表类别都对应一个第一候选值和第二候选值,因此从第一候选值和第二候选值中分别选取最大值,将两个最大值相加,即可得到连续时序中其他地表类别对当前类别的影响程度,将其作为时间转移权重,表示为:Among them, each surface category corresponds to a first candidate value and a second candidate value. Therefore, the maximum value is selected from the first candidate value and the second candidate value respectively, and the two maximum values are added together to obtain the influence of other surface categories on the current category in the continuous time series, which is used as the time transfer weight and expressed as:

其中,表示时间转移权重。in, represents the time transfer weight.

步骤140:基于目标像素的概率值、空间邻域相似权重和时间邻域相似权重计算当前类别下目标像素的修正权重,计算得到目标像素中每个地表类别对应的修正权重,根据修正权重更新遥感图像中目标像素对应的类别结果。Step 140: Calculate the correction weight of the target pixel under the current category based on the probability value of the target pixel, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, calculate the correction weight corresponding to each surface category in the target pixel, and update the category result corresponding to the target pixel in the remote sensing image according to the correction weight.

在一实施例中,得到空间邻域相似权重和时间邻域相似权重后,即可进行修正过程。参照图9,图9是本申请实施例提供的基于目标像素的概率值、空间邻域相似权重和时间邻域相似权重计算当前类别下目标像素的修正权重的流程图,具体包括以下步骤:In one embodiment, after obtaining the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, the correction process can be performed. Referring to FIG. 9 , FIG. 9 is a flow chart of calculating the correction weight of the target pixel under the current category based on the probability value of the target pixel, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight provided by an embodiment of the present application, specifically including the following steps:

步骤910:获取空间邻域相似权重的第一权重系数、时间相似权重的第二权重系数和时间转移权重的第三权重系数。Step 910: Obtain a first weight coefficient of a spatial neighborhood similarity weight, a second weight coefficient of a temporal similarity weight, and a third weight coefficient of a temporal transfer weight.

其中,第一权重系数用于指示在修正过程中空间邻域相似权重的重要性,第二权重系数用于指示在修正过程中时间相似权重的重要性,第三权重系数用于指示在修正过程中时间转移权重的重要性。可以理解的是,第一权重系数、第二权重系数和第三权重系数都是非负参数,可以根据实际情况设定。Among them, the first weight coefficient It is used to indicate the importance of spatial neighborhood similarity weight in the correction process, and the second weight coefficient The third weight coefficient is used to indicate the importance of time similarity weight in the correction process. It is used to indicate the importance of the time transfer weight in the correction process. It can be understood that the first weight coefficient , the second weight coefficient and the third weight coefficient They are all non-negative parameters and can be set according to actual conditions.

步骤920:获取第一权重系数和空间邻域相似权重的第一修正值、第二权重系数和时间相似权重的第二修正值、第三权重系数和时间转移权重的第三修正值。Step 920: Obtain a first revised value of the first weight coefficient and the spatial neighborhood similarity weight, a second revised value of the second weight coefficient and the temporal similarity weight, and a third revised value of the third weight coefficient and the temporal transfer weight.

步骤930:累加目标像素在当前类别下的概率值、第一修正值、第二修正值和第三修正值,得到当前类别的修正权重。Step 930: Accumulate the probability value, the first correction value, the second correction value and the third correction value of the target pixel in the current category to obtain the correction weight of the current category.

在一实施例中,修正权重表示为:In one embodiment, the modified weight is expressed as:

其中,W表示修正权重,P表示目标像素在当前类型下的概率值,表示第一修正值,表示第二修正值,表示第三修正值。Among them, W represents the correction weight, P represents the probability value of the target pixel under the current type, represents the first correction value, represents the second correction value, Indicates the third correction value.

在一实施例中,得到目标像素在当前类别下的修正权重后,按照上述方式计算其他的地表类别对应的修正权重,从中选取最大值的修正权重对应的地表类别作为目标时间的遥感图像中目标像素对应的类别结果。通过这种方式对遥感图像中其他的目标像素的类别结果都进行更新,从而对遥感图像进行分类结果修正。In one embodiment, after obtaining the correction weight of the target pixel under the current category, the correction weights corresponding to other surface categories are calculated in the above manner, and the surface category corresponding to the maximum correction weight is selected as the category result corresponding to the target pixel in the remote sensing image at the target time. In this way, the category results of other target pixels in the remote sensing image are updated, thereby correcting the classification result of the remote sensing image.

在一实施例中,还可以经过多次的迭代过程,利用修正权重更新目标像素的概率向量,重复执行上述过程,直至得到迭代结束条件,根据最后一次迭代得到的修正权重进行遥感图像的分类结果修正。In one embodiment, the probability vector of the target pixel can be updated using the correction weights after multiple iterations, and the above process can be repeated until the iteration end condition is obtained, and the classification result of the remote sensing image can be corrected according to the correction weights obtained in the last iteration.

在一实施例中,考虑到一些先验信息的使用,例如前一年是裸地,紧接着的后一年变为森林的可能性很低,因此可以加入这一类先验知识的约束,来增加上述修正权值的准确性。参照图10,图10是本申请实施例提供的基于目标像素的概率值、空间邻域相似权重和时间邻域相似权重计算当前类别下目标像素的修正权重的又一流程图,具体包括以下步骤:In one embodiment, taking into account the use of some prior information, for example, if the land was bare land in the previous year, the possibility of it becoming a forest in the next year is very low, such a priori knowledge constraint can be added to increase the accuracy of the above-mentioned modified weights. Referring to FIG10 , FIG10 is another flow chart of calculating the modified weight of the target pixel in the current category based on the probability value of the target pixel, the spatial neighborhood similarity weight, and the temporal neighborhood similarity weight provided by the embodiment of the present application, which specifically includes the following steps:

步骤1010:获取地表类别对应的无效转移概率矩阵。Step 1010: Obtain the invalid transition probability matrix corresponding to the surface category.

在一实施例中,无效转移概率矩阵是根据先验知识得到的,其中包括在连续的两个采集时间下,两两地表类别之间的无效转移概率值。例如地表类别的数量为N,则无效转移概率矩阵的维度为,其元素值用来指示两两地表类别之间的转移可能性。本申请实施例的目的是降低转移可能性很小的类别转换在结果中的影响,因此设定可能转化的两个地表类别的无效转移概率值大于不太可能转化的两个地表类别的无效转移概率值。例如沙地有可能转化为草地,设定对应位置的无效转移概率值为0,沙地基本不可能转化为森林,设定对应位置的无效转移概率值为1,以此类推,根据先验知识得到地表类别对应的无效转移概率矩阵,可以理解的是,不同的采集时间间隔得到的无效转移概率矩阵不同。In one embodiment, the invalid transition probability matrix is obtained based on prior knowledge, which includes invalid transition probability values between two surface categories at two consecutive acquisition times. For example, if the number of surface categories is N, the dimension of the invalid transition probability matrix is , whose element values are used to indicate the possibility of transition between two surface categories. The purpose of the embodiment of the present application is to reduce the impact of category conversions with very small transfer possibilities in the results, and therefore the invalid transition probability values of the two surface categories that may be converted are set to be greater than the invalid transition probability values of the two surface categories that are unlikely to be converted. For example, sandy land may be converted into grassland, and the invalid transition probability value of the corresponding position is set to 0. It is basically impossible for sandy land to be converted into forest, and the invalid transition probability value of the corresponding position is set to 1. By analogy, the invalid transition probability matrix corresponding to the surface category is obtained based on prior knowledge. It can be understood that the invalid transition probability matrices obtained at different collection time intervals are different.

步骤1020:根据第一转移概率图像、第二转移概率图像和无效转移概率矩阵得到目标像素在当前类别下无效转移权重。Step 1020: Obtain the invalid transfer weight of the target pixel in the current category according to the first transfer probability image, the second transfer probability image and the invalid transfer probability matrix.

在一实施例中,选取目标概率图像在时序中前后各一个概率图像,也就是第一转移概率图像和第二转移概率图像。参照图11,图11是本申请实施例提供的根据第一转移概率图像、第二转移概率图像和无效转移概率矩阵得到目标像素在当前类别下无效转移权重的流程图,具体包括以下步骤:In one embodiment, a probability image is selected before and after the target probability image in the time sequence, that is, a first transition probability image and a second transition probability image. Referring to FIG. 11 , FIG. 11 is a flowchart of obtaining the invalid transfer weight of the target pixel under the current category according to the first transition probability image, the second transition probability image and the invalid transition probability matrix provided by an embodiment of the present application, specifically including the following steps:

步骤1110:基于目标像素的空间邻域像素,从第一转移概率图像中选取第一概率转移像素,以及从第二转移概率图像中选取第二概率转移像素。Step 1110: Based on the spatial neighborhood pixels of the target pixel, select a first probability transition pixel from the first transition probability image, and select a second probability transition pixel from the second transition probability image.

在一实施例中,以空间邻域像素为为例,选取第一转移概率图像中对应位置的像素作为第一概率转移像素,选取第二转移概率图像中对应位置的像素作为第二概率转移像素。In one embodiment, the spatial neighborhood pixels are Take the first transition probability image as an example. The pixel at the corresponding position is taken as the first probability transfer pixel, and the pixel in the second transfer probability image is selected. The pixel at the corresponding position is used as the second probability transfer pixel.

步骤1120:将第一概率转移像素对应的地表类别作为转移前类型,将第二概率转移像素对应的地表类别作为转移后类型。Step 1120: The ground surface category corresponding to the first probability transfer pixel is used as the pre-transfer category, and the ground surface category corresponding to the second probability transfer pixel is used as the post-transfer category.

在一实施例中,对于第一概率转移像素,将每个像素的概率向量的最大值对应的地表类别作为其类型结果,将所有的类型结果作为转移前类型。同理得到第二概率转移像素对应的转移后类型。In one embodiment, for the first probability transfer pixel, the surface category corresponding to the maximum value of the probability vector of each pixel is used as its type result, and all the type results are used as the type before transfer. Similarly, the type after transfer corresponding to the second probability transfer pixel is obtained.

步骤1130:根据无效转移概率矩阵获取转移前类型和当前类型的转移前概率,以及获取转移后类型和当前类型的转移后概率。Step 1130: Obtain the pre-transfer type and the pre-transfer probability of the current type according to the invalid transition probability matrix, and obtain the post-transfer type and the post-transfer probability of the current type.

在一实施例中,根据时序关系,转移前类型在下个时序中可能会变为当前类型,当前类型在下个时序中可能会变为转移后类型,因此根据无效转移概率矩阵获取转移前类型和当前类型的转移前概率以及获取转移后类型和当前类型的转移后概率。例如当前类型为山地,则对于范围对应的第一概率转移像素,根据无效转移概率矩阵判断其由转移前类型变为山地的转移前概率。同时对于范围对应的第二概率转移像素,根据无效转移概率矩阵判断山地变为转移后类型的转移后概率。可以理解的是,如果无效转移概率矩阵中利用数字0和1表示转移可能性,则得到的转移前概率和转移后概率也是由数字0和1构成的矩阵。In one embodiment, according to the time sequence relationship, the pre-transfer type may become the current type in the next time sequence, and the current type may become the post-transfer type in the next time sequence. Therefore, the pre-transfer type and the pre-transfer probability of the current type are obtained according to the invalid transition probability matrix, and the post-transfer type and the post-transfer probability of the current type are obtained. For example, if the current type is mountainous, then for The first probability transition pixel corresponding to the range is determined based on the invalid transition probability matrix to determine the pre-transition probability of its type changing from pre-transition type to mountainous area. The second probability transition pixel corresponding to the range is used to determine the post-transition probability of the mountain changing to the post-transition type according to the invalid transition probability matrix. It can be understood that if the invalid transition probability matrix uses numbers 0 and 1 to represent the transition possibility, the obtained pre-transition probability and post-transition probability are also composed of numbers 0 and 1. matrix.

步骤1140:对于每一个地表类别,基于同一像素位置,将转移前概率的地表类别的概率值与空间邻域像素的当前类别对应的概率值相乘得到第三乘积值,在空间邻域像素对应的范围内对第三乘积值进行求和,得到地表类别下的第三候选值,并得到根据转移后概率得到地表类别对应的第四候选值。Step 1140: For each surface category, based on the same pixel position, multiply the probability value of the surface category of the probability before transfer by the probability value corresponding to the current category of the spatial neighboring pixels to obtain a third product value, sum the third product values within the range corresponding to the spatial neighboring pixels to obtain the third candidate value under the surface category, and obtain the fourth candidate value corresponding to the surface category according to the probability after transfer.

在一实施例中,假设预设邻域像素范围为,时间邻域像素在当前类别下的概率值为的矩阵,转移前概率和转移后概率也是矩阵。以预设邻域像素范围中第i个像素为例,假设第i个空间邻域像素在概率值矩阵中对应的元素值为,对应位置的第i个转移前概率表示为,第i个转移后概率表示为In one embodiment, it is assumed that the preset neighborhood pixel range is , the probability value of the temporal neighborhood pixel in the current category is The matrix of the pre-transfer probability and the post-transfer probability is also Matrix. Taking the i-th pixel in the preset neighborhood pixel range as an example, assuming that the i-th spatial neighborhood pixel is in the probability value matrix The corresponding element value in is , the probability before the i-th transfer of the corresponding position is expressed as , the probability after the i-th transfer is expressed as .

第i个转移前概率在地表类别下的第三乘积值表示为:The third product value of the i-th pre-transfer probability under the surface category is expressed as:

因此,地表类别下的第三候选值表示为:Therefore, the third candidate value under the surface category is expressed as:

其中,表示在邻域坐标范围S内对i进行求和。in, It means to sum i within the neighborhood coordinate range S.

同理得到,根据转移后概率计算得到对应的第四乘积值,再根据第四乘积值得到地表类别对应的第四候选值,表示为:Similarly, the corresponding fourth product value is calculated according to the probability after transfer, and then the fourth candidate value corresponding to the surface category is obtained according to the fourth product value, which is expressed as:

其中,表示第i个第二转移像素在地表类别下的第四乘积值。in, Represents the fourth product value of the i-th second transferred pixel under the ground surface category.

步骤1150:将第一中间值的最大值和第二中间值的最大值相加,得到当前类别下无效转移权重。Step 1150: Add the maximum value of the first intermediate value and the maximum value of the second intermediate value to obtain the invalid transfer weight under the current category.

在一实施例中,每个地表类别都对应一个第三候选值和第四候选值,因此从第三候选值和第四候选值中分别选取最大值,将两个最大值相加,即可得到当前类别下无效转移权重,表示为:In one embodiment, each surface category corresponds to a third candidate value and a fourth candidate value, so the maximum value is selected from the third candidate value and the fourth candidate value respectively, and the two maximum values are added to obtain the invalid transfer weight under the current category, which is expressed as:

其中,表示当前类别下无效转移权重。in, Indicates invalid transfer weight under the current category.

可以理解的是,如果当前类型和所有其他的地表类别都能互相转换,则无效转移权重为0。It is understandable that if the current type and all other surface categories can be converted to each other, the invalid transfer weight is 0.

步骤1030:获取无效转移权重的第四权重系数,并获取第四权重系数和无效转移权重的第四修正值。Step 1030: Obtain a fourth weight coefficient of the invalid transfer weight, and obtain the fourth weight coefficient and a fourth correction value of the invalid transfer weight.

在一实施例中,根据实际情况选取用于指示在修正过程中无效转移权重的重要性的第四权重系数In one embodiment, the fourth weight coefficient for indicating the importance of the invalid transfer weight in the correction process is selected according to the actual situation. .

步骤1040:在修正权重中减去第四修正值,更新修正权重。Step 1040: Subtract the fourth correction value from the correction weight to update the correction weight.

在一实施例中,修正权重的更新过程表示为:In one embodiment, the updating process of the modified weight is expressed as:

其中,表示更新后的修正权重,表示第四修正值。in, represents the updated correction weight, Indicates the fourth correction value.

下面描述本申请实施例提供的遥感图像数据处理方法的实施效果。The following describes the implementation effect of the remote sensing image data processing method provided in the embodiment of the present application.

在一实施例中,以同一个区域的多年分类得到的分类结果为例。参照图12,图12为本申请实施例提供的遥感图像数据处理方法的实施效果示意图。图12中第一行分别为图例、修正后的第一年分类结果、修正后的第二年分类结果,第二行分别为:修正后的第三年分类结果、修正后的第四年分类结果和修正后的第五年分类结果,将这五年的分类结果进行逐像素对应,每个像素对应到该位置上各年的类型。其中,初始的分类结果中森林、草地、农地类型在按顺序的年份上来回变化是不合理的,经过本申请实施例的处理增强后,修正了大部分不合理变化。In one embodiment, the classification results obtained by multi-year classification of the same area are taken as an example. Referring to Figure 12, Figure 12 is a schematic diagram of the implementation effect of the remote sensing image data processing method provided by the embodiment of the present application. The first row in Figure 12 is respectively the legend, the corrected classification results of the first year, and the corrected classification results of the second year, and the second row is respectively: the corrected classification results of the third year, the corrected classification results of the fourth year, and the corrected classification results of the fifth year. The classification results of these five years are matched pixel by pixel, and each pixel corresponds to the type of each year at that position. Among them, it is unreasonable for the types of forests, grasslands, and farmland in the initial classification results to change back and forth in the sequential years. After the processing enhancement of the embodiment of the present application, most of the unreasonable changes have been corrected.

在一实施例中,本申请实施例提供的遥感图像数据处理方法的实施效果与具体的遥感数据、测量区域和设定的地表类别都有关,本申请实施例利用以每个时间分类结果的精度、前后变化精度的指标来评价实施效果。经过实测数据处理发现,本申请实施例能够提高单个时间分类结果精度和前后变化精度,其中前后变化精度大幅度提高。In one embodiment, the implementation effect of the remote sensing image data processing method provided by the embodiment of the present application is related to the specific remote sensing data, the measurement area and the set surface category. The embodiment of the present application uses the indicators of the accuracy of each time classification result and the accuracy of the before and after changes to evaluate the implementation effect. After processing the measured data, it is found that the embodiment of the present application can improve the accuracy of the single time classification result and the accuracy of the before and after changes, among which the accuracy of the before and after changes is greatly improved.

在一实施例中,分类精度以抽样计算混淆矩阵的方法进行评价。其中,混淆矩阵的一个例子如下表1所示,以灌丛列为例,在A1+B1+C1+D1个灌丛样本中,有A1个正确分类;灌丛行表示,在A1+A2+A3+A4个分类为灌丛的样本中,有A1个是正确的;整体精度=(A1+B2+C3+D4)/样本总数)。In one embodiment, the classification accuracy is evaluated by a method of calculating a confusion matrix by sampling. An example of a confusion matrix is shown in Table 1 below. Taking the bush column as an example, among A1+B1+C1+D1 bush samples, A1 is correctly classified; the bush row indicates that among A1+A2+A3+A4 samples classified as bush, A1 is correct; overall accuracy = (A1+B2+C3+D4)/total number of samples).

表1 混淆矩阵的示例Table 1. Example of confusion matrix

而地表变化主要通过抽样比较方法验证精度。比如:对变化、不变的点分别抽样,计算出下表2所述的四个指标。The accuracy of surface changes is mainly verified by sampling comparison method. For example, sampling the changing and unchanged points respectively, and calculating the four indicators described in Table 2 below.

表2 地表变化指标示例Table 2 Examples of land surface change indicators

其中表2中正确变化和正确不变的样本数占总样本数的百分比为总精度。在实际的多时相地表覆盖分类结果中,主要是伪变化的比例高。The percentage of correctly changed and unchanged samples to the total number of samples in Table 2 is the total accuracy. In the actual multi-temporal land cover classification results, the proportion of false changes is high.

比如在某地区用Landsat数据做5年30米地表覆盖分类,定义了农地、森林、草地、灌丛、水体、不透水层、裸地共7个地表类别。其中第一年的整体精度原始分类精度75.2%,经过本申请实施例的遥感图像数据处理后的分类精度是81.9%。在进行变化类型抽样验证时,在原始的概率图像对应的分类基础上抽样,第一年和第二年变化的像素和不变的像素各抽取50个像素,其中,伪变化的41个像素,正确变化的9个像素,漏检10个像素,正确不变40个像素,总精度(9+40)/100=49%。经过本申请实施例的遥感图像数据处理(定义这些转移为不可能转移:不透水层转森林、农地转森林、水体转森林、草地转森林)后,伪变化修正为5个像素,正确变化像素修正为45个像素,漏检修正为9个像素,正确不变修正为41个像素,总精度提升至(45+41)/100=86%。For example, in a certain area, Landsat data was used to classify the 30-meter surface cover for 5 years, and 7 surface categories were defined, including farmland, forest, grassland, shrub, water body, impermeable layer, and bare land. Among them, the overall accuracy of the original classification accuracy in the first year was 75.2%, and the classification accuracy after the remote sensing image data processing of the embodiment of the present application was 81.9%. When performing sampling verification of the change type, sampling was performed on the basis of the classification corresponding to the original probability image. 50 pixels were extracted for each of the pixels that changed and the pixels that remained unchanged in the first and second years, including 41 pixels of pseudo-change, 9 pixels of correct change, 10 pixels of missed detection, and 40 pixels of correct unchanged. The total accuracy is (9+40)/100=49%. After the remote sensing image data is processed according to the embodiment of the present application (these transfers are defined as impossible transfers: impermeable layer to forest, farmland to forest, water body to forest, grassland to forest), the pseudo-change is corrected to 5 pixels, the correct change pixels are corrected to 45 pixels, the missed detection is corrected to 9 pixels, the correct unchanged pixels are corrected to 41 pixels, and the total accuracy is improved to (45+41)/100=86%.

本申请实施例提供的技术方案,通过对多个时序的遥感图像进行分类,得到每个遥感图像对应的概率图像,其中,概率图像中每个像素包括遥感图像在像素的对应位置图像在每个地表类别下的概率值。接下来从概率图像中选取目标时间对应的目标概率图像,并获取目标时间之前第一预设数量的概率图像作为时间前概率图像,以及获取目标时间之后第二预设数量的概率图像作为时间后概率图像。从目标概率图像中选取目标像素,并从地表类别中选取当前类别,根据目标概率图像计算目标像素在当前类别下的空间邻域相似权重,以及根据时间前概率图像和时间后概率图像计算目标像素在当前类别下的时间邻域相似权重,最后基于目标像素的概率值、空间邻域相似权重和时间邻域相似权重计算当前类别下目标像素的修正权重,计算得到目标像素中每个地表类别对应的修正权重,根据修正权重更新遥感图像中目标像素对应的类别结果。本申请实施例在得到遥感图像的分类结果后,利用长时序遥感数据的分类结果在时间和空间上存在前后变化的合理性,结合空间邻域相似权重和时间邻域相似权重对分类结果进行修正,从而减少伪变化,使长时序分类结果的前后变化一致合理,提升分类结果的准确性。The technical solution provided by the embodiment of the present application is to obtain a probability image corresponding to each remote sensing image by classifying multiple time-series remote sensing images, wherein each pixel in the probability image includes the probability value of the remote sensing image at the corresponding position image of the pixel under each surface category. Next, the target probability image corresponding to the target time is selected from the probability image, and the probability images of the first preset number before the target time are obtained as the probability image before time, and the probability images of the second preset number after the target time are obtained as the probability image after time. The target pixel is selected from the target probability image, and the current category is selected from the surface category, and the spatial neighborhood similarity weight of the target pixel under the current category is calculated according to the target probability image, and the temporal neighborhood similarity weight of the target pixel under the current category is calculated according to the probability image before time and the probability image after time. Finally, the correction weight of the target pixel under the current category is calculated based on the probability value of the target pixel, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, and the correction weight corresponding to each surface category in the target pixel is calculated, and the category result corresponding to the target pixel in the remote sensing image is updated according to the correction weight. After obtaining the classification results of the remote sensing image, the embodiment of the present application utilizes the rationality of the classification results of the long-term remote sensing data in terms of time and space, and corrects the classification results in combination with the spatial neighborhood similarity weights and the temporal neighborhood similarity weights, thereby reducing pseudo-changes, making the changes of the long-term classification results consistent and reasonable, and improving the accuracy of the classification results.

本申请实施例还提供一种遥感图像数据处理装置,可以实现上述遥感图像数据处理方法,参照图13,该装置包括:The present application also provides a remote sensing image data processing device, which can implement the remote sensing image data processing method. Referring to FIG. 13 , the device includes:

地表类别分类模块1310:用于对多个时序的遥感图像进行分类,得到每个遥感图像对应的概率图像,概率图像中每个像素包括遥感图像在像素的对应位置图像在每个地表类别下的概率值。The surface category classification module 1310 is used to classify multiple time series remote sensing images to obtain a probability image corresponding to each remote sensing image. Each pixel in the probability image includes the probability value of the remote sensing image at the corresponding position of the pixel under each surface category.

概率图像选取模块1320:用于从概率图像中选取目标时间对应的目标概率图像,并获取目标时间之前第一预设数量的概率图像作为时间前概率图像,以及获取目标时间之后第二预设数量的概率图像作为时间后概率图像。Probability image selection module 1320: used to select the target probability image corresponding to the target time from the probability image, and obtain the first preset number of probability images before the target time as the before-time probability image, and obtain the second preset number of probability images after the target time as the after-time probability image.

相似权重计算模块1330:用于从目标概率图像中选取目标像素,并从地表类别中选取当前类别,根据目标概率图像计算目标像素在当前类别下的空间邻域相似权重,以及根据时间前概率图像和时间后概率图像计算目标像素在当前类别下的时间邻域相似权重。Similarity weight calculation module 1330: used to select target pixels from the target probability image and select the current category from the surface category, calculate the spatial neighborhood similarity weight of the target pixel under the current category based on the target probability image, and calculate the temporal neighborhood similarity weight of the target pixel under the current category based on the pre-time probability image and the post-time probability image.

地表类别修正模块1340:用于基于目标像素的概率值、空间邻域相似权重和时间邻域相似权重计算当前类别下目标像素的修正权重,计算得到目标像素中每个地表类别对应的修正权重,根据修正权重更新遥感图像中目标像素对应的类别结果。Surface category correction module 1340: used to calculate the correction weight of the target pixel under the current category based on the probability value of the target pixel, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, calculate the correction weight corresponding to each surface category in the target pixel, and update the category result corresponding to the target pixel in the remote sensing image according to the correction weight.

本实施例的遥感图像数据处理装置的具体实施方式与上述遥感图像数据处理方法的具体实施方式基本一致,在此不再赘述。The specific implementation of the remote sensing image data processing device of this embodiment is basically the same as the specific implementation of the remote sensing image data processing method described above, and will not be described in detail here.

本申请实施例还提供了一种电子设备,包括:The present application also provides an electronic device, including:

至少一个存储器;at least one memory;

至少一个处理器;at least one processor;

至少一个程序;at least one program;

所述程序被存储在存储器中,处理器执行所述至少一个程序以实现本申请实施上述的遥感图像数据处理方法。该电子设备可以为包括手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、车载电脑等任意智能终端。The program is stored in the memory, and the processor executes the at least one program to implement the remote sensing image data processing method implemented in the present application. The electronic device can be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a car computer, etc.

请参阅图14,图14示意了另一实施例的电子设备的硬件结构,电子设备包括:Please refer to FIG. 14 , which schematically shows the hardware structure of an electronic device according to another embodiment. The electronic device includes:

处理器1401,可以采用通用的中央处理器(CentralProcessingUnit,CPU)、微处理器、应用专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本申请实施例所提供的技术方案;The processor 1401 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

存储器1402,可以采用只读存储器(ReadOnlyMemory,ROM)、静态存储设备、动态存储设备或者随机存取存储器(RandomAccessMemory,RAM)等形式实现。存储器1402可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器1402中,并由处理器1401来调用执行本申请实施例的遥感图像数据处理方法;The memory 1402 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1402 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1402, and the processor 1401 calls and executes the remote sensing image data processing method of the embodiment of this application;

输入/输出接口1403,用于实现信息输入及输出;Input/output interface 1403, used to implement information input and output;

通信接口1404,用于实现本设备与其他设备的通信交互,可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信;和Communication interface 1404, used to realize communication interaction between the device and other devices, which can be realized by wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.); and

总线1405,在设备的各个组件(例如处理器1401、存储器1402、输入/输出接口1403和通信接口1404)之间传输信息;A bus 1405 that transmits information between various components of the device (e.g., the processor 1401, the memory 1402, the input/output interface 1403, and the communication interface 1404);

其中处理器1401、存储器1402、输入/输出接口1403和通信接口1404通过总线1405实现彼此之间在设备内部的通信连接。The processor 1401 , the memory 1402 , the input/output interface 1403 and the communication interface 1404 are connected to each other in communication within the device via a bus 1405 .

本申请实施例还提供了一种存储介质,存储介质为存储介质,该存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述遥感图像数据处理方法。An embodiment of the present application further provides a storage medium, which is a storage medium storing a computer program, and the computer program implements the above-mentioned remote sensing image data processing method when executed by a processor.

存储器作为一种非暂态存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a non-transitory storage medium, the memory can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged 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.

本申请实施例提出的遥感图像数据处理方法、装置、设备和存储介质,通过对多个时序的遥感图像进行分类,得到每个遥感图像对应的概率图像,其中,概率图像中每个像素包括遥感图像在像素的对应位置图像在每个地表类别下的概率值。接下来从概率图像中选取目标时间对应的目标概率图像,并获取目标时间之前第一预设数量的概率图像作为时间前概率图像,以及获取目标时间之后第二预设数量的概率图像作为时间后概率图像。从目标概率图像中选取目标像素,并从地表类别中选取当前类别,根据目标概率图像计算目标像素在当前类别下的空间邻域相似权重,以及根据时间前概率图像和时间后概率图像计算目标像素在当前类别下的时间邻域相似权重,最后基于目标像素的概率值、空间邻域相似权重和时间邻域相似权重计算当前类别下目标像素的修正权重,计算得到目标像素中每个地表类别对应的修正权重,根据修正权重更新遥感图像中目标像素对应的类别结果。本申请实施例在得到遥感图像的分类结果后,利用长时序遥感数据的分类结果在时间和空间上存在前后变化的合理性,结合空间邻域相似权重和时间邻域相似权重对分类结果进行修正,从而减少伪变化,提升分类结果的准确性。The remote sensing image data processing method, device, equipment and storage medium proposed in the embodiment of the present application obtain a probability image corresponding to each remote sensing image by classifying multiple time series remote sensing images, wherein each pixel in the probability image includes the probability value of the remote sensing image at the corresponding position image of the pixel under each surface category. Next, the target probability image corresponding to the target time is selected from the probability image, and the probability images of the first preset number before the target time are obtained as the probability image before time, and the probability images of the second preset number after the target time are obtained as the probability image after time. The target pixel is selected from the target probability image, and the current category is selected from the surface category, and the spatial neighborhood similarity weight of the target pixel under the current category is calculated according to the target probability image, and the temporal neighborhood similarity weight of the target pixel under the current category is calculated according to the probability image before time and the probability image after time. Finally, the correction weight of the target pixel under the current category is calculated based on the probability value of the target pixel, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight, and the correction weight corresponding to each surface category in the target pixel is calculated, and the category result corresponding to the target pixel in the remote sensing image is updated according to the correction weight. After obtaining the classification results of the remote sensing image, the embodiment of the present application utilizes the rationality of the classification results of the long-term remote sensing data in time and space, and combines the spatial neighborhood similarity weight and the temporal neighborhood similarity weight to correct the classification results, thereby reducing pseudo-changes and improving the accuracy of the classification results.

本申请实施例描述的实施例是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着技术的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。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 device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、设备中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules/units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

本申请的说明书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And/or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and/or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character "/" generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括多指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例的方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store programs.

以上参照附图说明了本申请实施例的优选实施例,并非因此局限本申请实施例的权利范围。本领域技术人员不脱离本申请实施例的范围和实质内所作的任何修改、等同替换和改进,均应在本申请实施例的权利范围之内。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 (11)

1. A remote sensing image data processing method, comprising:
Classifying the remote sensing images with a plurality of time sequences to obtain probability images corresponding to each remote sensing image, wherein each pixel in the probability images comprises a probability value of the corresponding position image of the remote sensing image in each earth surface category;
selecting target probability images corresponding to target time from the probability images, acquiring a first preset number of probability images before the target time as time front probability images, and acquiring a second preset number of probability images after the target time as time rear probability images;
Selecting a target pixel from the target probability image, selecting a current category from the earth surface category, calculating a spatial neighborhood similarity weight of the target pixel under the current category according to the target probability image, and calculating a temporal neighborhood similarity weight of the target pixel under the current category according to the time-before probability image and the time-after probability image;
And calculating the correction weight of the target pixel under the current category based on the probability value, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight of the target pixel, calculating to obtain the correction weight corresponding to each earth surface category in the target pixel, and updating the category result corresponding to the target pixel in the remote sensing image according to the correction weight.
2. The method according to claim 1, wherein said calculating spatial neighborhood similarity weights of the target pixels under the current class from the target probability image comprises:
determining a spatial neighborhood pixel corresponding to the target pixel from the target probability image according to a preset neighborhood pixel range;
and adding the probability values corresponding to the spatial neighborhood pixels under the current category to obtain the spatial neighborhood similarity weight corresponding to the current category.
3. The method according to claim 2, wherein the temporal neighborhood similarity weights include a temporal similarity weight and a temporal transition weight, and the calculating the temporal neighborhood similarity weight of the target pixel under the current category from the pre-temporal probability image and the post-temporal probability image includes:
Calculating the time similarity weight of the target pixel under the current category according to the time front probability image and the time rear probability image;
selecting a first probability image before the target time from the time-before probability images as a first transition probability image, and selecting a first probability image after the target time from the time-after probability images as a second transition probability image;
The time transition weight of the target pixel under the current category is calculated according to the first transition probability image and the second transition probability image.
4.A method of processing remote sensing image data according to claim 3, wherein said calculating said temporal similarity weight of said target pixel under said current category from said pre-temporal probability image and said post-temporal probability image comprises:
selecting a neighborhood pixel at the same position as the target pixel in the time front probability image and the time rear probability image, and combining the target pixel and the neighborhood pixel to obtain a time neighborhood pixel;
and adding the probability values of the time neighborhood pixels under the current category to obtain the time similarity weight corresponding to the current category.
5. A remote sensing image data processing method according to claim 3, wherein said calculating the temporal transition weight of the target pixel under the current class from the first transition probability image and the second transition probability image comprises:
acquiring a first transition pixel of the first transition probability image and a second transition pixel of the second transition probability image based on the spatial neighborhood pixel of the target pixel;
For each earth surface category, multiplying the probability value of the earth surface category of the first transfer pixel by the probability value corresponding to the current category of the spatial neighborhood pixel based on the same pixel position to obtain a first product value, summing the first product value in the range corresponding to the spatial neighborhood pixel to obtain a first candidate value under the earth surface category, and obtaining a second candidate value corresponding to the earth surface category according to the second transfer pixel;
And adding the maximum value of the first candidate value and the maximum value of the second candidate value to obtain the time transfer weight corresponding to the current category.
6. The method according to claim 3, wherein calculating the correction weight of the target pixel in the current category based on the probability value, the spatial neighborhood similarity weight, and the temporal neighborhood similarity weight of the target pixel comprises:
Acquiring a first weight coefficient of the space neighborhood similarity weight, a second weight coefficient of the time similarity weight and a third weight coefficient of the time transfer weight;
Acquiring a first correction value of the first weight coefficient and the spatial neighborhood similarity weight, a second correction value of the second weight coefficient and the time similarity weight, and a third correction value of the third weight coefficient and the time transfer weight;
And accumulating the probability value, the first correction value, the second correction value and the third correction value of the target pixel under the current category to obtain the correction weight of the current category.
7. The method of claim 6, wherein the calculating the correction weight of the target pixel in the current class based on the probability value, the spatial neighborhood similarity weight, and the temporal neighborhood similarity weight of the target pixel, further comprises:
obtaining an invalid transition probability matrix corresponding to the earth surface categories, wherein the invalid transition probability matrix comprises invalid transition probability values between every two earth surface categories;
obtaining an invalid transition weight of the target pixel under the current category according to the first transition probability image, the second transition probability image and the invalid transition probability matrix;
acquiring a fourth weight coefficient of the invalid transfer weight, and acquiring the fourth weight coefficient and a fourth correction value of the invalid transfer weight;
And subtracting the fourth correction value from the correction weight to update the correction weight.
8. The method according to claim 7, wherein the obtaining the invalid transition weight of the target pixel in the current class according to the first transition probability image, the second transition probability image, and the invalid transition probability matrix includes:
Selecting a first probability transition pixel from the first transition probability image and a second probability transition pixel from the second transition probability image based on the spatial neighborhood pixel of the target pixel;
taking the earth surface category corresponding to the first probability transfer pixel as a pre-transfer type, and taking the earth surface category corresponding to the second probability transfer pixel as a post-transfer type;
Acquiring the pre-transition probability of the pre-transition type and the current category according to the invalid transition probability matrix, and acquiring the post-transition probability of the post-transition type and the current category;
For each earth surface category, multiplying the probability value of the earth surface category of the probability before transition by the probability value corresponding to the current category of the spatial neighborhood pixel based on the same pixel position to obtain a third multiplication value, summing the third multiplication value in the range corresponding to the spatial neighborhood pixel to obtain a third candidate value under the earth surface category, and obtaining a fourth candidate value corresponding to the earth surface category according to the probability after transition;
and adding the maximum value of the third candidate value and the maximum value of the fourth candidate value to obtain the invalid transfer weight under the current category.
9. A remote sensing image data processing apparatus, comprising:
The earth surface category classification module: the method comprises the steps of classifying a plurality of time-sequence remote sensing images to obtain probability images corresponding to each remote sensing image, wherein each pixel in each probability image comprises a probability value of the corresponding position image of the remote sensing image under each earth surface category;
The probability image selecting module: the method comprises the steps of selecting target probability images corresponding to target time from the probability images, acquiring a first preset number of probability images before the target time as time front probability images, and acquiring a second preset number of probability images after the target time as time rear probability images;
And the similarity weight calculation module is used for: the method comprises the steps of selecting a target pixel from the target probability image, selecting a current category from the earth surface category, calculating a spatial neighborhood similarity weight of the target pixel under the current category according to the target probability image, and calculating a temporal neighborhood similarity weight of the target pixel under the current category according to the temporal pre-probability image and the temporal post-probability image;
The earth surface category correction module: and the correction weight of the target pixel under the current category is calculated based on the probability value, the spatial neighborhood similarity weight and the temporal neighborhood similarity weight of the target pixel, the correction weight corresponding to each earth surface category in the target pixel is calculated, and a category result corresponding to the target pixel in the remote sensing image is updated according to the correction weights.
10. An electronic device comprising a memory storing a computer program and a processor that when executing the computer program implements the remote sensing image data processing method of any one of claims 1 to 8.
11. A storage medium storing a computer program, wherein the computer program when executed by a processor implements the remote sensing image data processing method of any one of claims 1 to 8.
CN202411095587.9A 2024-08-12 2024-08-12 Remote sensing image data processing method, device, equipment and storage medium Active CN118628841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411095587.9A CN118628841B (en) 2024-08-12 2024-08-12 Remote sensing image data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411095587.9A CN118628841B (en) 2024-08-12 2024-08-12 Remote sensing image data processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN118628841A CN118628841A (en) 2024-09-10
CN118628841B true CN118628841B (en) 2024-11-05

Family

ID=92596427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411095587.9A Active CN118628841B (en) 2024-08-12 2024-08-12 Remote sensing image data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118628841B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304775A (en) * 2017-12-26 2018-07-20 北京市商汤科技开发有限公司 Remote sensing images recognition methods, device, storage medium and electronic equipment
CN113837074A (en) * 2021-09-24 2021-12-24 山东建筑大学 A Change Detection Method for Remote Sensing Images Combined with Posterior Probability and Spatial Neighborhood Information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111192239B (en) * 2019-12-18 2023-04-25 星际空间(天津)科技发展有限公司 Remote sensing image change area detection method and device, storage medium and electronic equipment
CN117036748A (en) * 2023-07-31 2023-11-10 鹏城实验室 Migration correction method, system and storage medium for high-resolution remote sensing image annotation
CN117994159A (en) * 2024-03-13 2024-05-07 西南林业大学 Remote sensing time sequence image filtering method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304775A (en) * 2017-12-26 2018-07-20 北京市商汤科技开发有限公司 Remote sensing images recognition methods, device, storage medium and electronic equipment
CN113837074A (en) * 2021-09-24 2021-12-24 山东建筑大学 A Change Detection Method for Remote Sensing Images Combined with Posterior Probability and Spatial Neighborhood Information

Also Published As

Publication number Publication date
CN118628841A (en) 2024-09-10

Similar Documents

Publication Publication Date Title
CN111582043B (en) A multi-task learning-based method for detecting ground object changes in high-resolution remote sensing images
Wang et al. Spatiotemporal fusion of remote sensing image based on deep learning
Liu et al. China Building Rooftop Area: the first multi-annual (2016–2021) and high-resolution (2.5 m) building rooftop area dataset in China derived with super-resolution segmentation from Sentinel-2 imagery
CN113253364B (en) Method and device for correcting station wind speed forecast result
CN116310883B (en) Agricultural disaster prediction methods and related equipment based on spatio-temporal fusion of remote sensing images
CN112561817B (en) Remote sensing image cloud removing method, device, equipment and storage medium based on AM-GAN
CN116776651B (en) Method and device for measuring and calculating surface evapotranspiration, electronic equipment and storage medium
EP3944218A1 (en) Information processing device, information processing method, and program
CN116563682A (en) An Attention Scheme and Strip Convolutional Semantic Line Detection Method Based on Deep Hough Networks
CN109186774A (en) Surface temperature information acquisition method, device, computer equipment and storage medium
Sivasankari et al. HE‐DFNETS: A Novel Hybrid Deep Learning Architecture for the Prediction of Potential Fishing Zone Areas in Indian Ocean Using Remote Sensing Images
CN117077928A (en) Network appointment vehicle demand prediction method, device, equipment and storage medium
CN118628841B (en) Remote sensing image data processing method, device, equipment and storage medium
CN114092804B (en) Remote sensing image recognition method and device
Pringle Robust prediction of time-integrated NDVI
CN117315497B (en) A method and system for generating remote sensing products of total phosphorus content in large-scale rivers and lakes
CN118938353A (en) Regional extreme climate prediction method, device, electronic device and storage medium
CN117853706A (en) Method, device, equipment and medium for detecting rotating target
CN117150326A (en) New energy node output power prediction method, device, equipment and storage medium
CN116416507A (en) Multi-target image detection method, device, computer equipment and medium
US20210200983A1 (en) Information Processing Apparatus, Information Processing Method and Non-Transitory Computer-Readable Storage Medium
Minu et al. SS Subashka Ramesh
CN113343959A (en) Scene image recognition method and device, electronic equipment and computer readable medium
Mezouar et al. A Hybrid particle swarm optimization of the rational function model for satellite strip images ortho-rectification
CN115984688B (en) A continuous frame-oriented dual-stream cloud image prediction method, storage medium and device

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