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

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 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.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))