Skip to content

Instantly share code, notes, and snippets.

@vaskoz
Created June 8, 2013 22:51
Show Gist options
  • Save vaskoz/5736911 to your computer and use it in GitHub Desktop.
Save vaskoz/5736911 to your computer and use it in GitHub Desktop.
import org.opencv.core.Core
import org.opencv.core.CvType
import org.opencv.core.Mat
class Main {
static {
Runtime.getRuntime().loadLibrary0(groovy.lang.GroovyClassLoader.class, Core.NATIVE_LIBRARY_NAME)
}
public static void main(String[] args) {
Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
System.out.println("m = " + m.dump());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment