Example #1
0
  public static void salcut(String filename) throws IOException, InterruptedException {
    Mat m = Imgcodecs.imread(filename, Imgcodecs.CV_LOAD_IMAGE_ANYCOLOR);
    Mat mask = Foreground.salCutMask(m);

    new Displayer(m, "original");
    new Displayer(mask, "mask");
  }
Example #2
0
  public static void thrscut(String filename) {

    Mat m = Imgcodecs.imread(filename, Imgcodecs.CV_LOAD_IMAGE_ANYCOLOR);
    Mat mask = Foreground.simpleTshMask(m);

    new Displayer(m, "original");
    new Displayer(mask, "mask");
  }