cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs

CARS containing inputs checking for sensor input data Used for full_res and low_res pipelines

Module Contents

Functions

sensors_check_inputs(conf[, config_json_dir, ...])

Check the inputs given

modify_to_absolute_path(config_json_dir, overloaded_conf)

Modify input file path to absolute path

validate_epipolar_a_priori(conf, overloaded_conf, ...)

Validate inner epipolar configuration

check_roi(roi)

Check roi given

check_srtm(srtm_dir)

Check srtm data

parse_roi_file(→ Tuple[List[float], int])

Parse ROI file argument and generate bounding box

check_input_data(image, mask, color)

Check image, mask and color given

generate_inputs(conf)

Generate sensors inputs form inputs conf :

Attributes

CARS_GEOID_PATH

cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs.CARS_GEOID_PATH = 'geoid/egm96.grd'
cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs.sensors_check_inputs(conf, config_json_dir=None, check_epipolar_a_priori=True)

Check the inputs given

Parameters
  • conf (dict) – configuration of inputs

  • config_json_dir (str) – path to dir containing json

cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs.modify_to_absolute_path(config_json_dir, overloaded_conf)

Modify input file path to absolute path

Parameters
  • config_json_dir (str) – directory of the json configuration

  • overloaded_conf – overloaded configuration json

Dict overloaded_conf

dict

cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs.validate_epipolar_a_priori(conf, overloaded_conf, checker_epipolar)

Validate inner epipolar configuration

:param conf : input configuration json :type conf: dict :param overloaded_conf : overloaded configuration json :type overloaded_conf: dict :param checker_epipolar : json checker :type checker_epipolar: Checker

cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs.check_roi(roi)

Check roi given

Parameters

roi (tuple(list, str)) – roi : [bbox], epsg

cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs.check_srtm(srtm_dir)

Check srtm data

Parameters

srtm_dir (str) – directory of srtm

cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs.parse_roi_file(arg_roi_file: str) Tuple[List[float], int]

Parse ROI file argument and generate bounding box

:param arg_roi_file : ROI file argument :return: ROI Bounding box + EPSG code : xmin, ymin, xmax, ymax, epsg_code :rtype: Tuple with array of 4 floats and int

cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs.check_input_data(image, mask, color)

Check image, mask and color given

Images must have same size

Parameters
  • image (str) – image path

  • mask (str) – mask path

  • color (str) – color path

cars.pipelines.sensor_to_full_resolution_dsm.sensors_inputs.generate_inputs(conf)

Generate sensors inputs form inputs conf :

a list of (sensor_left, sensor_right)

Parameters

conf (dict) – input conf

Returns

list of sensors pairs

Return type

list(tuple(dict, dict))