Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.