cars.applications.rasterization.abstract_pc_rasterization_app
this module contains the abstract PointCloudRasterization application class.
Classes
PointCloudRasterization |
Module Contents
- class cars.applications.rasterization.abstract_pc_rasterization_app.PointCloudRasterization(conf=None)[source]
Bases:
cars.applications.application_template.ApplicationTemplatePointCloudRasterization
- available_applications: Dict
- default_application = 'simple_gaussian'
- abstract get_margins(resolution)[source]
Get the margin to use for terrain tiles
- Parameters:
resolution – resolution of raster data (in target CRS unit)
- Returns:
margin in meters or degrees
- abstract get_optimal_tile_size(max_ram_per_worker, superposing_point_clouds=1, point_cloud_resolution=0.5)[source]
Get the optimal tile size to use, depending on memory available
- Parameters:
max_ram_per_worker (int) – maximum ram available
superposing_point_clouds (int) – number of point clouds superposing
point_cloud_resolution (float) – resolution of point cloud
- Returns:
optimal tile size in meter
- Return type:
float
- abstract run(point_clouds, epsg, output_crs, resolution, orchestrator=None, dsm_file_name=None, weights_file_name=None, color_file_name=None, classif_file_name=None, performance_map_file_name=None, ambiguity_file_name=None, contributing_pair_file_name=None, filling_file_name=None, color_dtype=None, dump_dir=None)[source]
Run PointCloudRasterisation application.
Creates a CarsDataset filled with dsm tiles.
- Parameters:
point_clouds (CarsDataset filled with pandas.DataFrame) – merged point cloud
epsg (float) – epsg of raster data
resolution – resolution of raster data (in target CRS unit)
orchestrator – orchestrator used
dsm_file_name (str) – path of dsm
weights_file_name (str) – path of dsm weights
color_file_name (str) – path of color
classif_file_name (str) – path of color
performance_map_file_name (str) – path of confidence file
ambiguity_file_name (str) – path to the ambiguity
contributing_pair_file_name (str) – path of contributing pair file
filling_file_name (str) – path of filling file
color_dtype (str (numpy type)) – output color image type
dump_dir (str) – directory used for outputs with no associated filename
- Returns:
raster DSM
- Return type:
CarsDataset filled with xr.Dataset