If you operate on images then you can compute distance map directly from the image. It seems that VTK’s vtkImageEuclideanDistance can only compute squared distance. If you need signed distance then you can use other libraries, such as ITK, which has several signed distance map computation methods, for example signed Maurer distance.