title: How to find end points of a line in opencv?
body: <p>I am trying to figure out how to find the end points of a line. Lets say that I have a line that goes from <code>(0,0) to (2,2)</code> in a <code>cartesian</code> coordinate system and <code>opencv</code> sees the line using Probabilistic Hough Line Transform, how do I find those 2 points?</p>
  
  <p>I know that hough line transform finds lines by matching up points, but how do I use that line and find the two points that make up that line?</p>
  
  <p>Are there any functions that are already built into the library that provides this functionality?</p>
  
  <p>I'm using <code>OpenCV 2.4.3</code> in <code>C++</code> in </p>
  
  <pre><code>VS Studio 2010
  </code></pre>
  
  <p>Thanks for the help.</p>