touch screen vape. this method. Hough line transform method is used to detect lines using Hough transform 9. Y mx c is the equation of line or in a parametric form we can say as r xcos ysin. Here is the angle formed by the vertical line and r is the distance from origin to the line.Any line can be represented in term of r and . Below. Hough Transform with OpenCV. . showwaitdestroy ("binary", bw); Create the images that will use to extract the horizontal and vertical lines. Mat horizontal bw. clone (); Mat vertical bw. clone (); Specify size on horizontal axis. int horizontalsize horizontal. cols 30; Create structure element for extracting horizontal lines through morphology operations.