Introduction - If you have any usage issues, please Google them yourself
Paper " based on gradient line segment detection algorithm- Photon Technology" matlab source, point main function runs, the effect is very good straight line segments. Main_hf there is also a straight section of the Hough transform detection method for comparison.