cars.applications.dense_match_filling.zero_padding_app
this module contains the fill_disp application class.
Classes
Fill invalid area in disparity map with zeros values |
Functions
|
Wrapper to copy previous disparity |
Module Contents
- class cars.applications.dense_match_filling.zero_padding_app.ZerosPadding(conf=None)[source]
Bases:
cars.applications.dense_match_filling.abstract_dense_match_filling_app.DenseMatchFillingFill invalid area in disparity map with zeros values
- used_method
- classification
- fill_valid_pixels
- save_intermediate_data
- check_conf(conf)[source]
Check configuration
- Parameters:
conf (dict) – configuration to check
- Returns:
overloaded configuration
- Return type:
dict
- run(epipolar_disparity_map, orchestrator=None, pair_folder=None, pair_key='PAIR_0')[source]
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:
- cars.applications.dense_match_filling.zero_padding_app.fill_disparity_zeros_wrapper(disp, window, overlap, classif, fill_valid_pixels, saving_info=None)[source]
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]
classif (list) – classification tags
fill_valid_pixels (bool) – option to fill valid pixels
saving_info (dict) – saving infos
- Returns:
disp map
- Return type:
xr.Dataset, xr.Dataset