https://medium.com/@monocosmo77/using-minkowski-functionals-in-machine-learning-research-part3-987106c294a6