cars.applications.sensors_subsampling.rasterio_subsampling_app
this module contains the dense_matching application class.
Classes
SensorsSubsampling |
Functions
|
Subsampling wrapper |
Module Contents
- class cars.applications.sensors_subsampling.rasterio_subsampling_app.RasterioSubsampling(conf=None)[source]
Bases:
cars.applications.sensors_subsampling.abstract_subsampling_app.SensorsSubsamplingSensorsSubsampling
- used_method
- tile_size
- interpolator_image
- interpolator_classif
- interpolator_mask
- orchestrator = None
- check_conf(conf)[source]
Check configuration
- Parameters:
conf (dict) – configuration to check
- Returns:
overloaded configuration
- Return type:
dict
- update_profile(img_path, scale_factor)[source]
Update rasterio profile
- Parameters:
img_path (str) – the image path
scale_factor (float) – the scaling factor
- get_paths_dictionary(sensor_dict)[source]
Get the paths dictionary
- Parameters:
sensor_dict (dict) – the sensor dictionary (classification, image…)
- run(id_image, sensor_dict, resolution, out_directory, orchestrator)[source]
Run subsampling using rasterio
- Parameters:
id_image (str) – the id of the image
sensor_dict (dict) – the sensor dictionnary (image, classification…)
resolution (int) – the subsampling resolution
out_directory (str) – the output directory
orchestrator – orchestrator used
- cars.applications.sensors_subsampling.rasterio_subsampling_app.generate_subsampled_images_wrapper(paths_dictionary, profile, scale_factor=1, tile_size=10000, window=None, saving_info=None) Dict[str, Tuple[xarray.Dataset, xarray.Dataset]][source]
Subsampling wrapper
- Parameters:
paths_dictionary (dict) – the paths dictionary
profile – the new profile
scale_factor (float) – the scaling_factor
tile_size (int) – the tile size
window (Window) – the current window
saving_info – the saving information