added some print statements

This commit is contained in:
2020-06-18 16:22:08 +02:00
parent 47249e4452
commit e58cac4bb4
4 changed files with 12 additions and 0 deletions
@@ -26,6 +26,8 @@ public class CPUStereoMatching {
TimeDto time = TimingService.testPerformance(() -> matcher.compute(leftImage, rightImage, disparity), FeatureBasedTask.TEST_RUNS);
LOG.info(() -> "cpu stereo matching took of image size " + leftImage.size() + ": " + time + "ms");
System.out.println("avg time: " + time.avgTime);
System.out.println("standard abweichung: " + time.stdAbweichung);
GpuEventBus.INSTANCE.post(new TaskResultEvent("", FeatureBasedTask.TEST_RUNS, leftImage.size(), TaskType.CPU_STEREO_MATCHING, time));
// Just for debugging
// Imgproc.resize(disparity, disparity, new Size(), 0.5, 0.5);
@@ -34,6 +34,8 @@ public class CpuFeatureTask {
}, FeatureBasedTask.TEST_RUNS);
LOG.info(() -> "cpu feature detection time for images of size " + image.size() + ": " + time + "ms");
System.out.println("avg time: " + time.avgTime);
System.out.println("standard abweichung: " + time.stdAbweichung);
GpuEventBus.INSTANCE.post(new TaskResultEvent("", FeatureBasedTask.TEST_RUNS, image.size(), TaskType.CPU_FEATURE_DETECTION1, time));
}
@@ -49,6 +51,8 @@ public class CpuFeatureTask {
}, FeatureBasedTask.TEST_RUNS);
LOG.info(() -> "cpu feature detection time for images of size " + image.size() + ": " + time + "ms");
System.out.println("avg time: " + time.avgTime);
System.out.println("standard abweichung: " + time.stdAbweichung);
GpuEventBus.INSTANCE.post(new TaskResultEvent("", FeatureBasedTask.TEST_RUNS, image.size(), TaskType.CPU_FEATURE_DETECTION2, time));
}
@@ -41,6 +41,8 @@ public class GPUStereoMatching {
TimeDto time = TimingService.testPerformance(() -> matcher.compute(left, right, disparity), FeatureBasedTask.TEST_RUNS);
LOG.info(() -> "gpu stereo matching took of image size " + leftImage.size() + ": " + time + "ms");
System.out.println("avg time: " + time.avgTime);
System.out.println("standard abweichung: " + time.stdAbweichung);
GpuEventBus.INSTANCE.post(new TaskResultEvent("", FeatureBasedTask.TEST_RUNS, leftImage.size(), TaskType.GPU_STEREO_MATCHING, time));
// Just for debugging
@@ -48,6 +48,8 @@ public class GpuFeatureTask {
}, FeatureBasedTask.TEST_RUNS);
LOG.info(() -> "gpu detection time for images of size " + image.size() + ": " + time + "ms");
System.out.println("avg time: " + time.avgTime);
System.out.println("standard abweichung: " + time.stdAbweichung);
GpuEventBus.INSTANCE.post(new TaskResultEvent("", FeatureBasedTask.TEST_RUNS, image.size(), TaskType.GPU_FEATURE_DETECTION1, time));
}
@@ -70,6 +72,8 @@ public class GpuFeatureTask {
}, FeatureBasedTask.TEST_RUNS);
LOG.info(() -> "gpu detection time for images of size " + image.size() + ": " + time + "ms");
System.out.println("avg time: " + time.avgTime);
System.out.println("standard abweichung: " + time.stdAbweichung);
GpuEventBus.INSTANCE.post(new TaskResultEvent("", FeatureBasedTask.TEST_RUNS, image.size(), TaskType.GPU_FEATURE_DETECTION2, time));
}