projects
/
3501
/
OpenCVShowImage
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8f580bc
)
clean up code to only use openCV
author
EvanYap
<evanyap.14@gmail.com>
Tue, 18 Oct 2016 02:52:42 +0000
(19:52 -0700)
committer
EvanYap
<evanyap.14@gmail.com>
Tue, 18 Oct 2016 02:52:42 +0000
(19:52 -0700)
IsolateImage.java
patch
|
blob
|
blame
|
history
diff --git
a/IsolateImage.java
b/IsolateImage.java
index d9de95edfb609567c40f9f548c1e70e0917e911d..5f573721adb0f593c4a64247e1f31a28e0480133 100644
(file)
--- a/
IsolateImage.java
+++ b/
IsolateImage.java
@@
-1,29
+1,22
@@
-import java.awt.Panel;
-import java.awt.image.BufferedImage;
-
import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.core.Scalar;
import org.opencv.imgcodecs.Imgcodecs;
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 filteredImage;
- BufferedImage origImage;
+public class IsolateImage {
public static Mat matOriginal;
public static Mat filtered;
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 final Scalar LOWER_BOUNDS = new Scalar(169, 164, 103);
+ public static final Scalar UPPER_BOUNDS = new Scalar(255, 229, 140);
+ // public static final Scalar LOWER_BOUNDS = new Scalar(255, 0, 0);
+ // public static final Scalar UPPER_BOUNDS = new Scalar(0, 255, 255);
static {
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}
static {
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}
- public IsolateImage() {
-
- }
-
public static void main(String args[]) throws Exception {
matOriginal = new Mat();
public static void main(String args[]) throws Exception {
matOriginal = new Mat();