def load_image(image_name): bands = WORLDVIEW3 base_path = data_path() image_file = "{base_path}/{image_name}.{extension}".format( base_path=base_path, image_name=image_name, extension=extension) return SatelliteImage.load_from_file(image_file, bands)
y_truth_slum, y_pred_slum).size n_clusters = 32 pantex_window_sizes = ((100, 100), (200, 200), (300, 300)) class_names = { 0: 'Non-Slum', 1: 'Slum', } images = [ 'section_1', 'section_2', 'section_3', ] show_plots = False base_path = data_path() extension = 'tif' main_window_size = (30, 30) percentage_threshold = 0.5 class_ratio = 2.0 # feature_set = FeatureSet() # lacunarity = Lacunarity(windows=((100, 100), (200, 200), (300, 300))) # feature_set.add(lacunarity, "LACUNARITY") # feature_set.add(pantex, "PANTEX") best_score = 0 bands = WORLDVIEW3 def load_image(image_name):