OPT : code improvement in sct_process_segmentation