Package org.opencv.core

Examples of org.opencv.core.Point


* @see org.opencv.core.Core#idft
*/
    public static Point phaseCorrelate(Mat src1, Mat src2, Mat window)
    {

        Point retVal = new Point(phaseCorrelate_0(src1.nativeObj, src2.nativeObj, window.nativeObj));

        return retVal;
    }
View Full Code Here


* @see org.opencv.core.Core#idft
*/
    public static Point phaseCorrelate(Mat src1, Mat src2)
    {

        Point retVal = new Point(phaseCorrelate_1(src1.nativeObj, src2.nativeObj));

        return retVal;
    }
View Full Code Here

    //

    public static Point phaseCorrelateRes(Mat src1, Mat src2, Mat window, double[] response)
    {
        double[] response_out = new double[1];
        Point retVal = new Point(phaseCorrelateRes_0(src1.nativeObj, src2.nativeObj, window.nativeObj, response_out));
        if(response!=null) response[0] = (double)response_out[0];
        return retVal;
    }
View Full Code Here

    }

    public static Point phaseCorrelateRes(Mat src1, Mat src2, Mat window)
    {

        Point retVal = new Point(phaseCorrelateRes_1(src1.nativeObj, src2.nativeObj, window.nativeObj));

        return retVal;
    }
View Full Code Here

* @see org.opencv.core.Core#idft
*/
    public static Point phaseCorrelate(Mat src1, Mat src2, Mat window)
    {

        Point retVal = new Point(phaseCorrelate_0(src1.nativeObj, src2.nativeObj, window.nativeObj));

        return retVal;
    }
View Full Code Here

* @see org.opencv.core.Core#idft
*/
    public static Point phaseCorrelate(Mat src1, Mat src2)
    {

        Point retVal = new Point(phaseCorrelate_1(src1.nativeObj, src2.nativeObj));

        return retVal;
    }
View Full Code Here

    //

    public static Point phaseCorrelateRes(Mat src1, Mat src2, Mat window, double[] response)
    {
        double[] response_out = new double[1];
        Point retVal = new Point(phaseCorrelateRes_0(src1.nativeObj, src2.nativeObj, window.nativeObj, response_out));
        if(response!=null) response[0] = (double)response_out[0];
        return retVal;
    }
View Full Code Here

    }

    public static Point phaseCorrelateRes(Mat src1, Mat src2, Mat window)
    {

        Point retVal = new Point(phaseCorrelateRes_1(src1.nativeObj, src2.nativeObj, window.nativeObj));

        return retVal;
    }
View Full Code Here

   * @param x
   * @param y
   * @return boolean
   */
  public boolean containsPoint(int x, int y){
    Point p = new Point(x,y);
    MatOfPoint2f m = new MatOfPoint2f(pointMat.toArray());
       
    double r = Imgproc.pointPolygonTest(m,p, false);
    return r == 1;
  }
View Full Code Here

      Imgproc.convexHull(points, hull);
      Point[] hp = new Point[hull.height()];
     
      for(int i = 0; i < hull.height(); i++){
        int index = (int)hull.get(i,0)[0];
        hp[i] = new Point(pointMat.get(index,0));
      }
      MatOfPoint hullPoints = new MatOfPoint();
      hullPoints.fromArray(hp);

      return new Contour(parent, hullPoints);
View Full Code Here

TOP

Related Classes of org.opencv.core.Point

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.