Professor for Sensor Data Processing and Programming

Machine Learning - Reading in MNIST dataset in C++

If you want to write your own Multi Layer Perceptron (MLP) or Convolutional Neural Network (CNN) in C++, you
need some training data to test your implementation.

MNIST is the classical approach to do a "Machine Learning Hello World". It consists of 60.000 training images of handwritten digits 0,1,...,9 and 10.000 test images together with ground-truth training and test labels.

But this means, you need some code that reads in training/testing images + labels.

Here is my C++ code to realize this task. It also uses OpenCV in order to visualize some sample training images.
Hope it helps!