public void mNistDecoderInit() { ifsLabels = new FileStream(@"D:\Selman\Temp\gzip\gzip\emnist-digits-train-labels-idx1-ubyte\emnist-digits-train-labels-idx1-ubyte", FileMode.Open); // test labels ifsImages = new FileStream(@"D:\Selman\Temp\gzip\gzip\emnist-digits-train-images-idx3-ubyte\emnist-digits-train-images-idx3-ubyte", FileMode.Open); // test images brLabels = new BinaryReader(ifsLabels); brImages = new BinaryReader(ifsImages); magic1 = BinaryReaderExtension.ReadInt32Endian(brImages); // brImages.ReadInt32(); // discard numImages = BinaryReaderExtension.ReadInt32Endian(brImages); //brImages.ReadInt32(); numRows = BinaryReaderExtension.ReadInt32Endian(brImages); // brImages.ReadInt32(); numCols = BinaryReaderExtension.ReadInt32Endian(brImages); //brImages.ReadInt32(); magic2 = BinaryReaderExtension.ReadInt32Endian(brLabels); //brLabels.ReadInt32(); numLabels = BinaryReaderExtension.ReadInt32Endian(brLabels); // brLabels.ReadInt32(); pixels = new byte[784]; }