pc2dem
Syntax
Description
creates and returns a digital elevation model (DEM) elevModel
= pc2dem(ptCloudIn
)elevModel
for the
input point cloud. The output matrix contains generalized elevation information of the input
point cloud. For more information, see Algorithms.
additionally specifies the dimensions of the grid element.elevModel
= pc2dem(ptCloudIn
,gridResolution
)
[___] = pc2dem(___,
specifies options using one or more name-value arguments. For example,
Name,Value
)'CornerFillMethod','min'
specifies for the function to compute the
generalized elevation values for the grid corners in the DEM as the minimum elevation in the
default search radius of each grid corner.
Examples
Input Arguments
Output Arguments
Algorithms
The function uses a local binning algorithm to create a digital elevation model (DEM) of the point cloud data. The algorithm assumes that the elevation of points is along the z-axis.
Local Binning Algorithm:
Divide the point cloud into a grid along the xy-dimensions (bird's eye view). Specify the grid dimensions using the
gridResolution
argument.Utilize the elevation information of all points within a circular region around each grid corner to compute generalized grid values. You can specify the search radius and computation method using the
'SearchRadius'
and'CornerFillMethod'
name-value arguments, respectively.If there are no points within the circular region, the algorithm does not compute a value and those grid corners remain unfilled. The function represents them as
NaN
. The algorithm uses inverse distance weighted (IDW) interpolation to fill the unfilled grid corners. To specify the filter size for the IDW interpolation method, use the'FilterSize'
name-value argument.
Extended Capabilities
Version History
Introduced in R2021bSee Also
pointCloud
| velodyneFileReader
| lasFileReader
| segmentGroundSMRF
| pcread