changing layout, adding ant and eclipse sections, more pictures

This commit is contained in:
Andrey Pavlenko
2013-02-14 17:54:37 +04:00
parent c2c2403a79
commit a8c2fc6908
39 changed files with 506 additions and 138 deletions

View File

@@ -0,0 +1,19 @@
import org.opencv.core.Mat;
import org.opencv.core.CvType;
import org.opencv.core.Scalar;
class SimpleSample {
static{ System.loadLibrary("opencv_java244"); }
public static void main(String[] args) {
Mat m = new Mat(5, 10, CvType.CV_8UC1, new Scalar(0));
System.out.println("OpenCV Mat: " + m);
Mat mr1 = m.row(1);
mr1.setTo(new Scalar(1));
Mat mc5 = m.col(5);
mc5.setTo(new Scalar(5));
System.out.println("OpenCV Mat data:\n" + m.dump());
}
}