Description
Hello and thank you for your work!
I am trying to use ripser to compute the persistence diagrams of 3D images. Looking at the Python code in ripser/ripser.py and especially at the ripser.lower_star_img
function, I have been able to feed ripser distance matrices corresponding to my datasets. However, when I call the ripser.ripser
function with maxdim=1
or above (ideally 2), the program aborts with an overflow error.
This problem also occurs using the Cell.jpg
2D image from the Lower Star Image Filtrations tutorial. When I use maxdim=1
when calling ripser.ripser
in the ripser.lower_star_img
function (or remove it since the default value is 1), the overflow exception happens here too.
If I understand correctly the underlaying C++ code in ripser/ripser.cpp, this overflow exception is caused by the computation of binomial coefficients that depend on the size of the distance matrix and the maxdim
parameter.
Is this an inherent limitation of ripser? What's the right way to compute higher dimension persistence pairs?
Thank you in advance for your help,
Best regards,
Pierre