cars.applications.grid_generation.epipolar_grid_generation_app

this module contains the epipolar grid generation application class.

Classes

EpipolarGridGeneration

EpipolarGridGeneration

Module Contents

class cars.applications.grid_generation.epipolar_grid_generation_app.EpipolarGridGeneration(conf=None)[source]

Bases: cars.applications.grid_generation.abstract_grid_generation_app.GridGeneration

EpipolarGridGeneration

used_method
epi_step
save_intermediate_data
orchestrator = None
check_conf(conf)[source]

Check configuration

Parameters:

conf (dict) – configuration to check

Returns:

overloaded configuration

Return type:

dict

get_save_grids()[source]

Get whether the grid will be saved

Returns:

true is grid saving is activated

Return type:

bool

run(image_left, image_right, geometry_plugin, orchestrator=None, pair_folder=None, pair_key='PAIR_0', resolution=1)

Run EpipolarGridGeneration application

Create left and right grid files, corresponding to left and right epipolar grids. The returned dicts contain all the attributes of the grid & their path

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

  • pair_folder (str) – folder used for current pair

  • orchestrator – orchestrator used

  • pair_key (str) – pair configuration id

Returns:

left grid, right grid. Each grid dict contains : - Attributes containing: “grid_spacing”, “grid_origin”, “epipolar_size_x”, epipolar_size_y”, “epipolar_origin_x”, “epipolar_origin_y”,”epipolar_spacing_x”, “epipolar_spacing”, “disp_to_alt_ratio”, “path”

Return type:

Tuple(dict, dict)