euclidian_dist.py 290 B

1234567891011
  1. """Euclidean Distance Transform using Saito algorithm.
  2. The distance map produced contains the square
  3. of the Euclidean distance values"""
  4. from vedo import *
  5. e = Volume(dataurl+'embryo.tif')
  6. edt = e.euclidean_distance()
  7. show([(e,__doc__), edt], N=2, viewup='z', axes=1, zoom=1.5).close()