Local and global energies for shape analysis in medical imaging. (8th January 2020)