INNER CODE UNIT · Python

main

nachifur/MulimgViewer · src/mulimgviewer/src/custom_func/Image Enhancement/main.py:18

def main(img_list, save_path, name_list=None, algorithm_name="Image Enhancement"):
    """
    Batch process image list
    """
    i = 0
    out_img_list = []
    if save_path != "":
        flag_save = True
        save_path = Path(save_path) / "processing_function" / algorithm_name / "processed_img"
        if not save_path.exists():
            os.makedirs(str(save_path))
    else:
        flag_save = False

    for img in img_list:
        img = custom_process_img(img)
        out_img_list.append(img)
        if flag_save:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…