Deep Neural Network for MNIST Handwriting Recognition
1.0
Deep Neural Network for MNIST Handwriting Recognition
|
Utitlies for handling the MNIST data set files. More...
Functions | |
uint32_t | flipBytes (uint32_t n) |
void | readImageFileHeader (FILE *imageFile, MNIST_ImageFileHeader *ifh) |
void | readLabelFileHeader (FILE *imageFile, MNIST_LabelFileHeader *lfh) |
FILE * | openMNISTImageFile (char *fileName) |
Returns a file pointer to the MNIST image file. More... | |
FILE * | openMNISTLabelFile (char *fileName) |
Returns a file pointer to the MNIST label file. More... | |
MNIST_Image | getImage (FILE *imageFile) |
Returns the next image in given MNIST image file. More... | |
MNIST_Image | getImageByPosition (FILE *imageFile, int position) |
MNIST_Label | getLabel (FILE *labelFile) |
Returns the next label in given MNIST label file. More... | |
MNIST_Label | getLabelByPosition (FILE *labelFile, int position) |
Vector * | getVectorFromImage (MNIST_Image *img) |
Returns a Vector holding the image pixels of a given MNIST image. More... | |
Utitlies for handling the MNIST data set files.
uint32_t flipBytes | ( | uint32_t | n | ) |
Reverse byte order in 32bit numbers MNIST files contain all numbers in reversed byte order, and hence must be reversed before using
MNIST_Image getImage | ( | FILE * | imageFile | ) |
Returns the next image in given MNIST image file.
Returns the next image in the given MNIST image file
MNIST_Image getImageByPosition | ( | FILE * | imageFile, |
int | position | ||
) |
Returns the image located at the specified position in the given MNIST image file
MNIST_Label getLabel | ( | FILE * | labelFile | ) |
Returns the next label in given MNIST label file.
Returns the next label in the given MNIST label file
MNIST_Label getLabelByPosition | ( | FILE * | labelFile, |
int | position | ||
) |
Returns the label located at the specified position in the given MNIST label file
Vector* getVectorFromImage | ( | MNIST_Image * | img | ) |
Returns a Vector holding the image pixels of a given MNIST image.
img | A pointer to a MNIST image |
FILE* openMNISTImageFile | ( | char * | fileName | ) |
Returns a file pointer to the MNIST image file.
Opens the file and moves the read pointer to the position of the 1st image
FILE* openMNISTLabelFile | ( | char * | fileName | ) |
Returns a file pointer to the MNIST label file.
Opens the file and moves the read pointer to the position of the 1st label
void readImageFileHeader | ( | FILE * | imageFile, |
MNIST_ImageFileHeader * | ifh | ||
) |
Read MNIST image file header
void readLabelFileHeader | ( | FILE * | imageFile, |
MNIST_LabelFileHeader * | lfh | ||
) |
Read MNIST label file header