seung-lab / euclidean-distance-transform-3d

Euclidean distance & signed distance transform for multi-label 3D anisotropic images using marching parabolas.
GNU General Public License v3.0
234 stars 37 forks source link

feat: edt.each — extract individual dts rapidly #42

Closed william-silversmith closed 2 years ago

william-silversmith commented 2 years ago

Extracts individual dts rapidly from a dense multi-label distance transform.

for label, dt in edt.each(labels, dts, in_place=False):
   pass

This concept is based on the version in cc3d, but is not an exact duplicate because edt requires transferring the dt based on a label volume (i.e. it needs two inputs instead of one).