cars.applications.sparse_matching.methods.pandora2d_sparse_method

This module contains the PANDORA2D sparse matching method implementation.

Attributes

AbstractSparseMatchingMethod

Classes

Pandora2DSparseMethod

Implementation of Pandora2d as a sparse matching method.

Functions

is_positive(value)

Check if a value is positive.

Module Contents

cars.applications.sparse_matching.methods.pandora2d_sparse_method.AbstractSparseMatchingMethod[source]
cars.applications.sparse_matching.methods.pandora2d_sparse_method.is_positive(value)[source]

Check if a value is positive.

Parameters:

value (int or float) – value to check

Returns:

True if value is positive, False otherwise

Return type:

bool

class cars.applications.sparse_matching.methods.pandora2d_sparse_method.Pandora2DSparseMethod(conf)[source]

Bases: AbstractSparseMatchingMethod

Implementation of Pandora2d as a sparse matching method.

schema
loader = None
used_config
method
conf_to_use
step
loader_conf
used_band
tile_width
tile_height
threshold_disp_range_to_borders
get_required_bands()[source]

Get bands required by this method.

Returns:

required bands for left and right image

Return type:

dict

check_conf(conf)[source]

Merge user configuration with default values and validate schema. Extra keys in conf are preserved and ignored during schema validation.

add_margin_wrapper(margins_fun, method_margins)[source]

Add pandora2d margins

crop_range(disp_min, disp_max, row_disp, nrows, ncols, max_ram_per_worker, pandora2d_machine)[source]

” Crop the disparity range if it exceed the memory

run(left_image_object, right_image_object, saving_info_left=None, disp_lower_bound=None, disp_upper_bound=None, classif_bands_to_mask=None, disp_range_grid=None, row_disp=None, max_ram_per_worker=500)[source]

Compute and filter sparse matches for one pair of epipolar tiles.