compute_confidence_fusion (fusion_dic, ...[, ...])
|
from the fusion of classification's raster choice compute the fusion |
compute_fusion_choice (iota2_dir, fusion_dic, ...)
|
using the resulting fusion of classification and originals classifications, generate a raster which determine which input was chosen Return the output path. :type iota2_dir: str :param iota2_dir: iota2's output path :type fusion_dic: Dict [str , str ] :param fusion_dic: dictionnary containing keys : "sar_classif", "opt_classif", "sar_model" "opt_model" :type fusion_class: str :param fusion_class: path to the fusion of classifications :type classif_model_pos: int :param classif_model_pos: position of the model's name in classification's name if splited by '_' :type classif_tile_pos: int :param classif_tile_pos: position of the tile's name in classification's name if splited by '_' :type classif_seed_pos: int :param classif_seed_pos: position of the seed number in classification's name if splited by '_' :type ds_choice_both: int :param ds_choice_both: output value if fusion of classifications get the same label than SAR classification and optical classification :type ds_choice_sar: int :param ds_choice_sar: output value if fusion of classifications get the same label than SAR classification :type ds_choice_opt: int :param ds_choice_opt: output value if fusion of classifications get the same label than optical classification :type ds_no_choice: int :param ds_no_choice: default case :type working_directory: Optional [str ] :param working_directory: path to a working directory :type logger: Logger :param logger: root logger. |
compute_probamap_fusion (fusion_dic, ...[, ...])
|
from the fusion of classification's raster choice compute the fusion of confidence map Return the output path :type fusion_dic: Dict [str , str ] :param fusion_dic: dictionnary containing keys : "sar_classif", "opt_classif", "sar_model" "opt_model" :type ds_choice: str :param ds_choice: path to the fusion of classifications choice map :type classif_model_pos: int :param classif_model_pos: position of the model's name in classification's name if splited by '_' :type classif_tile_pos: int :param classif_tile_pos: position of the tile's name in classification's name if splited by '_' :type classif_seed_pos: int :param classif_seed_pos: position of the seed number in classification's name if splited by '_' :type ds_choice_both: int :param ds_choice_both: output value if fusion of classifications get the same label than SAR classification and optical classification :type ds_choice_sar: int :param ds_choice_sar: output value if fusion of classifications get the same label than SAR classification :type ds_choice_opt: int :param ds_choice_opt: output value if fusion of classifications get the same label than optical classification :type ds_no_choice: int :param ds_no_choice: default case :type working_directory: Optional [str ] :param working_directory: path to a working directory :param LOGGER: root logger |
dempster_shafer_fusion (iota2_dir, fusion_dic)
|
perform a fusion of classifications thanks to Dempster-Shafer's method Return a list containing : the Dempster-Shafer fusion labels path, Dempster-Shafer fusion confidence path, Dempster-Shafer fusion probability path, Dempster-Shafer fusion choice path :type iota2_dir: str :param iota2_dir: iota2's output path :type iota2_dir: string :type fusion_dic: Dict [str , str ] :param fusion_dic: dictionnary containing keys : "sar_classif", "opt_classif", "sar_model" "opt_model" :type fusion_dic: dict :type mob: str :param mob: Dempster-Shafer's mass of belive :type mob: string :type proba_map_flag: bool :param proba_map_flag: perform fusion to probability maps ? :type proba_map_flag: bool :param workingDirectory: path to a working directory :type workingDirectory: string |
dempster_shafer_fusion_parameters (iota2_dir)
|
Feed dempster_shafer_fusion function |
fusion (in_classif, fusion_options, ...[, logger])
|
Launch the otb application FusionOfClassifications |
perform_fusion (fusion_dic, mob, ...[, ...])
|
From classifications, perform the DS fusion of classifications Return the output path the the fusion of classifications :type fusion_dic: Dict [str , str ] :param fusion_dic: dictionnary containing keys : "sar_classif", "opt_classif", "sar_model" "opt_model" :type mob: str :param mob: Dempster-Shafer's mass of belive :type classif_model_pos: int :param classif_model_pos: position of the model's name in classification's name if splited by '_' :type classif_tile_pos: int :param classif_tile_pos: position of the tile's name in classification's name if splited by '_' :type classif_seed_pos: int :param classif_seed_pos: position of the seed number in classification's name if splited by '_' :type working_directory: Optional [str ] :param working_directory: path to a working directory |
run (cmd[, desc, env, logger])
|
Launch a system command and raise an execption if fail |