Package org.opencv.core

Examples of org.opencv.core.Size


        String[] sizes_str = n_getSupportedPreviewSizes(nativeObj).split(",");
        List<Size> sizes = new LinkedList<Size>();

        for (String str : sizes_str) {
            String[] wh = str.split("x");
            sizes.add(new Size(Double.parseDouble(wh[0]), Double.parseDouble(wh[1])));
        }

        return sizes;
    }
View Full Code Here


   * @param maxSize
   * @return
   *     An array of java.awt.Rectangle objects with the location, width, and height of each detected object.
   */
  public Rectangle[] detect(double scaleFactor , int minNeighbors , int flags, int minSize , int maxSize){
    Size minS = new Size(minSize, minSize);
    Size maxS = new Size(maxSize, maxSize);
   
    MatOfRect detections = new MatOfRect();
    classifier.detectMultiScale(getCurrentMat(), detections, scaleFactor, minNeighbors, flags, minS, maxS );

    return OpenCV.toProcessing(detections.toArray());
View Full Code Here

   *
   * @param blurSize
   *     int - the amount to blur by in x- and y-directions.
   */
  public void blur(int blurSize){
    Imgproc.blur(getCurrentMat(), getCurrentMat(), new Size(blurSize, blurSize));
  }
View Full Code Here

   *     amount to blur in the x-direction
   * @param blurH
   *     amount to blur in the y-direction
   */
  public void blur(int blurW, int blurH){
    Imgproc.blur(getCurrentMat(), getCurrentMat(), new Size(blurW, blurH));
  }
View Full Code Here

    return result;
  }
 
  public ArrayList<PVector> findChessboardCorners(int patternWidth, int patternHeight){
    MatOfPoint2f corners = new MatOfPoint2f();
    Calib3d.findChessboardCorners(getCurrentMat(), new Size(patternWidth,patternHeight), corners);
    return matToPVectors(corners);
  }
View Full Code Here

TOP

Related Classes of org.opencv.core.Size

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.