First time here? Check out the FAQ!
answered 2014-11-04 07:13:44 -0600
I'd use houghlines (cv::HoughLinesP). This should give you the endpoints of each segment.