CN116309034A - An Optimal Stitching Line Acquisition Method for Ultra-Large File Remote Sensing Images - Google Patents

An Optimal Stitching Line Acquisition Method for Ultra-Large File Remote Sensing Images Download PDF

Info

Publication number
CN116309034A
CN116309034A CN202211104116.0A CN202211104116A CN116309034A CN 116309034 A CN116309034 A CN 116309034A CN 202211104116 A CN202211104116 A CN 202211104116A CN 116309034 A CN116309034 A CN 116309034A
Authority
CN
China
Prior art keywords
remote sensing
image
line
images
optimal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211104116.0A
Other languages
Chinese (zh)
Inventor
陈建裕
柴许超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Second Institute of Oceanography MNR
Original Assignee
Second Institute of Oceanography MNR
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 Second Institute of Oceanography MNR filed Critical Second Institute of Oceanography MNR
Priority to CN202211104116.0A priority Critical patent/CN116309034A/en
Publication of CN116309034A publication Critical patent/CN116309034A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10032Satellite or aerial image; Remote sensing

Landscapes

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

Abstract

The invention provides an optimal splicing line acquisition method of an ultra-large file remote sensing image, which comprises the following steps: acquiring two ultra-large file remote sensing images with geographic coordinate references, performing equal resolution downsampling treatment on the overlapped area of the two ultra-large file remote sensing images, and establishing an undirected graph for pixel points after the resolution is reduced; searching the minimum cut of the undirected graph by using a graph cut algorithm, and obtaining a rough spelling line; generating a buffer based on the rough stitching line; obtaining a banded overlapping region of two scenery images obtained by mapping the buffer region in the original oversized file remote sensing image; establishing an undirected graph for pixel points in the banded overlapping region; and obtaining the optimal splicing line of the banded overlapping region by applying a graph cut algorithm. According to the invention, through the resolution sampling of the ultra-large file remote sensing image, the number of pixel points to be traversed in the determining process of the stitching line is reduced, so that the number of nodes and edges to be calculated in a graph cutting algorithm is met, and the nodes and edges are ensured to be global optimal solutions, thereby obtaining the optimal stitching line of the ultra-large file remote sensing image.

Description

一种超大文件遥感图像的最优拼接线获取方法An Optimal Stitching Line Acquisition Method for Ultra-Large File Remote Sensing Images

技术领域technical field

本发明涉及遥感图像的拼接领域,尤其涉及一种超大文件遥感图像的最优拼接线获取方法。The invention relates to the field of mosaic of remote sensing images, in particular to a method for obtaining an optimal stitching line of remote sensing images of super-large files.

背景技术Background technique

图像拼接技术就是将数张有重叠部分的图像(可能是不同时间、不同传感器获得的)拼成一幅无缝的全景图或高分辨率图像的技术。在遥感影像的应用中,为了获得更大的视野,更好地统一处理分析研究和解译遥感影像信息,需要将获得的有重叠区域的两幅或多幅遥感影像拼接成一幅影像图。大数据遥感图像主要指卫星遥感图像,随着卫星遥感图像分辨率的提高,其图像数据量也逐渐变大。图割算法(Graph Cut)是一种十分有用和流行的能量优化算法,在计算机视觉领域普遍应用于前背景分割(Image segmentation)、立体视觉(stereo vision)、抠图(Image matting)等。由于图割算法的能量优化的特性,可以通过对图像边赋值将其应用于寻找图像之间的最优拼接线,从而在图像拼接线两边的像素点之间的光谱差异最小。然而,目前通过建立无向图应用图割算法,来寻找两图像之间最优拼接线的方法限制于图割算法所能容纳的最大节点数和边数,极大限制了其对于遥感图像的通用性。例如,某两张大数据遥感图像重叠区域像素点个数为5000*5000,而图割算法所能计算的最大容量为1000*1000,便会出现其不能适用图割算法的情况。此外,单纯的直接应用图割算法,也会导致很多无效点加入计算,大大加大其计算时间。Image stitching technology is the technology of stitching several overlapping images (which may be obtained at different times and by different sensors) into a seamless panorama or high-resolution image. In the application of remote sensing images, in order to obtain a larger field of view, better unified processing analysis and interpretation of remote sensing image information, it is necessary to stitch two or more remote sensing images with overlapping areas into an image map. Big data remote sensing images mainly refer to satellite remote sensing images. With the improvement of the resolution of satellite remote sensing images, the amount of image data is gradually increasing. Graph Cut algorithm (Graph Cut) is a very useful and popular energy optimization algorithm, which is widely used in the field of computer vision for image segmentation, stereo vision, image matting, etc. Due to the energy optimization characteristics of the graph cut algorithm, it can be applied to find the optimal stitching line between images by assigning values to the image edges, so that the spectral difference between the pixels on both sides of the image stitching line is the smallest. However, the current method of finding the optimal stitching line between two images by establishing an undirected graph and applying the graph cut algorithm is limited to the maximum number of nodes and edges that the graph cut algorithm can accommodate, which greatly limits its application to remote sensing images. Versatility. For example, if the number of pixels in the overlapping area of two large data remote sensing images is 5000*5000, and the maximum capacity that the graph cut algorithm can calculate is 1000*1000, the graph cut algorithm may not be applicable. In addition, the simple direct application of the graph cut algorithm will also cause many invalid points to be added to the calculation, greatly increasing its calculation time.

传统的图像拼接优化算法仅适用于小数据图像的情况,在应用于超大数据遥感图像时,通常会出现由于数据量过大而无法计算的情况,不能保证对于分辨率日益增加、图像数据量日益增大的遥感图像之间的拼接。The traditional image mosaic optimization algorithm is only suitable for small data images. When it is applied to super large data remote sensing images, it usually cannot be calculated due to the large amount of data. Stitching between augmented remote sensing images.

发明内容Contents of the invention

针对现有技术的不足,本发明提出一种超大文件遥感图像的最优拼接线获取方法。该方法针对于两景超大文件遥感图像拼接线寻找过程中由于数据量过大而导致无法进行计算或者时间耗费过长的不足,嵌套应用图割算法寻找到两景遥感图像的全局最优拼接线。需要指出的是,本发明的特殊之处在于嵌套寻找拼接线,不同于一般的拼接线一次寻找或者分块寻找拼接线的处理,本发明将原始图像先进行降采样得到缩小图像,找到一条粗略拼接线之后,再做缓冲区,在缓冲区内寻找更精细的拼接线,最终基于拼接线进行拼接、匀色得到一幅无缝拼接的大数据遥感图像。Aiming at the deficiencies of the prior art, the present invention proposes a method for obtaining an optimal splicing line of a remote sensing image of a super-large file. This method is aimed at the problem that the calculation cannot be performed or the time is too long due to the large amount of data in the process of finding the mosaic line of the remote sensing image of the two scenes. The nested application of the graph cut algorithm finds the global optimal mosaic of the two remote sensing images. Wire. It should be pointed out that the special feature of the present invention lies in the nested search for stitching lines, which is different from the general search for stitching lines at one time or the processing of finding stitching lines in blocks. After the rough splicing line, make a buffer zone, look for finer splicing lines in the buffer zone, and finally splice and uniformly color based on the splicing lines to obtain a seamlessly spliced big data remote sensing image.

为达到以上目的,本发明具体技术方案如下:To achieve the above object, the specific technical solutions of the present invention are as follows:

一种超大文件遥感图像的最优拼接线获取方法,该方法包括如下步骤:A method for obtaining an optimal splicing line of an ultra-large file remote sensing image, the method comprising the following steps:

步骤一:获取两景具有地理坐标参考的超大文件遥感图像,将两景超大文件遥感图像的重叠区域进行等分辨率降采样处理,获取粗略拼接线;Step 1: Obtain the remote sensing image of the super-large file with geographic coordinate reference of the two scenes, and perform equal-resolution down-sampling processing on the overlapping area of the remote sensing image of the two super-large file to obtain a rough splicing line;

所述步骤一具体通过以下子步骤实现:Described step one is specifically realized through the following sub-steps:

(1.1)计算两景超大文件遥感图像的地理重叠区域;(1.1) Calculate the geographical overlapping area of the remote sensing images of the two super-large files;

(1.2)计算两景超大文件遥感图像地理重叠区域的像元数量和图像拼接的重采样分辨率;(1.2) Calculate the number of pixels in the geographical overlapping area of the remote sensing images of the two super-large files and the resampling resolution of the image stitching;

(1.3)对两景超大文件遥感图像重叠区域进行等分辨率降采样处理;(1.3) Perform equal-resolution down-sampling processing on the overlapping area of the remote sensing images of the two super-large files;

(1.4)对降采样处理后的两景超大文件遥感图像重叠区域的像元点建立无向图;(1.4) Establish an undirected graph for the pixel points in the overlapped area of the remote sensing images of the two super-large files after the downsampling process;

(1.5)应用图割算法寻找步骤(1.4)得到的无向图的最小割,获得一条降分辨率后的粗略拼接线;(1.5) apply the graph cut algorithm to find the minimum cut of the undirected graph obtained in step (1.4), and obtain a rough splicing line after reducing the resolution;

步骤二:以步骤一得到的粗略拼接线为基础生成缓冲区,该缓冲区在原始两景超大文件遥感图像中形成带状重叠区域,在该带状重叠区域内,获取全局最优拼接线;Step 2: Generate a buffer zone based on the rough splicing line obtained in step 1. The buffer zone forms a band-shaped overlapping area in the original two-scene super-large file remote sensing image, and obtains the global optimal stitching line in the band-shaped overlapping area;

所述步骤二具体通过以下子步骤实现:The second step is specifically implemented through the following sub-steps:

(2.1)以步骤一获得的粗略拼接线为基础生成缓冲区;(2.1) Generate a buffer zone based on the rough stitching line obtained in step 1;

(2.2)得到步骤(2.1)生成的缓冲区在原始超大文件遥感图像中形成的两景超大文件遥感图像的带状重叠区域;(2.2) Obtain the band-shaped overlapping area of the two scene super-large-file remote-sensing images formed in the original super-large-file remote-sensing image by the buffer zone that step (2.1) generates;

(2.3)对带状重叠区域内的像元点建立无向图;(2.3) Establish an undirected graph for the pixel points in the band-shaped overlapping area;

(2.4)应用图割算法寻找步骤(2.3)得到的无向图的最小割,获取带状重叠区域的最优拼接线,即为全局最优拼接线。(2.4) Apply the graph cut algorithm to find the minimum cut of the undirected graph obtained in step (2.3), and obtain the optimal stitching line of the strip-shaped overlapping area, which is the global optimal stitching line.

进一步地,所述步骤(1.3)包括:Further, the step (1.3) includes:

选取采样系数n,n>1,将步骤一中的两景超大文件遥感图像A、B应用双线性插值法进行降采样,获得两幅相较于A、B缩小相同比例的缩小图像NA、NB,作为寻找粗略拼接线的图像。Select the sampling factor n, where n>1, apply the bilinear interpolation method to down-sample the remote sensing images A and B of the two super-large files in step 1, and obtain two reduced images NA and B that are reduced in the same proportion as A and B. NB, as an image looking for rough stitching lines.

进一步地,所述步骤(1.4)包括:Further, the step (1.4) includes:

在所述缩小图像NA、NB上确定重叠区域范围,并以该重叠区域内像素点为基础,建立一幅各边带有权值信息的无向图G1(V,E),所述无向图G1(V,E)包含节点V{C(x1,y1),C(x1,y2),…,C(x1,yt),…,C(xk,yt)}以及边E{R(L),S(L),B(L)};其中,C(x1,y1)表示在位置(x1,y1)处的光谱值,C(x1,y2)表示在(x1,y2)处的光谱值,C(x1,yt)表示在(x1,yt)处的光谱值,C(xk,yt)表示在(xk,yt)处的光谱值;R(L)表示内部节点同一行之间的边,S(L)表示内部节点不同行之间的边,B(L)表示图框最外部的边;Determine the scope of the overlapping area on the reduced images NA, NB, and based on the pixels in the overlapping area, establish an undirected graph G 1 (V, E) with weight information on each side, the undirected graph G 1 (V, E) The directed graph G 1 (V, E) contains nodes V{C(x 1 , y 1 ), C(x 1 , y 2 ), ..., C(x 1 , y t ), ..., C(x k , y t )} and edge E{R(L), S(L), B(L)}; where, C(x 1 , y 1 ) represents the spectral value at position (x 1 , y 1 ), C( x 1 , y 2 ) represents the spectral value at (x 1 , y 2 ), C(x 1 , y t ) represents the spectral value at (x 1 , y t ), C(x k , y t ) Represents the spectral value at (x k , y t ); R(L) represents the edge between the same row of internal nodes, S(L) represents the edge between different rows of internal nodes, B(L) represents the most the outer edge;

无向图G1(V,E)中各节点和边的赋值规则如下:The assignment rules of each node and edge in the undirected graph G 1 (V, E) are as follows:

同一行之间的边:Edges between the same row:

R(x,y)=|CNA(x1,y1)-CNB(x1,y1)|+|CNA(x2,y1)-CNB(x2,y1)| (1)不同行之间的边:R(x, y)=|C NA (x 1 , y 1 )-C NB (x 1 , y 1 )|+|C NA (x 2 , y 1 )-C NB (x 2 , y 1 )| (1) Edges between different rows:

S(x,y)=|CNA(x1,y1)-CNB(x1,y1)|+|CNA(x1,y2)-CNB(x1,y2)| (2)S(x, y)=|C NA (x 1 , y 1 )-C NB (x 1 , y 1 )|+|C NA (x 1 , y 2 )-C NB (x 1 , y 2 )| (2)

图框最外部的边:The outermost edge of the frame:

Figure BDA0003840665240000031
Figure BDA0003840665240000031

式中,节点的值即为原始超大文件遥感图像对应像素点的光谱值:CNA(x1,y1)为图像NA在位置(x1,y1)处的光谱值,CNA(x2,y1)为图像NA在位置(x2,y1)处的光谱值,CNA(x1,y2)为图像NA在位置(x1,y2)处的光谱值,CNA(xp,yq)为图像NA在位置(xp,yq)处的光谱值;CNB(x1,y1)为图像NB在位置(x1,y1)处的光谱值,CNB(x2,y1)为图像NB在位置(x2,y1)处的光谱值,CNB(x1,y2)为图像NB在位置(x1,y2)处的光谱值,CNB(xp,yq)为图像NB在位置(xp,yq)处的光谱值。In the formula, the value of the node is the spectral value of the corresponding pixel of the original super-large file remote sensing image: C NA (x 1 , y 1 ) is the spectral value of the image NA at the position (x 1 , y 1 ), C NA (x 1 , y 1 ) 2 , y 1 ) is the spectral value of image NA at position (x 2 , y 1 ), C NA (x 1 , y 2 ) is the spectral value of image NA at position (x 1 , y 2 ), C NA (x p , y q ) is the spectral value of image NA at position (x p , y q ); C NB (x 1 , y 1 ) is the spectral value of image NB at position (x 1 , y 1 ), C NB (x 2 , y 1 ) is the spectral value of image NB at position (x 2 , y 1 ), C NB (x 1 , y 2 ) is the spectrum of image NB at position (x 1 , y 2 ) value, C NB (x p , y q ) is the spectral value of image NB at position (x p , y q ).

进一步地,所述步骤(2.1)包括:Further, the step (2.1) includes:

获得所述粗略拼接线后,选取缓冲区半径为r,沿所述粗略拼接线的法线方向向两侧作缓冲区,并将所述缓冲区进行升采样扩大至原始图像大小,得到图像P。After obtaining the rough splicing line, select the buffer radius as r, make buffers on both sides along the normal direction of the rough splicing line, and upsample the buffer to the size of the original image to obtain an image P .

进一步地,所述步骤(2.2)包括:Further, the step (2.2) includes:

将所述图像P中缓冲区的位置一一映射至原始图像A、B上,在图像A、B上获得带状重叠区域,在该带状重叠区域内寻找最优拼接线;Mapping the positions of the buffers in the image P to the original images A and B one by one, obtaining a strip-shaped overlapping area on the images A and B, and finding an optimal splicing line in the strip-shaped overlapping area;

进一步地,所述步骤(2.3)包括:Further, the step (2.3) includes:

以所述带状重叠区域内像素点为基础建立无向图G2(V,E),其中各节点和边的赋值规则与步骤(2.4)中各节点和边的赋值规则相同。本发明的有益效果是:An undirected graph G 2 (V, E) is established based on the pixels in the band-shaped overlapping area, wherein the assignment rules of each node and edge are the same as the assignment rules of each node and edge in step (2.4). The beneficial effects of the present invention are:

(1)本发明采用嵌套应用图割算法寻找到两景遥感图像的全局最优拼接线,避免了传统的拼接线寻找方法在拼接线寻找过程中由于数据量过大而导致无法进行计算或者时间耗费过长的问题,相较于传统的拼接线寻找方法,大大减少了图像计算的节点数量,进而减少了计算量,提高了拼接线寻找的计算效率。(1) The present invention uses the nested application graph cut algorithm to find the global optimal splicing line of the two remote sensing images, avoiding the traditional splicing line search method that cannot be calculated or cannot be calculated due to the large amount of data in the splicing line search process. The problem of time-consuming is too long. Compared with the traditional method of finding stitching lines, the number of nodes for image calculation is greatly reduced, which in turn reduces the amount of calculation and improves the computational efficiency of finding stitching lines.

(2)本发明适用于各种传感器的拼接线寻找,对不同传感器具有普遍适用性。(2) The present invention is suitable for searching splice lines of various sensors, and has universal applicability to different sensors.

附图说明Description of drawings

图1是本发明的超大文件遥感图像的最优拼接线获取方法的流程框图;Fig. 1 is the block flow diagram of the optimal splicing line acquisition method of super-large file remote sensing image of the present invention;

图2是本发明的一个实施例中的两景图像重叠区域降采样后的示意图;Fig. 2 is a schematic diagram after down-sampling of the overlapping area of two scene images in an embodiment of the present invention;

图3是本发明的一个实施例中的基于获得的粗略拼接线建立多缓冲区的示意图;Fig. 3 is a schematic diagram of establishing multiple buffer zones based on obtained rough stitching lines in one embodiment of the present invention;

图4(a)是本发明的其中一个实施例中在重叠区域内所得的粗略拼接线在升采样之后的缓冲区内的位置;Fig. 4 (a) is the position in the buffer zone after the upsampling of the roughly spliced line obtained in the overlapping area in one of the embodiments of the present invention;

图4(b)是本发明的其中一个实施例中的在缓冲区内所得的全局最优拼接线在带状重叠区域内的位置;Fig. 4 (b) is the position of the globally optimal splicing line obtained in the buffer zone in the strip-shaped overlapping region in one of the embodiments of the present invention;

图5(a)是本发明的其中一个实施例中的拼接、匀色之后的结果示意全景图;Figure 5(a) is a schematic panorama of the results after splicing and color uniformity in one of the embodiments of the present invention;

图5(b)是选取图5(a)中的拼接结果局部放大之后的示意图。Fig. 5(b) is a schematic diagram after selecting the splicing result in Fig. 5(a) and partially zooming in.

具体实施方式Detailed ways

下面根据附图和优选实施例详细描述本发明,本发明的目的和效果将变得更加明白,以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be described in detail below according to the accompanying drawings and preferred embodiments, and the purpose and effect of the present invention will become clearer. The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

如图1所示,为本发明的超大文件遥感图像的最优拼接线获取方法的流程框图,该方法包括如下步骤:As shown in Figure 1, it is a flow chart of the optimal splicing line acquisition method of the super-large file remote sensing image of the present invention, the method comprises the following steps:

步骤一:获取两景具有地理坐标参考的超大文件遥感图像(Landsat8),将两景图像重叠区域进行等分辨率降采样处理,获取第一次粗略拼接线。Step 1: Obtain the super-large file remote sensing image (Landsat8) with geographic coordinate reference of the two scenes, and perform equal-resolution downsampling on the overlapping area of the two images to obtain the first rough splicing line.

步骤一具体通过以下子步骤实现:Step 1 is specifically implemented through the following sub-steps:

1.1.计算两景超大文件遥感图像的地理重叠区域;1.1. Calculate the geographical overlapping area of the remote sensing images of the two super-large files;

1.2.计算两景图像地理重叠区域的像元数量,获得其重叠区域内像元数量为9,048,576个;计算图像拼接的重采样分辨率;1.2. Calculate the number of pixels in the geographic overlapping area of the two images, and obtain 9,048,576 pixels in the overlapping area; calculate the resampling resolution of the image stitching;

1.3.对两景图像重叠区域进行等分辨率降采样处理。具体步骤如下:1.3. Equal resolution downsampling is performed on the overlapping area of the two scene images. Specific steps are as follows:

选取采样系数为10,即原始图像上10*10的像元块作为缩小图像中的一个像元点。将原始图像A、B应用双线性插值法(Bilinear Interpolation)进行降采样,获得两幅相较于原始图像A、B缩小相同比例的缩小图像NA、NB,使得缩小图像中地理重叠区域内像素点个数减少到62697个,其重叠区域作为寻找粗略拼接线的范围。The sampling factor is selected as 10, that is, the 10*10 pixel block on the original image is used as a pixel point in the reduced image. Apply bilinear interpolation to the original images A and B for downsampling, and obtain two reduced images NA and NB that are reduced to the same ratio as the original images A and B, so that the pixels in the geographically overlapping area of the reduced images The number of points is reduced to 62697, and the overlapping area is used as the range to find the rough stitching line.

如图2所示,为本实施例对两景图像的重叠区域进行降采样之后的示意图。图中,黑色区域即为重叠区域,在降采样图像NA中的位置。As shown in FIG. 2 , it is a schematic diagram after down-sampling the overlapping regions of the images of the two scenes in this embodiment. In the figure, the black area is the overlapping area, the position in the downsampled image NA.

1.4.对降采样处理后两景图像重叠区域的像元点建立无向图。具体步骤如下:1.4. Create an undirected graph for the pixel points in the overlapping area of the two scene images after the downsampling process. Specific steps are as follows:

在缩小图像上确定重叠区域范围,并以该重叠区域内像素点为基础,建立一幅各边带有权值信息的无向图G1(V,E),其包含节点V{C(x1,y1),C(x1,y2),…,C(x1,yt),…,C(xk,yt)}以及边E{R(L),S(L),B(L)};其中,C(x1,y1)表示在位置(x1,y1)处的光谱值,C(x1,y2)表示在(x1,y2)处的光谱值,C(x1,yt)表示在(x1,yt)处的光谱值,C(xk,yt)表示在(xk,yt)处的光谱值;R(L)表示内部节点同一行之间的边,S(L)表示内部节点不同行之间的边,B(L)表示图框最外部的边,用以进行图割算法。Determine the scope of the overlapping area on the reduced image, and based on the pixels in the overlapping area, establish an undirected graph G 1 (V, E) with weight information on each side, which contains the node V{C(x 1 , y 1 ), C(x 1 , y 2 ), ..., C(x 1 , y t ), ..., C(x k , y t )} and the edge E{R(L), S(L) , B(L)}; where, C(x 1 , y 1 ) represents the spectral value at position (x 1 , y 1 ), and C(x 1 , y 2 ) represents the value at (x 1 , y 2 ) , C(x 1 , y t ) represents the spectral value at (x 1 , y t ), C(x k , y t ) represents the spectral value at (x k , y t ); R( L) represents the edge between the same row of internal nodes, S(L) represents the edge between different rows of internal nodes, and B(L) represents the outermost edge of the graph frame, which is used for the graph cut algorithm.

无向图G1(V,E)中各节点和边的赋值规则如下:The assignment rules of each node and edge in the undirected graph G 1 (V, E) are as follows:

同一行之间的边:Edges between the same row:

R(x,y)=|CNA(x1,y1)-CNB(x1,y1)|+|CNA(x2,y1)-CNB(x2,y1)| (1)R(x, y)=|C NA (x 1 , y 1 )-C NB (x 1 , y 1 )|+|C NA (x 2 , y 1 )-C NB (x 2 , y 1 )| (1)

不同行之间的边:Edges between different rows:

S(x,y)=|CNA(x1,y1)-CNB(x1,y1)|+|CNA(x1,y2)-CNB(x1,y2)| (2)S(x, y)=|C NA (x 1 , y 1 )-C NB (x 1 , y 1 )|+|C NA (x 1 , y 2 )-C NB (x 1 , y 2 )| (2)

图框最外部的边:The outermost edge of the frame:

Figure BDA0003840665240000051
Figure BDA0003840665240000051

式中,节点的值即为原始图像对应像素点的光谱值:CNA(x1,y1)对应图像NA在位置(x1,y1)处的光谱值,CNA(x2,y1)对应图像NA在位置(x2,y1)处的光谱值,CNA(x1,y2)对应图像NA在位置(x1,y2)处的光谱值,CNA(xp,yq)为图像NA在位置(xp,yq)处的光谱值;CNB(x1,y1)对应图像NB在位置(x1,y1)处的光谱值,CNB(x2,y1)对应图像NB在位置(x2,y1)处的光谱值,CNB(x1,y2)对应图像NB在位置(x1,y2)处的光谱值,CNB(xp,yq)为图像NB在位置(xp,yq)处的光谱值。In the formula, the value of the node is the spectral value of the corresponding pixel of the original image: C NA (x1, y1) corresponds to the spectral value of the image NA at the position (x 1 , y 1 ), C NA (x 2 , y 1 ) Corresponding to the spectral value of image NA at position (x 2 , y 1 ), C NA (x 1 , y 2 ) corresponds to the spectral value of image NA at position (x 1 , y 2 ), C NA (x p , y q ) is the spectral value of image NA at position (x p , y q ); C NB (x 1 , y 1 ) corresponds to the spectral value of image NB at position (x 1 , y 1 ), C NB (x 2 , y 1 ) corresponds to the spectral value of image NB at position (x 2 , y 1 ), C NB (x 1 , y 2 ) corresponds to the spectral value of image NB at position (x 1 , y 2 ), C NB ( x p , y q ) is the spectral value of the image NB at position (x p , y q ).

1.5.应用图割算法寻找步骤1.4得到的无向图的最小割,获得一条降分辨率后的粗略拼接线。具体步骤如下:1.5. Apply the graph cut algorithm to find the minimum cut of the undirected graph obtained in step 1.4, and obtain a rough splicing line with reduced resolution. Specific steps are as follows:

无向图中所有的边被赋予一个非负权值We,称之为费用。图割算法可以将无向图中的边断开,从而形成两个互不相连的边的集合,这样的一个边的集合就称之为“割”。如果一个“割”,它的边的所有费用之和最小,那么这个就称为“最小割”。在本实施例中,图割算法具体为graph cut。图割算法中应用最大流/最小割算法可以得到无向图中的最小割,该割将图像分为两部分,那么这条分割线就是缩小图像NA、NB的能量最优分割线,即为粗略拼接线。All edges in the undirected graph are assigned a non-negative weight W e , called the cost. The graph cut algorithm can disconnect the edges in an undirected graph to form a set of two disconnected edges. Such a set of edges is called a "cut". If a "cut" has the smallest sum of all costs of its edges, then this is called a "minimum cut". In this embodiment, the graph cut algorithm is specifically graph cut. The minimum cut in the undirected graph can be obtained by applying the maximum flow/minimum cut algorithm in the graph cut algorithm. This cut divides the image into two parts, then this dividing line is the energy optimal dividing line for shrinking the images NA and NB, which is Rough stitching lines.

步骤二:以步骤一得到的粗略拼接线为基础生成缓冲区,该缓冲区在原始两景图像中形成带状重叠区域,在该带状重叠区域内,获取全局最优拼接线。Step 2: Generate a buffer zone based on the rough stitching line obtained in step 1. The buffer zone forms a band-like overlapping area in the original two-scene images, and obtains the global optimal stitching line in the band-like overlapping area.

步骤二具体通过以下子步骤实现:Step 2 is specifically implemented through the following sub-steps:

2.1.以步骤二获得的粗略拼接线为基础生成缓冲区。具体步骤如下:2.1. Generate a buffer based on the rough stitching line obtained in step 2. Specific steps are as follows:

获得缩小图像的粗略拼接线后,选取缓冲区半径r为17,沿该拼接线法线方向,向两侧作缓冲区,在缩小图像NA中获得一条带状缓冲区,将缓冲区范围内像元值赋为1,并进行升采样扩大至原始图像大小,得到图像P。After obtaining the rough splicing line of the reduced image, select the radius of the buffer zone r to be 17, and make a buffer along the normal direction of the splicing line to both sides, and obtain a strip buffer in the reduced image NA. The element value is assigned as 1, and the upsampling is performed to expand to the original image size, and the image P is obtained.

如图3所示,为根据获得的粗略拼接线在缩小图像中建立的缓冲区的示意图。图中缓冲区区域以中间灰色条带表示,在缓冲区左上方的区域即为应选取图像NA作为像素点值的区域,在缓冲区右下方的区域即为应选取图像NB作为像素点值的区域。As shown in FIG. 3 , it is a schematic diagram of the buffer zone established in the reduced image according to the obtained rough splicing line. The buffer area in the figure is represented by the middle gray strip. The area on the upper left of the buffer is the area where the image NA should be selected as the pixel value, and the area on the lower right of the buffer is the area where the image NB should be selected as the pixel value. area.

2.2.得到步骤2.1生成的缓冲区在原始超大文件遥感图像中形成的两景图像的带状重叠区域。具体步骤如下:2.2. Obtain the band-shaped overlapping area of the two scene images formed by the buffer generated in step 2.1 in the original remote sensing image of the super-large file. Specific steps are as follows:

将图像P中缓冲区的位置一一映射至原始图像A、B上,在图像A、B上获得带状缓冲区范围,考虑到图像p在升采样之后存在部分缓冲区位置(拼接线头尾处)像素点超出原始图像重叠区域,在本实施例中,将图像p映射至原始图像之后,相应的搜索寻找边缘处不属于原始图像重叠区域的点进行删除,得到两景图像的带状重叠区域。在该带状重叠区域范围内寻找最优拼接线。Map the positions of buffers in image P to original images A and B one by one, and obtain the range of striped buffers on images A and B, considering that there are some buffer positions in image p after upsampling (at the beginning and end of splicing line ) pixels beyond the overlapping area of the original image, in this embodiment, after the image p is mapped to the original image, corresponding searches are performed to find points on the edge that do not belong to the overlapping area of the original image and then deleted to obtain the band-shaped overlapping area of the two images . Find the optimal stitching line within the band overlapping region.

2.3.对带状重叠区域内的像元点建立无向图;2.3. Create an undirected graph for the pixel points in the band overlapping area;

以步骤2.2得到的带状重叠区域内像素点为基础建立无向图G2(V,E),其中各节点和边的赋值规则与步骤2.4中各节点和边的赋值规则相同。Establish an undirected graph G 2 (V,E) based on the pixels in the band-shaped overlapping area obtained in step 2.2, where the assignment rules of each node and edge are the same as those of each node and edge in step 2.4.

2.4.应用图割算法寻找步骤2.3得到的无向图G2(V,E)的最小割,具体步骤参照步骤2.5,获取带状重叠区域的最优拼接线,即为全局最优拼接线。2.4. Use the graph cut algorithm to find the minimum cut of the undirected graph G 2 (V,E) obtained in step 2.3. For specific steps, refer to step 2.5 to obtain the optimal stitching line of the band-shaped overlapping area, which is the global optimal stitching line.

如图4(a)所示为粗略拼接线在缓冲区内的相应位置;图4(b)是在缓冲区内寻找所得的全局最优拼接线在带状重叠区域内的相应位置。在图中可以看到第一次寻找所得的粗略拼接线与第二次所得的全局最优拼接线相比较为粗略。在本实施例中第一次所得的粗略拼接线在原始图像上以10*10个像素点为一次分割,而第二次所得的全局最优拼接线在原始图像上以每一个像素点为一次分割。Figure 4(a) shows the corresponding position of the rough stitching line in the buffer zone; Figure 4(b) shows the corresponding position of the global optimal stitching line found in the buffer zone in the band-shaped overlapping area. It can be seen in the figure that the rough stitching line obtained by the first search is rougher than the global optimal stitching line obtained by the second search. In this embodiment, the rough stitching line obtained for the first time is divided into 10*10 pixels on the original image, and the global optimal stitching line obtained in the second time is divided into each pixel on the original image. segmentation.

以步骤二得到的全局最优拼接线为基础,将原始两幅大数据遥感图像进行匀色、拼接,得到一幅无缝拼接的大数据遥感图像。Based on the global optimal stitching line obtained in step 2, the original two large data remote sensing images are uniformly colored and stitched to obtain a seamlessly stitched big data remote sensing image.

如图5(a)所示为两幅大数据遥感图像拼接、匀色后的灰度全景图;图5(b)为选取拼接结果局部放大之后的示意图。从图中可以看出,两幅图像拼接处不存在显著色差的情况,且拼接处基本不穿过显著地物。Figure 5(a) shows the gray scale panorama after splicing and uniform coloring of two large data remote sensing images; Figure 5(b) is a schematic diagram of the partially enlarged selected splicing results. It can be seen from the figure that there is no obvious color difference at the splicing point of the two images, and the splicing point basically does not pass through the prominent objects.

综上所述,从两次拼接线寻找的结果来看,大数据遥感图像可以通过本发明的超大文件遥感图像的最优拼接线获取方法进行拼接线的寻找。不同于传统的单次进行图割算法寻找拼接线,本发明通过嵌套应用图割算法,大大减少图割算法中图的节点数量。需要指出的是,本发明适用于各种传感器的拼接线寻找,对不同传感器具有普遍适用性。In summary, judging from the results of the two splicing line searches, large data remote sensing images can be searched for splicing lines through the optimal splicing line acquisition method for super-large file remote sensing images of the present invention. Different from the traditional one-time graph-cut algorithm to find splicing lines, the present invention greatly reduces the number of graph nodes in the graph-cut algorithm through nested application of the graph-cut algorithm. It should be pointed out that the present invention is suitable for finding splice lines of various sensors, and has universal applicability to different sensors.

本领域普通技术人员可以理解,以上所述仅为发明的优选实例而已,并不用于限制发明,尽管参照前述实例对发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实例记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。凡在发明的精神和原则之内,所做的修改、等同替换等均应包含在发明的保护范围之内。Those of ordinary skill in the art can understand that the above description is only a preferred example of the invention, and is not intended to limit the invention. Although the invention has been described in detail with reference to the foregoing examples, for those skilled in the art, it can still be understood. The technical solutions described in the foregoing examples are modified, or some of the technical features are equivalently replaced. All modifications, equivalent replacements, etc. within the spirit and principles of the invention shall be included in the scope of protection of the invention.

Claims (6)

1. The optimal spelling line acquisition method of the ultra-large file remote sensing image is characterized by comprising the following steps of:
step one: acquiring two ultra-large file remote sensing images with geographic coordinate references, and performing equal resolution downsampling on the overlapped area of the two ultra-large file remote sensing images to acquire a rough splicing line;
the first step is realized by the following substeps:
(1.1) calculating the geographic overlapping area of the remote sensing images of the two-scene oversized file;
(1.2) calculating the quantity of pixels in the geographic overlapping area of the remote sensing images of the two-scene oversized file and the resampling resolution of image stitching;
(1.3) performing equal resolution downsampling treatment on the overlapping area of the remote sensing images of the two-scene oversized file;
(1.4) establishing an undirected graph for pixel points of an overlapping area of the remote sensing images of the two-scene oversized file after the downsampling treatment;
(1.5) searching the minimum cut of the undirected graph obtained in the step (1.4) by using a graph cut algorithm to obtain a rough split joint line after resolution reduction;
step two: generating a buffer area based on the rough spelling line obtained in the first step, wherein the buffer area forms a banded overlapping area in the remote sensing image of the original two-scene oversized file, and the global optimal spelling line is obtained in the banded overlapping area;
the second step is specifically realized by the following substeps:
(2.1) generating a buffer based on the rough stitching line obtained in step one;
(2.2) obtaining a banded overlapping region of the two-scene oversized file remote sensing image formed in the original oversized file remote sensing image by the buffer area generated in the step (2.1);
(2.3) establishing an undirected graph for pixel points in the banded overlapping region;
and (2.4) searching the minimum cut of the undirected graph obtained in the step (2.3) by using a graph cut algorithm, and obtaining the optimal splicing line of the banded overlapping region, namely the global optimal splicing line.
2. The method for obtaining an optimal stitching line of a remote sensing image of an oversized document according to claim 1, wherein the step (1.3) includes:
sampling coefficients n, n >1 are selected, and the two-scene oversized file remote sensing image A, B in the first step is subjected to downsampling by a bilinear interpolation method to obtain two reduced images NA and NB which are reduced by the same proportion compared with A, B, and the two reduced images NA and NB are used as images for searching rough spelling lines.
3. The method for obtaining an optimal stitching line of a remote sensing image of an oversized document according to claim 2, wherein the step (1.4) includes:
determining the range of the overlapping area on the contracted images NA and NB, and establishing an undirected graph G with weight information on each side based on the pixel points in the overlapping area 1 (V, E) the undirected graph G 1 (V, E) includes node V { C (x) 1 ,y 1 ),C(x 1 ,y 2 ),…,C(x 1 ,y t ),…,C(x k ,y t ) -and edges E { R (L), S (L), B (L) }; wherein C (x) 1 ,y 1 ) Is expressed in the position (x 1 ,y 1 ) Spectral values at C (x 1 ,y 2 ) Represented at (x 1 ,y 2 ) Spectral values at C (x 1 ,y t ) Represented at (x 1 ,y t ) Spectral values at C (x k ,y t ) Represented at (x k ,y t ) Spectral values at; r (L) represents edges between the same rows of internal nodes, S (L) represents edges between different rows of internal nodes, and B (L) represents the outermost edge of the frame;
undirected graph G 1 The assignment rules for each node and edge in (V, E) are as follows:
edges between the same rows:
R(x,y)=|C NA (x 1 ,y 1 )-C NB (x 1 ,y 1 )|+|C NA (x 2 ,y 1 )-C NB (x 2 ,y 1 )| (1)
edges between different rows:
S(x,y)=|C NA (x 1 ,y 1 )-C NB (x 1 ,y 1 )|+|C NA (x 1 ,y 2 )-C NB (x 1 ,y 2 )| (2)
the outermost edges of the frame:
Figure FDA0003840665230000021
in the formula, the value of the node is the spectrum value of the pixel point corresponding to the remote sensing image of the original oversized file: c (C) NA (x 1 ,y 1 ) For image NA at position (x 1 ,y 1 ) Spectral value at C NA (x 2 ,y 1 ) For image NA at position (x 2 ,y 1 ) Spectral value at C NA (x 1 ,y 2 ) For image NA at position (x 1 ,y 2 ) Spectral value at C NA (x p ,y q ) For image NA at position (x p ,y q ) Spectral values at; c (C) NB (x 1 ,y 1 ) For image NB in position (x 1 ,y 1 ) Spectral value at C NB (x 2 ,y 1 ) For image NB in position (x 2 ,y 1 ) Spectral value at C NB (x 1 ,y 2 ) For image NB in position (x 1 ,y 2 ) Spectral value at C NB (x p ,y q ) For image NB in position (x p ,y q ) Spectral values at.
4. The method for obtaining an optimal stitching line for a remote sensing image of an oversized document according to claim 3, wherein the step (2.1) comprises:
after the rough splicing line is obtained, selecting a buffer area with the radius r, taking buffer areas towards two sides along the normal direction of the rough splicing line, and up-sampling and expanding the buffer areas to the original image size to obtain an image P.
5. The method for obtaining an optimal stitching line for a remote sensing image of an oversized document according to claim 4, wherein the step (2.2) includes:
the positions of the buffers in the image P are mapped onto the original image A, B one by one, a banded overlapping region is obtained on the image A, B, and an optimal stitching line is found in the banded overlapping region.
6. The method for obtaining an optimal stitching line for a remote sensing image of an oversized document according to claim 5, wherein the step (2.3) includes:
establishing an undirected graph G based on pixel points in the banded overlapping region 2 (V, E) wherein the assignment rules for each node and edge are the same as the assignment rules for each node and edge in step (2.4).
CN202211104116.0A 2022-09-09 2022-09-09 An Optimal Stitching Line Acquisition Method for Ultra-Large File Remote Sensing Images Pending CN116309034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211104116.0A CN116309034A (en) 2022-09-09 2022-09-09 An Optimal Stitching Line Acquisition Method for Ultra-Large File Remote Sensing Images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211104116.0A CN116309034A (en) 2022-09-09 2022-09-09 An Optimal Stitching Line Acquisition Method for Ultra-Large File Remote Sensing Images

Publications (1)

Publication Number Publication Date
CN116309034A true CN116309034A (en) 2023-06-23

Family

ID=86836428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211104116.0A Pending CN116309034A (en) 2022-09-09 2022-09-09 An Optimal Stitching Line Acquisition Method for Ultra-Large File Remote Sensing Images

Country Status (1)

Country Link
CN (1) CN116309034A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116503742A (en) * 2023-06-26 2023-07-28 自然资源部第二海洋研究所 A Cloud Substitution Method for Remote Sensing Image Based on Superpixel and Graph Cut Algorithm

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116503742A (en) * 2023-06-26 2023-07-28 自然资源部第二海洋研究所 A Cloud Substitution Method for Remote Sensing Image Based on Superpixel and Graph Cut Algorithm
CN116503742B (en) * 2023-06-26 2023-09-08 自然资源部第二海洋研究所 A remote sensing image cloud replacement method based on superpixel and graph cut algorithm

Similar Documents

Publication Publication Date Title
KR101820349B1 (en) Picture presentation method and apparatus
CN106651938B (en) A kind of depth map Enhancement Method merging high-resolution colour picture
CN103632359B (en) A kind of video super-resolution disposal route
WO2018082185A1 (en) Image processing method and device
CN104966270A (en) Multi-image stitching method
JP7390497B2 (en) Image processing methods, apparatus, computer programs, and electronic devices
JP2002514359A (en) Method and apparatus for creating a mosaic image
JP2000293696A (en) Picture recognizing device
CN110232693B (en) An Image Segmentation Method Combining Heat Map Channel and Improved U-Net
CN112598735A (en) Single-image object pose estimation method fusing three-dimensional model information
CN111105452A (en) High-low resolution fusion stereo matching method based on binocular vision
CN110866882A (en) Layered joint bilateral filtering depth map restoration algorithm based on depth confidence
CN115546027B (en) Image suture line determination method, device and storage medium
CN116385288A (en) Depth image restoration method and device and readable storage medium
Wei et al. Domain-based structure-aware image inpainting
CN116309034A (en) An Optimal Stitching Line Acquisition Method for Ultra-Large File Remote Sensing Images
CN109933639A (en) A Layer Stack-Oriented Adaptive Fusion Method of Multispectral Image and Panchromatic Image
CN111630569B (en) Binocular matching method, visual imaging device and device with storage function
Ning et al. Adaptive image rational upscaling with local structure as constraints
CN118097123A (en) Three-dimensional object detection method, system, device and medium based on point cloud and image
Xiong et al. Mask-based image blending and its applications on mobile devices
JP2000171214A (en) Corresponding point retrieving method and three- dimensional position measuring method utilizing same
CN116402934A (en) Automatic texture mapping method, terminal and storage medium for three-dimensional reconstruction
CN116645274A (en) Image processing method, device, electronic device, and computer-readable storage medium
CN114283199A (en) A point-line fusion semantic SLAM method for dynamic scenes

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