cars.applications.dense_matches_filling.dense_matches_filling

this module contains the abstract dense matches filling application class.

Module Contents

Classes

DenseMatchingFilling

DenseMatchingFilling

class cars.applications.dense_matches_filling.dense_matches_filling.DenseMatchingFilling(conf=None)

Bases: cars.applications.application_template.ApplicationTemplate

DenseMatchingFilling

available_applications: Dict
default_application = 'plane'
classmethod __init_subclass__(short_name, **kwargs)
abstract get_is_activated()

Get the activated attribute

Returns

self.activated

Return type

bool

abstract get_poly_margin()

Get the margin used for polygon

Returns

self.nb_pix

Return type

int

abstract run(epipolar_disparity_map_left, epipolar_disparity_map_right, epipolar_images_left, holes_bbox_left, holes_bbox_right, disp_min=0, disp_max=0, orchestrator=None, pair_folder=None, pair_key='PAIR_0')

Run Refill application using plane method.

Parameters
  • epipolar_disparity_map_left (CarsDataset) – left disparity

  • epipolar_disparity_map_right (CarsDataset) – right disparity

  • epipolar_images_left (CarsDataset) –

    tiled left epipolar CarsDataset contains:

    • N x M Delayed tiles. Each tile will be a future xarray Dataset containing:

      • data with keys : “im”, “msk”, “color”

      • attrs with keys: “margins” with “disp_min” and “disp_max” “transform”, “crs”, “valid_pixels”, “no_data_mask”, “no_data_img”

    • attributes containing:

      ”largest_epipolar_region”,”opt_epipolar_tile_size”, “epipolar_regions_grid”

  • holes_bbox_left (CarsDataset) – left holes

  • holes_bbox_right (CarsDataset) – right holes

  • disp_min (int) – minimum disparity

  • disp_max (int) – maximum disparity

  • orchestrator – orchestrator used

  • pair_folder (str) – folder used for current pair

  • pair_key (str) – pair id

Returns

filled left disparity map, filled right disparity map: Each 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

Tuple(CarsDataset, CarsDataset)