Best method or algorithm to retrive the straight lines edges of an image mask

118 Views Asked by At

I am trying to retrive the edges of an basket ball court. I was successful in creating a mask by using the histogram of the image. I would like to know what is the best approach to extract the straight lines from the image mask.

Image mask

I would like to extract the following edges marked in red as lines from the mask

enter image description here

Could some one tell me what is the best method or algorithm to use. FYI, I tried houghlines but I get line segments that are very small.

enter image description here

Thank you

0

There are 0 best solutions below