def setFileName(self, filename):
        from sct_utils import extract_fname
        self.absolutepath = filename
        self.path, self.file_name, self.ext = extract_fname(filename)
:param filename: file name with extension
dataset/ETHPy150Open neuropoly/spinalcordtoolbox/scripts/msct_image.py/Image.setFileName