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
uint8_t pixel[MNIST_IMG_WIDTH *MNIST_IMG_HEIGHT]
int getStandardDigitPixel(int num, int pixelId)
FILE * openMNISTLabelFile(char *fileName)
Read MNIST label file header.
#define MNIST_IMG_HEIGHT
image height in pixel
#define MNIST_IMG_WIDTH
image width in pixel
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.