cars.applications.grid_generation.abstract_grid_generation_app
this module contains the abstract grid generation application class.
Classes
AbstractGridGeneration |
Module Contents
- class cars.applications.grid_generation.abstract_grid_generation_app.GridGeneration(conf=None)[source]
Bases:
cars.applications.application_template.ApplicationTemplateAbstractGridGeneration
- available_applications: Dict
- default_application = 'epipolar'
- abstract get_save_grids()[source]
Get whether the grid will be saved
- Returns:
true is grid saving is activated
- Return type:
bool
- abstract run(image_left, image_right, geometry_plugin, orchestrator=None, pair_folder=None, pair_key='PAIR_0', resolution=1, scaling_coeff=1.0)[source]
Run EpipolarGridGeneration application
Create left and right grid CarsDataset filled with xarray.Dataset , corresponding to left and right epipolar grids.
- Parameters:
image_left (dict) – left image. Dict Must contain keys : “image”, “texture”, “geomodel”,”no_data”, “mask”. Paths must be absolutes
image_right (dict) – right image. Dict Must contain keys : “image”, “texture”, “geomodel”,”no_data”, “mask”. Paths must be absolutes
geometry_plugin (AbstractGeometry) – geometry plugin to use
orchestrator – orchestrator used
pair_folder (str) – folder used for current pair
resolution (int) – the resolution of the image
scaling_coeff (float) – scaling coefficient for scaling
- Returns:
left grid, right grid
- Return type:
Tuple(CarsDataset, CarsDataset)