Closed lfz closed 6 months ago
I figured out a walkaround:
but I think this is not a good way to do so, is it possible to use more elegant method and incorporate this function in the lib
besides, I also want to get the nearest seed point for each point in the image, is it possible
In my scenario, it is close to a watershed algorithm, I got several seed points, and what to segment the binary mask to different basins that bound to those seed points. So I want the function can return the nearest seed point index
Thanks for the fast fix for the padding issue!
I found the definition of "geodesic distance transform (GDT)" seems different from what I understand.
I need a function like "bwdistgeodesic" in (matlab), in this senario, it is very close to the traditional distance transform, which is also used for binary image. The only difference is that, the distance calculation cannot transmit through the "0" values in GDT.
but when I try FastGeodis, I found the basic logic differs from "bwdistgeodesic". the distance value only grows when face image gradient
but i get the following result:
what I expect is:
as far as I understand, this lib is designed to use image gradient as energy barrier, is there a simple way for me to reproduce the expected result?