Skip to content

Overflow error with maxdim>0 #120

Open
@pierre-guillou

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions