First time here? Check out the FAQ!
answered 2015-01-13 11:03:51 -0600
In another way,
Find the angle for each line using the equation
double Angle = atan2(y2 - y1, x2 - x1) * 180.0 / CV_PI;
Compare angles for all detected lines to separate parallel lines.