Separate HSV mask
The following is the original image :
Then, I used the HSV inrange to filter the guidepath. And then the result like this:
Is there has any method so that I can separte the guidepath into 3 direction? Just similar the following:
Updated
The following image has already completed the first 2 (@StevenPuttemans suggestion) step
I also use 100*100 sliding window to scan thought the whole image. And then calculating the mean point inside the sliding window. The result like following: Then, I use the minmum spanning tree with euclidean distance to create the relationship between these point. Now, I have no idea how to remove noise edge in tree and confirm different direction. Anyone have a good suggestion?