masadcv / FastGeodis

Fast Implementation of Generalised Geodesic Distance Transform for CPU (OpenMP) and GPU (CUDA)
https://fastgeodis.readthedocs.io
BSD 3-Clause "New" or "Revised" License
91 stars 14 forks source link

Is lamb parameter just weighting or is there more to it #61

Closed ogencoglu closed 2 months ago

ogencoglu commented 2 months ago

Thanks for this library. This is more of a question than a bug.

Is lamb simply a weighting between euclidean and geodesic in the sense that one can calculate them separately and weigh or is there something else to it?

ogencoglu commented 2 months ago

@PiaoR ? Is this some sort of spam or did you reply to the wrong thread?

masadcv commented 2 months ago

It is indeed a simple weighting between Euclidean and Geodesic distances

For example see here: https://github.com/masadcv/FastGeodis/blob/0f6cc1e6e104bee56e6eb9dfdd2cfd29c21a1a3e/FastGeodis/fastgeodis_cpu.cpp#L107

And yes you can calculate lambda and use that value.