Package org.opencv.core

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


  }
 
  public void findSobelEdges(int dx, int dy){
    Mat sobeled = new Mat(getCurrentMat().height(), getCurrentMat().width(), CvType.CV_32F);
    Imgproc.Sobel(getCurrentMat(), sobeled, CvType.CV_32F, dx, dy);
    sobeled.convertTo(getCurrentMat(), getCurrentMat().type());
  }
 
  public void findScharrEdges(int direction){
    if(direction == HORIZONTAL){
      Imgproc.Scharr(getCurrentMat(), getCurrentMat(), -1, 1, 0 );
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.