title: Android OpenCV retrieve intersection point
body: <p>I'm trying to modifiy the following OpenCV code to Java. </p>
  
  <pre><code>    std::vector&lt;cv::Vec4i&gt; lines;  
      cv::HoughLinesP(bw,lines,1,CV_PI/180,70,30,10);   
  
      for (unsigned int i = 0;i&lt;lines.size();i++)  
      {  
         cv::Vec4i v = lines[i];  
         lines[i][0] = 0;  
         lines[i][1] = ((float)v[1] - v[3])/(v[0] - v[2])* -v[0] + v[1];  
         lines[i][2] = src.cols;  
         lines[i][3] = ((float)v[1] - v[3])/(v[0] - v[2])*(src.cols - v[2]) + v[3];    
      }  
  
     std::vector&lt;cv::Point2f&gt; corners;
     for (unsigned int i = 0;i&lt;lines.size();i++)  
     {  
         for (unsigned int j=i+1;j&lt;lines.size();j++)  
         {  
             cv::Point2f pt = computeIntersect(lines[i],lines[j]);  
             if (pt.x &gt;= 0 &amp;&amp; pt.y &gt;=0)  
             {  
                 corners.push_back(pt);  
             }  
         }  
     }  
  </code></pre>