HuXiaoling / TopoLoss

Code for the NeurIPS 2019 paper: Topology-Preserving Deep Image Segmentation
MIT License
155 stars 24 forks source link

How to calculate β-error? #26

Closed Raindow closed 1 year ago

Raindow commented 1 year ago

it's not very clear in you paper about how to calculate β-error? And I can't find the code in your github too. Could you release the code? Thank you.

HuXiaoling commented 1 year ago

The betti errors are simply the topological differences between corresponding patches/volumes. You can use libraries, such as GUDHI (https://gudhi.inria.fr/python/latest/cubical_complex_ref.html), to compute the betti numbers for different dimension topological structures.