INNER CODE UNIT · Python

main

nachifur/MulimgViewer · src/mulimgviewer/src/custom_func/main.py:65

def main(img_list, save_path, name_list=None, algorithm_type=0):
    functions = load_algorithm_functions(algorithm_type)
    available_algorithms = get_available_algorithms()
    algorithm_name = available_algorithms[algorithm_type] if algorithm_type < len(available_algorithms) else "Unknown"
    main_func = functions['main']
    sig = inspect.signature(main_func)
    params = list(sig.parameters.keys())
    if len(params) >= 4 or 'algorithm_name' in params:
        return main_func(img_list, save_path, name_list, algorithm_name)
    else:
        return main_func(img_list, save_path, name_list)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…