https://it.mathworks.com/help/images/ref/houghlines.html
houghlines - Extract line segments based on Hough transform - MATLAB
This MATLAB function extracts line segments in the binary image BW associated with particular bins in a Hough transform.
based onextractlinesegmentshough