I am using regionprops function to find the lengths and orientation angles of some lines in binary images. There is no issue with the function when these lines do not intersect. However, when there are some intersecting lines like in the shape of "X, +, V or any other shape" the result is a bit weird. How can I overcome this problem? Are there any other ways to find these parameters?