Package org.opencv.core

Examples of org.opencv.core.Mat.assignTo()


      Core.absdiff(getCurrentMat(), imgMat, dst);
    } else {
      Core.absdiff(getCurrentMat(), OpenCV.gray(imgMat), dst);
    }
   
    dst.assignTo(getCurrentMat());
  }
 
  /**
   * A helper function that diffs two Mats using absdiff.
   * Places the result back into mat1
View Full Code Here


   *     The Mat to diff against
   */
  public static void diff(Mat mat1, Mat mat2){
    Mat dst = imitate(mat1);
    Core.absdiff(mat1, mat2, dst);
    dst.assignTo(mat1);
  }
 
  /**
   * Apply a global threshold to an image. Produces a binary image
   * with white pixels where the original image was above the threshold
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.