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.
I would like to extract the following edges marked in red as lines from the mask
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.
Thank you