OPT: sct_generate_centerline: added smoothness flag + added check for RPI