Skip to content
Snippets Groups Projects
Commit 348e33b3 authored by Vojtech Moravec's avatar Vojtech Moravec
Browse files

Don't substract 1 from plane index.

parent 95b46a73
No related branches found
No related tags found
No related merge requests found
...@@ -93,9 +93,7 @@ public class VectorQuantizationBenchmark extends BenchmarkBase { ...@@ -93,9 +93,7 @@ public class VectorQuantizationBenchmark extends BenchmarkBase {
for (final int planeIndex : planes) { for (final int planeIndex : planes) {
System.out.println(String.format("Loading plane %d ...", planeIndex)); System.out.println(String.format("Loading plane %d ...", planeIndex));
// NOTE(Moravec): Actual planeIndex is zero based. final ImageU16 plane = loadPlane(planeIndex);
final ImageU16 plane = loadPlane(planeIndex - 1);
if (plane == null) { if (plane == null) {
System.err.println(String.format("Failed to load plane %d data. Skipping plane.", planeIndex)); System.err.println(String.format("Failed to load plane %d data. Skipping plane.", planeIndex));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment