ddd_pylib.image_manip.

EuclideanDistanceTransformOperator#

class ddd_pylib.image_manip.EuclideanDistanceTransformOperator[source]#

Bases: ImageOperator

Creates the Euclidean distance transform (EDT) of the main image. The anisotropy of the image is taken into account by using the scale of each axis as a sampling parameter. The EDT assigns to each pixel the distance to the nearest zero pixel. The provided input image must be a binary mask, with only two unique values.

Methods

getPrefix()[source]#

Prefix added to the input image name to generate the output image name.

Return type:

str

sanityCheck()[source]#

Checks that the main image is a binary mask, with only two unique values.