This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
Neuro/gui/NeuroUI/mnistloader.h

23 lines
462 B
C++

#ifndef MNISTLOADER_H
#define MNISTLOADER_H
#include <string>
#include <inttypes.h>
class MnistLoader
{
public:
MnistLoader();
void load(const std::string &databaseFileName, const std::string &labelsFileName);
private:
void loadDatabase(const std::string &fileName);
void loadLabels(const std::string &fileName);
static int8_t readInt8(std::ifstream &file);
static int32_t readInt32(std::ifstream &file);
};
#endif // MNISTLOADER_H