Added distance transform using OpenCV.