def load_template(): template = lio.import_pickle(DATA_DIR / 'template.pkl') template.landmarks['__lsfm'] = template.landmarks['ibug68'].from_mask( LANDMARK_MASK) return prepare_template_reference_space(template)
def load_basel_template_metadata(): return lio.import_pickle(DATA_DIR / 'basel_template_metadata.pkl')
def load_camera_settings(): return lio.import_pickle(DATA_DIR / 'camera.pkl')
def load_template(template_fn=None): tempalte_fn = template_fn or path_to_template() template = lio.import_pickle(tempalte_fn) template.landmarks['__lsfm'] = template.landmarks['ibug68'].from_mask( LANDMARK_MASK) return prepare_template_reference_space(template)