added a simple project

This commit is contained in:
2020-02-18 12:53:48 +01:00
parent a240017f85
commit f10f6d69b7
18 changed files with 563 additions and 0 deletions
@@ -0,0 +1,26 @@
package de.unidue.nes.gpu;
import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
import org.opencv.core.Size;
/**
* Class containing the main method of this project.
*
* @author Roch P., Shahbaz Nejad B.
*/
public class GpuTestSystem {
static {
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}
public static void main(String[] args) {
System.out.println("Starting the system");
Mat m = Mat.eye(new Size(3, 3), CvType.CV_8U);
System.out.println("A new mat:");
System.out.println(m.dump());
}
}
+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<!-- Console Appender -->
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{yyyy-MMM-dd HH:mm:ss a} [%t] %-5level %logger{100} - %msg%n" />
</Console>
<!-- Rolling File Appender -->
<RollingFile name="RollingFile">
<FileName>logs/talako.log</FileName>
<FilePattern>logs/%d{yyyy-MM-dd-hh-mm-ss}.log.zip</FilePattern>
<PatternLayout>
<Pattern>%d{yyyy-MMM-dd HH:mm:ss a} [%t] %-5level %logger{100} - %msg%n</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="64 MB" />
</Policies>
</RollingFile>
</Appenders>
<Loggers>
<!-- level="all" is super verbose, maybe set to debug or even info -->
<Root level="all">
<AppenderRef ref="RollingFile" level="all"/>
<AppenderRef ref="Console" level="all"/>
</Root>
</Loggers>
</Configuration>