Wolfram imagelines equivalent

that’s called a “Hough transform”, for lines.

cv::HoughLines

cv::HoughLinesP