13 #define MNIST_TRAINING_SET_IMAGE_FILE_NAME "data/train-images-idx3-ubyte"
14 #define MNIST_TRAINING_SET_LABEL_FILE_NAME "data/train-labels-idx1-ubyte"
16 #define MNIST_TESTING_SET_IMAGE_FILE_NAME "data/t10k-images-idx3-ubyte"
17 #define MNIST_TESTING_SET_LABEL_FILE_NAME "data/t10k-labels-idx1-ubyte"
21 #define MNIST_MAX_TRAINING_IMAGES 60000
22 #define MNIST_MAX_TESTING_IMAGES 10000
23 #define MNIST_IMG_WIDTH 28
24 #define MNIST_IMG_HEIGHT 28
FILE * openMNISTLabelFile(char *fileName)
Read MNIST label file header.
MNIST_Image getImage(FILE *imageFile)
Returns the next image in given MNIST image file.
MNIST_Label getLabel(FILE *labelFile)
Returns the next label in given MNIST label file.
FILE * openMNISTImageFile(char *fileName)
Read MNIST IMAGE file header.
Data block defining a MNIST image.