cars.applications.dense_matches_filling.zero_padding

this module contains the fill_disp application class.

Module Contents

Classes

ZerosPadding

Fill invalid area in disparity map with zeros values

Functions

fill_disparity_zeros_wrapper(disp, window, overlap, ...)

Wrapper to copy previous disparity

class cars.applications.dense_matches_filling.zero_padding.ZerosPadding(conf=None)

Bases: cars.applications.dense_matches_filling.dense_matches_filling.DenseMatchesFilling

Fill invalid area in disparity map with zeros values

check_conf(conf)

Check configuration

Parameters

conf (dict) – configuration to check

Returns

overloaded configuration

Return type

dict

get_poly_margin()

Get the margin used for polygon

Returns

self.nb_pix

Return type

int

run(epipolar_disparity_map, orchestrator=None, pair_folder=None, pair_key='PAIR_0')

Run Refill application using zero_padding method.

Parameters
  • epipolar_disparity_map (CarsDataset) – left to right disparity

  • orchestrator – orchestrator used

  • pair_folder (str) – folder used for current pair

  • pair_key (str) – pair id

Returns

filled disparity map: The CarsDataset contains:

  • N x M Delayed tiles. Each tile will be a future xarray Dataset containing:
    • data with keys : “disp”, “disp_msk”

    • attrs with keys: profile, window, overlaps

  • attributes containing:
    ”largest_epipolar_region”,”opt_epipolar_tile_size”,

    ”epipolar_regions_grid”

Return type

CarsDataset

cars.applications.dense_matches_filling.zero_padding.fill_disparity_zeros_wrapper(disp, window, overlap, classif_index, saving_info=None)

Wrapper to copy previous disparity

Parameters
  • disp (xr.Dataset) – left to right disparity map

  • window (list) – window of base tile [row min, row max, col min col max]

  • overlap (list) – overlap [row min, row max, col min col max]

  • class_index (list) – class index according to the classification tag

  • saving_info (dict) – saving infos

Returns

disp map

Return type

xr.Dataset, xr.Dataset