Describing shapes by geometrical-topological properties of real functions