def load_test_from_folder(folder_path, new_size, HE=False, Truc=False, Aug=False):
    'loads images in the folder_path and returns a ndarray and threshold the label image'
    image_list = []
    for image_name in os.listdir(folder_path):
        image_original = np.load((folder_path + image_name))
        image_original = image_original['a']
        image_ct = image_original[:, 0:len(image_original)]
        image_spect = image_original[:, len(image_original):(len(image_original) * 2)]
        image_all = np.concatenate((image_ct, image_spect), axis=1)
        image_list.append(image_all)
    image_array = np.asarray(image_list)
    return image_array
loads images in the folder_path and returns a ndarray and threshold the label image
def load_test_from_folder(folder_path, new_size, HE=False, Truc=False, Aug=False):
    
    image_list = []
    for image_name in os.listdir(folder_path):
        image_original = np.load((folder_path + image_name))
        image_original = image_original['a']
        image_ct = image_original[:, 0:len(image_original)]
        image_spect = image_original[:, len(image_original):(len(image_original) * 2)]
        image_all = np.concatenate((image_ct, image_spect), axis=1)
        image_list.append(image_all)
    image_array = np.asarray(image_list)
    return image_array