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"); }
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"); }