Class IDX
java.lang.Object
org.ojalgo.netio.IDX
Reads IDX-files as described at THE MNIST DATABASE page.
The elements/pixels/bytes are written to the ArrayAnyD instance in order as they're read from the file. The
indexing order then needs to be reversed, and that causes the images to be transposed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(File file, DenseArray.Factory<Double, ?> factory) parse(String filePath, DenseArray.Factory<Double, ?> arrayFactory) static voidprint(Access2D<?> image, BasicLogger printer) static voidprint(Access2D<?> image, BasicLogger printer, boolean transpose) static voidprint(Access2D<?> image, BasicLogger printer, boolean transpose, double maxExpectedValue) private static voidprintPixel(double gray, BasicLogger printer, double oneThird, double twoThirds)
-
Constructor Details
-
IDX
public IDX()
-
-
Method Details
-
parse
-
parse
-
parse
-
parse
-
print
-
print
-
print
public static void print(Access2D<?> image, BasicLogger printer, boolean transpose, double maxExpectedValue) -
printPixel
-