QMRITools`
QMRITools`

MakeDistanceMap

MakeDistanceMap[mask]

makes a distance map of the given mask in voxels. The distance map is negative inside the mask and positive outside the mask.

MakeDistanceMap[mask,vox]

makes a distance map of the given mask in the same unit as vox. The distance map is negative inside the mask and positive outside the mask.

Details

  • The following options can be given:
  • DistanceRangeAutomaticDistanceRange is an option for MakeDistanceMap. It defines the range of the distance map outside the segmentation in voxels. Values can be Automatic, All, or a integer value. If All the distance map is calculated for the whole image. If 0 the distance map is only calculated inside the segmentation.

Examples