pandora2d.refinement.refinement

This module contains functions associated to the refinement computation step.

Module Contents

Classes

AbstractRefinement

Abstract Refinement class

class pandora2d.refinement.refinement.AbstractRefinement[source]

Abstract Refinement class

__metaclass__[source]
refinement_methods_avail: Dict[source]
_refinement_method[source]
cfg[source]
margins[source]
classmethod register_subclass(short_name: str)[source]

Allows to register the subclass with its short name

Parameters:

short_name (string) – the subclass to be registered

abstract refinement_method(cost_volumes: xarray.Dataset, pixel_maps: xarray.Dataset) Tuple[numpy.ndarray, numpy.ndarray][source]

Return the subpixel disparity maps

Parameters:
  • cost_volumes (xarray.dataset) – cost_volumes 4D row, col, disp_col, disp_row

  • pixel_maps (xarray.dataset) – pixels disparity maps

Returns:

the refined disparity maps

Return type:

Tuple[np.ndarray, np.ndarray]