I have a black line and purple lines. I want to calculate the distance between each purple pixel points in the canny image and the closest black line in the most efficient a