Examples
Flood PH of noisy torus points
In the following example, we sample n_pts=1000000
points from a noisy torus in 3D, then
construct the Flood complex on top of n_lms=1000
landmarks (see Illustration
) and compute persistent
homology (up to dimension 3) using gudhi
based on the constructed filtered Flood simplicial complex.
Importantly, one can either call flood_complex
with the already pre-selected
(here via FPS) landmarks, or one can just specify the number of desired landmarks, e.g.,
via
in which case FPS is called internally.
Flooder CLI
If you installed flooder via pip install flooder
, you not only have the API
available but also a command-line interface (CLI), which you can execute as
follows: for demonstration, we will download a PLY file of the Lucy angel (>14M points, available
from the Stanford 3D Scanning Repository)
and first convert it (using the Open3D library; install via pip install open3d
) to a
(N,3)
numpy array:
Finally, we execute the Flooder CLI, using 5k landmarks, 30 points per edge and a batch size of 64: