Calculates the distance to the closest zero pixel for each pixel of the source image.
- 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.
- image_out – Output image with calculated distances.