https://medium.com/@monocosmo77/using-minkowski-functionals-in-machine-learning-research-part4-30ee3c3c0c37