Distance Transformation

Creates a distance map to the segmentation regions in the input label map.

Input

A binary label map of LABEL modality.

Output

A float image with the same dimension as the input, containting in each pixel the distance of the current pixel in mm to the boundary of the represented object.

Description

This algorithm can compute several kinds of distance maps, depending on the value of Mode:

  • Outer only computes the distances outside the object (the pixels inside the object are assigned the value 0.0).
  • Inner only computes the distances inside the object (the pixels outside the object are assigned the value 0.0).
  • Both computes both inner and outer distances.
  • Signed similar to Both but inner distances are assigned negative values.