cars.applications.epipolar_to_sensor_matching.epipolar_to_sensor_matching_app

this module contains the epipolar grid correction application class.

Classes

EpipolarToSensorMatchingApp

EpipolarToSensorMatching

Functions

transform_pix_window_to_pos_window(...)

Transform pixel window to position window

get_cropped_disparity_map_tiles(disparity_map, ...)

Get cropped disparity map tiles as CARS Dataset windows

sensor_matches_from_epi_wrapper(sensor_image_left, ...)

Wrapper for sensor_matches_from_epi function to be used in

transform_epipolar_to_sensor_matches(disparity_map, ...)

Transform epipolar matches to sensor matches, in epipolar structure

Module Contents

class cars.applications.epipolar_to_sensor_matching.epipolar_to_sensor_matching_app.EpipolarToSensorMatchingApp(conf=None)[source]

Bases: cars.applications.epipolar_to_sensor_matching.abstract_epipolar_to_sensor_matching_app.EpipolarToSensorMatching

EpipolarToSensorMatching

used_method
save_intermediate_data
tile_size
check_conf(conf)[source]

Check configuration

Parameters:

conf (dict) – configuration to check

Returns:

overloaded configuration

Return type:

dict

run(sensor_image_left, grid_left, grid_right, disparity_map, orchestrator=None, pair_folder=None, pair_key='pair_0')[source]

Run EpipolarToSensorMatching application

Parameters:
  • sensor_image_left (CarsDataset) – sensor image left

  • grid_left (dict) – corrected grid left

  • grid_right (dict) – corrected grid right

  • disparity_map (CarsDataset) – disparity map

  • orchestrator – orchestrator

  • pair_folder – pair folder to save intermediate data, if save_intermediate_data is True

  • pair_key – pair key to use

Returns:

dense sensor matches from epipolar matches

Return type:

CarsDataset

cars.applications.epipolar_to_sensor_matching.epipolar_to_sensor_matching_app.transform_pix_window_to_pos_window(sensor_pixel_window, sensor_transform)[source]

Transform pixel window to position window :param sensor_pixel_window: :param sensor_transform: transform :return: position window corresponding to the pixel window

cars.applications.epipolar_to_sensor_matching.epipolar_to_sensor_matching_app.get_cropped_disparity_map_tiles(disparity_map, grid_left, window)[source]
Get cropped disparity map tiles as CARS Dataset windows

corresponding to the sensor window

Parameters:
  • disparity_map

  • grid_left

  • window

Returns:

cars.applications.epipolar_to_sensor_matching.epipolar_to_sensor_matching_app.sensor_matches_from_epi_wrapper(sensor_image_left, disparity_map_cars_ds, grid_left, grid_right, full_saving_info_left, window, raster_profile=None, window_dict=None)[source]

Wrapper for sensor_matches_from_epi function to be used in orchestrator cluster

Parameters:
  • disparity_map_cars_ds – list of disparity map tiles as CARS Dataset windows

  • grid_left – corrected grid left

  • full_saving_info_left – full saving info for left sensor matches tile

  • window – sensor window to compute

  • raster_profile – raster profile to save left sensor matches tile

  • window_dict – window dict to save left sensor matches tile

Returns:

sensor matches from epipolar matches for the tile

Return type:

np.ndarray

cars.applications.epipolar_to_sensor_matching.epipolar_to_sensor_matching_app.transform_epipolar_to_sensor_matches(disparity_map, epi_grid_left, epi_grid_right)[source]

Transform epipolar matches to sensor matches, in epipolar structure

Parameters:
  • disparity_map – disparity map

  • epi_grid_left – corrected grid left

  • epi_grid_right – corrected grid right

Returns:

sensor matches from epipolar matches for the tile

Return type:

xarray.Dataset