- class PointCloud(dtcc.Geometry)[source]
Represents a set of points in 3D.
Public members¶
- __str__()[source]
Return a string representation of the PointCloud, containing its boundaries and number of points.
- used_classifications() set [source]
Get the set of unique classifications used in the PointCloud.
- calculate_bounds()[source]
Calculate the bounds of the point cloud and update the bounds attribute.
- remove_points(indices: ndarray)[source]
Remove points from the point cloud using the given indices.
- from_proto(pb: Geometry | bytes)[source]
Initialize PointCloud from a protobuf representation.
- PointCloud(...)
Initialize self. See help(type(self)) for accurate signature.
- __repr__()
Return repr(self).
- __eq__(other)
Return self==value.
- save(outfile)
- remove_global_outliers(margin: float)
Remove outliers from a PointCloud whose Z-values are more than margin standard deviations from the mean.
-
classification_filter(classes: list[int], keep: bool =
False
) Filter a PointCloud object based on its classification.
- remove_vegetation() PointCloud
Return a pioint cloud with vegetation removed.
- points : ndarray
- classification : ndarray
- intensity : ndarray
- return_number : ndarray
- num_returns : ndarray
- property bounds
- to_json() str
Return a JSON representation of the object.
- copy(**kwargs)
Return a copy of the object.
-
classmethod add_methods(module, name=
None
) Adds methods from a module or function to the class.
-
classmethod print_methods(verbose=
False
) Print the methods that have been added to the class.