org.javaopencvbook.GUI.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中org.javaopencvbook.GUI.<init>()方法的一些代码示例,展示了GUI.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GUI.<init>()方法的具体详情如下:
包路径:org.javaopencvbook.GUI
类名称:GUI
方法名:<init>

GUI.<init>介绍

暂无

代码示例

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    
    String filePath = "src/main/resources/images/coffee.jpg";
    Mat newImage = Imgcodecs.imread(filePath, Imgcodecs.CV_LOAD_IMAGE_ANYCOLOR);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Distance Transform Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    String filePath = "src/main/resources/images/apple.jpg";
    Mat newImage = Imgcodecs.imread(filePath, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Thresholding Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    String filePath = "src/main/resources/images/SuperTucano.jpg";
    Mat newImage = Imgcodecs.imread(filePath);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Connected Components", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    String filePath = "src/main/resources/images/marble.jpg";
    
    
    Mat newImage = Imgcodecs.imread(filePath);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Smooth Filter Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    String filePath = "src/main/resources/images/cathedral.jpg";
    Mat newImage = Imgcodecs.imread(filePath);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Image Pyramid", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    String filePath = "src/main/resources/images/cathedral.jpg";
    Mat newImage = Imgcodecs.imread(filePath);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("OpenCV GUI", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    String filePath = "src/main/resources/images/building.jpg";
    Mat newImage = Imgcodecs.imread(filePath, Imgcodecs.CV_LOAD_IMAGE_ANYCOLOR);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Histogram Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    String filePath = "src/main/resources/images/clouds.png";
    Mat newImage = Imgcodecs.imread(filePath, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Kernel Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    String filePath = "src/main/resources/images/cathedral-small.jpg";
    Mat newImage = Imgcodecs.imread(filePath);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Floodfill Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    //String filePath = "src/main/resources/images/building.jpg";
    String filePath = "src/main/resources/images/building.jpg";
    Mat newImage = Imgcodecs.imread(filePath, Imgcodecs.CV_LOAD_IMAGE_ANYCOLOR);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Warp Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    //String filePath = "src/main/resources/images/building.jpg";
    String filePath = "src/main/resources/images/masp.png";
    Mat newImage = Imgcodecs.imread(filePath, Imgcodecs.CV_LOAD_IMAGE_ANYCOLOR);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Hough Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    //String filePath = "src/main/resources/images/baboon.jpg";
    String filePath = "src/main/resources/images/c.png";
    Mat newImage = Imgcodecs.imread(filePath);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Morphology Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

public static void main(String[] args) throws Exception {
    //String filePath = "src/main/resources/images/building.jpg";
    String filePath = "src/main/resources/images/diagonal.png";
    //String filePath = "src/main/resources/images/vertical.png";
    Mat newImage = Imgcodecs.imread(filePath, Imgcodecs.CV_LOAD_IMAGE_ANYCOLOR);

    if(newImage.dataAddr()==0){
      System.out.println("Couldn't open file " + filePath);
    }else{

      GUI gui = new GUI("Fourier Example", newImage);
      gui.init();
    }
    return;
  }
}

代码示例来源:origin: JavaOpenCVBook/code

Imgproc.resize(background, resizedBackground, disparityImage.size());
GUI gui = new GUI("OpenCV Kinect Depth Chroma Key", disparityImage);
gui.init();
while(true){

相关文章