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

We actually support column vector in 2D mode.

parent 70dfdc32
No related branches found
No related tags found
No related merge requests found
......@@ -259,10 +259,8 @@ public class ParsedCliOptions {
if ((vectorDimension.getX() > 1) && (vectorDimension.getY() == 1)) {
quantizationType = QuantizationType.Vector1D;
} else if ((vectorDimension.getX() == 1) && (vectorDimension.getY() > 1)) {
errorOccurred = true;
errorBuilder.append("There is nothing wrong with the vector ").
append(vectorDimension.toString()).append(
" but we do not support column vectors yet").append('\n');
// This is actually Vector1D, but Vector2D implementation works here just fine.
quantizationType = QuantizationType.Vector2D;
} else {
quantizationType = QuantizationType.Vector2D;
}
......
......@@ -243,7 +243,6 @@ public class Chunk2D {
for (int i = 0; i < vectorCount; i++) {
assert (chunks[i].data.length == vectorSize);
System.arraycopy(chunks[i].data,0,imageVectors[i],0, vectorSize);
//imageVectors[i] = Arrays.copyOf(chunks[i].data, vectorSize);
}
return imageVectors;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment