CN117452021A - Two-dimensional space-time image velocity measurement method and device for field river surface and storage medium - Google Patents
Two-dimensional space-time image velocity measurement method and device for field river surface and storage medium Download PDFInfo
- Publication number
- CN117452021A CN117452021A CN202311290168.6A CN202311290168A CN117452021A CN 117452021 A CN117452021 A CN 117452021A CN 202311290168 A CN202311290168 A CN 202311290168A CN 117452021 A CN117452021 A CN 117452021A
- Authority
- CN
- China
- Prior art keywords
- image
- spatio
- temporal
- river
- original image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01P—MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
- G01P5/00—Measuring speed of fluids, e.g. of air stream; Measuring speed of bodies relative to fluids, e.g. of ship, of aircraft
- G01P5/26—Measuring speed of fluids, e.g. of air stream; Measuring speed of bodies relative to fluids, e.g. of ship, of aircraft by measuring the direct influence of the streaming fluid on the properties of a detecting optical wave
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01P—MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
- G01P13/00—Indicating or recording presence, absence, or direction, of movement
- G01P13/02—Indicating direction only, e.g. by weather vane
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01P—MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
- G01P21/00—Testing or calibrating of apparatus or devices covered by the preceding groups
- G01P21/02—Testing or calibrating of apparatus or devices covered by the preceding groups of speedometers
- G01P21/025—Testing or calibrating of apparatus or devices covered by the preceding groups of speedometers for measuring speed of fluids; for measuring speed of bodies relative to fluids
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01P—MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
- G01P5/00—Measuring speed of fluids, e.g. of air stream; Measuring speed of bodies relative to fluids, e.g. of ship, of aircraft
- G01P5/001—Full-field flow measurement, e.g. determining flow velocity and direction in a whole region at the same time, flow visualisation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/30—Assessment of water resources
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Aviation & Aerospace Engineering (AREA)
- Multimedia (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域Technical field
本公开涉及野外河流表面流速测量领域,具体涉及一种野外河流表面的二维时空图像测速方法、装置和存储介质。The present disclosure relates to the field of field river surface flow velocity measurement, and specifically relates to a two-dimensional spatiotemporal image velocity measurement method, device and storage medium of a field river surface.
背景技术Background technique
河流流速是重要的水文参数。在目前诸多测量方法中,图像类方法由于具有非接触、大范围测量等优势,越来越多的应用到河流的测量中。传统的时空图像测速法(space-time image velocimetry,STIV)需要人为预设河流流动方向,以河流表面纹理运动来计算河流表面速度。由于野外的河流在地形地貌、气候、地质、科里奥利力等因素的作用下一般都是弯曲的,流动方向变化较大,导致判断河流方向较为困难,甚至无法提前判断河流的方向,因此STIV在应用到野外河流测量的时候会受到限制。River flow velocity is an important hydrological parameter. Among the many current measurement methods, image methods are increasingly used in river measurement due to their advantages of non-contact and large-scale measurement. The traditional space-time image velocimetry (STIV) method requires artificially presetting the river flow direction and calculating the river surface velocity based on the movement of the river surface texture. Because rivers in the wild are generally curved under the influence of topography, climate, geology, Coriolis force and other factors, the flow direction changes greatly, making it difficult to judge the direction of the river, or even impossible to judge the direction of the river in advance. STIV has limitations when applied to field river measurements.
此外,采用示踪粒子计算河流表面流速的现有技术均需要河流表面存在显著的示踪物。但是,在野外大范围河流表面施放人工示踪物费时费力,并且难以撒布均匀,在大面积测量中基本不可能采用。天然示踪物如漂浮的树枝等出现时间和地点都有很大的随机性,难以保证其数量和密度。因此,在野外应用都存在较大的局限性。In addition, existing techniques for calculating river surface flow velocity using tracer particles require the presence of significant tracers on the river surface. However, deploying artificial tracers on large-scale river surfaces in the wild is time-consuming and labor-intensive, and difficult to spread evenly, making it basically impossible to use them in large-area measurements. The appearance time and location of natural tracers such as floating branches are highly random, making it difficult to guarantee their quantity and density. Therefore, there are great limitations in field applications.
发明内容Contents of the invention
本公开旨在至少解决现有技术中存在的技术问题之一。The present disclosure aims to solve at least one of the technical problems existing in the prior art.
为此,本公开第一方面提供的一种野外河流表面的二维时空图像测速方法,无需预先指定测点的流速方向,解决了流动方向变化较大的野外河流表面的流速测量问题,避免了在野外大范围河流表面施放人工示踪物的费时费力问题,实现对野外河流表面流速大小及方向的同时测量。To this end, the first aspect of the present disclosure provides a two-dimensional spatio-temporal image velocity measurement method for a wild river surface without pre-specifying the flow velocity direction of the measurement point, solving the problem of flow velocity measurement on a wild river surface with large flow direction changes, and avoiding It is a time-consuming and labor-intensive problem to deploy artificial tracers on a large-scale river surface in the wild. It is necessary to simultaneously measure the flow velocity and direction of the river surface in the wild.
本公开第一方面提供的野外河流表面的二维时空图像测速方法,包括:The two-dimensional spatiotemporal image velocity measurement method of the wild river surface provided by the first aspect of the present disclosure includes:
步骤S1、采集野外河流待测断面位置处的表面流动图像,以此构建原始图像序列;Step S1: Collect surface flow images at the cross-section location of the wild river to be measured to construct an original image sequence;
步骤S2、对所述原始图像序列中的各原始图像进行预处理,得到预处理后的图像序列;Step S2: Preprocess each original image in the original image sequence to obtain a preprocessed image sequence;
步骤S3、针对所述预处理后的图像序列中的各图像,首先对图像进行网格划分,然后在各网格节点上设置一条水平的测速线,通过等间距旋转该测速线的方式得到以网格节点为圆心且在[0,2π]范围内的一系列测速线,将该一系列测速线记为网格节点的旋转测速线,根据各网格节点的旋转测速线的纹理变化合成各网格节点的若干时空图像,计算各时空图像的自相关系数,选择自相关系数最大的时空图像,得到每个网格节点的优选时空图像;针对每张所述优选时空图像,设置中点位于所述优选时空图像的中心的线段,所述线段的长度为所述优选时空图像的边长中较短的长度,通过等间距旋转所述线段的方式得到以所述优选时空图像的中心为圆心且在[0,2π]范围内的一系列旋转线段,计算各条旋转线段的自相关系数,将各条旋转线段的自相关系数进行加和,将自相关系数和最大值所在的旋转线段的角度作为河流流速方向,将所述河流流速方向的正切值作为河流流速大小。Step S3: For each image in the preprocessed image sequence, first divide the image into a grid, then set a horizontal speed measuring line on each grid node, and obtain the result by rotating the speed measuring line at equal intervals. The grid node is a series of tachometer lines with the center of the circle and within the range of [0,2π]. This series of tachometer lines is recorded as the rotation tachometer line of the grid node. According to the texture changes of the rotation tachometer line of each grid node, various tachometer lines are synthesized. Several spatio-temporal images of the grid node, calculate the autocorrelation coefficient of each spatio-temporal image, select the spatio-temporal image with the largest autocorrelation coefficient, and obtain the preferred spatio-temporal image of each grid node; for each of the preferred spatio-temporal images, set the midpoint at The line segment at the center of the preferred space-time image, the length of the line segment is the shorter length of the side lengths of the preferred space-time image, and is obtained by rotating the line segment at equal intervals with the center of the preferred space-time image as the center of the circle. And for a series of rotating line segments in the range of [0,2π], calculate the autocorrelation coefficient of each rotating line segment, add the autocorrelation coefficients of each rotating line segment, and combine the autocorrelation coefficient and the rotating line segment with the maximum value. The angle is taken as the river flow direction, and the tangent value of the river flow direction is taken as the river flow speed.
在一些实施例中,步骤S1中,所述待测断面位置应选择方便放置标志点的河岸位置且其河流表面具有稳定的流动状态。In some embodiments, in step S1, the location of the section to be measured should be selected as a river bank location that is convenient for placing landmark points and whose river surface has a stable flow state.
在一些实施例中,步骤S1中,采用无人机携带高清摄像机的方式获取野外河流待测断面位置处的表面流动视频,对所述表面流动视频逐帧提取图像,得到若干所述表面流动图像。In some embodiments, in step S1, a drone carrying a high-definition camera is used to obtain a surface flow video at the location of the section of the river to be measured in the wild, and images are extracted frame by frame from the surface flow video to obtain a number of the surface flow images. .
在一些实施例中,步骤S2中,对各原始图像进行的预处理包括依次对各原始图像进行图像校正和图像增强。In some embodiments, in step S2, the preprocessing performed on each original image includes performing image correction and image enhancement on each original image in sequence.
在一些实施例中,所述图像校正,包括以下步骤:In some embodiments, the image correction includes the following steps:
以所述原始图像序列中的第一张原始图像为基准,选取原始图像中岸边的若干非运动的特征区域;Using the first original image in the original image sequence as a benchmark, select several non-moving feature areas on the shore in the original image;
将所述原始图像序列中其余每张原始图像的特征区域内的灰度图像均分别与第一张原始图像进行互相关运算,得到每张原始图像中各特征区域的旋转和位移;Perform cross-correlation operations on the grayscale images in the feature areas of each of the remaining original images in the original image sequence and the first original image to obtain the rotation and displacement of each feature area in each original image;
根据每张原始图像中各特征区域的旋转和位移,得出各原始图像与第一张原始图像对应的仿射变换的矩阵;According to the rotation and displacement of each feature area in each original image, the affine transformation matrix corresponding to each original image and the first original image is obtained;
根据各原始图像与第一张原始图像对应的仿射变换矩阵对每张原始图像进行逆变换,使每张原始图像的对应点具有相同坐标,形成校正后的图像序列。Inverse transformation is performed on each original image according to the affine transformation matrix corresponding to each original image and the first original image, so that the corresponding points of each original image have the same coordinates, forming a corrected image sequence.
在一些实施例中,步骤S3中,相邻两测速线之间的夹角的取值范围为0.1°~10°。In some embodiments, in step S3, the angle between two adjacent speed measuring lines ranges from 0.1° to 10°.
在一些实施例中,步骤S3中,相邻两旋转线段之间的夹角的取值范围为0.1°~10°。In some embodiments, in step S3, the angle between two adjacent rotation line segments ranges from 0.1° to 10°.
在一些实施例中,步骤S3中,按照以下步骤计算所述时空图像和优选时空图像的自相关系数:In some embodiments, in step S3, the autocorrelation coefficient of the spatiotemporal image and the preferred spatiotemporal image is calculated according to the following steps:
对所述时空图像或优选时空图像进行边缘检测,以减小图中噪声;Perform edge detection on the spatio-temporal image or preferably the spatio-temporal image to reduce noise in the image;
按照下式计算时空图像或优选时空图像的特征梯度R(τx,τy):Calculate the characteristic gradient R(τ x ,τ y ) of the spatio-temporal image or preferred spatio-temporal image according to the following formula:
其中,f(x,y)是时空图像或优选时空图像中坐标为(x,y)的像素点的灰度分布,(τx,τy)是时空图像或优选时空图像中坐标为(x,y)的像素点的纹理位移参数;Among them, f (x, y) is the grayscale distribution of the pixel point with coordinates (x, y) in the space-time image or preferred space-time image, (τ x , τ y ) is the coordinate (x in the space-time image or preferred space-time image) , y) texture displacement parameters of pixels;
对所述时空图像或优选时空图像的特征梯度作归一化处理,得到所述时空图像或优选时空图像的自相关系数。The characteristic gradient of the spatio-temporal image or the preferred spatio-temporal image is normalized to obtain the autocorrelation coefficient of the spatio-temporal image or the preferred spatio-temporal image.
本公开第二方面提供的一种野外河流表面的二维时空图像测速装置,包括:The second aspect of the present disclosure provides a two-dimensional spatiotemporal image speed measurement device for the surface of a wild river, including:
图像采集模块,用于采集野外河流待测断面位置处的表面流动图像,以此构建原始图像序列;The image acquisition module is used to collect surface flow images at the location of the cross-section to be measured in the wild river to construct the original image sequence;
图像预处理模块,用于对所述原始图像序列中的各原始图像进行预处理,得到预处理后的图像序列;An image preprocessing module, used to preprocess each original image in the original image sequence to obtain a preprocessed image sequence;
流速和流向计算模块,用于针对所述预处理后的图像序列中的各图像,首先对图像进行网格划分,然后在各网格节点上设置一条水平的测速线,通过等间距旋转该测速线的方式得到以网格节点为圆心且在[0,2π]范围内的一系列测速线,将该一系列测速线记为网格节点的旋转测速线,根据各网格节点的旋转测速线的纹理变化合成各网格节点的若干时空图像,计算各时空图像的自相关系数,选择自相关系数最大的时空图像,得到每个网格节点的优选时空图像;针对每张所述优选时空图像,设置中点位于所述优选时空图像的中心的线段,所述线段的长度为所述优选时空图像的边长中较短的长度,通过等间距旋转所述线段的方式得到以所述优选时空图像的中心为圆心且在[0,2π]范围内的一系列旋转线段,计算各条旋转线段的自相关系数,将各条旋转线段的自相关系数进行加和,将自相关系数和最大值所在的旋转线段的角度作为河流流速方向,将所述河流流速方向的正切值作为河流流速大小。The flow velocity and flow direction calculation module is used to first grid-divide the image for each image in the pre-processed image sequence, and then set a horizontal speed measurement line on each grid node, and rotate the speed measurement line at equal intervals. In the form of lines, a series of speed measurement lines with the grid node as the center and within the range of [0,2π] are obtained. This series of speed measurement lines are recorded as the rotation speed measurement lines of the grid node. According to the rotation speed measurement line of each grid node Texture changes synthesize several spatio-temporal images of each grid node, calculate the autocorrelation coefficient of each spatio-temporal image, select the spatio-temporal image with the largest autocorrelation coefficient, and obtain the preferred spatio-temporal image of each grid node; for each of the preferred spatio-temporal images , set a line segment whose midpoint is located at the center of the preferred space-time image. The length of the line segment is the shorter of the side lengths of the preferred space-time image. The preferred space-time is obtained by rotating the line segment at equal intervals. The center of the image is a series of rotating line segments within the range of [0,2π]. Calculate the autocorrelation coefficient of each rotating line segment. Add the autocorrelation coefficients of each rotating line segment. Add the autocorrelation coefficient and the maximum value. The angle of the rotating line segment is used as the river flow direction, and the tangent value of the river flow direction is used as the river flow speed.
本公开第三方面提供的一种计算机可读存储介质,所述计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机根据本公开第一方面任一实施例所述的野外河流表面的二维时空图像测速方法。A third aspect of the present disclosure provides a computer-readable storage medium. The computer-readable storage medium stores computer instructions. The computer instructions are used to cause the computer to operate in the field according to any embodiment of the first aspect of the present disclosure. Two-dimensional spatiotemporal image velocimetry method of river surface.
与现有技术相比,本公开具有以下特点:Compared with the prior art, the present disclosure has the following characteristics:
本公开实施例使用相关系数比较法识别图像纹理最为清晰的测速线角度,实现对野外河流表面流速方向和大小的同时测量,具体地,通过构建旋转测速线/旋转线段,当测速线/旋转线段与河流流动方向一致时,形成的时空图像中的纹理清晰且自相关系数最大,根据相关系数最大值原理确定测速线方向代表流动方向,同时获得流速大小,从而得到野外河流表面的二维流速场。The embodiment of the present disclosure uses the correlation coefficient comparison method to identify the angle of the speed measuring line with the clearest image texture, and realizes the simultaneous measurement of the direction and size of the flow speed on the surface of the wild river. Specifically, by constructing the rotating speed measuring line/rotating line segment, when the speed measuring line/rotating line segment When it is consistent with the flow direction of the river, the texture in the spatio-temporal image formed is clear and the autocorrelation coefficient is the largest. According to the principle of maximum correlation coefficient, the direction of the velocity line is determined to represent the flow direction, and the flow velocity is obtained at the same time, thereby obtaining the two-dimensional flow velocity field of the wild river surface. .
与现有技术相比,本公开具有以下有益效果:Compared with the prior art, the present disclosure has the following beneficial effects:
1、本公开实施例利用河流表面波纹产生的大尺度亮暗变化代替传统示踪粒子用于计算河流表面流速,解决了在洪水以及溃坝等极端条件下不能人为布撒示踪粒子、示踪粒子跟随性差等问题。1. The embodiment of the present disclosure uses large-scale light and dark changes produced by river surface ripples to replace traditional tracer particles for calculating river surface flow velocity, solving the problem that tracer particles and tracers cannot be artificially dispersed under extreme conditions such as floods and dam breaks. Problems such as poor particle followability.
2、本公开实施例无需预先制定河流表面的流动方向,可以很好地解决流动方向变化较大的野外河流表面的流速测量问题。2. The embodiment of the present disclosure does not need to predetermine the flow direction of the river surface, and can well solve the problem of flow velocity measurement on the wild river surface where the flow direction changes greatly.
3、本公开实施例配合无人机搭载的高清摄像头,可实现对野外河流表面流速场的远程测量。3. The embodiment of the present disclosure can be used with a high-definition camera mounted on a drone to achieve remote measurement of the surface flow velocity field of a river in the wild.
附图说明Description of the drawings
图1是本公开第一方面实施例提供的野外河流表面的二维时空图像测速方法的流程图。Figure 1 is a flow chart of a two-dimensional spatiotemporal image velocity measurement method of a wild river surface provided by the first embodiment of the present disclosure.
图2是本公开第一方面实施例提供的二维时空图像测速方法生成的旋转测速线的示意图。FIG. 2 is a schematic diagram of a rotation speed measurement line generated by the two-dimensional spatiotemporal image speed measurement method provided by the first embodiment of the present disclosure.
图3是本公开第一方面实施例提供的二维时空图像测速方法合成的不同角度的时空图像,其中(a)~(f)对应的角度分别为12.5°、45°、50°、102.5°、120°和150°。Figure 3 is a space-time image at different angles synthesized by the two-dimensional space-time image velocity measurement method provided by the first embodiment of the present disclosure, in which the angles corresponding to (a) to (f) are 12.5°, 45°, 50°, and 102.5° respectively. , 120° and 150°.
图4是本公开第一方面实施例提供的二维时空图像测速方法合成的某个角度的时空图像。Figure 4 is a spatio-temporal image at a certain angle synthesized by the two-dimensional spatio-temporal image velocity measurement method provided by the first embodiment of the present disclosure.
图5是本公开第三方面实施例提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by a third embodiment of the present disclosure.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合实施例,对本申请进行进一步详细描述。应当理解,此处所描述的具体实施例仅用于解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail below in conjunction with embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
相反,本申请涵盖任何由权利要求定义的在本申请精髓和范围上做的替代、修改、等效方法以及方案。进一步,为了使公众对本申请有更好的了解,在下文对本申请的细节描述中,详尽描述了一些特定的细节部分。对本领域技术人员来说没有这些细节部分的描述也可以完全理解本申请。On the contrary, this application covers any alternatives, modifications, equivalent methods and solutions that fall within the spirit and scope of this application as defined by the claims. Furthermore, in order to enable the public to have a better understanding of the present application, some specific details are described in detail in the detailed description of the present application below. A person skilled in the art may fully understand the present application without these detailed descriptions.
参见图1,本公开第一方面实施例提供的一种野外河流表面的二维时空图像测速方法,包括以下步骤:Referring to Figure 1, the first embodiment of the present disclosure provides a two-dimensional spatiotemporal image speed measurement method of a wild river surface, including the following steps:
步骤S1、采集野外河流待测断面位置处的表面流动图像,以此构建原始图像序列;Step S1: Collect surface flow images at the cross-section location of the wild river to be measured to construct an original image sequence;
步骤S2、对构建的原始图像序列中的各原始图像进行预处理,得到预处理后的图像序列;Step S2: Preprocess each original image in the constructed original image sequence to obtain a preprocessed image sequence;
步骤S3、针对预处理后的图像序列中的各图像,首先对图像进行网格划分,然后在各网格节点上设置一条水平的测速线,通过等间距旋转该测速线的方式得到以网格节点为圆心且在[0,2π]范围内的一系列测速线,将该一系列测速线记为网格节点的旋转测速线,根据各网格节点的旋转测速线的纹理变化合成各网格节点的若干时空图像(每个网格节点会生成对应的若干时空图像),计算各时空图像的自相关系数,选择自相关系数最大的时空图像,得到每个网格节点的优选时空图像(每个网格节点对应一张优选时空图像);针对每个网格节点的优选时空图像,设置中点位于优选时空图像的中心的线段,该线段的长度为优选时空图像的边长中较短的长度,通过等间距旋转该线段的方式得到以优选时空图像的中心为圆心且在[0,2π]范围内的一系列旋转线段,计算各条旋转线段的自相关系数,将各条旋转线段的自相关系数进行加和,将自相关系数和最大值所在的旋转线段的角度作为优选时空图像对应的河流流速方向,将河流流速方向的正切值作为优选时空图像对应的河流流速大小。Step S3: For each image in the preprocessed image sequence, first divide the image into a grid, then set a horizontal speed measuring line on each grid node, and obtain the grid by rotating the speed measuring line at equal intervals. A series of tachometer lines whose nodes are the center of the circle and within the range of [0,2π] are recorded as the rotation tachometer lines of the grid nodes, and each grid is synthesized according to the texture changes of the rotation tachometer lines of each grid node. Several spatio-temporal images of the node (each grid node will generate several corresponding spatio-temporal images), calculate the autocorrelation coefficient of each spatio-temporal image, select the spatio-temporal image with the largest autocorrelation coefficient, and obtain the optimal spatio-temporal image of each grid node (each grid nodes correspond to a preferred spatio-temporal image); for the preferred spatio-temporal image of each grid node, set a line segment with the midpoint located at the center of the preferred spatio-temporal image, and the length of this line segment is the shorter of the side lengths of the preferred spatio-temporal image. length, by rotating the line segments at equal intervals, a series of rotating line segments with the center of the optimal space-time image as the circle center and within the range of [0, 2π] are obtained, the autocorrelation coefficient of each rotating line segment is calculated, and the The autocorrelation coefficients are summed, and the angle of the rotation line segment where the autocorrelation coefficient and the maximum value is located is used as the river flow velocity direction corresponding to the optimal spatiotemporal image, and the tangent value of the river flow velocity direction is used as the river flow velocity corresponding to the optimal spatiotemporal image.
在一些实施例中,步骤S1中,采用无人机携带高清摄像机的方式采集野外河流的表面流动图像,同时无人机能够通过自带的卫星定位模块定位和无线收发模块实现无线通信。In some embodiments, in step S1, a drone carrying a high-definition camera is used to collect surface flow images of a wild river. At the same time, the drone can achieve wireless communication through its own satellite positioning module positioning and wireless transceiver module.
进一步地,采集野外河流表面流动图像时首先选择野外河流的待测断面位置,断面的选择要遵循具有方便放置标志点的河岸位置以及具有稳定流动状态河流表面的要求,在两岸布设反光胶带精确断面的位置,利用无人机采集断面位置的河流流动视频,视频要求稳定且包含足够多的有效信息。随后将采集的河流流动视频逐帧提取图像,得到若干野外河流表面流动图像,以此构建原始图像序列。Furthermore, when collecting field river surface flow images, first select the location of the cross section of the wild river to be measured. The selection of the cross section should follow the requirements of the river bank position with convenient placement of landmark points and the river surface with stable flow state. Reflective tape should be laid on both sides of the bank to accurately cross the section. location, use drones to collect river flow videos at cross-section locations. The videos must be stable and contain enough effective information. Then, the collected river flow videos are extracted frame by frame to obtain several wild river surface flow images to construct the original image sequence.
在一些实施例中,步骤S2中,由于无人机拍摄视频时不可避免存在镜头抖动、噪声干扰等问题,采集的原始视频图像不能很好的满足计算要求,不能直接使用,因此,需要对构建的原始图像序列依次进行图像校正与图像增强以消除采集过程中的干扰,使得后续流速的计算更加的准确。In some embodiments, in step S2, due to the inevitable problems such as lens shake and noise interference when shooting videos with drones, the original video images collected cannot meet the computing requirements well and cannot be used directly. Therefore, it is necessary to construct The original image sequence is sequentially subjected to image correction and image enhancement to eliminate interference during the acquisition process, making subsequent flow velocity calculations more accurate.
进一步地,图像校正的目的是让世界坐标中的标志点对应到图像中的坐标点在拍摄过程中保持不变,从而可以让处理后的图像序列中的河流保持固定位置,消除图像抖动带来的误差,更加准确的测出河流的流速。具体步骤如下:Furthermore, the purpose of image correction is to make the landmark points in the world coordinates correspond to the coordinate points in the image and remain unchanged during the shooting process, so that the river in the processed image sequence can maintain a fixed position and eliminate image jitter. Error, the flow rate of the river can be measured more accurately. Specific steps are as follows:
步骤S21、以无人机采集的第一张原始图像为基准,人为选取岸边一些非运动的特征区域,特征区域的选取原则为有鲜明特征并在整个拍摄过程中的位置、形状和颜色等保持不变;Step S21: Based on the first original image collected by the drone, artificially select some non-moving feature areas on the shore. The selection principle of the feature areas is the position, shape, color, etc. that have distinctive characteristics and are present throughout the shooting process. constant;
步骤S22、将原始图像序列中除第一张原始图像以外的其余每张原始图像的特征区域内的灰度图像均分别与第一张原始图像进行互相关运算,得到每张原始图像中各特征区域的旋转和位移;Step S22: Perform cross-correlation operations on the grayscale images in the feature areas of each original image in the original image sequence except the first original image and the first original image to obtain the features of each original image. Rotation and displacement of areas;
步骤S23、根据每张原始图像中各特征区域的旋转和位移,得出各原始图像与第一张原始图像对应的仿射变换的矩阵;Step S23: Based on the rotation and displacement of each feature area in each original image, obtain the affine transformation matrix corresponding to each original image and the first original image;
步骤S24、根据各原始图像与第一张原始图像对应的仿射变换矩阵对每张原始图像进行逆变换,使每张原始图像的对应点具有相同坐标,形成稳定的图像序列。Step S24: Perform inverse transformation on each original image according to the affine transformation matrix corresponding to each original image and the first original image, so that the corresponding points of each original image have the same coordinates to form a stable image sequence.
进一步地,图像增强是将图像中的一些特征比如图像的轮廓和边缘等进行强调,增强感兴趣的区域,更方便人眼识别和计算机处理。本公开实施例采用直方图均衡化方法对经过图像校正后的各图像强化图像表面纹理的变化,使其更加清晰方便识别。在完成图像矫正和图像增强的处理后,便可进行流速大小和方向的计算。Furthermore, image enhancement is to emphasize some features in the image, such as the contours and edges of the image, to enhance the area of interest, making it more convenient for human eye recognition and computer processing. The embodiment of the present disclosure uses a histogram equalization method to enhance the changes in image surface texture of each image after image correction, making it clearer and easier to identify. After completing the processing of image correction and image enhancement, the flow velocity and direction can be calculated.
在一些实施例中,步骤S3需对处理后的图像序列中的各图像按照相同的操作计算流速大小和方向,现以其中任意一张图像为例进行说明,具体步骤如下:In some embodiments, step S3 requires the same operation to calculate the flow velocity and direction for each image in the processed image sequence. Now, any one of the images will be used as an example for explanation. The specific steps are as follows:
步骤S31、对处理后的图像序列中的任一图像进行网格划分,网格的大小根据所需流速矢量的数量确定,需要的流速矢量越多则网格划分得越密,在各个网格节点上设置一条水平的测速线,该测速线的长度由合成时空图像的连续图像数量决定;作为本申请的一个实施例,水平测速线的长度取为150个像素对应的长度,即由150张图像中同一位置的测速线合成得到;Step S31: Grid any image in the processed image sequence. The size of the grid is determined according to the number of required flow velocity vectors. The more flow velocity vectors required, the denser the grid will be. In each grid A horizontal speed measuring line is set up on the node, and the length of the speed measuring line is determined by the number of consecutive images of the synthesized spatiotemporal image; as an embodiment of this application, the length of the horizontal speed measuring line is taken to be the length corresponding to 150 pixels, that is, it is composed of 150 The speed measuring lines at the same position in the image are synthesized;
步骤S32、以网格节点为圆心、以α为步长对设置的水平测速线在[0,2π]范围内进行旋转,从而在该网格节点上可以形成n=1+2π/α条测速线,α优选为0.1°~10°,2π应能被α整除,得到通过该网格节点的各个角度的测速线,保证了各条测速线上的包含同样多的信息,将形成的一系列测速线记为网格节点的旋转测速线,参见图2;在本申请的一个实施例中,取α=1°,从而生成n=361条测速线;Step S32: Rotate the set horizontal speed measurement line within the range of [0, 2π] with the grid node as the center and α as the step size, so that n=1+2π/α speed measurement lines can be formed on the grid node. line, α is preferably 0.1° to 10°, 2π should be divisible by α, and speed measurement lines at various angles passing through the grid node are obtained, ensuring that each speed measurement line contains the same amount of information, which will form a series of The speed measuring line is recorded as the rotating speed measuring line of the grid node, see Figure 2; in one embodiment of the present application, α=1° is taken, thereby generating n=361 speed measuring lines;
步骤S33、针对每个网格节点的每条测速线,根据图像序列中各条测速线的纹理变化合成各网格节点的时空图像,参见图3中(a)~(f),示意出了不同角度的时空图像,且合成的时空图像均为正方形,会发现部分角度的时空图像有清晰的纹理,如图3中的(a),而部分角度的时空图像纹理杂乱无章,没有形成相应的清晰的直线,如图3中的(d);Step S33: For each speed measuring line of each grid node, the spatio-temporal image of each grid node is synthesized according to the texture changes of each speed measuring line in the image sequence. See (a) to (f) in Figure 3, which illustrates Spatio-temporal images from different angles, and the synthesized spatio-temporal images are all square. It will be found that the spatio-temporal images at some angles have clear textures, as shown in (a) in Figure 3, while the textures of the spatio-temporal images at some angles are messy and do not form corresponding clarity. The straight line is as shown in (d) in Figure 3;
步骤S34、针对每个网格节点,分别确定其所对应的优选时空图像,步骤如下:Step S34: For each grid node, determine its corresponding preferred spatio-temporal image. The steps are as follows:
为了判断流速大小以及纹理的清晰程度,先对各张时空图像进行边缘检测,使得图中的噪声明显减少,进而使得纹理更加突出,随后通过下式得到各张时空图像的特征梯度R(τx,τy):In order to judge the flow velocity and the clarity of the texture, edge detection is first performed on each spatio-temporal image, which significantly reduces the noise in the image and makes the texture more prominent. Then the characteristic gradient R(τ x ,τ y ):
其中,f(x,y)是时空图像中坐标为(x,y)的像素点的灰度分布,(τx,τy)代表着时空图像中坐标为(x,y)的像素点的纹理位移参数;Among them, f (x, y) is the grayscale distribution of the pixel point with coordinates (x, y) in the space-time image, (τ x , τ y ) represents the grayscale distribution of the pixel point with coordinates (x, y) in the space-time image. Texture displacement parameters;
然后,对得到的各时空图像的特征梯度作归一化处理,得到每张时空图像的自相关系数;Then, normalize the characteristic gradients of each spatio-temporal image obtained to obtain the autocorrelation coefficient of each spatio-temporal image;
最后,选择自相关系数最大的时空图像作为相应的网格节点的优选时空图像;Finally, the spatio-temporal image with the largest autocorrelation coefficient is selected as the preferred spatio-temporal image of the corresponding grid node;
步骤S35、针对每张优选时空图像,设置以优选时空图像的边长中较短的长度为线段长度,以优选时空图像的中心为圆心,使线段的中点通过圆心,并以β为步长的旋转线段,β优选为0.1°~10°,2π应能被β整除,本实施例中β=0.1°,得到各个角度下的旋转线段,计算各条旋转线段的自相关系数(具体计算步骤与测速线的自相关系数的计算步骤相同,此处不再赘述),将各条旋转线段的自相关系数进行加和,得到各条旋转直线的相关系数和,比较各时空图像的自相关系数和的最大值,其中自相关系数和最大值所在的旋转线段的角度即为优选时空图像对应的河流流速方向,角度正切值为优选时空图像对应的河流流速大小。Step S35: For each optimal spatio-temporal image, set the shorter length of the side lengths of the optimal spatio-temporal image as the line segment length, take the center of the optimal spatio-temporal image as the center of the circle, make the midpoint of the line segment pass through the center of the circle, and use β as the step length. of rotation line segments, β is preferably 0.1° to 10°, 2π should be divisible by β, in this embodiment β = 0.1°, obtain rotation line segments at various angles, and calculate the autocorrelation coefficient of each rotation line segment (specific calculation steps The steps for calculating the autocorrelation coefficient of the speed line are the same and will not be repeated here). Add the autocorrelation coefficients of each rotating line segment to obtain the sum of the correlation coefficients of each rotating straight line. Compare the autocorrelation coefficients of each space-time image. The maximum value of the sum, where the angle of the rotation line segment where the maximum value of the autocorrelation coefficient and the maximum value is located is the river flow velocity direction corresponding to the optimal spatio-temporal image, and the tangent value of the angle is the river flow velocity corresponding to the optimal spatio-temporal image.
参见图4,为本实施例某角度合成后的优选时空图像,其中图像的纵轴代表测速线的上的纹理的位移X,横轴代表着采集测速线的时刻t,河流的明暗变化在时空图像中形成了纹理,这些纹理之间大致平行,代表了该处河流表面的各个亮斑随时间的位移,所以亮斑生成的各条直线与t轴的夹角θ的正切值的平均即为这段时间内该测速线处的河流表面平均流速的大小。而野外河流大多是弯曲的,通过旋转河流表面测速线,计算各个角度下时空图像的自相关系数,求解自相关系数和最大的角度,在未知河流流向的情况下,得到主流方向,同时相应的优选时空图像的斜率便是河流表面流速的大小。Refer to Figure 4, which is a preferred spatio-temporal image synthesized from a certain angle in this embodiment. The vertical axis of the image represents the displacement Textures are formed in the image, and these textures are roughly parallel to each other, representing the displacement of each bright spot on the surface of the river over time. Therefore, the average of the tangent value of the angle θ between the straight lines generated by the bright spot and the t-axis is The average velocity of the river surface at the velocity line during this period. Most rivers in the wild are curved. By rotating the river surface velocity line, we can calculate the autocorrelation coefficient of the space-time image at various angles, solve the autocorrelation coefficient and the maximum angle, and obtain the mainstream direction when the river flow direction is unknown. At the same time, the corresponding The slope of the preferred spatiotemporal image is the surface flow velocity of the river.
因此,本实施例利用河流表面波纹产生的大尺度亮暗变化代替传统示踪粒子用于计算河流表面流速,解决了在洪水以及溃坝等极端条件下不能人为布撒示踪粒子、示踪粒子跟随性差等问题。此外,无需事先知道河流表面的流动方向,可以很好地解决流动方向变化较大的野外河流表面流速测量问题。Therefore, this embodiment uses the large-scale light and dark changes produced by the ripples on the river surface to replace traditional tracer particles for calculating the river surface flow velocity, solving the problem that tracer particles cannot be artificially dispersed under extreme conditions such as floods and dam breaks. Problems such as poor followability. In addition, there is no need to know the flow direction of the river surface in advance, and it can well solve the problem of flow velocity measurement on field river surfaces where the flow direction changes greatly.
本公开第二方面实施例提供的一种野外河流表面的二维时空图像测速装置,包括:The embodiment of the second aspect of the present disclosure provides a two-dimensional spatiotemporal image speed measurement device for the surface of a wild river, including:
图像采集模块,用于采集待测断面位置处的野外河流表面流动图像,以此构建原始图像序列;The image acquisition module is used to collect field river surface flow images at the location of the section to be measured to construct the original image sequence;
图像预处理模块,用于对构建的原始图像序列中的各原始图像进行预处理,得到预处理后的图像序列;The image preprocessing module is used to preprocess each original image in the constructed original image sequence to obtain a preprocessed image sequence;
流速和流向计算模块,用于针对预处理后的图像序列中的各图像,首先对图像进行网格划分,然后在各网格节点上设置一条水平的测速线,通过等间距旋转该测速线的方式得到以网格节点为圆心且在[0,2π]范围内的一系列测速线,将该一系列测速线记为网格节点的旋转测速线,根据各网格节点的旋转测速线的纹理变化合成各网格节点的若干时空图像,计算各时空图像的自相关系数,选择自相关系数最大的时空图像,得到每个网格节点的优选时空图像;针对每张所述优选时空图像,设置中点位于优选时空图像的中心的线段,该线段的长度为优选时空图像的边长中较短的长度,通过等间距旋转该线段的方式得到以优选时空图像的中心为圆心且在[0,2π]范围内的一系列旋转线段,计算各条旋转线段的自相关系数,将各条旋转线段的自相关系数进行加和,将自相关系数和最大值所在的旋转线段的角度作为河流流速方向,将河流流速方向的正切值作为河流流速大小。The flow velocity and flow direction calculation module is used to first grid-divide the image for each image in the pre-processed image sequence, and then set a horizontal velocity line on each grid node, and rotate the velocity line at equal intervals. The method obtains a series of tachometer lines with the grid node as the center and within the range of [0,2π]. This series of tachometer lines is recorded as the rotation tachometer line of the grid node. According to the texture of the rotation tachometer line of each grid node Change and synthesize several spatio-temporal images of each grid node, calculate the autocorrelation coefficient of each spatio-temporal image, select the spatio-temporal image with the largest autocorrelation coefficient, and obtain the preferred spatio-temporal image of each grid node; for each of the preferred spatio-temporal images, set A line segment whose midpoint is located at the center of the preferred space-time image. The length of this line segment is the shorter of the side lengths of the preferred space-time image. By rotating the line segment at equal intervals, a circle with the center of the preferred space-time image as the center and in [0, 2π] range, calculate the autocorrelation coefficient of each rotating line segment, add the autocorrelation coefficient of each rotating line segment, and use the angle of the autocorrelation coefficient and the rotating line segment with the maximum value as the direction of river flow velocity. , taking the tangent value of the river flow direction as the river flow velocity.
需要说明的是,前述对野外河流表面的二维时空图像测速方法的实施例解释说明也适用于本实施例的野外河流表面的二维时空图像测速装置,在此不再赘述。It should be noted that the above-mentioned explanation of the embodiment of the two-dimensional spatio-temporal image velocity measurement method of the wild river surface is also applicable to the two-dimensional spatio-temporal image velocity measurement device of the wild river surface in this embodiment, and will not be described again here.
为了实现上述实施例,本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行,用于执行上述实施例的野外河流表面的二维时空图像测速方法。In order to implement the above embodiments, embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored. The program is executed by the processor and is used to perform the two-dimensional spatiotemporal image velocity measurement of the wild river surface in the above embodiments. method.
下面参考图5,其示出了适于用来实现本公开实施例的电子设备的结构示意图。其中,需要说明的是,本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机、服务器等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 5 , a schematic structural diagram of an electronic device suitable for implementing embodiments of the present disclosure is shown. It should be noted that the electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet PCs), PMPs (Portable Multimedia Players). devices), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, servers, etc. The electronic device shown in FIG. 5 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
如图5所示,电子设备可以包括处理装置(例如中央处理器、图形处理器等)101,其可以根据存储在只读存储器(ROM)102中的程序或者从存储装置108加载到随机访问存储器(RAM)103中的程序而执行各种适当的动作和处理。在RAM 103中,还存储有电子设备操作所需的各种程序和数据。处理装置101、ROM 102以及RAM 103通过总线104彼此相连。输入/输出(I/O)接口105也连接至总线104。As shown in FIG. 5 , the electronic device may include a processing device (eg, central processing unit, graphics processor, etc.) 101 that may be loaded into a random access memory according to a program stored in a read-only memory (ROM) 102 or from a storage device 108 (RAM) 103 to execute various appropriate actions and processes. In the RAM 103, various programs and data required for the operation of the electronic device are also stored. The processing device 101, the ROM 102 and the RAM 103 are connected to each other via a bus 104. An input/output (I/O) interface 105 is also connected to bus 104 .
通常,以下装置可以连接至I/O接口105:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风等的输入装置106;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置107;包括例如磁带、硬盘等的存储装置108;以及通信装置109。通信装置109可以允许电子设备与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices may be connected to the I/O interface 105: input devices 106 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, etc.; output devices 107 including, for example, a liquid crystal display (LCD), speakers, vibrators, etc. ; Storage device 108 including, for example, magnetic tape, hard disk, etc.; and communication device 109. The communication device 109 may allow the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 5 illustrates an electronic device having various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图中所示方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置109从网络上被下载和安装,或者从存储装置108被安装,或者从ROM 102被安装。在该计算机程序被处理装置101执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, this embodiment includes a computer program product including a computer program carried on a computer-readable medium, the computer program including program code for performing the method shown in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via the communication device 109, or from the storage device 108, or from the ROM 102. When the computer program is executed by the processing device 101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmed read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述野外河流表面的二维时空图像测速方法。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device performs the two-dimensional spatiotemporal image velocity measurement method of the wild river surface.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++、python,还包括常规的过程式程序设计语言—诸如“C-”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, python, and A conventional procedural programming language—such as the "C-" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In situations involving remote computers, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "an example," "specific examples," or "some examples" or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of this application, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments, or portions of code that include one or more executable instructions for implementing the specified logical functions or steps of the process. , and the scope of the preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in a substantially simultaneous manner or in the reverse order, depending on the functionality involved, which shall It should be understood by those skilled in the technical field to which the embodiments of this application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered a sequenced list of executable instructions for implementing the logical functions, and may be embodied in any computer-readable medium, For use by, or in combination with, instruction execution systems, devices or devices (such as computer-based systems, systems including processors or other systems that can fetch instructions from and execute instructions from the instruction execution system, device or device) or equipment. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wires (electronic device), portable computer disk cartridges (magnetic device), random access memory (RAM), Read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as the program may be printed, for example, by optical scanning of the paper or other medium, followed by editing, interpretation, or in other suitable manner if necessary Processing to obtain a program electronically and then store it in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present application can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following technologies known in the art: a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤,可以通过程序来指令相关的硬件完成,所开发的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps involved in implementing the methods of the above embodiments can be completed by instructing the relevant hardware through a program. The developed program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, one of the steps of the method embodiment or a combination thereof is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in various embodiments of the present application can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules. Integrated modules can also be stored in a computer-readable storage medium if they are implemented in the form of software function modules and sold or used as independent products.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage media mentioned above can be read-only memory, magnetic disks or optical disks, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above-mentioned embodiments are illustrative and cannot be understood as limitations of the present application. Those of ordinary skill in the art can make modifications to the above-mentioned embodiments within the scope of the present application. The embodiments are subject to changes, modifications, substitutions and variations.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311290168.6A CN117452021B (en) | 2023-10-08 | 2023-10-08 | Method, device and storage medium for measuring speed of two-dimensional space-time image of river surface in the wild |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311290168.6A CN117452021B (en) | 2023-10-08 | 2023-10-08 | Method, device and storage medium for measuring speed of two-dimensional space-time image of river surface in the wild |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117452021A true CN117452021A (en) | 2024-01-26 |
| CN117452021B CN117452021B (en) | 2025-04-11 |
Family
ID=89578946
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311290168.6A Active CN117452021B (en) | 2023-10-08 | 2023-10-08 | Method, device and storage medium for measuring speed of two-dimensional space-time image of river surface in the wild |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117452021B (en) |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1038638A (en) * | 1996-07-18 | 1998-02-13 | Agency Of Ind Science & Technol | Method for measuring flow rate of fluid in moving tube |
| CN102866260A (en) * | 2012-09-18 | 2013-01-09 | 河海大学 | Non-contact river surface flow field imaging measuring method |
| US20150185246A1 (en) * | 2011-12-23 | 2015-07-02 | Optical Air Data Systems, Llc | Laser Doppler Velocimeter With Intelligent Optical Device |
| CN107525945A (en) * | 2017-08-23 | 2017-12-29 | 南京理工大学 | 3D 3C particle image speed-measuring systems and method based on integration imaging technology |
| CN113804916A (en) * | 2021-09-17 | 2021-12-17 | 河海大学 | A frequency domain spatiotemporal image velocimetry method based on prior information of maximum flow velocity |
| CN115471777A (en) * | 2022-10-09 | 2022-12-13 | 中国建筑第六工程局有限公司 | Refined water flow velocity field acquisition method and system based on video identification |
| CN115761563A (en) * | 2022-09-27 | 2023-03-07 | 武汉大水云科技有限公司 | A Calculation Method and System for River Surface Velocity Based on Optical Flow Calculation |
| CN115830514A (en) * | 2023-01-30 | 2023-03-21 | 武汉大水云科技有限公司 | Method and system for calculating surface flow velocity of whole river section of riverway with curve |
| CN116342656A (en) * | 2023-03-29 | 2023-06-27 | 华北电力大学 | A spatio-temporal image velocity measurement method and device based on adaptive edge detection |
| CN116679080A (en) * | 2023-05-30 | 2023-09-01 | 广州伏羲智能科技有限公司 | River surface flow velocity determining method and device and electronic equipment |
-
2023
- 2023-10-08 CN CN202311290168.6A patent/CN117452021B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1038638A (en) * | 1996-07-18 | 1998-02-13 | Agency Of Ind Science & Technol | Method for measuring flow rate of fluid in moving tube |
| US20150185246A1 (en) * | 2011-12-23 | 2015-07-02 | Optical Air Data Systems, Llc | Laser Doppler Velocimeter With Intelligent Optical Device |
| CN102866260A (en) * | 2012-09-18 | 2013-01-09 | 河海大学 | Non-contact river surface flow field imaging measuring method |
| CN107525945A (en) * | 2017-08-23 | 2017-12-29 | 南京理工大学 | 3D 3C particle image speed-measuring systems and method based on integration imaging technology |
| CN113804916A (en) * | 2021-09-17 | 2021-12-17 | 河海大学 | A frequency domain spatiotemporal image velocimetry method based on prior information of maximum flow velocity |
| CN115761563A (en) * | 2022-09-27 | 2023-03-07 | 武汉大水云科技有限公司 | A Calculation Method and System for River Surface Velocity Based on Optical Flow Calculation |
| CN115471777A (en) * | 2022-10-09 | 2022-12-13 | 中国建筑第六工程局有限公司 | Refined water flow velocity field acquisition method and system based on video identification |
| CN115830514A (en) * | 2023-01-30 | 2023-03-21 | 武汉大水云科技有限公司 | Method and system for calculating surface flow velocity of whole river section of riverway with curve |
| CN116342656A (en) * | 2023-03-29 | 2023-06-27 | 华北电力大学 | A spatio-temporal image velocity measurement method and device based on adaptive edge detection |
| CN116679080A (en) * | 2023-05-30 | 2023-09-01 | 广州伏羲智能科技有限公司 | River surface flow velocity determining method and device and electronic equipment |
Non-Patent Citations (1)
| Title |
|---|
| 曹列凯,钟强: "《基于图像测速的薄壁堰流表面流场测量方法》", 《水科学进展》, 31 December 2017 (2017-12-31) * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117452021B (en) | 2025-04-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11557083B2 (en) | Photography-based 3D modeling system and method, and automatic 3D modeling apparatus and method | |
| US9414048B2 (en) | Automatic 2D-to-stereoscopic video conversion | |
| US10304244B2 (en) | Motion capture and character synthesis | |
| US8831288B1 (en) | Digital processing method and system for determination of object occlusion in an image sequence | |
| US9367921B2 (en) | Determining object volume from mobile device images | |
| CN108898086A (en) | Method of video image processing and device, computer-readable medium and electronic equipment | |
| CN101464471B (en) | Real-time measurement system and post-processing method of solid model surface flow field | |
| WO2022237811A1 (en) | Image processing method and apparatus, and device | |
| CN112907557B (en) | Road detection method, device, computing equipment and storage medium | |
| US20110043522A1 (en) | Image-based lighting simulation for objects | |
| CN114937050B (en) | Green screen cutout method, device and electronic equipment | |
| CN111415300A (en) | Splicing method and system for panoramic image | |
| US20240212184A1 (en) | Intermediate view synthesis between wide-baseline panoramas | |
| US10475229B2 (en) | Information processing apparatus and information processing method | |
| RU2754641C2 (en) | Method and device for determining direction of rotation of target object, computer-readable media and electronic device | |
| US8872832B2 (en) | System and method for mesh stabilization of facial motion capture data | |
| US8781173B2 (en) | Computing high dynamic range photographs | |
| CN117452021A (en) | Two-dimensional space-time image velocity measurement method and device for field river surface and storage medium | |
| CN119471688B (en) | SAR shallow water depth inversion method and system based on local wave direction | |
| CA3102860C (en) | Photography-based 3d modeling system and method, and automatic 3d modeling apparatus and method | |
| CN114862903A (en) | Fluid motion characterization method, device and medium | |
| Zong et al. | Borehole Inner Surface Visualization System with Vibration Cancellation and Trajectory Smoothing Based on Optical Monocular Video Camera | |
| CN115937385A (en) | A rendering method, device, medium and equipment based on GPU inverse distance interpolation | |
| CN118155063B (en) | Multi-view three-dimensional target detection method, device, equipment and storage medium | |
| Du et al. | Cable vibration and girder displacement measurement via morphology recognition and feature matching methods in bridge structure |
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 |