distanceTransform

http://kube.pl/wp-content/uploads/2018/01/distanceTransform_01.png

Functionality

Calculates the distance to the closest zero pixel for each pixel of the source image.

Inputs

  • distanceType_in – Type of distance. It can be CV_DIST_L1, CV_DIST_L2 , or CV_DIST_C.
  • image_in – 8-bit, single-channel (binary) source image.
  • maskSize_in – Size of the distance transform mask.

Outputs

  • image_out – Output image with calculated distances.

Locals

Examples