cars.pipelines.sensor_to_dense_dsm.sensors_inputs
CARS containing inputs checking for sensor input data Used for full_res and low_res pipelines
Module Contents
Functions
|
Check the inputs given |
|
Modify input file path to absolute path |
|
Validate inner epipolar configuration |
|
Check srtm data |
|
Check data of the image and color |
|
Check image, mask, classif and color given |
|
Check the bits number of the mask, classif |
|
Check if all the nbits = 1 |
|
Generate sensors inputs form inputs conf : |
Attributes
- cars.pipelines.sensor_to_dense_dsm.sensors_inputs.CARS_GEOID_PATH = 'geoid/egm96.grd'
- cars.pipelines.sensor_to_dense_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_dense_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_dense_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_dense_dsm.sensors_inputs.check_srtm(srtm_dir)
Check srtm data
- Parameters
srtm_dir (str) – directory of srtm
- cars.pipelines.sensor_to_dense_dsm.sensors_inputs.check_input_data(image, color)
Check data of the image and color
- Parameters
image (str) – image path
color (str) – color path
- cars.pipelines.sensor_to_dense_dsm.sensors_inputs.check_input_size(image, mask, color, classif)
Check image, mask, classif and color given
Images must have same size
- Parameters
image (str) – image path
mask (str) – mask path
color (str) – color path
classif (str) – classif path
- cars.pipelines.sensor_to_dense_dsm.sensors_inputs.check_nbits(mask, classif)
Check the bits number of the mask, classif mask and classification are limited to 1 bits per band
- Parameters
mask (str) – mask path
classif (str) – classif path
- cars.pipelines.sensor_to_dense_dsm.sensors_inputs.check_all_nbits_equal_one(nbits)
Check if all the nbits = 1 :param nbits: list of the nbits :return: True if all the nbits = 1
- cars.pipelines.sensor_to_dense_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))