CN112560267A - Method, device, equipment and storage medium for dividing slope unit - Google Patents
Method, device, equipment and storage medium for dividing slope unit Download PDFInfo
- Publication number
- CN112560267A CN112560267A CN202011496072.1A CN202011496072A CN112560267A CN 112560267 A CN112560267 A CN 112560267A CN 202011496072 A CN202011496072 A CN 202011496072A CN 112560267 A CN112560267 A CN 112560267A
- Authority
- CN
- China
- Prior art keywords
- slope
- area
- basin
- unit
- sub
- 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
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000000638 solvent extraction Methods 0.000 claims description 8
- 230000011218 segmentation Effects 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 abstract description 7
- 238000012216 screening Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a storage medium for dividing a slope unit. The method comprises the steps of obtaining at least one sub-basin of a region to be divided, determining the area of each sub-basin, comparing the area of the current sub-basin with a sub-basin area threshold, and if the area of the current sub-basin is smaller than the sub-basin area threshold, taking the current sub-basin as a candidate slope unit to determine the candidate slope unit according to the area of the sub-basin so as to divide the sub-basins uniformly, wherein compared with the prior art that the sub-basins are divided according to slopes, the dividing precision of the slope unit can be improved; and further determining a target slope unit of the region to be divided according to the area of the candidate slope unit, further screening the candidate slope unit based on the area, and taking the candidate slope unit with a moderate area as the target slope unit, so that the dividing precision of the slope unit is improved, the calculation amount is reduced, and the dividing precision of the slope unit can be improved for the region with a large range.
Description
Technical Field
The embodiment of the invention relates to the technical field of slope division, in particular to a method, a device, equipment and a storage medium for dividing a slope unit.
Background
Landslide is one of the most common disasters, has the characteristics of wide distribution range, high occurrence frequency, high multiplicity, regionality, severity and the like, and has important significance for evaluating the easiness of landslide due to the fact that landslide causes a large number of casualties and great environmental and infrastructure loss every year. Landslide information in the slope units of the susceptibility areas is an important basis for evaluating landslide.
In the prior art, when landslide information in a slope unit of an easy-to-send area is used for evaluating landslide, the slope unit of the easy-to-send area is divided according to the slope direction of a certain area. The dividing method is simple, is suitable for small-range areas, and is used for roughly dividing slope units of the slope information complex areas.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for dividing a slope unit, and achieves the effect of improving the dividing precision of the slope unit.
In a first aspect, an embodiment of the present invention provides a method for dividing a slope unit, where the method includes:
obtaining at least one sub-basin of a region to be divided;
determining the area of each sub-basin, and comparing the area of the current sub-basin with a sub-basin area threshold;
if the area of the current sub-basin is smaller than the sub-basin area threshold value, taking the current sub-basin as a candidate slope unit;
and determining a target slope unit of the area to be divided according to the candidate slope units.
In a second aspect, an embodiment of the present invention further provides a device for dividing a slope unit, where the device includes:
the sub-basin acquisition module is used for acquiring at least one sub-basin of the region to be divided;
the comparison module is used for determining the area of each sub-basin and comparing the area of the current sub-basin with a sub-basin area threshold;
a candidate slope unit determining module, configured to, if the area of the current sub-basin is smaller than the sub-basin area threshold, take the current sub-basin as a candidate slope unit;
and the target slope unit determining module is used for determining the target slope unit of the area to be divided according to the candidate slope units.
In a third aspect, an embodiment of the present invention further provides a device for dividing a slope unit, where the device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the ramp unit partitioning method according to any one of the first aspect.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for partitioning a ramp unit according to any one of the first aspect.
According to the technical scheme of the embodiment of the invention, at least one sub-basin of the area to be divided is obtained, the area of each sub-basin is determined, the area of the current sub-basin is compared with the area threshold of the sub-basin, if the area of the current sub-basin is smaller than the area threshold of the sub-basin, the current sub-basin is taken as a candidate slope unit, the candidate slope unit can be determined according to the area of the sub-basin so as to perform uniform division on the sub-basins, and compared with the prior art that the division precision of the slope unit can be improved according to a slope division mode; and further determining a target slope unit of the region to be divided according to the area of the candidate slope unit, further screening the candidate slope unit based on the area, and taking the candidate slope unit with a moderate area as the target slope unit, so that the dividing precision of the slope unit is improved, the calculation amount is reduced, and the dividing precision of the slope unit can be improved for the region with a large range.
Drawings
Fig. 1 is a flowchart of a method for dividing a slope unit according to a first embodiment of the present invention;
fig. 2 is a flowchart of a ramp unit dividing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a dividing apparatus of a slope unit in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a slope unit dividing apparatus in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a ramp unit dividing method according to an embodiment of the present invention, where the embodiment is applicable to a case of performing ramp unit division, and the method may be executed by a ramp unit dividing device, as shown in fig. 1, and the method includes the following steps:
s110, obtaining at least one sub-basin of the region to be divided.
The area to be divided is usually an area where landslide occurs, and may also be any one designated area, and the area to be divided is divided into grids in advance. The method for determining the sub-watershed comprises the following steps: the acquiring of at least one sub-basin of the region to be divided comprises: acquiring elevation data of each grid of an area to be divided; determining gray value distribution characteristics of pixel points of each grid in the area to be divided according to the elevation data; and performing watershed segmentation on the region to be divided based on the gray value distribution characteristics to obtain at least one sub watershed of the region to be divided.
The elevation data refers to data represented by a digital elevation model, which is a mathematical model approximately simulating the elevation information of a terrain surface, and contains a large amount of hydrological elements and terrain and landform information, such as slope, sloping direction and slope change rate digitalized information. Specifically, when the region to be divided is divided into at least one sub-basin, reading pixel points of each grid of the region to be divided, determining gray values of the pixel points of each grid and determining gray value distribution characteristics, connecting a plurality of gray value similar grids according to the gray value distribution characteristics to form a closed region, and taking each closed region as the sub-basin of the region to be divided.
And S120, determining the area of each sub-basin, and comparing the area of the current sub-basin with the sub-basin area threshold.
Alternatively, the area of each sub-domain may be determined according to the number of grids in each sub-domain and the size of each grid. The sub-watershed area threshold may be a predetermined fixed value or may be a value gradually decreasing based on a specific moving step.
And S130, if the area of the current sub-basin is smaller than the sub-basin area threshold value, taking the current sub-basin as a candidate slope unit.
In this embodiment, when the slope unit is divided, the area of each sub-basin of the region to be divided is traversed, the area of each sub-basin is compared with the sub-basin area threshold, if the area of the current sub-basin is smaller than the sub-basin area threshold, the current sub-basin may be directly used as a candidate slope unit, and the process of determining the comparison between the area of the next sub-basin of the current sub-basin and the sub-basin area threshold is continuously performed, so as to obtain at least one candidate slope unit of the region to be divided.
And S140, determining a target slope unit of the region to be divided according to the area of the candidate slope unit.
In order to improve the dividing precision of the slope unit and reduce the calculation amount, after the candidate slope unit is determined, the candidate slope unit is corrected to determine the target slope unit with a moderate area. Optionally, the method for determining the target slope unit includes: comparing the area of each of the candidate ramp cells to a ramp cell area threshold; and if the area of the candidate slope unit is larger than or equal to the slope unit area threshold value, taking the candidate slope unit as the target slope unit.
Optionally, the method for determining the target slope unit further includes: if the area of the combined slope unit is larger than or equal to the slope unit area threshold value, taking the combined slope unit as the target slope unit; and if the area of the combined slope unit is smaller than the slope unit area threshold value, continuing to combine the combined slope unit and the candidate slope unit smaller than the slope unit area threshold value until the area of the combined slope unit is larger than or equal to the slope unit area threshold value, and taking the area of the slope unit which is combined most recently as the target slope unit.
The slope unit area threshold may be a preset value, and the slope unit area threshold is smaller than or equal to the sub-basin area threshold. Specifically, if the area of the candidate slope unit is greater than or equal to the slope unit area threshold, which indicates that the area of the candidate slope unit is moderate, the candidate slope unit can be directly used as the target slope unit; if the area of the candidate slope unit is smaller than the slope unit area threshold, the area of the candidate slope unit is over small, at least two candidate slope units smaller than the slope unit area threshold are merged, the area of the merged slope unit is calculated, and if the area of the merged slope unit is larger than or equal to the slope unit area threshold, the merged slope unit is used as the target slope unit; and if the area of the combined slope unit is smaller than the threshold value of the area of the slope unit, the combined slope unit still has an undersize area, continuing to execute the combination operation until the area of the combined slope unit is larger than or equal to the threshold value of the area of the slope unit, and taking the area of the slope unit which is combined recently as the target slope unit. Therefore, candidate slope units with small areas can be combined in an iteration mode, more slope units with small areas are prevented from being divided, slope units with moderate areas are obtained, and therefore the dividing precision of the slope units is improved and the calculation amount is reduced.
According to the technical scheme of the embodiment of the invention, at least one sub-basin of the area to be divided is obtained, the area of each sub-basin is determined, the area of the current sub-basin is compared with the area threshold of the sub-basin, if the area of the current sub-basin is smaller than the area threshold of the sub-basin, the current sub-basin is taken as a candidate slope unit, the candidate slope unit can be determined according to the area of the sub-basin so as to perform uniform division on the sub-basins, and compared with the prior art that the division precision of the slope unit can be improved according to a slope division mode; and further determining a target slope unit of the region to be divided according to the area of the candidate slope unit, further screening the candidate slope unit based on the area, and taking the candidate slope unit with a moderate area as the target slope unit, so that the dividing precision of the slope unit is improved, the calculation amount is reduced, and the dividing precision of the slope unit can be improved for the region with a large range.
Example two
Fig. 2 is a flowchart of a ramp unit dividing method according to a second embodiment of the present invention, in which a new step is added on the basis of the first embodiment. Other implementations of determining candidate ramp units are specifically added. In the method, reference is made to the above-described embodiments for those parts which are not described in detail. Referring specifically to fig. 2, the method may include the steps of:
s210, obtaining at least one sub-basin of the region to be divided.
S220, determining the area of each sub-basin, and comparing the area of the current sub-basin with the sub-basin area threshold value.
S230, determining whether the area of the current sub-basin is smaller than the sub-basin area threshold value;
and S240, taking the current sub-basin as a candidate slope unit.
And S250, determining the gradient and the slope direction of each grid of the region to be divided, and calculating the slope direction circle variance and the slope gradient variance of the current sub-basin according to the slope direction and the gradient of each grid of the region to be divided.
Alternatively, the slope and direction of the area to be divided may be determined from elevation data for the area to be divided. And traversing each grid of the region to be divided, calculating the gradient variance of the current sub-basin in the region to be divided based on the gradient of each grid of the region to be divided, and calculating the slope circular variance of the current sub-basin in the region to be divided based on the slope of each grid of the region to be divided.
S260, determining whether the slope direction circle variance of the current sub-basin is smaller than a slope direction circle variance threshold value or not and whether the slope variance is smaller than a slope variance threshold value or not.
And S270, taking the current sub-basin as a candidate slope unit.
S280, dividing the region to be divided again according to the predetermined sub-basin area step size to obtain at least one sub-basin.
It can be understood that, if the slope direction circular variance of the current sub-basin is smaller than the slope direction circular variance threshold value and the slope direction variance is smaller than the slope direction variance threshold value, which indicates that the slope of the current sub-basin is relatively slow and the slope directions tend to be consistent, the current sub-basin is taken as a candidate slope unit. Meanwhile, the sub-basin is determined as a plain area, so that the sub-basins belonging to the plain in the area to be divided can be determined according to the slope direction circular variance and the slope variance; if the slope direction circular variance of the current sub-basin is larger than or equal to the slope direction circular variance threshold value, or the slope direction variance is larger than or equal to the slope direction variance threshold value, it is indicated that the slope of the current sub-basin is larger and the slope direction is more complex, the sub-basin is located in a mountainous area, based on the area step length of the sub-basin, the current sub-basin is re-segmented to reduce the area of the current sub-basin to obtain at least one sub-basin, until the area of the current sub-basin is smaller than the sub-basin area threshold value, and the reduced current sub-basin is taken as a candidate slope unit.
And S290, determining a target slope unit of the region to be divided according to the area of the candidate slope unit.
As described in the foregoing embodiment, the method for determining the target slope unit includes: comparing the area of each of the candidate ramp cells to a ramp cell area threshold; and if the area of the candidate slope unit is larger than or equal to the slope unit area threshold value, taking the candidate slope unit as the target slope unit.
Optionally, the method for determining the target slope unit further includes: if the area of the combined slope unit is larger than or equal to the slope unit area threshold value, taking the combined slope unit as the target slope unit; and if the area of the combined slope unit is smaller than the slope unit area threshold value, continuing to combine the combined slope unit and the candidate slope unit smaller than the slope unit area threshold value until the area of the combined slope unit is larger than or equal to the slope unit area threshold value, and taking the area of the slope unit which is combined most recently as the target slope unit.
According to the technical scheme provided by the embodiment, when the area of the current sub-basin is larger than or equal to the area threshold of the sub-basin, the slope and the slope direction of each grid of the area to be divided are determined, and the slope direction circular variance and the slope variance of the current sub-basin are calculated according to the slope direction and the slope direction of each grid of the area to be divided; if the slope direction circle variance of the current sub-basin is smaller than a slope direction circle variance threshold value and the slope variance is smaller than a slope variance threshold value, taking the current sub-basin as the candidate slope unit; and if the slope circular variance of the current sub-basin is greater than or equal to the slope circular variance threshold value, or the slope variance is greater than or equal to the slope variance threshold value, re-dividing the area to be divided according to the predetermined sub-basin area step length to obtain at least one sub-basin. The sub-basin can be divided from coarse to fine, and the dividing precision and the dividing efficiency are improved. And the sub-watershed in the plain area can be determined based on the slope direction circular variance and the slope variance so as to remove the sub-watershed in the plain area, and further, when the landslide prediction is carried out based on the target slope unit for removing the sub-watershed in the plain area, the calculation amount can be reduced and the landslide prediction precision can be improved.
EXAMPLE III
Fig. 3 is a schematic diagram illustrating a result of the apparatus for dividing a slope unit according to the third embodiment of the present invention, as shown in fig. 3, the apparatus for dividing a slope unit includes: a sub-basin acquisition module 310, a comparison module 320, a candidate ramp unit determination module 330, and a target ramp unit determination module 340.
The sub-basin obtaining module 310 is configured to obtain at least one sub-basin of a region to be partitioned;
a comparing module 320, configured to determine an area of each sub-basin, and compare the area of the current sub-basin with a sub-basin area threshold;
a candidate slope unit determining module 330, configured to, if the area of the current sub-basin is smaller than the sub-basin area threshold, take the current sub-basin as a candidate slope unit;
a target slope unit determining module 340, configured to determine a target slope unit of the region to be divided according to the area of the candidate slope unit.
According to the technical scheme of the embodiment of the invention, at least one sub-basin of the area to be divided is obtained, the area of each sub-basin is determined, the area of the current sub-basin is compared with the area threshold of the sub-basin, if the area of the current sub-basin is smaller than the area threshold of the sub-basin, the current sub-basin is taken as a candidate slope unit, the candidate slope unit can be determined according to the area of the sub-basin so as to perform uniform division on the sub-basins, and compared with the prior art that the division precision of the slope unit can be improved according to a slope division mode; and further determining a target slope unit of the region to be divided according to the area of the candidate slope unit, further screening the candidate slope unit based on the area, and taking the candidate slope unit with a moderate area as the target slope unit, so that the dividing precision of the slope unit is improved, the calculation amount is reduced, and the dividing precision of the slope unit can be improved for the region with a large range.
Optionally, the sub-watershed obtaining module 310 is further configured to obtain elevation data of each grid of the area to be divided;
determining gray value distribution characteristics of pixel points of each grid in the area to be divided according to the elevation data;
and performing watershed segmentation on the region to be divided based on the gray value distribution characteristics to obtain at least one sub watershed of the region to be divided.
Optionally, the candidate slope unit determining module 330 is further configured to determine a slope and a slope direction of each grid of the region to be divided if the area of the current sub-basin is greater than or equal to the sub-basin area threshold, and calculate a slope circular variance and a slope variance of the current sub-basin according to the slope and the slope of each grid of the region to be divided;
and determining candidate slope units based on the slope direction circle variance and the slope variance.
Optionally, the candidate slope unit determining module 330 is further configured to, if the difference in circular slope direction variance of the current sub-basin is smaller than a threshold value of circular slope direction variance, and the gradient variance is smaller than a threshold value of gradient variance, take the current sub-basin as the candidate slope unit.
Optionally, the sub-watershed obtaining module 310 is further configured to, if the slope circular variance of the current sub-watershed is greater than or equal to the slope circular variance threshold, or the slope variance is greater than or equal to the slope variance threshold, re-divide the region to be divided according to a predetermined sub-watershed area step size to obtain at least one sub-watershed.
Optionally, the target slope unit determining module 340 is further configured to compare the area of each of the candidate slope units with a slope unit area threshold;
and if the area of the candidate slope unit is larger than or equal to the slope unit area threshold value, taking the candidate slope unit as the target slope unit.
Optionally, the target slope unit determining module 340 is further configured to merge at least two candidate slope units smaller than the slope unit area threshold if the area of the candidate slope unit is smaller than the slope unit area threshold;
if the area of the combined slope unit is larger than or equal to the slope unit area threshold value, taking the combined slope unit as the target slope unit;
and if the area of the combined slope unit is smaller than the slope unit area threshold value, continuing to combine the combined slope unit and the candidate slope unit smaller than the slope unit area threshold value until the area of the combined slope unit is larger than or equal to the slope unit area threshold value, and taking the area of the slope unit which is combined most recently as the target slope unit.
The slope unit dividing device provided by the embodiment of the invention can execute the slope unit dividing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a dividing apparatus of a slope unit according to a fourth embodiment of the present invention. Fig. 4 shows a block diagram of an exemplary ramp unit dividing device 12 suitable for use in implementing embodiments of the present invention. The dividing device 12 of the slope unit shown in fig. 4 is only an example, and should not bring any limitation to the function and the use range of the embodiment of the present invention.
As shown in fig. 4, the dividing device 12 of the ramp unit is in the form of a general purpose computing device. The components of the ramp unit dividing device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The ramp unit dividing device 12 typically includes a variety of computer system readable media. These media may be any available media that can be accessed by the ramp unit's dividing device 12, including volatile and non-volatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache 32. The ramp unit dividing device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. The system memory 28 may include at least one program product having a set of program modules (e.g., the sub-basin acquisition module 310, the comparison module 320, the candidate ramp unit determination module 330, and the target ramp unit determination module 340 of the ramp unit's partitioning apparatus) that are configured to perform the functions of the various embodiments of the present invention.
A program/utility 44 having a set of program modules 46 (e.g., a ramp unit's partitioning means sub-basin acquisition module 310, comparison module 320, candidate ramp unit determination module 330, and target ramp unit determination module 340) may be stored, for example, in system memory 28, such program modules 46 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. Program modules 46 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The ramp unit's dividing device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the ramp unit's dividing device 12, and/or with any devices (e.g., network card, modem, etc.) that enable the ramp unit's dividing device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the ramp unit's partitioning device 12 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the ramp unit's dividing device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the ramp unit dividing device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing a ramp unit dividing method provided by an embodiment of the present invention, the method including:
obtaining at least one sub-basin of a region to be divided;
determining the area of each sub-basin, and comparing the area of the current sub-basin with a sub-basin area threshold;
if the area of the current sub-basin is smaller than the sub-basin area threshold value, taking the current sub-basin as a candidate slope unit;
and determining a target slope unit of the region to be divided according to the area of the candidate slope unit.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a rainfall peak type division method provided by the embodiment of the present invention.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the ramp unit dividing method provided in any embodiment of the present invention.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for partitioning a ramp unit, where the method includes:
obtaining at least one sub-basin of a region to be divided;
determining the area of each sub-basin, and comparing the area of the current sub-basin with a sub-basin area threshold;
if the area of the current sub-basin is smaller than the sub-basin area threshold value, taking the current sub-basin as a candidate slope unit;
and determining a target slope unit of the region to be divided according to the area of the candidate slope unit.
Of course, the computer program stored on the computer-readable storage medium provided by the embodiment of the present invention is not limited to the above method operations, and may also perform related operations in a ramp unit dividing method provided by any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device.
A computer readable signal medium may include, among other things, the area of the current sub-basin, the sub-basin area threshold, the candidate ramp units, and the target ramp unit, in which computer readable program code is carried. The area of the current sub-basin, the sub-basin area threshold, the candidate ramp unit and the target ramp unit of the propagation are in the form of the same. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. 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 the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that, in the embodiment of the dividing apparatus for a slope unit, each included module is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method for dividing a slope unit is characterized by comprising the following steps:
obtaining at least one sub-basin of a region to be divided;
determining the area of each sub-basin, and comparing the area of the current sub-basin with a sub-basin area threshold;
if the area of the current sub-basin is smaller than the sub-basin area threshold value, taking the current sub-basin as a candidate slope unit;
and determining a target slope unit of the region to be divided according to the area of the candidate slope unit.
2. The method according to claim 1, wherein the obtaining at least one sub-basin of the region to be partitioned comprises:
acquiring elevation data of each grid of an area to be divided;
determining gray value distribution characteristics of pixel points of each grid in the area to be divided according to the elevation data;
and performing watershed segmentation on the region to be divided based on the gray value distribution characteristics to obtain at least one sub watershed of the region to be divided.
3. The method of claim 1, further comprising:
if the area of the current sub-basin is larger than or equal to the sub-basin area threshold, determining the gradient and the slope direction of each grid of the area to be divided;
calculating the slope direction circular variance and the slope gradient variance of the current sub-basin according to the slope direction and the slope gradient of each grid of the region to be divided;
and determining candidate slope units based on the slope direction circle variance and the slope variance.
4. The method of claim 3, wherein determining candidate slope units based on the slope direction circular variance and slope variance comprises:
and if the slope direction circle variance of the current sub-basin is smaller than a slope direction circle variance threshold value and the slope variance is smaller than a slope variance threshold value, taking the current sub-basin as the candidate slope unit.
5. The method of claim 4, further comprising:
and if the slope circular variance of the current sub-basin is greater than or equal to the slope circular variance threshold value, or the slope variance is greater than or equal to the slope variance threshold value, re-dividing the area to be divided according to the predetermined sub-basin area step length to obtain at least one sub-basin.
6. The method according to claim 1, wherein the determining a target slope unit of the region to be divided according to the area of the candidate slope unit comprises:
comparing the area of each of the candidate ramp cells to a ramp cell area threshold;
and if the area of the candidate slope unit is larger than or equal to the slope unit area threshold value, taking the candidate slope unit as the target slope unit.
7. The method of claim 6, further comprising:
merging at least two candidate ramp units that are smaller than the ramp unit area threshold if the area of the candidate ramp unit is smaller than the ramp unit area threshold;
if the area of the combined slope unit is larger than or equal to the slope unit area threshold value, taking the combined slope unit as the target slope unit;
and if the area of the combined slope unit is smaller than the slope unit area threshold value, continuing to combine the combined slope unit and the candidate slope unit smaller than the slope unit area threshold value until the area of the combined slope unit is larger than or equal to the slope unit area threshold value, and taking the area of the slope unit which is combined most recently as the target slope unit.
8. A device for dividing a slope unit, comprising:
the sub-basin acquisition module is used for acquiring at least one sub-basin of the region to be divided;
the comparison module is used for determining the area of each sub-basin and comparing the area of the current sub-basin with a sub-basin area threshold;
a candidate slope unit determining module, configured to, if the area of the current sub-basin is smaller than the sub-basin area threshold, take the current sub-basin as a candidate slope unit;
and the target slope unit determining module is used for determining the target slope unit of the region to be divided according to the area of the candidate slope unit.
9. A dividing apparatus of a slope unit, comprising: one or more processors; a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the ramp unit partitioning method as claimed in any one of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the ramp unit partitioning method of any one of claims 1-7 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011496072.1A CN112560267B (en) | 2020-12-17 | 2020-12-17 | Method, device, equipment and storage medium for dividing ramp units |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011496072.1A CN112560267B (en) | 2020-12-17 | 2020-12-17 | Method, device, equipment and storage medium for dividing ramp units |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112560267A true CN112560267A (en) | 2021-03-26 |
CN112560267B CN112560267B (en) | 2024-04-09 |
Family
ID=75063033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011496072.1A Active CN112560267B (en) | 2020-12-17 | 2020-12-17 | Method, device, equipment and storage medium for dividing ramp units |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112560267B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113408497A (en) * | 2021-08-03 | 2021-09-17 | 广东省科学院广州地理研究所 | Space scale selection method and device for mass landslide |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103455711A (en) * | 2013-08-15 | 2013-12-18 | 广州地理研究所 | Small watershed region-oriented landslide hazard risk division method based on mechanism analysis |
CN108257142A (en) * | 2018-01-11 | 2018-07-06 | 中国科学院、水利部成都山地灾害与环境研究所 | Ramp unit extracting method in DEM |
-
2020
- 2020-12-17 CN CN202011496072.1A patent/CN112560267B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103455711A (en) * | 2013-08-15 | 2013-12-18 | 广州地理研究所 | Small watershed region-oriented landslide hazard risk division method based on mechanism analysis |
CN108257142A (en) * | 2018-01-11 | 2018-07-06 | 中国科学院、水利部成都山地灾害与环境研究所 | Ramp unit extracting method in DEM |
Non-Patent Citations (3)
Title |
---|
KAI WANG等: "A new slope unit extraction method for regional landslide analysis based on morphological image analysis", 《BULLETIN OF ENGINEERING GEOLOGY AND THE ENVIRONMENT》 * |
MASSIMILIANO ALVIOLI等: "Automatic delineation of geomorphological slope units with r.slopeunits v1.0 and their optimization for landslide susceptibility modeling", 《GEOSCIENTIFIC MODEL DEVELOPMENT》, vol. 9, no. 11 * |
王凯等: "斜坡单元提取方法研究进展和展望", 《长江科学院院报》, vol. 37, no. 6, pages 85 - 93 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113408497A (en) * | 2021-08-03 | 2021-09-17 | 广东省科学院广州地理研究所 | Space scale selection method and device for mass landslide |
CN113408497B (en) * | 2021-08-03 | 2021-11-09 | 广东省科学院广州地理研究所 | Space scale selection method and device for mass landslide |
Also Published As
Publication number | Publication date |
---|---|
CN112560267B (en) | 2024-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111090628B (en) | Data processing method and device, storage medium and electronic equipment | |
CN109543909B (en) | Method and device for predicting number of vehicle cases and computer equipment | |
CN109992640B (en) | Method, device, equipment and storage medium for determining position grid | |
CN108229740B (en) | Method and device for determining business circle boundary, server and storage medium | |
CN110288549B (en) | Video repairing method and device and electronic equipment | |
CN112800915A (en) | Building change detection method, building change detection device, electronic device, and storage medium | |
CN112668238B (en) | Rainfall processing method, rainfall processing device, rainfall processing equipment and storage medium | |
CN112232495A (en) | Prediction model training method, device, medium and computing equipment | |
US20240152532A1 (en) | Method and apparatus for determining spatial relationship, computer device, and storage medium | |
US10001925B2 (en) | Method to improve page out mechanism with compressed memory pools | |
CN112560267B (en) | Method, device, equipment and storage medium for dividing ramp units | |
CN112651172B (en) | Rainfall peak type dividing method, device, equipment and storage medium | |
CN114972113A (en) | Image processing method and device, electronic equipment and readable storage medium | |
CN110780821A (en) | Optimization method and device of distributed storage system, server and storage medium | |
CN110674397A (en) | Method, device, equipment and readable medium for training age point prediction model | |
CN111049988A (en) | Intimacy prediction method, system, equipment and storage medium for mobile equipment | |
CN112561171B (en) | Landslide prediction method, device, equipment and storage medium | |
CN114329978A (en) | Fusion method and device of slope units, electronic equipment and storage medium | |
CN111870954B (en) | Altitude map generation method, device, equipment and storage medium | |
CN109949360B (en) | Method and device for extracting road center line, electronic equipment and storage medium | |
CN109491620B (en) | Storage data rewriting method, device, server and storage medium | |
CN112529315A (en) | Landslide prediction method, device, equipment and storage medium | |
CN111790151A (en) | Method and device for loading object in scene, storage medium and electronic equipment | |
CN113449062A (en) | Track processing method and device, electronic equipment and storage medium | |
CN112580871B (en) | Feature screening method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |