adjusted result style

This commit is contained in:
2020-03-25 10:36:18 +01:00
parent 17e8d5b751
commit 2fad46fe4c
2 changed files with 7 additions and 9 deletions
@@ -99,9 +99,7 @@ public class EventHandler {
}
private void printFeatureTasks() {
// printTable("feature table", new TaskType[] { CPU_FEATURE_DETECTION, GPU_FEATURE_DETECTION });
printTable("skyscraper table", new TaskType[] { CPU_FEATURE_DETECTION1, GPU_FEATURE_DETECTION1 });
printTable("motorcycle table", new TaskType[] { CPU_FEATURE_DETECTION2, GPU_FEATURE_DETECTION2 });
printTable("feature table", new TaskType[] { CPU_FEATURE_DETECTION1, GPU_FEATURE_DETECTION1, CPU_FEATURE_DETECTION2, GPU_FEATURE_DETECTION2 });
}
private void printPipelineTasks() {
@@ -170,17 +168,17 @@ public class EventHandler {
entry.getValue().sort(Comparator.comparingDouble(evt -> evt.getImageSize().area()));
for (int i = 0; i < 5; i++) {
content.append(" & ");
content.append((int) entry.getValue().get(i).getTimeDto().avgTime);
content.append(((int) (entry.getValue().get(i).getTimeDto().avgTime * 10)) / 10.0);
content.append(" & ");
content.append((int) entry.getValue().get(i).getTimeDto().stdAbweichung);
content.append(((int) (entry.getValue().get(i).getTimeDto().stdAbweichung * 10)) / 10.0);
}
if (sizes.size() == 10) {
content.append(LATEX_TABLE_END_OF_LINE);
for (int i = 5; i < 10; i++) {
content.append(" & ");
content.append((int) entry.getValue().get(i).getTimeDto().avgTime);
content.append(((int) (entry.getValue().get(i).getTimeDto().avgTime * 10)) / 10.0);
content.append(" & ");
content.append((int) entry.getValue().get(i).getTimeDto().stdAbweichung);
content.append(((int) (entry.getValue().get(i).getTimeDto().stdAbweichung * 10)) / 10.0);
}
}
content.append(LATEX_TABLE_END_OF_LINE);
@@ -13,8 +13,8 @@ public enum TaskType {
CPU_PIPELINE("CPU pipeline"), GPU_PIPELINE("GPU pipeline"), //
CPU_FEATURE_DETECTION("CPU feature detection"), GPU_FEATURE_DETECTION("GPU feature detection"), //
CPU_FEATURE_MATCHING("CPU feature matching"), GPU_FEATURE_MATCHING("GPU feature matching"), //
CPU_STEREO_MATCHING("CPU stereo matching"), GPU_STEREO_MATCHING("GPU stereo matching"), CPU_FEATURE_DETECTION1("CPU feature detection"),
CPU_FEATURE_DETECTION2("CPU feature detection"), GPU_FEATURE_DETECTION1("GPU feature detection"), GPU_FEATURE_DETECTION2("GPU feature detection"), //
CPU_STEREO_MATCHING("CPU stereo matching"), GPU_STEREO_MATCHING("GPU stereo matching"), CPU_FEATURE_DETECTION1("CPU - skyscraper image"),
GPU_FEATURE_DETECTION1("GPU - skyscraper image"), CPU_FEATURE_DETECTION2("CPU - motorcycle image"), GPU_FEATURE_DETECTION2("GPU - motorcycle image"), //
CPU_DILATE("CPU dilate"), GPU_DILATE("GPU dilate"), CPU_ERODE("CPU erode"), GPU_ERODE("GPU erode");
private String title;