Cobble edge detection algorithm based on digital image processing