import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.core.Scalar;
+import org.opencv.imgcodecs.Imgcodecs;
public class IsolateImage extends Panel {
BufferedImage image;
public static Mat matOriginal;
+ public static Mat filtered;
public static final Scalar LOWER_BOUNDS = new Scalar(103, 164, 169);
public static final Scalar UPPER_BOUNDS = new Scalar(125, 229, 255);
public static void main(String args[]) throws Exception {
matOriginal = new Mat();
+ filtered = new Mat();
// Creates a window to
// display the image
// makes it visible
frame.setVisible(true);
}
+
+ public static void processImage() {
+ matOriginal = Imgcodecs.imread("imgs/testpicture.png"); // convert image
+ // into matrix
+
+ }
}