Search

CN-116029991-B - Building area determining method, device, electronic equipment and storage medium

CN116029991BCN 116029991 BCN116029991 BCN 116029991BCN-116029991-B

Abstract

The application discloses a building area determining method, a building area determining device, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the steps of obtaining digital surface model DSM data, carrying out edge detection on the DSM data based on an edge detection algorithm to obtain edge information of the DSM data, obtaining an estimated ground elevation value corresponding to the DSM data based on the DSM data, traversing the DSM data based on the edge information, obtaining a difference value between the ground elevation value corresponding to the non-edge information and the estimated ground elevation value if the non-edge information traversed into the DSM data is determined based on the edge information, and determining building area attributes of non-edge positions based on the relation between the difference value and a building height threshold, wherein the building area attributes belong to building areas or belong to non-building areas. The application only determines the building area through DSM data, reduces the cost of determining the building area and improves the efficiency of determining the building area.

Inventors

  • WANG JIALI
  • HU MINGYIN
  • GU HAIXIAO
  • Gong Chizhang

Assignees

  • 广东汇天航空航天科技有限公司

Dates

Publication Date
20260508
Application Date
20221219

Claims (9)

  1. 1. A method of building area determination, the method comprising: acquiring DSM data of a digital earth surface model; Performing edge detection on the DSM data based on an edge detection algorithm to obtain edge information of the DSM data; Obtaining an estimated ground elevation value corresponding to the DSM data based on the DSM data; Traversing the DSM data based on the edge information; If the edge information traversed into the DSM data is determined based on the edge information, a target window is obtained by taking the position corresponding to the edge information as the center; obtaining a target ground elevation value based on the DSM data in the target window; If the absolute value of the difference value between the target ground elevation value and the estimated ground elevation value is smaller than a difference value threshold value, replacing the estimated ground elevation value with the target ground elevation value to serve as a new estimated ground elevation value; if the non-edge information traversed into the DSM data is determined based on the edge information, acquiring a difference value between the ground elevation value corresponding to the non-edge information and the estimated ground elevation value; Based on the relationship of the difference value and the building height threshold, building area attributes of non-edge positions are determined, wherein the building area attributes comprise belonging to a building area or belonging to a non-building area.
  2. 2. The method of claim 1, wherein determining building area attributes for non-edge locations based on the relationship of the difference to a building height threshold comprises: if the difference is greater than the building height threshold, obtaining a grade value for the non-edge location based on the DSM data; If the gradient value of the non-edge position is smaller than the gradient threshold value, determining the building area attribute of the non-edge position as belonging to the building area, or And if the gradient value of the non-edge position is greater than or equal to the gradient threshold value, determining that the building region attribute of the non-edge position belongs to a non-building region.
  3. 3. The method of claim 2, wherein the obtaining a grade value for the non-edge location based on the DSM data if the difference is greater than the building height threshold, comprises: If the difference value is larger than the building height threshold value, gradient calculation is carried out on the DSM data based on a preset gradient algorithm, and a gradient map corresponding to the DSM data is obtained; and obtaining the gradient value of the non-edge position based on the gradient map.
  4. 4. The method according to claim 2, wherein the method further comprises: And if the difference value is smaller than or equal to the building height threshold value, determining that the building area attribute of the non-edge position belongs to a non-building area.
  5. 5. The method of claim 1, wherein the obtaining a target ground elevation value based on DSM data in the target window comprises: acquiring a minimum ground elevation value in DSM data in the target window; And determining the minimum ground elevation value as the target ground elevation value.
  6. 6. The method of claim 1, wherein the obtaining, based on the DSM data, an estimated ground elevation value for the DSM data comprises: acquiring an average value of ground elevation values in the DSM data; And determining the average value as an estimated ground elevation value corresponding to the DSM data.
  7. 7. A building area determining apparatus, the apparatus comprising: The DSM data acquisition module is used for acquiring DSM data of the digital earth surface model; The edge information obtaining module is used for carrying out edge detection on the DSM data based on an edge detection algorithm to obtain edge information of the DSM data; the estimated ground elevation value obtaining module is used for obtaining an estimated ground elevation value corresponding to the DSM data based on the DSM data; The DSM data traversing module is used for traversing the DSM data based on the edge information, acquiring a target window by taking a position corresponding to the edge information as a center if the edge information traversed into the DSM data is determined based on the edge information, acquiring a target ground elevation value based on the DSM data in the target window, and replacing the estimated ground elevation value with the target ground elevation value as a new estimated ground elevation value if the absolute value of the difference between the target ground elevation value and the estimated ground elevation value is smaller than a difference threshold; The non-edge information determining module is used for acquiring a difference value between a ground elevation value corresponding to the non-edge information and the estimated ground elevation value if the non-edge information traversed into the DSM data is determined based on the edge information; And the building area attribute determining module is used for determining building area attributes of non-edge positions based on the relation between the difference value and the building height threshold value, wherein the building area attributes comprise building areas or non-building areas.
  8. 8. An electronic device, comprising: One or more processors; A memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-6.
  9. 9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-6.

Description

Building area determining method, device, electronic equipment and storage medium Technical Field The present application relates to the field of computer technologies, and in particular, to a building area determining method, apparatus, electronic device, and storage medium. Background With the continuous development of economic construction, the construction of cities is happy, and the city changes very frequently and severely. In order to facilitate people to know the distribution of urban buildings for urban planning and detecting urban development, the problem of determining building areas exists in the related technology. Disclosure of Invention In view of the above, the present application proposes a building area determining method, apparatus, electronic device, and storage medium, which can determine a building area through DSM data, reduce the cost of determining the building area, and also improve the efficiency of building area. In a first aspect, an embodiment of the present application provides a building area determining method, where the method includes obtaining digital earth surface model DSM data, performing edge detection on the DSM data based on an edge detection algorithm to obtain edge information of the DSM data, obtaining an estimated ground elevation value corresponding to the DSM data based on the DSM data, traversing the DSM data based on the edge information, obtaining a difference between the ground elevation value corresponding to the non-edge information and the estimated ground elevation value if non-edge information traversed into the DSM data is determined based on the edge information, and determining a building area attribute of the non-edge position based on a relation between the difference and a building height threshold, where the building area attribute includes a building area or a non-building area. In a second aspect, an embodiment of the present application provides a building area determining apparatus, where the apparatus includes a DSM data obtaining module, an edge information obtaining module, an estimated ground elevation value obtaining module, a DSM data traversing module, a non-edge information determining module, and a building area attribute determining module. The system comprises a DSM data acquisition module, an edge information acquisition module, an estimated ground elevation value acquisition module, a DSM data traversing module, a non-edge information determination module and a building area attribute determination module, wherein the DSM data acquisition module is used for acquiring digital surface model DSM data, the edge information acquisition module is used for carrying out edge detection on the DSM data based on an edge detection algorithm to acquire edge information of the DSM data, the estimated ground elevation value acquisition module is used for acquiring an estimated ground elevation value corresponding to the DSM data based on the DSM data, the DSM data traversing module is used for traversing the DSM data based on the edge information, the non-edge information determination module is used for acquiring a difference value between the ground elevation value corresponding to the non-edge information and the estimated ground elevation value if the non-edge information traversed into the DSM data is determined based on the edge information, and the building area attribute determination module is used for determining the building area attribute of the non-edge position based on the relation between the difference value and a building elevation threshold, wherein the building area attribute comprises a building area or a non-building area. In a third aspect, an embodiment of the present application provides an electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that when executed by the processor perform the above-described method. In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being callable by a processor to perform the above method. According to the building area determining method, the device, the electronic equipment and the storage medium, edge detection is carried out on the DSM data based on an edge detection algorithm by acquiring digital surface model DSM data, edge information of the DSM data is obtained, estimated ground elevation values corresponding to the DSM data are obtained based on the DSM data, traversing is carried out on the DSM data based on the edge information, if non-edge information traversed into the DSM data is determined based on the edge information, the difference value between the ground elevation values corresponding to the non-edge information and the estimated ground elevation values is acquired, and building area attributes of non-edge positions are determined based on the relation between the difference value and a building