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

Fix incorrect vector count in loading of row vectors.

parent 6beb0e9a
Branches
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@ public abstract class BasicLoader {
protected int[][] loadRowVectorsImplByLoadPlaneData(final int vectorSize, final Range<Integer> planeRange) throws IOException {
final int rowVectorCount = (int) Math.ceil((double) dims.getX() / (double) vectorSize);
final int vectorCount = dims.getZ() * dims.getY() * rowVectorCount;
final int planeCount = planeRange.getTo() - planeRange.getFrom();
final int vectorCount = planeCount * dims.getY() * rowVectorCount;
int[][] rowVectors = new int[vectorCount][vectorSize];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment