@staticmethod
    def final_context(ctx):
        assert (ctx.gentexting)
        ctx.gencount = None
        ctx.genparams = None
        ctx.gentexting = False
:param fname_centerline: centerline in RPI orientation, or an Image
dataset/ETHPy150Open erkyrath/tworld/lib/twcommon/gentext.py/GenText.final_context--crossover with--dataset/ETHPy150Open neuropoly/spinalcordtoolbox/scripts/sct_straighten_spinalcord.py/smooth_centerline