Package org.opencv.core.Core

Examples of org.opencv.core.Core.MinMaxLocResult


                roiImage.cols() - templateImage.cols() + 1,
                roiImage.rows() - templateImage.rows() + 1,
                CvType.CV_32FC1);
        Imgproc.matchTemplate(roiImage, templateImage, resultImage, Imgproc.TM_CCOEFF);
       
        MinMaxLocResult mmr = Core.minMaxLoc(resultImage);

        org.opencv.core.Point matchLoc = mmr.maxLoc;
        double matchValue = mmr.maxVal;

        // TODO: Figure out certainty and how to filter on it.
View Full Code Here


   *
   * @return
   *     A PVector with the location of the maximum value.
   */
  public PVector max(){
    MinMaxLocResult r = Core.minMaxLoc(getCurrentMat());
    return OpenCV.pointToPVector(r.maxLoc);
  }
View Full Code Here

   *
   * @return
   *     A PVector with the location of the minimum value.
   */
  public PVector min(){
    MinMaxLocResult r = Core.minMaxLoc(getCurrentMat());
    return OpenCV.pointToPVector(r.minLoc);
  }
View Full Code Here

TOP

Related Classes of org.opencv.core.Core.MinMaxLocResult

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.